maz-ui 3.10.0 → 3.10.2

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 (112) hide show
  1. package/README.md +40 -0
  2. package/components/MazAvatar.d.ts +156 -0
  3. package/components/MazAvatar.mjs +4 -4
  4. package/components/MazAvatar.umd.js +2 -2
  5. package/components/MazBackdrop.d.ts +91 -0
  6. package/components/MazBadge.d.ts +73 -0
  7. package/components/MazBottomSheet.d.ts +36 -0
  8. package/components/MazBottomSheet.mjs +5 -5
  9. package/components/MazBottomSheet.umd.js +2 -2
  10. package/components/MazBtn.d.ts +178 -0
  11. package/components/MazBtn.mjs +2 -2
  12. package/components/MazBtn.umd.js +1 -1
  13. package/components/MazCard.d.ts +194 -0
  14. package/components/MazCard.mjs +8 -10
  15. package/components/MazCard.umd.js +2 -2
  16. package/components/MazCarousel.d.ts +24 -0
  17. package/components/MazCarousel.mjs +5 -5
  18. package/components/MazCarousel.umd.js +2 -2
  19. package/components/MazCheckbox.d.ts +54 -0
  20. package/components/MazDialog.d.ts +91 -0
  21. package/components/MazDialog.mjs +4 -4
  22. package/components/MazDialog.umd.js +2 -2
  23. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  24. package/components/MazDialogPromise.d.ts +72 -0
  25. package/components/MazDialogPromise.mjs +4 -4
  26. package/components/MazDialogPromise.umd.js +2 -2
  27. package/components/MazDrawer.d.ts +69 -0
  28. package/components/MazDrawer.mjs +2 -2
  29. package/components/MazDrawer.umd.js +1 -1
  30. package/components/MazDropzone.d.ts +128 -0
  31. package/components/MazGallery.d.ts +125 -0
  32. package/components/MazGallery.mjs +5 -7
  33. package/components/MazGallery.umd.js +2 -2
  34. package/components/MazIcon.d.ts +64 -0
  35. package/components/MazIcon.mjs +2 -2
  36. package/components/MazIcon.umd.js +1 -1
  37. package/components/MazInput.d.ts +273 -0
  38. package/components/MazInput.mjs +4 -4
  39. package/components/MazInput.umd.js +2 -2
  40. package/components/MazInputNumber.d.ts +65 -0
  41. package/components/MazInputNumber.mjs +4 -4
  42. package/components/MazInputNumber.umd.js +2 -2
  43. package/components/MazInputPrice.d.ts +69 -0
  44. package/components/MazInputPrice.mjs +4 -4
  45. package/components/MazInputPrice.umd.js +2 -2
  46. package/components/MazInputTags.d.ts +94 -0
  47. package/components/MazInputTags.mjs +6 -6
  48. package/components/MazInputTags.umd.js +2 -2
  49. package/components/MazLazyImg.d.ts +77 -0
  50. package/components/MazLazyImg.mjs +1 -1
  51. package/components/MazLazyImg.umd.js +1 -1
  52. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  53. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  54. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  55. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  56. package/components/MazPhoneNumberInput.d.ts +253 -0
  57. package/components/MazPhoneNumberInput.mjs +6 -6
  58. package/components/MazPhoneNumberInput.umd.js +2 -2
  59. package/components/MazPicker/MazPickerCalendar.vue.d.ts +135 -0
  60. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  61. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +112 -0
  62. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +122 -0
  63. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +36 -0
  64. package/components/MazPicker/MazPickerContainer.vue.d.ts +210 -0
  65. package/components/MazPicker/MazPickerFooter.vue.d.ts +16 -0
  66. package/components/MazPicker/MazPickerHeader.vue.d.ts +82 -0
  67. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +41 -0
  68. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +60 -0
  69. package/components/MazPicker/MazPickerTime.vue.d.ts +127 -0
  70. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +33 -0
  71. package/components/MazPicker/types.d.ts +15 -0
  72. package/components/MazPicker/utils.d.ts +54 -0
  73. package/components/MazPicker.d.ts +311 -0
  74. package/components/MazPicker.mjs +13 -16
  75. package/components/MazPicker.umd.js +2 -2
  76. package/components/MazRadioButtons.d.ts +77 -0
  77. package/components/MazSelect.d.ts +186 -0
  78. package/components/MazSelect.mjs +6 -6
  79. package/components/MazSelect.umd.js +2 -2
  80. package/components/MazSlider/utils.d.ts +15 -0
  81. package/components/MazSlider.d.ts +94 -0
  82. package/components/MazSpinner.d.ts +28 -0
  83. package/components/MazStepper.d.ts +114 -0
  84. package/components/MazStepper.mjs +6 -6
  85. package/components/MazStepper.umd.js +2 -2
  86. package/components/MazSwitch.d.ts +54 -0
  87. package/components/MazTabsBar.d.ts +47 -0
  88. package/components/MazTabsBar.mjs +2 -2
  89. package/components/MazTabsBar.umd.js +1 -1
  90. package/components/MazTabsContent.d.ts +21 -0
  91. package/components/MazTabsContent.mjs +2 -2
  92. package/components/MazTabsContent.umd.js +1 -1
  93. package/components/MazTabsContentItem.d.ts +19 -0
  94. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  95. package/components/MazTextarea.d.ts +123 -0
  96. package/components/MazTextarea.mjs +2 -2
  97. package/components/MazTextarea.umd.js +1 -1
  98. package/components/MazTransitionExpand.d.ts +9 -0
  99. package/components/assets/no-photography-584c6185.mjs +4 -0
  100. package/components/component-list.d.ts +1 -0
  101. package/components/index.d.ts +34 -0
  102. package/components/index.mjs +36 -0
  103. package/components/types.d.ts +17 -0
  104. package/css/aos.css +1 -0
  105. package/css/main.css +1 -0
  106. package/modules/assets/no-photography-584c6185.mjs +4 -0
  107. package/modules/index.d.ts +338 -0
  108. package/modules/index.mjs +4 -4
  109. package/modules/index.umd.js +2 -2
  110. package/package.json +3 -2
  111. package/tailwindcss/tailwind.css +1 -1
  112. package/modules/assets/no-photography-7a1e4d68.mjs +0 -36
