@mythpe/quasar-ui-qui 0.5.10 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MBtn/MBtn.d.ts +26 -30
- package/dist/components/MBtn/index.d.ts +4 -0
- package/dist/components/grid/MCol/MCol.d.ts +23 -0
- package/dist/components/grid/MCol/index.d.ts +4 -0
- package/dist/components/grid/MColumn/MColumn.d.ts +1 -3
- package/dist/components/grid/MColumn/index.d.ts +4 -0
- package/dist/components/grid/MContainer/MContainer.d.ts +1 -3
- package/dist/components/grid/MContainer/index.d.ts +4 -0
- package/dist/components/grid/{MGrid.d.ts → MGrid/MGrid.d.ts} +2 -4
- package/dist/components/grid/MGrid/index.d.ts +4 -0
- package/dist/components/grid/MRow/MRow.d.ts +9 -23
- package/dist/components/grid/MRow/index.d.ts +4 -0
- package/dist/components/grid/index.d.ts +5 -0
- package/dist/components/index.d.ts +9 -19
- package/dist/composables/useMyth.d.ts +21 -21
- package/dist/config/config.d.ts +20 -20
- package/dist/config/grid.d.ts +2 -2
- package/dist/index.common.cjs +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/config.d.ts +2 -0
- package/dist/types/index.d.ts +1 -3
- package/dist/types/utils.d.ts +5 -0
- package/dist/utils/helpers.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -5
- package/package.json +2 -1
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { QBtnProps } from 'quasar';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
import { SpinnerType } from '../../types';
|
|
4
|
+
export interface MBtnProps extends Omit<QBtnProps, 'label'> {
|
|
5
|
+
/**
|
|
6
|
+
* The text that will be shown on the button
|
|
7
|
+
*/
|
|
8
|
+
label?: string | number | undefined | null;
|
|
9
|
+
/**
|
|
10
|
+
* Removes the default button styles
|
|
11
|
+
*/
|
|
8
12
|
noStyle?: boolean;
|
|
13
|
+
nativeLabel?: boolean | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Type of loading indicator
|
|
16
|
+
*/
|
|
17
|
+
spinner?: SpinnerType;
|
|
18
|
+
}
|
|
19
|
+
export interface MBtnSlots {
|
|
20
|
+
/**
|
|
21
|
+
* Use for custom content, instead of relying on 'icon' and 'label' props
|
|
22
|
+
*/
|
|
23
|
+
default: () => VNode[];
|
|
24
|
+
/**
|
|
25
|
+
* Override the default QSpinner when in 'loading' state
|
|
26
|
+
*/
|
|
27
|
+
loading: () => VNode[];
|
|
9
28
|
}
|
|
10
|
-
declare var __VLS_9: {}, __VLS_18: {};
|
|
11
|
-
type __VLS_Slots = {} & {
|
|
12
|
-
loading?: (props: typeof __VLS_9) => any;
|
|
13
|
-
} & {
|
|
14
|
-
default?: (props: typeof __VLS_18) => any;
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_base: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_TypePropsToOption<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: PropType<Required<T>[K]>;
|
|
23
|
-
} : {
|
|
24
|
-
type: PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
-
new (): {
|
|
30
|
-
$slots: S;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MColProps as Props } from '../../..';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption<Props>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: PropType<Required<T>[K]>;
|
|
14
|
+
} : {
|
|
15
|
+
type: PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
2
|
import { MGridProps } from '../MGrid';
|
|
3
3
|
export interface MColumnProps {
|
|
4
4
|
size?: MGridProps['size'];
|
|
@@ -7,5 +7,3 @@ export interface MColumnProps {
|
|
|
7
7
|
export interface MColumnSlots {
|
|
8
8
|
default?: () => VNode[];
|
|
9
9
|
}
|
|
10
|
-
export interface MColumn extends ComponentPublicInstance<MColumnProps> {
|
|
11
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
2
|
import { MGridProps } from '../MGrid';
|
|
3
3
|
export type MContainerProps = {
|
|
4
4
|
/**
|
|
@@ -28,5 +28,3 @@ export type MContainerProps = {
|
|
|
28
28
|
export type MContainerSlots = {
|
|
29
29
|
default?: () => VNode[];
|
|
30
30
|
};
|
|
31
|
-
export interface MContainer extends ComponentPublicInstance<MContainerProps> {
|
|
32
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GridGutterSize, GridGutterType, GridType } from '
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { GridGutterSize, GridGutterType, GridType } from '../../../types';
|
|
3
3
|
export interface MGridProps {
|
|
4
4
|
gridType: GridType;
|
|
5
5
|
size?: GridGutterSize;
|
|
@@ -8,5 +8,3 @@ export interface MGridProps {
|
|
|
8
8
|
export interface MGridSlots {
|
|
9
9
|
default?: () => VNode[];
|
|
10
10
|
}
|
|
11
|
-
export interface MGrid extends ComponentPublicInstance<MGridProps> {
|
|
12
|
-
}
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_TypePropsToOption<T> = {
|
|
12
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
-
type: PropType<Required<T>[K]>;
|
|
14
|
-
} : {
|
|
15
|
-
type: PropType<T[K]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { MGridProps } from '../MGrid';
|
|
3
|
+
export interface MRowProps {
|
|
4
|
+
size?: MGridProps['size'];
|
|
5
|
+
type?: MGridProps['type'];
|
|
6
|
+
}
|
|
7
|
+
export interface MRowSlots {
|
|
8
|
+
default?: () => VNode[];
|
|
9
|
+
}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as MContainer
|
|
3
|
-
import { default as MGrid
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export * from './grid
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './grid/MRow/MRow';
|
|
11
|
-
export * from './MBtn/MBtn';
|
|
12
|
-
export { MBtn, MContainer, MGrid, MColumn, MRow };
|
|
13
|
-
export interface MythGlobalComponents {
|
|
14
|
-
MContainer: GlobalComponentConstructor<MContainerProps, MContainerSlots>;
|
|
15
|
-
MGrid: GlobalComponentConstructor<MGridProps, MGridSlots>;
|
|
16
|
-
MColumn: GlobalComponentConstructor<MColumnProps, MColumnSlots>;
|
|
17
|
-
MRow: GlobalComponentConstructor<MRowProps, MRowSlots>;
|
|
18
|
-
MBtn: GlobalComponentConstructor<MBtnProps, MBtnSlots>;
|
|
19
|
-
}
|
|
1
|
+
import { default as MColumn } from './grid/MColumn/MColumn';
|
|
2
|
+
import { default as MContainer } from './grid/MContainer/MContainer';
|
|
3
|
+
import { default as MGrid } from './grid/MGrid/MGrid';
|
|
4
|
+
import { default as MRow } from './grid/MRow/MRow';
|
|
5
|
+
import { default as MBtn } from './MBtn/MBtn';
|
|
6
|
+
export { MColumn, MContainer, MGrid, MRow };
|
|
7
|
+
export { MBtn };
|
|
8
|
+
export * from './grid';
|
|
9
|
+
export * from './MBtn';
|
|
@@ -22,10 +22,10 @@ export declare function useMyth(): {
|
|
|
22
22
|
readonly padding?: string | undefined | undefined;
|
|
23
23
|
readonly color?: NamedColor | undefined;
|
|
24
24
|
readonly textColor?: NamedColor | undefined;
|
|
25
|
-
readonly noCaps?: boolean | undefined | undefined;
|
|
26
25
|
readonly dense?: boolean | undefined | undefined;
|
|
27
26
|
readonly ripple?: boolean | any | undefined;
|
|
28
27
|
readonly round?: boolean | undefined | undefined;
|
|
28
|
+
readonly noCaps?: boolean | undefined | undefined;
|
|
29
29
|
};
|
|
30
30
|
readonly input: {
|
|
31
31
|
readonly rounded?: boolean | undefined | undefined;
|
|
@@ -3351,8 +3351,10 @@ export declare function useMyth(): {
|
|
|
3351
3351
|
};
|
|
3352
3352
|
readonly component: {
|
|
3353
3353
|
readonly btn?: {
|
|
3354
|
+
readonly stretch?: boolean | undefined | undefined;
|
|
3354
3355
|
readonly replace?: boolean | undefined | undefined;
|
|
3355
3356
|
readonly icon?: string | undefined | undefined;
|
|
3357
|
+
readonly spinner?: SpinnerType | undefined;
|
|
3356
3358
|
readonly iconRight?: string | undefined | undefined;
|
|
3357
3359
|
readonly fab?: boolean | undefined | undefined;
|
|
3358
3360
|
readonly fabMini?: boolean | undefined | undefined;
|
|
@@ -3360,49 +3362,47 @@ export declare function useMyth(): {
|
|
|
3360
3362
|
readonly tabindex?: number | string | undefined | undefined;
|
|
3361
3363
|
readonly align?: "left" | "right" | "center" | "around" | "between" | "evenly" | undefined | undefined;
|
|
3362
3364
|
readonly stack?: boolean | undefined | undefined;
|
|
3363
|
-
readonly stretch?: boolean | undefined | undefined;
|
|
3364
3365
|
readonly loading?: boolean | null | undefined | undefined;
|
|
3365
3366
|
readonly disable?: boolean | undefined | undefined;
|
|
3366
3367
|
readonly percentage?: number | undefined | undefined;
|
|
3367
3368
|
readonly darkPercentage?: boolean | undefined | undefined;
|
|
3368
|
-
readonly spinner?: SpinnerType | undefined;
|
|
3369
|
-
readonly nativeLabel?: boolean | undefined | undefined;
|
|
3370
3369
|
readonly noStyle?: boolean | undefined;
|
|
3370
|
+
readonly nativeLabel?: boolean | undefined | undefined;
|
|
3371
3371
|
} | undefined;
|
|
3372
3372
|
readonly input?: {
|
|
3373
|
-
readonly label?: string | number | undefined | null | undefined;
|
|
3374
3373
|
readonly size?: string | undefined | undefined;
|
|
3375
|
-
readonly type?: string | undefined | undefined;
|
|
3376
|
-
readonly to?: string | any | undefined;
|
|
3377
|
-
readonly replace?: boolean | undefined | undefined;
|
|
3378
|
-
readonly href?: string | undefined | undefined;
|
|
3379
|
-
readonly target?: string | undefined | undefined;
|
|
3380
|
-
readonly icon?: string | undefined | undefined;
|
|
3381
|
-
readonly iconRight?: string | undefined | undefined;
|
|
3382
3374
|
readonly outline?: boolean | undefined | undefined;
|
|
3383
3375
|
readonly flat?: boolean | undefined | undefined;
|
|
3384
3376
|
readonly unelevated?: boolean | undefined | undefined;
|
|
3385
3377
|
readonly push?: boolean | undefined | undefined;
|
|
3386
3378
|
readonly glossy?: boolean | undefined | undefined;
|
|
3387
|
-
readonly fab?: boolean | undefined | undefined;
|
|
3388
|
-
readonly fabMini?: boolean | undefined | undefined;
|
|
3389
3379
|
readonly padding?: string | undefined | undefined;
|
|
3390
3380
|
readonly textColor?: NamedColor | undefined;
|
|
3381
|
+
readonly ripple?: boolean | any | undefined;
|
|
3382
|
+
readonly round?: boolean | undefined | undefined;
|
|
3391
3383
|
readonly noCaps?: boolean | undefined | undefined;
|
|
3384
|
+
readonly stretch?: boolean | undefined | undefined;
|
|
3385
|
+
readonly replace?: boolean | undefined | undefined;
|
|
3386
|
+
readonly icon?: string | undefined | undefined;
|
|
3387
|
+
readonly spinner?: SpinnerType | undefined;
|
|
3388
|
+
readonly label?: string | number | undefined | null | undefined;
|
|
3389
|
+
readonly href?: string | undefined | undefined;
|
|
3390
|
+
readonly to?: string | any | undefined;
|
|
3391
|
+
readonly type?: string | undefined | undefined;
|
|
3392
|
+
readonly target?: string | undefined | undefined;
|
|
3393
|
+
readonly iconRight?: string | undefined | undefined;
|
|
3394
|
+
readonly fab?: boolean | undefined | undefined;
|
|
3395
|
+
readonly fabMini?: boolean | undefined | undefined;
|
|
3392
3396
|
readonly noWrap?: boolean | undefined | undefined;
|
|
3393
|
-
readonly ripple?: boolean | any | undefined;
|
|
3394
3397
|
readonly tabindex?: number | string | undefined | undefined;
|
|
3395
3398
|
readonly align?: "left" | "right" | "center" | "around" | "between" | "evenly" | undefined | undefined;
|
|
3396
3399
|
readonly stack?: boolean | undefined | undefined;
|
|
3397
|
-
readonly stretch?: boolean | undefined | undefined;
|
|
3398
3400
|
readonly loading?: boolean | null | undefined | undefined;
|
|
3399
3401
|
readonly disable?: boolean | undefined | undefined;
|
|
3400
|
-
readonly round?: boolean | undefined | undefined;
|
|
3401
3402
|
readonly percentage?: number | undefined | undefined;
|
|
3402
3403
|
readonly darkPercentage?: boolean | undefined | undefined;
|
|
3403
|
-
readonly spinner?: SpinnerType | undefined;
|
|
3404
|
-
readonly nativeLabel?: boolean | undefined | undefined;
|
|
3405
3404
|
readonly noStyle?: boolean | undefined;
|
|
3405
|
+
readonly nativeLabel?: boolean | undefined | undefined;
|
|
3406
3406
|
} | undefined;
|
|
3407
3407
|
};
|
|
3408
3408
|
readonly loadingOptions?: {
|
|
@@ -3432,10 +3432,10 @@ export declare function useMyth(): {
|
|
|
3432
3432
|
padding?: string | undefined | undefined;
|
|
3433
3433
|
color?: NamedColor | undefined;
|
|
3434
3434
|
textColor?: NamedColor | undefined;
|
|
3435
|
-
noCaps?: boolean | undefined | undefined;
|
|
3436
3435
|
dense?: boolean | undefined | undefined;
|
|
3437
3436
|
ripple?: boolean | any | undefined;
|
|
3438
3437
|
round?: boolean | undefined | undefined;
|
|
3438
|
+
noCaps?: boolean | undefined | undefined;
|
|
3439
3439
|
};
|
|
3440
3440
|
input: {
|
|
3441
3441
|
rounded?: boolean | undefined | undefined;
|
|
@@ -6755,7 +6755,7 @@ export declare function useMyth(): {
|
|
|
6755
6755
|
} | null | undefined)[] | null | undefined;
|
|
6756
6756
|
};
|
|
6757
6757
|
};
|
|
6758
|
-
btnStyle: ComputedRef<Partial<Pick< QBtnProps, "size" | "outline" | "flat" | "unelevated" | "rounded" | "push" | "square" | "glossy" | "padding" | "color" | "textColor" | "
|
|
6758
|
+
btnStyle: ComputedRef<Partial<Pick< QBtnProps, "size" | "outline" | "flat" | "unelevated" | "rounded" | "push" | "square" | "glossy" | "padding" | "color" | "textColor" | "dense" | "ripple" | "round" | "noCaps">>>;
|
|
6759
6759
|
inputStyle: ComputedRef<ThemeInput>;
|
|
6760
6760
|
componentProps: ComputedRef<ComponentConfig>;
|
|
6761
6761
|
__: (key: any, ...rest: any[]) => string;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
import { MythConfig } from '../types
|
|
2
|
+
import { MythConfig } from '../types';
|
|
3
3
|
import { GridGutterType, ClassValueNoArray, SpinnerType } from '..';
|
|
4
4
|
import { NamedColor } from 'quasar';
|
|
5
5
|
import { Globals } from 'csstype';
|
|
@@ -22,10 +22,10 @@ export declare const mythConfig: {
|
|
|
22
22
|
padding?: string | undefined | undefined;
|
|
23
23
|
color?: NamedColor | undefined;
|
|
24
24
|
textColor?: NamedColor | undefined;
|
|
25
|
-
noCaps?: boolean | undefined | undefined;
|
|
26
25
|
dense?: boolean | undefined | undefined;
|
|
27
26
|
ripple?: boolean | any | undefined;
|
|
28
27
|
round?: boolean | undefined | undefined;
|
|
28
|
+
noCaps?: boolean | undefined | undefined;
|
|
29
29
|
};
|
|
30
30
|
input: {
|
|
31
31
|
rounded?: boolean | undefined | undefined;
|
|
@@ -3347,8 +3347,10 @@ export declare const mythConfig: {
|
|
|
3347
3347
|
};
|
|
3348
3348
|
component: {
|
|
3349
3349
|
btn?: {
|
|
3350
|
+
stretch?: boolean | undefined | undefined;
|
|
3350
3351
|
replace?: boolean | undefined | undefined;
|
|
3351
3352
|
icon?: string | undefined | undefined;
|
|
3353
|
+
spinner?: SpinnerType | undefined;
|
|
3352
3354
|
iconRight?: string | undefined | undefined;
|
|
3353
3355
|
fab?: boolean | undefined | undefined;
|
|
3354
3356
|
fabMini?: boolean | undefined | undefined;
|
|
@@ -3356,49 +3358,47 @@ export declare const mythConfig: {
|
|
|
3356
3358
|
tabindex?: number | string | undefined | undefined;
|
|
3357
3359
|
align?: "left" | "right" | "center" | "around" | "between" | "evenly" | undefined | undefined;
|
|
3358
3360
|
stack?: boolean | undefined | undefined;
|
|
3359
|
-
stretch?: boolean | undefined | undefined;
|
|
3360
3361
|
loading?: boolean | null | undefined | undefined;
|
|
3361
3362
|
disable?: boolean | undefined | undefined;
|
|
3362
3363
|
percentage?: number | undefined | undefined;
|
|
3363
3364
|
darkPercentage?: boolean | undefined | undefined;
|
|
3364
|
-
spinner?: SpinnerType | undefined;
|
|
3365
|
-
nativeLabel?: boolean | undefined | undefined;
|
|
3366
3365
|
noStyle?: boolean | undefined;
|
|
3366
|
+
nativeLabel?: boolean | undefined | undefined;
|
|
3367
3367
|
} | undefined;
|
|
3368
3368
|
input?: {
|
|
3369
|
-
label?: string | number | undefined | null | undefined;
|
|
3370
3369
|
size?: string | undefined | undefined;
|
|
3371
|
-
type?: string | undefined | undefined;
|
|
3372
|
-
to?: string | any | undefined;
|
|
3373
|
-
replace?: boolean | undefined | undefined;
|
|
3374
|
-
href?: string | undefined | undefined;
|
|
3375
|
-
target?: string | undefined | undefined;
|
|
3376
|
-
icon?: string | undefined | undefined;
|
|
3377
|
-
iconRight?: string | undefined | undefined;
|
|
3378
3370
|
outline?: boolean | undefined | undefined;
|
|
3379
3371
|
flat?: boolean | undefined | undefined;
|
|
3380
3372
|
unelevated?: boolean | undefined | undefined;
|
|
3381
3373
|
push?: boolean | undefined | undefined;
|
|
3382
3374
|
glossy?: boolean | undefined | undefined;
|
|
3383
|
-
fab?: boolean | undefined | undefined;
|
|
3384
|
-
fabMini?: boolean | undefined | undefined;
|
|
3385
3375
|
padding?: string | undefined | undefined;
|
|
3386
3376
|
textColor?: NamedColor | undefined;
|
|
3377
|
+
ripple?: boolean | any | undefined;
|
|
3378
|
+
round?: boolean | undefined | undefined;
|
|
3387
3379
|
noCaps?: boolean | undefined | undefined;
|
|
3380
|
+
stretch?: boolean | undefined | undefined;
|
|
3381
|
+
replace?: boolean | undefined | undefined;
|
|
3382
|
+
icon?: string | undefined | undefined;
|
|
3383
|
+
spinner?: SpinnerType | undefined;
|
|
3384
|
+
label?: string | number | undefined | null | undefined;
|
|
3385
|
+
href?: string | undefined | undefined;
|
|
3386
|
+
to?: string | any | undefined;
|
|
3387
|
+
type?: string | undefined | undefined;
|
|
3388
|
+
target?: string | undefined | undefined;
|
|
3389
|
+
iconRight?: string | undefined | undefined;
|
|
3390
|
+
fab?: boolean | undefined | undefined;
|
|
3391
|
+
fabMini?: boolean | undefined | undefined;
|
|
3388
3392
|
noWrap?: boolean | undefined | undefined;
|
|
3389
|
-
ripple?: boolean | any | undefined;
|
|
3390
3393
|
tabindex?: number | string | undefined | undefined;
|
|
3391
3394
|
align?: "left" | "right" | "center" | "around" | "between" | "evenly" | undefined | undefined;
|
|
3392
3395
|
stack?: boolean | undefined | undefined;
|
|
3393
|
-
stretch?: boolean | undefined | undefined;
|
|
3394
3396
|
loading?: boolean | null | undefined | undefined;
|
|
3395
3397
|
disable?: boolean | undefined | undefined;
|
|
3396
|
-
round?: boolean | undefined | undefined;
|
|
3397
3398
|
percentage?: number | undefined | undefined;
|
|
3398
3399
|
darkPercentage?: boolean | undefined | undefined;
|
|
3399
|
-
spinner?: SpinnerType | undefined;
|
|
3400
|
-
nativeLabel?: boolean | undefined | undefined;
|
|
3401
3400
|
noStyle?: boolean | undefined;
|
|
3401
|
+
nativeLabel?: boolean | undefined | undefined;
|
|
3402
3402
|
} | undefined;
|
|
3403
3403
|
};
|
|
3404
3404
|
loadingOptions?: {
|
package/dist/config/grid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
import { MContainerProps } from '../components
|
|
3
|
-
import { GridGutterSize, GridGutterType } from '../types
|
|
2
|
+
import { MContainerProps } from '../components';
|
|
3
|
+
import { GridGutterSize, GridGutterType } from '../types';
|
|
4
4
|
export declare const MContainerInjectionKey: InjectionKey<MContainerProps>;
|
|
5
5
|
export declare const DEFAULT_GRID_SIZE: GridGutterSize;
|
|
6
6
|
export declare const DEFAULT_GRID_TYPE: GridGutterType;
|
package/dist/index.common.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,r)=>{let o={};for(var n in e)t(o,n,{get:e[n],enumerable:!0});return r||t(o,Symbol.toStringTag,{value:"Module"}),o},l=(a,s,l)=>(l=null!=a?e(n(a)):{},((e,n,a,s)=>{if(n&&"object"==typeof n||"function"==typeof n)for(var l,c=o(n),u=0,p=c.length;u<p;u++)l=c[u],i.call(e,l)||l===a||t(e,l,{get:(e=>n[e]).bind(null,l),enumerable:!(s=r(n,l))||s.enumerable});return e})(!s&&a&&a.__esModule?l:t(l,"default",{value:a,enumerable:!0}),a));let c=require("vue"),u=require("quasar"),p=require("vue-i18n");var d=Symbol.for("_m__m-container"),m="0.5.9",f=(0,c.reactive)({version:m,theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),g=Symbol.for("_m_"),h=/([\p{Ll}\d])(\p{Lu})/gu,y=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,$=/(\d)\p{Ll}|(\p{L})\d/u,b=/[^\p{L}\d]+/giu,v="$1\0$2";function x(e){let t=e.trim();t=t.replace(h,v).replace(y,v),t=t.replace(b,"\0");let r=0,o=t.length;for(;"\0"===t.charAt(r);)r++;if(r===o)return[];for(;"\0"===t.charAt(o-1);)o--;return t.slice(r,o).split(/\0/g)}function w(e){const t=x(e);for(let r=0;r<t.length;r++){const e=t[r],o=$.exec(e);if(o){const n=o.index+(o[1]??o[2]).length;t.splice(r,1,e.slice(0,n),e.slice(n))}}return t}function S(e,t){const[r,o,n]=B(e,t);return r+o.map(_(t?.locale)).join(t?.delimiter??" ")+n}function C(e,t){const[r,o,n]=B(e,t),i=_(t?.locale),a=A(t?.locale),s=t?.mergeAmbiguousCharacters?M(i,a):j(i,a);return r+o.map((e,t)=>0===t?i(e):s(e,t)).join(t?.delimiter??"")+n}function k(e,t){const[r,o,n]=B(e,t),i=_(t?.locale),a=A(t?.locale),s=t?.mergeAmbiguousCharacters?M(i,a):j(i,a);return r+o.map(s).join(t?.delimiter??"")+n}function O(e,t){return S(e,{delimiter:"-",...t})}function Q(e,t){return S(e,{delimiter:"_",...t})}function _(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function A(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function M(e,t){return r=>`${t(r[0])}${e(r.slice(1))}`}function j(e,t){return(r,o)=>{const n=r[0];return(o>0&&n>="0"&&n<="9"?"_"+n:t(n))+e(r.slice(1))}}function B(e,t={}){const r=t.split??(t.separateNumbers?w:x),o=t.prefixCharacters??"",n=t.suffixCharacters??"";let i=0,a=e.length;for(;i<e.length;){const t=e.charAt(i);if(!o.includes(t))break;i++}for(;a>i;){const t=a-1,r=e.charAt(t);if(!n.includes(r))break;a=t}return[e.slice(0,i),r(e.slice(i,a)),e.slice(a)]}var R=(0,c.defineComponent)({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:()=>!1}},setup(e){const t={QSpinner:u.QSpinner,QSpinnerAudio:u.QSpinnerAudio,QSpinnerBall:u.QSpinnerBall,QSpinnerBars:u.QSpinnerBars,QSpinnerBox:u.QSpinnerBox,QSpinnerClock:u.QSpinnerClock,QSpinnerComment:u.QSpinnerComment,QSpinnerCube:u.QSpinnerCube,QSpinnerDots:u.QSpinnerDots,QSpinnerFacebook:u.QSpinnerFacebook,QSpinnerGears:u.QSpinnerGears,QSpinnerGrid:u.QSpinnerGrid,QSpinnerHearts:u.QSpinnerHearts,QSpinnerHourglass:u.QSpinnerHourglass,QSpinnerInfinity:u.QSpinnerInfinity,QSpinnerIos:u.QSpinnerIos,QSpinnerOrbit:u.QSpinnerOrbit,QSpinnerOval:u.QSpinnerOval,QSpinnerPie:u.QSpinnerPie,QSpinnerPuff:u.QSpinnerPuff,QSpinnerRadio:u.QSpinnerRadio,QSpinnerRings:u.QSpinnerRings,QSpinnerTail:u.QSpinnerTail},{__:r,loadingOptions:o,componentProps:n,btnStyle:i}=V(),a=(0,c.computed)(()=>void 0!==e.spinner?e.spinner:o.value?.type),s=(0,c.computed)(()=>{if(a.value)return"spinner"===a.value?t.QSpinner:t[k(`q-spinner-${a.value}`)]}),l=(0,c.computed)(()=>o.value?.size),p=(0,c.computed)(()=>o.value?.color),d=void 0,m=(0,c.computed)(()=>!0===e.nativeLabel?null===e.label||void 0===e.label?d:String(e.label):void 0===e.label||null===e.label?d:r(e.label)),f=(0,c.computed)(()=>({...e.noStyle?{}:i.value,...n.value.btn||{},ariaLabel:m.value}));return(t,r)=>((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(u.QBtn),(0,c.mergeProps)({loading:e.loading,label:m.value},f.value),(0,c.createSlots)({_:2},[t.$slots.loading?{name:"loading",fn:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"loading")]),key:"0"}:a.value&&s.value?{name:"loading",fn:(0,c.withCtx)(()=>[((0,c.openBlock)(),(0,c.createBlock)((0,c.resolveDynamicComponent)(s.value),{color:p.value,size:l.value},null,8,["color","size"]))]),key:"1"}:void 0,t.$slots.default?{name:"default",fn:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"default")]),key:"2"}:void 0]),1040,["loading","label"]))}}),z=a((e,t)=>{var r,o;r=e,o=function(){var e=[],t=[],r={},o={},n={};function i(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],function(r,o){var n,i,s=(n=t[1],i=arguments,n.replace(/\$(\d{1,2})/g,function(e,t){return i[t]||""}));return a(""===r?e[o-1]:r,s)})}function l(e,t,o){if(!e.length||r.hasOwnProperty(e))return t;for(var n=o.length;n--;){var i=o[n];if(i[0].test(t))return s(t,i)}return t}function c(e,t,r){return function(o){var n=o.toLowerCase();return t.hasOwnProperty(n)?a(o,n):e.hasOwnProperty(n)?a(o,e[n]):l(n,o,r)}}function u(e,t,r,o){return function(o){var n=o.toLowerCase();return!!t.hasOwnProperty(n)||!e.hasOwnProperty(n)&&l(n,n,r)===n}}function p(e,t,r){return(r?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=c(n,o,e),p.isPlural=u(n,o,e),p.singular=c(o,n,t),p.isSingular=u(o,n,t),p.addPluralRule=function(t,r){e.push([i(t),r])},p.addSingularRule=function(e,r){t.push([i(e),r])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):r[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),n[e]=t,o[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof require&&"object"==typeof e&&"object"==typeof t?t.exports=o():"function"==typeof define&&define.amd?define(function(){return o()}):r.pluralize=o()}),L=l(z(),1),P=L.default,T=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),q=e=>null==e||""===e?"":T(e).replace(/,/g,""),F=(e,t=10)=>{const{lighten:r}=u.colors;return r(e,-1*t)},U=(e,t=10)=>{const{lighten:r}=u.colors;return r(e,t)},E=(e,t,r)=>{let o;if((t instanceof File||t instanceof Blob)&&r){const o=t instanceof File?t.name:r;e.append(r,t,o)}else for(const n in t)if(o=t[n],null!=o&&"object"==typeof o){const t=r?r+"["+n+"]":n;Array.isArray(o)&&o.length<1?e.append(`${n}`,""):E(e,o,t)}else!0===o&&(o=1),!1===o&&(o=0),null==o&&(o=""),r?e.append(r+"["+n+"]",o):e.append(n,o);return e},W=e=>(t,r)=>(r??"")+(r&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),I=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},N=async(e,t)=>{await(0,c.nextTick)();const{getScrollTarget:r,setVerticalScrollPosition:o,getVerticalScrollPosition:n}=u.scroll,i="string"==typeof e?document.querySelector(e):e;if(!i)return;await(0,c.nextTick)();const{target:a}=t||{},s=r(i,("string"==typeof a?document.querySelector(a):a)||window.document.documentElement),l=n(s),p=t?.duration||1e3;let d,m=i;try{do{if(d=m.getBoundingClientRect().top,0===d&&!m.parentElement){d=m.scrollTop;break}if(0!==d&&m.parentElement)break;m=m.parentElement}while(m)}catch(g){console.log(g),d="offsetTop"in i&&i?.offsetTop||0}const f=d+l-(100+(t?.offset||0));I(i)||o(s,f,p)},D=e=>[...new Set(e)];function V(){const{t:e,te:t}=(0,p.useI18n)({useScope:"global"}),r=(0,c.inject)(g,f),o=(0,c.readonly)(r),n=(0,c.ref)("MyTh"),i=(0,c.computed)(()=>r.version),a=(0,c.computed)(()=>r.loadingOptions),s=(0,c.reactive)(r.theme),l=(0,c.computed)(()=>r.theme.btn),u=(0,c.computed)(()=>r.theme.input),d=(0,c.computed)(()=>r.component),m=(r,...o)=>{const n=(r=r??"").startsWith(":")&&r.endsWith(":"),i=r.startsWith("{'")&&r.endsWith("'}");if((n||i)&&r.length>2)return n?r.slice(1,-1):r.slice(2,-2);const a=`attributes.${r}`;return t(a)?e(a,...o):t(r)?e(r,...o):e(r)};return{config:o,name:n,version:i,loadingOptions:a,theme:s,btnStyle:l,inputStyle:u,componentProps:d,__:m,pageTitle:(e,r)=>{r??=2;const o=L.singular(e),n=k(e),i=Q(e),a=C(e),s=O(e),l=P(e),c=k(l),u=Q(l),p=C(l),d=O(l),f=D([e,o,n,i,a,s,l,c,u,p,d]),g=D(["routes","attributes"]);for(const h of g)for(const e of f)if(t(`${h}.${e}`))return m(`${h}.${e}`,r);return m(e)}}}var G=((e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r})((0,c.defineComponent)({name:"MContainer",__name:"MContainer",props:{size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}}},setup(e){const{theme:t}=V(),r=(0,c.computed)(()=>"md"!==e.size?e.size:t.gutterSize??"md"),o=(0,c.computed)(()=>"gutter"!==e.type?e.type:t.gutterType??"gutter"),n=(0,c.computed)(()=>e.dense??t.dense??!1),i=(0,c.computed)(()=>e.fluid??t.fluid??!1);return(0,c.provide)(d,(0,c.reactive)({gutterSize:r,gutterType:o,dense:n,fluid:i})),(e,t)=>((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)([{"m-container__fluid":!!i.value,"m-container__dense":!!n.value,"q-pa-none":"none"===r.value,[`q-pa-${r.value||""}`]:r.value&&"none"!==r.value},"m-container"])},[(0,c.renderSlot)(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-cf679b9c"]]),H=(0,c.defineComponent)({name:"MGrid",__name:"MGrid",props:{gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(e){const t=(0,c.inject)(d),{theme:r}=V(),o=(0,c.computed)(()=>void 0!==e.size?e.size:t?.size??r.gutterSize??"md"),n=(0,c.computed)(()=>void 0!==e.type?e.type:t?.type??r.gutterType??"gutter"),i=(0,c.computed)(()=>`q${"col"===e.type?"-col":""}-gutter`);return(t,r)=>((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)({"m-row row":"row"===e.gridType,"m-column column":"column"===e.gridType,[`${i.value}-${o.value}`]:!!n.value&&"none"!==n.value})},[(0,c.renderSlot)(t.$slots,"default")],2))}}),Z=(0,c.defineComponent)({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,r)=>((0,c.openBlock)(),(0,c.createBlock)(H,{"grid-type":"column",size:e.size,type:e.type},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),J=(0,c.defineComponent)({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,r)=>((0,c.openBlock)(),(0,c.createBlock)(H,{"grid-type":"row",size:e.size,type:e.type},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),K=s({MBtn:()=>R,MColumn:()=>Z,MContainer:()=>G,MGrid:()=>H,MRow:()=>J}),X="myth-",Y={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},{testPattern:ee}=u.patterns,te={float:e=>null==e||u.is.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>ee.time(e),fulltime:e=>ee.fulltime(e),timeOrFulltime:e=>ee.timeOrFulltime(e),hexColor:e=>ee.hexColor(e),hexaColor:e=>ee.hexaColor(e),hexOrHexaColor:e=>ee.hexOrHexaColor(e),rgbColor:e=>ee.rgbColor(e),rgbaColor:e=>ee.rgbaColor(e),rgbOrRgbaColor:e=>ee.rgbOrRgbaColor(e),hexOrRgbColor:e=>ee.hexOrRgbColor(e),hexaOrRgbaColor:e=>ee.hexaOrRgbaColor(e),color:e=>!e||ee.anyColor(e),requiredColor:e=>ee.anyColor(e)},{getPaletteColor:re}=u.colors;var oe=!1,ne=(e={})=>{e.theme&&(f.theme?Object.assign(f.theme,e.theme):f.theme=e.theme),e.component&&(f.component?Object.assign(f.component,e.component):f.component=e.component),e.loadingOptions&&(f.loadingOptions?Object.assign(f.loadingOptions,e.loadingOptions):f.loadingOptions=e.loadingOptions)},ie=(e,t={})=>{if(oe)return void(process.env.DEV&&console.warn("Plugin [@mythpe/quasar-ui-qui] already initialized. Skipping configuration injection."));ne(t),e.provide(g,f),Object.entries(K).forEach(([t,r])=>{void 0===e.component(t)&&e.component(t,r)});const r=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=C(e.slice(5));if(t&&t in Y&&Y[t])return{icon:Y[t]}}if("function"==typeof r)return r(e)},oe=!0},ae={version:m,install:ie};exports.MBtn=R,exports.MColumn=Z,exports.MContainer=G,exports.MGrid=H,exports.MRow=J,exports.Stub=(e,t)=>{const r=W(e);return{async index(e){const o=r();return t().get(o,e)},async staticIndex(r){const o="Static"+(e?`/${e}`:"");return t().get(o,r)},export:async(e,o)=>t().post(r("Export"),e,o),exampleUrl:async e=>t().get(r("ExampleUrl"),e),async store(e,o){const n=r(),i=new FormData;return e&&E(i,e),t().post(n,i,o)},async show(e,o){const n=r(e);return t().get(n,o)},async staticShow(r,o){const n=`Static${e?`/${e}`:""}/${r}`;return t().get(n,o)},async update(e,o,n){const i=r(e),a=new FormData;return a.append("_method","put"),o&&E(a,o),t().post(i,a,n)},async clone(e,o,n){const i=r(`${e}/Clone`),a=new FormData;return o&&E(a,o),t().post(i,a,n)},async destroy(e,o){const n=r(e);return t().delete(n,o)},async destroyAll(e,o){const n=r("DestroyAll");return t().post(n,{ids:e||[]},o)},getUploadAttachmentsUrl:e=>r(`${e}/Attachment/Upload`),async uploadAttachments(e,o,n){const i=r(`${e}/Attachment/Upload`);return t().post(i,o,n)},async deleteAttachment(e,o,n){const i=r(`${e}/Attachment/${o}/Delete`);return t().delete(i,n)},async updateAttachment(e,o,n,i){const a=r(`${e}/Attachment/${o}/Update`);return t().post(a,n,i)}}},exports.StubUrl=W,exports.appendArray=E,exports.calculateAspectRatio=(e,t)=>{e=Number(e),t=Number(t);const r=(e,t)=>0===t?e:r(t,e%t),o=r(e,t);return[e/t,`${e/o}:${t/o}`]},exports.camelCase=C,exports.colorIsDark=e=>{const{luminosity:t}=u.colors;return t(e)<.5},exports.colorStyle=(e,t=!1)=>{if(!e)return"";let r=e;return e.startsWith("#")||"transparent"===e||(r=re(e)),`${t?"background-color":"color"}: ${r};`},exports.convertToArabicNumbers=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},exports.copyText=async e=>{const t=null!=e?String(e):"";return await(0,u.copyToClipboard)(t),t},exports.darkenColor=F,exports.default=ae,exports.detectWebPlatform=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"},exports.dimension=e=>{if(!e)return null;const t=e=>null!=e,r=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,o=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,n=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(n)&&t(o)?0===o?null:n/o:t(r)&&t(o)?r*o:t(r)&&t(n)?0===r?null:n/r:null},exports.downloadFromResponse=(e,t)=>new Promise((r,o)=>{const n=e=>o(e??{status:!1,code:"unknown"}),i=e=>r({status:!0,response:e});try{if(!e)return void n({code:"no_response"});if(e?.data?.data?.url){const r=e?.data?.data?.url;if(t)return t(r,e),void i(e);const o=document.createElement("a");return o.setAttribute("href",r),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),void i(e)}const r=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!r)return void n({code:"no_file_name"});const o=new Blob([e.data]),a=window.URL.createObjectURL(o),s=document.createElement("a");if(!s||!a)return void n({code:"no_file_url"});s.href=a,s.setAttribute("download",r),document.body.appendChild(s),s.click(),i(e),setTimeout(()=>{try{document.body.removeChild(s),URL.revokeObjectURL(a)}catch(e){console.log(e),e?.message&&alert(e.message)}},3e3)}catch(a){console.log(a),n(a)}}),exports.flipChoice=e=>{const t={};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r].split("|");o.length>=2?t[r]=[o[1],o[0]].join("|"):t[r]=e[r]}return t},exports.formatMoney=(e="",t="",r)=>{let o="number"!=typeof e?parseFloat(e):e;isNaN(o)&&(o=0);const n={minimumFractionDigits:2,maximumFractionDigits:2,...r||{}};return`${o.toLocaleString("en-US",n)} ${t}`.trim()},exports.fromArabicNumber=T,exports.iconSet=X,exports.icons=Y,exports.install=ie,exports.isElementInViewport=I,exports.isKsaMobile=e=>{if(!e)return!1;const t=T(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},exports.kebabCase=O,exports.lightenColor=U,exports.makeUrl=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},exports.nl2br=(e,t=!1)=>{if(!e)return"";const r=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,r)},exports.openWindow=(e,t,r)=>(0,u.openURL)(e,t,r),exports.pascalCase=k,exports.plural=P,exports.prettyPrint=e=>JSON.stringify(e,null,3).replace(/&/g,"&").replace(/\\"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,r,o,n)=>{let i=t||"";return r&&(i=i+'<span class="json-key" style="color: brown">'+r.replace(/[": ]/g,"")+"</span>: "),o&&(i=i+(o.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+o+"</span>"),i+(n||"")}),exports.scrollToBottom=async(e,t,r)=>{const{setVerticalScrollPosition:o,getScrollHeight:n}=u.scroll;e||(e=window);const i=e&&"string"==typeof e?document.querySelector(e)||window:e;o(i,r=r||n(i),t=t||600)},exports.scrollToElement=N,exports.scrollToElementFromErrors=async(e,t,r)=>{if(!e)return;const o=Object.entries(e),n=o.map(([e])=>e);let i=[];if(o.length>0&&(i=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>n.includes(e?.getAttribute("data-input-name")))),i.length>0)for(const a of i){const e=o.find(e=>e[0]===a.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await N(a||`[name='${t}']`,{target:r});break}}else for(const[a,s]of o)if((s&&Array.isArray(s)?s[0]:s)?.toString?.()?.length){if(t)await N(t,{target:r});else{const e=`[data-input-name='${a}']`;await N(document.querySelector(e)||`[name='${a}']`,{target:r})}break}},exports.setCss=(e,t,r)=>{if((0,u.setCssVar)(e,t,r||document.documentElement),"primary"===e){const e=U(t,50),r=F(t,10);(0,u.setCssVar)("scrollbar-track",e),(0,u.setCssVar)("scrollbar-hover",r)}},exports.setDefaults=ne,exports.shuffle=e=>{const t=[...e||[]];for(let r=t.length-1;r>0;r--){const e=Math.floor(Math.random()*(r+1));[t[r],t[e]]=[t[e],t[r]]}return t},exports.singular=L.singular,exports.snakeCase=Q,exports.sortNumberFormatted=(e,t)=>(parseFloat(q(e).replace(/[^\d.]/g,""))||0)-(parseFloat(q(t).replace(/[^\d.]/g,""))||0),exports.strBefore=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",exports.toAlphaNumerals=(e,t={})=>{const{uppercase:r=!0,startFromZero:o=!1}=t,n=parseInt(e?.toString()||"0",10)||0;if(n<=0&&!o)return"";if(o&&0===n)return r?"A":"a";let i=o?n+1:n,a="";for(;i>0;){i--;const e=i%26+(r?65:97);a=String.fromCharCode(e)+a,i=Math.floor(i/26)}return a},exports.toNumber=q,exports.toNumberFormat=(e=null,t)=>{if(null==e||""===e)return"";const r=q(e).split("."),o=/(\d+)(\d{3})/;for(;o.test(r[0]);)r[0]=r[0].replace(o,"$1,$2");let n=r.join(".");return t&&(n=`${n} ${t}`),n},exports.ucFirst=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},exports.uniq=D,exports.uniqBy=(e,t)=>{const r=new Set;return e.filter(e=>{if(!e)return!1;const o=e[t];return!r.has(o)&&(r.add(o),!0)})},exports.useMyth=V,exports.useMythMeta=function(e,t,r){(0,u.useMeta)(()=>{const o=(0,c.toValue)(e)||"MyTh";return{title:(0,c.toValue)(t)||"",titleTemplate:e=>e&&e!==o?`${o} | ${e}`:o,...(0,c.toValue)(r)||{}}})},exports.veeRules=te,exports.version=m,exports.wordsToSingle=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},exports.wordsWithThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},exports.wordsWithoutThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e};
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e=Object.create,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,o)=>{let r={};for(var n in e)t(r,n,{get:e[n],enumerable:!0});return o||t(r,Symbol.toStringTag,{value:"Module"}),r},l=(a,s,l)=>(l=null!=a?e(n(a)):{},((e,n,a,s)=>{if(n&&"object"==typeof n||"function"==typeof n)for(var l,c=r(n),u=0,p=c.length;u<p;u++)l=c[u],i.call(e,l)||l===a||t(e,l,{get:(e=>n[e]).bind(null,l),enumerable:!(s=o(n,l))||s.enumerable});return e})(!s&&a&&a.__esModule?l:t(l,"default",{value:a,enumerable:!0}),a));let c=require("vue"),u=require("vue-i18n"),p=require("quasar");var d=Symbol.for("_m__m-container"),m="0.5.12",g=(0,c.reactive)({version:m,theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),f=Symbol.for("_m_"),h=a((e,t)=>{var o,r;o=e,r=function(){var e=[],t=[],o={},r={},n={};function i(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],function(o,r){var n,i,s=(n=t[1],i=arguments,n.replace(/\$(\d{1,2})/g,function(e,t){return i[t]||""}));return a(""===o?e[r-1]:o,s)})}function l(e,t,r){if(!e.length||o.hasOwnProperty(e))return t;for(var n=r.length;n--;){var i=r[n];if(i[0].test(t))return s(t,i)}return t}function c(e,t,o){return function(r){var n=r.toLowerCase();return t.hasOwnProperty(n)?a(r,n):e.hasOwnProperty(n)?a(r,e[n]):l(n,r,o)}}function u(e,t,o,r){return function(r){var n=r.toLowerCase();return!!t.hasOwnProperty(n)||!e.hasOwnProperty(n)&&l(n,n,o)===n}}function p(e,t,o){return(o?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=c(n,r,e),p.isPlural=u(n,r,e),p.singular=c(r,n,t),p.isSingular=u(r,n,t),p.addPluralRule=function(t,o){e.push([i(t),o])},p.addSingularRule=function(e,o){t.push([i(e),o])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):o[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),n[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof require&&"object"==typeof e&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define(function(){return r()}):o.pluralize=r()}),y=l(h(),1),$=/([\p{Ll}\d])(\p{Lu})/gu,b=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,v=/(\d)\p{Ll}|(\p{L})\d/u,x=/[^\p{L}\d]+/giu,w="$1\0$2";function S(e){let t=e.trim();t=t.replace($,w).replace(b,w),t=t.replace(x,"\0");let o=0,r=t.length;for(;"\0"===t.charAt(o);)o++;if(o===r)return[];for(;"\0"===t.charAt(r-1);)r--;return t.slice(o,r).split(/\0/g)}function C(e){const t=S(e);for(let o=0;o<t.length;o++){const e=t[o],r=v.exec(e);if(r){const n=r.index+(r[1]??r[2]).length;t.splice(o,1,e.slice(0,n),e.slice(n))}}return t}function k(e,t){const[o,r,n]=R(e,t);return o+r.map(M(t?.locale)).join(t?.delimiter??" ")+n}function O(e,t){const[o,r,n]=R(e,t),i=M(t?.locale),a=A(t?.locale),s=t?.mergeAmbiguousCharacters?j(i,a):z(i,a);return o+r.map((e,t)=>0===t?i(e):s(e,t)).join(t?.delimiter??"")+n}function _(e,t){const[o,r,n]=R(e,t),i=M(t?.locale),a=A(t?.locale),s=t?.mergeAmbiguousCharacters?j(i,a):z(i,a);return o+r.map(s).join(t?.delimiter??"")+n}function B(e,t){return k(e,{delimiter:"-",...t})}function Q(e,t){return k(e,{delimiter:"_",...t})}function M(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function A(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function j(e,t){return o=>`${t(o[0])}${e(o.slice(1))}`}function z(e,t){return(o,r)=>{const n=o[0];return(r>0&&n>="0"&&n<="9"?"_"+n:t(n))+e(o.slice(1))}}function R(e,t={}){const o=t.split??(t.separateNumbers?C:S),r=t.prefixCharacters??"",n=t.suffixCharacters??"";let i=0,a=e.length;for(;i<e.length;){const t=e.charAt(i);if(!r.includes(t))break;i++}for(;a>i;){const t=a-1,o=e.charAt(t);if(!n.includes(o))break;a=t}return[e.slice(0,i),o(e.slice(i,a)),e.slice(a)]}var L=y.default,P=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),T=e=>null==e||""===e?"":P(e).replace(/,/g,""),q=(e,t=10)=>{const{lighten:o}=p.colors;return o(e,-1*t)},F=(e,t=10)=>{const{lighten:o}=p.colors;return o(e,t)},U=(e,t,o)=>{let r;if((t instanceof File||t instanceof Blob)&&o){const r=t instanceof File?t.name:o;e.append(o,t,r)}else for(const n in t)if(r=t[n],null!=r&&"object"==typeof r){const t=o?o+"["+n+"]":n;Array.isArray(r)&&r.length<1?e.append(`${n}`,""):U(e,r,t)}else!0===r&&(r=1),!1===r&&(r=0),null==r&&(r=""),o?e.append(o+"["+n+"]",r):e.append(n,r);return e},E=e=>(t,o)=>(o??"")+(o&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),N=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},W=async(e,t)=>{await(0,c.nextTick)();const{getScrollTarget:o,setVerticalScrollPosition:r,getVerticalScrollPosition:n}=p.scroll,i="string"==typeof e?document.querySelector(e):e;if(!i)return;await(0,c.nextTick)();const{target:a}=t||{},s=o(i,("string"==typeof a?document.querySelector(a):a)||window.document.documentElement),l=n(s),u=t?.duration||1e3;let d,m=i;try{do{if(d=m.getBoundingClientRect().top,0===d&&!m.parentElement){d=m.scrollTop;break}if(0!==d&&m.parentElement)break;m=m.parentElement}while(m)}catch(f){console.log(f),d="offsetTop"in i&&i?.offsetTop||0}const g=d+l-(100+(t?.offset||0));N(i)||r(s,g,u)},I=e=>[...new Set(e)];function D(){const{t:e,te:t}=(0,u.useI18n)({useScope:"global"}),o=(0,c.inject)(f,g),r=(0,c.readonly)(o),n=(0,c.ref)("MyTh"),i=(0,c.computed)(()=>o.version),a=(0,c.computed)(()=>o.loadingOptions),s=(0,c.reactive)(o.theme),l=(0,c.computed)(()=>o.theme.btn),p=(0,c.computed)(()=>o.theme.input),d=(0,c.computed)(()=>o.component),m=(o,...r)=>{const n=(o=o??"").startsWith(":")&&o.endsWith(":"),i=o.startsWith("{'")&&o.endsWith("'}");if((n||i)&&o.length>2)return n?o.slice(1,-1):o.slice(2,-2);const a=`attributes.${o}`;return t(a)?e(a,...r):t(o)?e(o,...r):e(o)};return{config:r,name:n,version:i,loadingOptions:a,theme:s,btnStyle:l,inputStyle:p,componentProps:d,__:m,pageTitle:(e,o)=>{o??=2;const r=y.singular(e),n=_(e),i=Q(e),a=O(e),s=B(e),l=L(e),c=_(l),u=Q(l),p=O(l),d=B(l),g=I([e,r,n,i,a,s,l,c,u,p,d]),f=I(["routes","attributes"]);for(const h of f)for(const e of g)if(t(`${h}.${e}`))return m(`${h}.${e}`,o);return m(e)}}}var V=(0,c.defineComponent)({name:"MGrid",__name:"MGrid",props:{gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(e){const t=(0,c.inject)(d),{theme:o}=D(),r=(0,c.computed)(()=>void 0!==e.size?e.size:t?.size??o.gutterSize??"md"),n=(0,c.computed)(()=>void 0!==e.type?e.type:t?.type??o.gutterType??"gutter"),i=(0,c.computed)(()=>`q${"col"===e.type?"-col":""}-gutter`);return(t,o)=>((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)({"m-row row":"row"===e.gridType,"m-column column":"column"===e.gridType,[`${i.value}-${r.value}`]:!!n.value&&"none"!==n.value})},[(0,c.renderSlot)(t.$slots,"default")],2))}}),G=(0,c.defineComponent)({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,o)=>((0,c.openBlock)(),(0,c.createBlock)(V,{size:e.size,type:e.type,"grid-type":"column"},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),H=((e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o})((0,c.defineComponent)({name:"MContainer",__name:"MContainer",props:{size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}}},setup(e){const{theme:t}=D(),o=(0,c.computed)(()=>"md"!==e.size?e.size:t.gutterSize??"md"),r=(0,c.computed)(()=>"gutter"!==e.type?e.type:t.gutterType??"gutter"),n=(0,c.computed)(()=>e.dense??t.dense??!1),i=(0,c.computed)(()=>e.fluid??t.fluid??!1);return(0,c.provide)(d,(0,c.reactive)({gutterSize:o,gutterType:r,dense:n,fluid:i})),(e,t)=>((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)([{"m-container__fluid":!!i.value,"m-container__dense":!!n.value,"q-pa-none":"none"===o.value,[`q-pa-${o.value||""}`]:o.value&&"none"!==o.value},"m-container"])},[(0,c.renderSlot)(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-cf679b9c"]]),Z=(0,c.defineComponent)({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(t,o)=>((0,c.openBlock)(),(0,c.createBlock)(V,{size:e.size,type:e.type,"grid-type":"row"},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"default")]),_:3},8,["size","type"]))}),J=(0,c.defineComponent)({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:()=>!1}},setup(e){const t={QSpinner:p.QSpinner,QSpinnerAudio:p.QSpinnerAudio,QSpinnerBall:p.QSpinnerBall,QSpinnerBars:p.QSpinnerBars,QSpinnerBox:p.QSpinnerBox,QSpinnerClock:p.QSpinnerClock,QSpinnerComment:p.QSpinnerComment,QSpinnerCube:p.QSpinnerCube,QSpinnerDots:p.QSpinnerDots,QSpinnerFacebook:p.QSpinnerFacebook,QSpinnerGears:p.QSpinnerGears,QSpinnerGrid:p.QSpinnerGrid,QSpinnerHearts:p.QSpinnerHearts,QSpinnerHourglass:p.QSpinnerHourglass,QSpinnerInfinity:p.QSpinnerInfinity,QSpinnerIos:p.QSpinnerIos,QSpinnerOrbit:p.QSpinnerOrbit,QSpinnerOval:p.QSpinnerOval,QSpinnerPie:p.QSpinnerPie,QSpinnerPuff:p.QSpinnerPuff,QSpinnerRadio:p.QSpinnerRadio,QSpinnerRings:p.QSpinnerRings,QSpinnerTail:p.QSpinnerTail},{__:o,loadingOptions:r,componentProps:n,btnStyle:i}=D(),a=(0,c.computed)(()=>void 0!==e.spinner?e.spinner:r.value?.type),s=(0,c.computed)(()=>{if(a.value)return"spinner"===a.value?t.QSpinner:t[_(`q-spinner-${a.value}`)]}),l=(0,c.computed)(()=>r.value?.size),u=(0,c.computed)(()=>r.value?.color),d=void 0,m=(0,c.computed)(()=>!0===e.nativeLabel?null===e.label||void 0===e.label?d:String(e.label):void 0===e.label||null===e.label?d:o(e.label)),g=(0,c.computed)(()=>({...e.noStyle?{}:i.value,...n.value.btn||{},ariaLabel:m.value}));return(t,o)=>((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(p.QBtn),(0,c.mergeProps)({label:m.value,loading:e.loading},g.value),(0,c.createSlots)({_:2},[t.$slots.loading?{name:"loading",fn:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"loading")]),key:"0"}:a.value&&s.value?{name:"loading",fn:(0,c.withCtx)(()=>[((0,c.openBlock)(),(0,c.createBlock)((0,c.resolveDynamicComponent)(s.value),{color:u.value,size:l.value},null,8,["color","size"]))]),key:"1"}:void 0,t.$slots.default?{name:"default",fn:(0,c.withCtx)(()=>[(0,c.renderSlot)(t.$slots,"default")]),key:"2"}:void 0]),1040,["label","loading"]))}}),K="myth-",X={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},{testPattern:Y}=p.patterns,ee={float:e=>null==e||p.is.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>Y.time(e),fulltime:e=>Y.fulltime(e),timeOrFulltime:e=>Y.timeOrFulltime(e),hexColor:e=>Y.hexColor(e),hexaColor:e=>Y.hexaColor(e),hexOrHexaColor:e=>Y.hexOrHexaColor(e),rgbColor:e=>Y.rgbColor(e),rgbaColor:e=>Y.rgbaColor(e),rgbOrRgbaColor:e=>Y.rgbOrRgbaColor(e),hexOrRgbColor:e=>Y.hexOrRgbColor(e),hexaOrRgbaColor:e=>Y.hexaOrRgbaColor(e),color:e=>!e||Y.anyColor(e),requiredColor:e=>Y.anyColor(e)},{getPaletteColor:te}=p.colors,oe=["data-input-name"],re=(0,c.defineComponent)({name:"MCol",__name:"MCol",props:{name:{},auto:{type:Boolean},shrink:{type:Boolean},grow:{type:Boolean},col:{type:[Boolean,String,Number]},xs:{type:[Boolean,String,Number]},sm:{type:[Boolean,String,Number]},md:{type:[Boolean,String,Number]},lg:{type:[Boolean,String,Number]},xl:{type:[Boolean,String,Number]},xxl:{type:[Boolean,String,Number]}},setup(e){const t=e,o=(0,c.computed)(()=>{const e=["m-col"];!1!==t.auto&&void 0!==t.auto&&e.push("col-auto"),!1!==t.shrink&&void 0!==t.shrink&&e.push("col-shrink"),!1!==t.grow&&void 0!==t.grow&&e.push("col-grow"),"grow"===t.col?e.push("col-grow"):"shrink"===t.col?e.push("col-shrink"):"string"!=typeof t.col&&"number"!=typeof t.col||t.col?.toString()?.trim()?.length>0&&!e.includes(`col-${t.col}`)&&e.push(`col-${t.col}`);for(const o of["xs","sm","md","lg","xl","xxl"])t[o]&&"boolean"!=typeof t[o]&&(e.includes(`col-${o}-${t[o]}`)||e.push(`col-${o}-${t[o]}`));return 1===e.length&&!1!==t.col&&void 0!==t.col&&e.push("col"),I(e)});return(t,r)=>((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)(o.value),"data-input-name":e.name??void 0},[(0,c.renderSlot)(t.$slots,"default")],10,oe))}}),ne=s({MBtn:()=>J,MCol:()=>re,MColumn:()=>G,MContainer:()=>H,MGrid:()=>V,MRow:()=>Z});var ie=!1,ae=(e={})=>{e.theme&&(g.theme?Object.assign(g.theme,e.theme):g.theme=e.theme),e.component&&(g.component?Object.assign(g.component,e.component):g.component=e.component),e.loadingOptions&&(g.loadingOptions?Object.assign(g.loadingOptions,e.loadingOptions):g.loadingOptions=e.loadingOptions)},se=(e,t={})=>{if(ie)return void(process.env.DEV&&console.warn("Plugin [@mythpe/quasar-ui-qui] already initialized. Skipping configuration injection."));ae(t),e.provide(f,g),Object.entries(ne).forEach(([t,o])=>{void 0===e.component(t)&&e.component(t,o)});const o=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=O(e.slice(5));if(t&&t in X&&X[t])return{icon:X[t]}}if("function"==typeof o)return o(e)},ie=!0},le={version:m,install:se};exports.MBtn=J,exports.MCol=re,exports.MColumn=G,exports.MContainer=H,exports.MGrid=V,exports.MRow=Z,exports.Stub=(e,t)=>{const o=E(e);return{async index(e){const r=o();return t().get(r,e)},async staticIndex(o){const r="Static"+(e?`/${e}`:"");return t().get(r,o)},export:async(e,r)=>t().post(o("Export"),e,r),exampleUrl:async e=>t().get(o("ExampleUrl"),e),async store(e,r){const n=o(),i=new FormData;return e&&U(i,e),t().post(n,i,r)},async show(e,r){const n=o(e);return t().get(n,r)},async staticShow(o,r){const n=`Static${e?`/${e}`:""}/${o}`;return t().get(n,r)},async update(e,r,n){const i=o(e),a=new FormData;return a.append("_method","put"),r&&U(a,r),t().post(i,a,n)},async clone(e,r,n){const i=o(`${e}/Clone`),a=new FormData;return r&&U(a,r),t().post(i,a,n)},async destroy(e,r){const n=o(e);return t().delete(n,r)},async destroyAll(e,r){const n=o("DestroyAll");return t().post(n,{ids:e||[]},r)},getUploadAttachmentsUrl:e=>o(`${e}/Attachment/Upload`),async uploadAttachments(e,r,n){const i=o(`${e}/Attachment/Upload`);return t().post(i,r,n)},async deleteAttachment(e,r,n){const i=o(`${e}/Attachment/${r}/Delete`);return t().delete(i,n)},async updateAttachment(e,r,n,i){const a=o(`${e}/Attachment/${r}/Update`);return t().post(a,n,i)}}},exports.StubUrl=E,exports.appendArray=U,exports.calculateAspectRatio=(e,t)=>{e=Number(e),t=Number(t);const o=(e,t)=>0===t?e:o(t,e%t),r=o(e,t);return[e/t,`${e/r}:${t/r}`]},exports.camelCase=O,exports.colorIsDark=e=>{const{luminosity:t}=p.colors;return t(e)<.5},exports.colorStyle=(e,t=!1)=>{if(!e)return"";let o=e;return e.startsWith("#")||"transparent"===e||(o=te(e)),`${t?"background-color":"color"}: ${o};`},exports.convertToArabicNumbers=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},exports.copyText=async e=>{const t=null!=e?String(e):"";return await(0,p.copyToClipboard)(t),t},exports.darkenColor=q,exports.default=le,exports.detectWebPlatform=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"},exports.dimension=e=>{if(!e)return null;const t=e=>null!=e,o=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,r=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,n=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(n)&&t(r)?0===r?null:n/r:t(o)&&t(r)?o*r:t(o)&&t(n)?0===o?null:n/o:null},exports.downloadFromResponse=(e,t)=>new Promise((o,r)=>{const n=e=>r(e??{status:!1,code:"unknown"}),i=e=>o({status:!0,response:e});try{if(!e)return void n({code:"no_response"});if(e?.data?.data?.url){const o=e?.data?.data?.url;if(t)return t(o,e),void i(e);const r=document.createElement("a");return r.setAttribute("href",o),r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),void i(e)}const o=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!o)return void n({code:"no_file_name"});const r=new Blob([e.data]),a=window.URL.createObjectURL(r),s=document.createElement("a");if(!s||!a)return void n({code:"no_file_url"});s.href=a,s.setAttribute("download",o),document.body.appendChild(s),s.click(),i(e),setTimeout(()=>{try{document.body.removeChild(s),URL.revokeObjectURL(a)}catch(e){console.log(e),e?.message&&alert(e.message)}},3e3)}catch(a){console.log(a),n(a)}}),exports.flipChoice=e=>{const t={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=e[o].split("|");r.length>=2?t[o]=[r[1],r[0]].join("|"):t[o]=e[o]}return t},exports.formatMoney=(e="",t="",o)=>{let r="number"!=typeof e?parseFloat(e):e;isNaN(r)&&(r=0);const n={minimumFractionDigits:2,maximumFractionDigits:2,...o||{}};return`${r.toLocaleString("en-US",n)} ${t}`.trim()},exports.fromArabicNumber=P,exports.iconSet=K,exports.icons=X,exports.install=se,exports.isElementInViewport=N,exports.isKsaMobile=e=>{if(!e)return!1;const t=P(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},exports.kebabCase=B,exports.lightenColor=F,exports.makeUrl=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},exports.nl2br=(e,t=!1)=>{if(!e)return"";const o=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,o)},exports.openWindow=(e,t,o)=>(0,p.openURL)(e,t,o),exports.pascalCase=_,exports.plural=L,exports.prettyPrint=e=>JSON.stringify(e,null,3).replace(/&/g,"&").replace(/\\"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,o,r,n)=>{let i=t||"";return o&&(i=i+'<span class="json-key" style="color: brown">'+o.replace(/[": ]/g,"")+"</span>: "),r&&(i=i+(r.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+r+"</span>"),i+(n||"")}),exports.scrollToBottom=async(e,t,o)=>{const{setVerticalScrollPosition:r,getScrollHeight:n}=p.scroll;e||(e=window);const i=e&&"string"==typeof e?document.querySelector(e)||window:e;r(i,o=o||n(i),t=t||600)},exports.scrollToElement=W,exports.scrollToElementFromErrors=async(e,t,o)=>{if(!e)return;const r=Object.entries(e),n=r.map(([e])=>e);let i=[];if(r.length>0&&(i=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>n.includes(e?.getAttribute("data-input-name")))),i.length>0)for(const a of i){const e=r.find(e=>e[0]===a.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await W(a||`[name='${t}']`,{target:o});break}}else for(const[a,s]of r)if((s&&Array.isArray(s)?s[0]:s)?.toString?.()?.length){if(t)await W(t,{target:o});else{const e=`[data-input-name='${a}']`;await W(document.querySelector(e)||`[name='${a}']`,{target:o})}break}},exports.setCss=(e,t,o)=>{if((0,p.setCssVar)(e,t,o||document.documentElement),"primary"===e){const e=F(t,50),o=q(t,10);(0,p.setCssVar)("scrollbar-track",e),(0,p.setCssVar)("scrollbar-hover",o)}},exports.setDefaults=ae,exports.shuffle=e=>{const t=[...e||[]];for(let o=t.length-1;o>0;o--){const e=Math.floor(Math.random()*(o+1));[t[o],t[e]]=[t[e],t[o]]}return t},exports.singular=y.singular,exports.snakeCase=Q,exports.sortNumberFormatted=(e,t)=>(parseFloat(T(e).replace(/[^\d.]/g,""))||0)-(parseFloat(T(t).replace(/[^\d.]/g,""))||0),exports.strBefore=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",exports.toAlphaNumerals=(e,t={})=>{const{uppercase:o=!0,startFromZero:r=!1}=t,n=parseInt(e?.toString()||"0",10)||0;if(n<=0&&!r)return"";if(r&&0===n)return o?"A":"a";let i=r?n+1:n,a="";for(;i>0;){i--;const e=i%26+(o?65:97);a=String.fromCharCode(e)+a,i=Math.floor(i/26)}return a},exports.toNumber=T,exports.toNumberFormat=(e=null,t)=>{if(null==e||""===e)return"";const o=T(e).split("."),r=/(\d+)(\d{3})/;for(;r.test(o[0]);)o[0]=o[0].replace(r,"$1,$2");let n=o.join(".");return t&&(n=`${n} ${t}`),n},exports.ucFirst=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},exports.uniq=I,exports.uniqBy=(e,t)=>{const o=new Set;return e.filter(e=>{if(!e)return!1;const r=e[t];return!o.has(r)&&(o.add(r),!0)})},exports.useMyth=D,exports.useMythMeta=function(e,t,o){(0,p.useMeta)(()=>{const r=(0,c.toValue)(e)||"MyTh";return{title:(0,c.toValue)(t)||"",titleTemplate:e=>e&&e!==r?`${r} | ${e}`:r,...(0,c.toValue)(o)||{}}})},exports.veeRules=ee,exports.version=m,exports.wordsToSingle=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},exports.wordsWithThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},exports.wordsWithoutThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MythPluginConfig } from './types';
|
|
2
2
|
import { App } from 'vue';
|
|
3
3
|
import { version } from '../package.json';
|
|
4
|
-
import {
|
|
4
|
+
import { MBtnProps, MBtnSlots, MColProps, MColSlots, MColumnProps, MColumnSlots, MContainerProps, MContainerSlots, MGridProps, MGridSlots, MRowProps, MRowSlots } from './components';
|
|
5
|
+
import { GlobalComponentConstructor } from 'quasar';
|
|
5
6
|
declare const setDefaults: (options?: MythPluginConfig) => void;
|
|
6
7
|
declare const install: (app: App, options?: MythPluginConfig) => void;
|
|
7
8
|
export { install, version, setDefaults };
|
|
@@ -15,6 +16,14 @@ declare const _default: {
|
|
|
15
16
|
install: (app: App, options?: MythPluginConfig) => void;
|
|
16
17
|
};
|
|
17
18
|
export default _default;
|
|
19
|
+
export interface MythGlobalComponents {
|
|
20
|
+
MCol: GlobalComponentConstructor<MColProps, MColSlots>;
|
|
21
|
+
MColumn: GlobalComponentConstructor<MColumnProps, MColumnSlots>;
|
|
22
|
+
MContainer: GlobalComponentConstructor<MContainerProps, MContainerSlots>;
|
|
23
|
+
MGrid: GlobalComponentConstructor<MGridProps, MGridSlots>;
|
|
24
|
+
MRow: GlobalComponentConstructor<MRowProps, MRowSlots>;
|
|
25
|
+
MBtn: GlobalComponentConstructor<MBtnProps, MBtnSlots>;
|
|
26
|
+
}
|
|
18
27
|
declare module 'vue' {
|
|
19
28
|
interface GlobalComponents extends MythGlobalComponents {
|
|
20
29
|
}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e,createBlock as t,createElementBlock as n,createSlots as r,defineComponent as o,inject as i,mergeProps as a,nextTick as s,normalizeClass as l,openBlock as u,provide as c,reactive as p,readonly as d,ref as m,renderSlot as f,resolveDynamicComponent as g,toValue as h,unref as y,withCtx as $}from"vue";import{QBtn as b,QSpinner as v,QSpinnerAudio as w,QSpinnerBall as S,QSpinnerBars as C,QSpinnerBox as x,QSpinnerClock as O,QSpinnerComment as _,QSpinnerCube as j,QSpinnerDots as k,QSpinnerFacebook as L,QSpinnerGears as z,QSpinnerGrid as A,QSpinnerHearts as q,QSpinnerHourglass as M,QSpinnerInfinity as P,QSpinnerIos as R,QSpinnerOrbit as Q,QSpinnerOval as U,QSpinnerPie as F,QSpinnerPuff as B,QSpinnerRadio as E,QSpinnerRings as T,QSpinnerTail as W,colors as D,copyToClipboard as I,is as N,openURL as G,patterns as H,scroll as V,setCssVar as Z,useMeta as J}from"quasar";import{useI18n as K}from"vue-i18n";var X=Object.create,Y=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty,oe=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ie=(e,t)=>{let n={};for(var r in e)Y(n,r,{get:e[r],enumerable:!0});return t||Y(n,Symbol.toStringTag,{value:"Module"}),n},ae=(e,t,n)=>(n=null!=e?X(ne(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,i=te(t),a=0,s=i.length;a<s;a++)o=i[a],re.call(e,o)||o===n||Y(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=ee(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Y(n,"default",{value:e,enumerable:!0}),e)),se=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),le=Symbol.for("_m__m-container"),ue="0.5.9",ce=p({version:ue,theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),pe=Symbol.for("_m_"),de=/([\p{Ll}\d])(\p{Lu})/gu,me=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,fe=/(\d)\p{Ll}|(\p{L})\d/u,ge=/[^\p{L}\d]+/giu,he="$1\0$2";function ye(e){let t=e.trim();t=t.replace(de,he).replace(me,he),t=t.replace(ge,"\0");let n=0,r=t.length;for(;"\0"===t.charAt(n);)n++;if(n===r)return[];for(;"\0"===t.charAt(r-1);)r--;return t.slice(n,r).split(/\0/g)}function $e(e){const t=ye(e);for(let n=0;n<t.length;n++){const e=t[n],r=fe.exec(e);if(r){const o=r.index+(r[1]??r[2]).length;t.splice(n,1,e.slice(0,o),e.slice(o))}}return t}function be(e,t){const[n,r,o]=ke(e,t);return n+r.map(xe(t?.locale)).join(t?.delimiter??" ")+o}function ve(e,t){const[n,r,o]=ke(e,t),i=xe(t?.locale),a=Oe(t?.locale),s=t?.mergeAmbiguousCharacters?_e(i,a):je(i,a);return n+r.map((e,t)=>0===t?i(e):s(e,t)).join(t?.delimiter??"")+o}function we(e,t){const[n,r,o]=ke(e,t),i=xe(t?.locale),a=Oe(t?.locale),s=t?.mergeAmbiguousCharacters?_e(i,a):je(i,a);return n+r.map(s).join(t?.delimiter??"")+o}function Se(e,t){return be(e,{delimiter:"-",...t})}function Ce(e,t){return be(e,{delimiter:"_",...t})}function xe(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function Oe(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function _e(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function je(e,t){return(n,r)=>{const o=n[0];return(r>0&&o>="0"&&o<="9"?"_"+o:t(o))+e(n.slice(1))}}function ke(e,t={}){const n=t.split??(t.separateNumbers?$e:ye),r=t.prefixCharacters??"",o=t.suffixCharacters??"";let i=0,a=e.length;for(;i<e.length;){const t=e.charAt(i);if(!r.includes(t))break;i++}for(;a>i;){const t=a-1,n=e.charAt(t);if(!o.includes(n))break;a=t}return[e.slice(0,i),n(e.slice(i,a)),e.slice(a)]}var Le=/* @__PURE__ */o({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:()=>!1}},setup(n){const o={QSpinner:v,QSpinnerAudio:w,QSpinnerBall:S,QSpinnerBars:C,QSpinnerBox:x,QSpinnerClock:O,QSpinnerComment:_,QSpinnerCube:j,QSpinnerDots:k,QSpinnerFacebook:L,QSpinnerGears:z,QSpinnerGrid:A,QSpinnerHearts:q,QSpinnerHourglass:M,QSpinnerInfinity:P,QSpinnerIos:R,QSpinnerOrbit:Q,QSpinnerOval:U,QSpinnerPie:F,QSpinnerPuff:B,QSpinnerRadio:E,QSpinnerRings:T,QSpinnerTail:W},{__:i,loadingOptions:s,componentProps:l,btnStyle:c}=ft(),p=e(()=>void 0!==n.spinner?n.spinner:s.value?.type),d=e(()=>{if(p.value)return"spinner"===p.value?o.QSpinner:o[we(`q-spinner-${p.value}`)]}),m=e(()=>s.value?.size),h=e(()=>s.value?.color),D=void 0,I=e(()=>!0===n.nativeLabel?null===n.label||void 0===n.label?D:String(n.label):void 0===n.label||null===n.label?D:i(n.label)),N=e(()=>({...n.noStyle?{}:c.value,...l.value.btn||{},ariaLabel:I.value}));return(e,o)=>(u(),t(y(b),a({loading:n.loading,label:I.value},N.value),r({_:2},[e.$slots.loading?{name:"loading",fn:$(()=>[f(e.$slots,"loading")]),key:"0"}:p.value&&d.value?{name:"loading",fn:$(()=>[(u(),t(g(d.value),{color:h.value,size:m.value},null,8,["color","size"]))]),key:"1"}:void 0,e.$slots.default?{name:"default",fn:$(()=>[f(e.$slots,"default")]),key:"2"}:void 0]),1040,["loading","label"]))}}),ze=/* @__PURE__ */oe((e,t)=>{var n,r;n=e,r=function(){var e=[],t=[],n={},r={},o={};function i(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],function(n,r){var o,i,s=(o=t[1],i=arguments,o.replace(/\$(\d{1,2})/g,function(e,t){return i[t]||""}));return a(""===n?e[r-1]:n,s)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var o=r.length;o--;){var i=r[o];if(i[0].test(t))return s(t,i)}return t}function u(e,t,n){return function(r){var o=r.toLowerCase();return t.hasOwnProperty(o)?a(r,o):e.hasOwnProperty(o)?a(r,e[o]):l(o,r,n)}}function c(e,t,n,r){return function(r){var o=r.toLowerCase();return!!t.hasOwnProperty(o)||!e.hasOwnProperty(o)&&l(o,o,n)===o}}function p(e,t,n){return(n?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=u(o,r,e),p.isPlural=c(o,r,e),p.singular=u(r,o,t),p.isSingular=c(r,o,t),p.addPluralRule=function(t,n){e.push([i(t),n])},p.addSingularRule=function(e,n){t.push([i(e),n])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),o[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof se&&"object"==typeof e&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define(function(){return r()}):n.pluralize=r()}),Ae=/* @__PURE__ */ae(ze(),1),qe=Ae.default,Me=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",Pe=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),Re=e=>null==e||""===e?"":Pe(e).replace(/,/g,""),Qe=(e=null,t)=>{if(null==e||""===e)return"";const n=Re(e).split("."),r=/(\d+)(\d{3})/;for(;r.test(n[0]);)n[0]=n[0].replace(r,"$1,$2");let o=n.join(".");return t&&(o=`${o} ${t}`),o},Ue=e=>{if(!e)return!1;const t=Pe(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},Fe=e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=e[n].split("|");r.length>=2?t[n]=[r[1],r[0]].join("|"):t[n]=e[n]}return t},Be=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e},Ee=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},Te=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},We=(e,t)=>(parseFloat(Re(e).replace(/[^\d.]/g,""))||0)-(parseFloat(Re(t).replace(/[^\d.]/g,""))||0),De=(e,t=!1)=>{if(!e)return"";const n=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,n)},Ie=e=>JSON.stringify(e,null,3).replace(/&/g,"&").replace(/\\"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,n,r,o)=>{let i=t||"";return n&&(i=i+'<span class="json-key" style="color: brown">'+n.replace(/[": ]/g,"")+"</span>: "),r&&(i=i+(r.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+r+"</span>"),i+(o||"")}),Ne=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},Ge=(e,t={})=>{const{uppercase:n=!0,startFromZero:r=!1}=t,o=parseInt(e?.toString()||"0",10)||0;if(o<=0&&!r)return"";if(r&&0===o)return n?"A":"a";let i=r?o+1:o,a="";for(;i>0;){i--;const e=i%26+(n?65:97);a=String.fromCharCode(e)+a,i=Math.floor(i/26)}return a},He=(e,t=10)=>{const{lighten:n}=D;return n(e,-1*t)},Ve=(e,t=10)=>{const{lighten:n}=D;return n(e,t)},Ze=(e,t,n)=>{if(Z(e,t,n||document.documentElement),"primary"===e){const e=Ve(t,50),n=He(t,10);Z("scrollbar-track",e),Z("scrollbar-hover",n)}},Je=e=>{const{luminosity:t}=D;return t(e)<.5},Ke=(e,t,n)=>{let r;if((t instanceof File||t instanceof Blob)&&n){const r=t instanceof File?t.name:n;e.append(n,t,r)}else for(const o in t)if(r=t[o],null!=r&&"object"==typeof r){const t=n?n+"["+o+"]":o;Array.isArray(r)&&r.length<1?e.append(`${o}`,""):Ke(e,r,t)}else!0===r&&(r=1),!1===r&&(r=0),null==r&&(r=""),n?e.append(n+"["+o+"]",r):e.append(o,r);return e},Xe=(e,t)=>{const n=Ye(e);return{async index(e){const r=n();return t().get(r,e)},async staticIndex(n){const r="Static"+(e?`/${e}`:"");return t().get(r,n)},export:async(e,r)=>t().post(n("Export"),e,r),exampleUrl:async e=>t().get(n("ExampleUrl"),e),async store(e,r){const o=n(),i=new FormData;return e&&Ke(i,e),t().post(o,i,r)},async show(e,r){const o=n(e);return t().get(o,r)},async staticShow(n,r){const o=`Static${e?`/${e}`:""}/${n}`;return t().get(o,r)},async update(e,r,o){const i=n(e),a=new FormData;return a.append("_method","put"),r&&Ke(a,r),t().post(i,a,o)},async clone(e,r,o){const i=n(`${e}/Clone`),a=new FormData;return r&&Ke(a,r),t().post(i,a,o)},async destroy(e,r){const o=n(e);return t().delete(o,r)},async destroyAll(e,r){const o=n("DestroyAll");return t().post(o,{ids:e||[]},r)},getUploadAttachmentsUrl:e=>n(`${e}/Attachment/Upload`),async uploadAttachments(e,r,o){const i=n(`${e}/Attachment/Upload`);return t().post(i,r,o)},async deleteAttachment(e,r,o){const i=n(`${e}/Attachment/${r}/Delete`);return t().delete(i,o)},async updateAttachment(e,r,o,i){const a=n(`${e}/Attachment/${r}/Update`);return t().post(a,o,i)}}},Ye=e=>(t,n)=>(n??"")+(n&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),et=(e,t,n)=>G(e,t,n),tt=(e,t)=>new Promise((n,r)=>{const o=e=>r(e??{status:!1,code:"unknown"}),i=e=>n({status:!0,response:e});try{if(!e)return void o({code:"no_response"});if(e?.data?.data?.url){const n=e?.data?.data?.url;if(t)return t(n,e),void i(e);const r=document.createElement("a");return r.setAttribute("href",n),r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),void i(e)}const n=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!n)return void o({code:"no_file_name"});const r=new Blob([e.data]),a=window.URL.createObjectURL(r),s=document.createElement("a");if(!s||!a)return void o({code:"no_file_url"});s.href=a,s.setAttribute("download",n),document.body.appendChild(s),s.click(),i(e),setTimeout(()=>{try{document.body.removeChild(s),URL.revokeObjectURL(a)}catch(e){console.log(e),e?.message&&alert(e.message)}},3e3)}catch(a){console.log(a),o(a)}}),nt=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},rt=async(e,t)=>{await s();const{getScrollTarget:n,setVerticalScrollPosition:r,getVerticalScrollPosition:o}=V,i="string"==typeof e?document.querySelector(e):e;if(!i)return;await s();const{target:a}=t||{},l=n(i,("string"==typeof a?document.querySelector(a):a)||window.document.documentElement),u=o(l),c=t?.duration||1e3;let p,d=i;try{do{if(p=d.getBoundingClientRect().top,0===p&&!d.parentElement){p=d.scrollTop;break}if(0!==p&&d.parentElement)break;d=d.parentElement}while(d)}catch(f){console.log(f),p="offsetTop"in i&&i?.offsetTop||0}const m=p+u-(100+(t?.offset||0));nt(i)||r(l,m,c)},ot=async(e,t,n)=>{if(!e)return;const r=Object.entries(e),o=r.map(([e])=>e);let i=[];if(r.length>0&&(i=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>o.includes(e?.getAttribute("data-input-name")))),i.length>0)for(const a of i){const e=r.find(e=>e[0]===a.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await rt(a||`[name='${t}']`,{target:n});break}}else for(const[a,s]of r)if((s&&Array.isArray(s)?s[0]:s)?.toString?.()?.length){if(t)await rt(t,{target:n});else{const e=`[data-input-name='${a}']`;await rt(document.querySelector(e)||`[name='${a}']`,{target:n})}break}},it=async(e,t,n)=>{const{setVerticalScrollPosition:r,getScrollHeight:o}=V;e||(e=window);const i=e&&"string"==typeof e?document.querySelector(e)||window:e;r(i,n=n||o(i),t=t||600)},at=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},st=(e="",t="",n)=>{let r="number"!=typeof e?parseFloat(e):e;isNaN(r)&&(r=0);const o={minimumFractionDigits:2,maximumFractionDigits:2,...n||{}};return`${r.toLocaleString("en-US",o)} ${t}`.trim()},lt=(e,t)=>{e=Number(e),t=Number(t);const n=(e,t)=>0===t?e:n(t,e%t),r=n(e,t);return[e/t,`${e/r}:${t/r}`]},ut=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},ct=(e,t)=>{const n=/* @__PURE__ */new Set;return e.filter(e=>{if(!e)return!1;const r=e[t];return!n.has(r)&&(n.add(r),!0)})},pt=e=>[...new Set(e)],dt=e=>{const t=[...e||[]];for(let n=t.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1));[t[n],t[e]]=[t[e],t[n]]}return t},mt=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"};function ft(){const{t:t,te:n}=K({useScope:"global"}),r=i(pe,ce),o=d(r),a=m("MyTh"),s=e(()=>r.version),l=e(()=>r.loadingOptions),u=p(r.theme),c=e(()=>r.theme.btn),f=e(()=>r.theme.input),g=e(()=>r.component),h=(e,...r)=>{const o=(e=e??"").startsWith(":")&&e.endsWith(":"),i=e.startsWith("{'")&&e.endsWith("'}");if((o||i)&&e.length>2)return o?e.slice(1,-1):e.slice(2,-2);const a=`attributes.${e}`;return n(a)?t(a,...r):n(e)?t(e,...r):t(e)};return{config:o,name:a,version:s,loadingOptions:l,theme:u,btnStyle:c,inputStyle:f,componentProps:g,__:h,pageTitle:(e,t)=>{t??=2;const r=Ae.singular(e),o=we(e),i=Ce(e),a=ve(e),s=Se(e),l=qe(e),u=we(l),c=Ce(l),p=ve(l),d=Se(l),m=pt([e,r,o,i,a,s,l,u,c,p,d]),f=pt(["routes","attributes"]);for(const g of f)for(const e of m)if(n(`${g}.${e}`))return h(`${g}.${e}`,t);return h(e)}}}var gt=/* @__PURE__ */((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(/* @__PURE__ */o({name:"MContainer",__name:"MContainer",props:{size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}}},setup(t){const{theme:r}=ft(),o=e(()=>"md"!==t.size?t.size:r.gutterSize??"md"),i=e(()=>"gutter"!==t.type?t.type:r.gutterType??"gutter"),a=e(()=>t.dense??r.dense??!1),s=e(()=>t.fluid??r.fluid??!1);return c(le,p({gutterSize:o,gutterType:i,dense:a,fluid:s})),(e,t)=>(u(),n("div",{class:l([{"m-container__fluid":!!s.value,"m-container__dense":!!a.value,"q-pa-none":"none"===o.value,[`q-pa-${o.value||""}`]:o.value&&"none"!==o.value},"m-container"])},[f(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-cf679b9c"]]),ht=/* @__PURE__ */o({name:"MGrid",__name:"MGrid",props:{gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(t){const r=i(le),{theme:o}=ft(),a=e(()=>void 0!==t.size?t.size:r?.size??o.gutterSize??"md"),s=e(()=>void 0!==t.type?t.type:r?.type??o.gutterType??"gutter"),c=e(()=>`q${"col"===t.type?"-col":""}-gutter`);return(e,r)=>(u(),n("div",{class:l({"m-row row":"row"===t.gridType,"m-column column":"column"===t.gridType,[`${c.value}-${a.value}`]:!!s.value&&"none"!==s.value})},[f(e.$slots,"default")],2))}}),yt=/* @__PURE__ */o({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,r)=>(u(),t(ht,{"grid-type":"column",size:e.size,type:e.type},{default:$(()=>[f(n.$slots,"default")]),_:3},8,["size","type"]))}),$t=/* @__PURE__ */o({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,r)=>(u(),t(ht,{"grid-type":"row",size:e.size,type:e.type},{default:$(()=>[f(n.$slots,"default")]),_:3},8,["size","type"]))}),bt=/* @__PURE__ */ie({MBtn:()=>Le,MColumn:()=>yt,MContainer:()=>gt,MGrid:()=>ht,MRow:()=>$t}),vt="myth-",wt={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},{testPattern:St}=H,Ct={float:e=>null==e||N.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>St.time(e),fulltime:e=>St.fulltime(e),timeOrFulltime:e=>St.timeOrFulltime(e),hexColor:e=>St.hexColor(e),hexaColor:e=>St.hexaColor(e),hexOrHexaColor:e=>St.hexOrHexaColor(e),rgbColor:e=>St.rgbColor(e),rgbaColor:e=>St.rgbaColor(e),rgbOrRgbaColor:e=>St.rgbOrRgbaColor(e),hexOrRgbColor:e=>St.hexOrRgbColor(e),hexaOrRgbaColor:e=>St.hexaOrRgbaColor(e),color:e=>!e||St.anyColor(e),requiredColor:e=>St.anyColor(e)},{getPaletteColor:xt}=D,Ot=e=>{if(!e)return null;const t=e=>null!=e,n=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,r=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,o=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(o)&&t(r)?0===r?null:o/r:t(n)&&t(r)?n*r:t(n)&&t(o)?0===n?null:o/n:null},_t=(e,t=!1)=>{if(!e)return"";let n=e;return e.startsWith("#")||"transparent"===e||(n=xt(e)),`${t?"background-color":"color"}: ${n};`},jt=async e=>{const t=null!=e?String(e):"";return await I(t),t};function kt(e,t,n){J(()=>{const r=h(e)||"MyTh";return{title:h(t)||"",titleTemplate:e=>e&&e!==r?`${r} | ${e}`:r,...h(n)||{}}})}var Lt=!1,zt=(e={})=>{e.theme&&(ce.theme?Object.assign(ce.theme,e.theme):ce.theme=e.theme),e.component&&(ce.component?Object.assign(ce.component,e.component):ce.component=e.component),e.loadingOptions&&(ce.loadingOptions?Object.assign(ce.loadingOptions,e.loadingOptions):ce.loadingOptions=e.loadingOptions)},At=(e,t={})=>{if(Lt)return void(process.env.DEV&&console.warn("Plugin [@mythpe/quasar-ui-qui] already initialized. Skipping configuration injection."));zt(t),e.provide(pe,ce),Object.entries(bt).forEach(([t,n])=>{void 0===e.component(t)&&e.component(t,n)});const n=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=ve(e.slice(5));if(t&&t in wt&&wt[t])return{icon:wt[t]}}if("function"==typeof n)return n(e)},Lt=!0},qt={version:ue,install:At},Mt=Ae.singular;export{Le as MBtn,yt as MColumn,gt as MContainer,ht as MGrid,$t as MRow,Xe as Stub,Ye as StubUrl,Ke as appendArray,lt as calculateAspectRatio,ve as camelCase,Je as colorIsDark,_t as colorStyle,ut as convertToArabicNumbers,jt as copyText,He as darkenColor,qt as default,mt as detectWebPlatform,Ot as dimension,tt as downloadFromResponse,Fe as flipChoice,st as formatMoney,Pe as fromArabicNumber,vt as iconSet,wt as icons,At as install,nt as isElementInViewport,Ue as isKsaMobile,Se as kebabCase,Ve as lightenColor,at as makeUrl,De as nl2br,et as openWindow,we as pascalCase,qe as plural,Ie as prettyPrint,it as scrollToBottom,rt as scrollToElement,ot as scrollToElementFromErrors,Ze as setCss,zt as setDefaults,dt as shuffle,Mt as singular,Ce as snakeCase,We as sortNumberFormatted,Me as strBefore,Ge as toAlphaNumerals,Re as toNumber,Qe as toNumberFormat,Ne as ucFirst,pt as uniq,ct as uniqBy,ft as useMyth,kt as useMythMeta,Ct as veeRules,ue as version,Te as wordsToSingle,Ee as wordsWithThe,Be as wordsWithoutThe};
|
|
1
|
+
import{computed as e,createBlock as t,createElementBlock as n,createSlots as r,defineComponent as o,inject as a,mergeProps as i,nextTick as l,normalizeClass as s,openBlock as u,provide as c,reactive as p,readonly as d,ref as m,renderSlot as g,resolveDynamicComponent as f,toValue as h,unref as y,withCtx as $}from"vue";import{useI18n as b}from"vue-i18n";import{QBtn as v,QSpinner as w,QSpinnerAudio as S,QSpinnerBall as C,QSpinnerBars as x,QSpinnerBox as O,QSpinnerClock as _,QSpinnerComment as k,QSpinnerCube as j,QSpinnerDots as M,QSpinnerFacebook as L,QSpinnerGears as z,QSpinnerGrid as A,QSpinnerHearts as q,QSpinnerHourglass as P,QSpinnerInfinity as R,QSpinnerIos as B,QSpinnerOrbit as Q,QSpinnerOval as U,QSpinnerPie as F,QSpinnerPuff as E,QSpinnerRadio as T,QSpinnerRings as N,QSpinnerTail as W,colors as D,copyToClipboard as I,is as G,openURL as H,patterns as V,scroll as Z,setCssVar as J,useMeta as K}from"quasar";var X=Object.create,Y=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty,oe=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ae=(e,t)=>{let n={};for(var r in e)Y(n,r,{get:e[r],enumerable:!0});return t||Y(n,Symbol.toStringTag,{value:"Module"}),n},ie=(e,t,n)=>(n=null!=e?X(ne(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,a=te(t),i=0,l=a.length;i<l;i++)o=a[i],re.call(e,o)||o===n||Y(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=ee(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Y(n,"default",{value:e,enumerable:!0}),e)),le=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),se=Symbol.for("_m__m-container"),ue="0.5.12",ce=p({version:ue,theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),pe=Symbol.for("_m_"),de=/* @__PURE__ */oe((e,t)=>{var n,r;n=e,r=function(){var e=[],t=[],n={},r={},o={};function a(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function l(e,t){return e.replace(t[0],function(n,r){var o,a,l=(o=t[1],a=arguments,o.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return i(""===n?e[r-1]:n,l)})}function s(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var o=r.length;o--;){var a=r[o];if(a[0].test(t))return l(t,a)}return t}function u(e,t,n){return function(r){var o=r.toLowerCase();return t.hasOwnProperty(o)?i(r,o):e.hasOwnProperty(o)?i(r,e[o]):s(o,r,n)}}function c(e,t,n,r){return function(r){var o=r.toLowerCase();return!!t.hasOwnProperty(o)||!e.hasOwnProperty(o)&&s(o,o,n)===o}}function p(e,t,n){return(n?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=u(o,r,e),p.isPlural=c(o,r,e),p.singular=u(r,o,t),p.isSingular=c(r,o,t),p.addPluralRule=function(t,n){e.push([a(t),n])},p.addSingularRule=function(e,n){t.push([a(e),n])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),o[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof le&&"object"==typeof e&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define(function(){return r()}):n.pluralize=r()}),me=/* @__PURE__ */ie(de(),1),ge=/([\p{Ll}\d])(\p{Lu})/gu,fe=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,he=/(\d)\p{Ll}|(\p{L})\d/u,ye=/[^\p{L}\d]+/giu,$e="$1\0$2";function be(e){let t=e.trim();t=t.replace(ge,$e).replace(fe,$e),t=t.replace(ye,"\0");let n=0,r=t.length;for(;"\0"===t.charAt(n);)n++;if(n===r)return[];for(;"\0"===t.charAt(r-1);)r--;return t.slice(n,r).split(/\0/g)}function ve(e){const t=be(e);for(let n=0;n<t.length;n++){const e=t[n],r=he.exec(e);if(r){const o=r.index+(r[1]??r[2]).length;t.splice(n,1,e.slice(0,o),e.slice(o))}}return t}function we(e,t){const[n,r,o]=Le(e,t);return n+r.map(_e(t?.locale)).join(t?.delimiter??" ")+o}function Se(e,t){const[n,r,o]=Le(e,t),a=_e(t?.locale),i=ke(t?.locale),l=t?.mergeAmbiguousCharacters?je(a,i):Me(a,i);return n+r.map((e,t)=>0===t?a(e):l(e,t)).join(t?.delimiter??"")+o}function Ce(e,t){const[n,r,o]=Le(e,t),a=_e(t?.locale),i=ke(t?.locale),l=t?.mergeAmbiguousCharacters?je(a,i):Me(a,i);return n+r.map(l).join(t?.delimiter??"")+o}function xe(e,t){return we(e,{delimiter:"-",...t})}function Oe(e,t){return we(e,{delimiter:"_",...t})}function _e(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function ke(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function je(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Me(e,t){return(n,r)=>{const o=n[0];return(r>0&&o>="0"&&o<="9"?"_"+o:t(o))+e(n.slice(1))}}function Le(e,t={}){const n=t.split??(t.separateNumbers?ve:be),r=t.prefixCharacters??"",o=t.suffixCharacters??"";let a=0,i=e.length;for(;a<e.length;){const t=e.charAt(a);if(!r.includes(t))break;a++}for(;i>a;){const t=i-1,n=e.charAt(t);if(!o.includes(n))break;i=t}return[e.slice(0,a),n(e.slice(a,i)),e.slice(i)]}var ze=me.default,Ae=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",qe=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),Pe=e=>null==e||""===e?"":qe(e).replace(/,/g,""),Re=(e=null,t)=>{if(null==e||""===e)return"";const n=Pe(e).split("."),r=/(\d+)(\d{3})/;for(;r.test(n[0]);)n[0]=n[0].replace(r,"$1,$2");let o=n.join(".");return t&&(o=`${o} ${t}`),o},Be=e=>{if(!e)return!1;const t=qe(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},Qe=e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=e[n].split("|");r.length>=2?t[n]=[r[1],r[0]].join("|"):t[n]=e[n]}return t},Ue=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e},Fe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},Ee=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},Te=(e,t)=>(parseFloat(Pe(e).replace(/[^\d.]/g,""))||0)-(parseFloat(Pe(t).replace(/[^\d.]/g,""))||0),Ne=(e,t=!1)=>{if(!e)return"";const n=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,n)},We=e=>JSON.stringify(e,null,3).replace(/&/g,"&").replace(/\\"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,n,r,o)=>{let a=t||"";return n&&(a=a+'<span class="json-key" style="color: brown">'+n.replace(/[": ]/g,"")+"</span>: "),r&&(a=a+(r.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+r+"</span>"),a+(o||"")}),De=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},Ie=(e,t={})=>{const{uppercase:n=!0,startFromZero:r=!1}=t,o=parseInt(e?.toString()||"0",10)||0;if(o<=0&&!r)return"";if(r&&0===o)return n?"A":"a";let a=r?o+1:o,i="";for(;a>0;){a--;const e=a%26+(n?65:97);i=String.fromCharCode(e)+i,a=Math.floor(a/26)}return i},Ge=(e,t=10)=>{const{lighten:n}=D;return n(e,-1*t)},He=(e,t=10)=>{const{lighten:n}=D;return n(e,t)},Ve=(e,t,n)=>{if(J(e,t,n||document.documentElement),"primary"===e){const e=He(t,50),n=Ge(t,10);J("scrollbar-track",e),J("scrollbar-hover",n)}},Ze=e=>{const{luminosity:t}=D;return t(e)<.5},Je=(e,t,n)=>{let r;if((t instanceof File||t instanceof Blob)&&n){const r=t instanceof File?t.name:n;e.append(n,t,r)}else for(const o in t)if(r=t[o],null!=r&&"object"==typeof r){const t=n?n+"["+o+"]":o;Array.isArray(r)&&r.length<1?e.append(`${o}`,""):Je(e,r,t)}else!0===r&&(r=1),!1===r&&(r=0),null==r&&(r=""),n?e.append(n+"["+o+"]",r):e.append(o,r);return e},Ke=(e,t)=>{const n=Xe(e);return{async index(e){const r=n();return t().get(r,e)},async staticIndex(n){const r="Static"+(e?`/${e}`:"");return t().get(r,n)},export:async(e,r)=>t().post(n("Export"),e,r),exampleUrl:async e=>t().get(n("ExampleUrl"),e),async store(e,r){const o=n(),a=new FormData;return e&&Je(a,e),t().post(o,a,r)},async show(e,r){const o=n(e);return t().get(o,r)},async staticShow(n,r){const o=`Static${e?`/${e}`:""}/${n}`;return t().get(o,r)},async update(e,r,o){const a=n(e),i=new FormData;return i.append("_method","put"),r&&Je(i,r),t().post(a,i,o)},async clone(e,r,o){const a=n(`${e}/Clone`),i=new FormData;return r&&Je(i,r),t().post(a,i,o)},async destroy(e,r){const o=n(e);return t().delete(o,r)},async destroyAll(e,r){const o=n("DestroyAll");return t().post(o,{ids:e||[]},r)},getUploadAttachmentsUrl:e=>n(`${e}/Attachment/Upload`),async uploadAttachments(e,r,o){const a=n(`${e}/Attachment/Upload`);return t().post(a,r,o)},async deleteAttachment(e,r,o){const a=n(`${e}/Attachment/${r}/Delete`);return t().delete(a,o)},async updateAttachment(e,r,o,a){const i=n(`${e}/Attachment/${r}/Update`);return t().post(i,o,a)}}},Xe=e=>(t,n)=>(n??"")+(n&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),Ye=(e,t,n)=>H(e,t,n),et=(e,t)=>new Promise((n,r)=>{const o=e=>r(e??{status:!1,code:"unknown"}),a=e=>n({status:!0,response:e});try{if(!e)return void o({code:"no_response"});if(e?.data?.data?.url){const n=e?.data?.data?.url;if(t)return t(n,e),void a(e);const r=document.createElement("a");return r.setAttribute("href",n),r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),void a(e)}const n=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!n)return void o({code:"no_file_name"});const r=new Blob([e.data]),i=window.URL.createObjectURL(r),l=document.createElement("a");if(!l||!i)return void o({code:"no_file_url"});l.href=i,l.setAttribute("download",n),document.body.appendChild(l),l.click(),a(e),setTimeout(()=>{try{document.body.removeChild(l),URL.revokeObjectURL(i)}catch(e){console.log(e),e?.message&&alert(e.message)}},3e3)}catch(i){console.log(i),o(i)}}),tt=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},nt=async(e,t)=>{await l();const{getScrollTarget:n,setVerticalScrollPosition:r,getVerticalScrollPosition:o}=Z,a="string"==typeof e?document.querySelector(e):e;if(!a)return;await l();const{target:i}=t||{},s=n(a,("string"==typeof i?document.querySelector(i):i)||window.document.documentElement),u=o(s),c=t?.duration||1e3;let p,d=a;try{do{if(p=d.getBoundingClientRect().top,0===p&&!d.parentElement){p=d.scrollTop;break}if(0!==p&&d.parentElement)break;d=d.parentElement}while(d)}catch(g){console.log(g),p="offsetTop"in a&&a?.offsetTop||0}const m=p+u-(100+(t?.offset||0));tt(a)||r(s,m,c)},rt=async(e,t,n)=>{if(!e)return;const r=Object.entries(e),o=r.map(([e])=>e);let a=[];if(r.length>0&&(a=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>o.includes(e?.getAttribute("data-input-name")))),a.length>0)for(const i of a){const e=r.find(e=>e[0]===i.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await nt(i||`[name='${t}']`,{target:n});break}}else for(const[i,l]of r)if((l&&Array.isArray(l)?l[0]:l)?.toString?.()?.length){if(t)await nt(t,{target:n});else{const e=`[data-input-name='${i}']`;await nt(document.querySelector(e)||`[name='${i}']`,{target:n})}break}},ot=async(e,t,n)=>{const{setVerticalScrollPosition:r,getScrollHeight:o}=Z;e||(e=window);const a=e&&"string"==typeof e?document.querySelector(e)||window:e;r(a,n=n||o(a),t=t||600)},at=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},it=(e="",t="",n)=>{let r="number"!=typeof e?parseFloat(e):e;isNaN(r)&&(r=0);const o={minimumFractionDigits:2,maximumFractionDigits:2,...n||{}};return`${r.toLocaleString("en-US",o)} ${t}`.trim()},lt=(e,t)=>{e=Number(e),t=Number(t);const n=(e,t)=>0===t?e:n(t,e%t),r=n(e,t);return[e/t,`${e/r}:${t/r}`]},st=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},ut=(e,t)=>{const n=/* @__PURE__ */new Set;return e.filter(e=>{if(!e)return!1;const r=e[t];return!n.has(r)&&(n.add(r),!0)})},ct=e=>[...new Set(e)],pt=e=>{const t=[...e||[]];for(let n=t.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1));[t[n],t[e]]=[t[e],t[n]]}return t},dt=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"};function mt(){const{t:t,te:n}=b({useScope:"global"}),r=a(pe,ce),o=d(r),i=m("MyTh"),l=e(()=>r.version),s=e(()=>r.loadingOptions),u=p(r.theme),c=e(()=>r.theme.btn),g=e(()=>r.theme.input),f=e(()=>r.component),h=(e,...r)=>{const o=(e=e??"").startsWith(":")&&e.endsWith(":"),a=e.startsWith("{'")&&e.endsWith("'}");if((o||a)&&e.length>2)return o?e.slice(1,-1):e.slice(2,-2);const i=`attributes.${e}`;return n(i)?t(i,...r):n(e)?t(e,...r):t(e)};return{config:o,name:i,version:l,loadingOptions:s,theme:u,btnStyle:c,inputStyle:g,componentProps:f,__:h,pageTitle:(e,t)=>{t??=2;const r=me.singular(e),o=Ce(e),a=Oe(e),i=Se(e),l=xe(e),s=ze(e),u=Ce(s),c=Oe(s),p=Se(s),d=xe(s),m=ct([e,r,o,a,i,l,s,u,c,p,d]),g=ct(["routes","attributes"]);for(const f of g)for(const e of m)if(n(`${f}.${e}`))return h(`${f}.${e}`,t);return h(e)}}}var gt=/* @__PURE__ */o({name:"MGrid",__name:"MGrid",props:{gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(t){const r=a(se),{theme:o}=mt(),i=e(()=>void 0!==t.size?t.size:r?.size??o.gutterSize??"md"),l=e(()=>void 0!==t.type?t.type:r?.type??o.gutterType??"gutter"),c=e(()=>`q${"col"===t.type?"-col":""}-gutter`);return(e,r)=>(u(),n("div",{class:s({"m-row row":"row"===t.gridType,"m-column column":"column"===t.gridType,[`${c.value}-${i.value}`]:!!l.value&&"none"!==l.value})},[g(e.$slots,"default")],2))}}),ft=/* @__PURE__ */o({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,r)=>(u(),t(gt,{size:e.size,type:e.type,"grid-type":"column"},{default:$(()=>[g(n.$slots,"default")]),_:3},8,["size","type"]))}),ht=/* @__PURE__ */((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(/* @__PURE__ */o({name:"MContainer",__name:"MContainer",props:{size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}}},setup(t){const{theme:r}=mt(),o=e(()=>"md"!==t.size?t.size:r.gutterSize??"md"),a=e(()=>"gutter"!==t.type?t.type:r.gutterType??"gutter"),i=e(()=>t.dense??r.dense??!1),l=e(()=>t.fluid??r.fluid??!1);return c(se,p({gutterSize:o,gutterType:a,dense:i,fluid:l})),(e,t)=>(u(),n("div",{class:s([{"m-container__fluid":!!l.value,"m-container__dense":!!i.value,"q-pa-none":"none"===o.value,[`q-pa-${o.value||""}`]:o.value&&"none"!==o.value},"m-container"])},[g(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-cf679b9c"]]),yt=/* @__PURE__ */o({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,r)=>(u(),t(gt,{size:e.size,type:e.type,"grid-type":"row"},{default:$(()=>[g(n.$slots,"default")]),_:3},8,["size","type"]))}),$t=/* @__PURE__ */o({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:()=>!1}},setup(n){const o={QSpinner:w,QSpinnerAudio:S,QSpinnerBall:C,QSpinnerBars:x,QSpinnerBox:O,QSpinnerClock:_,QSpinnerComment:k,QSpinnerCube:j,QSpinnerDots:M,QSpinnerFacebook:L,QSpinnerGears:z,QSpinnerGrid:A,QSpinnerHearts:q,QSpinnerHourglass:P,QSpinnerInfinity:R,QSpinnerIos:B,QSpinnerOrbit:Q,QSpinnerOval:U,QSpinnerPie:F,QSpinnerPuff:E,QSpinnerRadio:T,QSpinnerRings:N,QSpinnerTail:W},{__:a,loadingOptions:l,componentProps:s,btnStyle:c}=mt(),p=e(()=>void 0!==n.spinner?n.spinner:l.value?.type),d=e(()=>{if(p.value)return"spinner"===p.value?o.QSpinner:o[Ce(`q-spinner-${p.value}`)]}),m=e(()=>l.value?.size),h=e(()=>l.value?.color),b=void 0,D=e(()=>!0===n.nativeLabel?null===n.label||void 0===n.label?b:String(n.label):void 0===n.label||null===n.label?b:a(n.label)),I=e(()=>({...n.noStyle?{}:c.value,...s.value.btn||{},ariaLabel:D.value}));return(e,o)=>(u(),t(y(v),i({label:D.value,loading:n.loading},I.value),r({_:2},[e.$slots.loading?{name:"loading",fn:$(()=>[g(e.$slots,"loading")]),key:"0"}:p.value&&d.value?{name:"loading",fn:$(()=>[(u(),t(f(d.value),{color:h.value,size:m.value},null,8,["color","size"]))]),key:"1"}:void 0,e.$slots.default?{name:"default",fn:$(()=>[g(e.$slots,"default")]),key:"2"}:void 0]),1040,["label","loading"]))}}),bt="myth-",vt={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},{testPattern:wt}=V,St={float:e=>null==e||G.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>wt.time(e),fulltime:e=>wt.fulltime(e),timeOrFulltime:e=>wt.timeOrFulltime(e),hexColor:e=>wt.hexColor(e),hexaColor:e=>wt.hexaColor(e),hexOrHexaColor:e=>wt.hexOrHexaColor(e),rgbColor:e=>wt.rgbColor(e),rgbaColor:e=>wt.rgbaColor(e),rgbOrRgbaColor:e=>wt.rgbOrRgbaColor(e),hexOrRgbColor:e=>wt.hexOrRgbColor(e),hexaOrRgbaColor:e=>wt.hexaOrRgbaColor(e),color:e=>!e||wt.anyColor(e),requiredColor:e=>wt.anyColor(e)},{getPaletteColor:Ct}=D,xt=e=>{if(!e)return null;const t=e=>null!=e,n=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,r=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,o=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(o)&&t(r)?0===r?null:o/r:t(n)&&t(r)?n*r:t(n)&&t(o)?0===n?null:o/n:null},Ot=(e,t=!1)=>{if(!e)return"";let n=e;return e.startsWith("#")||"transparent"===e||(n=Ct(e)),`${t?"background-color":"color"}: ${n};`},_t=async e=>{const t=null!=e?String(e):"";return await I(t),t},kt=["data-input-name"],jt=/* @__PURE__ */o({name:"MCol",__name:"MCol",props:{name:{},auto:{type:Boolean},shrink:{type:Boolean},grow:{type:Boolean},col:{type:[Boolean,String,Number]},xs:{type:[Boolean,String,Number]},sm:{type:[Boolean,String,Number]},md:{type:[Boolean,String,Number]},lg:{type:[Boolean,String,Number]},xl:{type:[Boolean,String,Number]},xxl:{type:[Boolean,String,Number]}},setup(t){const r=t,o=e(()=>{const e=["m-col"];!1!==r.auto&&void 0!==r.auto&&e.push("col-auto"),!1!==r.shrink&&void 0!==r.shrink&&e.push("col-shrink"),!1!==r.grow&&void 0!==r.grow&&e.push("col-grow"),"grow"===r.col?e.push("col-grow"):"shrink"===r.col?e.push("col-shrink"):"string"!=typeof r.col&&"number"!=typeof r.col||r.col?.toString()?.trim()?.length>0&&!e.includes(`col-${r.col}`)&&e.push(`col-${r.col}`);for(const t of["xs","sm","md","lg","xl","xxl"])r[t]&&"boolean"!=typeof r[t]&&(e.includes(`col-${t}-${r[t]}`)||e.push(`col-${t}-${r[t]}`));return 1===e.length&&!1!==r.col&&void 0!==r.col&&e.push("col"),ct(e)});return(e,r)=>(u(),n("div",{class:s(o.value),"data-input-name":t.name??void 0},[g(e.$slots,"default")],10,kt))}}),Mt=/* @__PURE__ */ae({MBtn:()=>$t,MCol:()=>jt,MColumn:()=>ft,MContainer:()=>ht,MGrid:()=>gt,MRow:()=>yt});function Lt(e,t,n){K(()=>{const r=h(e)||"MyTh";return{title:h(t)||"",titleTemplate:e=>e&&e!==r?`${r} | ${e}`:r,...h(n)||{}}})}var zt=!1,At=(e={})=>{e.theme&&(ce.theme?Object.assign(ce.theme,e.theme):ce.theme=e.theme),e.component&&(ce.component?Object.assign(ce.component,e.component):ce.component=e.component),e.loadingOptions&&(ce.loadingOptions?Object.assign(ce.loadingOptions,e.loadingOptions):ce.loadingOptions=e.loadingOptions)},qt=(e,t={})=>{if(zt)return void(process.env.DEV&&console.warn("Plugin [@mythpe/quasar-ui-qui] already initialized. Skipping configuration injection."));At(t),e.provide(pe,ce),Object.entries(Mt).forEach(([t,n])=>{void 0===e.component(t)&&e.component(t,n)});const n=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=Se(e.slice(5));if(t&&t in vt&&vt[t])return{icon:vt[t]}}if("function"==typeof n)return n(e)},zt=!0},Pt={version:ue,install:qt},Rt=me.singular;export{$t as MBtn,jt as MCol,ft as MColumn,ht as MContainer,gt as MGrid,yt as MRow,Ke as Stub,Xe as StubUrl,Je as appendArray,lt as calculateAspectRatio,Se as camelCase,Ze as colorIsDark,Ot as colorStyle,st as convertToArabicNumbers,_t as copyText,Ge as darkenColor,Pt as default,dt as detectWebPlatform,xt as dimension,et as downloadFromResponse,Qe as flipChoice,it as formatMoney,qe as fromArabicNumber,bt as iconSet,vt as icons,qt as install,tt as isElementInViewport,Be as isKsaMobile,xe as kebabCase,He as lightenColor,at as makeUrl,Ne as nl2br,Ye as openWindow,Ce as pascalCase,ze as plural,We as prettyPrint,ot as scrollToBottom,nt as scrollToElement,rt as scrollToElementFromErrors,Ve as setCss,At as setDefaults,pt as shuffle,Rt as singular,Oe as snakeCase,Te as sortNumberFormatted,Ae as strBefore,Ie as toAlphaNumerals,Pe as toNumber,Re as toNumberFormat,De as ucFirst,ct as uniq,ut as uniqBy,mt as useMyth,Lt as useMythMeta,St as veeRules,ue as version,Ee as wordsToSingle,Fe as wordsWithThe,Ue as wordsWithoutThe};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("quasar"),require("vue-i18n")):"function"==typeof define&&define.amd?define(["exports","vue","quasar","vue-i18n"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Myth={},e.Vue,e.Quasar,e.VueI18n)}(this,function(e,t,n,r){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),p=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:"Module"}),n},d=(e,t,n)=>(n=null!=e?o(s(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,s=l(t),c=0,p=s.length;c<p;c++)o=s[c],u.call(e,o)||o===n||i(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=a(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),m=Symbol.for("_m__m-container"),f="0.5.9",g=(0,t.reactive)({version:f,theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),h=Symbol.for("_m_"),y=/([\p{Ll}\d])(\p{Lu})/gu,$=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,b=/(\d)\p{Ll}|(\p{L})\d/u,v=/[^\p{L}\d]+/giu,w="$1\0$2";function S(e){let t=e.trim();t=t.replace(y,w).replace($,w),t=t.replace(v,"\0");let n=0,r=t.length;for(;"\0"===t.charAt(n);)n++;if(n===r)return[];for(;"\0"===t.charAt(r-1);)r--;return t.slice(n,r).split(/\0/g)}function C(e){const t=S(e);for(let n=0;n<t.length;n++){const e=t[n],r=b.exec(e);if(r){const o=r.index+(r[1]??r[2]).length;t.splice(n,1,e.slice(0,o),e.slice(o))}}return t}function x(e,t){const[n,r,o]=R(e,t);return n+r.map(M(t?.locale)).join(t?.delimiter??" ")+o}function k(e,t){const[n,r,o]=R(e,t),i=M(t?.locale),a=j(t?.locale),l=t?.mergeAmbiguousCharacters?A(i,a):B(i,a);return n+r.map((e,t)=>0===t?i(e):l(e,t)).join(t?.delimiter??"")+o}function O(e,t){const[n,r,o]=R(e,t),i=M(t?.locale),a=j(t?.locale),l=t?.mergeAmbiguousCharacters?A(i,a):B(i,a);return n+r.map(l).join(t?.delimiter??"")+o}function Q(e,t){return x(e,{delimiter:"-",...t})}function _(e,t){return x(e,{delimiter:"_",...t})}function M(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function j(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function A(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function B(e,t){return(n,r)=>{const o=n[0];return(r>0&&o>="0"&&o<="9"?"_"+o:t(o))+e(n.slice(1))}}function R(e,t={}){const n=t.split??(t.separateNumbers?C:S),r=t.prefixCharacters??"",o=t.suffixCharacters??"";let i=0,a=e.length;for(;i<e.length;){const t=e.charAt(i);if(!r.includes(t))break;i++}for(;a>i;){const t=a-1,n=e.charAt(t);if(!o.includes(n))break;a=t}return[e.slice(0,i),n(e.slice(i,a)),e.slice(a)]}var z=(0,t.defineComponent)({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:()=>!1}},setup(e){const r={QSpinner:n.QSpinner,QSpinnerAudio:n.QSpinnerAudio,QSpinnerBall:n.QSpinnerBall,QSpinnerBars:n.QSpinnerBars,QSpinnerBox:n.QSpinnerBox,QSpinnerClock:n.QSpinnerClock,QSpinnerComment:n.QSpinnerComment,QSpinnerCube:n.QSpinnerCube,QSpinnerDots:n.QSpinnerDots,QSpinnerFacebook:n.QSpinnerFacebook,QSpinnerGears:n.QSpinnerGears,QSpinnerGrid:n.QSpinnerGrid,QSpinnerHearts:n.QSpinnerHearts,QSpinnerHourglass:n.QSpinnerHourglass,QSpinnerInfinity:n.QSpinnerInfinity,QSpinnerIos:n.QSpinnerIos,QSpinnerOrbit:n.QSpinnerOrbit,QSpinnerOval:n.QSpinnerOval,QSpinnerPie:n.QSpinnerPie,QSpinnerPuff:n.QSpinnerPuff,QSpinnerRadio:n.QSpinnerRadio,QSpinnerRings:n.QSpinnerRings,QSpinnerTail:n.QSpinnerTail},{__:o,loadingOptions:i,componentProps:a,btnStyle:l}=G(),s=(0,t.computed)(()=>void 0!==e.spinner?e.spinner:i.value?.type),u=(0,t.computed)(()=>{if(s.value)return"spinner"===s.value?r.QSpinner:r[O(`q-spinner-${s.value}`)]}),c=(0,t.computed)(()=>i.value?.size),p=(0,t.computed)(()=>i.value?.color),d=void 0,m=(0,t.computed)(()=>!0===e.nativeLabel?null===e.label||void 0===e.label?d:String(e.label):void 0===e.label||null===e.label?d:o(e.label)),f=(0,t.computed)(()=>({...e.noStyle?{}:l.value,...a.value.btn||{},ariaLabel:m.value}));return(r,o)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.QBtn),(0,t.mergeProps)({loading:e.loading,label:m.value},f.value),(0,t.createSlots)({_:2},[r.$slots.loading?{name:"loading",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,"loading")]),key:"0"}:s.value&&u.value?{name:"loading",fn:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(u.value),{color:p.value,size:c.value},null,8,["color","size"]))]),key:"1"}:void 0,r.$slots.default?{name:"default",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,"default")]),key:"2"}:void 0]),1040,["loading","label"]))}}),L=c((e,t)=>{var n,r;n=e,r=function(){var e=[],t=[],n={},r={},o={};function i(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function l(e,t){return e.replace(t[0],function(n,r){var o,i,l=(o=t[1],i=arguments,o.replace(/\$(\d{1,2})/g,function(e,t){return i[t]||""}));return a(""===n?e[r-1]:n,l)})}function s(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var o=r.length;o--;){var i=r[o];if(i[0].test(t))return l(t,i)}return t}function u(e,t,n){return function(r){var o=r.toLowerCase();return t.hasOwnProperty(o)?a(r,o):e.hasOwnProperty(o)?a(r,e[o]):s(o,r,n)}}function c(e,t,n,r){return function(r){var o=r.toLowerCase();return!!t.hasOwnProperty(o)||!e.hasOwnProperty(o)&&s(o,o,n)===o}}function p(e,t,n){return(n?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=u(o,r,e),p.isPlural=c(o,r,e),p.singular=u(r,o,t),p.isSingular=c(r,o,t),p.addPluralRule=function(t,n){e.push([i(t),n])},p.addSingularRule=function(e,n){t.push([i(e),n])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),o[e]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof require&&"object"==typeof e&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define(function(){return r()}):n.pluralize=r()}),P=d(L(),1),T=P.default,q=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),F=e=>null==e||""===e?"":q(e).replace(/,/g,""),U=(e,t=10)=>{const{lighten:r}=n.colors;return r(e,-1*t)},E=(e,t=10)=>{const{lighten:r}=n.colors;return r(e,t)},W=(e,t,n)=>{let r;if((t instanceof File||t instanceof Blob)&&n){const r=t instanceof File?t.name:n;e.append(n,t,r)}else for(const o in t)if(r=t[o],null!=r&&"object"==typeof r){const t=n?n+"["+o+"]":o;Array.isArray(r)&&r.length<1?e.append(`${o}`,""):W(e,r,t)}else!0===r&&(r=1),!1===r&&(r=0),null==r&&(r=""),n?e.append(n+"["+o+"]",r):e.append(o,r);return e},I=e=>(t,n)=>(n??"")+(n&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),N=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},V=async(e,r)=>{await(0,t.nextTick)();const{getScrollTarget:o,setVerticalScrollPosition:i,getVerticalScrollPosition:a}=n.scroll,l="string"==typeof e?document.querySelector(e):e;if(!l)return;await(0,t.nextTick)();const{target:s}=r||{},u=o(l,("string"==typeof s?document.querySelector(s):s)||window.document.documentElement),c=a(u),p=r?.duration||1e3;let d,m=l;try{do{if(d=m.getBoundingClientRect().top,0===d&&!m.parentElement){d=m.scrollTop;break}if(0!==d&&m.parentElement)break;m=m.parentElement}while(m)}catch(g){console.log(g),d="offsetTop"in l&&l?.offsetTop||0}const f=d+c-(100+(r?.offset||0));N(l)||i(u,f,p)},D=e=>[...new Set(e)];function G(){const{t:e,te:n}=(0,r.useI18n)({useScope:"global"}),o=(0,t.inject)(h,g),i=(0,t.readonly)(o),a=(0,t.ref)("MyTh"),l=(0,t.computed)(()=>o.version),s=(0,t.computed)(()=>o.loadingOptions),u=(0,t.reactive)(o.theme),c=(0,t.computed)(()=>o.theme.btn),p=(0,t.computed)(()=>o.theme.input),d=(0,t.computed)(()=>o.component),m=(t,...r)=>{const o=(t=t??"").startsWith(":")&&t.endsWith(":"),i=t.startsWith("{'")&&t.endsWith("'}");if((o||i)&&t.length>2)return o?t.slice(1,-1):t.slice(2,-2);const a=`attributes.${t}`;return n(a)?e(a,...r):n(t)?e(t,...r):e(t)};return{config:i,name:a,version:l,loadingOptions:s,theme:u,btnStyle:c,inputStyle:p,componentProps:d,__:m,pageTitle:(e,t)=>{t??=2;const r=P.singular(e),o=O(e),i=_(e),a=k(e),l=Q(e),s=T(e),u=O(s),c=_(s),p=k(s),d=Q(s),f=D([e,r,o,i,a,l,s,u,c,p,d]),g=D(["routes","attributes"]);for(const h of g)for(const e of f)if(n(`${h}.${e}`))return m(`${h}.${e}`,t);return m(e)}}}var H=((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})((0,t.defineComponent)({name:"MContainer",__name:"MContainer",props:{size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}}},setup(e){const{theme:n}=G(),r=(0,t.computed)(()=>"md"!==e.size?e.size:n.gutterSize??"md"),o=(0,t.computed)(()=>"gutter"!==e.type?e.type:n.gutterType??"gutter"),i=(0,t.computed)(()=>e.dense??n.dense??!1),a=(0,t.computed)(()=>e.fluid??n.fluid??!1);return(0,t.provide)(m,(0,t.reactive)({gutterSize:r,gutterType:o,dense:i,fluid:a})),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)([{"m-container__fluid":!!a.value,"m-container__dense":!!i.value,"q-pa-none":"none"===r.value,[`q-pa-${r.value||""}`]:r.value&&"none"!==r.value},"m-container"])},[(0,t.renderSlot)(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-cf679b9c"]]),Z=(0,t.defineComponent)({name:"MGrid",__name:"MGrid",props:{gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(e){const n=(0,t.inject)(m),{theme:r}=G(),o=(0,t.computed)(()=>void 0!==e.size?e.size:n?.size??r.gutterSize??"md"),i=(0,t.computed)(()=>void 0!==e.type?e.type:n?.type??r.gutterType??"gutter"),a=(0,t.computed)(()=>`q${"col"===e.type?"-col":""}-gutter`);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)({"m-row row":"row"===e.gridType,"m-column column":"column"===e.gridType,[`${a.value}-${o.value}`]:!!i.value&&"none"!==i.value})},[(0,t.renderSlot)(n.$slots,"default")],2))}}),J=(0,t.defineComponent)({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Z,{"grid-type":"column",size:e.size,type:e.type},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,"default")]),_:3},8,["size","type"]))}),K=(0,t.defineComponent)({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Z,{"grid-type":"row",size:e.size,type:e.type},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,"default")]),_:3},8,["size","type"]))}),X=p({MBtn:()=>z,MColumn:()=>J,MContainer:()=>H,MGrid:()=>Z,MRow:()=>K}),Y="myth-",ee={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},{testPattern:te}=n.patterns,ne={float:e=>null==e||n.is.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>te.time(e),fulltime:e=>te.fulltime(e),timeOrFulltime:e=>te.timeOrFulltime(e),hexColor:e=>te.hexColor(e),hexaColor:e=>te.hexaColor(e),hexOrHexaColor:e=>te.hexOrHexaColor(e),rgbColor:e=>te.rgbColor(e),rgbaColor:e=>te.rgbaColor(e),rgbOrRgbaColor:e=>te.rgbOrRgbaColor(e),hexOrRgbColor:e=>te.hexOrRgbColor(e),hexaOrRgbaColor:e=>te.hexaOrRgbaColor(e),color:e=>!e||te.anyColor(e),requiredColor:e=>te.anyColor(e)},{getPaletteColor:re}=n.colors;var oe=!1,ie=(e={})=>{e.theme&&(g.theme?Object.assign(g.theme,e.theme):g.theme=e.theme),e.component&&(g.component?Object.assign(g.component,e.component):g.component=e.component),e.loadingOptions&&(g.loadingOptions?Object.assign(g.loadingOptions,e.loadingOptions):g.loadingOptions=e.loadingOptions)},ae=(e,t={})=>{if(oe)return void(process.env.DEV&&console.warn("Plugin [@mythpe/quasar-ui-qui] already initialized. Skipping configuration injection."));ie(t),e.provide(h,g),Object.entries(X).forEach(([t,n])=>{void 0===e.component(t)&&e.component(t,n)});const n=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=k(e.slice(5));if(t&&t in ee&&ee[t])return{icon:ee[t]}}if("function"==typeof n)return n(e)},oe=!0},le={version:f,install:ae};e.MBtn=z,e.MColumn=J,e.MContainer=H,e.MGrid=Z,e.MRow=K,e.Stub=(e,t)=>{const n=I(e);return{async index(e){const r=n();return t().get(r,e)},async staticIndex(n){const r="Static"+(e?`/${e}`:"");return t().get(r,n)},export:async(e,r)=>t().post(n("Export"),e,r),exampleUrl:async e=>t().get(n("ExampleUrl"),e),async store(e,r){const o=n(),i=new FormData;return e&&W(i,e),t().post(o,i,r)},async show(e,r){const o=n(e);return t().get(o,r)},async staticShow(n,r){const o=`Static${e?`/${e}`:""}/${n}`;return t().get(o,r)},async update(e,r,o){const i=n(e),a=new FormData;return a.append("_method","put"),r&&W(a,r),t().post(i,a,o)},async clone(e,r,o){const i=n(`${e}/Clone`),a=new FormData;return r&&W(a,r),t().post(i,a,o)},async destroy(e,r){const o=n(e);return t().delete(o,r)},async destroyAll(e,r){const o=n("DestroyAll");return t().post(o,{ids:e||[]},r)},getUploadAttachmentsUrl:e=>n(`${e}/Attachment/Upload`),async uploadAttachments(e,r,o){const i=n(`${e}/Attachment/Upload`);return t().post(i,r,o)},async deleteAttachment(e,r,o){const i=n(`${e}/Attachment/${r}/Delete`);return t().delete(i,o)},async updateAttachment(e,r,o,i){const a=n(`${e}/Attachment/${r}/Update`);return t().post(a,o,i)}}},e.StubUrl=I,e.appendArray=W,e.calculateAspectRatio=(e,t)=>{e=Number(e),t=Number(t);const n=(e,t)=>0===t?e:n(t,e%t),r=n(e,t);return[e/t,`${e/r}:${t/r}`]},e.camelCase=k,e.colorIsDark=e=>{const{luminosity:t}=n.colors;return t(e)<.5},e.colorStyle=(e,t=!1)=>{if(!e)return"";let n=e;return e.startsWith("#")||"transparent"===e||(n=re(e)),`${t?"background-color":"color"}: ${n};`},e.convertToArabicNumbers=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},e.copyText=async e=>{const t=null!=e?String(e):"";return await(0,n.copyToClipboard)(t),t},e.darkenColor=U,e.default=le,e.detectWebPlatform=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"},e.dimension=e=>{if(!e)return null;const t=e=>null!=e,n=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,r=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,o=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(o)&&t(r)?0===r?null:o/r:t(n)&&t(r)?n*r:t(n)&&t(o)?0===n?null:o/n:null},e.downloadFromResponse=(e,t)=>new Promise((n,r)=>{const o=e=>r(e??{status:!1,code:"unknown"}),i=e=>n({status:!0,response:e});try{if(!e)return void o({code:"no_response"});if(e?.data?.data?.url){const n=e?.data?.data?.url;if(t)return t(n,e),void i(e);const r=document.createElement("a");return r.setAttribute("href",n),r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),void i(e)}const n=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!n)return void o({code:"no_file_name"});const r=new Blob([e.data]),a=window.URL.createObjectURL(r),l=document.createElement("a");if(!l||!a)return void o({code:"no_file_url"});l.href=a,l.setAttribute("download",n),document.body.appendChild(l),l.click(),i(e),setTimeout(()=>{try{document.body.removeChild(l),URL.revokeObjectURL(a)}catch(e){console.log(e),e?.message&&alert(e.message)}},3e3)}catch(a){console.log(a),o(a)}}),e.flipChoice=e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=e[n].split("|");r.length>=2?t[n]=[r[1],r[0]].join("|"):t[n]=e[n]}return t},e.formatMoney=(e="",t="",n)=>{let r="number"!=typeof e?parseFloat(e):e;isNaN(r)&&(r=0);const o={minimumFractionDigits:2,maximumFractionDigits:2,...n||{}};return`${r.toLocaleString("en-US",o)} ${t}`.trim()},e.fromArabicNumber=q,e.iconSet=Y,e.icons=ee,e.install=ae,e.isElementInViewport=N,e.isKsaMobile=e=>{if(!e)return!1;const t=q(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},e.kebabCase=Q,e.lightenColor=E,e.makeUrl=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},e.nl2br=(e,t=!1)=>{if(!e)return"";const n=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,n)},e.openWindow=(e,t,r)=>(0,n.openURL)(e,t,r),e.pascalCase=O,e.plural=T,e.prettyPrint=e=>JSON.stringify(e,null,3).replace(/&/g,"&").replace(/\\"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,n,r,o)=>{let i=t||"";return n&&(i=i+'<span class="json-key" style="color: brown">'+n.replace(/[": ]/g,"")+"</span>: "),r&&(i=i+(r.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+r+"</span>"),i+(o||"")}),e.scrollToBottom=async(e,t,r)=>{const{setVerticalScrollPosition:o,getScrollHeight:i}=n.scroll;e||(e=window);const a=e&&"string"==typeof e?document.querySelector(e)||window:e;o(a,r=r||i(a),t=t||600)},e.scrollToElement=V,e.scrollToElementFromErrors=async(e,t,n)=>{if(!e)return;const r=Object.entries(e),o=r.map(([e])=>e);let i=[];if(r.length>0&&(i=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>o.includes(e?.getAttribute("data-input-name")))),i.length>0)for(const a of i){const e=r.find(e=>e[0]===a.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await V(a||`[name='${t}']`,{target:n});break}}else for(const[a,l]of r)if((l&&Array.isArray(l)?l[0]:l)?.toString?.()?.length){if(t)await V(t,{target:n});else{const e=`[data-input-name='${a}']`;await V(document.querySelector(e)||`[name='${a}']`,{target:n})}break}},e.setCss=(e,t,r)=>{if((0,n.setCssVar)(e,t,r||document.documentElement),"primary"===e){const e=E(t,50),r=U(t,10);(0,n.setCssVar)("scrollbar-track",e),(0,n.setCssVar)("scrollbar-hover",r)}},e.setDefaults=ie,e.shuffle=e=>{const t=[...e||[]];for(let n=t.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1));[t[n],t[e]]=[t[e],t[n]]}return t},e.singular=P.singular,e.snakeCase=_,e.sortNumberFormatted=(e,t)=>(parseFloat(F(e).replace(/[^\d.]/g,""))||0)-(parseFloat(F(t).replace(/[^\d.]/g,""))||0),e.strBefore=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",e.toAlphaNumerals=(e,t={})=>{const{uppercase:n=!0,startFromZero:r=!1}=t,o=parseInt(e?.toString()||"0",10)||0;if(o<=0&&!r)return"";if(r&&0===o)return n?"A":"a";let i=r?o+1:o,a="";for(;i>0;){i--;const e=i%26+(n?65:97);a=String.fromCharCode(e)+a,i=Math.floor(i/26)}return a},e.toNumber=F,e.toNumberFormat=(e=null,t)=>{if(null==e||""===e)return"";const n=F(e).split("."),r=/(\d+)(\d{3})/;for(;r.test(n[0]);)n[0]=n[0].replace(r,"$1,$2");let o=n.join(".");return t&&(o=`${o} ${t}`),o},e.ucFirst=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},e.uniq=D,e.uniqBy=(e,t)=>{const n=new Set;return e.filter(e=>{if(!e)return!1;const r=e[t];return!n.has(r)&&(n.add(r),!0)})},e.useMyth=G,e.useMythMeta=function(e,r,o){(0,n.useMeta)(()=>{const n=(0,t.toValue)(e)||"MyTh";return{title:(0,t.toValue)(r)||"",titleTemplate:e=>e&&e!==n?`${n} | ${e}`:n,...(0,t.toValue)(o)||{}}})},e.veeRules=ne,e.version=f,e.wordsToSingle=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},e.wordsWithThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},e.wordsWithoutThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e}});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("vue-i18n"),require("quasar")):"function"==typeof define&&define.amd?define(["exports","vue","vue-i18n","quasar"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Myth={},e.Vue,e.VueI18n,e.Quasar)}(this,function(e,t,n,o){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),p=(e,t)=>{let n={};for(var o in e)i(n,o,{get:e[o],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:"Module"}),n},d=(e,t,n)=>(n=null!=e?r(s(e)):{},((e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,s=l(t),c=0,p=s.length;c<p;c++)r=s[c],u.call(e,r)||r===n||i(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(o=a(t,r))||o.enumerable});return e})(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),m=Symbol.for("_m__m-container"),f="0.5.12",g=(0,t.reactive)({version:f,theme:{btn:{noCaps:!0},input:{}},component:{},loadingOptions:void 0}),h=Symbol.for("_m_"),y=c((e,t)=>{var n,o;n=e,o=function(){var e=[],t=[],n={},o={},r={};function i(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function l(e,t){return e.replace(t[0],function(n,o){var r,i,l=(r=t[1],i=arguments,r.replace(/\$(\d{1,2})/g,function(e,t){return i[t]||""}));return a(""===n?e[o-1]:n,l)})}function s(e,t,o){if(!e.length||n.hasOwnProperty(e))return t;for(var r=o.length;r--;){var i=o[r];if(i[0].test(t))return l(t,i)}return t}function u(e,t,n){return function(o){var r=o.toLowerCase();return t.hasOwnProperty(r)?a(o,r):e.hasOwnProperty(r)?a(o,e[r]):s(r,o,n)}}function c(e,t,n,o){return function(o){var r=o.toLowerCase();return!!t.hasOwnProperty(r)||!e.hasOwnProperty(r)&&s(r,r,n)===r}}function p(e,t,n){return(n?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=u(r,o,e),p.isPlural=c(r,o,e),p.singular=u(o,r,t),p.isSingular=c(o,r,t),p.addPluralRule=function(t,n){e.push([i(t),n])},p.addSingularRule=function(e,n){t.push([i(e),n])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),r[e]=t,o[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return p.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return p.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return p.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p},"function"==typeof require&&"object"==typeof e&&"object"==typeof t?t.exports=o():"function"==typeof define&&define.amd?define(function(){return o()}):n.pluralize=o()}),$=d(y(),1),b=/([\p{Ll}\d])(\p{Lu})/gu,v=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,w=/(\d)\p{Ll}|(\p{L})\d/u,S=/[^\p{L}\d]+/giu,C="$1\0$2";function x(e){let t=e.trim();t=t.replace(b,C).replace(v,C),t=t.replace(S,"\0");let n=0,o=t.length;for(;"\0"===t.charAt(n);)n++;if(n===o)return[];for(;"\0"===t.charAt(o-1);)o--;return t.slice(n,o).split(/\0/g)}function k(e){const t=x(e);for(let n=0;n<t.length;n++){const e=t[n],o=w.exec(e);if(o){const r=o.index+(o[1]??o[2]).length;t.splice(n,1,e.slice(0,r),e.slice(r))}}return t}function O(e,t){const[n,o,r]=L(e,t);return n+o.map(j(t?.locale)).join(t?.delimiter??" ")+r}function Q(e,t){const[n,o,r]=L(e,t),i=j(t?.locale),a=A(t?.locale),l=t?.mergeAmbiguousCharacters?z(i,a):R(i,a);return n+o.map((e,t)=>0===t?i(e):l(e,t)).join(t?.delimiter??"")+r}function _(e,t){const[n,o,r]=L(e,t),i=j(t?.locale),a=A(t?.locale),l=t?.mergeAmbiguousCharacters?z(i,a):R(i,a);return n+o.map(l).join(t?.delimiter??"")+r}function B(e,t){return O(e,{delimiter:"-",...t})}function M(e,t){return O(e,{delimiter:"_",...t})}function j(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function A(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function z(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function R(e,t){return(n,o)=>{const r=n[0];return(o>0&&r>="0"&&r<="9"?"_"+r:t(r))+e(n.slice(1))}}function L(e,t={}){const n=t.split??(t.separateNumbers?k:x),o=t.prefixCharacters??"",r=t.suffixCharacters??"";let i=0,a=e.length;for(;i<e.length;){const t=e.charAt(i);if(!o.includes(t))break;i++}for(;a>i;){const t=a-1,n=e.charAt(t);if(!r.includes(n))break;a=t}return[e.slice(0,i),n(e.slice(i,a)),e.slice(a)]}var P=$.default,T=e=>null==e?"":e.toString().replace(/٠/g,"0").replace(/١/g,"1").replace(/٢/g,"2").replace(/٣/g,"3").replace(/٤/g,"4").replace(/٥/g,"5").replace(/٦/g,"6").replace(/٧/g,"7").replace(/٨/g,"8").replace(/٩/g,"9"),q=e=>null==e||""===e?"":T(e).replace(/,/g,""),F=(e,t=10)=>{const{lighten:n}=o.colors;return n(e,-1*t)},U=(e,t=10)=>{const{lighten:n}=o.colors;return n(e,t)},E=(e,t,n)=>{let o;if((t instanceof File||t instanceof Blob)&&n){const o=t instanceof File?t.name:n;e.append(n,t,o)}else for(const r in t)if(o=t[r],null!=o&&"object"==typeof o){const t=n?n+"["+r+"]":r;Array.isArray(o)&&o.length<1?e.append(`${r}`,""):E(e,o,t)}else!0===o&&(o=1),!1===o&&(o=0),null==o&&(o=""),n?e.append(n+"["+r+"]",o):e.append(r,o);return e},N=e=>(t,n)=>(n??"")+(n&&e?"/":"")+(e??"")+(e&&t?"/":"")+(t??""),W=e=>{const t=e instanceof Window?e.document?.body?.getBoundingClientRect():e?.getBoundingClientRect?.();return!!t&&(t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight+t.height&&t.right<=window.innerWidth+t.width)},I=async(e,n)=>{await(0,t.nextTick)();const{getScrollTarget:r,setVerticalScrollPosition:i,getVerticalScrollPosition:a}=o.scroll,l="string"==typeof e?document.querySelector(e):e;if(!l)return;await(0,t.nextTick)();const{target:s}=n||{},u=r(l,("string"==typeof s?document.querySelector(s):s)||window.document.documentElement),c=a(u),p=n?.duration||1e3;let d,m=l;try{do{if(d=m.getBoundingClientRect().top,0===d&&!m.parentElement){d=m.scrollTop;break}if(0!==d&&m.parentElement)break;m=m.parentElement}while(m)}catch(g){console.log(g),d="offsetTop"in l&&l?.offsetTop||0}const f=d+c-(100+(n?.offset||0));W(l)||i(u,f,p)},V=e=>[...new Set(e)];function D(){const{t:e,te:o}=(0,n.useI18n)({useScope:"global"}),r=(0,t.inject)(h,g),i=(0,t.readonly)(r),a=(0,t.ref)("MyTh"),l=(0,t.computed)(()=>r.version),s=(0,t.computed)(()=>r.loadingOptions),u=(0,t.reactive)(r.theme),c=(0,t.computed)(()=>r.theme.btn),p=(0,t.computed)(()=>r.theme.input),d=(0,t.computed)(()=>r.component),m=(t,...n)=>{const r=(t=t??"").startsWith(":")&&t.endsWith(":"),i=t.startsWith("{'")&&t.endsWith("'}");if((r||i)&&t.length>2)return r?t.slice(1,-1):t.slice(2,-2);const a=`attributes.${t}`;return o(a)?e(a,...n):o(t)?e(t,...n):e(t)};return{config:i,name:a,version:l,loadingOptions:s,theme:u,btnStyle:c,inputStyle:p,componentProps:d,__:m,pageTitle:(e,t)=>{t??=2;const n=$.singular(e),r=_(e),i=M(e),a=Q(e),l=B(e),s=P(e),u=_(s),c=M(s),p=Q(s),d=B(s),f=V([e,n,r,i,a,l,s,u,c,p,d]),g=V(["routes","attributes"]);for(const h of g)for(const e of f)if(o(`${h}.${e}`))return m(`${h}.${e}`,t);return m(e)}}}var G=(0,t.defineComponent)({name:"MGrid",__name:"MGrid",props:{gridType:{default:"row"},size:{default:()=>{}},type:{default:()=>{}}},setup(e){const n=(0,t.inject)(m),{theme:o}=D(),r=(0,t.computed)(()=>void 0!==e.size?e.size:n?.size??o.gutterSize??"md"),i=(0,t.computed)(()=>void 0!==e.type?e.type:n?.type??o.gutterType??"gutter"),a=(0,t.computed)(()=>`q${"col"===e.type?"-col":""}-gutter`);return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)({"m-row row":"row"===e.gridType,"m-column column":"column"===e.gridType,[`${a.value}-${r.value}`]:!!i.value&&"none"!==i.value})},[(0,t.renderSlot)(n.$slots,"default")],2))}}),H=(0,t.defineComponent)({name:"MColumn",__name:"MColumn",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,o)=>((0,t.openBlock)(),(0,t.createBlock)(G,{size:e.size,type:e.type,"grid-type":"column"},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,"default")]),_:3},8,["size","type"]))}),Z=((e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n})((0,t.defineComponent)({name:"MContainer",__name:"MContainer",props:{size:{default:()=>"md"},type:{default:()=>"gutter"},dense:{type:Boolean,default:()=>{}},fluid:{type:Boolean,default:()=>{}}},setup(e){const{theme:n}=D(),o=(0,t.computed)(()=>"md"!==e.size?e.size:n.gutterSize??"md"),r=(0,t.computed)(()=>"gutter"!==e.type?e.type:n.gutterType??"gutter"),i=(0,t.computed)(()=>e.dense??n.dense??!1),a=(0,t.computed)(()=>e.fluid??n.fluid??!1);return(0,t.provide)(m,(0,t.reactive)({gutterSize:o,gutterType:r,dense:i,fluid:a})),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)([{"m-container__fluid":!!a.value,"m-container__dense":!!i.value,"q-pa-none":"none"===o.value,[`q-pa-${o.value||""}`]:o.value&&"none"!==o.value},"m-container"])},[(0,t.renderSlot)(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-cf679b9c"]]),J=(0,t.defineComponent)({name:"MRow",__name:"MRow",props:{size:{default:()=>{}},type:{default:()=>{}}},setup:e=>(n,o)=>((0,t.openBlock)(),(0,t.createBlock)(G,{size:e.size,type:e.type,"grid-type":"row"},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,"default")]),_:3},8,["size","type"]))}),K=(0,t.defineComponent)({name:"MBtn",__name:"MBtn",props:{label:{default:()=>{}},spinner:{default:()=>{}},loading:{type:Boolean,default:!1},nativeLabel:{type:Boolean,default:!1},noStyle:{type:Boolean,default:()=>!1}},setup(e){const n={QSpinner:o.QSpinner,QSpinnerAudio:o.QSpinnerAudio,QSpinnerBall:o.QSpinnerBall,QSpinnerBars:o.QSpinnerBars,QSpinnerBox:o.QSpinnerBox,QSpinnerClock:o.QSpinnerClock,QSpinnerComment:o.QSpinnerComment,QSpinnerCube:o.QSpinnerCube,QSpinnerDots:o.QSpinnerDots,QSpinnerFacebook:o.QSpinnerFacebook,QSpinnerGears:o.QSpinnerGears,QSpinnerGrid:o.QSpinnerGrid,QSpinnerHearts:o.QSpinnerHearts,QSpinnerHourglass:o.QSpinnerHourglass,QSpinnerInfinity:o.QSpinnerInfinity,QSpinnerIos:o.QSpinnerIos,QSpinnerOrbit:o.QSpinnerOrbit,QSpinnerOval:o.QSpinnerOval,QSpinnerPie:o.QSpinnerPie,QSpinnerPuff:o.QSpinnerPuff,QSpinnerRadio:o.QSpinnerRadio,QSpinnerRings:o.QSpinnerRings,QSpinnerTail:o.QSpinnerTail},{__:r,loadingOptions:i,componentProps:a,btnStyle:l}=D(),s=(0,t.computed)(()=>void 0!==e.spinner?e.spinner:i.value?.type),u=(0,t.computed)(()=>{if(s.value)return"spinner"===s.value?n.QSpinner:n[_(`q-spinner-${s.value}`)]}),c=(0,t.computed)(()=>i.value?.size),p=(0,t.computed)(()=>i.value?.color),d=void 0,m=(0,t.computed)(()=>!0===e.nativeLabel?null===e.label||void 0===e.label?d:String(e.label):void 0===e.label||null===e.label?d:r(e.label)),f=(0,t.computed)(()=>({...e.noStyle?{}:l.value,...a.value.btn||{},ariaLabel:m.value}));return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o.QBtn),(0,t.mergeProps)({label:m.value,loading:e.loading},f.value),(0,t.createSlots)({_:2},[n.$slots.loading?{name:"loading",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,"loading")]),key:"0"}:s.value&&u.value?{name:"loading",fn:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(u.value),{color:p.value,size:c.value},null,8,["color","size"]))]),key:"1"}:void 0,n.$slots.default?{name:"default",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,"default")]),key:"2"}:void 0]),1040,["label","loading"]))}}),X="myth-",Y={sar:"M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z&&M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z|0 0 1124.14 1256.39"},{testPattern:ee}=o.patterns,te={float:e=>null==e||o.is.number(parseInt(e))&&!isNaN(parseInt(e))&&e?.toString().split(".")?.length<=2&&/(\d)+/g.test(e)&&!/[a-zA-Z]/.test(e),date:e=>/^-?[\d]+-[0-1]\d-[0-3]\d$/.test(e),time:e=>ee.time(e),fulltime:e=>ee.fulltime(e),timeOrFulltime:e=>ee.timeOrFulltime(e),hexColor:e=>ee.hexColor(e),hexaColor:e=>ee.hexaColor(e),hexOrHexaColor:e=>ee.hexOrHexaColor(e),rgbColor:e=>ee.rgbColor(e),rgbaColor:e=>ee.rgbaColor(e),rgbOrRgbaColor:e=>ee.rgbOrRgbaColor(e),hexOrRgbColor:e=>ee.hexOrRgbColor(e),hexaOrRgbaColor:e=>ee.hexaOrRgbaColor(e),color:e=>!e||ee.anyColor(e),requiredColor:e=>ee.anyColor(e)},{getPaletteColor:ne}=o.colors,oe=["data-input-name"],re=(0,t.defineComponent)({name:"MCol",__name:"MCol",props:{name:{},auto:{type:Boolean},shrink:{type:Boolean},grow:{type:Boolean},col:{type:[Boolean,String,Number]},xs:{type:[Boolean,String,Number]},sm:{type:[Boolean,String,Number]},md:{type:[Boolean,String,Number]},lg:{type:[Boolean,String,Number]},xl:{type:[Boolean,String,Number]},xxl:{type:[Boolean,String,Number]}},setup(e){const n=e,o=(0,t.computed)(()=>{const e=["m-col"];!1!==n.auto&&void 0!==n.auto&&e.push("col-auto"),!1!==n.shrink&&void 0!==n.shrink&&e.push("col-shrink"),!1!==n.grow&&void 0!==n.grow&&e.push("col-grow"),"grow"===n.col?e.push("col-grow"):"shrink"===n.col?e.push("col-shrink"):"string"!=typeof n.col&&"number"!=typeof n.col||n.col?.toString()?.trim()?.length>0&&!e.includes(`col-${n.col}`)&&e.push(`col-${n.col}`);for(const t of["xs","sm","md","lg","xl","xxl"])n[t]&&"boolean"!=typeof n[t]&&(e.includes(`col-${t}-${n[t]}`)||e.push(`col-${t}-${n[t]}`));return 1===e.length&&!1!==n.col&&void 0!==n.col&&e.push("col"),V(e)});return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(o.value),"data-input-name":e.name??void 0},[(0,t.renderSlot)(n.$slots,"default")],10,oe))}}),ie=p({MBtn:()=>K,MCol:()=>re,MColumn:()=>H,MContainer:()=>Z,MGrid:()=>G,MRow:()=>J});var ae=!1,le=(e={})=>{e.theme&&(g.theme?Object.assign(g.theme,e.theme):g.theme=e.theme),e.component&&(g.component?Object.assign(g.component,e.component):g.component=e.component),e.loadingOptions&&(g.loadingOptions?Object.assign(g.loadingOptions,e.loadingOptions):g.loadingOptions=e.loadingOptions)},se=(e,t={})=>{if(ae)return void(process.env.DEV&&console.warn("Plugin [@mythpe/quasar-ui-qui] already initialized. Skipping configuration injection."));le(t),e.provide(h,g),Object.entries(ie).forEach(([t,n])=>{void 0===e.component(t)&&e.component(t,n)});const n=e.config.globalProperties.$q.iconMapFn;e.config.globalProperties.$q.iconMapFn=e=>{if(e.startsWith("myth-")){const t=Q(e.slice(5));if(t&&t in Y&&Y[t])return{icon:Y[t]}}if("function"==typeof n)return n(e)},ae=!0},ue={version:f,install:se};e.MBtn=K,e.MCol=re,e.MColumn=H,e.MContainer=Z,e.MGrid=G,e.MRow=J,e.Stub=(e,t)=>{const n=N(e);return{async index(e){const o=n();return t().get(o,e)},async staticIndex(n){const o="Static"+(e?`/${e}`:"");return t().get(o,n)},export:async(e,o)=>t().post(n("Export"),e,o),exampleUrl:async e=>t().get(n("ExampleUrl"),e),async store(e,o){const r=n(),i=new FormData;return e&&E(i,e),t().post(r,i,o)},async show(e,o){const r=n(e);return t().get(r,o)},async staticShow(n,o){const r=`Static${e?`/${e}`:""}/${n}`;return t().get(r,o)},async update(e,o,r){const i=n(e),a=new FormData;return a.append("_method","put"),o&&E(a,o),t().post(i,a,r)},async clone(e,o,r){const i=n(`${e}/Clone`),a=new FormData;return o&&E(a,o),t().post(i,a,r)},async destroy(e,o){const r=n(e);return t().delete(r,o)},async destroyAll(e,o){const r=n("DestroyAll");return t().post(r,{ids:e||[]},o)},getUploadAttachmentsUrl:e=>n(`${e}/Attachment/Upload`),async uploadAttachments(e,o,r){const i=n(`${e}/Attachment/Upload`);return t().post(i,o,r)},async deleteAttachment(e,o,r){const i=n(`${e}/Attachment/${o}/Delete`);return t().delete(i,r)},async updateAttachment(e,o,r,i){const a=n(`${e}/Attachment/${o}/Update`);return t().post(a,r,i)}}},e.StubUrl=N,e.appendArray=E,e.calculateAspectRatio=(e,t)=>{e=Number(e),t=Number(t);const n=(e,t)=>0===t?e:n(t,e%t),o=n(e,t);return[e/t,`${e/o}:${t/o}`]},e.camelCase=Q,e.colorIsDark=e=>{const{luminosity:t}=o.colors;return t(e)<.5},e.colorStyle=(e,t=!1)=>{if(!e)return"";let n=e;return e.startsWith("#")||"transparent"===e||(n=ne(e)),`${t?"background-color":"color"}: ${n};`},e.convertToArabicNumbers=e=>{const t={0:"٠",1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩"};return e.toString().split("").map(e=>t[e]||e).join("")},e.copyText=async e=>{const t=null!=e?String(e):"";return await(0,o.copyToClipboard)(t),t},e.darkenColor=F,e.default=ue,e.detectWebPlatform=()=>{let e=navigator.userAgent||navigator.vendor;return e=e?e.toLowerCase():"",/ipad|iphone|ipod/g.test(e)?"ios":/android/i.test(e)?"android":"other"},e.dimension=e=>{if(!e)return null;const t=e=>null!=e,n=t(e.ratio)?"string"==typeof e.ratio?parseFloat(e.ratio):e.ratio:void 0,o=t(e.height)?"string"==typeof e.height?parseFloat(e.height):e.height:void 0,r=t(e.width)?"string"==typeof e.width?parseFloat(e.width):e.width:void 0;return t(r)&&t(o)?0===o?null:r/o:t(n)&&t(o)?n*o:t(n)&&t(r)?0===n?null:r/n:null},e.downloadFromResponse=(e,t)=>new Promise((n,o)=>{const r=e=>o(e??{status:!1,code:"unknown"}),i=e=>n({status:!0,response:e});try{if(!e)return void r({code:"no_response"});if(e?.data?.data?.url){const n=e?.data?.data?.url;if(t)return t(n,e),void i(e);const o=document.createElement("a");return o.setAttribute("href",n),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),void i(e)}const n=(e.headers["content-disposition"]||"").split("filename=").pop().replace(/^"+|"+$/g,"");if(!n)return void r({code:"no_file_name"});const o=new Blob([e.data]),a=window.URL.createObjectURL(o),l=document.createElement("a");if(!l||!a)return void r({code:"no_file_url"});l.href=a,l.setAttribute("download",n),document.body.appendChild(l),l.click(),i(e),setTimeout(()=>{try{document.body.removeChild(l),URL.revokeObjectURL(a)}catch(e){console.log(e),e?.message&&alert(e.message)}},3e3)}catch(a){console.log(a),r(a)}}),e.flipChoice=e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n].split("|");o.length>=2?t[n]=[o[1],o[0]].join("|"):t[n]=e[n]}return t},e.formatMoney=(e="",t="",n)=>{let o="number"!=typeof e?parseFloat(e):e;isNaN(o)&&(o=0);const r={minimumFractionDigits:2,maximumFractionDigits:2,...n||{}};return`${o.toLocaleString("en-US",r)} ${t}`.trim()},e.fromArabicNumber=T,e.iconSet=X,e.icons=Y,e.install=se,e.isElementInViewport=W,e.isKsaMobile=e=>{if(!e)return!1;const t=T(e).trim();return 10===t.length&&t.startsWith("05")||9===t.length&&t.startsWith("5")},e.kebabCase=B,e.lightenColor=U,e.makeUrl=e=>{if("/"===(e=e||"").slice(0,1)&&(e=e.slice(1)),window){const t=window.location;return`${t.protocol}//${t.host}/${e}`}return`//${e}`},e.nl2br=(e,t=!1)=>{if(!e)return"";const n=t?"<br />":"<br>";return e.toString().replace(/(\r\n|\n\r|\r|\n)/g,n)},e.openWindow=(e,t,n)=>(0,o.openURL)(e,t,n),e.pascalCase=_,e.plural=P,e.prettyPrint=e=>JSON.stringify(e,null,3).replace(/&/g,"&").replace(/\\"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm,(e,t,n,o,r)=>{let i=t||"";return n&&(i=i+'<span class="json-key" style="color: brown">'+n.replace(/[": ]/g,"")+"</span>: "),o&&(i=i+(o.startsWith('"')?'<span class="json-string" style="color: olive">':'<span class="json-value" style="color: navy">')+o+"</span>"),i+(r||"")}),e.scrollToBottom=async(e,t,n)=>{const{setVerticalScrollPosition:r,getScrollHeight:i}=o.scroll;e||(e=window);const a=e&&"string"==typeof e?document.querySelector(e)||window:e;r(a,n=n||i(a),t=t||600)},e.scrollToElement=I,e.scrollToElementFromErrors=async(e,t,n)=>{if(!e)return;const o=Object.entries(e),r=o.map(([e])=>e);let i=[];if(o.length>0&&(i=Array.from(document.body.querySelectorAll("[data-input-name].m-input__error")||[]).filter(e=>r.includes(e?.getAttribute("data-input-name")))),i.length>0)for(const a of i){const e=o.find(e=>e[0]===a.getAttribute("data-input-name"));if(e?.[1]){const t=e[0];await I(a||`[name='${t}']`,{target:n});break}}else for(const[a,l]of o)if((l&&Array.isArray(l)?l[0]:l)?.toString?.()?.length){if(t)await I(t,{target:n});else{const e=`[data-input-name='${a}']`;await I(document.querySelector(e)||`[name='${a}']`,{target:n})}break}},e.setCss=(e,t,n)=>{if((0,o.setCssVar)(e,t,n||document.documentElement),"primary"===e){const e=U(t,50),n=F(t,10);(0,o.setCssVar)("scrollbar-track",e),(0,o.setCssVar)("scrollbar-hover",n)}},e.setDefaults=le,e.shuffle=e=>{const t=[...e||[]];for(let n=t.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1));[t[n],t[e]]=[t[e],t[n]]}return t},e.singular=$.singular,e.snakeCase=M,e.sortNumberFormatted=(e,t)=>(parseFloat(q(e).replace(/[^\d.]/g,""))||0)-(parseFloat(q(t).replace(/[^\d.]/g,""))||0),e.strBefore=(e,t="_to_string")=>e?e.slice(-t.length)===t?e.slice(0,e.length-t.length):e:"",e.toAlphaNumerals=(e,t={})=>{const{uppercase:n=!0,startFromZero:o=!1}=t,r=parseInt(e?.toString()||"0",10)||0;if(r<=0&&!o)return"";if(o&&0===r)return n?"A":"a";let i=o?r+1:r,a="";for(;i>0;){i--;const e=i%26+(n?65:97);a=String.fromCharCode(e)+a,i=Math.floor(i/26)}return a},e.toNumber=q,e.toNumberFormat=(e=null,t)=>{if(null==e||""===e)return"";const n=q(e).split("."),o=/(\d+)(\d{3})/;for(;o.test(n[0]);)n[0]=n[0].replace(o,"$1,$2");let r=n.join(".");return t&&(r=`${r} ${t}`),r},e.ucFirst=e=>{if(!e)return"";const t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},e.uniq=V,e.uniqBy=(e,t)=>{const n=new Set;return e.filter(e=>{if(!e)return!1;const o=e[t];return!n.has(o)&&(n.add(o),!0)})},e.useMyth=D,e.useMythMeta=function(e,n,r){(0,o.useMeta)(()=>{const o=(0,t.toValue)(e)||"MyTh";return{title:(0,t.toValue)(n)||"",titleTemplate:e=>e&&e!==o?`${o} | ${e}`:o,...(0,t.toValue)(r)||{}}})},e.veeRules=te,e.version=f,e.wordsToSingle=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")||(t[e]="ال"+t[e]),t[e].endsWith("ي")||(t[e]+="ي");return t.join(" ")}return e},e.wordsWithThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");if(t[t.length-1].startsWith("ال"))return e;for(let e=0;e<t.length;e++)!t[e].startsWith("ال")&&t[e].length>0&&(t[e]="ال"+t[e]);return t.join(" ")}return e},e.wordsWithoutThe=(e,t)=>{if(e&&"ar"===t?.toString()?.toLowerCase()){const t=e.split(" ");for(let e=0;e<t.length;e++)t[e].startsWith("ال")&&(t[e]=t[e].slice(2));return t.join(" ")}return e}});
|
package/dist/types/config.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { setCssVar } from 'quasar';
|
|
3
|
-
import { DownloadFromResponse, HelpersStubSchema, UrlType } from '../types
|
|
3
|
+
import { DownloadFromResponse, HelpersStubSchema, UrlType } from '../types';
|
|
4
4
|
export declare const darkenColor: (color: string, percent?: number) => string;
|
|
5
5
|
export declare const lightenColor: (color: string, percent?: number) => string;
|
|
6
6
|
export declare const setCss: typeof setCssVar;
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mythpe/quasar-ui-qui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "MyTh Ahmed Faiz",
|
|
6
6
|
"mobile": "+966590470092",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"main": "./dist/index.common.cjs",
|
|
25
25
|
"module": "./dist/index.js",
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
|
+
"vueGlobaLComponents": "./dist/index.d.ts",
|
|
27
28
|
"files": [
|
|
28
29
|
"dist"
|
|
29
30
|
],
|