@hotelinking/ui 9.41.16 → 9.41.18
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/types/components/Atoms/uiButton/uiButton.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiCheckbox/uiCheckbox.vue.d.ts +3 -3
- package/dist/types/components/Atoms/uiDropdown/uiDropdown.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiIcon/uiIcon.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiInput/uiInput.vue.d.ts +3 -7
- package/dist/types/components/Atoms/uiInputFile/uiInputFile.vue.d.ts +3 -7
- package/dist/types/components/Atoms/uiRangeSlider/uiRangeSlider.vue.d.ts +3 -4
- package/dist/types/components/Atoms/uiSelect/uiSelect.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiTag/uiTag.vue.d.ts +3 -3
- package/dist/types/components/Atoms/uiTextArea/uiTextArea.vue.d.ts +10 -7
- package/dist/types/components/Atoms/uiToggle/uiToggle.vue.d.ts +1 -1
- package/dist/types/types/index.d.ts +146 -9
- package/dist/ui.cjs +1 -1
- package/dist/ui.es.js +15 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiCheckboxInterface
|
|
1
|
+
import { UiCheckboxInterface } from "@/types";
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
slots: {
|
|
4
4
|
default?(_: {}): any;
|
|
@@ -8,9 +8,9 @@ declare function __VLS_template(): {
|
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
10
|
declare const __VLS_component: import("vue").DefineComponent<UiCheckboxInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
-
checkboxChanged: (checkbox: UiCheckboxType) => any;
|
|
11
|
+
checkboxChanged: (checkbox: import("@/types").UiCheckboxType) => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<UiCheckboxInterface> & Readonly<{
|
|
13
|
-
onCheckboxChanged?: ((checkbox: UiCheckboxType) => any) | undefined;
|
|
13
|
+
onCheckboxChanged?: ((checkbox: import("@/types").UiCheckboxType) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
loading: boolean;
|
|
16
16
|
disabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiDropdownInterface, UiDropdownItemType } from "
|
|
1
|
+
import { UiDropdownInterface, UiDropdownItemType } from "@/types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<UiDropdownInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
optionSelected: (v: UiDropdownItemType) => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiDropdownInterface> & Readonly<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiIconInterface } from '
|
|
1
|
+
import { UiIconInterface } from '@/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<UiIconInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiIconInterface> & Readonly<{}>, {
|
|
3
3
|
size: "small" | "medium" | "big" | "bigger" | "huge" | "massive";
|
|
4
4
|
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { UiInputInterface } from "
|
|
2
|
-
type InputType = {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
1
|
+
import { UiInputInterface } from "@/types";
|
|
6
2
|
declare const _default: import("vue").DefineComponent<UiInputInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
inputChanged: (T: InputType) => any;
|
|
3
|
+
inputChanged: (T: import("@/types").InputType) => any;
|
|
8
4
|
rightAddOnClicked: () => any;
|
|
9
5
|
addOnClicked: () => any;
|
|
10
6
|
}, string, import("vue").PublicProps, Readonly<UiInputInterface> & Readonly<{
|
|
11
|
-
onInputChanged?: ((T: InputType) => any) | undefined;
|
|
7
|
+
onInputChanged?: ((T: import("@/types").InputType) => any) | undefined;
|
|
12
8
|
onRightAddOnClicked?: (() => any) | undefined;
|
|
13
9
|
onAddOnClicked?: (() => any) | undefined;
|
|
14
10
|
}>, {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { UiInputFileInterface } from "
|
|
2
|
-
type FileInputType = {
|
|
3
|
-
id: string;
|
|
4
|
-
files: any;
|
|
5
|
-
};
|
|
1
|
+
import { UiInputFileInterface } from "@/types";
|
|
6
2
|
declare const _default: import("vue").DefineComponent<UiInputFileInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
filesUploaded: (T: FileInputType) => any;
|
|
3
|
+
filesUploaded: (T: import("@/types").FileInputType) => any;
|
|
8
4
|
}, string, import("vue").PublicProps, Readonly<UiInputFileInterface> & Readonly<{
|
|
9
|
-
onFilesUploaded?: ((T: FileInputType) => any) | undefined;
|
|
5
|
+
onFilesUploaded?: ((T: import("@/types").FileInputType) => any) | undefined;
|
|
10
6
|
}>, {
|
|
11
7
|
icon: any;
|
|
12
8
|
loading: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { UiRangeSliderInterface } from '
|
|
2
|
-
type SliderEventType = {};
|
|
1
|
+
import { UiRangeSliderInterface } from '@/types';
|
|
3
2
|
declare const _default: import("vue").DefineComponent<UiRangeSliderInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
-
sliderUpdated: (T:
|
|
3
|
+
sliderUpdated: (T: any) => any;
|
|
5
4
|
}, string, import("vue").PublicProps, Readonly<UiRangeSliderInterface> & Readonly<{
|
|
6
|
-
onSliderUpdated?: ((T:
|
|
5
|
+
onSliderUpdated?: ((T: any) => any) | undefined;
|
|
7
6
|
}>, {
|
|
8
7
|
loading: boolean;
|
|
9
8
|
disabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectItemType, UiSelectInterface } from "
|
|
1
|
+
import { SelectItemType, UiSelectInterface } from "@/types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<UiSelectInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
selectChanged: (T: SelectItemType) => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiSelectInterface> & Readonly<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiTagInterface } from "
|
|
1
|
+
import { UiTagInterface } from "@/types";
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
slots: {
|
|
4
4
|
default?(_: {}): any;
|
|
@@ -8,9 +8,9 @@ declare function __VLS_template(): {
|
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
10
|
declare const __VLS_component: import("vue").DefineComponent<UiTagInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
-
tagEvent: (T: string) => any;
|
|
11
|
+
tagEvent: (T: string | undefined) => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<UiTagInterface> & Readonly<{
|
|
13
|
-
onTagEvent?: ((T: string) => any) | undefined;
|
|
13
|
+
onTagEvent?: ((T: string | undefined) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
size: "small" | "medium" | "big";
|
|
16
16
|
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { UiTextAreaInterface } from "
|
|
2
|
-
type InputType = {
|
|
3
|
-
name: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
};
|
|
1
|
+
import { UiTextAreaInterface } from "@/types";
|
|
6
2
|
declare const _default: import("vue").DefineComponent<UiTextAreaInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
inputChanged: (T:
|
|
3
|
+
inputChanged: (T: {
|
|
4
|
+
name: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
}) => any;
|
|
8
7
|
}, string, import("vue").PublicProps, Readonly<UiTextAreaInterface> & Readonly<{
|
|
9
|
-
onInputChanged?: ((T:
|
|
8
|
+
onInputChanged?: ((T: {
|
|
9
|
+
name: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
}) => any) | undefined;
|
|
10
12
|
}>, {
|
|
13
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
11
14
|
loading: boolean;
|
|
12
15
|
disabled: boolean;
|
|
13
16
|
placeholder: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiToggleInterface } from "
|
|
1
|
+
import { UiToggleInterface } from "@/types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<UiToggleInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiToggleInterface> & Readonly<{}>, {
|
|
3
3
|
loading: boolean;
|
|
4
4
|
disabled: boolean;
|
|
@@ -1,131 +1,268 @@
|
|
|
1
|
+
import { FunctionalComponent } from "vue";
|
|
1
2
|
export declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
|
|
2
3
|
export declare const UiInputTypes: readonly ["text", "email", "password", "number", "date"];
|
|
3
4
|
export declare const MonoColors: readonly ["black", "gray", "white"];
|
|
4
5
|
export declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
|
|
5
|
-
type Colors = typeof Colors[number];
|
|
6
|
-
type AllColors = typeof AllColors[number];
|
|
7
|
-
type InputTypes = typeof UiInputTypes[number];
|
|
8
6
|
export declare const Sizes: readonly ["small", "medium", "big"];
|
|
9
7
|
export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
|
|
10
8
|
export declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
|
|
9
|
+
type Colors = typeof Colors[number];
|
|
10
|
+
type AllColors = typeof AllColors[number];
|
|
11
|
+
type InputTypes = typeof UiInputTypes[number];
|
|
11
12
|
type Sizes = typeof Sizes[number];
|
|
12
13
|
type AllSizes = typeof AllSizes[number];
|
|
13
14
|
export interface UiButtonInterface {
|
|
15
|
+
/** Defines if button as block class applied or not */
|
|
14
16
|
block?: boolean;
|
|
17
|
+
/** Color options (see type Colors) */
|
|
15
18
|
color?: Colors;
|
|
19
|
+
/** Button is enabled or disabled */
|
|
16
20
|
disabled?: boolean;
|
|
21
|
+
/** Defines an icon in button´s left side. As you need to import the icon directly from icons library, you must use '@heroicons/vue/24/outline' icon type */
|
|
17
22
|
icon?: any;
|
|
23
|
+
/** Is in skeleton mode or not */
|
|
18
24
|
loading: boolean;
|
|
25
|
+
/** Size options (see type Sizes) */
|
|
19
26
|
size?: Sizes;
|
|
20
27
|
}
|
|
21
28
|
export interface UiCheckboxInterface {
|
|
29
|
+
/** Is checked or not */
|
|
22
30
|
check?: boolean;
|
|
31
|
+
/** Is disabled or not */
|
|
23
32
|
disabled?: boolean;
|
|
33
|
+
/** Is loading or not */
|
|
24
34
|
loading: boolean;
|
|
35
|
+
/** Internal value of checkbox */
|
|
25
36
|
value: string;
|
|
37
|
+
/** To be used in UiSidebarV2 */
|
|
26
38
|
text?: string;
|
|
27
39
|
}
|
|
40
|
+
export interface UiCheckboxEventsInterface {
|
|
41
|
+
/** On checkbox changed state */
|
|
42
|
+
(e: 'checkboxChanged', checkbox: UiCheckboxType): void;
|
|
43
|
+
}
|
|
28
44
|
export type UiCheckboxType = {
|
|
45
|
+
/** Is checked or not */
|
|
29
46
|
checked: boolean;
|
|
47
|
+
/** Internal value of checkbox */
|
|
30
48
|
value: string;
|
|
31
49
|
};
|
|
32
50
|
export interface UiDropdownInterface {
|
|
51
|
+
/** Dropdown items */
|
|
33
52
|
items: UiDropdownItemType[];
|
|
53
|
+
/** Set dropdown to left or right */
|
|
34
54
|
position?: "left" | "right";
|
|
55
|
+
/** Is disabled or not */
|
|
35
56
|
disabled?: boolean;
|
|
57
|
+
/** Top label of Dropdown */
|
|
36
58
|
label?: string;
|
|
59
|
+
/** Is loading or not */
|
|
37
60
|
loading: boolean;
|
|
38
61
|
}
|
|
62
|
+
export interface UiDropdownEventsInterface {
|
|
63
|
+
/** On option selected */
|
|
64
|
+
(e: 'optionSelected', v: UiDropdownItemType): void;
|
|
65
|
+
}
|
|
39
66
|
export type UiDropdownItemType = {
|
|
67
|
+
/** Name of item */
|
|
40
68
|
name: string;
|
|
69
|
+
/** Value of item */
|
|
41
70
|
value: string;
|
|
71
|
+
/** Is it active or not */
|
|
42
72
|
active?: boolean;
|
|
43
73
|
};
|
|
44
74
|
export interface UiIconInterface {
|
|
45
|
-
icon
|
|
75
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
76
|
+
icon: FunctionalComponent;
|
|
77
|
+
/** Size options (see type AllSizes) */
|
|
46
78
|
size?: AllSizes;
|
|
79
|
+
/** Color options (see type AllColors) */
|
|
47
80
|
color?: AllColors;
|
|
81
|
+
/** Is loading or not */
|
|
48
82
|
loading: boolean;
|
|
49
83
|
}
|
|
50
84
|
export interface UiInputInterface {
|
|
85
|
+
/** Label in top of the input field */
|
|
51
86
|
label?: string;
|
|
87
|
+
/** Input field type */
|
|
52
88
|
type?: InputTypes;
|
|
89
|
+
/** Name of the input field */
|
|
53
90
|
name: string;
|
|
91
|
+
/** Placeholder of the input field */
|
|
54
92
|
placeholder?: string;
|
|
93
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
55
94
|
icon?: any;
|
|
95
|
+
/** Is disabled or not */
|
|
56
96
|
disabled?: boolean;
|
|
97
|
+
/** Color options (see type Colors) */
|
|
57
98
|
color?: AllColors;
|
|
99
|
+
/** Internal value of input field */
|
|
58
100
|
value?: string;
|
|
101
|
+
/** Text below the input field that shows the error */
|
|
59
102
|
error?: string;
|
|
103
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
60
104
|
requiredText?: string;
|
|
105
|
+
/** Addon text in the input field */
|
|
61
106
|
addOn?: string;
|
|
107
|
+
/** Addon text but at right side of input field */
|
|
62
108
|
rightAddOn?: string;
|
|
109
|
+
/** Is loading or not */
|
|
63
110
|
loading: boolean;
|
|
64
111
|
}
|
|
112
|
+
export interface UiInputEventsInterface {
|
|
113
|
+
/** Whenever the input changes */
|
|
114
|
+
(e: "inputChanged", T: InputType): void;
|
|
115
|
+
/** Right addon is clicked */
|
|
116
|
+
(e: "rightAddOnClicked"): void;
|
|
117
|
+
/** Addon clicked */
|
|
118
|
+
(e: "addOnClicked"): void;
|
|
119
|
+
}
|
|
120
|
+
export type InputType = {
|
|
121
|
+
/** Name of the input field */
|
|
122
|
+
name: string;
|
|
123
|
+
/** Internal value of input field */
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
65
126
|
export interface UiInputFileInterface {
|
|
127
|
+
/** Name of the input field */
|
|
66
128
|
name: string;
|
|
129
|
+
/** Id of the input field */
|
|
67
130
|
id: string;
|
|
131
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
68
132
|
requiredText?: string;
|
|
133
|
+
/** Placeholder of the input field */
|
|
69
134
|
placeholder: string;
|
|
135
|
+
/** Part of text literal that makes reference to drag and drop a file inside the input field */
|
|
70
136
|
dragAndDrop: string;
|
|
137
|
+
/** Part of text literal that makes reference to file types inside the input field */
|
|
71
138
|
fileTypesAndSizes: string;
|
|
139
|
+
/** Text below the input field that shows the error */
|
|
72
140
|
error?: string;
|
|
141
|
+
/** MIME types of files that input field must accept */
|
|
73
142
|
accept: string;
|
|
143
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
74
144
|
icon?: any;
|
|
145
|
+
/** Is loading or not */
|
|
75
146
|
loading: boolean;
|
|
147
|
+
/** Label in top of the input field */
|
|
76
148
|
label?: string;
|
|
77
149
|
}
|
|
150
|
+
export type FileInputType = {
|
|
151
|
+
/** Id of the input field */
|
|
152
|
+
id: string;
|
|
153
|
+
/** Uploaded files */
|
|
154
|
+
files: any;
|
|
155
|
+
};
|
|
156
|
+
export interface UiInputFileEventsInterface {
|
|
157
|
+
/** Whenever files are dragged inside input field, or send the default way */
|
|
158
|
+
(e: "filesUploaded", T: FileInputType): void;
|
|
159
|
+
}
|
|
78
160
|
export interface UiRangeSliderInterface {
|
|
161
|
+
/** Is loading or not */
|
|
79
162
|
loading: boolean;
|
|
163
|
+
/** Is disabled or not */
|
|
80
164
|
disabled?: boolean;
|
|
165
|
+
/** Min number of the range slider */
|
|
81
166
|
min?: number;
|
|
167
|
+
/** Max number of the range slider */
|
|
82
168
|
max?: number;
|
|
169
|
+
/** Actual value or range of values of the slider */
|
|
83
170
|
sliderValue?: number | number[];
|
|
171
|
+
/** Label in top of the slider */
|
|
84
172
|
label: string;
|
|
173
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
85
174
|
requiredText?: string;
|
|
86
175
|
}
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
176
|
+
export interface UiRangeSliderEventsInterface {
|
|
177
|
+
/** Whenever the slider is changed */
|
|
178
|
+
(e: "sliderUpdated", T: any): void;
|
|
179
|
+
}
|
|
91
180
|
export interface UiSelectInterface {
|
|
181
|
+
/** Array of items */
|
|
92
182
|
items: SelectItemType[];
|
|
183
|
+
/** Label in top of the Select */
|
|
93
184
|
label?: string;
|
|
185
|
+
/** Text below the input field that shows the error */
|
|
94
186
|
error?: string;
|
|
187
|
+
/** Color options (see type AllColors) */
|
|
95
188
|
color?: AllColors;
|
|
189
|
+
/** Selected item */
|
|
96
190
|
select: SelectItemType;
|
|
191
|
+
/** Is loading or not */
|
|
97
192
|
loading?: boolean;
|
|
193
|
+
/** Is disabled or not */
|
|
98
194
|
disabled?: boolean;
|
|
195
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
99
196
|
requiredText?: string;
|
|
100
197
|
}
|
|
198
|
+
export interface UiSelectEventsInterface {
|
|
199
|
+
/** When a item is selected */
|
|
200
|
+
(e: "selectChanged", T: SelectItemType): void;
|
|
201
|
+
}
|
|
202
|
+
export type SelectItemType = {
|
|
203
|
+
/** Unique value inside the select */
|
|
204
|
+
id: string;
|
|
205
|
+
/** Name of the item */
|
|
206
|
+
name: string;
|
|
207
|
+
};
|
|
101
208
|
export interface UiTagInterface {
|
|
209
|
+
/** Color options (see type AllColors) */
|
|
102
210
|
color?: AllColors;
|
|
211
|
+
/** Is loading or not */
|
|
103
212
|
loading?: boolean;
|
|
213
|
+
/** Size options (see type Sizes) */
|
|
104
214
|
size?: Sizes;
|
|
215
|
+
/** If tag is clickable, this is the name of the event will be fired */
|
|
105
216
|
event?: string;
|
|
217
|
+
/** In uiCard, uiDeviceStatus, tag instead of slot uses name */
|
|
106
218
|
name?: string;
|
|
219
|
+
/** Tag text usually uses the slot, but there is some other components that needs the taxt text as a prop. You can use text instead of prop if needed */
|
|
107
220
|
text?: string;
|
|
108
221
|
}
|
|
222
|
+
export interface UiTagEventsInterface {
|
|
223
|
+
/** When clicked, if props.event is defined. It emits the value of props.event */
|
|
224
|
+
(e: "tagEvent", T: UiTagInterface["event"]): void;
|
|
225
|
+
}
|
|
109
226
|
export interface UiTextAreaInterface {
|
|
227
|
+
/** Name of the text area */
|
|
110
228
|
name: string;
|
|
229
|
+
/** Label in top of the text area */
|
|
111
230
|
label: string;
|
|
231
|
+
/** Placeholder of the text area */
|
|
112
232
|
placeholder?: string;
|
|
233
|
+
/** Value (text) of the text area */
|
|
113
234
|
value?: string;
|
|
114
|
-
|
|
235
|
+
/** Color options (see type Colors) */
|
|
236
|
+
color?: AllColors;
|
|
237
|
+
/** Is disabled or not */
|
|
115
238
|
disabled?: boolean;
|
|
239
|
+
/** Text below the text area that shows the error */
|
|
116
240
|
error?: string;
|
|
241
|
+
/** Is loading or not */
|
|
117
242
|
loading?: boolean;
|
|
243
|
+
/** Text that appears top right side of the text area, that informs to user is a required field */
|
|
118
244
|
requiredText?: string;
|
|
119
245
|
}
|
|
246
|
+
export interface UiTextAreaEventsInterface {
|
|
247
|
+
/** Whenever text area value changes is emitted */
|
|
248
|
+
(e: "inputChanged", T: {
|
|
249
|
+
name: string;
|
|
250
|
+
value?: string;
|
|
251
|
+
}): void;
|
|
252
|
+
}
|
|
120
253
|
export interface UiToggleInterface {
|
|
254
|
+
/** Toggle item that contains title, subtitle, if it´s active or not, and the action */
|
|
121
255
|
item: {
|
|
122
256
|
title: string;
|
|
123
257
|
subtitle?: string;
|
|
124
258
|
active?: boolean;
|
|
125
259
|
action: string;
|
|
126
260
|
};
|
|
261
|
+
/** Is checked or not */
|
|
127
262
|
checked?: boolean;
|
|
263
|
+
/** Is disabled or not */
|
|
128
264
|
disabled?: boolean;
|
|
265
|
+
/** Is loading or not */
|
|
129
266
|
loading: boolean;
|
|
130
267
|
}
|
|
131
268
|
export interface UiAlertInterface {
|
package/dist/ui.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),Se=require("@headlessui/vue"),wa=require("vue3-draggable"),He=s.defineComponent({__name:"uiIcon",props:{icon:{},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass([{"h-4 w-4":L.size==="medium","h-6 w-6":L.size==="big","h-8 w-8":L.size==="bigger","h-12 w-12":L.size==="huge","h-20 w-20":L.size==="massive"},"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])},null,2)):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(L.icon),{key:0,class:s.normalizeClass({"h-4 w-4":L.size==="medium","h-6 w-6":L.size==="big","h-8 w-8":L.size==="bigger","h-12 w-12":L.size==="huge","h-20 w-20":L.size==="massive","text-indigo-600":L.color==="primary","text-cyan-300":L.color==="secondary","text-red-400":L.color==="red","text-yellow-400":L.color==="yellow","text-green-400":L.color==="green","text-white":L.color==="white","text-gray-300":L.color==="gray","text-black":L.color==="black"})},null,8,["class"]))}}),ka=["disabled"],Ca={key:1,class:"animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"},At=s.defineComponent({__name:"uiButton",props:{block:{type:Boolean},color:{default:"primary"},disabled:{type:Boolean},icon:{},loading:{type:Boolean,default:!0},size:{default:"medium"}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("button",Ca,[L.icon?(s.openBlock(),s.createBlock(He,{key:0,icon:L.icon,color:"white",class:"-ml-0.5 mr-2",loading:L.loading},null,8,["icon","loading"])):s.createCommentVNode("",!0),B[0]||(B[0]=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16"},null,-1))])):(s.openBlock(),s.createElementBlock("button",{key:0,disabled:L.disabled,class:s.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 text-white shadow-sm":L.color==="primary","bg-cyan-300 hover:bg-cyan-500 text-white shadow-sme":L.color==="secondary","bg-red-400 hover:bg-red-600 text-white shadow-sm":L.color==="red","bg-yellow-400 hover:bg-yellow-600 text-white shadow-sm":L.color==="yellow","bg-green-400 hover:bg-green-600 text-white shadow-sm":L.color==="green","px-4 py-2 text-sm rounded-md":L.size==="medium","px-2.5 py-1.5 text-xs rounded leading-none":L.size==="small","px-6 py-3 text-base rounded-md":L.size==="big","w-full flex items-center justify-center":L.block},"inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25"]),type:"button"},[L.icon?(s.openBlock(),s.createBlock(He,{key:0,icon:L.icon,color:"white",class:"-ml-0.5 mr-2",loading:L.loading},null,8,["icon","loading"])):s.createCommentVNode("",!0),s.renderSlot(L.$slots,"default")],10,ka))}}),Sa={key:0,class:"relative flex items-start"},Aa={class:"flex items-center h-5"},Ea=["checked","value","disabled"],Na={class:"ml-3 text-sm"},Ba={class:"text-gray-500"},La={key:1,class:"flex items-center animate-pulse"},yi=s.defineComponent({__name:"uiCheckbox",props:{check:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},value:{},text:{}},emits:["checkboxChanged"],setup(_,{emit:L}){const B=L,M=_,V=s.ref(M.check),D=()=>{M.disabled||(V.value=!V.value,B("checkboxChanged",{checked:V.value,value:M.value}))};return(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",La,R[1]||(R[1]=[s.createElementVNode("div",{class:"w-5 h-5 rounded bg-gray-200"},null,-1),s.createElementVNode("div",{class:"ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)]))):(s.openBlock(),s.createElementBlock("div",Sa,[s.createElementVNode("div",Aa,[s.createElementVNode("input",{checked:A.check,value:A.value,disabled:A.disabled,class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25",type:"checkbox",onChange:R[0]||(R[0]=Y=>D())},null,40,Ea)]),s.createElementVNode("div",Na,[s.createElementVNode("span",Ba,[s.renderSlot(A.$slots,"default")])])]))}});function Ma(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Va(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75"})])}function Pa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function Ti(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Da(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function Ta(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})])}function zi(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function qt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Ut(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Ii(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function Xt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function xi(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function za(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function Ia(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function xt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function Ya(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 16.318A4.486 4.486 0 0 0 12.016 15a4.486 4.486 0 0 0-3.198 1.318M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function Fa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function Xa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002"})])}function _a(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function Yi(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function Oa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function Ra(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function Ha(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Et(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Wa={key:0,class:"block text-sm font-medium text-gray-700 mb-1"},$a={class:"py-1"},Ga=["onClick"],ja={key:1,class:"animate-pulse px-4 py-2 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left"},Jt=s.defineComponent({__name:"uiDropdown",props:{items:{},position:{default:"left"},disabled:{type:Boolean},label:{},loading:{type:Boolean,default:!0}},emits:["optionSelected"],setup(_,{emit:L}){const B=L,M=_,V=s.computed(()=>{let A=M.items.find(R=>R.active===!0);return A?A.name:M.label}),D=A=>{M.disabled||B("optionSelected",A)};return(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",ja,[R[0]||(R[0]=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)),s.createVNode(s.unref(Ut),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"})])):(s.openBlock(),s.createBlock(s.unref(Se.Menu),{key:0,as:"div",class:s.normalizeClass(["relative inline-block text-left",{"opacity-25":A.disabled}])},{default:s.withCtx(()=>[s.createElementVNode("div",null,[A.label?(s.openBlock(),s.createElementBlock("label",Wa,s.toDisplayString(A.label),1)):s.createCommentVNode("",!0),s.createVNode(s.unref(Se.MenuButton),{class:"inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(V.value)+" ",1),s.createVNode(s.unref(Ut),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5"})]),_:1})]),s.createVNode(s.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:s.withCtx(()=>[A.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Se.MenuItems),{key:0,class:s.normalizeClass([{"right-0":A.position==="right","left-0":A.position==="left"},"origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])},{default:s.withCtx(()=>[s.createElementVNode("div",$a,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(A.items,(Y,U)=>(s.openBlock(),s.createBlock(s.unref(Se.MenuItem),{key:U},{default:s.withCtx(()=>[s.createElementVNode("a",{onClick:K=>D(Y),class:s.normalizeClass([Y.active?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"])},s.toDisplayString(Y.name),11,Ga)]),_:2},1024))),128))])]),_:1},8,["class"]))]),_:1})]),_:1},8,["class"]))}}),Ua={key:0},qa={class:"flex justify-between"},Za={key:0,class:"block text-sm font-medium text-gray-700"},Ja={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Qa=["disabled","name","placeholder","type"],Ka={class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},es={key:1,class:"animate-pulse"},ts={key:0,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},St=s.defineComponent({__name:"uiInput",props:{label:{},type:{default:"text"},name:{},placeholder:{default:"..."},icon:{},disabled:{type:Boolean},color:{default:"gray"},value:{},error:{},requiredText:{},addOn:{},rightAddOn:{},loading:{type:Boolean,default:!0}},emits:["inputChanged","rightAddOnClicked","addOnClicked"],setup(_,{emit:L}){const B=L,M=_,V=s.ref(M.value);s.watch(()=>M.value,A=>{V.value=A,V.value&&B("inputChanged",{name:M.name,value:V.value})});const D=A=>{A.target.name&&B("inputChanged",{value:A.target.value,name:A.target.name})};return(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",es,[A.label!==void 0?(s.openBlock(),s.createElementBlock("div",ts)):s.createCommentVNode("",!0),R[3]||(R[3]=s.createElementVNode("div",{class:"animate-pulse px-4 py-3.5 bg-gray-200 rounded-md flex inline-flex items-center relative inline-block text-left w-full"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"})],-1))])):(s.openBlock(),s.createElementBlock("div",Ua,[s.createElementVNode("div",qa,[A.label?(s.openBlock(),s.createElementBlock("label",Za,s.toDisplayString(A.label),1)):s.createCommentVNode("",!0),A.requiredText?(s.openBlock(),s.createElementBlock("span",Ja,s.toDisplayString(A.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass([{"mt-1":A.label},"relative flex"])},[A.addOn?(s.openBlock(),s.createElementBlock("span",{key:0,onClick:R[0]||(R[0]=Y=>A.$emit("addOnClicked")),class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer"},s.toDisplayString(A.addOn),1)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":R[1]||(R[1]=Y=>V.value=Y),class:s.normalizeClass([{"border-gray-300":A.color==="gray","border-red-400":A.color==="red","border-yellow-400":A.color==="yellow","border-green-400":A.color==="green","bg-gray-100":A.disabled,"text-black":A.color==="black","text-red-400":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green","rounded-md":!A.addOn||!A.rightAddOn,"rounded-r-md":A.addOn,"rounded-l-none":A.addOn,"rounded-l-md":A.rightAddOn,"rounded-r-none":A.rightAddOn},"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]),disabled:A.disabled,name:A.name,placeholder:A.placeholder,type:A.type,onInput:D},null,42,Qa),[[s.vModelDynamic,V.value]]),A.rightAddOn?(s.openBlock(),s.createElementBlock("span",{key:1,onClick:R[2]||(R[2]=Y=>A.$emit("rightAddOnClicked")),class:"inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer"},s.toDisplayString(A.rightAddOn),1)):s.createCommentVNode("",!0),s.createElementVNode("div",Ka,[A.icon?(s.openBlock(),s.createBlock(He,{key:0,icon:A.icon,color:A.color,loading:A.loading},null,8,["icon","color","loading"])):s.createCommentVNode("",!0),s.withDirectives(s.createVNode(He,{icon:s.unref(qt),color:"green",loading:A.loading},null,8,["icon","loading"]),[[s.vShow,A.color==="green"]]),s.withDirectives(s.createVNode(He,{icon:s.unref(xt),color:"yellow",loading:A.loading},null,8,["icon","loading"]),[[s.vShow,A.color==="yellow"]]),s.withDirectives(s.createVNode(He,{icon:s.unref(Et),color:"red",loading:A.loading},null,8,["icon","loading"]),[[s.vShow,A.color==="red"]])])],2),s.withDirectives(s.createElementVNode("p",{class:s.normalizeClass([{"text-gray-400":A.color==="gray","text-red-400":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green"},"mt-2 text-xs flex flex-row items-center"])},s.toDisplayString(A.error),3),[[s.vShow,A.error]])]))}}),is={key:0},as={class:"flex justify-between"},ss={key:0,class:"block text-sm font-medium text-gray-700"},rs={key:1,class:"text-[10px] text-gray-500 uppercase"},os={class:"space-y-1 flex flex-col items-center justify-center"},ns={class:"flex text-sm text-gray-600 flex flex-col sm:flex-row text-center"},ls=["for"],cs=["id","name","accept"],ds={class:"pl-1"},hs={class:"text-xs text-gray-500 pb-4"},us={class:"mt-2 text-xs flex flex-row items-center text-red-300"},gs={key:1,class:"animate-pulse"},Fi=s.defineComponent({__name:"uiInputFile",props:{name:{},id:{},requiredText:{},placeholder:{},dragAndDrop:{},fileTypesAndSizes:{},error:{},accept:{},icon:{default:Va},loading:{type:Boolean,default:!0},label:{}},emits:["filesUploaded"],setup(_,{emit:L}){let B=s.ref("");const M=L,V=_,D=Y=>{R(Y.dataTransfer.files),M("filesUploaded",{id:V.id,files:Y.dataTransfer.files})},A=Y=>{R(Y.target.files),M("filesUploaded",{id:V.id,files:Y.target.files})},R=Y=>{B.value="";let U=1;Object.values(Y).forEach(K=>{U++,B.value+=K.name,U>=1&&U<Y.length&&(B.value+=", ")})};return(Y,U)=>Y.loading?(s.openBlock(),s.createElementBlock("div",gs,U[1]||(U[1]=[s.createElementVNode("div",{class:"flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200"},[s.createElementVNode("div",{class:"rounded-full h-20 w-20 bg-gray-200 mb-4"}),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3"}),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3"})],-1)]))):(s.openBlock(),s.createElementBlock("div",is,[s.createElementVNode("div",as,[Y.label?(s.openBlock(),s.createElementBlock("label",ss,s.toDisplayString(Y.label),1)):s.createCommentVNode("",!0),Y.requiredText?(s.openBlock(),s.createElementBlock("span",rs,s.toDisplayString(Y.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass([[{"mt-1":Y.label},{"border-gray-300 hover:border-gray-400":!Y.error},{"border-red-300 hover:border-red-400":Y.error}],"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]),onDragover:U[0]||(U[0]=s.withModifiers(()=>{},["prevent"])),onDrop:s.withModifiers(D,["prevent"])},[s.createElementVNode("div",os,[s.createVNode(He,{icon:Y.icon,size:"massive",color:"gray","aria-hidden":"true",class:"mb-4",loading:Y.loading},null,8,["icon","loading"]),s.createElementVNode("div",ns,[s.createElementVNode("label",{for:Y.id,class:"relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"},[s.createElementVNode("span",null,s.toDisplayString(Y.placeholder),1),s.createElementVNode("input",{id:Y.id,name:Y.name,type:"file",class:"sr-only",accept:Y.accept,multiple:"",onChange:A},null,40,cs)],8,ls),s.createElementVNode("p",ds,s.toDisplayString(Y.dragAndDrop),1)]),s.createElementVNode("p",hs,s.toDisplayString(Y.fileTypesAndSizes),1),s.withDirectives(s.createElementVNode("p",{class:"font-bold text-xs uppercase block p-2 bg-gray-200 rounded"},s.toDisplayString(s.unref(B)),513),[[s.vShow,s.unref(B)!==null]])])],34),s.withDirectives(s.createElementVNode("p",us,[s.createVNode(He,{icon:s.unref(Zt),color:"red",class:"mr-2",loading:Y.loading},null,8,["icon","loading"]),s.createTextVNode(s.toDisplayString(Y.error),1)],512),[[s.vShow,Y.error]])]))}}),ps={class:"flex justify-between"},fs={key:0,class:"text-[10px] text-gray-500 uppercase justify-self-end"},ms={class:"relative mt-1"},xs={key:1,class:"animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"},Xi=s.defineComponent({__name:"uiSelect",props:{items:{},label:{},error:{},color:{default:"gray"},select:{},loading:{type:Boolean,default:!0},disabled:{type:Boolean},requiredText:{}},emits:["selectChanged"],setup(_,{emit:L}){const B=s.ref(""),M=L,V=_,D=s.computed(()=>B.value===""?V.items:V.items.filter(Y=>Y.name.toLowerCase().includes(B.value.toLowerCase()))),A=Y=>(Y==null?void 0:Y.name)??"",R=s.computed(()=>V.select);return(Y,U)=>Y.loading?(s.openBlock(),s.createElementBlock("div",xs,[U[4]||(U[4]=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1)),s.createVNode(s.unref(xi),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"})])):(s.openBlock(),s.createBlock(s.unref(Se.Combobox),{key:0,modelValue:R.value,"onUpdate:modelValue":[U[2]||(U[2]=K=>R.value=K),U[3]||(U[3]=K=>M("selectChanged",K))],disabled:Y.disabled,as:"div"},{default:s.withCtx(()=>[s.createElementVNode("div",ps,[s.createVNode(s.unref(Se.ComboboxLabel),{class:"block text-sm font-medium"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(Y.label),1)]),_:1}),Y.requiredText?(s.openBlock(),s.createElementBlock("span",fs,s.toDisplayString(Y.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",ms,[s.createVNode(s.unref(Se.ComboboxInput),{onChange:U[0]||(U[0]=K=>B.value=K.target.value),onBlur:U[1]||(U[1]=K=>B.value=""),displayValue:A,class:s.normalizeClass([{"border-gray-300":Y.color==="gray","border-red-400":Y.color==="red","border-yellow-400":Y.color==="yellow","border-green-400":Y.color==="green","bg-gray-100":Y.disabled,"bg-white":!Y.disabled,"text-black":Y.color==="gray","text-gray-300":Y.disabled,"text-red-400":Y.color==="red","text-yellow-400":Y.color==="yellow","text-green-400":Y.color==="green"},"w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"])},null,8,["class"]),s.createVNode(s.unref(Se.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:s.withCtx(()=>[s.createVNode(s.unref(xi),{"aria-hidden":"true",class:"h-5 w-5 text-gray-400"})]),_:1}),D.value.length>0?(s.openBlock(),s.createBlock(s.unref(Se.ComboboxOptions),{key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.value,K=>(s.openBlock(),s.createBlock(s.unref(Se.ComboboxOption),{key:K.id,value:K,as:"template"},{default:s.withCtx(({active:le,selected:ye})=>[s.createElementVNode("li",{class:s.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",le?"bg-indigo-600 text-white":"text-gray-900"])},[s.createElementVNode("span",{class:s.normalizeClass(["block truncate",ye&&"font-semibold"])},s.toDisplayString(K.name),3),ye?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["absolute inset-y-0 right-0 flex items-center pr-4",le?"text-white":"text-indigo-600"])},[s.createVNode(s.unref(qt),{"aria-hidden":"true",class:"h-5 w-5",loading:!0})],2)):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):s.createCommentVNode("",!0)]),s.withDirectives(s.createElementVNode("p",{class:s.normalizeClass([{"text-gray-400":Y.color==="gray","text-red-400":Y.color==="red","text-yellow-400":Y.color==="yellow","text-green-400":Y.color==="green"},"mt-2 text-xs flex flex-row items-center"])},s.toDisplayString(Y.error),3),[[s.vShow,Y.error]])]),_:1},8,["modelValue","disabled"]))}}),vs={key:1,class:"inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"},ft=s.defineComponent({__name:"uiTag",props:{color:{default:"primary"},loading:{type:Boolean,default:!0},size:{default:"medium"},event:{},name:{},text:{}},emits:["tagEvent"],setup(_,{emit:L}){const B=L,M=_,V=()=>{M.event!==void 0&&B("tagEvent",M.event)};return(D,A)=>D.loading?(s.openBlock(),s.createElementBlock("div",vs,A[0]||(A[0]=[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"},null,-1)]))):(s.openBlock(),s.createElementBlock("span",{key:0,onClick:V,class:s.normalizeClass([{"bg-indigo-100 text-indigo-800 border border-indigo-200":D.color==="primary","hover:bg-indigo-200 cursor-pointer":D.event!==void 0&&D.color==="primary","bg-red-100 text-red-800 border border-red-200":D.color==="red","hover:bg-red-200 cursor-pointer":D.event!==void 0&&D.color==="red","bg-yellow-100 text-yellow-800 border border-yellow-200":D.color==="yellow","hover:bg-yellow-200 cursor-pointer":D.event!==void 0&&D.color==="yellow","bg-green-100 text-green-800 border border-green-200":D.color==="green","hover:bg-green-200 cursor-pointer":D.event!==void 0&&D.color==="green","bg-black text-white border border-black":D.color==="black","text-black border border-gray-200 bg-white":D.color==="white","px-3 py-2":D.size==="medium","px-2 pt-1 pb-0.5":D.size==="small","px-4 py-3":D.size==="big"},"inline-flex items-center rounded text-xs font-medium leading-none"])},[s.renderSlot(D.$slots,"default")],2))}}),bs={key:0},ys={class:"flex justify-between"},ws={key:0,class:"block text-sm font-medium text-gray-700"},ks={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Cs=["disabled","placeholder"],Ss={key:1,class:"animate-pulse"},_i=s.defineComponent({__name:"uiTextArea",props:{name:{},label:{},placeholder:{default:"..."},value:{},color:{},disabled:{type:Boolean,default:!1},error:{},loading:{type:Boolean,default:!0},requiredText:{}},emits:["inputChanged"],setup(_,{emit:L}){const B=L,M=_,V=A=>{B("inputChanged",A.target.value)},D=s.ref(M.value);return s.watch(()=>M.value,A=>{D.value=A,B("inputChanged",{name:M.name,value:D.value})}),(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",Ss,R[1]||(R[1]=[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},null,-1),s.createElementVNode("div",{class:"h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full"},null,-1)]))):(s.openBlock(),s.createElementBlock("div",bs,[s.createElementVNode("div",ys,[A.label?(s.openBlock(),s.createElementBlock("label",ws,s.toDisplayString(A.label),1)):s.createCommentVNode("",!0),A.requiredText?(s.openBlock(),s.createElementBlock("span",ks,s.toDisplayString(A.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass({"mt-1":A.label})},[s.withDirectives(s.createElementVNode("textarea",{disabled:A.disabled,rows:"4","onUpdate:modelValue":R[0]||(R[0]=Y=>D.value=Y),placeholder:A.placeholder,class:s.normalizeClass(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md",{"border-gray-300":A.color==="gray","border-red-300":A.color==="red","border-yellow-400":A.color==="yellow","border-green-400":A.color==="green","bg-gray-100":A.disabled,"text-black":A.color==="black","text-red-300":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green"}]),onChange:V},null,42,Cs),[[s.vModelText,D.value]])],2),s.withDirectives(s.createElementVNode("p",{class:s.normalizeClass([{"text-gray-300":A.color==="gray","text-red-300":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green"},"mt-2 text-xs flex flex-row items-center"])},[s.createVNode(He,{icon:s.unref(Zt),color:"red",class:"mr-2",loading:!1},null,8,["icon"]),s.createTextVNode(s.toDisplayString(A.error),1)],2),[[s.vShow,A.error]])]))}}),As={class:"text-sm font-medium text-gray-900"},Es={key:0,class:"text-sm text-gray-500 ml-2"},Ns={key:1,class:"animate-pulse flex items-center"},Oi=s.defineComponent({__name:"uiToggle",props:{item:{},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},setup(_){const L=_,B=s.ref(L.checked);return s.watch(()=>L.checked,M=>B.value=M),(M,V)=>M.loading?(s.openBlock(),s.createElementBlock("div",Ns,V[3]||(V[3]=[s.createElementVNode("div",{class:"relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center"},[s.createElementVNode("div",{class:"rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4"})],-1),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2"},null,-1)]))):(s.openBlock(),s.createBlock(s.unref(Se.SwitchGroup),{key:0,as:"div",class:"flex items-center relative"},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.Switch),{disabled:M.disabled,onClick:V[0]||(V[0]=D=>M.$emit("toggleChanged",{item:M.item,active:!B.value})),modelValue:B.value,"onUpdate:modelValue":V[1]||(V[1]=D=>B.value=D),class:s.normalizeClass([B.value?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:s.withCtx(()=>[s.createElementVNode("span",{"aria-hidden":"true",class:s.normalizeClass([B.value?"translate-x-5":"translate-x-0",M.disabled?"bg-gray-300":"","pointer-events-none inline-block h-5 w-5 transform rounded-full mt-[1px] bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["disabled","modelValue","class"]),s.createVNode(s.unref(Se.SwitchLabel),{as:"span",class:"ml-3"},{default:s.withCtx(()=>[s.createElementVNode("span",As,s.toDisplayString(M.item.title),1),M.item.subtitle?(s.openBlock(),s.createElementBlock("span",Es,s.toDisplayString(M.item.subtitle),1)):s.createCommentVNode("",!0)]),_:1}),M.item.action?(s.openBlock(),s.createElementBlock("span",{key:0,class:"cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",onClick:V[2]||(V[2]=D=>M.$emit("actionClicked",M.item))},s.toDisplayString(M.item.action),1)):s.createCommentVNode("",!0)]),_:1}))}}),Bs={key:0,class:"flex flex-col"},Ls={class:"flex"},Ms={class:"flex-shrink-0"},Vs={class:"ml-3"},Ps={class:"mt-4"},Ds={class:"-mx-2 -my-1.5 flex"},Ts=["onClick"],zs={key:1,class:"flex flex-col animate-pulse"},Ri=s.defineComponent({__name:"uiAlert",props:{actions:{},title:{},type:{default:"info"},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("div",zs,B[0]||(B[0]=[s.createStaticVNode('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>',1)]))):(s.openBlock(),s.createElementBlock("div",Bs,[s.createElementVNode("div",{class:s.normalizeClass([{"bg-indigo-50 border-indigo-400":L.type==="info","bg-red-50 border-red-400":L.type==="danger","bg-yellow-50 border-yellow-400":L.type==="warning","bg-green-50 border-green-400":L.type==="success"},"p-4 border-l-4 rounded"])},[s.createElementVNode("div",Ls,[s.createElementVNode("div",Ms,[L.type==="info"?(s.openBlock(),s.createBlock(s.unref(Yi),{key:0,class:"h-8 w-8 text-indigo-400","aria-hidden":"true"})):s.createCommentVNode("",!0),L.type==="danger"?(s.openBlock(),s.createBlock(s.unref(Zt),{key:1,class:"h-8 w-8 text-red-400","aria-hidden":"true"})):s.createCommentVNode("",!0),L.type==="warning"?(s.openBlock(),s.createBlock(s.unref(xt),{key:2,class:"h-8 w-8 text-yellow-400","aria-hidden":"true"})):s.createCommentVNode("",!0),L.type==="success"?(s.openBlock(),s.createBlock(s.unref(zi),{key:3,class:"h-8 w-8 text-green-400","aria-hidden":"true"})):s.createCommentVNode("",!0)]),s.createElementVNode("div",Vs,[s.createElementVNode("h3",{class:s.normalizeClass([{"text-red-800":L.type==="danger","text-yellow-800":L.type==="warning","text-green-800":L.type==="success"},"text-sm font-medium"])},s.toDisplayString(L.title),3),s.createElementVNode("div",{class:s.normalizeClass([{"text-red-700":L.type==="danger","text-yellow-700":L.type==="warning","text-green-700":L.type==="success"},"mt-2 text-sm"])},[s.renderSlot(L.$slots,"default")],2),s.createElementVNode("div",Ps,[s.createElementVNode("div",Ds,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.actions,(M,V)=>(s.openBlock(),s.createElementBlock("button",{onClick:D=>L.$emit("alertEvent",M.event),type:"button",key:V,class:s.normalizeClass([{"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50":L.type==="success","bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50":L.type==="info","bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50":L.type==="danger","bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50":L.type==="warning"},"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"])},s.toDisplayString(M.name),11,Ts))),128))])])])])],2)]))}}),Is={key:0,class:"inline-flex","aria-label":"Breadcrumb"},Ys={role:"list",class:"flex items-center space-x-4 text-xs"},Fs={key:0},Xs=["onClick"],_s={key:1,class:"flex items-center"},Os=["onClick"],Rs={key:1,class:"flex flex-row items-center animate-pulse"},Hi=s.defineComponent({__name:"uiBreadcrumbs",props:{pages:{},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("div",Rs,B[0]||(B[0]=[s.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4"},null,-1),s.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1)]))):(s.openBlock(),s.createElementBlock("nav",Is,[s.createElementVNode("ol",Ys,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.pages,(M,V)=>(s.openBlock(),s.createElementBlock("li",{key:V},[V===0?(s.openBlock(),s.createElementBlock("div",Fs,[s.createElementVNode("p",{onClick:D=>L.$emit("breadCrumbClicked",M.routeName),class:"flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"},[s.createVNode(s.unref(_a),{class:"flex-shrink-0 h-3 w-3 text-gray-400 mr-4","aria-hidden":"true"}),s.createElementVNode("span",null,s.toDisplayString(M.name),1)],8,Xs)])):(s.openBlock(),s.createElementBlock("div",_s,[s.createVNode(s.unref(Xt),{class:"flex-shrink-0 h-3 w-3 text-gray-400","aria-hidden":"true"}),s.createElementVNode("span",{onClick:D=>L.$emit("breadCrumbClicked",M.routeName),class:s.normalizeClass(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500",{"text-indigo-600 hover:text-indigo-800":!M.current}]),"aria-current":"page"},s.toDisplayString(M.name),11,Os)]))]))),128))])]))}}),Hs={class:"flex items-center flex-col sm:flex-row justify-center sm:justify-start"},Ws=["src"],$s={class:"font-bold text-center sm:text-left"},Gs={class:"mt-1 text-xs text-center sm:text-left"},js={key:0,class:"flex flex-wrap mt-4 justify-center sm:justify-start"},Us={key:1,class:"rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"},Wi=s.defineComponent({__name:"uiCard",props:{id:{},name:{},type:{},tags:{},logo:{},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>{var M;return L.loading?(s.openBlock(),s.createElementBlock("div",Us,B[1]||(B[1]=[s.createStaticVNode('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>',1)]))):(s.openBlock(),s.createElementBlock("div",{key:0,class:"rounded-lg bg-white shadow p-6 cursor-pointer",onClick:B[0]||(B[0]=V=>L.$emit("cardSelected",{id:L.id,name:L.name,type:L.type,tags:L.tags}))},[s.createElementVNode("div",Hs,[s.createElementVNode("img",{class:"w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",src:L.logo},null,8,Ws),s.createElementVNode("div",null,[s.createElementVNode("h4",$s,s.toDisplayString(L.name),1),s.createElementVNode("p",Gs,s.toDisplayString(L.type),1)])]),L.tags&&((M=L.tags)==null?void 0:M.length)>0?(s.openBlock(),s.createElementBlock("div",js,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tags,V=>(s.openBlock(),s.createBlock(ft,{class:"mb-1 mr-1",key:V.name,color:V.color,loading:L.loading},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(V.name),1)]),_:2},1032,["color","loading"]))),128))])):s.createCommentVNode("",!0)]))}}}),$i=s.defineComponent({__name:"uiFilter",props:{type:{},items:{},position:{default:"left"},label:{},loading:{type:Boolean,default:!0}},emits:["filterSelected"],setup(_,{emit:L}){const B=L,M=_,V=A=>{D.value.forEach(R=>{R.value!==A.value?R.active=!1:R.active=!0}),B("filterSelected",A)},D=s.ref(M.items);return(A,R)=>(s.openBlock(),s.createBlock(Jt,{loading:A.loading,onOptionSelected:R[0]||(R[0]=Y=>V(Y)),position:A.position,items:D.value,label:A.label},null,8,["loading","position","items","label"]))}}),qs={class:"fixed inset-0 z-10 overflow-y-auto"},Zs={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},Js={class:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block"},Qs={class:"sm:flex sm:items-start"},Ks={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words"},er={class:"mt-4 text-gray-500 text-sm"},tr={key:0,class:"mt-8"},ir=["onClick"],wi=s.defineComponent({__name:"uiModal",props:{title:{},actions:{},modalName:{},open:{type:Boolean,default:!1},type:{default:"default"},loading:{type:Boolean,default:!1}},emits:["modalAction"],setup(_,{emit:L}){const B=_,M=L,V=D=>{M("modalAction",{modal:B.modalName,action:D})};return(D,A)=>(s.openBlock(),s.createBlock(s.unref(Se.TransitionRoot),{as:"template",show:D.open},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.Dialog),{as:"div",class:"relative z-10",onClose:A[1]||(A[1]=R=>V("close"))},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s.withCtx(()=>A[2]||(A[2]=[s.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])),_:1}),s.createElementVNode("div",qs,[s.createElementVNode("div",Zs,[s.createVNode(s.unref(Se.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.DialogPanel),{class:"relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6"},{default:s.withCtx(()=>[s.createElementVNode("div",Js,[s.createElementVNode("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:A[0]||(A[0]=R=>V("close"))},[A[3]||(A[3]=s.createElementVNode("span",{class:"sr-only"},"X",-1)),s.createVNode(He,{icon:s.unref(Et),"aria-hidden":"true",loading:D.loading},null,8,["icon","loading"])])]),s.createElementVNode("div",Qs,[s.createElementVNode("div",{class:s.normalizeClass(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-red-100":D.type==="danger","bg-green-100":D.type==="success","bg-indigo-100":D.type==="default","bg-yellow-100":D.type==="warning"}])},[s.withDirectives(s.createVNode(s.unref(Et),{class:"h-6 w-6 text-red-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="danger"]]),s.withDirectives(s.createVNode(s.unref(qt),{class:"h-6 w-6 text-green-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="success"]]),s.withDirectives(s.createVNode(s.unref(xt),{class:"h-6 w-6 text-yellow-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="warning"]]),s.withDirectives(s.createVNode(s.unref(Xa),{class:"h-6 w-6 text-indigo-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="default"]])],2),s.createElementVNode("div",Ks,[s.createVNode(s.unref(Se.DialogTitle),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(D.title),1)]),_:1}),s.createElementVNode("div",er,[s.renderSlot(D.$slots,"default")]),D.actions?(s.openBlock(),s.createElementBlock("div",tr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.actions,(R,Y)=>(s.openBlock(),s.createElementBlock("button",{key:Y,type:"button",class:"inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",onClick:U=>V(R.value)},s.toDisplayString(R.name),9,ir))),128))])):s.createCommentVNode("",!0)])])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),ar={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},sr={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},rr={class:"p-4"},or={class:"flex items-start"},nr={class:"flex-shrink-0 mt-0.5"},lr={class:"ml-3 w-0 flex-1 pt-0.5"},cr={class:"font-medium text-gray-900"},dr={class:"mt-1 text-sm text-gray-500"},hr={class:"ml-4 flex-shrink-0 flex"},Gi=s.defineComponent({__name:"uiNotification",props:{type:{default:"info"},title:{},message:{},fixed:{type:Boolean,default:!0},show:{type:Boolean,default:!1}},setup(_){const L=_,B=s.computed(()=>L.show);return(M,V)=>(s.openBlock(),s.createElementBlock("div",{"aria-live":"assertive",class:s.normalizeClass([{fixed:M.fixed},"inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])},[s.createElementVNode("div",ar,[s.createVNode(s.Transition,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[B.value?(s.openBlock(),s.createElementBlock("div",sr,[s.createElementVNode("div",rr,[s.createElementVNode("div",or,[s.createElementVNode("div",nr,[s.withDirectives(s.createVNode(s.unref(zi),{"aria-hidden":"true",class:"h-6 w-6 text-green-400"},null,512),[[s.vShow,M.type==="success"]]),s.withDirectives(s.createVNode(s.unref(Zt),{"aria-hidden":"true",class:"h-6 w-6 text-red-400"},null,512),[[s.vShow,M.type==="danger"]]),s.withDirectives(s.createVNode(s.unref(xt),{"aria-hidden":"true",class:"h-6 w-6 text-yellow-400"},null,512),[[s.vShow,M.type==="warning"]]),s.withDirectives(s.createVNode(s.unref(Yi),{"aria-hidden":"true",class:"h-6 w-6 text-indigo-600"},null,512),[[s.vShow,M.type==="info"]])]),s.createElementVNode("div",lr,[s.createElementVNode("p",cr,s.toDisplayString(M.title),1),s.createElementVNode("p",dr,s.toDisplayString(M.message),1)]),s.createElementVNode("div",hr,[s.createElementVNode("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",type:"button",onClick:V[0]||(V[0]=D=>M.$emit("closeNotification"))},[V[1]||(V[1]=s.createElementVNode("span",{class:"sr-only"},"Close",-1)),s.createVNode(s.unref(Et),{"aria-hidden":"true",class:"h-5 w-5"})])])])])])):s.createCommentVNode("",!0)]),_:1})])],2))}}),ur={key:0,role:"list",class:"divide-y divide-gray-100"},gr={class:"min-w-0"},pr={class:"flex items-start gap-x-3"},fr={class:"text-sm font-semibold leading-6 text-gray-900"},mr={class:"mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500"},xr={class:"truncate"},vr={class:"flex flex-none items-center gap-x-4"},br=["href"],yr={class:"sr-only"},wr={key:1,class:"divide-y divide-gray-100 animate-pulse"},ji=s.defineComponent({__name:"uiTaskList",props:{tasks:{},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("ul",wr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tasks,M=>(s.openBlock(),s.createElementBlock("li",{key:M.id,class:"flex items-center justify-between gap-x-6 py-5"},B[0]||(B[0]=[s.createStaticVNode('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>',2)])))),128))])):(s.openBlock(),s.createElementBlock("ul",ur,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tasks,M=>(s.openBlock(),s.createElementBlock("li",{key:M.id,class:"flex items-center justify-between gap-x-6 py-5"},[s.createElementVNode("div",gr,[s.createElementVNode("div",pr,[s.createElementVNode("p",fr,s.toDisplayString(M.name),1),s.createElementVNode("p",{class:s.normalizeClass([{"text-green-700 bg-green-50 ring-green-600/20":M.status==="Complete","text-gray-600 bg-gray-50 ring-gray-500/10":M.status==="In progress","text-yellow-800 bg-yellow-50 ring-yellow-600/20":M.status==="Incomplete"},"rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"])},s.toDisplayString(M.statusLiteral),3)]),s.createElementVNode("div",mr,[s.createElementVNode("p",xr,s.toDisplayString(M.description),1)])]),s.createElementVNode("div",vr,[s.createElementVNode("a",{href:M.href,class:"hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"},[s.createTextVNode(s.toDisplayString(M.action),1),s.createElementVNode("span",yr,", "+s.toDisplayString(M.name),1)],8,br)])]))),128))]))}});var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ki(_){return _&&_.__esModule&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_}var Ui={exports:{}};(function(_,L){(function(B,M){_.exports=M()})(Pt,function(){var B=1e3,M=6e4,V=36e5,D="millisecond",A="second",R="minute",Y="hour",U="day",K="week",le="month",ye="quarter",H="year",q="date",pe="Invalid Date",ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ze=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(oe){var ee=["th","st","nd","rd"],ie=oe%100;return"["+oe+(ee[(ie-20)%10]||ee[ie]||ee[0])+"]"}},Ke=function(oe,ee,ie){var ue=String(oe);return!ue||ue.length>=ee?oe:""+Array(ee+1-ue.length).join(ie)+oe},F={s:Ke,z:function(oe){var ee=-oe.utcOffset(),ie=Math.abs(ee),ue=Math.floor(ie/60),de=ie%60;return(ee<=0?"+":"-")+Ke(ue,2,"0")+":"+Ke(de,2,"0")},m:function oe(ee,ie){if(ee.date()<ie.date())return-oe(ie,ee);var ue=12*(ie.year()-ee.year())+(ie.month()-ee.month()),de=ee.clone().add(ue,le),we=ie-de<0,me=ee.clone().add(ue+(we?-1:1),le);return+(-(ue+(ie-de)/(we?de-me:me-de))||0)},a:function(oe){return oe<0?Math.ceil(oe)||0:Math.floor(oe)},p:function(oe){return{M:le,y:H,w:K,d:U,D:q,h:Y,m:R,s:A,ms:D,Q:ye}[oe]||String(oe||"").toLowerCase().replace(/s$/,"")},u:function(oe){return oe===void 0}},Ye="en",De={};De[Ye]=fe;var j="$isDayjsObject",Le=function(oe){return oe instanceof Ce||!(!oe||!oe[j])},Ae=function oe(ee,ie,ue){var de;if(!ee)return Ye;if(typeof ee=="string"){var we=ee.toLowerCase();De[we]&&(de=we),ie&&(De[we]=ie,de=we);var me=ee.split("-");if(!de&&me.length>1)return oe(me[0])}else{var Me=ee.name;De[Me]=ee,de=Me}return!ue&&de&&(Ye=de),de||!ue&&Ye},Ie=function(oe,ee){if(Le(oe))return oe.clone();var ie=typeof ee=="object"?ee:{};return ie.date=oe,ie.args=arguments,new Ce(ie)},Q=F;Q.l=Ae,Q.i=Le,Q.w=function(oe,ee){return Ie(oe,{locale:ee.$L,utc:ee.$u,x:ee.$x,$offset:ee.$offset})};var Ce=function(){function oe(ie){this.$L=Ae(ie.locale,null,!0),this.parse(ie),this.$x=this.$x||ie.x||{},this[j]=!0}var ee=oe.prototype;return ee.parse=function(ie){this.$d=function(ue){var de=ue.date,we=ue.utc;if(de===null)return new Date(NaN);if(Q.u(de))return new Date;if(de instanceof Date)return new Date(de);if(typeof de=="string"&&!/Z$/i.test(de)){var me=de.match(ce);if(me){var Me=me[2]-1||0,Fe=(me[7]||"0").substring(0,3);return we?new Date(Date.UTC(me[1],Me,me[3]||1,me[4]||0,me[5]||0,me[6]||0,Fe)):new Date(me[1],Me,me[3]||1,me[4]||0,me[5]||0,me[6]||0,Fe)}}return new Date(de)}(ie),this.init()},ee.init=function(){var ie=this.$d;this.$y=ie.getFullYear(),this.$M=ie.getMonth(),this.$D=ie.getDate(),this.$W=ie.getDay(),this.$H=ie.getHours(),this.$m=ie.getMinutes(),this.$s=ie.getSeconds(),this.$ms=ie.getMilliseconds()},ee.$utils=function(){return Q},ee.isValid=function(){return this.$d.toString()!==pe},ee.isSame=function(ie,ue){var de=Ie(ie);return this.startOf(ue)<=de&&de<=this.endOf(ue)},ee.isAfter=function(ie,ue){return Ie(ie)<this.startOf(ue)},ee.isBefore=function(ie,ue){return this.endOf(ue)<Ie(ie)},ee.$g=function(ie,ue,de){return Q.u(ie)?this[ue]:this.set(de,ie)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(ie,ue){var de=this,we=!!Q.u(ue)||ue,me=Q.p(ie),Me=function(Qe,tt){var ot=Q.w(de.$u?Date.UTC(de.$y,tt,Qe):new Date(de.$y,tt,Qe),de);return we?ot:ot.endOf(U)},Fe=function(Qe,tt){return Q.w(de.toDate()[Qe].apply(de.toDate("s"),(we?[0,0,0,0]:[23,59,59,999]).slice(tt)),de)},$e=this.$W,je=this.$M,Te=this.$D,xe="set"+(this.$u?"UTC":"");switch(me){case H:return we?Me(1,0):Me(31,11);case le:return we?Me(1,je):Me(0,je+1);case K:var Re=this.$locale().weekStart||0,rt=($e<Re?$e+7:$e)-Re;return Me(we?Te-rt:Te+(6-rt),je);case U:case q:return Fe(xe+"Hours",0);case Y:return Fe(xe+"Minutes",1);case R:return Fe(xe+"Seconds",2);case A:return Fe(xe+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(ie){return this.startOf(ie,!1)},ee.$set=function(ie,ue){var de,we=Q.p(ie),me="set"+(this.$u?"UTC":""),Me=(de={},de[U]=me+"Date",de[q]=me+"Date",de[le]=me+"Month",de[H]=me+"FullYear",de[Y]=me+"Hours",de[R]=me+"Minutes",de[A]=me+"Seconds",de[D]=me+"Milliseconds",de)[we],Fe=we===U?this.$D+(ue-this.$W):ue;if(we===le||we===H){var $e=this.clone().set(q,1);$e.$d[Me](Fe),$e.init(),this.$d=$e.set(q,Math.min(this.$D,$e.daysInMonth())).$d}else Me&&this.$d[Me](Fe);return this.init(),this},ee.set=function(ie,ue){return this.clone().$set(ie,ue)},ee.get=function(ie){return this[Q.p(ie)]()},ee.add=function(ie,ue){var de,we=this;ie=Number(ie);var me=Q.p(ue),Me=function(je){var Te=Ie(we);return Q.w(Te.date(Te.date()+Math.round(je*ie)),we)};if(me===le)return this.set(le,this.$M+ie);if(me===H)return this.set(H,this.$y+ie);if(me===U)return Me(1);if(me===K)return Me(7);var Fe=(de={},de[R]=M,de[Y]=V,de[A]=B,de)[me]||1,$e=this.$d.getTime()+ie*Fe;return Q.w($e,this)},ee.subtract=function(ie,ue){return this.add(-1*ie,ue)},ee.format=function(ie){var ue=this,de=this.$locale();if(!this.isValid())return de.invalidDate||pe;var we=ie||"YYYY-MM-DDTHH:mm:ssZ",me=Q.z(this),Me=this.$H,Fe=this.$m,$e=this.$M,je=de.weekdays,Te=de.months,xe=de.meridiem,Re=function(tt,ot,nt,mt){return tt&&(tt[ot]||tt(ue,we))||nt[ot].slice(0,mt)},rt=function(tt){return Q.s(Me%12||12,tt,"0")},Qe=xe||function(tt,ot,nt){var mt=tt<12?"AM":"PM";return nt?mt.toLowerCase():mt};return we.replace(ze,function(tt,ot){return ot||function(nt){switch(nt){case"YY":return String(ue.$y).slice(-2);case"YYYY":return Q.s(ue.$y,4,"0");case"M":return $e+1;case"MM":return Q.s($e+1,2,"0");case"MMM":return Re(de.monthsShort,$e,Te,3);case"MMMM":return Re(Te,$e);case"D":return ue.$D;case"DD":return Q.s(ue.$D,2,"0");case"d":return String(ue.$W);case"dd":return Re(de.weekdaysMin,ue.$W,je,2);case"ddd":return Re(de.weekdaysShort,ue.$W,je,3);case"dddd":return je[ue.$W];case"H":return String(Me);case"HH":return Q.s(Me,2,"0");case"h":return rt(1);case"hh":return rt(2);case"a":return Qe(Me,Fe,!0);case"A":return Qe(Me,Fe,!1);case"m":return String(Fe);case"mm":return Q.s(Fe,2,"0");case"s":return String(ue.$s);case"ss":return Q.s(ue.$s,2,"0");case"SSS":return Q.s(ue.$ms,3,"0");case"Z":return me}return null}(tt)||me.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(ie,ue,de){var we,me=this,Me=Q.p(ue),Fe=Ie(ie),$e=(Fe.utcOffset()-this.utcOffset())*M,je=this-Fe,Te=function(){return Q.m(me,Fe)};switch(Me){case H:we=Te()/12;break;case le:we=Te();break;case ye:we=Te()/3;break;case K:we=(je-$e)/6048e5;break;case U:we=(je-$e)/864e5;break;case Y:we=je/V;break;case R:we=je/M;break;case A:we=je/B;break;default:we=je}return de?we:Q.a(we)},ee.daysInMonth=function(){return this.endOf(le).$D},ee.$locale=function(){return De[this.$L]},ee.locale=function(ie,ue){if(!ie)return this.$L;var de=this.clone(),we=Ae(ie,ue,!0);return we&&(de.$L=we),de},ee.clone=function(){return Q.w(this.$d,this)},ee.toDate=function(){return new Date(this.valueOf())},ee.toJSON=function(){return this.isValid()?this.toISOString():null},ee.toISOString=function(){return this.$d.toISOString()},ee.toString=function(){return this.$d.toUTCString()},oe}(),Oe=Ce.prototype;return Ie.prototype=Oe,[["$ms",D],["$s",A],["$m",R],["$H",Y],["$W",U],["$M",le],["$y",H],["$D",q]].forEach(function(oe){Oe[oe[1]]=function(ee){return this.$g(ee,oe[0],oe[1])}}),Ie.extend=function(oe,ee){return oe.$i||(oe(ee,Ce,Ie),oe.$i=!0),Ie},Ie.locale=Ae,Ie.isDayjs=Le,Ie.unix=function(oe){return Ie(1e3*oe)},Ie.en=De[Ye],Ie.Ls=De,Ie.p={},Ie})})(Ui);var Qt=Ui.exports;const it=ki(Qt);var kr={exports:{}};(function(_,L){(function(B,M){_.exports=M(Qt)})(Pt,function(B){function M(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var V=M(B),D={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(A){return A+"º"}};return V.default.locale(D,null,!0),D})})(kr);var Cr={exports:{}};(function(_,L){(function(B,M){_.exports=M(Qt)})(Pt,function(B){function M(Y){return Y&&typeof Y=="object"&&"default"in Y?Y:{default:Y}}var V=M(B),D={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function A(Y,U,K){var le=D[K];return Array.isArray(le)&&(le=le[U?0:1]),le.replace("%d",Y)}var R={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(Y){return Y+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:A,m:A,mm:A,h:A,hh:A,d:A,dd:A,M:A,MM:A,y:A,yy:A}};return V.default.locale(R,null,!0),R})})(Cr);var Sr={exports:{}};(function(_,L){(function(B,M){_.exports=M()})(Pt,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var M=["th","st","nd","rd"],V=B%100;return"["+B+(M[(V-20)%10]||M[V]||M[0])+"]"}}})})(Sr);var Ar={exports:{}};(function(_,L){(function(B,M){_.exports=M(Qt)})(Pt,function(B){function M(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var V=M(B),D={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(A){return""+A+(A===1?"er":"")}};return V.default.locale(D,null,!0),D})})(Ar);const Dt=(_,L)=>{const B=_.__vccOpts||_;for(const[M,V]of L)B[M]=V;return B},Er={name:"dateSelector",components:{ChevronLeftIcon:Ii,ChevronRightIcon:Xt},computed:{currentDate(){return it(this.selectedDate).locale("es").format("DD MMM. YYYY")}},props:{selectedDate:{type:Object,required:!0}},methods:{selectDate(_,L){let B;L==="previous"&&(_==="day"&&(B=it(this.selectedDate).subtract(1,"day")),_==="month"&&(B=it(this.selectedDate).subtract(1,"month")),_==="year"&&(B=it(this.selectedDate).subtract(1,"year"))),L==="next"&&(_==="day"&&(B=it(this.selectedDate).add(1,"day")),_==="month"&&(B=it(this.selectedDate).add(1,"month")),_==="year"&&(B=it(this.selectedDate).add(1,"year"))),this.$emit("dateSelected",B)}}},Nr={class:"dateSelector flex items-center text-white flex-row"},Br={class:"pagination flex items-center my-1 md:my-0"},Lr={class:"date mx-4 font-bold text-center text-indigo-600 select-none uppercase"},Mr={class:"pagination flex items-center my-1 sm:my-0"};function Vr(_,L,B,M,V,D){const A=s.resolveComponent("ChevronLeftIcon"),R=s.resolveComponent("ChevronRightIcon");return s.openBlock(),s.createElementBlock("div",Nr,[s.createElementVNode("div",Br,[s.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[0]||(L[0]=Y=>D.selectDate("year","previous"))},[s.createVNode(A,{class:"h-4"}),s.createVNode(A,{class:"h-4 -ml-3"}),s.createVNode(A,{class:"h-4 -ml-3"})]),s.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[1]||(L[1]=Y=>D.selectDate("month","previous"))},[s.createVNode(A,{class:"h-4"}),s.createVNode(A,{class:"h-4 -ml-3"})]),s.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[2]||(L[2]=Y=>D.selectDate("day","previous"))},[s.createVNode(A,{class:"h-4"})])]),s.createElementVNode("div",Lr,s.toDisplayString(D.currentDate),1),s.createElementVNode("div",Mr,[s.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[3]||(L[3]=Y=>D.selectDate("day","next"))},[s.createVNode(R,{class:"h-4"})]),s.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[4]||(L[4]=Y=>D.selectDate("month","next"))},[s.createVNode(R,{class:"h-4"}),s.createVNode(R,{class:"h-4 -ml-3"})]),s.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[5]||(L[5]=Y=>D.selectDate("year","next"))},[s.createVNode(R,{class:"h-4"}),s.createVNode(R,{class:"h-4 -ml-3"}),s.createVNode(R,{class:"h-4 -ml-3"})])])])}const Pr=Dt(Er,[["render",Vr]]),Dr={name:"SkeletonTable"},Tr={class:"px-4 sm:px-6 lg:px-8 animate-pulse"},zr={class:"flow-root"},Ir={class:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Yr={class:"inline-block min-w-full py-2 align-middle px-1"},Fr={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},Xr={class:"min-w-full divide-y divide-gray-300"},_r={class:"divide-y divide-gray-200 bg-white"};function Or(_,L,B,M,V,D){return s.openBlock(),s.createElementBlock("div",Tr,[s.createElementVNode("div",zr,[s.createElementVNode("div",Ir,[s.createElementVNode("div",Yr,[s.createElementVNode("div",Fr,[s.createElementVNode("table",Xr,[L[1]||(L[1]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"relative py-3.5 pl-3 pr-4 sm:pr-6"},[s.createElementVNode("span",{class:"sr-only"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])])],-1)),s.createElementVNode("tbody",_r,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(10,A=>s.createElementVNode("tr",{key:A},L[0]||(L[0]=[s.createElementVNode("td",{class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"},[s.createElementVNode("a",{href:"#",class:"text-indigo-600 hover:text-indigo-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"}),s.createElementVNode("span",{class:"sr-only"},[s.createTextVNode(", {"),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])],-1)]))),64))])])])])])])])}const qi=Dt(Dr,[["render",Or]]);var Zi={exports:{}};(function(_,L){(function(B,M){_.exports=M()})(Pt,function(){return function(B,M,V){M.prototype.isToday=function(){var D="YYYY-MM-DD",A=V();return this.format(D)===A.format(D)}}})})(Zi);var Rr=Zi.exports;const Hr=ki(Rr),Wr={name:"calendarDay",props:{day:Object},computed:{currentDay(){return it.extend(Hr),{dayName:it(this.day).locale("es").format("ddd"),day:it(this.day).locale("es").format("DD"),month:it(this.day).locale("es").format("MMM."),isWeekend:it(this.day).format("d")==6||it(this.day).format("d")==0,isToday:it(this.day).isToday()}}}},$r={class:"text-xs"},Gr={class:"font-bold text-lg"},jr={class:"text-xs font-medium"};function Ur(_,L,B,M,V,D){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day select-none text-center",{"bg-indigo-200 text-white":D.currentDay.isWeekend,"bg-[#0ff] text-white":D.currentDay.isToday}])},[s.createElementVNode("p",$r,s.toDisplayString(D.currentDay.dayName),1),s.createElementVNode("p",Gr,s.toDisplayString(D.currentDay.day),1),s.createElementVNode("p",jr,s.toDisplayString(D.currentDay.month),1)],2)}const qr=Dt(Wr,[["render",Ur]]),Zr={name:"dayPrice",props:{currency:String,price:Object,basePrice:Number,isBasePrice:{type:Boolean,default:!1}},computed:{currentDay(){return{isWeekend:it(this.price.date).format("d")==6||it(this.price.date).format("d")==0,price:this.price.price}}}},Jr={class:"priceDay"};function Qr(_,L,B,M,V,D){return s.openBlock(),s.createElementBlock("div",Jr,[s.createElementVNode("div",{class:s.normalizeClass([{"bg-indigo-200 text-white":D.currentDay.isWeekend,"bg-green-300 text-white":B.price.price>B.basePrice,"bg-yellow-300 text-white":B.price.price<B.basePrice},"select-none text-center rounded-lg p-1"])},s.toDisplayString(D.currentDay.price)+s.toDisplayString(B.currency),3)])}const Kr=Dt(Zr,[["render",Qr]]),eo={name:"uiPriceCalendar",data:()=>({today:new Date,date:new Date,selectedRooms:[],showBasePricesModal:!1,showDays:14}),props:{type:String,category:{type:Object,required:!0},rooms:{type:Array,required:!0},currency:Object,actions:Array,loading:{type:Boolean,default:!0},literals:{type:Object,required:!0}},components:{DateSelector:Pr,Day:qr,Price:Kr,uiButton:At,SkeletonTable:qi},computed:{days(){let _=[];for(let L=0;L<this.showDays;L++)_.push(it(this.date).add(L,"day"));return _},indeterminate(){return this.selectedRooms.length>0&&this.selectedRooms.length<this.rooms.length}},methods:{changeDate(_){it(_).isBefore(this.today)||(this.date=_,this.$emit("dateChanged",this.date))},getSelectionBasePrice(_){let L=this.category.selectionPrices.find(B=>it(B.date).isSame(_.date));return L?L.price:_.price},changeCategoryBulkPrices(){this.$emit("changeCategoryBulkPrices")},changeCategorySelectionPrice(_){this.$emit("changeCategorySelectionPrice",_)},changeCategoryUpgradePrice(_){this.$emit("changeCategoryUpgradePrice",_)},tableAction(_){this.$emit("tableAction",_)},changeRoomPrice(_){this.$emit("changeRoomPrice",_)}}},to={key:0,class:"px-4 sm:px-6 lg:px-8"},io={class:"flow-root"},ao={class:"overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},so={class:"inline-block min-w-full align-middle"},ro={class:"min-w-full text-sm"},oo={class:"bg-white"},no={colspan:"6",scope:"colgroup",class:"bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"},lo={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},co={key:0},ho={colspan:"6",class:"pl-4"},uo={key:1},go={colspan:"6",class:"pl-4"},po={key:2},fo={colspan:"6",class:"pl-4"},mo={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"},xo={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"},vo=["onClick"],bo={colspan:"2",scope:"colgroup",class:"relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"},yo=["checked","indeterminate"],wo={class:"pl-6"},ko={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},Co={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},So={colspan:"2",class:"relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},Ao={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},Eo=["value"],No={class:"pl-6"},Bo={colspan:"2",class:"pl-4"},Lo={colspan:"2",class:"pl-4"};function Mo(_,L,B,M,V,D){var le,ye;const A=s.resolveComponent("DateSelector"),R=s.resolveComponent("Day"),Y=s.resolveComponent("uiButton"),U=s.resolveComponent("Price"),K=s.resolveComponent("SkeletonTable");return B.loading?(s.openBlock(),s.createBlock(K,{key:1})):(s.openBlock(),s.createElementBlock("div",to,[s.createElementVNode("div",io,[s.createElementVNode("div",ao,[s.createElementVNode("div",so,[s.createElementVNode("table",ro,[s.createElementVNode("tbody",oo,[s.createElementVNode("tr",null,[s.createElementVNode("th",no,[s.createVNode(A,{selectedDate:_.date,onDateSelected:L[0]||(L[0]=H=>D.changeDate(H))},null,8,["selectedDate"])]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.days,(H,q)=>(s.openBlock(),s.createElementBlock("th",{scope:"col",key:q,class:"text-sm font-semibold text-gray-900 p-0"},[s.createVNode(R,{class:"border-l border-gray-200 px-6 py-3",day:H},null,8,["day"])]))),128))]),s.createElementVNode("tr",null,[s.createElementVNode("th",lo,[s.createElementVNode("span",null,s.toDisplayString(B.literals.category)+" "+s.toDisplayString(B.category.name),1),s.createVNode(Y,{loading:B.loading,class:"ml-4",size:"small",onClick:D.changeCategoryBulkPrices},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(B.literals.changeInBulk),1)]),_:1},8,["loading","onClick"])])]),B.type==="discounts"?(s.openBlock(),s.createElementBlock("tr",co,[s.createElementVNode("td",ho,s.toDisplayString(B.literals.pricesDiscount),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.category.selectionPrices,(H,q)=>(s.openBlock(),s.createElementBlock("td",{key:q,class:"p-0"},[s.createVNode(U,{onClick:pe=>D.changeCategorySelectionPrice(H),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:H,currency:B.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):s.createCommentVNode("",!0),B.type==="prices"?(s.openBlock(),s.createElementBlock("tr",uo,[s.createElementVNode("td",go,s.toDisplayString(B.literals.pricesSelection),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.category.selectionPrices,(H,q)=>(s.openBlock(),s.createElementBlock("td",{key:q,class:"p-0"},[s.createVNode(U,{onClick:pe=>D.changeCategorySelectionPrice(H),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:H,currency:B.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):s.createCommentVNode("",!0),B.type==="prices"?(s.openBlock(),s.createElementBlock("tr",po,[s.createElementVNode("td",fo,s.toDisplayString(B.literals.pricesUpgrade),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.category.upgradePrices,(H,q)=>(s.openBlock(),s.createElementBlock("td",{key:q,class:"p-0"},[s.createVNode(U,{onClick:pe=>D.changeCategoryUpgradePrice(H),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",price:H,currency:B.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):s.createCommentVNode("",!0),s.createElementVNode("tr",null,[s.createElementVNode("th",mo,[((le=_.selectedRooms)==null?void 0:le.length)>0&&((ye=B.actions)==null?void 0:ye.length)>0?(s.openBlock(),s.createElementBlock("div",xo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.actions,(H,q)=>(s.openBlock(),s.createElementBlock("button",{onClick:pe=>D.tableAction({action:H.id,items:_.selectedRooms}),key:q,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},s.toDisplayString(H.name),9,vo))),128))])):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(B.literals.pricesSelection),1)])]),s.createElementVNode("tr",null,[s.createElementVNode("th",bo,[s.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:D.indeterminate||_.selectedRooms.length===B.rooms.length,indeterminate:D.indeterminate,onChange:L[1]||(L[1]=H=>_.selectedRooms=H.target.checked?B.rooms.map(q=>q.name):[])},null,40,yo),s.createElementVNode("span",wo,s.toDisplayString(B.literals.room),1)]),s.createElementVNode("th",ko,s.toDisplayString(B.literals.building),1),s.createElementVNode("th",Co,s.toDisplayString(B.literals.floor),1),L[3]||(L[3]=s.createElementVNode("th",{colspan:"14",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},null,-1))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.rooms,H=>(s.openBlock(),s.createElementBlock("tr",{key:H.name,class:s.normalizeClass([{"even:bg-gray-100":B.type==="prices","odd:bg-gray-100":B.type==="discounts"}])},[s.createElementVNode("td",So,[_.selectedRooms.includes(H.name)?(s.openBlock(),s.createElementBlock("div",Ao)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:H.name,"onUpdate:modelValue":L[2]||(L[2]=q=>_.selectedRooms=q)},null,8,Eo),[[s.vModelCheckbox,_.selectedRooms]]),s.createElementVNode("span",No,s.toDisplayString(H.name),1)]),s.createElementVNode("td",Bo,s.toDisplayString(H.building),1),s.createElementVNode("td",Lo,s.toDisplayString(H.floor),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(H.selectionPrices,(q,pe)=>(s.openBlock(),s.createElementBlock("td",{class:"p-0",key:pe},[s.createVNode(U,{onClick:ce=>D.changeRoomPrice(q),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",price:q,currency:B.currency.symbol,basePrice:D.getSelectionBasePrice(q)},null,8,["onClick","price","currency","basePrice"])]))),128))],2))),128))])])])])])]))}const Ji=Dt(eo,[["render",Mo]]);var vi={exports:{}};/*!
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),Se=require("@headlessui/vue"),wa=require("vue3-draggable"),He=s.defineComponent({__name:"uiIcon",props:{icon:{},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass([{"h-4 w-4":L.size==="medium","h-6 w-6":L.size==="big","h-8 w-8":L.size==="bigger","h-12 w-12":L.size==="huge","h-20 w-20":L.size==="massive"},"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])},null,2)):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(L.icon),{key:0,class:s.normalizeClass({"h-4 w-4":L.size==="medium","h-6 w-6":L.size==="big","h-8 w-8":L.size==="bigger","h-12 w-12":L.size==="huge","h-20 w-20":L.size==="massive","text-indigo-600":L.color==="primary","text-cyan-300":L.color==="secondary","text-red-400":L.color==="red","text-yellow-400":L.color==="yellow","text-green-400":L.color==="green","text-white":L.color==="white","text-gray-300":L.color==="gray","text-black":L.color==="black"})},null,8,["class"]))}}),ka=["disabled"],Ca={key:1,class:"animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"},At=s.defineComponent({__name:"uiButton",props:{block:{type:Boolean},color:{default:"primary"},disabled:{type:Boolean},icon:{},loading:{type:Boolean,default:!0},size:{default:"medium"}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("button",Ca,[L.icon?(s.openBlock(),s.createBlock(He,{key:0,icon:L.icon,color:"white",class:"-ml-0.5 mr-2",loading:L.loading},null,8,["icon","loading"])):s.createCommentVNode("",!0),B[0]||(B[0]=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16"},null,-1))])):(s.openBlock(),s.createElementBlock("button",{key:0,disabled:L.disabled,class:s.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 text-white shadow-sm":L.color==="primary","bg-cyan-300 hover:bg-cyan-500 text-white shadow-sme":L.color==="secondary","bg-red-400 hover:bg-red-600 text-white shadow-sm":L.color==="red","bg-yellow-400 hover:bg-yellow-600 text-white shadow-sm":L.color==="yellow","bg-green-400 hover:bg-green-600 text-white shadow-sm":L.color==="green","px-4 py-2 text-sm rounded-md":L.size==="medium","px-2.5 py-1.5 text-xs rounded leading-none":L.size==="small","px-6 py-3 text-base rounded-md":L.size==="big","w-full flex items-center justify-center":L.block},"inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25"]),type:"button"},[L.icon?(s.openBlock(),s.createBlock(He,{key:0,icon:L.icon,color:"white",class:"-ml-0.5 mr-2",loading:L.loading},null,8,["icon","loading"])):s.createCommentVNode("",!0),s.renderSlot(L.$slots,"default")],10,ka))}}),Sa={key:0,class:"relative flex items-start"},Aa={class:"flex items-center h-5"},Ea=["checked","value","disabled"],Na={class:"ml-3 text-sm"},Ba={class:"text-gray-500"},La={key:1,class:"flex items-center animate-pulse"},yi=s.defineComponent({__name:"uiCheckbox",props:{check:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},value:{},text:{}},emits:["checkboxChanged"],setup(_,{emit:L}){const B=L,M=_,V=s.ref(M.check),D=()=>{M.disabled||(V.value=!V.value,B("checkboxChanged",{checked:V.value,value:M.value}))};return(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",La,R[1]||(R[1]=[s.createElementVNode("div",{class:"w-5 h-5 rounded bg-gray-200"},null,-1),s.createElementVNode("div",{class:"ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)]))):(s.openBlock(),s.createElementBlock("div",Sa,[s.createElementVNode("div",Aa,[s.createElementVNode("input",{checked:A.check,value:A.value,disabled:A.disabled,class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25",type:"checkbox",onChange:R[0]||(R[0]=Y=>D())},null,40,Ea)]),s.createElementVNode("div",Na,[s.createElementVNode("span",Ba,[s.renderSlot(A.$slots,"default")])])]))}});function Ma(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Va(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75"})])}function Pa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function Ti(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Da(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function Ta(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})])}function zi(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function qt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Ut(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Ii(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function Xt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function xi(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function za(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function Ia(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function xt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function Ya(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 16.318A4.486 4.486 0 0 0 12.016 15a4.486 4.486 0 0 0-3.198 1.318M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function Fa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function Xa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002"})])}function _a(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function Yi(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function Oa(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function Ra(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function Ha(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zt(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Et(_,L){return s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Wa={key:0,class:"block text-sm font-medium text-gray-700 mb-1"},$a={class:"py-1"},Ga=["onClick"],ja={key:1,class:"animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left"},Jt=s.defineComponent({__name:"uiDropdown",props:{items:{},position:{default:"left"},disabled:{type:Boolean},label:{},loading:{type:Boolean,default:!0}},emits:["optionSelected"],setup(_,{emit:L}){const B=L,M=_,V=s.computed(()=>{let A=M.items.find(R=>R.active===!0);return A?A.name:M.label}),D=A=>{M.disabled||B("optionSelected",A)};return(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",ja,[R[0]||(R[0]=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)),s.createVNode(s.unref(Ut),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"})])):(s.openBlock(),s.createBlock(s.unref(Se.Menu),{key:0,as:"div",class:s.normalizeClass(["relative inline-block text-left",{"opacity-25":A.disabled}])},{default:s.withCtx(()=>[s.createElementVNode("div",null,[A.label?(s.openBlock(),s.createElementBlock("label",Wa,s.toDisplayString(A.label),1)):s.createCommentVNode("",!0),s.createVNode(s.unref(Se.MenuButton),{class:"inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(V.value)+" ",1),s.createVNode(s.unref(Ut),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5"})]),_:1})]),s.createVNode(s.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:s.withCtx(()=>[A.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(Se.MenuItems),{key:0,class:s.normalizeClass([{"right-0":A.position==="right","left-0":A.position==="left"},"origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])},{default:s.withCtx(()=>[s.createElementVNode("div",$a,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(A.items,(Y,U)=>(s.openBlock(),s.createBlock(s.unref(Se.MenuItem),{key:U},{default:s.withCtx(()=>[s.createElementVNode("a",{onClick:K=>D(Y),class:s.normalizeClass([Y.active?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"])},s.toDisplayString(Y.name),11,Ga)]),_:2},1024))),128))])]),_:1},8,["class"]))]),_:1})]),_:1},8,["class"]))}}),Ua={key:0},qa={class:"flex justify-between"},Za={key:0,class:"block text-sm font-medium text-gray-700"},Ja={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Qa=["disabled","name","placeholder","type"],Ka={class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},es={key:1,class:"animate-pulse"},ts={key:0,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},St=s.defineComponent({__name:"uiInput",props:{label:{},type:{default:"text"},name:{},placeholder:{default:"..."},icon:{},disabled:{type:Boolean},color:{default:"gray"},value:{},error:{},requiredText:{},addOn:{},rightAddOn:{},loading:{type:Boolean,default:!0}},emits:["inputChanged","rightAddOnClicked","addOnClicked"],setup(_,{emit:L}){const B=L,M=_,V=s.ref(M.value);s.watch(()=>M.value,A=>{V.value=A,V.value&&B("inputChanged",{name:M.name,value:V.value})});const D=A=>{A.target.name&&B("inputChanged",{value:A.target.value,name:A.target.name})};return(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",es,[A.label!==void 0?(s.openBlock(),s.createElementBlock("div",ts)):s.createCommentVNode("",!0),R[3]||(R[3]=s.createElementVNode("div",{class:"animate-pulse px-4 py-3.5 bg-gray-200 rounded-md inline-flex items-center relative text-left w-full"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"})],-1))])):(s.openBlock(),s.createElementBlock("div",Ua,[s.createElementVNode("div",qa,[A.label?(s.openBlock(),s.createElementBlock("label",Za,s.toDisplayString(A.label),1)):s.createCommentVNode("",!0),A.requiredText?(s.openBlock(),s.createElementBlock("span",Ja,s.toDisplayString(A.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass([{"mt-1":A.label},"relative flex"])},[A.addOn?(s.openBlock(),s.createElementBlock("span",{key:0,onClick:R[0]||(R[0]=Y=>A.$emit("addOnClicked")),class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer"},s.toDisplayString(A.addOn),1)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":R[1]||(R[1]=Y=>V.value=Y),class:s.normalizeClass([{"border-gray-300":A.color==="gray","border-red-400":A.color==="red","border-yellow-400":A.color==="yellow","border-green-400":A.color==="green","bg-gray-100":A.disabled,"text-black":A.color==="black","text-red-400":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green","rounded-md":!A.addOn||!A.rightAddOn,"rounded-r-md":A.addOn,"rounded-l-none":A.addOn,"rounded-l-md":A.rightAddOn,"rounded-r-none":A.rightAddOn},"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]),disabled:A.disabled,name:A.name,placeholder:A.placeholder,type:A.type,onInput:D},null,42,Qa),[[s.vModelDynamic,V.value]]),A.rightAddOn?(s.openBlock(),s.createElementBlock("span",{key:1,onClick:R[2]||(R[2]=Y=>A.$emit("rightAddOnClicked")),class:"inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer"},s.toDisplayString(A.rightAddOn),1)):s.createCommentVNode("",!0),s.createElementVNode("div",Ka,[A.icon?(s.openBlock(),s.createBlock(He,{key:0,icon:A.icon,color:A.color,loading:A.loading},null,8,["icon","color","loading"])):s.createCommentVNode("",!0),s.withDirectives(s.createVNode(He,{icon:s.unref(qt),color:"green",loading:A.loading},null,8,["icon","loading"]),[[s.vShow,A.color==="green"]]),s.withDirectives(s.createVNode(He,{icon:s.unref(xt),color:"yellow",loading:A.loading},null,8,["icon","loading"]),[[s.vShow,A.color==="yellow"]]),s.withDirectives(s.createVNode(He,{icon:s.unref(Et),color:"red",loading:A.loading},null,8,["icon","loading"]),[[s.vShow,A.color==="red"]])])],2),s.withDirectives(s.createElementVNode("p",{class:s.normalizeClass([{"text-gray-400":A.color==="gray","text-red-400":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green"},"mt-2 text-xs flex flex-row items-center"])},s.toDisplayString(A.error),3),[[s.vShow,A.error]])]))}}),is={key:0},as={class:"flex justify-between"},ss={key:0,class:"block text-sm font-medium text-gray-700"},rs={key:1,class:"text-[10px] text-gray-500 uppercase"},os={class:"space-y-1 flex flex-col items-center justify-center"},ns={class:"flex text-sm text-gray-600 flex-col sm:flex-row text-center"},ls=["for"],cs=["id","name","accept"],ds={class:"pl-1"},hs={class:"text-xs text-gray-500 pb-4"},us={class:"mt-2 text-xs flex flex-row items-center text-red-300"},gs={key:1,class:"animate-pulse"},Fi=s.defineComponent({__name:"uiInputFile",props:{name:{},id:{},requiredText:{},placeholder:{},dragAndDrop:{},fileTypesAndSizes:{},error:{},accept:{},icon:{default:Va},loading:{type:Boolean,default:!0},label:{}},emits:["filesUploaded"],setup(_,{emit:L}){let B=s.ref("");const M=L,V=_,D=Y=>{R(Y.dataTransfer.files),M("filesUploaded",{id:V.id,files:Y.dataTransfer.files})},A=Y=>{R(Y.target.files),M("filesUploaded",{id:V.id,files:Y.target.files})},R=Y=>{B.value="";let U=1;Object.values(Y).forEach(K=>{U++,B.value+=K.name,U>=1&&U<Y.length&&(B.value+=", ")})};return(Y,U)=>Y.loading?(s.openBlock(),s.createElementBlock("div",gs,U[1]||(U[1]=[s.createElementVNode("div",{class:"flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200"},[s.createElementVNode("div",{class:"rounded-full h-20 w-20 bg-gray-200 mb-4"}),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3"}),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3"})],-1)]))):(s.openBlock(),s.createElementBlock("div",is,[s.createElementVNode("div",as,[Y.label?(s.openBlock(),s.createElementBlock("label",ss,s.toDisplayString(Y.label),1)):s.createCommentVNode("",!0),Y.requiredText?(s.openBlock(),s.createElementBlock("span",rs,s.toDisplayString(Y.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass([[{"mt-1":Y.label},{"border-gray-300 hover:border-gray-400":!Y.error},{"border-red-300 hover:border-red-400":Y.error}],"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]),onDragover:U[0]||(U[0]=s.withModifiers(()=>{},["prevent"])),onDrop:s.withModifiers(D,["prevent"])},[s.createElementVNode("div",os,[s.createVNode(He,{icon:Y.icon,size:"massive",color:"gray","aria-hidden":"true",class:"mb-4",loading:Y.loading},null,8,["icon","loading"]),s.createElementVNode("div",ns,[s.createElementVNode("label",{for:Y.id,class:"relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"},[s.createElementVNode("span",null,s.toDisplayString(Y.placeholder),1),s.createElementVNode("input",{id:Y.id,name:Y.name,type:"file",class:"sr-only",accept:Y.accept,multiple:"",onChange:A},null,40,cs)],8,ls),s.createElementVNode("p",ds,s.toDisplayString(Y.dragAndDrop),1)]),s.createElementVNode("p",hs,s.toDisplayString(Y.fileTypesAndSizes),1),s.withDirectives(s.createElementVNode("p",{class:"font-bold text-xs uppercase block p-2 bg-gray-200 rounded"},s.toDisplayString(s.unref(B)),513),[[s.vShow,s.unref(B)!==null]])])],34),s.withDirectives(s.createElementVNode("p",us,[s.createVNode(He,{icon:s.unref(Zt),color:"red",class:"mr-2",loading:Y.loading},null,8,["icon","loading"]),s.createTextVNode(" "+s.toDisplayString(Y.error),1)],512),[[s.vShow,Y.error]])]))}}),ps={class:"flex justify-between"},fs={key:0,class:"text-[10px] text-gray-500 uppercase justify-self-end"},ms={class:"relative mt-1"},xs={key:1,class:"animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"},Xi=s.defineComponent({__name:"uiSelect",props:{items:{},label:{},error:{},color:{default:"gray"},select:{},loading:{type:Boolean,default:!0},disabled:{type:Boolean},requiredText:{}},emits:["selectChanged"],setup(_,{emit:L}){const B=s.ref(""),M=L,V=_,D=s.computed(()=>B.value===""?V.items:V.items.filter(Y=>Y.name.toLowerCase().includes(B.value.toLowerCase()))),A=Y=>(Y==null?void 0:Y.name)??"",R=s.computed(()=>V.select);return(Y,U)=>Y.loading?(s.openBlock(),s.createElementBlock("div",xs,[U[4]||(U[4]=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1)),s.createVNode(s.unref(xi),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"})])):(s.openBlock(),s.createBlock(s.unref(Se.Combobox),{key:0,modelValue:R.value,"onUpdate:modelValue":[U[2]||(U[2]=K=>R.value=K),U[3]||(U[3]=K=>M("selectChanged",K))],disabled:Y.disabled,as:"div"},{default:s.withCtx(()=>[s.createElementVNode("div",ps,[s.createVNode(s.unref(Se.ComboboxLabel),{class:"block text-sm font-medium"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(Y.label),1)]),_:1}),Y.requiredText?(s.openBlock(),s.createElementBlock("span",fs,s.toDisplayString(Y.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",ms,[s.createVNode(s.unref(Se.ComboboxInput),{onChange:U[0]||(U[0]=K=>B.value=K.target.value),onBlur:U[1]||(U[1]=K=>B.value=""),displayValue:A,class:s.normalizeClass([{"border-gray-300":Y.color==="gray","border-red-400":Y.color==="red","border-yellow-400":Y.color==="yellow","border-green-400":Y.color==="green","bg-gray-100":Y.disabled,"bg-white":!Y.disabled,"text-black":Y.color==="gray","text-gray-300":Y.disabled,"text-red-400":Y.color==="red","text-yellow-400":Y.color==="yellow","text-green-400":Y.color==="green"},"w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"])},null,8,["class"]),s.createVNode(s.unref(Se.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:s.withCtx(()=>[s.createVNode(s.unref(xi),{"aria-hidden":"true",class:"h-5 w-5 text-gray-400"})]),_:1}),D.value.length>0?(s.openBlock(),s.createBlock(s.unref(Se.ComboboxOptions),{key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.value,K=>(s.openBlock(),s.createBlock(s.unref(Se.ComboboxOption),{key:K.id,value:K,as:"template"},{default:s.withCtx(({active:le,selected:ye})=>[s.createElementVNode("li",{class:s.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",le?"bg-indigo-600 text-white":"text-gray-900"])},[s.createElementVNode("span",{class:s.normalizeClass(["block truncate",ye&&"font-semibold"])},s.toDisplayString(K.name),3),ye?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["absolute inset-y-0 right-0 flex items-center pr-4",le?"text-white":"text-indigo-600"])},[s.createVNode(s.unref(qt),{"aria-hidden":"true",class:"h-5 w-5",loading:!0})],2)):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):s.createCommentVNode("",!0)]),s.withDirectives(s.createElementVNode("p",{class:s.normalizeClass([{"text-gray-400":Y.color==="gray","text-red-400":Y.color==="red","text-yellow-400":Y.color==="yellow","text-green-400":Y.color==="green"},"mt-2 text-xs flex flex-row items-center"])},s.toDisplayString(Y.error),3),[[s.vShow,Y.error]])]),_:1},8,["modelValue","disabled"]))}}),vs={key:1,class:"inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"},ft=s.defineComponent({__name:"uiTag",props:{color:{default:"primary"},loading:{type:Boolean,default:!0},size:{default:"medium"},event:{},name:{},text:{}},emits:["tagEvent"],setup(_,{emit:L}){const B=L,M=_,V=()=>{M.event!=null&&B("tagEvent",M.event)};return(D,A)=>D.loading?(s.openBlock(),s.createElementBlock("div",vs,A[0]||(A[0]=[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"},null,-1)]))):(s.openBlock(),s.createElementBlock("span",{key:0,onClick:V,class:s.normalizeClass([{"bg-indigo-100 text-indigo-800 border border-indigo-200":D.color==="primary","hover:bg-indigo-200 cursor-pointer":D.event!==void 0&&D.color==="primary","bg-red-100 text-red-800 border border-red-200":D.color==="red","hover:bg-red-200 cursor-pointer":D.event!==void 0&&D.color==="red","bg-yellow-100 text-yellow-800 border border-yellow-200":D.color==="yellow","hover:bg-yellow-200 cursor-pointer":D.event!==void 0&&D.color==="yellow","bg-green-100 text-green-800 border border-green-200":D.color==="green","hover:bg-green-200 cursor-pointer":D.event!==void 0&&D.color==="green","bg-black text-white border border-black":D.color==="black","text-black border border-gray-200 bg-white":D.color==="white","px-3 py-2":D.size==="medium","px-2 pt-1 pb-0.5":D.size==="small","px-4 py-3":D.size==="big"},"inline-flex items-center rounded text-xs font-medium leading-none"])},[s.renderSlot(D.$slots,"default")],2))}}),bs={key:0},ys={class:"flex justify-between"},ws={key:0,class:"block text-sm font-medium text-gray-700"},ks={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Cs=["disabled","placeholder"],Ss={key:1,class:"animate-pulse"},_i=s.defineComponent({__name:"uiTextArea",props:{name:{},label:{},placeholder:{default:"..."},value:{},color:{default:"gray"},disabled:{type:Boolean,default:!1},error:{},loading:{type:Boolean,default:!0},requiredText:{}},emits:["inputChanged"],setup(_,{emit:L}){const B=L,M=_,V=A=>{B("inputChanged",A.target.value)},D=s.ref(M.value);return s.watch(()=>M.value,A=>{D.value=A,B("inputChanged",{name:M.name,value:D.value})}),(A,R)=>A.loading?(s.openBlock(),s.createElementBlock("div",Ss,R[1]||(R[1]=[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},null,-1),s.createElementVNode("div",{class:"h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full"},null,-1)]))):(s.openBlock(),s.createElementBlock("div",bs,[s.createElementVNode("div",ys,[A.label?(s.openBlock(),s.createElementBlock("label",ws,s.toDisplayString(A.label),1)):s.createCommentVNode("",!0),A.requiredText?(s.openBlock(),s.createElementBlock("span",ks,s.toDisplayString(A.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass({"mt-1":A.label})},[s.withDirectives(s.createElementVNode("textarea",{disabled:A.disabled,rows:"4","onUpdate:modelValue":R[0]||(R[0]=Y=>D.value=Y),placeholder:A.placeholder,class:s.normalizeClass(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md",{"border-gray-300":A.color==="gray","border-red-300":A.color==="red","border-yellow-400":A.color==="yellow","border-green-400":A.color==="green","bg-gray-100":A.disabled,"text-black":A.color==="black","text-red-300":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green"}]),onChange:V},null,42,Cs),[[s.vModelText,D.value]])],2),s.withDirectives(s.createElementVNode("p",{class:s.normalizeClass([{"text-gray-300":A.color==="gray","text-red-300":A.color==="red","text-yellow-400":A.color==="yellow","text-green-400":A.color==="green"},"mt-2 text-xs flex flex-row items-center"])},[s.createVNode(He,{icon:s.unref(Zt),color:"red",class:"mr-2",loading:!1},null,8,["icon"]),s.createTextVNode(" "+s.toDisplayString(A.error),1)],2),[[s.vShow,A.error]])]))}}),As={class:"text-sm font-medium text-gray-900"},Es={key:0,class:"text-sm text-gray-500 ml-2"},Ns={key:1,class:"animate-pulse flex items-center"},Oi=s.defineComponent({__name:"uiToggle",props:{item:{},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},setup(_){const L=_,B=s.ref(L.checked);return s.watch(()=>L.checked,M=>B.value=M),(M,V)=>M.loading?(s.openBlock(),s.createElementBlock("div",Ns,V[3]||(V[3]=[s.createElementVNode("div",{class:"relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center"},[s.createElementVNode("div",{class:"rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4"})],-1),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2"},null,-1)]))):(s.openBlock(),s.createBlock(s.unref(Se.SwitchGroup),{key:0,as:"div",class:"flex items-center relative"},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.Switch),{disabled:M.disabled,onClick:V[0]||(V[0]=D=>M.$emit("toggleChanged",{item:M.item,active:!B.value})),modelValue:B.value,"onUpdate:modelValue":V[1]||(V[1]=D=>B.value=D),class:s.normalizeClass([B.value?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:s.withCtx(()=>[s.createElementVNode("span",{"aria-hidden":"true",class:s.normalizeClass([B.value?"translate-x-5":"translate-x-0",M.disabled?"bg-gray-300":"","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["disabled","modelValue","class"]),s.createVNode(s.unref(Se.SwitchLabel),{as:"span",class:"ml-3"},{default:s.withCtx(()=>[s.createElementVNode("span",As,s.toDisplayString(M.item.title),1),M.item.subtitle?(s.openBlock(),s.createElementBlock("span",Es,s.toDisplayString(M.item.subtitle),1)):s.createCommentVNode("",!0)]),_:1}),M.item.action?(s.openBlock(),s.createElementBlock("span",{key:0,class:"cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",onClick:V[2]||(V[2]=D=>M.$emit("actionClicked",M.item))},s.toDisplayString(M.item.action),1)):s.createCommentVNode("",!0)]),_:1}))}}),Bs={key:0,class:"flex flex-col"},Ls={class:"flex"},Ms={class:"flex-shrink-0"},Vs={class:"ml-3"},Ps={class:"mt-4"},Ds={class:"-mx-2 -my-1.5 flex"},Ts=["onClick"],zs={key:1,class:"flex flex-col animate-pulse"},Ri=s.defineComponent({__name:"uiAlert",props:{actions:{},title:{},type:{default:"info"},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("div",zs,B[0]||(B[0]=[s.createStaticVNode('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>',1)]))):(s.openBlock(),s.createElementBlock("div",Bs,[s.createElementVNode("div",{class:s.normalizeClass([{"bg-indigo-50 border-indigo-400":L.type==="info","bg-red-50 border-red-400":L.type==="danger","bg-yellow-50 border-yellow-400":L.type==="warning","bg-green-50 border-green-400":L.type==="success"},"p-4 border-l-4 rounded"])},[s.createElementVNode("div",Ls,[s.createElementVNode("div",Ms,[L.type==="info"?(s.openBlock(),s.createBlock(s.unref(Yi),{key:0,class:"h-8 w-8 text-indigo-400","aria-hidden":"true"})):s.createCommentVNode("",!0),L.type==="danger"?(s.openBlock(),s.createBlock(s.unref(Zt),{key:1,class:"h-8 w-8 text-red-400","aria-hidden":"true"})):s.createCommentVNode("",!0),L.type==="warning"?(s.openBlock(),s.createBlock(s.unref(xt),{key:2,class:"h-8 w-8 text-yellow-400","aria-hidden":"true"})):s.createCommentVNode("",!0),L.type==="success"?(s.openBlock(),s.createBlock(s.unref(zi),{key:3,class:"h-8 w-8 text-green-400","aria-hidden":"true"})):s.createCommentVNode("",!0)]),s.createElementVNode("div",Vs,[s.createElementVNode("h3",{class:s.normalizeClass([{"text-red-800":L.type==="danger","text-yellow-800":L.type==="warning","text-green-800":L.type==="success"},"text-sm font-medium"])},s.toDisplayString(L.title),3),s.createElementVNode("div",{class:s.normalizeClass([{"text-red-700":L.type==="danger","text-yellow-700":L.type==="warning","text-green-700":L.type==="success"},"mt-2 text-sm"])},[s.renderSlot(L.$slots,"default")],2),s.createElementVNode("div",Ps,[s.createElementVNode("div",Ds,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.actions,(M,V)=>(s.openBlock(),s.createElementBlock("button",{onClick:D=>L.$emit("alertEvent",M.event),type:"button",key:V,class:s.normalizeClass([{"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50":L.type==="success","bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50":L.type==="info","bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50":L.type==="danger","bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50":L.type==="warning"},"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"])},s.toDisplayString(M.name),11,Ts))),128))])])])])],2)]))}}),Is={key:0,class:"inline-flex","aria-label":"Breadcrumb"},Ys={role:"list",class:"flex items-center space-x-4 text-xs"},Fs={key:0},Xs=["onClick"],_s={key:1,class:"flex items-center"},Os=["onClick"],Rs={key:1,class:"flex flex-row items-center animate-pulse"},Hi=s.defineComponent({__name:"uiBreadcrumbs",props:{pages:{},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("div",Rs,B[0]||(B[0]=[s.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4"},null,-1),s.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1)]))):(s.openBlock(),s.createElementBlock("nav",Is,[s.createElementVNode("ol",Ys,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.pages,(M,V)=>(s.openBlock(),s.createElementBlock("li",{key:V},[V===0?(s.openBlock(),s.createElementBlock("div",Fs,[s.createElementVNode("p",{onClick:D=>L.$emit("breadCrumbClicked",M.routeName),class:"flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"},[s.createVNode(s.unref(_a),{class:"flex-shrink-0 h-3 w-3 text-gray-400 mr-4","aria-hidden":"true"}),s.createElementVNode("span",null,s.toDisplayString(M.name),1)],8,Xs)])):(s.openBlock(),s.createElementBlock("div",_s,[s.createVNode(s.unref(Xt),{class:"flex-shrink-0 h-3 w-3 text-gray-400","aria-hidden":"true"}),s.createElementVNode("span",{onClick:D=>L.$emit("breadCrumbClicked",M.routeName),class:s.normalizeClass(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500",{"text-indigo-600 hover:text-indigo-800":!M.current}]),"aria-current":"page"},s.toDisplayString(M.name),11,Os)]))]))),128))])]))}}),Hs={class:"flex items-center flex-col sm:flex-row justify-center sm:justify-start"},Ws=["src"],$s={class:"font-bold text-center sm:text-left"},Gs={class:"mt-1 text-xs text-center sm:text-left"},js={key:0,class:"flex flex-wrap mt-4 justify-center sm:justify-start"},Us={key:1,class:"rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"},Wi=s.defineComponent({__name:"uiCard",props:{id:{},name:{},type:{},tags:{},logo:{},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>{var M;return L.loading?(s.openBlock(),s.createElementBlock("div",Us,B[1]||(B[1]=[s.createStaticVNode('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>',1)]))):(s.openBlock(),s.createElementBlock("div",{key:0,class:"rounded-lg bg-white shadow p-6 cursor-pointer",onClick:B[0]||(B[0]=V=>L.$emit("cardSelected",{id:L.id,name:L.name,type:L.type,tags:L.tags}))},[s.createElementVNode("div",Hs,[s.createElementVNode("img",{class:"w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",src:L.logo},null,8,Ws),s.createElementVNode("div",null,[s.createElementVNode("h4",$s,s.toDisplayString(L.name),1),s.createElementVNode("p",Gs,s.toDisplayString(L.type),1)])]),L.tags&&((M=L.tags)==null?void 0:M.length)>0?(s.openBlock(),s.createElementBlock("div",js,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tags,V=>(s.openBlock(),s.createBlock(ft,{class:"mb-1 mr-1",key:V.name,color:V.color,loading:L.loading},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(V.name),1)]),_:2},1032,["color","loading"]))),128))])):s.createCommentVNode("",!0)]))}}}),$i=s.defineComponent({__name:"uiFilter",props:{type:{},items:{},position:{default:"left"},label:{},loading:{type:Boolean,default:!0}},emits:["filterSelected"],setup(_,{emit:L}){const B=L,M=_,V=A=>{D.value.forEach(R=>{R.value!==A.value?R.active=!1:R.active=!0}),B("filterSelected",A)},D=s.ref(M.items);return(A,R)=>(s.openBlock(),s.createBlock(Jt,{loading:A.loading,onOptionSelected:R[0]||(R[0]=Y=>V(Y)),position:A.position,items:D.value,label:A.label},null,8,["loading","position","items","label"]))}}),qs={class:"fixed inset-0 z-10 overflow-y-auto"},Zs={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},Js={class:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block"},Qs={class:"sm:flex sm:items-start"},Ks={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words"},er={class:"mt-4 text-gray-500 text-sm"},tr={key:0,class:"mt-8"},ir=["onClick"],wi=s.defineComponent({__name:"uiModal",props:{title:{},actions:{},modalName:{},open:{type:Boolean,default:!1},type:{default:"default"},loading:{type:Boolean,default:!1}},emits:["modalAction"],setup(_,{emit:L}){const B=_,M=L,V=D=>{M("modalAction",{modal:B.modalName,action:D})};return(D,A)=>(s.openBlock(),s.createBlock(s.unref(Se.TransitionRoot),{as:"template",show:D.open},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.Dialog),{as:"div",class:"relative z-10",onClose:A[1]||(A[1]=R=>V("close"))},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s.withCtx(()=>A[2]||(A[2]=[s.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])),_:1}),s.createElementVNode("div",qs,[s.createElementVNode("div",Zs,[s.createVNode(s.unref(Se.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:s.withCtx(()=>[s.createVNode(s.unref(Se.DialogPanel),{class:"relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6"},{default:s.withCtx(()=>[s.createElementVNode("div",Js,[s.createElementVNode("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:A[0]||(A[0]=R=>V("close"))},[A[3]||(A[3]=s.createElementVNode("span",{class:"sr-only"},"X",-1)),s.createVNode(He,{icon:s.unref(Et),"aria-hidden":"true",loading:D.loading},null,8,["icon","loading"])])]),s.createElementVNode("div",Qs,[s.createElementVNode("div",{class:s.normalizeClass(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-red-100":D.type==="danger","bg-green-100":D.type==="success","bg-indigo-100":D.type==="default","bg-yellow-100":D.type==="warning"}])},[s.withDirectives(s.createVNode(s.unref(Et),{class:"h-6 w-6 text-red-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="danger"]]),s.withDirectives(s.createVNode(s.unref(qt),{class:"h-6 w-6 text-green-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="success"]]),s.withDirectives(s.createVNode(s.unref(xt),{class:"h-6 w-6 text-yellow-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="warning"]]),s.withDirectives(s.createVNode(s.unref(Xa),{class:"h-6 w-6 text-indigo-600","aria-hidden":"true"},null,512),[[s.vShow,D.type==="default"]])],2),s.createElementVNode("div",Ks,[s.createVNode(s.unref(Se.DialogTitle),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(D.title),1)]),_:1}),s.createElementVNode("div",er,[s.renderSlot(D.$slots,"default")]),D.actions?(s.openBlock(),s.createElementBlock("div",tr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.actions,(R,Y)=>(s.openBlock(),s.createElementBlock("button",{key:Y,type:"button",class:"inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",onClick:U=>V(R.value)},s.toDisplayString(R.name),9,ir))),128))])):s.createCommentVNode("",!0)])])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),ar={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},sr={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},rr={class:"p-4"},or={class:"flex items-start"},nr={class:"flex-shrink-0 mt-0.5"},lr={class:"ml-3 w-0 flex-1 pt-0.5"},cr={class:"font-medium text-gray-900"},dr={class:"mt-1 text-sm text-gray-500"},hr={class:"ml-4 flex-shrink-0 flex"},Gi=s.defineComponent({__name:"uiNotification",props:{type:{default:"info"},title:{},message:{},fixed:{type:Boolean,default:!0},show:{type:Boolean,default:!1}},setup(_){const L=_,B=s.computed(()=>L.show);return(M,V)=>(s.openBlock(),s.createElementBlock("div",{"aria-live":"assertive",class:s.normalizeClass([{fixed:M.fixed},"inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])},[s.createElementVNode("div",ar,[s.createVNode(s.Transition,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[B.value?(s.openBlock(),s.createElementBlock("div",sr,[s.createElementVNode("div",rr,[s.createElementVNode("div",or,[s.createElementVNode("div",nr,[s.withDirectives(s.createVNode(s.unref(zi),{"aria-hidden":"true",class:"h-6 w-6 text-green-400"},null,512),[[s.vShow,M.type==="success"]]),s.withDirectives(s.createVNode(s.unref(Zt),{"aria-hidden":"true",class:"h-6 w-6 text-red-400"},null,512),[[s.vShow,M.type==="danger"]]),s.withDirectives(s.createVNode(s.unref(xt),{"aria-hidden":"true",class:"h-6 w-6 text-yellow-400"},null,512),[[s.vShow,M.type==="warning"]]),s.withDirectives(s.createVNode(s.unref(Yi),{"aria-hidden":"true",class:"h-6 w-6 text-indigo-600"},null,512),[[s.vShow,M.type==="info"]])]),s.createElementVNode("div",lr,[s.createElementVNode("p",cr,s.toDisplayString(M.title),1),s.createElementVNode("p",dr,s.toDisplayString(M.message),1)]),s.createElementVNode("div",hr,[s.createElementVNode("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",type:"button",onClick:V[0]||(V[0]=D=>M.$emit("closeNotification"))},[V[1]||(V[1]=s.createElementVNode("span",{class:"sr-only"},"Close",-1)),s.createVNode(s.unref(Et),{"aria-hidden":"true",class:"h-5 w-5"})])])])])])):s.createCommentVNode("",!0)]),_:1})])],2))}}),ur={key:0,role:"list",class:"divide-y divide-gray-100"},gr={class:"min-w-0"},pr={class:"flex items-start gap-x-3"},fr={class:"text-sm font-semibold leading-6 text-gray-900"},mr={class:"mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500"},xr={class:"truncate"},vr={class:"flex flex-none items-center gap-x-4"},br=["href"],yr={class:"sr-only"},wr={key:1,class:"divide-y divide-gray-100 animate-pulse"},ji=s.defineComponent({__name:"uiTaskList",props:{tasks:{},loading:{type:Boolean,default:!0}},setup(_){return(L,B)=>L.loading?(s.openBlock(),s.createElementBlock("ul",wr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tasks,M=>(s.openBlock(),s.createElementBlock("li",{key:M.id,class:"flex items-center justify-between gap-x-6 py-5"},B[0]||(B[0]=[s.createStaticVNode('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>',2)])))),128))])):(s.openBlock(),s.createElementBlock("ul",ur,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tasks,M=>(s.openBlock(),s.createElementBlock("li",{key:M.id,class:"flex items-center justify-between gap-x-6 py-5"},[s.createElementVNode("div",gr,[s.createElementVNode("div",pr,[s.createElementVNode("p",fr,s.toDisplayString(M.name),1),s.createElementVNode("p",{class:s.normalizeClass([{"text-green-700 bg-green-50 ring-green-600/20":M.status==="Complete","text-gray-600 bg-gray-50 ring-gray-500/10":M.status==="In progress","text-yellow-800 bg-yellow-50 ring-yellow-600/20":M.status==="Incomplete"},"rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"])},s.toDisplayString(M.statusLiteral),3)]),s.createElementVNode("div",mr,[s.createElementVNode("p",xr,s.toDisplayString(M.description),1)])]),s.createElementVNode("div",vr,[s.createElementVNode("a",{href:M.href,class:"hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"},[s.createTextVNode(s.toDisplayString(M.action),1),s.createElementVNode("span",yr,", "+s.toDisplayString(M.name),1)],8,br)])]))),128))]))}});var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ki(_){return _&&_.__esModule&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_}var Ui={exports:{}};(function(_,L){(function(B,M){_.exports=M()})(Pt,function(){var B=1e3,M=6e4,V=36e5,D="millisecond",A="second",R="minute",Y="hour",U="day",K="week",le="month",ye="quarter",H="year",q="date",pe="Invalid Date",ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ze=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(oe){var ee=["th","st","nd","rd"],ie=oe%100;return"["+oe+(ee[(ie-20)%10]||ee[ie]||ee[0])+"]"}},Ke=function(oe,ee,ie){var ue=String(oe);return!ue||ue.length>=ee?oe:""+Array(ee+1-ue.length).join(ie)+oe},F={s:Ke,z:function(oe){var ee=-oe.utcOffset(),ie=Math.abs(ee),ue=Math.floor(ie/60),de=ie%60;return(ee<=0?"+":"-")+Ke(ue,2,"0")+":"+Ke(de,2,"0")},m:function oe(ee,ie){if(ee.date()<ie.date())return-oe(ie,ee);var ue=12*(ie.year()-ee.year())+(ie.month()-ee.month()),de=ee.clone().add(ue,le),we=ie-de<0,me=ee.clone().add(ue+(we?-1:1),le);return+(-(ue+(ie-de)/(we?de-me:me-de))||0)},a:function(oe){return oe<0?Math.ceil(oe)||0:Math.floor(oe)},p:function(oe){return{M:le,y:H,w:K,d:U,D:q,h:Y,m:R,s:A,ms:D,Q:ye}[oe]||String(oe||"").toLowerCase().replace(/s$/,"")},u:function(oe){return oe===void 0}},Ye="en",De={};De[Ye]=fe;var j="$isDayjsObject",Le=function(oe){return oe instanceof Ce||!(!oe||!oe[j])},Ae=function oe(ee,ie,ue){var de;if(!ee)return Ye;if(typeof ee=="string"){var we=ee.toLowerCase();De[we]&&(de=we),ie&&(De[we]=ie,de=we);var me=ee.split("-");if(!de&&me.length>1)return oe(me[0])}else{var Me=ee.name;De[Me]=ee,de=Me}return!ue&&de&&(Ye=de),de||!ue&&Ye},Ie=function(oe,ee){if(Le(oe))return oe.clone();var ie=typeof ee=="object"?ee:{};return ie.date=oe,ie.args=arguments,new Ce(ie)},Q=F;Q.l=Ae,Q.i=Le,Q.w=function(oe,ee){return Ie(oe,{locale:ee.$L,utc:ee.$u,x:ee.$x,$offset:ee.$offset})};var Ce=function(){function oe(ie){this.$L=Ae(ie.locale,null,!0),this.parse(ie),this.$x=this.$x||ie.x||{},this[j]=!0}var ee=oe.prototype;return ee.parse=function(ie){this.$d=function(ue){var de=ue.date,we=ue.utc;if(de===null)return new Date(NaN);if(Q.u(de))return new Date;if(de instanceof Date)return new Date(de);if(typeof de=="string"&&!/Z$/i.test(de)){var me=de.match(ce);if(me){var Me=me[2]-1||0,Fe=(me[7]||"0").substring(0,3);return we?new Date(Date.UTC(me[1],Me,me[3]||1,me[4]||0,me[5]||0,me[6]||0,Fe)):new Date(me[1],Me,me[3]||1,me[4]||0,me[5]||0,me[6]||0,Fe)}}return new Date(de)}(ie),this.init()},ee.init=function(){var ie=this.$d;this.$y=ie.getFullYear(),this.$M=ie.getMonth(),this.$D=ie.getDate(),this.$W=ie.getDay(),this.$H=ie.getHours(),this.$m=ie.getMinutes(),this.$s=ie.getSeconds(),this.$ms=ie.getMilliseconds()},ee.$utils=function(){return Q},ee.isValid=function(){return this.$d.toString()!==pe},ee.isSame=function(ie,ue){var de=Ie(ie);return this.startOf(ue)<=de&&de<=this.endOf(ue)},ee.isAfter=function(ie,ue){return Ie(ie)<this.startOf(ue)},ee.isBefore=function(ie,ue){return this.endOf(ue)<Ie(ie)},ee.$g=function(ie,ue,de){return Q.u(ie)?this[ue]:this.set(de,ie)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(ie,ue){var de=this,we=!!Q.u(ue)||ue,me=Q.p(ie),Me=function(Qe,tt){var ot=Q.w(de.$u?Date.UTC(de.$y,tt,Qe):new Date(de.$y,tt,Qe),de);return we?ot:ot.endOf(U)},Fe=function(Qe,tt){return Q.w(de.toDate()[Qe].apply(de.toDate("s"),(we?[0,0,0,0]:[23,59,59,999]).slice(tt)),de)},$e=this.$W,je=this.$M,Te=this.$D,xe="set"+(this.$u?"UTC":"");switch(me){case H:return we?Me(1,0):Me(31,11);case le:return we?Me(1,je):Me(0,je+1);case K:var Re=this.$locale().weekStart||0,rt=($e<Re?$e+7:$e)-Re;return Me(we?Te-rt:Te+(6-rt),je);case U:case q:return Fe(xe+"Hours",0);case Y:return Fe(xe+"Minutes",1);case R:return Fe(xe+"Seconds",2);case A:return Fe(xe+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(ie){return this.startOf(ie,!1)},ee.$set=function(ie,ue){var de,we=Q.p(ie),me="set"+(this.$u?"UTC":""),Me=(de={},de[U]=me+"Date",de[q]=me+"Date",de[le]=me+"Month",de[H]=me+"FullYear",de[Y]=me+"Hours",de[R]=me+"Minutes",de[A]=me+"Seconds",de[D]=me+"Milliseconds",de)[we],Fe=we===U?this.$D+(ue-this.$W):ue;if(we===le||we===H){var $e=this.clone().set(q,1);$e.$d[Me](Fe),$e.init(),this.$d=$e.set(q,Math.min(this.$D,$e.daysInMonth())).$d}else Me&&this.$d[Me](Fe);return this.init(),this},ee.set=function(ie,ue){return this.clone().$set(ie,ue)},ee.get=function(ie){return this[Q.p(ie)]()},ee.add=function(ie,ue){var de,we=this;ie=Number(ie);var me=Q.p(ue),Me=function(je){var Te=Ie(we);return Q.w(Te.date(Te.date()+Math.round(je*ie)),we)};if(me===le)return this.set(le,this.$M+ie);if(me===H)return this.set(H,this.$y+ie);if(me===U)return Me(1);if(me===K)return Me(7);var Fe=(de={},de[R]=M,de[Y]=V,de[A]=B,de)[me]||1,$e=this.$d.getTime()+ie*Fe;return Q.w($e,this)},ee.subtract=function(ie,ue){return this.add(-1*ie,ue)},ee.format=function(ie){var ue=this,de=this.$locale();if(!this.isValid())return de.invalidDate||pe;var we=ie||"YYYY-MM-DDTHH:mm:ssZ",me=Q.z(this),Me=this.$H,Fe=this.$m,$e=this.$M,je=de.weekdays,Te=de.months,xe=de.meridiem,Re=function(tt,ot,nt,mt){return tt&&(tt[ot]||tt(ue,we))||nt[ot].slice(0,mt)},rt=function(tt){return Q.s(Me%12||12,tt,"0")},Qe=xe||function(tt,ot,nt){var mt=tt<12?"AM":"PM";return nt?mt.toLowerCase():mt};return we.replace(ze,function(tt,ot){return ot||function(nt){switch(nt){case"YY":return String(ue.$y).slice(-2);case"YYYY":return Q.s(ue.$y,4,"0");case"M":return $e+1;case"MM":return Q.s($e+1,2,"0");case"MMM":return Re(de.monthsShort,$e,Te,3);case"MMMM":return Re(Te,$e);case"D":return ue.$D;case"DD":return Q.s(ue.$D,2,"0");case"d":return String(ue.$W);case"dd":return Re(de.weekdaysMin,ue.$W,je,2);case"ddd":return Re(de.weekdaysShort,ue.$W,je,3);case"dddd":return je[ue.$W];case"H":return String(Me);case"HH":return Q.s(Me,2,"0");case"h":return rt(1);case"hh":return rt(2);case"a":return Qe(Me,Fe,!0);case"A":return Qe(Me,Fe,!1);case"m":return String(Fe);case"mm":return Q.s(Fe,2,"0");case"s":return String(ue.$s);case"ss":return Q.s(ue.$s,2,"0");case"SSS":return Q.s(ue.$ms,3,"0");case"Z":return me}return null}(tt)||me.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(ie,ue,de){var we,me=this,Me=Q.p(ue),Fe=Ie(ie),$e=(Fe.utcOffset()-this.utcOffset())*M,je=this-Fe,Te=function(){return Q.m(me,Fe)};switch(Me){case H:we=Te()/12;break;case le:we=Te();break;case ye:we=Te()/3;break;case K:we=(je-$e)/6048e5;break;case U:we=(je-$e)/864e5;break;case Y:we=je/V;break;case R:we=je/M;break;case A:we=je/B;break;default:we=je}return de?we:Q.a(we)},ee.daysInMonth=function(){return this.endOf(le).$D},ee.$locale=function(){return De[this.$L]},ee.locale=function(ie,ue){if(!ie)return this.$L;var de=this.clone(),we=Ae(ie,ue,!0);return we&&(de.$L=we),de},ee.clone=function(){return Q.w(this.$d,this)},ee.toDate=function(){return new Date(this.valueOf())},ee.toJSON=function(){return this.isValid()?this.toISOString():null},ee.toISOString=function(){return this.$d.toISOString()},ee.toString=function(){return this.$d.toUTCString()},oe}(),Oe=Ce.prototype;return Ie.prototype=Oe,[["$ms",D],["$s",A],["$m",R],["$H",Y],["$W",U],["$M",le],["$y",H],["$D",q]].forEach(function(oe){Oe[oe[1]]=function(ee){return this.$g(ee,oe[0],oe[1])}}),Ie.extend=function(oe,ee){return oe.$i||(oe(ee,Ce,Ie),oe.$i=!0),Ie},Ie.locale=Ae,Ie.isDayjs=Le,Ie.unix=function(oe){return Ie(1e3*oe)},Ie.en=De[Ye],Ie.Ls=De,Ie.p={},Ie})})(Ui);var Qt=Ui.exports;const it=ki(Qt);var kr={exports:{}};(function(_,L){(function(B,M){_.exports=M(Qt)})(Pt,function(B){function M(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var V=M(B),D={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(A){return A+"º"}};return V.default.locale(D,null,!0),D})})(kr);var Cr={exports:{}};(function(_,L){(function(B,M){_.exports=M(Qt)})(Pt,function(B){function M(Y){return Y&&typeof Y=="object"&&"default"in Y?Y:{default:Y}}var V=M(B),D={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function A(Y,U,K){var le=D[K];return Array.isArray(le)&&(le=le[U?0:1]),le.replace("%d",Y)}var R={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(Y){return Y+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:A,m:A,mm:A,h:A,hh:A,d:A,dd:A,M:A,MM:A,y:A,yy:A}};return V.default.locale(R,null,!0),R})})(Cr);var Sr={exports:{}};(function(_,L){(function(B,M){_.exports=M()})(Pt,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var M=["th","st","nd","rd"],V=B%100;return"["+B+(M[(V-20)%10]||M[V]||M[0])+"]"}}})})(Sr);var Ar={exports:{}};(function(_,L){(function(B,M){_.exports=M(Qt)})(Pt,function(B){function M(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var V=M(B),D={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(A){return""+A+(A===1?"er":"")}};return V.default.locale(D,null,!0),D})})(Ar);const Dt=(_,L)=>{const B=_.__vccOpts||_;for(const[M,V]of L)B[M]=V;return B},Er={name:"dateSelector",components:{ChevronLeftIcon:Ii,ChevronRightIcon:Xt},computed:{currentDate(){return it(this.selectedDate).locale("es").format("DD MMM. YYYY")}},props:{selectedDate:{type:Object,required:!0}},methods:{selectDate(_,L){let B;L==="previous"&&(_==="day"&&(B=it(this.selectedDate).subtract(1,"day")),_==="month"&&(B=it(this.selectedDate).subtract(1,"month")),_==="year"&&(B=it(this.selectedDate).subtract(1,"year"))),L==="next"&&(_==="day"&&(B=it(this.selectedDate).add(1,"day")),_==="month"&&(B=it(this.selectedDate).add(1,"month")),_==="year"&&(B=it(this.selectedDate).add(1,"year"))),this.$emit("dateSelected",B)}}},Nr={class:"dateSelector flex items-center text-white flex-row"},Br={class:"pagination flex items-center my-1 md:my-0"},Lr={class:"date mx-4 font-bold text-center text-indigo-600 select-none uppercase"},Mr={class:"pagination flex items-center my-1 sm:my-0"};function Vr(_,L,B,M,V,D){const A=s.resolveComponent("ChevronLeftIcon"),R=s.resolveComponent("ChevronRightIcon");return s.openBlock(),s.createElementBlock("div",Nr,[s.createElementVNode("div",Br,[s.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[0]||(L[0]=Y=>D.selectDate("year","previous"))},[s.createVNode(A,{class:"h-4"}),s.createVNode(A,{class:"h-4 -ml-3"}),s.createVNode(A,{class:"h-4 -ml-3"})]),s.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[1]||(L[1]=Y=>D.selectDate("month","previous"))},[s.createVNode(A,{class:"h-4"}),s.createVNode(A,{class:"h-4 -ml-3"})]),s.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[2]||(L[2]=Y=>D.selectDate("day","previous"))},[s.createVNode(A,{class:"h-4"})])]),s.createElementVNode("div",Lr,s.toDisplayString(D.currentDate),1),s.createElementVNode("div",Mr,[s.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[3]||(L[3]=Y=>D.selectDate("day","next"))},[s.createVNode(R,{class:"h-4"})]),s.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[4]||(L[4]=Y=>D.selectDate("month","next"))},[s.createVNode(R,{class:"h-4"}),s.createVNode(R,{class:"h-4 -ml-3"})]),s.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:L[5]||(L[5]=Y=>D.selectDate("year","next"))},[s.createVNode(R,{class:"h-4"}),s.createVNode(R,{class:"h-4 -ml-3"}),s.createVNode(R,{class:"h-4 -ml-3"})])])])}const Pr=Dt(Er,[["render",Vr]]),Dr={name:"SkeletonTable"},Tr={class:"px-4 sm:px-6 lg:px-8 animate-pulse"},zr={class:"flow-root"},Ir={class:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Yr={class:"inline-block min-w-full py-2 align-middle px-1"},Fr={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},Xr={class:"min-w-full divide-y divide-gray-300"},_r={class:"divide-y divide-gray-200 bg-white"};function Or(_,L,B,M,V,D){return s.openBlock(),s.createElementBlock("div",Tr,[s.createElementVNode("div",zr,[s.createElementVNode("div",Ir,[s.createElementVNode("div",Yr,[s.createElementVNode("div",Fr,[s.createElementVNode("table",Xr,[L[1]||(L[1]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),s.createElementVNode("th",{scope:"col",class:"relative py-3.5 pl-3 pr-4 sm:pr-6"},[s.createElementVNode("span",{class:"sr-only"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])])],-1)),s.createElementVNode("tbody",_r,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(10,A=>s.createElementVNode("tr",{key:A},L[0]||(L[0]=[s.createElementVNode("td",{class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),s.createElementVNode("td",{class:"relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"},[s.createElementVNode("a",{href:"#",class:"text-indigo-600 hover:text-indigo-900"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"}),s.createElementVNode("span",{class:"sr-only"},[s.createTextVNode(", {"),s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])],-1)]))),64))])])])])])])])}const qi=Dt(Dr,[["render",Or]]);var Zi={exports:{}};(function(_,L){(function(B,M){_.exports=M()})(Pt,function(){return function(B,M,V){M.prototype.isToday=function(){var D="YYYY-MM-DD",A=V();return this.format(D)===A.format(D)}}})})(Zi);var Rr=Zi.exports;const Hr=ki(Rr),Wr={name:"calendarDay",props:{day:Object},computed:{currentDay(){return it.extend(Hr),{dayName:it(this.day).locale("es").format("ddd"),day:it(this.day).locale("es").format("DD"),month:it(this.day).locale("es").format("MMM."),isWeekend:it(this.day).format("d")==6||it(this.day).format("d")==0,isToday:it(this.day).isToday()}}}},$r={class:"text-xs"},Gr={class:"font-bold text-lg"},jr={class:"text-xs font-medium"};function Ur(_,L,B,M,V,D){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day select-none text-center",{"bg-indigo-200 text-white":D.currentDay.isWeekend,"bg-[#0ff] text-white":D.currentDay.isToday}])},[s.createElementVNode("p",$r,s.toDisplayString(D.currentDay.dayName),1),s.createElementVNode("p",Gr,s.toDisplayString(D.currentDay.day),1),s.createElementVNode("p",jr,s.toDisplayString(D.currentDay.month),1)],2)}const qr=Dt(Wr,[["render",Ur]]),Zr={name:"dayPrice",props:{currency:String,price:Object,basePrice:Number,isBasePrice:{type:Boolean,default:!1}},computed:{currentDay(){return{isWeekend:it(this.price.date).format("d")==6||it(this.price.date).format("d")==0,price:this.price.price}}}},Jr={class:"priceDay"};function Qr(_,L,B,M,V,D){return s.openBlock(),s.createElementBlock("div",Jr,[s.createElementVNode("div",{class:s.normalizeClass([{"bg-indigo-200 text-white":D.currentDay.isWeekend,"bg-green-300 text-white":B.price.price>B.basePrice,"bg-yellow-300 text-white":B.price.price<B.basePrice},"select-none text-center rounded-lg p-1"])},s.toDisplayString(D.currentDay.price)+s.toDisplayString(B.currency),3)])}const Kr=Dt(Zr,[["render",Qr]]),eo={name:"uiPriceCalendar",data:()=>({today:new Date,date:new Date,selectedRooms:[],showBasePricesModal:!1,showDays:14}),props:{type:String,category:{type:Object,required:!0},rooms:{type:Array,required:!0},currency:Object,actions:Array,loading:{type:Boolean,default:!0},literals:{type:Object,required:!0}},components:{DateSelector:Pr,Day:qr,Price:Kr,uiButton:At,SkeletonTable:qi},computed:{days(){let _=[];for(let L=0;L<this.showDays;L++)_.push(it(this.date).add(L,"day"));return _},indeterminate(){return this.selectedRooms.length>0&&this.selectedRooms.length<this.rooms.length}},methods:{changeDate(_){it(_).isBefore(this.today)||(this.date=_,this.$emit("dateChanged",this.date))},getSelectionBasePrice(_){let L=this.category.selectionPrices.find(B=>it(B.date).isSame(_.date));return L?L.price:_.price},changeCategoryBulkPrices(){this.$emit("changeCategoryBulkPrices")},changeCategorySelectionPrice(_){this.$emit("changeCategorySelectionPrice",_)},changeCategoryUpgradePrice(_){this.$emit("changeCategoryUpgradePrice",_)},tableAction(_){this.$emit("tableAction",_)},changeRoomPrice(_){this.$emit("changeRoomPrice",_)}}},to={key:0,class:"px-4 sm:px-6 lg:px-8"},io={class:"flow-root"},ao={class:"overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},so={class:"inline-block min-w-full align-middle"},ro={class:"min-w-full text-sm"},oo={class:"bg-white"},no={colspan:"6",scope:"colgroup",class:"bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"},lo={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},co={key:0},ho={colspan:"6",class:"pl-4"},uo={key:1},go={colspan:"6",class:"pl-4"},po={key:2},fo={colspan:"6",class:"pl-4"},mo={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"},xo={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"},vo=["onClick"],bo={colspan:"2",scope:"colgroup",class:"relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"},yo=["checked","indeterminate"],wo={class:"pl-6"},ko={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},Co={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},So={colspan:"2",class:"relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},Ao={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},Eo=["value"],No={class:"pl-6"},Bo={colspan:"2",class:"pl-4"},Lo={colspan:"2",class:"pl-4"};function Mo(_,L,B,M,V,D){var le,ye;const A=s.resolveComponent("DateSelector"),R=s.resolveComponent("Day"),Y=s.resolveComponent("uiButton"),U=s.resolveComponent("Price"),K=s.resolveComponent("SkeletonTable");return B.loading?(s.openBlock(),s.createBlock(K,{key:1})):(s.openBlock(),s.createElementBlock("div",to,[s.createElementVNode("div",io,[s.createElementVNode("div",ao,[s.createElementVNode("div",so,[s.createElementVNode("table",ro,[s.createElementVNode("tbody",oo,[s.createElementVNode("tr",null,[s.createElementVNode("th",no,[s.createVNode(A,{selectedDate:_.date,onDateSelected:L[0]||(L[0]=H=>D.changeDate(H))},null,8,["selectedDate"])]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.days,(H,q)=>(s.openBlock(),s.createElementBlock("th",{scope:"col",key:q,class:"text-sm font-semibold text-gray-900 p-0"},[s.createVNode(R,{class:"border-l border-gray-200 px-6 py-3",day:H},null,8,["day"])]))),128))]),s.createElementVNode("tr",null,[s.createElementVNode("th",lo,[s.createElementVNode("span",null,s.toDisplayString(B.literals.category)+" "+s.toDisplayString(B.category.name),1),s.createVNode(Y,{loading:B.loading,class:"ml-4",size:"small",onClick:D.changeCategoryBulkPrices},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(B.literals.changeInBulk),1)]),_:1},8,["loading","onClick"])])]),B.type==="discounts"?(s.openBlock(),s.createElementBlock("tr",co,[s.createElementVNode("td",ho,s.toDisplayString(B.literals.pricesDiscount),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.category.selectionPrices,(H,q)=>(s.openBlock(),s.createElementBlock("td",{key:q,class:"p-0"},[s.createVNode(U,{onClick:pe=>D.changeCategorySelectionPrice(H),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:H,currency:B.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):s.createCommentVNode("",!0),B.type==="prices"?(s.openBlock(),s.createElementBlock("tr",uo,[s.createElementVNode("td",go,s.toDisplayString(B.literals.pricesSelection),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.category.selectionPrices,(H,q)=>(s.openBlock(),s.createElementBlock("td",{key:q,class:"p-0"},[s.createVNode(U,{onClick:pe=>D.changeCategorySelectionPrice(H),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:H,currency:B.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):s.createCommentVNode("",!0),B.type==="prices"?(s.openBlock(),s.createElementBlock("tr",po,[s.createElementVNode("td",fo,s.toDisplayString(B.literals.pricesUpgrade),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.category.upgradePrices,(H,q)=>(s.openBlock(),s.createElementBlock("td",{key:q,class:"p-0"},[s.createVNode(U,{onClick:pe=>D.changeCategoryUpgradePrice(H),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",price:H,currency:B.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):s.createCommentVNode("",!0),s.createElementVNode("tr",null,[s.createElementVNode("th",mo,[((le=_.selectedRooms)==null?void 0:le.length)>0&&((ye=B.actions)==null?void 0:ye.length)>0?(s.openBlock(),s.createElementBlock("div",xo,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.actions,(H,q)=>(s.openBlock(),s.createElementBlock("button",{onClick:pe=>D.tableAction({action:H.id,items:_.selectedRooms}),key:q,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},s.toDisplayString(H.name),9,vo))),128))])):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(B.literals.pricesSelection),1)])]),s.createElementVNode("tr",null,[s.createElementVNode("th",bo,[s.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:D.indeterminate||_.selectedRooms.length===B.rooms.length,indeterminate:D.indeterminate,onChange:L[1]||(L[1]=H=>_.selectedRooms=H.target.checked?B.rooms.map(q=>q.name):[])},null,40,yo),s.createElementVNode("span",wo,s.toDisplayString(B.literals.room),1)]),s.createElementVNode("th",ko,s.toDisplayString(B.literals.building),1),s.createElementVNode("th",Co,s.toDisplayString(B.literals.floor),1),L[3]||(L[3]=s.createElementVNode("th",{colspan:"14",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},null,-1))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.rooms,H=>(s.openBlock(),s.createElementBlock("tr",{key:H.name,class:s.normalizeClass([{"even:bg-gray-100":B.type==="prices","odd:bg-gray-100":B.type==="discounts"}])},[s.createElementVNode("td",So,[_.selectedRooms.includes(H.name)?(s.openBlock(),s.createElementBlock("div",Ao)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:H.name,"onUpdate:modelValue":L[2]||(L[2]=q=>_.selectedRooms=q)},null,8,Eo),[[s.vModelCheckbox,_.selectedRooms]]),s.createElementVNode("span",No,s.toDisplayString(H.name),1)]),s.createElementVNode("td",Bo,s.toDisplayString(H.building),1),s.createElementVNode("td",Lo,s.toDisplayString(H.floor),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(H.selectionPrices,(q,pe)=>(s.openBlock(),s.createElementBlock("td",{class:"p-0",key:pe},[s.createVNode(U,{onClick:ce=>D.changeRoomPrice(q),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",price:q,currency:B.currency.symbol,basePrice:D.getSelectionBasePrice(q)},null,8,["onClick","price","currency","basePrice"])]))),128))],2))),128))])])])])])]))}const Ji=Dt(eo,[["render",Mo]]);var vi={exports:{}};/*!
|
|
2
2
|
* ApexCharts v3.53.0
|
|
3
3
|
* (c) 2018-2024 ApexCharts
|
|
4
4
|
* Released under the MIT License.
|
package/dist/ui.es.js
CHANGED
|
@@ -12,7 +12,13 @@ const it = /* @__PURE__ */ Ge({
|
|
|
12
12
|
setup(H) {
|
|
13
13
|
return (T, P) => T.loading ? (D(), N("div", {
|
|
14
14
|
key: 1,
|
|
15
|
-
class: xe([{
|
|
15
|
+
class: xe([{
|
|
16
|
+
"h-4 w-4": T.size === "medium",
|
|
17
|
+
"h-6 w-6": T.size === "big",
|
|
18
|
+
"h-8 w-8": T.size === "bigger",
|
|
19
|
+
"h-12 w-12": T.size === "huge",
|
|
20
|
+
"h-20 w-20": T.size === "massive"
|
|
21
|
+
}, "animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])
|
|
16
22
|
}, null, 2)) : (D(), Fe(Ea(T.icon), {
|
|
17
23
|
key: 0,
|
|
18
24
|
class: xe({
|
|
@@ -553,7 +559,7 @@ const xs = {
|
|
|
553
559
|
class: "block text-sm font-medium text-gray-700 mb-1"
|
|
554
560
|
}, ms = { class: "py-1" }, bs = ["onClick"], vs = {
|
|
555
561
|
key: 1,
|
|
556
|
-
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md
|
|
562
|
+
class: "animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left"
|
|
557
563
|
}, Ki = /* @__PURE__ */ Ge({
|
|
558
564
|
__name: "uiDropdown",
|
|
559
565
|
props: {
|
|
@@ -674,7 +680,7 @@ const xs = {
|
|
|
674
680
|
};
|
|
675
681
|
return (C, $) => C.loading ? (D(), N("div", Ms, [
|
|
676
682
|
C.label !== void 0 ? (D(), N("div", Ls)) : Te("", !0),
|
|
677
|
-
$[3] || ($[3] = b("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md
|
|
683
|
+
$[3] || ($[3] = b("div", { class: "animate-pulse px-4 py-3.5 bg-gray-200 rounded-md inline-flex items-center relative text-left w-full" }, [
|
|
678
684
|
b("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28" })
|
|
679
685
|
], -1))
|
|
680
686
|
])) : (D(), N("div", ys, [
|
|
@@ -769,7 +775,7 @@ const xs = {
|
|
|
769
775
|
}, Is = {
|
|
770
776
|
key: 1,
|
|
771
777
|
class: "text-[10px] text-gray-500 uppercase"
|
|
772
|
-
}, Es = { class: "space-y-1 flex flex-col items-center justify-center" }, Ds = { class: "flex text-sm text-gray-600 flex
|
|
778
|
+
}, Es = { class: "space-y-1 flex flex-col items-center justify-center" }, Ds = { class: "flex text-sm text-gray-600 flex-col sm:flex-row text-center" }, Ys = ["for"], Xs = ["id", "name", "accept"], _s = { class: "pl-1" }, Fs = { class: "text-xs text-gray-500 pb-4" }, Ns = { class: "mt-2 text-xs flex flex-row items-center text-red-300" }, Os = {
|
|
773
779
|
key: 1,
|
|
774
780
|
class: "animate-pulse"
|
|
775
781
|
}, Rs = /* @__PURE__ */ Ge({
|
|
@@ -865,7 +871,7 @@ const xs = {
|
|
|
865
871
|
class: "mr-2",
|
|
866
872
|
loading: O.loading
|
|
867
873
|
}, null, 8, ["icon", "loading"]),
|
|
868
|
-
at(Z(O.error), 1)
|
|
874
|
+
at(" " + Z(O.error), 1)
|
|
869
875
|
], 512), [
|
|
870
876
|
[qe, O.error]
|
|
871
877
|
])
|
|
@@ -1017,7 +1023,7 @@ const xs = {
|
|
|
1017
1023
|
emits: ["tagEvent"],
|
|
1018
1024
|
setup(H, { emit: T }) {
|
|
1019
1025
|
const P = T, z = H, I = () => {
|
|
1020
|
-
z.event
|
|
1026
|
+
z.event != null && P("tagEvent", z.event);
|
|
1021
1027
|
};
|
|
1022
1028
|
return (Y, C) => Y.loading ? (D(), N("div", Gs, C[0] || (C[0] = [
|
|
1023
1029
|
b("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12" }, null, -1)
|
|
@@ -1059,7 +1065,7 @@ const xs = {
|
|
|
1059
1065
|
label: {},
|
|
1060
1066
|
placeholder: { default: "..." },
|
|
1061
1067
|
value: {},
|
|
1062
|
-
color: {},
|
|
1068
|
+
color: { default: "gray" },
|
|
1063
1069
|
disabled: { type: Boolean, default: !1 },
|
|
1064
1070
|
error: {},
|
|
1065
1071
|
loading: { type: Boolean, default: !0 },
|
|
@@ -1118,7 +1124,7 @@ const xs = {
|
|
|
1118
1124
|
class: "mr-2",
|
|
1119
1125
|
loading: !1
|
|
1120
1126
|
}, null, 8, ["icon"]),
|
|
1121
|
-
at(Z(C.error), 1)
|
|
1127
|
+
at(" " + Z(C.error), 1)
|
|
1122
1128
|
], 2), [
|
|
1123
1129
|
[qe, C.error]
|
|
1124
1130
|
])
|
|
@@ -1167,7 +1173,7 @@ const xs = {
|
|
|
1167
1173
|
class: xe([
|
|
1168
1174
|
P.value ? "translate-x-5" : "translate-x-0",
|
|
1169
1175
|
z.disabled ? "bg-gray-300" : "",
|
|
1170
|
-
"pointer-events-none inline-block h-5 w-5 transform rounded-full
|
|
1176
|
+
"pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"
|
|
1171
1177
|
])
|
|
1172
1178
|
}, null, 2)
|
|
1173
1179
|
]),
|