@@ -0,0 +1,338 @@
1
+ import * as vue from 'vue';
2
+ import { Component, App, Directive, Plugin, Ref } from 'vue';
3
+ import { Router } from 'vue-router';
4
+
5
+ declare function injectStrict<T>(key: string, fallback?: T): NonNullable<T>;
6
+
7
+ type ArgumentTypes<F extends (...args: any[]) => void> = F extends (...args: infer A) => any ? A : never;
8
+ type MethodTypes = {
9
+ cancel: () => void;
10
+ flush: () => void;
11
+ };
12
+ declare function debounce<T extends (...args: any[]) => void>(fn: T, wait?: number, callFirst?: boolean): ((...args: ArgumentTypes<T>) => void) & MethodTypes;
13
+
14
+ type Truthy<T> = T extends false | '' | 0 | null | undefined ? never : T;
15
+ declare function truthyFilter<T>(value: T): value is Truthy<T>;
16
+
17
+ declare function mount(component: Component, { props, children, element, app, }?: {
18
+ props?: Record<string, unknown>;
19
+ children?: unknown;
20
+ app?: App;
21
+ element?: HTMLElement;
22
+ }): {
23
+ vNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
24
+ [key: string]: any;
25
+ }>;
26
+ destroy: () => void;
27
+ el: HTMLElement | undefined;
28
+ };
29
+
30
+ type IdleTimeoutCallback = ({ isIdle, eventType, }: {
31
+ isIdle: boolean;
32
+ eventType?: string;
33
+ }) => void;
34
+ interface IdleTimeoutStrictOption {
35
+ element?: HTMLElement | Document;
36
+ timeout: number;
37
+ once: boolean;
38
+ immediate: boolean;
39
+ ssr: boolean;
40
+ }
41
+ type IdleTimeoutOptions = Partial<IdleTimeoutStrictOption>;
42
+
43
+ declare class IdleTimeout {
44
+ private readonly callback;
45
+ private readonly defaultOptions;
46
+ private options;
47
+ private timeoutHandler?;
48
+ private isIdle;
49
+ private isDestroy;
50
+ private startTime;
51
+ private remainingTime;
52
+ private lastClientX;
53
+ private lastClientY;
54
+ private eventNames;
55
+ constructor(callback: IdleTimeoutCallback, options?: IdleTimeoutOptions);
56
+ get element(): HTMLElement | Document;
57
+ start(): void;
58
+ pause(): void;
59
+ resume(): void;
60
+ reset(): void;
61
+ destroy(): void;
62
+ private resetTimeout;
63
+ private handleEvent;
64
+ private handleTimeout;
65
+ get destroyed(): boolean;
66
+ get timeout(): number;
67
+ set timeout(value: number);
68
+ get idle(): boolean;
69
+ set idle(value: boolean);
70
+ }
71
+
72
+ type UserVisibilyCallback = ({ isVisible }: {
73
+ isVisible: boolean;
74
+ }) => void;
75
+ type UserVisibilyStrictOptions = {
76
+ ssr: boolean;
77
+ immediate: boolean;
78
+ timeout: number;
79
+ once: boolean;
80
+ };
81
+ type UserVisibilyOptions = Partial<UserVisibilyStrictOptions>;
82
+
83
+ declare class UserVisibility {
84
+ private readonly callback;
85
+ private eventHandlerFunction;
86
+ private event;
87
+ private timeoutHandler?;
88
+ private options;
89
+ private readonly defaultOptions;
90
+ private isVisible;
91
+ constructor(callback: UserVisibilyCallback, options?: UserVisibilyOptions);
92
+ start(): void;
93
+ private emitCallback;
94
+ private eventHandler;
95
+ private clearTimeout;
96
+ private initTimeout;
97
+ private addEventListener;
98
+ private removeEventListener;
99
+ destroy(): void;
100
+ }
101
+
102
+ declare const sleep: (duration: number) => Promise<unknown>;
103
+
104
+ declare function isClient(): boolean;
105
+
106
+ interface ScriptLoaderOptions {
107
+ identifier: string;
108
+ src: string;
109
+ once?: boolean;
110
+ async?: boolean;
111
+ defer?: boolean;
112
+ }
113
+ declare class ScriptLoader {
114
+ private src;
115
+ private script?;
116
+ private once;
117
+ private async;
118
+ private defer;
119
+ private identifier;
120
+ constructor({ src, identifier, once, async, defer }: ScriptLoaderOptions);
121
+ removeTag(tag: Element | string): void;
122
+ load(): Promise<unknown>;
123
+ private injectScript;
124
+ }
125
+
126
+ declare const directive$1: Directive;
127
+ declare const plugin$5: Plugin;
128
+
129
+ interface ClassOptions$1 {
130
+ baseClass: string;
131
+ loadingClass: string;
132
+ loadedClass: string;
133
+ errorClass: string;
134
+ noPhotoClass: string;
135
+ noPhoto: boolean;
136
+ noUseErrorPhoto: boolean;
137
+ observerOnce: boolean;
138
+ loadOnce: boolean;
139
+ observerOptions: {
140
+ root?: HTMLElement | null;
141
+ threshold: number;
142
+ rootMargin?: string;
143
+ };
144
+ errorPhoto?: string;
145
+ onLoading?: (el: Element) => unknown;
146
+ onLoaded?: (el: Element) => unknown;
147
+ onError?: (el: Element) => unknown;
148
+ onIntersecting?: (el: Element) => unknown;
149
+ }
150
+ type vLazyImgOptions = Partial<ClassOptions$1>;
151
+ interface vLazyImgBindingOptions extends vLazyImgOptions {
152
+ src?: string;
153
+ disabled?: boolean;
154
+ }
155
+ type vLazyImgBinding = string | vLazyImgBindingOptions;
156
+
157
+ declare const vLazyImg: {
158
+ created(el: HTMLElement, binding: vue.DirectiveBinding<vLazyImgBinding>): void;
159
+ updated(el: HTMLElement, binding: vue.DirectiveBinding<vLazyImgBinding>): void;
160
+ unmounted(el: HTMLElement, binding: vue.DirectiveBinding<vLazyImgBinding>): void;
161
+ };
162
+
163
+ declare const plugin$4: {
164
+ install(app: App, opts?: vLazyImgOptions): void;
165
+ };
166
+
167
+ declare const vZoomImg: Directive;
168
+
169
+ interface vZoomImgOptions {
170
+ disabled?: boolean;
171
+ scale?: boolean;
172
+ blur?: boolean;
173
+ }
174
+ interface vZoomImgBindingOptions extends vZoomImgOptions {
175
+ src: string;
176
+ alt?: string;
177
+ }
178
+ type vZoomImgBinding = string | vZoomImgBindingOptions;
179
+
180
+ declare const plugin$3: {
181
+ install(app: App): void;
182
+ };
183
+
184
+ declare const directive: Directive;
185
+ declare const plugin$2: Plugin;
186
+
187
+ declare const installDirectives: {
188
+ install(app: App): void;
189
+ };
190
+
191
+ interface FilterCurrencyOptions extends Intl.NumberFormatOptions {
192
+ round?: boolean;
193
+ }
194
+ declare const currency: (number: number | string, locale: string, options: FilterCurrencyOptions) => string;
195
+
196
+ declare const capitalize: (value: string) => string;
197
+
198
+ declare const date: (date: string | number | Date, locale: string, options?: Intl.DateTimeFormatOptions) => string;
199
+
200
+ declare const number: (number: number | string, locale: string, options?: Intl.NumberFormatOptions) => string;
201
+
202
+ declare const filters: {
203
+ capitalize: (value: string) => string;
204
+ currency: (number: string | number, locale: string, options: FilterCurrencyOptions) => string;
205
+ date: (date: string | number | Date, locale: string, options?: Intl.DateTimeFormatOptions | undefined) => string;
206
+ number: (number: string | number, locale: string, options?: Intl.NumberFormatOptions | undefined) => string;
207
+ };
208
+ type Filters = typeof filters;
209
+ declare const installFilters: {
210
+ install(app: App): void;
211
+ };
212
+
213
+ type ToasterPositions = 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
214
+ interface ToasterOptions {
215
+ position?: ToasterPositions;
216
+ timeout?: number;
217
+ persistent?: boolean;
218
+ }
219
+
220
+ declare class ToasterHandler {
221
+ private readonly app;
222
+ private readonly globalOptions;
223
+ constructor(app: App, globalOptions: ToasterOptions);
224
+ private show;
225
+ private getLocalOptions;
226
+ success(message: string, options?: ToasterOptions): void;
227
+ error(message: string, options?: ToasterOptions): void;
228
+ info(message: string, options?: ToasterOptions): void;
229
+ warning(message: string, options?: ToasterOptions): void;
230
+ }
231
+
232
+ declare let toastInstance: ToasterHandler;
233
+ declare const installToaster: {
234
+ install(app: App, options?: ToasterOptions): void;
235
+ };
236
+
237
+ type LoaderId = unknown;
238
+
239
+ declare class WaitHandler {
240
+ private _loaders;
241
+ get loaders(): vue.ComputedRef<unknown[]>;
242
+ stop(loaderId?: LoaderId): void;
243
+ start(loaderId?: LoaderId): () => void;
244
+ get anyLoading(): vue.ComputedRef<boolean>;
245
+ isLoading(loaderId?: LoaderId): boolean;
246
+ }
247
+ declare const instance$1: WaitHandler;
248
+ declare const plugin$1: {
249
+ install: (app: App) => void;
250
+ };
251
+
252
+ interface AosOptions {
253
+ routerHook?: (args: any) => () => void;
254
+ router?: Router;
255
+ delay?: number;
256
+ observer?: IntersectionObserverInit;
257
+ animation?: {
258
+ once?: boolean;
259
+ duration?: number;
260
+ };
261
+ }
262
+ interface ClassOptions extends Omit<AosOptions, 'router'> {
263
+ delay: number;
264
+ observer: IntersectionObserverInit & {
265
+ threshold: number | number[];
266
+ rootMargin: string;
267
+ };
268
+ animation: {
269
+ once: boolean;
270
+ duration: number;
271
+ };
272
+ }
273
+ declare class AosHandler {
274
+ options: ClassOptions;
275
+ constructor(options?: Omit<AosOptions, 'router'>);
276
+ runAnimations(): Promise<void> | undefined;
277
+ private handleObserver;
278
+ private handleIntersect;
279
+ }
280
+ declare let instance: AosHandler;
281
+ declare const plugin: {
282
+ install: (app: App, options?: AosOptions) => void;
283
+ };
284
+
285
+ declare const DEFAULT_OPTIONS: {
286
+ darkClass: string;
287
+ storageThemeKey: string;
288
+ storageThemeValueDark: string;
289
+ storageThemeValueLight: string;
290
+ };
291
+ declare const theme: vue.Ref<string | undefined>;
292
+ type StrictThemeHandlerOptions = typeof DEFAULT_OPTIONS;
293
+ type ThemeHandlerOptions = Partial<StrictThemeHandlerOptions>;
294
+ declare const useThemeHandler: (opts?: ThemeHandlerOptions) => {
295
+ autoSetTheme: () => void;
296
+ toggleTheme: () => void;
297
+ setDarkTheme: () => void;
298
+ setLightTheme: () => void;
299
+ hasDarkTheme: vue.ComputedRef<boolean>;
300
+ hasLightTheme: vue.ComputedRef<boolean>;
301
+ theme: vue.Ref<string | undefined>;
302
+ };
303
+
304
+ declare const useInstanceUniqId: ({ componentName, instance, providedId, }: {
305
+ componentName: string;
306
+ instance?: vue.ComponentInternalInstance | null | undefined;
307
+ providedId?: string | undefined;
308
+ }) => {
309
+ instanceId: vue.ComputedRef<string>;
310
+ };
311
+
312
+ declare const useAos: () => {
313
+ aos: AosHandler;
314
+ };
315
+
316
+ declare const useWait: () => {
317
+ wait: WaitHandler;
318
+ };
319
+
320
+ declare const useToast: () => {
321
+ toast: ToasterHandler;
322
+ };
323
+
324
+ declare const useIdleTimeout: ({ callback, options, }: {
325
+ callback: IdleTimeoutCallback;
326
+ options?: Partial<IdleTimeoutStrictOption> | undefined;
327
+ }) => {
328
+ idle: Ref<IdleTimeout>;
329
+ };
330
+
331
+ declare const useUserVisibility: ({ callback, options, }: {
332
+ callback: UserVisibilyCallback;
333
+ options?: Partial<UserVisibilyStrictOptions> | undefined;
334
+ }) => {
335
+ visibility: Ref<UserVisibility>;
336
+ };
337
+
338
+ export { AosHandler, type AosOptions, type FilterCurrencyOptions, type Filters, IdleTimeout, type IdleTimeoutCallback, type IdleTimeoutOptions, ScriptLoader, type ScriptLoaderOptions, type StrictThemeHandlerOptions, type ThemeHandlerOptions, ToasterHandler, type ToasterOptions, type ToasterPositions, type Truthy, UserVisibility, type UserVisibilyCallback, type UserVisibilyOptions, WaitHandler, instance as aosInstance, capitalize, currency, date, debounce, injectStrict, plugin as installAos, installDirectives, installFilters, installToaster, plugin$1 as installWait, isClient, mount, number, sleep, theme, toastInstance, truthyFilter, useAos, useIdleTimeout, useInstanceUniqId, useThemeHandler, useToast, useUserVisibility, useWait, directive$1 as vClickOutside, plugin$5 as vClickOutsideInstall, directive as vClosable, plugin$2 as vClosableInstall, vLazyImg, type vLazyImgBinding, plugin$4 as vLazyImgInstall, type vLazyImgOptions, vZoomImg, type vZoomImgBinding, plugin$3 as vZoomImgInstall, type vZoomImgOptions, instance$1 as waitInstance };
package/modules/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(".m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.m-toast-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container{padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-ce23a6d4],.m-toast *[data-v-ce23a6d4]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-ce23a6d4]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;color:var(--maz-color-white);--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.m-toast.--left[data-v-ce23a6d4],.m-toast.--right[data-v-ce23a6d4]{width:20rem}.m-toast.--center[data-v-ce23a6d4]{width:20rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-ce23a6d4]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-ce23a6d4]{margin:0;font-weight:500}.m-toast .--close[data-v-ce23a6d4]{margin-left:.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;height:1.75rem;width:1.75rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-ce23a6d4]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-ce23a6d4]{height:1.25rem;width:1.25rem;cursor:pointer}.m-toast.--info[data-v-ce23a6d4]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-ce23a6d4]:hover{background-color:var(--maz-color-info-600)}.m-toast.--info .--close[data-v-ce23a6d4]{color:var(--maz-color-info-contrast)}.m-toast.--success[data-v-ce23a6d4]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-ce23a6d4]:hover{background-color:var(--maz-color-success-600)}.m-toast.--success .--close[data-v-ce23a6d4]{color:var(--maz-color-success-contrast)}.m-toast.--warning[data-v-ce23a6d4]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-ce23a6d4]:hover{background-color:var(--maz-color-warning-600)}.m-toast.--warning .--close[data-v-ce23a6d4]{color:var(--maz-color-warning-contrast)}.m-toast.--danger[data-v-ce23a6d4]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-ce23a6d4]:hover{background-color:var(--maz-color-danger-600)}.m-toast.--danger .--close[data-v-ce23a6d4]{color:var(--maz-color-danger-contrast)}.m-slide-top-enter-active[data-v-ce23a6d4],.m-slide-top-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-ce23a6d4],.m-slide-top-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-ce23a6d4],.m-slide-bottom-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-ce23a6d4],.m-slide-bottom-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-ce23a6d4],.m-slide-right-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-ce23a6d4],.m-slide-right-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-ce23a6d4],.m-slide-left-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-ce23a6d4],.m-slide-left-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(".m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.m-toast-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container{padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-5738f7f9],.m-toast *[data-v-5738f7f9]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-5738f7f9]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;color:var(--maz-color-white);--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.m-toast.--left[data-v-5738f7f9],.m-toast.--right[data-v-5738f7f9]{width:20rem}.m-toast.--center[data-v-5738f7f9]{width:20rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-5738f7f9]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-5738f7f9]{margin:0;font-weight:500}.m-toast .--close[data-v-5738f7f9]{margin-left:.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;height:1.75rem;width:1.75rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-5738f7f9]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-5738f7f9]{height:1.25rem;width:1.25rem;cursor:pointer}.m-toast.--info[data-v-5738f7f9]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-5738f7f9]:hover{background-color:var(--maz-color-info-600)}.m-toast.--info .--close[data-v-5738f7f9]{color:var(--maz-color-info-contrast)}.m-toast.--success[data-v-5738f7f9]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-5738f7f9]:hover{background-color:var(--maz-color-success-600)}.m-toast.--success .--close[data-v-5738f7f9]{color:var(--maz-color-success-contrast)}.m-toast.--warning[data-v-5738f7f9]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-5738f7f9]:hover{background-color:var(--maz-color-warning-600)}.m-toast.--warning .--close[data-v-5738f7f9]{color:var(--maz-color-warning-contrast)}.m-toast.--danger[data-v-5738f7f9]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-5738f7f9]:hover{background-color:var(--maz-color-danger-600)}.m-toast.--danger .--close[data-v-5738f7f9]{color:var(--maz-color-danger-contrast)}.m-slide-top-enter-active[data-v-5738f7f9],.m-slide-top-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-5738f7f9],.m-slide-top-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-5738f7f9],.m-slide-bottom-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-5738f7f9],.m-slide-bottom-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-5738f7f9],.m-slide-right-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-5738f7f9],.m-slide-right-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-5738f7f9],.m-slide-left-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-5738f7f9],.m-slide-left-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => {
@@ -887,7 +887,7 @@ class LazyImg {
887
887
  this.onImgErrorCallback = this.imageHasError.bind(this);
888
888
  }
889
889
  async loadErrorPhoto() {
890
- const { default: photo } = await import("./assets/no-photography-7a1e4d68.mjs");
890
+ const { default: photo } = await import("./assets/no-photography-584c6185.mjs");
891
891
  return photo;
892
892
  }
893
893
  buildOptions(opts) {
@@ -1453,7 +1453,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1453
1453
  }
1454
1454
  });
1455
1455
  const MazToast_vue_vue_type_style_index_0_lang = "";
1456
- const MazToast_vue_vue_type_style_index_1_scoped_ce23a6d4_lang = "";
1456
+ const MazToast_vue_vue_type_style_index_1_scoped_5738f7f9_lang = "";
1457
1457
  const _export_sfc = (sfc, props) => {
1458
1458
  const target = sfc.__vccOpts || sfc;
1459
1459
  for (const [key, val] of props) {
@@ -1461,7 +1461,7 @@ const _export_sfc = (sfc, props) => {
1461
1461
  }
1462
1462
  return target;
1463
1463
  };
1464
- const MazToast = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce23a6d4"]]);
1464
+ const MazToast = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5738f7f9"]]);
1465
1465
  class ToasterHandler {
1466
1466
  constructor(app, globalOptions) {
1467
1467
  this.app = app;
@@ -1,2 +1,2 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(".m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.m-toast-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container{padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-ce23a6d4],.m-toast *[data-v-ce23a6d4]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-ce23a6d4]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;color:var(--maz-color-white);--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.m-toast.--left[data-v-ce23a6d4],.m-toast.--right[data-v-ce23a6d4]{width:20rem}.m-toast.--center[data-v-ce23a6d4]{width:20rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-ce23a6d4]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-ce23a6d4]{margin:0;font-weight:500}.m-toast .--close[data-v-ce23a6d4]{margin-left:.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;height:1.75rem;width:1.75rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-ce23a6d4]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-ce23a6d4]{height:1.25rem;width:1.25rem;cursor:pointer}.m-toast.--info[data-v-ce23a6d4]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-ce23a6d4]:hover{background-color:var(--maz-color-info-600)}.m-toast.--info .--close[data-v-ce23a6d4]{color:var(--maz-color-info-contrast)}.m-toast.--success[data-v-ce23a6d4]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-ce23a6d4]:hover{background-color:var(--maz-color-success-600)}.m-toast.--success .--close[data-v-ce23a6d4]{color:var(--maz-color-success-contrast)}.m-toast.--warning[data-v-ce23a6d4]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-ce23a6d4]:hover{background-color:var(--maz-color-warning-600)}.m-toast.--warning .--close[data-v-ce23a6d4]{color:var(--maz-color-warning-contrast)}.m-toast.--danger[data-v-ce23a6d4]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-ce23a6d4]:hover{background-color:var(--maz-color-danger-600)}.m-toast.--danger .--close[data-v-ce23a6d4]{color:var(--maz-color-danger-contrast)}.m-slide-top-enter-active[data-v-ce23a6d4],.m-slide-top-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-ce23a6d4],.m-slide-top-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-ce23a6d4],.m-slide-bottom-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-ce23a6d4],.m-slide-bottom-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-ce23a6d4],.m-slide-right-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-ce23a6d4],.m-slide-right-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-ce23a6d4],.m-slide-left-leave-active[data-v-ce23a6d4]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-ce23a6d4],.m-slide-left-leave-to[data-v-ce23a6d4]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.Vue)}(this,(function(e,t){"use strict";var i=Object.defineProperty,s=(e,t,s)=>(((e,t,s)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);function o(e,i){const s=t.inject(e,i);if(!s)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${e}`);return s}function n(e,{props:i,children:s,element:o,app:n}={}){let r=o;const a=t.createVNode(e,i,s);n&&n._context&&(a.appContext=n._context),r?t.render(a,r):"undefined"!=typeof document&&t.render(a,r=document.createElement("div"));return{vNode:a,destroy:()=>{r&&t.render(null,r)},el:r}}function r(){return"undefined"!=typeof document}class a{constructor(e,t){s(this,"defaultOptions",{element:void 0,timeout:3e5,once:!1,immediate:!0,ssr:!1}),s(this,"options"),s(this,"timeoutHandler"),s(this,"isIdle",!1),s(this,"isDestroy",!1),s(this,"startTime",0),s(this,"remainingTime",0),s(this,"lastClientX",-1),s(this,"lastClientY",-1),s(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]),s(this,"handleEvent",(e=>{try{if(this.remainingTime>0)return;if("mousemove"===e.type){const{clientX:t,clientY:i}=e;if(void 0===t&&void 0===i||t===this.lastClientX&&i===this.lastClientY)return;this.lastClientX=t,this.lastClientY=i}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}})),this.callback=e,this.options={...this.defaultOptions,...t},!this.options.ssr&&r()?this.start():this.options.ssr||r()||console.warn('[IdleTimeout](constructor) executed on server side - set immediate option to "false"')}get element(){return this.options.element??document.body}start(){if(r()){for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}else console.warn("[IdleTimeout](start) you should run this method on client side")}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(r()){this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}else console.warn("[IdleTimeout](destroy) you should run this method on client side")}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class l{constructor(e,t){s(this,"eventHandlerFunction"),s(this,"event","visibilitychange"),s(this,"timeoutHandler"),s(this,"options"),s(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0,ssr:!1}),s(this,"isVisible",!1),this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),!this.options.ssr&&r()?this.start():this.options.ssr||r()||console.warn('[UserVisibility](constructor) executed on server side - set "ssr" option to "false"')}start(){r()?(this.options.immediate&&this.emitCallback(),this.addEventListener()):console.warn("[UserVisibility](start) you should run this method on client side")}emitCallback(){this.isVisible="visible"===document.visibilityState,this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){"visible"!==document.visibilityState||this.isVisible?"hidden"===document.visibilityState&&this.initTimeout():(this.clearTimeout(),this.emitCallback())}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const d="__vue_click_away__",m=()=>null===document.ontouchstart?"touchstart":"click",c=async(e,i)=>{u(e);const s=i.instance,o=i.value,n="function"==typeof o;if(!n)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await t.nextTick(),e[d]=t=>{if((!e||!e.contains(t.target))&&o&&n)return o.call(s,t)};const r=m();document.addEventListener(r,e[d],!1)},u=e=>{const t=m();document.removeEventListener(t,e[d],!1),delete e[d]},h={mounted:c,updated:(e,t)=>{t.value!==t.oldValue&&c(e,t)},unmounted:u},p={install:e=>{e.directive("click-outside",h)}},v=(e,t,i,s)=>{e.stopPropagation();const{handler:o,exclude:n}=i.value;let r=!1;if(n&&n.length>0)for(const a of n)if(!r){r=s.context.$refs[a].contains(e.target)}t.contains(e.target)||r||s.context[o]()},g=()=>null===document.ontouchstart?"touchstart":"click",f={mounted:(e,t,i)=>{const s=g();document.addEventListener(s,(s=>v(s,e,t,i)))},unmounted:(e,t,i)=>{const s=g();document.removeEventListener(s,(s=>v(s,e,t,i)))}},b={install:e=>{e.directive("closable",f)}},y={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};class w{constructor(e){if(s(this,"options"),s(this,"loader"),s(this,"wrapper"),s(this,"img"),s(this,"keydownHandler"),s(this,"onImgLoadedCallback"),s(this,"buttonsAdded"),s(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1}),s(this,"mouseEnterListener"),s(this,"mouseLeaveListener"),s(this,"renderPreviewListener"),!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if("object"==typeof e.value&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,..."object"==typeof e.value?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout((()=>e.classList.add("maz-zoom-img-instance"))),e.setAttribute("data-src",this.options.src),this.options.alt&&e.setAttribute("data-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-src"),e.removeAttribute("data-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle("\n.maz-zoom-img {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 1rem;\n z-index: 1050;\n background-color: hsla(238, 15%, 40%, 0.7);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n\n.maz-zoom-img,\n.maz-zoom-img * {\n box-sizing: border-box;\n}\n\n.maz-zoom-img .maz-zoom-img__wrapper {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 0;\n min-height: 0;\n max-width: 100%;\n max-height: 100%;\n transition: all 300ms ease-in-out;\n opacity: 0;\n transform: scale(0.5);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {\n opacity: 1;\n transform: scale(1);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: hsla(238, 15%, 40%, 0.7);\n border-radius: 1rem;\n z-index: 2;\n min-width: 60px;\n min-height: 60px;\n}\n.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {\n display: none;\n}\n\n@-webkit-keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {\n animation: spin .6s linear infinite;\n}\n\n.maz-zoom-img img {\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n border-radius: 1rem;\n}\n\n.maz-zoom-img .maz-zoom-btn {\n margin: 0 auto;\n border: none;\n background-color: hsla(0, 0%, 7%, 0.5);\n box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);\n height: 2.2rem;\n min-height: 2.2rem;\n width: 2.2rem;\n min-width: 2.2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 2.2rem;\n cursor: pointer;\n flex: 0 0 auto;\n outline: none;\n}\n\n.maz-zoom-img .maz-zoom-btn svg {\n fill: white;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {\n position: absolute;\n left: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {\n position: absolute;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn:hover {\n background-color: hsl(0, 0%, 0%);\n}");const i=document.createElement("div");i.classList.add("maz-zoom-img"),i.setAttribute("id","MazImgPreviewFullsize"),i.addEventListener("click",(e=>{i.isEqualNode(e.target)&&this.closePreview()})),"object"==typeof t&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),i.append(this.wrapper),document.body.append(i),this.keyboardEventHandler(!0),setTimeout((()=>{i&&i.classList.add("maz-animate")}),100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],i=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,i){const e=this.getButton("previous"),i=this.getButton("next");t.push(e,i)}this.wrapper.append(e),i&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=y.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),"Escape"!==e.key&&" "!==e.key||this.closePreview(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||this.nextPreviousImage("ArrowRight"===e.key)}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=y[e],t.addEventListener("click",(()=>{"close"===e?this.closePreview():this.allInstances&&this.nextPreviousImage("next"===e)})),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),i=document.querySelector(".maz-zoom-img-instance.maz-is-open");i&&i.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout((()=>{e&&e.remove(),t&&t.remove()}),300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,i=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(i){const e=this.allInstances.indexOf(i),s=t?e+1:e-1,o=this.allInstances[this.getNewInstanceIndex(s)];o&&this.useNextInstance(i,o)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const i=t.getAttribute("data-src"),s=t.getAttribute("data-alt");this.wrapper.style.width="",this.loader.hidden=!1,i&&this.img.setAttribute("src",i),s&&this.img.setAttribute("alt",s)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let z;const L={created(e,t){z=new w(t),z.create(e)},updated(e,t){z.update(t)},unmounted(e){z.remove(e)}},I={install(e){e.directive("zoom-img",L)}},E={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class T{constructor(e={}){s(this,"observers",[]),s(this,"defaultOptions",E),s(this,"options"),s(this,"onImgLoadedCallback"),s(this,"onImgErrorCallback"),s(this,"hasImgLoaded",!1),this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then((()=>ge));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,i;this.addClass(e,this.options.loadingClass),null==(i=(t=this.options).onLoading)||i.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,i;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),null==(i=(t=this.options).onLoaded)||i.call(t,e)}imageHasError(e,t){var i,s;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),null==(s=(i=this.options).onError)||s.call(i,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const i=this.getImgElement(e).getAttribute("data-src");if(i)return i;t.value;const s="object"==typeof t.value?t.value.src:t.value;return s||console.warn("[maz-ui][MazLazyImg] src url is not defined"),s}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const i of t){const e=i.getAttribute("data-srcset");e?i.srcset=e:console.warn('[maz-ui][MazLazyImg] the "[data-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return"bg-image"===e.arg}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const s of i)s.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",(()=>this.onImgLoadedCallback(e)),{once:!0}),t.addEventListener("error",(t=>this.onImgErrorCallback(e,t)),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const i=this.getImageUrl(e,t);if(!i)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${i}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,i))}}setImgSrc(e,t){this.getImgElement(e).src=t}handleIntersectionObserver(e,t,i,s){var o,n;this.observers.push(s);for(const r of i)if(r.isIntersecting){if(null==(n=(o=this.options).onIntersecting)||n.call(o,r.target),this.options.observerOnce&&s.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const i=this.options.observerOptions;new IntersectionObserver(((i,s)=>{this.handleIntersectionObserver(e,t,i,s)}),i).observe(e)}async imageHandler(e,t,i){if("update"===i)for await(const s of this.observers)s.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,i){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,i)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error('[MazLazyImg] You can\'t use the "bg-image" mode with "<picture />" element');setTimeout((()=>this.setBaseClass(e)),0),e.getAttribute("src")||this.setImgSrc(e,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const i of this.observers)i.unobserve(e);this.observers=[]}}let k;const C={created(e,t){const i="object"==typeof t.value?t.value:{};k=new T(i),k.add(e,t)},updated(e,t){k.update(e,t)},unmounted(e,t){k.remove(e,t)}},A={install(e,t={}){const i={...E,...t,observerOptions:{...E.observerOptions,...t.observerOptions}},s=new T(i);e.directive("lazy-img",{created:s.add.bind(s),updated:s.update.bind(s),unmounted:s.remove.bind(s)})}},x=[{name:"click-outside",directive:h},{name:"closable",directive:f},{name:"zoom-img",directive:L},{name:"lazy-img",directive:C}],S={install(e){for(const{name:t,directive:i}of x)e.directive(t,i)}},H=e=>e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):"",O={style:"currency",minimumFractionDigits:2,round:!1},P=(e,t,i)=>{const s={...O,...i};((e,t,i)=>{if(void 0===e)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(void 0===i.currency)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")})(e,t,s);try{return((e,t,i)=>{let s=Number(e);return i.round&&(s=Math.floor(s),i.minimumFractionDigits=0),new Intl.NumberFormat(t,i).format(s)})(e,t,s)}catch(o){throw new Error(`[maz-ui](FilterCurrency) ${o}`)}},_={month:"short",day:"numeric",year:"numeric"},M=(e,t,i)=>{if(void 0===t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const s=i??_;try{const i=e instanceof Date?e:new Date(e);return new Intl.DateTimeFormat(t,s).format(i)}catch(o){throw new Error(`[maz-ui](FilterDate) ${o}`)}},D={minimumFractionDigits:2},V=(e,t,i)=>{const s={...D,...i};if(void 0===e)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(t,s).format(Number(e))}catch(o){throw new Error(`[maz-ui](FilterNumber) ${o}`)}},N={capitalize:H,currency:P,date:M,number:V},B={install(e){e.provide("filters",N)}};class q{constructor(e,t){s(this,"callback"),s(this,"delay"),s(this,"timer"),s(this,"startedAt"),this.startedAt=Date.now(),this.callback=e,this.delay=t,this.start()}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.startedAt=Date.now(),this.start()}start(){this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const F={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},$=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];const j={render:function(e,i){return t.openBlock(),t.createElementBlock("svg",F,$)}},U={class:"m-toast__message-wrapper"},Y={class:"m-toast__message"},K={key:0,class:"--close"},R=((e,t)=>{const i=e.__vccOpts||e;for(const[s,o]of t)i[s]=o;return i})(t.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info",validator:e=>["info","success","warning","danger"].includes(e)},message:{type:String,required:!0},persistent:{type:Boolean,default:!1}},emits:["close","click"],setup(e,{emit:i}){const s=e,o=t.ref(),n=t.computed((()=>s.position.includes("top")?"top":"bottom")),r=t.computed((()=>s.position.includes("left")?"left":s.position.includes("right")?"right":"center")),a=t.computed((()=>"center"!==r.value?"right"===r.value?"m-slide-right":"m-slide-left":"top"===n.value?"m-slide-top":"m-slide-bottom")),l=t.ref(!1),d=t.ref(),m=t.ref(),c=`m-toast-container --${n.value} --${r.value}`,u=`.${c.replaceAll(" ",".")}`,h=()=>{if((()=>{const e=document.querySelector(u);return!(!s.queue&&!1===s.maxToasts)&&("number"==typeof s.maxToasts&&e?s.maxToasts<=e.childElementCount:e&&e.childElementCount>0)})())return void(m.value=setTimeout(h,250));const e=document.querySelector(u);o.value&&e&&e.prepend(o.value),l.value=!0,d.value=s.timeout?new q(v,s.timeout):void 0};const p=e=>{d.value&&!s.noPauseOnHover&&(e?d.value.pause():d.value.resume())},v=()=>{d.value&&d.value.stop(),m.value&&clearTimeout(m.value),l.value=!1,setTimeout((()=>{var e;i("close"),null==(e=o.value)||e.remove();const t=document.querySelector(u);t&&!(null==t?void 0:t.hasChildNodes())&&t.remove()}),300)};return t.onMounted((()=>{(()=>{const e=document.querySelector(u);if(!e&&!e){const e=document.body,t=document.createElement("div");t.className=c,e.append(t)}})(),h()})),(d,m)=>(t.openBlock(),t.createBlock(t.Transition,{name:a.value,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"Toaster",ref:o,class:t.normalizeClass(["m-toast",[`--${e.type}`,`--${n.value}`,`--${r.value}`]]),role:"alert",onMouseover:m[0]||(m[0]=e=>p(!0)),onMouseleave:m[1]||(m[1]=e=>p(!1)),onClick:m[2]||(m[2]=e=>(i("click",e),void(s.persistent||v())))},[t.createElementVNode("div",U,[t.createElementVNode("p",Y,t.toDisplayString(e.message),1)]),e.persistent?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("button",K,[t.createVNode(t.unref(j),{class:"--icon"})]))],34),[[t.vShow,l.value]])])),_:1},8,["name"]))}}),[["__scopeId","data-v-ce23a6d4"]]);class W{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const i={...{message:e,...t},...this.globalOptions,...t};n(R,{props:i,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}const X={position:"bottom-right",timeout:1e4,persistent:!0};e.toastInstance=void 0;const G={install(t,i){e.toastInstance=new W(t,{...X,...i}),t.provide("toast",e.toastInstance)}};class Z{constructor(){s(this,"_loaders",t.ref([]))}get loaders(){return t.computed((()=>this._loaders.value))}stop(e=""){var t;this._loaders.value=(t=this._loaders.value,(e="")=>t.filter((t=>t!==e)))(e)}start(e=""){var t;return this._loaders.value=(t=this._loaders.value,(e="")=>(e=>e.filter(((e,t,i)=>t===i.indexOf(e))))([...t,e]))(e),()=>this.stop(e)}get anyLoading(){return t.computed((()=>this._loaders.value.length>0))}isLoading(e=""){return t.computed((()=>{return(t=this._loaders.value,(e="")=>"function"==typeof e?t.findIndex(((...t)=>e(...t)))>-1:t.includes(e))(e);var t})).value}}const Q=new Z,J={install:e=>{e.provide("wait",Q)}},ee=100,te={root:void 0,rootMargin:"0px",threshold:.2},ie={once:!0,duration:300};class se{constructor(e){s(this,"options"),this.options={delay:(null==e?void 0:e.delay)??ee,observer:{...te,...null==e?void 0:e.observer},animation:{...ie,...null==e?void 0:e.animation}}}runAnimations(){if(r())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}async handleObserver(){var e;await(e=this.options.delay,new Promise((t=>setTimeout(t,e))));const t=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const i of document.querySelectorAll("[data-maz-aos]")){const e=i.getAttribute("data-maz-aos-anchor");if(e){const i=document.querySelector(e);i?(i.setAttribute("data-maz-aos-children","true"),t.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${e}"`)}else t.observe(i)}}handleIntersect(e,t){for(const i of e){const e="true"===i.target.getAttribute("data-maz-aos-children"),s=i.target.getAttribute("data-maz-aos")?[i.target]:[];if(e){const e=[...document.querySelectorAll("[data-maz-aos-anchor]")].map((e=>e.getAttribute("data-maz-aos-anchor")===`#${i.target.id}`?e:void 0));for(const t of e)t&&s.push(t)}for(const o of s){const e=o.getAttribute("data-maz-aos-once"),s="string"==typeof e?"true"===e:this.options.animation.once;if("number"==typeof this.options.observer.threshold&&i.intersectionRatio>this.options.observer.threshold){o.getAttribute("data-maz-aos-duration")||(o.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout((()=>{o.style.transitionDuration="0"}),1e3)),o.classList.add("maz-aos-animate"),s&&t.unobserve(o)}else o.classList.remove("maz-aos-animate")}}}}e.aosInstance=void 0;const oe={install:(t,i)=>{e.aosInstance=new se(i),t.provide("aos",e.aosInstance),r()&&((null==i?void 0:i.router)?i.router.afterEach((async()=>{e.aosInstance.runAnimations()})):e.aosInstance.runAnimations())}},ne={darkClass:"dark",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light"},re=t.ref(),ae=({darkClass:e,storageThemeKey:t,storageThemeValueDark:i,setLocalStorageValue:s=!0})=>{document.documentElement.classList.add(e),re.value=i,s&&(localStorage[t]=i)},le=({darkClass:e,storageThemeKey:t,storageThemeValueLight:i,setLocalStorageValue:s=!0})=>{document.documentElement.classList.remove(e),re.value=i,s&&(localStorage[t]=i)},de=({shouldSetDarkMode:e,...t})=>e?ae(t):le(t),me=t.ref(),ce=t.ref(),ue={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},he=[t.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),t.createElementVNode("path",{d:"M8.9 6.07 7.48 4.66 9 3h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16L20 17.17V7h-4.05l-1.83-2H9.88L8.9 6.07zm11.59 17.24L18.17 21H4c-1.1 0-2-.9-2-2V7c0-.59.27-1.12.68-1.49l-2-2L2.1 2.1l19.8 19.8-1.41 1.41zM9.19 12.02c-.11.31-.19.63-.19.98 0 1.66 1.34 3 3 3 .35 0 .67-.08.98-.19l-3.79-3.79zM16.17 19l-1.68-1.68c-.73.43-1.58.68-2.49.68-2.76 0-5-2.24-5-5 0-.91.25-1.76.68-2.49L4.17 7H4v12h12.17zm-1.36-7.02 2.07 2.07c.08-.34.12-.69.12-1.05 0-2.76-2.24-5-5-5-.36 0-.71.04-1.06.12l2.07 2.07c.84.3 1.5.96 1.8 1.79z"},null,-1)];function pe(e,i){return t.openBlock(),t.createElementBlock("svg",ue,he)}const ve={render:pe},ge=Object.freeze(Object.defineProperty({__proto__:null,default:ve,render:pe},Symbol.toStringTag,{value:"Module"}));e.AosHandler=se,e.IdleTimeout=a,e.ScriptLoader=class{constructor({src:e,identifier:t,once:i=!0,async:o=!0,defer:n=!0}){if(s(this,"src"),s(this,"script"),s(this,"once"),s(this,"async"),s(this,"defer"),s(this,"identifier"),"undefined"==typeof window)throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=i,this.async=o,this.defer=n}removeTag(e){var t;"string"==typeof e?null==(t=document.head.querySelector(`[data-identifier="${e}"]`))||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const i of t)this.removeTag(i);return this.injectScript()}injectScript(){const e=window;return new Promise(((t,i)=>{try{const s=document.createElement("script");s.src=this.src,s.async=this.async,s.defer=this.defer,s.dataset.identifier=this.identifier,s.addEventListener("error",(e=>i(new Error(`[ScriptLoader](injectScript) ${e.message}`)))),s.addEventListener("load",(i=>(this.script=i,e[this.identifier]=i,t(i)))),document.head.append(s)}catch(s){throw new Error(`[ScriptLoader](init) ${s}`)}}))}},e.ToasterHandler=W,e.UserVisibility=l,e.WaitHandler=Z,e.capitalize=H,e.currency=P,e.date=M,e.debounce=function(e,t=0,i=!1){let s,o;const n=function(){s&&(clearTimeout(s),o=void 0,s=void 0)},r=function(...r){if(!t)return e.apply(this,r);const a=this,l=i&&!s;return n(),o=function(){e.apply(a,r)},s=setTimeout((function(){if(s=void 0,!l){const e=o;if(o=void 0,void 0!==e)return e()}}),t),l?o():void 0};return r.cancel=n,r.flush=function(){const e=o;n(),e&&e()},r},e.injectStrict=o,e.installAos=oe,e.installDirectives=S,e.installFilters=B,e.installToaster=G,e.installWait=J,e.isClient=r,e.mount=n,e.number=V,e.sleep=e=>new Promise((t=>{setTimeout(t,e)})),e.theme=re,e.truthyFilter=function(e){return!!e},e.useAos=()=>({aos:o("aos")}),e.useIdleTimeout=({callback:e,options:t})=>{const i=new a(e,t);me.value=i;return{idle:me}},e.useInstanceUniqId=({componentName:e,instance:i,providedId:s})=>({instanceId:t.computed((()=>s??`${e}-${null==i?void 0:i.uid}`))}),e.useThemeHandler=(e=ne)=>{const i={...ne,...e};return{autoSetTheme:()=>(e=>{localStorage[e.storageThemeKey]===e.storageThemeValueDark||!(e.storageThemeKey in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae({...e,setLocalStorageValue:!1}):le({...e,setLocalStorageValue:!1})})(i),toggleTheme:()=>(e=>localStorage[e.storageThemeKey]===e.storageThemeValueDark?le(e):ae(e))(i),setDarkTheme:()=>de({...i,shouldSetDarkMode:!0}),setLightTheme:()=>de({...i,shouldSetDarkMode:!1}),hasDarkTheme:t.computed((()=>re.value===i.storageThemeValueDark)),hasLightTheme:t.computed((()=>re.value===i.storageThemeValueLight)),theme:re}},e.useToast=()=>({toast:o("toast")}),e.useUserVisibility=({callback:e,options:t})=>{const i=new l(e,t);ce.value=i;return{visibility:ce}},e.useWait=()=>({wait:o("wait")}),e.vClickOutside=h,e.vClickOutsideInstall=p,e.vClosable=f,e.vClosableInstall=b,e.vLazyImg=C,e.vLazyImgInstall=A,e.vZoomImg=L,e.vZoomImgInstall=I,e.waitInstance=Q,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(".m-toast-container{-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.m-toast-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container{padding:1rem;z-index:1051}.m-toast-container.--top{top:0;display:-webkit-box;display:-ms-flexbox;display:flex}.m-toast-container.--center{width:100%}@media (min-width: 768px){.m-toast-container.--center{position:fixed;left:50%;width:auto;-webkit-transform:translate(-50%,0);transform:translate(-50%)}}.m-toast-container.--bottom{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.m-toast-container.--bottom>:not([hidden])~:not([hidden]){margin-bottom:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-top:calc(.5rem * var(--tw-space-y-reverse))}.m-toast-container.--right{right:0;width:100%}@media (min-width: 768px){.m-toast-container.--right{width:auto}}.m-toast-container.--left{left:0;width:100%}@media (min-width: 768px){.m-toast-container.--left{width:auto}}.m-toast[data-v-5738f7f9],.m-toast *[data-v-5738f7f9]{-webkit-box-sizing:border-box;box-sizing:border-box}.m-toast[data-v-5738f7f9]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-radius:var(--maz-border-radius);padding-left:.5rem;padding-right:.5rem;color:var(--maz-color-white);--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.m-toast.--left[data-v-5738f7f9],.m-toast.--right[data-v-5738f7f9]{width:20rem}.m-toast.--center[data-v-5738f7f9]{width:20rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.m-toast__message-wrapper[data-v-5738f7f9]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;padding-top:.75rem;padding-bottom:.75rem}.m-toast__message[data-v-5738f7f9]{margin:0;font-weight:500}.m-toast .--close[data-v-5738f7f9]{margin-left:.25rem;display:-webkit-box;display:-ms-flexbox;display:flex;height:1.75rem;width:1.75rem;border-radius:var(--maz-border-radius);background-color:transparent;padding:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-toast .--close[data-v-5738f7f9]:hover{background-color:#11182733}.m-toast .--close .--icon[data-v-5738f7f9]{height:1.25rem;width:1.25rem;cursor:pointer}.m-toast.--info[data-v-5738f7f9]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-toast.--info[data-v-5738f7f9]:hover{background-color:var(--maz-color-info-600)}.m-toast.--info .--close[data-v-5738f7f9]{color:var(--maz-color-info-contrast)}.m-toast.--success[data-v-5738f7f9]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-toast.--success[data-v-5738f7f9]:hover{background-color:var(--maz-color-success-600)}.m-toast.--success .--close[data-v-5738f7f9]{color:var(--maz-color-success-contrast)}.m-toast.--warning[data-v-5738f7f9]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-toast.--warning[data-v-5738f7f9]:hover{background-color:var(--maz-color-warning-600)}.m-toast.--warning .--close[data-v-5738f7f9]{color:var(--maz-color-warning-contrast)}.m-toast.--danger[data-v-5738f7f9]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-toast.--danger[data-v-5738f7f9]:hover{background-color:var(--maz-color-danger-600)}.m-toast.--danger .--close[data-v-5738f7f9]{color:var(--maz-color-danger-contrast)}.m-slide-top-enter-active[data-v-5738f7f9],.m-slide-top-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-top-enter-from[data-v-5738f7f9],.m-slide-top-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.m-slide-bottom-enter-active[data-v-5738f7f9],.m-slide-bottom-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(0);transform:translateY(0)}.m-slide-bottom-enter-from[data-v-5738f7f9],.m-slide-bottom-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.m-slide-right-enter-active[data-v-5738f7f9],.m-slide-right-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-right-enter-from[data-v-5738f7f9],.m-slide-right-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateX(100%);transform:translate(100%)}.m-slide-left-enter-active[data-v-5738f7f9],.m-slide-left-leave-active[data-v-5738f7f9]{opacity:1;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateX(0);transform:translate(0)}.m-slide-left-enter-from[data-v-5738f7f9],.m-slide-left-leave-to[data-v-5738f7f9]{opacity:0;-webkit-transform:translateX(-100%);transform:translate(-100%)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.Vue)}(this,(function(e,t){"use strict";var i=Object.defineProperty,s=(e,t,s)=>(((e,t,s)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);function o(e,i){const s=t.inject(e,i);if(!s)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${e}`);return s}function n(e,{props:i,children:s,element:o,app:n}={}){let r=o;const a=t.createVNode(e,i,s);n&&n._context&&(a.appContext=n._context),r?t.render(a,r):"undefined"!=typeof document&&t.render(a,r=document.createElement("div"));return{vNode:a,destroy:()=>{r&&t.render(null,r)},el:r}}function r(){return"undefined"!=typeof document}class a{constructor(e,t){s(this,"defaultOptions",{element:void 0,timeout:3e5,once:!1,immediate:!0,ssr:!1}),s(this,"options"),s(this,"timeoutHandler"),s(this,"isIdle",!1),s(this,"isDestroy",!1),s(this,"startTime",0),s(this,"remainingTime",0),s(this,"lastClientX",-1),s(this,"lastClientY",-1),s(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]),s(this,"handleEvent",(e=>{try{if(this.remainingTime>0)return;if("mousemove"===e.type){const{clientX:t,clientY:i}=e;if(void 0===t&&void 0===i||t===this.lastClientX&&i===this.lastClientY)return;this.lastClientX=t,this.lastClientY=i}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}})),this.callback=e,this.options={...this.defaultOptions,...t},!this.options.ssr&&r()?this.start():this.options.ssr||r()||console.warn('[IdleTimeout](constructor) executed on server side - set immediate option to "false"')}get element(){return this.options.element??document.body}start(){if(r()){for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}else console.warn("[IdleTimeout](start) you should run this method on client side")}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(r()){this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}else console.warn("[IdleTimeout](destroy) you should run this method on client side")}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class l{constructor(e,t){s(this,"eventHandlerFunction"),s(this,"event","visibilitychange"),s(this,"timeoutHandler"),s(this,"options"),s(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0,ssr:!1}),s(this,"isVisible",!1),this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),!this.options.ssr&&r()?this.start():this.options.ssr||r()||console.warn('[UserVisibility](constructor) executed on server side - set "ssr" option to "false"')}start(){r()?(this.options.immediate&&this.emitCallback(),this.addEventListener()):console.warn("[UserVisibility](start) you should run this method on client side")}emitCallback(){this.isVisible="visible"===document.visibilityState,this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){"visible"!==document.visibilityState||this.isVisible?"hidden"===document.visibilityState&&this.initTimeout():(this.clearTimeout(),this.emitCallback())}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}const d="__vue_click_away__",m=()=>null===document.ontouchstart?"touchstart":"click",c=async(e,i)=>{u(e);const s=i.instance,o=i.value,n="function"==typeof o;if(!n)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await t.nextTick(),e[d]=t=>{if((!e||!e.contains(t.target))&&o&&n)return o.call(s,t)};const r=m();document.addEventListener(r,e[d],!1)},u=e=>{const t=m();document.removeEventListener(t,e[d],!1),delete e[d]},h={mounted:c,updated:(e,t)=>{t.value!==t.oldValue&&c(e,t)},unmounted:u},g={install:e=>{e.directive("click-outside",h)}},p=(e,t,i,s)=>{e.stopPropagation();const{handler:o,exclude:n}=i.value;let r=!1;if(n&&n.length>0)for(const a of n)if(!r){r=s.context.$refs[a].contains(e.target)}t.contains(e.target)||r||s.context[o]()},v=()=>null===document.ontouchstart?"touchstart":"click",w={mounted:(e,t,i)=>{const s=v();document.addEventListener(s,(s=>p(s,e,t,i)))},unmounted:(e,t,i)=>{const s=v();document.removeEventListener(s,(s=>p(s,e,t,i)))}},b={install:e=>{e.directive("closable",w)}},f={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};class y{constructor(e){if(s(this,"options"),s(this,"loader"),s(this,"wrapper"),s(this,"img"),s(this,"keydownHandler"),s(this,"onImgLoadedCallback"),s(this,"buttonsAdded"),s(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1}),s(this,"mouseEnterListener"),s(this,"mouseLeaveListener"),s(this,"renderPreviewListener"),!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if("object"==typeof e.value&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,..."object"==typeof e.value?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout((()=>e.classList.add("maz-zoom-img-instance"))),e.setAttribute("data-src",this.options.src),this.options.alt&&e.setAttribute("data-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-src"),e.removeAttribute("data-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle("\n.maz-zoom-img {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 1rem;\n z-index: 1050;\n background-color: hsla(238, 15%, 40%, 0.7);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n\n.maz-zoom-img,\n.maz-zoom-img * {\n box-sizing: border-box;\n}\n\n.maz-zoom-img .maz-zoom-img__wrapper {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 0;\n min-height: 0;\n max-width: 100%;\n max-height: 100%;\n transition: all 300ms ease-in-out;\n opacity: 0;\n transform: scale(0.5);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {\n opacity: 1;\n transform: scale(1);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: hsla(238, 15%, 40%, 0.7);\n border-radius: 1rem;\n z-index: 2;\n min-width: 60px;\n min-height: 60px;\n}\n.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {\n display: none;\n}\n\n@-webkit-keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {\n animation: spin .6s linear infinite;\n}\n\n.maz-zoom-img img {\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n border-radius: 1rem;\n}\n\n.maz-zoom-img .maz-zoom-btn {\n margin: 0 auto;\n border: none;\n background-color: hsla(0, 0%, 7%, 0.5);\n box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);\n height: 2.2rem;\n min-height: 2.2rem;\n width: 2.2rem;\n min-width: 2.2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 2.2rem;\n cursor: pointer;\n flex: 0 0 auto;\n outline: none;\n}\n\n.maz-zoom-img .maz-zoom-btn svg {\n fill: white;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {\n position: absolute;\n left: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {\n position: absolute;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn:hover {\n background-color: hsl(0, 0%, 0%);\n}");const i=document.createElement("div");i.classList.add("maz-zoom-img"),i.setAttribute("id","MazImgPreviewFullsize"),i.addEventListener("click",(e=>{i.isEqualNode(e.target)&&this.closePreview()})),"object"==typeof t&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),i.append(this.wrapper),document.body.append(i),this.keyboardEventHandler(!0),setTimeout((()=>{i&&i.classList.add("maz-animate")}),100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],i=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,i){const e=this.getButton("previous"),i=this.getButton("next");t.push(e,i)}this.wrapper.append(e),i&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=f.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),"Escape"!==e.key&&" "!==e.key||this.closePreview(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||this.nextPreviousImage("ArrowRight"===e.key)}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=f[e],t.addEventListener("click",(()=>{"close"===e?this.closePreview():this.allInstances&&this.nextPreviousImage("next"===e)})),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),i=document.querySelector(".maz-zoom-img-instance.maz-is-open");i&&i.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout((()=>{e&&e.remove(),t&&t.remove()}),300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,i=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(i){const e=this.allInstances.indexOf(i),s=t?e+1:e-1,o=this.allInstances[this.getNewInstanceIndex(s)];o&&this.useNextInstance(i,o)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const i=t.getAttribute("data-src"),s=t.getAttribute("data-alt");this.wrapper.style.width="",this.loader.hidden=!1,i&&this.img.setAttribute("src",i),s&&this.img.setAttribute("alt",s)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let L;const z={created(e,t){L=new y(t),L.create(e)},updated(e,t){L.update(t)},unmounted(e){L.remove(e)}},I={install(e){e.directive("zoom-img",z)}},T={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class E{constructor(e={}){s(this,"observers",[]),s(this,"defaultOptions",T),s(this,"options"),s(this,"onImgLoadedCallback"),s(this,"onImgErrorCallback"),s(this,"hasImgLoaded",!1),this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then((()=>ue));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,i;this.addClass(e,this.options.loadingClass),null==(i=(t=this.options).onLoading)||i.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,i;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),null==(i=(t=this.options).onLoaded)||i.call(t,e)}imageHasError(e,t){var i,s;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),null==(s=(i=this.options).onError)||s.call(i,e),this.setDefaultPhoto(e)}getImageUrl(e,t){const i=this.getImgElement(e).getAttribute("data-src");if(i)return i;t.value;const s="object"==typeof t.value?t.value.src:t.value;return s||console.warn("[maz-ui][MazLazyImg] src url is not defined"),s}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const i of t){const e=i.getAttribute("data-srcset");e?i.srcset=e:console.warn('[maz-ui][MazLazyImg] the "[data-srcset]" attribute is not provided on "<source />"')}else console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(e)}hasBgImgMode(e){return"bg-image"===e.arg}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.errorPhoto??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const s of i)s.srcset=t;else this.setImgSrc(e,t)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",(()=>this.onImgLoadedCallback(e)),{once:!0}),t.addEventListener("error",(t=>this.onImgErrorCallback(e,t)),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const i=this.getImageUrl(e,t);if(!i)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${i}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,i))}}setImgSrc(e,t){this.getImgElement(e).src=t}handleIntersectionObserver(e,t,i,s){var o,n;this.observers.push(s);for(const r of i)if(r.isIntersecting){if(null==(n=(o=this.options).onIntersecting)||n.call(o,r.target),this.options.observerOnce&&s.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const i=this.options.observerOptions;new IntersectionObserver(((i,s)=>{this.handleIntersectionObserver(e,t,i,s)}),i).observe(e)}async imageHandler(e,t,i){if("update"===i)for await(const s of this.observers)s.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,i){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,i)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error('[MazLazyImg] You can\'t use the "bg-image" mode with "<picture />" element');setTimeout((()=>this.setBaseClass(e)),0),e.getAttribute("src")||this.setImgSrc(e,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const i of this.observers)i.unobserve(e);this.observers=[]}}let M;const C={created(e,t){const i="object"==typeof t.value?t.value:{};M=new E(i),M.add(e,t)},updated(e,t){M.update(e,t)},unmounted(e,t){M.remove(e,t)}},A={install(e,t={}){const i={...T,...t,observerOptions:{...T.observerOptions,...t.observerOptions}},s=new E(i);e.directive("lazy-img",{created:s.add.bind(s),updated:s.update.bind(s),unmounted:s.remove.bind(s)})}},k=[{name:"click-outside",directive:h},{name:"closable",directive:w},{name:"zoom-img",directive:z},{name:"lazy-img",directive:C}],x={install(e){for(const{name:t,directive:i}of k)e.directive(t,i)}},S=e=>e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):"",D={style:"currency",minimumFractionDigits:2,round:!1},O=(e,t,i)=>{const s={...D,...i};((e,t,i)=>{if(void 0===e)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(void 0===i.currency)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")})(e,t,s);try{return((e,t,i)=>{let s=Number(e);return i.round&&(s=Math.floor(s),i.minimumFractionDigits=0),new Intl.NumberFormat(t,i).format(s)})(e,t,s)}catch(o){throw new Error(`[maz-ui](FilterCurrency) ${o}`)}},N={month:"short",day:"numeric",year:"numeric"},j=(e,t,i)=>{if(void 0===t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const s=i??N;try{const i=e instanceof Date?e:new Date(e);return new Intl.DateTimeFormat(t,s).format(i)}catch(o){throw new Error(`[maz-ui](FilterDate) ${o}`)}},H={minimumFractionDigits:2},P=(e,t,i)=>{const s={...H,...i};if(void 0===e)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(t,s).format(Number(e))}catch(o){throw new Error(`[maz-ui](FilterNumber) ${o}`)}},_={capitalize:S,currency:O,date:j,number:P},V={install(e){e.provide("filters",_)}};class B{constructor(e,t){s(this,"callback"),s(this,"delay"),s(this,"timer"),s(this,"startedAt"),this.startedAt=Date.now(),this.callback=e,this.delay=t,this.start()}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.startedAt=Date.now(),this.start()}start(){this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const q={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},F=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];const $={render:function(e,i){return t.openBlock(),t.createElementBlock("svg",q,F)}},Y={class:"m-toast__message-wrapper"},U={class:"m-toast__message"},Z={key:0,class:"--close"},G=((e,t)=>{const i=e.__vccOpts||e;for(const[s,o]of t)i[s]=o;return i})(t.defineComponent({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info",validator:e=>["info","success","warning","danger"].includes(e)},message:{type:String,required:!0},persistent:{type:Boolean,default:!1}},emits:["close","click"],setup(e,{emit:i}){const s=e,o=t.ref(),n=t.computed((()=>s.position.includes("top")?"top":"bottom")),r=t.computed((()=>s.position.includes("left")?"left":s.position.includes("right")?"right":"center")),a=t.computed((()=>"center"!==r.value?"right"===r.value?"m-slide-right":"m-slide-left":"top"===n.value?"m-slide-top":"m-slide-bottom")),l=t.ref(!1),d=t.ref(),m=t.ref(),c=`m-toast-container --${n.value} --${r.value}`,u=`.${c.replaceAll(" ",".")}`,h=()=>{if((()=>{const e=document.querySelector(u);return!(!s.queue&&!1===s.maxToasts)&&("number"==typeof s.maxToasts&&e?s.maxToasts<=e.childElementCount:e&&e.childElementCount>0)})())return void(m.value=setTimeout(h,250));const e=document.querySelector(u);o.value&&e&&e.prepend(o.value),l.value=!0,d.value=s.timeout?new B(p,s.timeout):void 0};const g=e=>{d.value&&!s.noPauseOnHover&&(e?d.value.pause():d.value.resume())},p=()=>{d.value&&d.value.stop(),m.value&&clearTimeout(m.value),l.value=!1,setTimeout((()=>{var e;i("close"),null==(e=o.value)||e.remove();const t=document.querySelector(u);t&&!(null==t?void 0:t.hasChildNodes())&&t.remove()}),300)};return t.onMounted((()=>{(()=>{const e=document.querySelector(u);if(!e&&!e){const e=document.body,t=document.createElement("div");t.className=c,e.append(t)}})(),h()})),(d,m)=>(t.openBlock(),t.createBlock(t.Transition,{name:a.value,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"Toaster",ref:o,class:t.normalizeClass(["m-toast",[`--${e.type}`,`--${n.value}`,`--${r.value}`]]),role:"alert",onMouseover:m[0]||(m[0]=e=>g(!0)),onMouseleave:m[1]||(m[1]=e=>g(!1)),onClick:m[2]||(m[2]=e=>(i("click",e),void(s.persistent||p())))},[t.createElementVNode("div",Y,[t.createElementVNode("p",U,t.toDisplayString(e.message),1)]),e.persistent?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("button",Z,[t.createVNode(t.unref($),{class:"--icon"})]))],34),[[t.vShow,l.value]])])),_:1},8,["name"]))}}),[["__scopeId","data-v-5738f7f9"]]);class K{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const i={...{message:e,...t},...this.globalOptions,...t};n(G,{props:i,app:this.app})}getLocalOptions(e,t){return{type:e,...t}}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}const R={position:"bottom-right",timeout:1e4,persistent:!0};e.toastInstance=void 0;const Q={install(t,i){e.toastInstance=new K(t,{...R,...i}),t.provide("toast",e.toastInstance)}};class W{constructor(){s(this,"_loaders",t.ref([]))}get loaders(){return t.computed((()=>this._loaders.value))}stop(e=""){var t;this._loaders.value=(t=this._loaders.value,(e="")=>t.filter((t=>t!==e)))(e)}start(e=""){var t;return this._loaders.value=(t=this._loaders.value,(e="")=>(e=>e.filter(((e,t,i)=>t===i.indexOf(e))))([...t,e]))(e),()=>this.stop(e)}get anyLoading(){return t.computed((()=>this._loaders.value.length>0))}isLoading(e=""){return t.computed((()=>{return(t=this._loaders.value,(e="")=>"function"==typeof e?t.findIndex(((...t)=>e(...t)))>-1:t.includes(e))(e);var t})).value}}const J=new W,X={install:e=>{e.provide("wait",J)}},ee=100,te={root:void 0,rootMargin:"0px",threshold:.2},ie={once:!0,duration:300};class se{constructor(e){s(this,"options"),this.options={delay:(null==e?void 0:e.delay)??ee,observer:{...te,...null==e?void 0:e.observer},animation:{...ie,...null==e?void 0:e.animation}}}runAnimations(){if(r())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}async handleObserver(){var e;await(e=this.options.delay,new Promise((t=>setTimeout(t,e))));const t=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const i of document.querySelectorAll("[data-maz-aos]")){const e=i.getAttribute("data-maz-aos-anchor");if(e){const i=document.querySelector(e);i?(i.setAttribute("data-maz-aos-children","true"),t.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${e}"`)}else t.observe(i)}}handleIntersect(e,t){for(const i of e){const e="true"===i.target.getAttribute("data-maz-aos-children"),s=i.target.getAttribute("data-maz-aos")?[i.target]:[];if(e){const e=[...document.querySelectorAll("[data-maz-aos-anchor]")].map((e=>e.getAttribute("data-maz-aos-anchor")===`#${i.target.id}`?e:void 0));for(const t of e)t&&s.push(t)}for(const o of s){const e=o.getAttribute("data-maz-aos-once"),s="string"==typeof e?"true"===e:this.options.animation.once;if("number"==typeof this.options.observer.threshold&&i.intersectionRatio>this.options.observer.threshold){o.getAttribute("data-maz-aos-duration")||(o.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout((()=>{o.style.transitionDuration="0"}),1e3)),o.classList.add("maz-aos-animate"),s&&t.unobserve(o)}else o.classList.remove("maz-aos-animate")}}}}e.aosInstance=void 0;const oe={install:(t,i)=>{e.aosInstance=new se(i),t.provide("aos",e.aosInstance),r()&&((null==i?void 0:i.router)?i.router.afterEach((async()=>{e.aosInstance.runAnimations()})):e.aosInstance.runAnimations())}},ne={darkClass:"dark",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light"},re=t.ref(),ae=({darkClass:e,storageThemeKey:t,storageThemeValueDark:i,setLocalStorageValue:s=!0})=>{document.documentElement.classList.add(e),re.value=i,s&&(localStorage[t]=i)},le=({darkClass:e,storageThemeKey:t,storageThemeValueLight:i,setLocalStorageValue:s=!0})=>{document.documentElement.classList.remove(e),re.value=i,s&&(localStorage[t]=i)},de=({shouldSetDarkMode:e,...t})=>e?ae(t):le(t),me=t.ref(),ce=t.ref(),ue=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB2aWV3Qm94PSIwIDAgMjQgMjQiCiAgc3Ryb2tlPSJub25lIgogIGZpbGw9ImN1cnJlbnRDb2xvciIKICBhcmlhLWhpZGRlbj0idHJ1ZSIKPgogIDxnPgogICAgPHJlY3QgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyNCIgd2lkdGg9IjI0IiAvPgogICAgPGc+CiAgICAgIDxwYXRoCiAgICAgICAgZD0iTTguOSw2LjA3TDcuNDgsNC42Nkw5LDNoNmwxLjgzLDJIMjBjMS4xLDAsMiwwLjksMiwydjEyYzAsMC4wNS0wLjAxLDAuMS0wLjAyLDAuMTZMMjAsMTcuMTdWN2gtNC4wNWwtMS44My0ySDkuODggTDguOSw2LjA3eiBNMjAuNDksMjMuMzFMMTguMTcsMjFINGMtMS4xLDAtMi0wLjktMi0yVjdjMC0wLjU5LDAuMjctMS4xMiwwLjY4LTEuNDlsLTItMkwyLjEsMi4xbDE5LjgsMTkuOEwyMC40OSwyMy4zMXogTTkuMTksMTIuMDJDOS4wOCwxMi4zMyw5LDEyLjY1LDksMTNjMCwxLjY2LDEuMzQsMywzLDNjMC4zNSwwLDAuNjctMC4wOCwwLjk4LTAuMTlMOS4xOSwxMi4wMnogTTE2LjE3LDE5bC0xLjY4LTEuNjggQzEzLjc2LDE3Ljc1LDEyLjkxLDE4LDEyLDE4Yy0yLjc2LDAtNS0yLjI0LTUtNWMwLTAuOTEsMC4yNS0xLjc2LDAuNjgtMi40OUw0LjE3LDdINHYxMkgxNi4xN3ogTTE0LjgxLDExLjk4bDIuMDcsMi4wNyBDMTYuOTYsMTMuNzEsMTcsMTMuMzYsMTcsMTNjMC0yLjc2LTIuMjQtNS01LTVjLTAuMzYsMC0wLjcxLDAuMDQtMS4wNiwwLjEybDIuMDcsMi4wN0MxMy44NSwxMC40OSwxNC41MSwxMS4xNSwxNC44MSwxMS45OHoiCiAgICAgIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"},Symbol.toStringTag,{value:"Module"}));e.AosHandler=se,e.IdleTimeout=a,e.ScriptLoader=class{constructor({src:e,identifier:t,once:i=!0,async:o=!0,defer:n=!0}){if(s(this,"src"),s(this,"script"),s(this,"once"),s(this,"async"),s(this,"defer"),s(this,"identifier"),"undefined"==typeof window)throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=i,this.async=o,this.defer=n}removeTag(e){var t;"string"==typeof e?null==(t=document.head.querySelector(`[data-identifier="${e}"]`))||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const i of t)this.removeTag(i);return this.injectScript()}injectScript(){const e=window;return new Promise(((t,i)=>{try{const s=document.createElement("script");s.src=this.src,s.async=this.async,s.defer=this.defer,s.dataset.identifier=this.identifier,s.addEventListener("error",(e=>i(new Error(`[ScriptLoader](injectScript) ${e.message}`)))),s.addEventListener("load",(i=>(this.script=i,e[this.identifier]=i,t(i)))),document.head.append(s)}catch(s){throw new Error(`[ScriptLoader](init) ${s}`)}}))}},e.ToasterHandler=K,e.UserVisibility=l,e.WaitHandler=W,e.capitalize=S,e.currency=O,e.date=j,e.debounce=function(e,t=0,i=!1){let s,o;const n=function(){s&&(clearTimeout(s),o=void 0,s=void 0)},r=function(...r){if(!t)return e.apply(this,r);const a=this,l=i&&!s;return n(),o=function(){e.apply(a,r)},s=setTimeout((function(){if(s=void 0,!l){const e=o;if(o=void 0,void 0!==e)return e()}}),t),l?o():void 0};return r.cancel=n,r.flush=function(){const e=o;n(),e&&e()},r},e.injectStrict=o,e.installAos=oe,e.installDirectives=x,e.installFilters=V,e.installToaster=Q,e.installWait=X,e.isClient=r,e.mount=n,e.number=P,e.sleep=e=>new Promise((t=>{setTimeout(t,e)})),e.theme=re,e.truthyFilter=function(e){return!!e},e.useAos=()=>({aos:o("aos")}),e.useIdleTimeout=({callback:e,options:t})=>{const i=new a(e,t);me.value=i;return{idle:me}},e.useInstanceUniqId=({componentName:e,instance:i,providedId:s})=>({instanceId:t.computed((()=>s??`${e}-${null==i?void 0:i.uid}`))}),e.useThemeHandler=(e=ne)=>{const i={...ne,...e};return{autoSetTheme:()=>(e=>{localStorage[e.storageThemeKey]===e.storageThemeValueDark||!(e.storageThemeKey in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae({...e,setLocalStorageValue:!1}):le({...e,setLocalStorageValue:!1})})(i),toggleTheme:()=>(e=>localStorage[e.storageThemeKey]===e.storageThemeValueDark?le(e):ae(e))(i),setDarkTheme:()=>de({...i,shouldSetDarkMode:!0}),setLightTheme:()=>de({...i,shouldSetDarkMode:!1}),hasDarkTheme:t.computed((()=>re.value===i.storageThemeValueDark)),hasLightTheme:t.computed((()=>re.value===i.storageThemeValueLight)),theme:re}},e.useToast=()=>({toast:o("toast")}),e.useUserVisibility=({callback:e,options:t})=>{const i=new l(e,t);ce.value=i;return{visibility:ce}},e.useWait=()=>({wait:o("wait")}),e.vClickOutside=h,e.vClickOutsideInstall=g,e.vClosable=w,e.vClosableInstall=b,e.vLazyImg=C,e.vLazyImgInstall=A,e.vZoomImg=z,e.vZoomImgInstall=I,e.waitInstance=J,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.10.0",
3
+ "version": "3.10.2",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.mjs",
@@ -184,6 +184,7 @@
184
184
  "test:unit:coverage": "vitest run --coverage",
185
185
  "test:unit:coverage:watch": "vitest watch --coverage",
186
186
  "test:unit:coverage:master": "vitest run --coverage --changed master",
187
- "pre-commit": "lint-staged"
187
+ "pre-commit": "lint-staged",
188
+ "gen-vue-tsc": "vue-tsc --declaration --emitDeclarationOnly"
188
189
  }
189
190
  }
@@ -1,4 +1,4 @@
1
- @import './../modules/css/index.css';
1
+ @import './../css/index.css';
2
2
  @tailwind base;
3
3
  @tailwind components;
4
4
  @tailwind utilities;