From f05d29af815d808936c8f9cf21aff5c215d6edeb Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 10 Feb 2025 15:35:37 -0800 Subject: [PATCH 01/11] adding submit loading prop --- src/plugin/VStepperForm.vue | 1 + src/plugin/types/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/plugin/VStepperForm.vue b/src/plugin/VStepperForm.vue index c54608b..3f0114a 100755 --- a/src/plugin/VStepperForm.vue +++ b/src/plugin/VStepperForm.vue @@ -134,6 +134,7 @@ :color="settings.color" data-cy="vsf-submit-button" :disabled="fieldsHaveErrors" + :loading="submitLoading" :size="navButtonSize" type="submit" :variant="navButtonVariant" diff --git a/src/plugin/types/index.ts b/src/plugin/types/index.ts index 2ea02e1..6119841 100755 --- a/src/plugin/types/index.ts +++ b/src/plugin/types/index.ts @@ -187,6 +187,7 @@ export interface Props extends /* @vue-ignore */ VStepperProps, VStepperWindowIt keepValuesOnUnmount?: boolean, navButtonSize?: VBtn['size']; navButtonVariant?: VBtn['variant']; + submitLoading?: boolean, summaryColumns?: ResponsiveColumns; title?: string; tooltipLocation?: VTooltip['location']; From b75289a15288bafdc43a9b96395ffc62d8025fcd Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 10 Feb 2025 16:39:59 -0800 Subject: [PATCH 02/11] fixing pages to be reactive --- src/plugin/VStepperForm.vue | 13 ++-- .../fields/CommonField/CommonField.vue | 28 +++---- .../fields/VSFButtonField/VSFButtonField.vue | 78 +++++++++---------- .../fields/VSFCheckbox/VSFCheckbox.vue | 50 ++++++------ .../components/fields/VSFCustom/VSFCustom.vue | 16 ++-- .../components/fields/VSFRadio/VSFRadio.vue | 42 +++++----- .../components/fields/VSFSwitch/VSFSwitch.vue | 24 +++--- .../components/shared/PageContainer.vue | 7 +- 8 files changed, 129 insertions(+), 129 deletions(-) diff --git a/src/plugin/VStepperForm.vue b/src/plugin/VStepperForm.vue index 3f0114a..034131e 100755 --- a/src/plugin/VStepperForm.vue +++ b/src/plugin/VStepperForm.vue @@ -207,9 +207,8 @@ const injectedOptions = inject(pluginOptionsInjectionKey)!; // -------------------------------------------------- Props // const props = withDefaults(defineProps(), AllProps); let stepperProps: Settings = reactive(useDeepMerge(attrs, injectedOptions, props)); -const { direction, jumpAhead, title, width } = toRefs(props); -const pages = reactive(props.pages); -const originalPages = JSON.parse(JSON.stringify(pages)); +const { direction, jumpAhead, pages, title, width } = toRefs(props); +const originalPages = JSON.parse(JSON.stringify(pages.value)); const settings: Ref = ref(useBuildSettings(stepperProps)); @@ -233,7 +232,7 @@ provide>('settings', settings); const allFieldsArray: Ref = ref([]); -Object.values(pages).forEach((p: Page) => { +Object.values(pages.value).forEach((p: Page) => { if (p.fields) { Object.values(p.fields).forEach((field: Field) => { allFieldsArray.value.push(field); @@ -610,7 +609,7 @@ function callbacks() { // ------------------------ Conditional "when" callbacks // const computedPages = computed(() => { // const localPages = JSON.parse(JSON.stringify(pages)); - Object.values(pages).forEach((page: Page, pageIdx: number) => { + Object.values(pages.value).forEach((page: Page, pageIdx: number) => { const localPage = page; localPage.visible = true; @@ -623,11 +622,11 @@ const computedPages = computed(() => { } }); - return pages.filter((p: Page) => p.visible); + return pages.value.filter((p: Page) => p.visible); }); function whenCallback(): void { - Object.values(pages).forEach((page: Page, pageIdx: number) => { + Object.values(pages.value).forEach((page: Page, pageIdx: number) => { if (page.fields) { Object.values(page.fields).forEach((field: Field, fieldIdx) => { diff --git a/src/plugin/components/fields/CommonField/CommonField.vue b/src/plugin/components/fields/CommonField/CommonField.vue index c62b659..fd3d08b 100644 --- a/src/plugin/components/fields/CommonField/CommonField.vue +++ b/src/plugin/components/fields/CommonField/CommonField.vue @@ -34,18 +34,18 @@ const emit = defineEmits(['validate']); const modelValue = defineModel(); const props = defineProps(); -const { field } = props; +const { field } = toRefs(props); const settings = inject>('settings')!; const fieldRequired = computed(() => { - return field.required || false; + return field.value.required || false; }); -const fieldValidateOn = computed(() => field?.validateOn ?? settings.value.validateOn); +const fieldValidateOn = computed(() => field.value?.validateOn ?? settings.value.validateOn); const originalValue = modelValue.value; const { errorMessage, setValue, validate, value } = useField( - field.name, + field.value.name, undefined, { initialValue: modelValue.value, @@ -69,24 +69,24 @@ async function onActions(action: ValidateAction): Promise { await useOnActions({ action, emit, - field, + field: field.value, settingsValidateOn: settings.value.validateOn, validate, }); } -const fieldItems = computed(() => field?.items ? field.items as unknown : undefined); +const fieldItems = computed(() => field.value?.items ? field.value.items as unknown : undefined); const fieldType = computed(() => { - if (field.type === 'color' || field.type === 'date') { + if (field.value.type === 'color' || field.value.type === 'date') { return 'text'; } - return field.type; + return field.value.type; }); const hasErrors = computed(() => { - let err = field?.error; + let err = field.value?.error; - err = field?.errorMessages ? field.errorMessages.length > 0 : err; + err = field.value?.errorMessages ? field.value.errorMessages.length > 0 : err; return err; }); @@ -94,11 +94,11 @@ const hasErrors = computed(() => { // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ ...field, - color: field.color || settings.value.color, - density: field.density || settings.value.density, - hideDetails: field.hideDetails || settings.value.hideDetails, + color: field.value.color || settings.value.color, + density: field.value.density || settings.value.density, + hideDetails: field.value.hideDetails || settings.value.hideDetails, type: fieldType.value, - variant: field.variant || settings.value.variant, + variant: field.value.variant || settings.value.variant, })); const boundSettings = computed(() => useBindingSettings(bindSettings.value as Partial)); diff --git a/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue b/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue index a4531ff..580e171 100644 --- a/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue +++ b/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue @@ -99,21 +99,21 @@ const emit = defineEmits(['validate']); const modelValue = defineModel(); const props = defineProps(); -const { field } = props; +const { field } = toRefs(props); const settings = inject>('settings')!; const fieldRequired = computed(() => { - return field.required || false; + return field.value.required || false; }); -const fieldValidateOn = computed(() => field?.validateOn ?? settings.value?.validateOn); +const fieldValidateOn = computed(() => field.value?.validateOn ?? settings.value?.validateOn); const originalValue = modelValue.value; const { errorMessage, handleChange, setValue, validate, value } = useField( - field.name, + field.value.name, undefined, { - initialValue: field?.multiple ? [] : null, + initialValue: field.value?.multiple ? [] : null, validateOnBlur: fieldValidateOn.value === 'blur', validateOnChange: fieldValidateOn.value === 'change', validateOnInput: fieldValidateOn.value === 'input', @@ -138,10 +138,10 @@ async function onActions(action: ValidateAction, val?: string | number): Promise return; } - if (!field?.disabled && value.value) { + if (!field.value?.disabled && value.value) { let updatedValue: string | string[]; - if (field?.multiple) { + if (field.value?.multiple) { const localModelValue = Array.isArray(value.value) ? value.value.slice() : []; const valStr = String(val); @@ -169,7 +169,7 @@ async function onActions(action: ValidateAction, val?: string | number): Promise await useOnActions({ action, emit, - field, + field: field.value, settingsValidateOn: settings.value?.validateOn, validate, }).then(() => { @@ -184,10 +184,10 @@ async function onActions(action: ValidateAction, val?: string | number): Promise // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ ...field, - border: field?.border ? `${field?.color} ${field?.border}` : undefined, - color: field.color || settings.value?.color, - density: field?.density ?? settings.value?.density as VBtn['density'], - hideDetails: field.hideDetails || settings.value?.hideDetails, + border: field.value?.border ? `${field.value?.color} ${field.value?.border}` : undefined, + color: field.value.color || settings.value?.color, + density: field.value?.density ?? settings.value?.density as VBtn['density'], + hideDetails: field.value.hideDetails || settings.value?.hideDetails, multiple: undefined, })); @@ -215,7 +215,7 @@ function getId(option: { id?: string; }, key: string | number) { return option.id; } - return field?.id ? `${field?.id}-${key}` : undefined; + return field.value?.id ? `${field.value?.id}-${key}` : undefined; } @@ -230,20 +230,20 @@ const densityValues = { oversized: '72px', }; -const fieldDensity = computed(() => (field?.density ?? settings.value?.density) as VBtn['density']); +const fieldDensity = computed(() => (field.value?.density ?? settings.value?.density) as VBtn['density']); function getDensityValue(): string { return fieldDensity.value ? densityValues[fieldDensity.value] : densityValues['default']; } function getMinWidth(option: Option): string | number | undefined { - const minWidth = option?.minWidth ?? field?.minWidth; + const minWidth = option?.minWidth ?? field.value?.minWidth; if (minWidth != null) { return minWidth as string; } - if (option?.icon || field?.icon) { + if (option?.icon || field.value?.icon) { return getDensityValue(); } @@ -251,13 +251,13 @@ function getMinWidth(option: Option): string | number | undefined { } function getMaxWidth(option: Option): string | number | undefined { - const maxWidth = option?.maxWidth ?? field?.maxWidth; + const maxWidth = option?.maxWidth ?? field.value?.maxWidth; if (maxWidth != null) { return maxWidth as string; } - if (option?.icon || field?.icon) { + if (option?.icon || field.value?.icon) { return getDensityValue(); } @@ -265,13 +265,13 @@ function getMaxWidth(option: Option): string | number | undefined { } function getMinHeight(option: Option): string | number | undefined { - const minHeight = option?.minHeight ?? field?.minHeight; + const minHeight = option?.minHeight ?? field.value?.minHeight; if (minHeight != null) { return minHeight as string; } - if (option?.icon || field?.icon) { + if (option?.icon || field.value?.icon) { return getDensityValue(); } @@ -279,7 +279,7 @@ function getMinHeight(option: Option): string | number | undefined { } function getMaxHeight(option: Option): string | number | undefined { - const maxHeight = option?.maxHeight ?? field?.maxHeight; + const maxHeight = option?.maxHeight ?? field.value?.maxHeight; if (maxHeight != null) { return maxHeight as string; @@ -289,7 +289,7 @@ function getMaxHeight(option: Option): string | number | undefined { } function getWidth(option: Option): string | number | undefined { - const width = option?.width ?? field?.width; + const width = option?.width ?? field.value?.width; if (width != null) { return width as string; @@ -303,7 +303,7 @@ function getWidth(option: Option): string | number | undefined { } function getHeight(option: Option): string | number | undefined { - const height = option?.height ?? field?.height; + const height = option?.height ?? field.value?.height; if (height != null) { return height as string; @@ -321,7 +321,7 @@ const isActive = (val: string | number): boolean | undefined => { }; // ------------------------- Variants // -const fieldVariant = ref(field?.variant); +const fieldVariant = ref(field.value?.variant); function getVariant(val: string | number): VSFButtonFieldProps['field']['variant'] { if (isActive(val)) { @@ -338,11 +338,11 @@ function activeMessages(errorMsg: string | string[]): boolean { return true; } - if (field.hint && (field.persistentHint || isFocused.value)) { + if (field.value.hint && (field.value.persistentHint || isFocused.value)) { return true; } - if (field.messages) { + if (field.value.messages) { return true; } @@ -354,18 +354,18 @@ function fieldMessages(errorMsg?: string | string[]): string | string[] { return errorMsg as string[]; } - if (field.hint && (field.persistentHint || isFocused.value)) { - return field.hint; + if (field.value.hint && (field.value.persistentHint || isFocused.value)) { + return field.value.hint; } - if (field.messages) { - return field.messages; + if (field.value.messages) { + return field.value.messages; } return ''; } -const hasMessages = computed(() => field.messages && field.messages.length > 0); +const hasMessages = computed(() => field.value.messages && field.value.messages.length > 0); const hasDetails = computed(() => { return !bindSettings.value.hideDetails || ( @@ -375,7 +375,7 @@ const hasDetails = computed(() => { // -------------------------------------------------- Styles // -const gap = shallowRef(field.gap ?? 2); +const gap = shallowRef(field.value.gap ?? 2); const itemGroupStyle = computed(() => { if (containsSizeUnit(gap.value)) { @@ -394,21 +394,21 @@ const buttontextcolor = ref('rgb(var(--v-theme-on-surface))'); // -------------------------------------------------- Classes // const itemGroupClass = computed(() => { return { - [`align-${field?.align}`]: field?.align != null && field?.block, - [`justify-${field?.align}`]: field?.align != null && !field?.block, + [`align-${field.value?.align}`]: field.value?.align != null && field.value?.block, + [`justify-${field.value?.align}`]: field.value?.align != null && !field.value?.block, 'd-flex': true, - 'flex-column': field?.block, + 'flex-column': field.value?.block, [`ga-${gap.value}`]: !containsSizeUnit(gap.value), }; }); const buttonFieldContainerClass = computed(() => { return { - 'd-flex': field?.align, - 'flex-column': field?.align, + 'd-flex': field.value?.align, + 'flex-column': field.value?.align, 'v-input--error': errorMessage ? errorMessage?.length > 0 : false, 'vsf-button-field__container': true, - [`align-${field?.align}`]: field?.align, + [`align-${field.value?.align}`]: field.value?.align, }; }); @@ -427,7 +427,7 @@ const buttonClass = computed(() => { const buttonClassAdditional = (option: Option) => { return { [`${option?.class}`]: true, - [`${field.selectedClass}`]: isActive(option.value) && field.selectedClass != null, + [`${field.value.selectedClass}`]: isActive(option.value) && field.value.selectedClass != null, }; }; diff --git a/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue b/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue index 4ab7c7b..d783a2e 100644 --- a/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue +++ b/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue @@ -109,19 +109,19 @@ const emit = defineEmits(['validate']); const modelValue = defineModel(); const props = defineProps(); -const { field } = props; +const { field } = toRefs(props); const settings = inject>('settings')!; -const fieldDensity = computed(() => (field?.density ?? settings.value?.density) as VCheckbox['density']); +const fieldDensity = computed(() => (field.value?.density ?? settings.value?.density) as VCheckbox['density']); const fieldRequired = computed(() => { - return field.required || false; + return field.value.required || false; }); -const fieldValidateOn = computed(() => field?.validateOn ?? settings.value.validateOn); +const fieldValidateOn = computed(() => field.value?.validateOn ?? settings.value.validateOn); const originalValue = modelValue.value; const { errorMessage, setValue, validate, value } = useField( - field.name, + field.value.name, undefined, { initialValue: modelValue.value, @@ -141,7 +141,7 @@ onUnmounted(() => { // ------------------------- Validate On Actions // -const isValidating = ref(field?.disabled as boolean); +const isValidating = ref(field.value?.disabled as boolean); async function onActions(action: ValidateAction): Promise { if (!isValidating.value) { @@ -150,9 +150,9 @@ async function onActions(action: ValidateAction): Promise { modelValue.value = value.value; await useOnActions({ - action: field?.autoPage ? 'click' : action, + action: field.value?.autoPage ? 'click' : action, emit, - field, + field: field.value, settingsValidateOn: settings.value.validateOn, validate, }).then(() => { @@ -165,11 +165,11 @@ async function onActions(action: ValidateAction): Promise { // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ ...field, - color: field.color || settings.value.color, - density: field.density || settings.value.density, - falseValue: field.falseValue || undefined, - hideDetails: field.hideDetails || settings.value.hideDetails, - trueValue: field.trueValue || true, + color: field.value.color || settings.value.color, + density: field.value.density || settings.value.density, + falseValue: field.value.falseValue || undefined, + hideDetails: field.value.hideDetails || settings.value.hideDetails, + trueValue: field.value.trueValue || true, })); const boundSettings = computed(() => useBindingSettings(bindSettings.value as Partial, [ @@ -189,11 +189,11 @@ function activeMessages(errorMessage: string | string[]): boolean { return true; } - if (field.hint && (field.persistentHint || isFocused.value)) { + if (field.value.hint && (field.value.persistentHint || isFocused.value)) { return true; } - if (field.messages) { + if (field.value.messages) { return true; } @@ -205,18 +205,18 @@ function fieldMessages(errorMessage: string | string[]) { return errorMessage; } - if (field.hint && (field.persistentHint || isFocused.value)) { - return field.hint; + if (field.value.hint && (field.value.persistentHint || isFocused.value)) { + return field.value.hint; } - if (field.messages) { - return field.messages; + if (field.value.messages) { + return field.value.messages; } return ''; } -const hasMessages = computed(() => field.messages && field.messages.length > 0); +const hasMessages = computed(() => field.value.messages && field.value.messages.length > 0); const hasDetails = computed(() => { return !bindSettings.value.hideDetails || ( @@ -227,7 +227,7 @@ const hasDetails = computed(() => { // -------------------------------------------------- Styles // const inputControlContainerStyle = computed(() => { - const useInlineSpacing = field.labelPositionLeft; + const useInlineSpacing = field.value.labelPositionLeft; const styles = { 'flex-direction': useInlineSpacing ? 'row' : 'column', @@ -239,15 +239,15 @@ const inputControlContainerStyle = computed(() => { // -------------------------------------------------- Inline Checkboxes // const checkboxContainerStyle = computed(() => ({ - 'display': field.inline ? 'flex' : undefined, + 'display': field.value.inline ? 'flex' : undefined, })); const checkboxStyle = computed(() => { - const useInlineSpacing = field.inline && field.inlineSpacing; + const useInlineSpacing = field.value.inline && field.value.inlineSpacing; const marginRight = '10px'; const styles = { - 'margin-right': useInlineSpacing ? field.inlineSpacing : marginRight, + 'margin-right': useInlineSpacing ? field.value.inlineSpacing : marginRight, }; return styles as CSSProperties; @@ -255,7 +255,7 @@ const checkboxStyle = computed(() => { const controlGroupClasses = computed(() => ({ 'v-input--error': errorMessage ? errorMessage?.length > 0 : false, - 'v-selection-control-group': field.inline, + 'v-selection-control-group': field.value.inline, })); diff --git a/src/plugin/components/fields/VSFCustom/VSFCustom.vue b/src/plugin/components/fields/VSFCustom/VSFCustom.vue index 25cc95b..b3a2e31 100644 --- a/src/plugin/components/fields/VSFCustom/VSFCustom.vue +++ b/src/plugin/components/fields/VSFCustom/VSFCustom.vue @@ -42,15 +42,15 @@ const emit = defineEmits(['validate']); const modelValue = defineModel(); const props = defineProps(); -const { field } = props; +const { field } = toRefs(props); const settings = inject>('settings')!; const FieldLabelComponent = toRaw(FieldLabel); -const fieldValidateOn = computed(() => field?.validateOn ?? settings.value.validateOn); +const fieldValidateOn = computed(() => field.value?.validateOn ?? settings.value.validateOn); const $useField = useField( - field.name, + field.value.name, undefined, { initialValue: modelValue.value, @@ -67,7 +67,7 @@ async function onActions(action: ValidateAction): Promise { await useOnActions({ action, emit, - field, + field: field.value, settingsValidateOn: settings.value.validateOn, validate: $useField.validate, }); @@ -96,15 +96,15 @@ const useFieldBoundSettings = computed(() => { const bindSettings = computed(() => ({ ...field, - color: field.color || settings.value.color, - density: field.density || settings.value.density, + color: field.value.color || settings.value.color, + density: field.value.density || settings.value.density, })); const boundSettings = computed(() => { return { ...useBindingSettings(bindSettings.value as Partial), - options: field.options, - required: field.required, + options: field.value.options, + required: field.value.required, }; }); diff --git a/src/plugin/components/fields/VSFRadio/VSFRadio.vue b/src/plugin/components/fields/VSFRadio/VSFRadio.vue index 464ea39..25c86aa 100644 --- a/src/plugin/components/fields/VSFRadio/VSFRadio.vue +++ b/src/plugin/components/fields/VSFRadio/VSFRadio.vue @@ -90,19 +90,19 @@ const emit = defineEmits(['validate']); const modelValue = defineModel(); const props = defineProps(); -const { field } = props; +const { field } = toRefs(props); const settings = inject>('settings')!; -const fieldDensity = computed(() => (field?.density ?? settings.value?.density) as VRadio['density']); +const fieldDensity = computed(() => (field.value?.density ?? settings.value?.density) as VRadio['density']); const fieldRequired = computed(() => { - return field.required || false; + return field.value.required || false; }); -const fieldValidateOn = computed(() => field?.validateOn ?? settings.value.validateOn); +const fieldValidateOn = computed(() => field.value?.validateOn ?? settings.value.validateOn); const originalValue = modelValue.value; const { errorMessage, setValue, validate, value } = useField( - field.name, + field.value.name, undefined, { initialValue: modelValue.value, @@ -122,7 +122,7 @@ onUnmounted(() => { // ------------------------- Validate On Actions // -const isValidating = ref(field?.disabled as boolean); +const isValidating = ref(field.value?.disabled as boolean); async function onActions(action: ValidateAction, val?: string | number): Promise { if (!isValidating.value) { @@ -130,7 +130,7 @@ async function onActions(action: ValidateAction, val?: string | number): Promise let updatedValue: string | string[]; - if (field?.multiple) { + if (field.value?.multiple) { const localModelValue = Array.isArray(value.value) ? value.value.slice() : []; const valStr = String(val); @@ -151,9 +151,9 @@ async function onActions(action: ValidateAction, val?: string | number): Promise modelValue.value = updatedValue; await useOnActions({ - action: field?.autoPage ? 'click' : action, + action: field.value?.autoPage ? 'click' : action, emit, - field, + field: field.value, settingsValidateOn: settings.value.validateOn, validate, }).then(() => { @@ -164,9 +164,9 @@ async function onActions(action: ValidateAction, val?: string | number): Promise const hasErrors = computed(() => { - let err = field?.error; + let err = field.value?.error; - err = field?.errorMessages ? field.errorMessages.length > 0 : err; + err = field.value?.errorMessages ? field.value.errorMessages.length > 0 : err; return err; }); @@ -174,11 +174,11 @@ const hasErrors = computed(() => { // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ ...field, - color: field.color || settings.value.color, - density: field.density || settings.value.density, - falseValue: field.falseValue || false, - hideDetails: field.hideDetails || settings.value.hideDetails, - trueValue: field.trueValue || true, + color: field.value.color || settings.value.color, + density: field.value.density || settings.value.density, + falseValue: field.value.falseValue || false, + hideDetails: field.value.hideDetails || settings.value.hideDetails, + trueValue: field.value.trueValue || true, })); const boundSettings = computed(() => useBindingSettings(bindSettings.value as Partial)); @@ -187,14 +187,14 @@ const boundSettings = computed(() => useBindingSettings(bindSettings.value as Pa // Styles // const fieldContainerStyle = computed(() => { const styles = { - 'width': field?.minWidth ?? field?.width ?? undefined, + 'width': field.value?.minWidth ?? field.value?.width ?? undefined, }; return styles as CSSProperties; }); const inputControlContainerStyle = computed(() => { - const useInlineSpacing = field.labelPositionLeft; + const useInlineSpacing = field.value.labelPositionLeft; const styles = { 'flex-direction': useInlineSpacing ? 'row' : 'column', @@ -206,15 +206,15 @@ const inputControlContainerStyle = computed(() => { // Inline Radios // const radioContainerStyle = computed(() => ({ - 'display': field.inline ? 'flex' : undefined, + 'display': field.value.inline ? 'flex' : undefined, })); const radioStyle = computed(() => { - const useInlineSpacing = field.inline && field.inlineSpacing; + const useInlineSpacing = field.value.inline && field.value.inlineSpacing; const marginRight = '10px'; const styles = { - 'margin-right': useInlineSpacing ? field.inlineSpacing : marginRight, + 'margin-right': useInlineSpacing ? field.value.inlineSpacing : marginRight, }; return styles as CSSProperties; diff --git a/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue b/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue index c58757e..736c615 100644 --- a/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue +++ b/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue @@ -49,14 +49,14 @@ const emit = defineEmits(['validate']); const modelValue = defineModel(); const props = defineProps(); -const { field } = props; +const { field } = toRefs(props); const settings = inject>('settings')!; -const fieldDensity = computed(() => (field?.density ?? settings.value?.density) as VSwitch['density']); +const fieldDensity = computed(() => (field.value?.density ?? settings.value?.density) as VSwitch['density']); const fieldRequired = computed(() => { - return field.required || false; + return field.value.required || false; }); -const fieldValidateOn = computed(() => field?.validateOn ?? settings.value.validateOn); +const fieldValidateOn = computed(() => field.value?.validateOn ?? settings.value.validateOn); const originalValue = modelValue.value; onUnmounted(() => { @@ -67,16 +67,16 @@ onUnmounted(() => { // ------------------------- Validate On Actions // -const isValidating = ref(field?.disabled as boolean); +const isValidating = ref(field.value?.disabled as boolean); async function onActions(validate: ValidateFieldResult, action: ValidateAction): Promise { if (!isValidating.value) { isValidating.value = true; await useOnActions({ - action: field?.autoPage ? 'click' : action, + action: field.value?.autoPage ? 'click' : action, emit, - field, + field: field.value, settingsValidateOn: settings.value.validateOn, validate, }).then(() => { @@ -89,11 +89,11 @@ async function onActions(validate: ValidateFieldResult, action: ValidateAction): // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ ...field, - color: field.color || settings.value.color, - density: field.density || settings.value.density, - falseValue: field.falseValue || false, - hideDetails: field.hideDetails || settings.value.hideDetails, - trueValue: field.trueValue || true, + color: field.value.color || settings.value.color, + density: field.value.density || settings.value.density, + falseValue: field.value.falseValue || false, + hideDetails: field.value.hideDetails || settings.value.hideDetails, + trueValue: field.value.trueValue || true, })); const boundSettings = computed(() => useBindingSettings(bindSettings.value as Partial)); diff --git a/src/plugin/components/shared/PageContainer.vue b/src/plugin/components/shared/PageContainer.vue index 357011f..d27a7e5 100644 --- a/src/plugin/components/shared/PageContainer.vue +++ b/src/plugin/components/shared/PageContainer.vue @@ -137,7 +137,8 @@ defineOptions({ }); const emit = defineEmits(['validate']); const slots = defineSlots(); -const { fieldColumns, page } = defineProps(); +const props = defineProps(); +const { fieldColumns, page } = toRefs(props); const textFields = [ @@ -177,7 +178,7 @@ function getComponent(fieldType: string): Component | null { const modelValue = defineModel(); -const pageColumns = computed(() => page?.pageFieldColumns ?? {}); +const pageColumns = computed(() => page.value?.pageFieldColumns ?? {}); // -------------------------------------------------- Columns // @@ -188,7 +189,7 @@ const columnsMerged = ref({ sm: undefined, xl: undefined, }, - ...fieldColumns, + ...fieldColumns.value, ...pageColumns.value, }); From 6a513870affe6c6998594d2e1a65bb8c7c95dd52 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Tue, 11 Feb 2025 12:24:09 -0800 Subject: [PATCH 03/11] fixing reactivity so the user can update the internal values though the modelValue --- src/plugin/VStepperForm.vue | 21 ++++++++++++++----- .../fields/CommonField/CommonField.vue | 2 +- .../fields/VSFButtonField/VSFButtonField.vue | 2 +- .../fields/VSFCheckbox/VSFCheckbox.vue | 2 +- .../components/fields/VSFCustom/VSFCustom.vue | 2 +- .../components/fields/VSFRadio/VSFRadio.vue | 2 +- .../components/fields/VSFSwitch/VSFSwitch.vue | 2 +- 7 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/plugin/VStepperForm.vue b/src/plugin/VStepperForm.vue index 034131e..cf3fca7 100755 --- a/src/plugin/VStepperForm.vue +++ b/src/plugin/VStepperForm.vue @@ -37,6 +37,7 @@ // import { VStepper } from 'vuetify/components'; // import { VStepperVertical } from 'vuetify/labs/VStepperVertical'; -import { watchDeep } from '@vueuse/core'; import { useForm } from 'vee-validate'; import { useDisplay } from 'vuetify'; import type { @@ -316,6 +316,10 @@ const prevButtonDisabled = computed(() => { return true; } + if (props.submitLoading) { + return true; + } + // if (currentPage <= firstNonEditableIndex) { // return true; // } @@ -446,10 +450,17 @@ const $useForm = useForm({ }); // ? Make sure to update the modelValue when the form values change // -watchDeep($useForm.values, () => { - modelValue.value = $useForm.values; +watch(() => $useForm.values, (newVal) => { + modelValue.value = JSON.parse(JSON.stringify(newVal)); + callbacks(); -}); +}, { deep: true }); + +watch(modelValue, (newVal) => { + Object.entries(newVal).forEach(([key, value]) => { + $useForm.setFieldValue(key, value); + }); +}, { deep: true }); // ------------------------ Run Validation // diff --git a/src/plugin/components/fields/CommonField/CommonField.vue b/src/plugin/components/fields/CommonField/CommonField.vue index fd3d08b..6e5a036 100644 --- a/src/plugin/components/fields/CommonField/CommonField.vue +++ b/src/plugin/components/fields/CommonField/CommonField.vue @@ -93,7 +93,7 @@ const hasErrors = computed(() => { // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ - ...field, + ...field.value, color: field.value.color || settings.value.color, density: field.value.density || settings.value.density, hideDetails: field.value.hideDetails || settings.value.hideDetails, diff --git a/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue b/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue index 580e171..cd84f1c 100644 --- a/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue +++ b/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue @@ -183,7 +183,7 @@ async function onActions(action: ValidateAction, val?: string | number): Promise // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ - ...field, + ...field.value, border: field.value?.border ? `${field.value?.color} ${field.value?.border}` : undefined, color: field.value.color || settings.value?.color, density: field.value?.density ?? settings.value?.density as VBtn['density'], diff --git a/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue b/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue index d783a2e..45edd25 100644 --- a/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue +++ b/src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue @@ -164,7 +164,7 @@ async function onActions(action: ValidateAction): Promise { // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ - ...field, + ...field.value, color: field.value.color || settings.value.color, density: field.value.density || settings.value.density, falseValue: field.value.falseValue || undefined, diff --git a/src/plugin/components/fields/VSFCustom/VSFCustom.vue b/src/plugin/components/fields/VSFCustom/VSFCustom.vue index b3a2e31..d7d6ecc 100644 --- a/src/plugin/components/fields/VSFCustom/VSFCustom.vue +++ b/src/plugin/components/fields/VSFCustom/VSFCustom.vue @@ -95,7 +95,7 @@ const useFieldBoundSettings = computed(() => { }); const bindSettings = computed(() => ({ - ...field, + ...field.value, color: field.value.color || settings.value.color, density: field.value.density || settings.value.density, })); diff --git a/src/plugin/components/fields/VSFRadio/VSFRadio.vue b/src/plugin/components/fields/VSFRadio/VSFRadio.vue index 25c86aa..adedd6e 100644 --- a/src/plugin/components/fields/VSFRadio/VSFRadio.vue +++ b/src/plugin/components/fields/VSFRadio/VSFRadio.vue @@ -173,7 +173,7 @@ const hasErrors = computed(() => { // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ - ...field, + ...field.value, color: field.value.color || settings.value.color, density: field.value.density || settings.value.density, falseValue: field.value.falseValue || false, diff --git a/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue b/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue index 736c615..4b6d5ef 100644 --- a/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue +++ b/src/plugin/components/fields/VSFSwitch/VSFSwitch.vue @@ -88,7 +88,7 @@ async function onActions(validate: ValidateFieldResult, action: ValidateAction): // -------------------------------------------------- Bound Settings // const bindSettings = computed(() => ({ - ...field, + ...field.value, color: field.value.color || settings.value.color, density: field.value.density || settings.value.density, falseValue: field.value.falseValue || false, From 4cd34969c742112c3a3a45b391b8db438051ef80 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Tue, 11 Feb 2025 12:25:40 -0800 Subject: [PATCH 04/11] remove dist --- dist/FieldLabel-7fESx4JQ.mjs | 14 - dist/FieldLabel-Cd_UO4bq.js | 10 - dist/plugin/VStepperForm.vue.d.ts | 34 - .../fields/CommonField/CommonField.vue.d.ts | 11 - .../components/fields/CommonField/index.d.ts | 15 - .../VSFButtonField/VSFButtonField.vue.d.ts | 11 - .../fields/VSFButtonField/index.d.ts | 33 - .../fields/VSFCheckbox/VSFCheckbox.vue.d.ts | 11 - .../components/fields/VSFCheckbox/index.d.ts | 19 - .../fields/VSFCustom/VSFCustom.vue.d.ts | 122 - .../components/fields/VSFCustom/index.d.ts | 8 - .../fields/VSFRadio/VSFRadio.vue.d.ts | 11 - .../components/fields/VSFRadio/index.d.ts | 32 - .../fields/VSFSwitch/VSFSwitch.vue.d.ts | 11 - .../components/fields/VSFSwitch/index.d.ts | 15 - dist/plugin/components/fields/index.d.ts | 7 - .../components/shared/FieldLabel.vue.d.ts | 6 - .../components/shared/PageContainer.vue.d.ts | 28 - .../shared/PageReviewContainer.vue.d.ts | 16 - dist/plugin/composables/bindings.d.ts | 1 - dist/plugin/composables/classes.d.ts | 13 - dist/plugin/composables/helpers.d.ts | 15 - dist/plugin/composables/navigation.d.ts | 4 - dist/plugin/composables/validation.d.ts | 2 - dist/plugin/index.d.ts | 7 - dist/plugin/types/index.d.ts | 207 -- dist/plugin/utils/emits.d.ts | 2 - dist/plugin/utils/globals.d.ts | 4 - dist/plugin/utils/props.d.ts | 14 - dist/scss/main.scss | 1 - dist/vuetify-stepper-form.cjs.js | 15 - dist/vuetify-stepper-form.es.js | 2747 ----------------- 32 files changed, 3446 deletions(-) delete mode 100644 dist/FieldLabel-7fESx4JQ.mjs delete mode 100644 dist/FieldLabel-Cd_UO4bq.js delete mode 100644 dist/plugin/VStepperForm.vue.d.ts delete mode 100644 dist/plugin/components/fields/CommonField/CommonField.vue.d.ts delete mode 100644 dist/plugin/components/fields/CommonField/index.d.ts delete mode 100644 dist/plugin/components/fields/VSFButtonField/VSFButtonField.vue.d.ts delete mode 100644 dist/plugin/components/fields/VSFButtonField/index.d.ts delete mode 100644 dist/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue.d.ts delete mode 100644 dist/plugin/components/fields/VSFCheckbox/index.d.ts delete mode 100644 dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts delete mode 100644 dist/plugin/components/fields/VSFCustom/index.d.ts delete mode 100644 dist/plugin/components/fields/VSFRadio/VSFRadio.vue.d.ts delete mode 100644 dist/plugin/components/fields/VSFRadio/index.d.ts delete mode 100644 dist/plugin/components/fields/VSFSwitch/VSFSwitch.vue.d.ts delete mode 100644 dist/plugin/components/fields/VSFSwitch/index.d.ts delete mode 100644 dist/plugin/components/fields/index.d.ts delete mode 100644 dist/plugin/components/shared/FieldLabel.vue.d.ts delete mode 100644 dist/plugin/components/shared/PageContainer.vue.d.ts delete mode 100644 dist/plugin/components/shared/PageReviewContainer.vue.d.ts delete mode 100644 dist/plugin/composables/bindings.d.ts delete mode 100644 dist/plugin/composables/classes.d.ts delete mode 100644 dist/plugin/composables/helpers.d.ts delete mode 100644 dist/plugin/composables/navigation.d.ts delete mode 100644 dist/plugin/composables/validation.d.ts delete mode 100644 dist/plugin/index.d.ts delete mode 100644 dist/plugin/types/index.d.ts delete mode 100644 dist/plugin/utils/emits.d.ts delete mode 100644 dist/plugin/utils/globals.d.ts delete mode 100644 dist/plugin/utils/props.d.ts delete mode 100755 dist/scss/main.scss delete mode 100644 dist/vuetify-stepper-form.cjs.js delete mode 100644 dist/vuetify-stepper-form.es.js diff --git a/dist/FieldLabel-7fESx4JQ.mjs b/dist/FieldLabel-7fESx4JQ.mjs deleted file mode 100644 index 88abdbc..0000000 --- a/dist/FieldLabel-7fESx4JQ.mjs +++ /dev/null @@ -1,14 +0,0 @@ -import { FieldLabel as a } from "./vuetify-stepper-form.es.js"; -/** - * @name @wdns/vuetify-stepper-form - * @version 1.0.2 - * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. - * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) - * @copyright Copyright 2024, WebDevNerdStuff - * @homepage https://webdevnerdstuff.github.io/vuetify-stepper-form/ - * @repository https://github.com/webdevnerdstuff/vuetify-stepper-form - * @license MIT License - */ -export { - a as default -}; diff --git a/dist/FieldLabel-Cd_UO4bq.js b/dist/FieldLabel-Cd_UO4bq.js deleted file mode 100644 index aa9bd3b..0000000 --- a/dist/FieldLabel-Cd_UO4bq.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";/** - * @name @wdns/vuetify-stepper-form - * @version 1.0.2 - * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. - * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) - * @copyright Copyright 2024, WebDevNerdStuff - * @homepage https://webdevnerdstuff.github.io/vuetify-stepper-form/ - * @repository https://github.com/webdevnerdstuff/vuetify-stepper-form - * @license MIT License - */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vuetify-stepper-form.cjs.js");exports.default=e.FieldLabel; diff --git a/dist/plugin/VStepperForm.vue.d.ts b/dist/plugin/VStepperForm.vue.d.ts deleted file mode 100644 index f82ed30..0000000 --- a/dist/plugin/VStepperForm.vue.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Props } from './types'; -declare let __VLS_typeProps: Props; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare function __VLS_template(): { - slots: Partial, (_: any) => any>>; - refs: { - stepperFormRef: HTMLFormElement; - }; - attrs: Partial<{}>; -}; -type __VLS_TemplateResult = ReturnType; -declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, { - width: string; - readonly disabled: boolean; - editable: import('vuetify/lib/components/index.mjs').VStepperItem["editable"]; - autoPageDelay: number; - direction: "horizontal" | "vertical"; - jumpAhead: boolean; - keepValuesOnUnmount: boolean; - navButtonSize: import('vuetify/lib/components/index.mjs').VBtn["size"]; - tooltipLocation: import('vuetify/lib/components/index.mjs').VTooltip["location"]; - tooltipOffset: string | number | number[]; - tooltipTransition: import('vuetify/lib/components/index.mjs').VTooltip["transition"]; - transition: import('vuetify/lib/components/index.mjs').VStepperWindowItem["transition"]; -}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -declare const _default: __VLS_WithTemplateSlots; -export default _default; -type __VLS_WithTemplateSlots = T & { - new (): { - $slots: S; - }; -}; diff --git a/dist/plugin/components/fields/CommonField/CommonField.vue.d.ts b/dist/plugin/components/fields/CommonField/CommonField.vue.d.ts deleted file mode 100644 index 02aa9b2..0000000 --- a/dist/plugin/components/fields/CommonField/CommonField.vue.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { CommonFieldProps } from './index'; -declare let __VLS_typeProps: CommonFieldProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/components/fields/CommonField/index.d.ts b/dist/plugin/components/fields/CommonField/index.d.ts deleted file mode 100644 index 9709cd3..0000000 --- a/dist/plugin/components/fields/CommonField/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Field, GlobalChips, GlobalClosableChips, GlobalCloseText, GlobalMultiple, GlobalVariant, SharedProps } from '../../../types'; -import { Component } from 'vue'; -import { default as CommonField } from './CommonField.vue'; -interface InternalField extends Omit { - chips?: GlobalChips; - closableChips?: GlobalClosableChips; - closeText?: GlobalCloseText; - multiple?: GlobalMultiple; - variant?: GlobalVariant; -} -export interface CommonFieldProps extends SharedProps { - field: InternalField; - component: Component | null; -} -export default CommonField; diff --git a/dist/plugin/components/fields/VSFButtonField/VSFButtonField.vue.d.ts b/dist/plugin/components/fields/VSFButtonField/VSFButtonField.vue.d.ts deleted file mode 100644 index f17c2de..0000000 --- a/dist/plugin/components/fields/VSFButtonField/VSFButtonField.vue.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { VSFButtonFieldProps } from './index'; -declare let __VLS_typeProps: VSFButtonFieldProps; -type __VLS_PublicProps = { - modelValue?: unknown; -} & typeof __VLS_typeProps; -declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/components/fields/VSFButtonField/index.d.ts b/dist/plugin/components/fields/VSFButtonField/index.d.ts deleted file mode 100644 index c61078a..0000000 --- a/dist/plugin/components/fields/VSFButtonField/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Field, GlobalDensity, SharedProps } from '../../../types'; -import { VBtn } from 'vuetify/components'; -import { default as VSFButtonField } from './VSFButtonField.vue'; -export interface Option { - appendIcon?: VBtn['appendIcon']; - class?: string; - color?: VBtn['color']; - height?: VBtn['height']; - icon?: VBtn['icon']; - id?: Field['id']; - label: Field['label']; - maxHeight?: VBtn['maxHeight']; - maxWidth?: VBtn['maxWidth']; - minHeight?: VBtn['minHeight']; - minWidth?: VBtn['minWidth']; - prependIcon?: VBtn['prependIcon']; - value: string | number; - width?: VBtn['width']; -} -interface InternalField extends Field, Partial> { - align?: string; - gap?: string | number; - hint?: string; - messages?: string | string[]; - multiple?: boolean; - options?: Option[]; - persistentHint?: boolean; -} -export interface VSFButtonFieldProps extends SharedProps { - density?: GlobalDensity | 'expanded' | 'oversized'; - field: InternalField; -} -export default VSFButtonField; diff --git a/dist/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue.d.ts b/dist/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue.d.ts deleted file mode 100644 index 8fe2cd9..0000000 --- a/dist/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { VSFCheckboxProps } from './index'; -declare let __VLS_typeProps: VSFCheckboxProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/components/fields/VSFCheckbox/index.d.ts b/dist/plugin/components/fields/VSFCheckbox/index.d.ts deleted file mode 100644 index 94536d2..0000000 --- a/dist/plugin/components/fields/VSFCheckbox/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Field, SharedProps } from '../../../types'; -import { VCheckbox } from 'vuetify/components'; -import { default as VSFCheckbox } from './VSFCheckbox.vue'; -interface InternalField extends Field { - color?: VCheckbox['color']; - density?: VCheckbox['density']; - falseIcon?: VCheckbox['falseIcon']; - falseValue?: VCheckbox['falseValue']; - hideDetails?: VCheckbox['hideDetails']; - hint?: VCheckbox['hint']; - messages?: VCheckbox['messages']; - multiple?: VCheckbox['multiple']; - persistentHint?: VCheckbox['persistentHint']; - trueValue?: VCheckbox['trueValue']; -} -export interface VSFCheckboxProps extends SharedProps { - field: InternalField; -} -export default VSFCheckbox; diff --git a/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts b/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts deleted file mode 100644 index 52613f7..0000000 --- a/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { VSFCustomProps } from './index'; -declare let __VLS_typeProps: VSFCustomProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare function __VLS_template(): { - slots: Partial & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; - blur: () => Promise; - change: () => Promise; - input: () => Promise; - onUpdate: (value: any) => void; - field: { - options: KeyStringAny | undefined; - required: boolean | undefined; - prevText?: string | undefined; - nextText?: string | undefined; - theme?: string | undefined; - tag?: string | undefined; - rounded?: string | number | boolean | undefined; - tile?: boolean | undefined; - elevation?: string | number | undefined; - height?: string | number | undefined; - maxHeight?: string | number | undefined; - maxWidth?: string | number | undefined; - minHeight?: string | number | undefined; - minWidth?: string | number | undefined; - width?: string | undefined; - border?: string | number | boolean | undefined; - color?: string | undefined; - selectedClass?: string | undefined; - disabled?: boolean | undefined; - altLabels?: boolean | undefined; - bgColor?: string | undefined; - editIcon?: string | undefined; - editable?: import('vuetify/lib/components/index.mjs').VStepperItem["editable"] | undefined; - errorIcon?: import('vuetify/lib/components/index.mjs').VStepperItem["errorIcon"] | undefined; - hideActions?: boolean | undefined; - flat?: boolean | undefined; - autoPage?: boolean | undefined; - autoPageDelay?: number | undefined; - density?: import('../../../types').GlobalDensity | undefined; - direction?: ("horizontal" | "vertical") | undefined; - fieldColumns?: import('../../../types').ResponsiveColumns | undefined; - headerTooltips?: boolean | undefined; - hideDetails?: import('../../../types').GlobalHideDetails; - jumpAhead?: boolean | undefined; - keepValuesOnUnmount?: boolean | undefined; - navButtonSize?: import('vuetify/lib/components/index.mjs').VBtn["size"] | undefined; - navButtonVariant?: import('vuetify/lib/components/index.mjs').VBtn["variant"] | undefined; - summaryColumns?: import('../../../types').ResponsiveColumns | undefined; - title?: string | undefined; - tooltipLocation?: import('vuetify/lib/components/index.mjs').VTooltip["location"] | undefined; - tooltipOffset?: import('vuetify/lib/components/index.mjs').VTooltip["offset"]; - tooltipTransition?: import('vuetify/lib/components/index.mjs').VTooltip["transition"] | undefined; - validateOn?: import('../../../types').Field["validateOn"]; - validateOnMount?: boolean | undefined; - variant?: string | undefined; - transition?: import('vuetify/lib/components/index.mjs').VStepperWindowItem["transition"] | undefined; - errorMessages: any; - }; - }) => any>>; - refs: {}; - attrs: Partial<{}>; -}; -type __VLS_TemplateResult = ReturnType; -declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -declare const _default: __VLS_WithTemplateSlots; -export default _default; -type __VLS_WithTemplateSlots = T & { - new (): { - $slots: S; - }; -}; diff --git a/dist/plugin/components/fields/VSFCustom/index.d.ts b/dist/plugin/components/fields/VSFCustom/index.d.ts deleted file mode 100644 index f01042e..0000000 --- a/dist/plugin/components/fields/VSFCustom/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Field, SharedProps } from '../../../types'; -import { default as VSFCustom } from './VSFCustom.vue'; -interface InternalField extends Omit { -} -export interface VSFCustomProps extends SharedProps { - field: InternalField; -} -export default VSFCustom; diff --git a/dist/plugin/components/fields/VSFRadio/VSFRadio.vue.d.ts b/dist/plugin/components/fields/VSFRadio/VSFRadio.vue.d.ts deleted file mode 100644 index c1e1a99..0000000 --- a/dist/plugin/components/fields/VSFRadio/VSFRadio.vue.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { VSFRadioProps } from './index'; -declare let __VLS_typeProps: VSFRadioProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/components/fields/VSFRadio/index.d.ts b/dist/plugin/components/fields/VSFRadio/index.d.ts deleted file mode 100644 index 4ea0bc6..0000000 --- a/dist/plugin/components/fields/VSFRadio/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Field, SharedProps } from '../../../types'; -import { VRadio, VRadioGroup } from 'vuetify/components'; -import { default as VSFRadio } from './VSFRadio.vue'; -export interface RadioGroupProps { - appendIcon?: VRadioGroup['appendIcon']; - direction?: VRadioGroup['direction']; - error?: VRadioGroup['error']; - hideDetails?: VRadioGroup['hideDetails']; - hint?: VRadioGroup['hint']; - groupId?: VRadioGroup['id']; - maxErrors?: VRadioGroup['maxErrors']; - maxWidth?: VRadioGroup['maxWidth']; - minWidth?: VRadioGroup['minWidth']; - messages?: VRadioGroup['messages']; - persistentHint?: VRadioGroup['persistentHint']; - prependIcon?: VRadioGroup['prependIcon']; - theme?: VRadioGroup['theme']; - width?: VRadioGroup['width']; -} -interface InternalField extends Field, RadioGroupProps { - color?: VRadio['color']; - density?: VRadio['density']; - falseIcon?: VRadio['falseIcon']; - falseValue?: VRadio['falseValue']; - inline?: VRadio['inline']; - multiple?: VRadio['multiple']; - trueValue?: VRadio['trueValue']; -} -export interface VSFRadioProps extends SharedProps { - field: InternalField; -} -export default VSFRadio; diff --git a/dist/plugin/components/fields/VSFSwitch/VSFSwitch.vue.d.ts b/dist/plugin/components/fields/VSFSwitch/VSFSwitch.vue.d.ts deleted file mode 100644 index 2a11f22..0000000 --- a/dist/plugin/components/fields/VSFSwitch/VSFSwitch.vue.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { VSFSwitchProps } from './index'; -declare let __VLS_typeProps: VSFSwitchProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/components/fields/VSFSwitch/index.d.ts b/dist/plugin/components/fields/VSFSwitch/index.d.ts deleted file mode 100644 index 9812720..0000000 --- a/dist/plugin/components/fields/VSFSwitch/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Field, SharedProps } from '../../../types'; -import { VSwitch } from 'vuetify/components'; -import { default as VSFSwitch } from './VSFSwitch.vue'; -interface InternalField extends Omit { - color?: VSwitch['color']; - density?: VSwitch['density']; - falseIcon?: VSwitch['falseIcon']; - falseValue?: VSwitch['falseValue']; - hideDetails?: VSwitch['hideDetails']; - trueValue?: VSwitch['trueValue']; -} -export interface VSFSwitchProps extends SharedProps { - field: InternalField; -} -export default VSFSwitch; diff --git a/dist/plugin/components/fields/index.d.ts b/dist/plugin/components/fields/index.d.ts deleted file mode 100644 index 4e59feb..0000000 --- a/dist/plugin/components/fields/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { default as CommonField } from './CommonField/CommonField.vue'; -import { default as VSFButtonField } from './VSFButtonField/VSFButtonField.vue'; -import { default as VSFCheckbox } from './VSFCheckbox/VSFCheckbox.vue'; -import { default as VSFCustom } from './VSFCustom/VSFCustom.vue'; -import { default as VSFRadio } from './VSFRadio/VSFRadio.vue'; -import { default as VSFSwitch } from './VSFSwitch/VSFSwitch.vue'; -export { CommonField, VSFButtonField, VSFCheckbox, VSFCustom, VSFRadio, VSFSwitch, }; diff --git a/dist/plugin/components/shared/FieldLabel.vue.d.ts b/dist/plugin/components/shared/FieldLabel.vue.d.ts deleted file mode 100644 index 0a8a195..0000000 --- a/dist/plugin/components/shared/FieldLabel.vue.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface FieldLabelProps { - label: string | undefined; - required: boolean | undefined; -} -declare const _default: import('vue').DefineComponent & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/components/shared/PageContainer.vue.d.ts b/dist/plugin/components/shared/PageContainer.vue.d.ts deleted file mode 100644 index 6162124..0000000 --- a/dist/plugin/components/shared/PageContainer.vue.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Page, ResponsiveColumns } from '../../types/index'; -export interface PageContainerProps { - fieldColumns: ResponsiveColumns | undefined; - page: Page; - pageIndex: number; -} -declare let __VLS_typeProps: PageContainerProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare function __VLS_template(): { - slots: Readonly> & Record; - refs: {}; - attrs: Partial<{}>; -}; -type __VLS_TemplateResult = ReturnType; -declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - validate: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onValidate?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -declare const _default: __VLS_WithTemplateSlots; -export default _default; -type __VLS_WithTemplateSlots = T & { - new (): { - $slots: S; - }; -}; diff --git a/dist/plugin/components/shared/PageReviewContainer.vue.d.ts b/dist/plugin/components/shared/PageReviewContainer.vue.d.ts deleted file mode 100644 index ae00229..0000000 --- a/dist/plugin/components/shared/PageReviewContainer.vue.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Page, ResponsiveColumns } from '../../types/index'; -export interface PageReviewContainerProps { - page: Page; - pages: Page[]; - summaryColumns: ResponsiveColumns | undefined; -} -declare let __VLS_typeProps: PageReviewContainerProps; -type __VLS_PublicProps = { - modelValue?: any; -} & typeof __VLS_typeProps; -declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { - goToQuestion: (...args: any[]) => void; -}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ - onGoToQuestion?: ((...args: any[]) => any) | undefined; -}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; -export default _default; diff --git a/dist/plugin/composables/bindings.d.ts b/dist/plugin/composables/bindings.d.ts deleted file mode 100644 index 1fef851..0000000 --- a/dist/plugin/composables/bindings.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const useBindingSettings: (settings: Partial, exclude?: string[]) => Partial; diff --git a/dist/plugin/composables/classes.d.ts b/dist/plugin/composables/classes.d.ts deleted file mode 100644 index 98fc7be..0000000 --- a/dist/plugin/composables/classes.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { UseColumnClasses, UseContainerClasses, UseStepperContainerClasses } from '../types'; -/** - * Returns the classes for the container. - */ -export declare const useContainerClasses: UseContainerClasses; -/** - * Returns the classes for the stepper container. - */ -export declare const useStepperContainerClasses: UseStepperContainerClasses; -/** - * Returns the classes for columns. - */ -export declare const useColumnClasses: UseColumnClasses; diff --git a/dist/plugin/composables/helpers.d.ts b/dist/plugin/composables/helpers.d.ts deleted file mode 100644 index a73d43c..0000000 --- a/dist/plugin/composables/helpers.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { UseAutoPage, UseBuildSettings, UseColumnErrorCheck, UseDeepMerge, UseGetFirstAndLastEditableFalse } from '../types'; -export declare const useDeepMerge: UseDeepMerge; -/** -* Builds the settings object. -*/ -export declare const useBuildSettings: UseBuildSettings; -/** -* Automatically pages to the next field. -*/ -export declare const useAutoPage: UseAutoPage; -/** - * Checks if the column values are between 1 and 12. - */ -export declare const useColumnErrorCheck: UseColumnErrorCheck; -export declare const useGetFirstAndLastEditableFalse: UseGetFirstAndLastEditableFalse; diff --git a/dist/plugin/composables/navigation.d.ts b/dist/plugin/composables/navigation.d.ts deleted file mode 100644 index 7cb6c8b..0000000 --- a/dist/plugin/composables/navigation.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { UseHandleJumpAhead, UseHandleNonJumpAhead } from '../types'; -declare const useHandleJumpAhead: UseHandleJumpAhead; -declare const useHandleNonJumpAhead: UseHandleNonJumpAhead; -export { useHandleJumpAhead, useHandleNonJumpAhead, }; diff --git a/dist/plugin/composables/validation.d.ts b/dist/plugin/composables/validation.d.ts deleted file mode 100644 index 530a120..0000000 --- a/dist/plugin/composables/validation.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { UseOnActions } from '../types/index'; -export declare const useOnActions: UseOnActions; diff --git a/dist/plugin/index.d.ts b/dist/plugin/index.d.ts deleted file mode 100644 index 229680e..0000000 --- a/dist/plugin/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PluginOptions } from './types'; -import { Plugin } from 'vue'; -import { default as FieldLabel } from './components/shared/FieldLabel.vue'; -import { default as VStepperForm } from './VStepperForm.vue'; -export declare function createVStepperForm(options?: PluginOptions): Plugin; -export default VStepperForm; -export { FieldLabel, VStepperForm, }; diff --git a/dist/plugin/types/index.d.ts b/dist/plugin/types/index.d.ts deleted file mode 100644 index d1c373a..0000000 --- a/dist/plugin/types/index.d.ts +++ /dev/null @@ -1,207 +0,0 @@ -import { FieldValidator, FormValidationResult, GenericObject } from 'vee-validate'; -import { App, MaybeRef } from 'vue'; -import { VBtn, VStepper, VStepperItem, VStepperWindowItem, VTooltip } from 'vuetify/components'; -import { ValidationRule } from 'vuetify/composables/validation'; -import { Schema } from 'yup'; -import { ZodSchema } from 'zod'; -import { default as VStepperForm } from '../VStepperForm.vue'; -export * from '../index'; -declare global { - interface KeyStringAny { - [key: string]: T; - } - type ValidateAction = 'blur' | 'change' | 'click' | 'input' | 'page' | 'submit'; - type ValidateFieldResult = FieldValidator; - type ValidateResult = FormValidationResult; - type FieldValidateResult = () => Promise>>; -} -export type GlobalDensity = null | 'default' | 'comfortable' | 'compact' | 'expanded' | 'oversized'; -export type GlobalVariant = 'filled' | 'underlined' | 'outlined' | 'plain' | 'solo' | 'solo-inverted' | 'solo-filled'; -export type GlobalHideDetails = boolean | 'auto' | undefined; -export type GlobalClosableChips = boolean; -export type GlobalCloseText = string; -export type GlobalChips = boolean; -export type GlobalMultiple = boolean; -export interface VStepperProps extends Partial> { -} -interface VStepperWindowItemProps { - transition?: VStepperWindowItem['transition']; -} -export interface ResponsiveColumns { - sm?: number | string; - md?: number | string; - lg?: number | string; - xl?: number | string; -} -export interface Field { - autoPage?: Props['autoPage']; - autoPageDelay?: Props['autoPageDelay']; - class?: string; - color?: Props['color']; - columns?: Props['fieldColumns']; - density?: GlobalDensity; - disabled?: boolean | ((value: any) => boolean); - error?: boolean; - errorMessages?: string | string[]; - hidden?: boolean; - hideDetails?: GlobalHideDetails; - id?: string; - inline?: boolean; - inlineSpacing?: string; - items?: readonly any[] | undefined; - label?: string; - labelPositionLeft?: boolean; - name: string; - options?: KeyStringAny; - required?: boolean | undefined; - rules?: ValidationRule; - text?: string; - type?: FieldTypes; - validateOn?: 'blur' | 'change' | 'click' | 'input'; - when?: (value: any) => boolean; -} -export interface Page { - autoPage?: boolean; - editable?: VStepperItem['editable']; - error?: boolean; - fields?: Field[]; - isSummary?: boolean; - pageFieldColumns?: ResponsiveColumns; - text?: string; - title?: string; - visible?: boolean; - when?: (value: any) => boolean; -} -export interface Props extends /* @vue-ignore */ VStepperProps, VStepperWindowItemProps { - pages: Page[]; - validationSchema?: Schema | ZodSchema; - autoPage?: boolean; - autoPageDelay?: number; - color?: string | undefined; - density?: GlobalDensity; - direction?: 'horizontal' | 'vertical'; - editable?: VStepperItem['editable']; - errorIcon?: VStepperItem['errorIcon']; - fieldColumns?: ResponsiveColumns | undefined; - headerTooltips?: boolean; - hideDetails?: GlobalHideDetails; - jumpAhead?: boolean; - keepValuesOnUnmount?: boolean; - navButtonSize?: VBtn['size']; - navButtonVariant?: VBtn['variant']; - summaryColumns?: ResponsiveColumns; - title?: string; - tooltipLocation?: VTooltip['location']; - tooltipOffset?: VTooltip['offset']; - tooltipTransition?: VTooltip['transition']; - validateOn?: Field['validateOn']; - validateOnMount?: boolean; - variant?: string; - width?: string; -} -export interface PluginOptions extends Partial> { -} -declare global { - export interface Settings extends PluginOptions { - } -} -type FieldTypes = 'autocomplete' | 'buttons' | 'checkbox' | 'color' | 'combobox' | 'date' | 'email' | 'fancyRadio' | 'field' | 'file' | 'hidden' | 'number' | 'password' | 'radio' | 'select' | 'switch' | 'tel' | 'text' | 'textField' | 'textarea' | 'url' | undefined; -export interface SharedProps { - field: Field; -} -export type EmitValidateEvent = (event: 'validate', field: Field) => void; -export interface UseOnActions { - (options: { - action: ValidateAction; - emit: EmitValidateEvent; - field: Field; - settingsValidateOn: Settings['validateOn']; - validate: FieldValidateResult; - }): Promise; -} -export interface UseBuildSettings { - (props: Settings): Settings; -} -export interface UseDeepMerge { - (A: Record, B: Record, C?: Record): Record; -} -export interface UseAutoPage { - (options: { - emit: { - (e: 'next', field: Field): void; - }; - field: Field; - modelValue: any; - settings: Settings; - }): void; -} -export interface UseColumnErrorCheck { - (options: { - columns: ResponsiveColumns | undefined; - propName?: string; - }): void; -} -export interface UseGetFirstAndLastEditableFalse { - (pages: Page[]): { - firstNonEditableIndex: number; - lastNonEditableIndex: number; - }; -} -export type ComputedClasses = Record; -export interface UseContainerClasses { - (options: { - direction?: Props['direction']; - }): ComputedClasses; -} -export interface UseStepperContainerClasses { - (options: { - direction?: Props['direction']; - }): ComputedClasses; -} -export interface UseColumnClasses { - (options: { - columnsMerged: ResponsiveColumns; - fieldColumns?: ResponsiveColumns | undefined; - propName?: string; - }): ComputedClasses; -} -export interface UseHandleJumpAhead { - (options: { - currentPageEditable: boolean; - currentPageIdx: MaybeRef; - firstNonEditableIndex: number; - lastNonEditableIndex: number; - lastPageIdx: number; - nextPageEditable: boolean; - nextPageNotEditable: boolean; - pageIdx: number; - pageNotEditable: boolean; - previousPageEditable: boolean; - previousPageNotEditable: boolean; - }): boolean; -} -export interface UseHandleNonJumpAhead { - (options: { - currentPageEditable: boolean; - currentPageIdx: MaybeRef; - firstNonEditableIndex: number; - lastNonEditableIndex: number; - lastPageIdx: number; - nextPageEditable: boolean; - nextPageNotEditable: boolean; - pageEditable: boolean; - pageIdx: number; - pageNotEditable: boolean; - }): boolean; -} -declare module 'vue' { - interface ComponentCustomProperties { - } - interface GlobalComponents { - VStepperForm: typeof VStepperForm; - } -} -declare function createVStepperForm(options?: PluginOptions): { - install: (app: App) => void; -}; -export { createVStepperForm }; diff --git a/dist/plugin/utils/emits.d.ts b/dist/plugin/utils/emits.d.ts deleted file mode 100644 index d451d2b..0000000 --- a/dist/plugin/utils/emits.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: string[]; -export default _default; diff --git a/dist/plugin/utils/globals.d.ts b/dist/plugin/utils/globals.d.ts deleted file mode 100644 index 6aaa52a..0000000 --- a/dist/plugin/utils/globals.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { InjectionKey } from 'vue'; -import { PluginOptions } from '../types'; -export declare const componentName = "v-stepper-form"; -export declare const pluginOptionsInjectionKey: InjectionKey; diff --git a/dist/plugin/utils/props.d.ts b/dist/plugin/utils/props.d.ts deleted file mode 100644 index ceab96a..0000000 --- a/dist/plugin/utils/props.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare const AllProps: { - autoPageDelay: number; - direction: "horizontal"; - disabled: boolean; - editable: boolean; - jumpAhead: boolean; - keepValuesOnUnmount: boolean; - navButtonSize: "large"; - tooltipLocation: "bottom"; - tooltipOffset: number; - tooltipTransition: string; - transition: string; - width: string; -}; diff --git a/dist/scss/main.scss b/dist/scss/main.scss deleted file mode 100755 index 13d104d..0000000 --- a/dist/scss/main.scss +++ /dev/null @@ -1 +0,0 @@ -// :root {} diff --git a/dist/vuetify-stepper-form.cjs.js b/dist/vuetify-stepper-form.cjs.js deleted file mode 100644 index ed0527b..0000000 --- a/dist/vuetify-stepper-form.cjs.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict";/** - * @name @wdns/vuetify-stepper-form - * @version 1.0.2 - * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. - * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) - * @copyright Copyright 2024, WebDevNerdStuff - * @homepage https://webdevnerdstuff.github.io/vuetify-stepper-form/ - * @repository https://github.com/webdevnerdstuff/vuetify-stepper-form - * @license MIT License - */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Ia=require("@vueuse/core"),Sa=require("vuetify"),wa=require("@wdns/vuetify-color-field"),ze=require("vuetify/components"),Ta=require("vuetify/labs/VDateInput"),xt=require("vuetify/lib/components/VBtn/index.mjs"),Pn=require("vuetify/lib/components/VItemGroup/index.mjs"),yn=require("vuetify/lib/components/VLabel/index.mjs"),An=require("vuetify/lib/components/VCheckbox/index.mjs"),xa=require("vuetify/lib/components/VRadio/index.mjs"),Pa=require("vuetify/lib/components/VRadioGroup/index.mjs"),Aa=require("vuetify/lib/components/VSwitch/index.mjs"),Te=require("vuetify/lib/components/VGrid/index.mjs"),Na=require("vuetify/lib/components/VCard/index.mjs"),qe=require("vuetify/lib/components/VList/index.mjs"),ja=require("vuetify/lib/components/VDivider/index.mjs"),Je=require("vuetify/lib/components/VStepper/index.mjs"),Ra=require("vuetify/lib/components/VTooltip/index.mjs"),Ua={"data-cy":"vsf-field-label"},Da=["innerHTML"],Ba={key:0,class:"text-error ms-1"},$e=t.defineComponent({__name:"FieldLabel",props:{label:{},required:{type:Boolean,default:!1}},setup:e=>(n,a)=>(t.openBlock(),t.createElementBlock("div",Ua,[t.createElementVNode("span",{innerHTML:n.label},null,8,Da),a[0]||(a[0]=t.createTextVNode()),n.required?(t.openBlock(),t.createElementBlock("span",Ba,"*")):t.createCommentVNode("",!0)]))}),en=(e,n,a={})=>{const l=(r,o)=>{const i={...r};for(const u in o)o[u]===void 0||typeof o[u]!="object"||Array.isArray(o[u])?o[u]!==void 0&&(i[u]=o[u]):i[u]=l(i[u]??{},o[u]);return i};return[e,n,a].filter(Boolean).reduce(l,{})},Nn=e=>({altLabels:e.altLabels,autoPage:e.autoPage,autoPageDelay:e.autoPageDelay,bgColor:e.bgColor,border:e.border,color:e.color,density:e.density,disabled:e.disabled,editIcon:e.editIcon,editable:e.editable,elevation:e.elevation,errorIcon:e.errorIcon,fieldColumns:e.fieldColumns,flat:e.flat,headerTooltips:e.headerTooltips,height:e.height,hideActions:e.hideActions,hideDetails:e.hideDetails,keepValuesOnUnmount:e.keepValuesOnUnmount,maxHeight:e.maxHeight,maxWidth:e.maxWidth,minHeight:e.minHeight,minWidth:e.minWidth,nextText:e.nextText,prevText:e.prevText,rounded:e.rounded,selectedClass:e.selectedClass,summaryColumns:e.summaryColumns,tag:e.tag,theme:e.theme,tile:e.tile,tooltipLocation:e.tooltipLocation,tooltipOffset:e.tooltipOffset,tooltipTransition:e.tooltipTransition,transition:e.transition,validateOn:e.validateOn,validateOnMount:e.validateOnMount,variant:e.variant}),tn=e=>{const{columns:n,propName:a}=e;let l=!1;if(n&&(Object.values(n).forEach(r=>{(r<1||r>12)&&(l=!0)}),l))throw new Error(`The ${a} values must be between 1 and 12`)},nn=e=>{let n=-1,a=-1;return e.forEach((l,r)=>{l.editable===!1&&(n===-1&&(n=r),a=r)}),{firstNonEditableIndex:n,lastNonEditableIndex:a}},ut="v-stepper-form",jo=Symbol(),Ro={autoPageDelay:250,direction:"horizontal",disabled:!1,editable:!0,jumpAhead:!1,keepValuesOnUnmount:!1,navButtonSize:"large",tooltipLocation:"bottom",tooltipOffset:10,tooltipTransition:"fade-transition",transition:"fade-transition",width:"100%"};var st,jn,Kt,Ct,Ma=Object.create,Rn=Object.defineProperty,La=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyNames,za=Object.getPrototypeOf,Fa=Object.prototype.hasOwnProperty,mt=(st={"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"(){}},function(){return st&&(jn=(0,st[bn(st)[0]])(st=0)),jn}),Ha=(Kt={"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,n){function a(l){return l instanceof Buffer?Buffer.from(l):new l.constructor(l.buffer.slice(),l.byteOffset,l.length)}mt(),n.exports=function(l){if((l=l||{}).circles)return function(u){const s=[],c=[],m=new Map;if(m.set(Date,h=>new Date(h)),m.set(Map,(h,v)=>new Map(V(Array.from(h),v))),m.set(Set,(h,v)=>new Set(V(Array.from(h),v))),u.constructorHandlers)for(const h of u.constructorHandlers)m.set(h[0],h[1]);let p=null;return u.proto?y:g;function V(h,v){const S=Object.keys(h),I=new Array(S.length);for(let w=0;wnew Date(u)),r.set(Map,(u,s)=>new Map(i(Array.from(u),s))),r.set(Set,(u,s)=>new Set(i(Array.from(u),s))),l.constructorHandlers)for(const u of l.constructorHandlers)r.set(u[0],u[1]);let o=null;return l.proto?function u(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return i(s,u);if(s.constructor!==Object&&(o=r.get(s.constructor)))return o(s,u);const c={};for(const m in s){const p=s[m];typeof p!="object"||p===null?c[m]=p:p.constructor!==Object&&(o=r.get(p.constructor))?c[m]=o(p,u):ArrayBuffer.isView(p)?c[m]=a(p):c[m]=u(p)}return c}:function u(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return i(s,u);if(s.constructor!==Object&&(o=r.get(s.constructor)))return o(s,u);const c={};for(const m in s){if(Object.hasOwnProperty.call(s,m)===!1)continue;const p=s[m];typeof p!="object"||p===null?c[m]=p:p.constructor!==Object&&(o=r.get(p.constructor))?c[m]=o(p,u):ArrayBuffer.isView(p)?c[m]=a(p):c[m]=u(p)}return c};function i(u,s){const c=Object.keys(u),m=new Array(c.length);for(let p=0;p(a=e!=null?Ma(za(e)):{},((l,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of bn(r))Fa.call(l,u)||u===o||Rn(l,u,{get:()=>r[u],enumerable:!(i=La(r,u))||i.enumerable});return l})(Rn(a,"default",{value:e,enumerable:!0}),e)))(Ha()),Ka=/(?:^|[-_/])(\w)/g;function qa(e,n){return n?n.toUpperCase():""}var Dn=(0,$a.default)({circles:!0});const Wa={trailing:!0};function nt(e,n=25,a={}){if(a={...Wa,...a},!Number.isFinite(n))throw new TypeError("Expected `wait` to be a finite number");let l,r,o,i,u=[];const s=(c,m)=>(o=async function(p,V,g){return await p.apply(V,g)}(e,c,m),o.finally(()=>{if(o=null,a.trailing&&i&&!r){const p=s(c,i);return i=null,p}}),o);return function(...c){return o?(a.trailing&&(i=c),o):new Promise(m=>{const p=!r&&a.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const V=a.leading?l:s(this,c);for(const g of u)g(V);u=[]},n),p?(l=s(this,c),m(l)):u.push(m)})}}function on(e,n={},a){for(const l in e){const r=e[l],o=a?`${a}:${l}`:l;typeof r=="object"&&r!==null?on(r,n,o):typeof r=="function"&&(n[o]=r)}return n}const Ga={run:e=>e()},Do=console.createTask!==void 0?console.createTask:()=>Ga;function Ya(e,n){const a=n.shift(),l=Do(a);return e.reduce((r,o)=>r.then(()=>l.run(()=>o(...n))),Promise.resolve())}function Za(e,n){const a=n.shift(),l=Do(a);return Promise.all(e.map(r=>l.run(()=>r(...n))))}function qt(e,n){for(const a of[...e])a(n)}class Xa{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,a,l={}){if(!n||typeof a!="function")return()=>{};const r=n;let o;for(;this._deprecatedHooks[n];)o=this._deprecatedHooks[n],n=o.to;if(o&&!l.allowDeprecated){let i=o.message;i||(i=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!a.name)try{Object.defineProperty(a,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(a),()=>{a&&(this.removeHook(n,a),a=void 0)}}hookOnce(n,a){let l,r=(...o)=>(typeof l=="function"&&l(),l=void 0,r=void 0,a(...o));return l=this.hook(n,r),l}removeHook(n,a){if(this._hooks[n]){const l=this._hooks[n].indexOf(a);l!==-1&&this._hooks[n].splice(l,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,a){this._deprecatedHooks[n]=typeof a=="string"?{to:a}:a;const l=this._hooks[n]||[];delete this._hooks[n];for(const r of l)this.hook(n,r)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(const a in n)this.deprecateHook(a,n[a])}addHooks(n){const a=on(n),l=Object.keys(a).map(r=>this.hook(r,a[r]));return()=>{for(const r of l.splice(0,l.length))r()}}removeHooks(n){const a=on(n);for(const l in a)this.removeHook(l,a[l])}removeAllHooks(){for(const n in this._hooks)delete this._hooks[n]}callHook(n,...a){return a.unshift(n),this.callHookWith(Ya,n,...a)}callHookParallel(n,...a){return a.unshift(n),this.callHookWith(Za,n,...a)}callHookWith(n,a,...l){const r=this._before||this._after?{name:a,args:l,context:{}}:void 0;this._before&&qt(this._before,r);const o=n(a in this._hooks?[...this._hooks[a]]:[],l);return o instanceof Promise?o.finally(()=>{this._after&&r&&qt(this._after,r)}):(this._after&&r&&qt(this._after,r),o)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){const a=this._before.indexOf(n);a!==-1&&this._before.splice(a,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){const a=this._after.indexOf(n);a!==-1&&this._after.splice(a,1)}}}}function Bo(){return new Xa}var Ja=Object.create,Bn=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyNames,el=Object.getPrototypeOf,tl=Object.prototype.hasOwnProperty,Mo=(e,n)=>function(){return n||(0,e[Vn(e)[0]])((n={exports:{}}).exports,n),n.exports},k=((e,n)=>function(){return e&&(n=(0,e[Vn(e)[0]])(e=0)),n})({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"(){}}),nl=Mo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,n){k(),function(a){var l={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},u={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},s=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),m=[".","!","~","*","'","(",")"].join(""),p=function(h,v){var S,I,w,U,M,le,Y,oe,Q,X,T,D,ne,z,J="-",G="",F="",K=!0,te={},q="";if(typeof h!="string")return"";if(typeof v=="string"&&(J=v),Y=u.en,oe=i.en,typeof v=="object")for(T in S=v.maintainCase||!1,te=v.custom&&typeof v.custom=="object"?v.custom:te,w=+v.truncate>1&&v.truncate||!1,U=v.uric||!1,M=v.uricNoSlash||!1,le=v.mark||!1,K=v.symbols!==!1&&v.lang!==!1,J=v.separator||J,U&&(q+=s),M&&(q+=c),le&&(q+=m),Y=v.lang&&u[v.lang]&&K?u[v.lang]:K?u.en:{},oe=v.lang&&i[v.lang]?i[v.lang]:v.lang===!1||v.lang===!0?{}:i.en,v.titleCase&&typeof v.titleCase.length=="number"&&Array.prototype.toString.call(v.titleCase)?(v.titleCase.forEach(function(W){te[W+""]=W+""}),I=!0):I=!!v.titleCase,v.custom&&typeof v.custom.length=="number"&&Array.prototype.toString.call(v.custom)&&v.custom.forEach(function(W){te[W+""]=W+""}),Object.keys(te).forEach(function(W){var ie;ie=W.length>1?new RegExp("\\b"+g(W)+"\\b","gi"):new RegExp(g(W),"gi"),h=h.replace(ie,te[W])}),te)q+=T;for(q=g(q+=J),ne=!1,z=!1,X=0,D=(h=h.replace(/(^\s+|\s+$)/g,"")).length;X=0?(F+=T,T=""):z===!0?(T=o[F]+l[T],F=""):T=ne&&l[T].match(/[A-Za-z0-9]/)?" "+l[T]:l[T],ne=!1,z=!1):T in o?(F+=T,T="",X===D-1&&(T=o[F]),z=!0):!Y[T]||U&&s.indexOf(T)!==-1||M&&c.indexOf(T)!==-1?(z===!0?(T=o[F]+T,F="",z=!1):ne&&(/[A-Za-z0-9]/.test(T)||G.substr(-1).match(/A-Za-z0-9]/))&&(T=" "+T),ne=!1):(T=ne||G.substr(-1).match(/[A-Za-z0-9]/)?J+Y[T]:Y[T],T+=h[X+1]!==void 0&&h[X+1].match(/[A-Za-z0-9]/)?J:"",ne=!0),G+=T.replace(new RegExp("[^\\w\\s"+q+"_-]","g"),J);return I&&(G=G.replace(/(\w)(\S*)/g,function(W,ie,b){var L=ie.toUpperCase()+(b!==null?b:"");return Object.keys(te).indexOf(L.toLowerCase())<0?L:L.toLowerCase()})),G=G.replace(/\s+/g,J).replace(new RegExp("\\"+J+"+","g"),J).replace(new RegExp("(^\\"+J+"+|\\"+J+"+$)","g"),""),w&&G.length>w&&(Q=G.charAt(w)===J,G=G.slice(0,w),Q||(G=G.slice(0,G.lastIndexOf(J)))),S||I||(G=G.toLowerCase()),G},V=function(h){return function(v){return p(v,h)}},g=function(h){return h.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(h,v){for(var S in v)if(v[S]===h)return!0};if(n!==void 0&&n.exports)n.exports=p,n.exports.createSlug=V;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(a.getSlug||a.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";a.getSlug=p,a.createSlug=V}catch{}}(e)}}),ol=Mo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,n){k(),n.exports=nl()}});function Lo(e){return function(n){return!(!n||!n.__v_isReadonly)}(e)?Lo(e.__v_raw):!(!e||!e.__v_isReactive)}function Wt(e){return!(!e||e.__v_isRef!==!0)}function dt(e){const n=e&&e.__v_raw;return n?dt(n):e}function al(e){const n=e.__file;if(n)return(a=function(l,r){let o=l.replace(/^[a-z]:/i,"").replace(/\\/g,"/");o.endsWith(`index${r}`)&&(o=o.replace(`/index${r}`,r));const i=o.lastIndexOf("/"),u=o.substring(i+1);{const s=u.lastIndexOf(r);return u.substring(0,s)}}(n,".vue"))&&`${a}`.replace(Ka,qa);var a}function Mn(e,n){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=n,n}function Nt(e){return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__?e.__VUE_DEVTOOLS_NEXT_APP_RECORD__:e.root?e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__:void 0}function zo(e){var n,a;const l=(n=e.subTree)==null?void 0:n.type,r=Nt(e);return!!r&&((a=r==null?void 0:r.types)==null?void 0:a.Fragment)===l}function jt(e){var n,a,l;const r=function(i){var u;const s=i.name||i._componentTag||i.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||i.__name;return s==="index"&&((u=i.__file)!=null&&u.endsWith("index.vue"))?"":s}((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const i in(a=(n=e.parent)==null?void 0:n.type)==null?void 0:a.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return Mn(e,i);for(const i in(l=e.appContext)==null?void 0:l.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return Mn(e,i);return al((e==null?void 0:e.type)||{})||"Anonymous Component"}function Gt(e,n){return n=n||`${e.id}:root`,e.instanceMap.get(n)||e.instanceMap.get(":root")}k(),k(),k(),k(),k(),k(),k(),k();var It,ll=class{constructor(){this.refEditor=new rl}set(e,n,a,l){const r=Array.isArray(n)?n:n.split(".");for(;r.length>1;){const u=r.shift();e instanceof Map&&(e=e.get(u)),e=e instanceof Set?Array.from(e.values())[u]:e[u],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const o=r[0],i=this.refEditor.get(e)[o];l?l(e,o,a):this.refEditor.isRef(i)?this.refEditor.set(i,a):e[o]=a}get(e,n){const a=Array.isArray(n)?n:n.split(".");for(let l=0;lr;)e=e[l.shift()],this.refEditor.isRef(e)&&(e=this.refEditor.get(e));return e!=null&&Object.prototype.hasOwnProperty.call(e,l[0])}createDefaultSetCallback(e){return(n,a,l)=>{if((e.remove||e.newKey)&&(Array.isArray(n)?n.splice(a,1):dt(n)instanceof Map?n.delete(a):dt(n)instanceof Set?n.delete(Array.from(n.values())[a]):Reflect.deleteProperty(n,a)),!e.remove){const r=n[e.newKey||a];this.refEditor.isRef(r)?this.refEditor.set(r,l):dt(n)instanceof Map?n.set(e.newKey||a,l):dt(n)instanceof Set?n.add(l):n[e.newKey||a]=l}}}},rl=class{set(e,n){if(Wt(e))e.value=n;else{if(e instanceof Set&&Array.isArray(n))return e.clear(),void n.forEach(r=>e.add(r));const a=Object.keys(n);if(e instanceof Map){const r=new Set(e.keys());return a.forEach(o=>{e.set(o,Reflect.get(n,o)),r.delete(o)}),void r.forEach(o=>e.delete(o))}const l=new Set(Object.keys(e));a.forEach(r=>{Reflect.set(e,r,Reflect.get(n,r)),l.delete(r)}),l.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return Wt(e)?e.value:e}isRef(e){return Wt(e)||Lo(e)}};function an(e){return zo(e)?function(n){if(!n.children)return[];const a=[];return n.children.forEach(l=>{l.component?a.push(...an(l.component)):l!=null&&l.el&&a.push(l.el)}),a}(e.subTree):e.subTree?[e.subTree.el]:[]}function il(e,n){return(!e.top||n.tope.bottom)&&(e.bottom=n.bottom),(!e.left||n.lefte.right)&&(e.right=n.right),e}k(),k(),k();var Ln={top:0,left:0,right:0,bottom:0,width:0,height:0};function Ze(e){const n=e.subTree.el;return typeof window>"u"?Ln:zo(e)?function(a){const l=function(){const o={top:0,bottom:0,left:0,right:0,get width(){return o.right-o.left},get height(){return o.bottom-o.top}};return o}();if(!a.children)return l;for(let o=0,i=a.children.length;o{n(r)})}}var zn,St=null;function dl(){return new Promise(e=>{function n(){(function(){const a=A.__VUE_INSPECTOR__,l=a.openInEditor;a.openInEditor=async(...r)=>{a.disable(),l(...r)}})(),e(A.__VUE_INSPECTOR__)}A.__VUE_INSPECTOR__?n():function(a){let l=0;const r=setInterval(()=>{A.__VUE_INSPECTOR__&&(clearInterval(r),l+=30,a()),l>=5e3&&clearInterval(r)},30)}(()=>{n()})})}k(),(zn=A).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(zn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0),k(),k(),k();var Fn;function fl(){if(!Uo||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__");return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}k(),k(),k(),(Fn=A).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Fn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Hn,pl=new Proxy(A.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get:(e,n,a)=>Reflect.get(e,n,a)});(Hn=A).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(Hn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var $n,Kn,qn,Wn,Gn,Cn=new Proxy(A.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get:(e,n,a)=>Reflect.get(e,n,a)}),Go=nt(()=>{lt.hooks.callHook("sendInspectorToClient",Yo())});function Yo(){return Cn.filter(e=>e.descriptor.app===Ce.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var n;const a=e.descriptor,l=e.options;return{id:l.id,label:l.label,logo:a.logo,icon:`custom-ic-baseline-${(n=l==null?void 0:l.icon)==null?void 0:n.replace(/_/g,"-")}`,packageName:a.packageName,homepage:a.homepage,pluginId:a.id}})}function Pt(e,n){return Cn.find(a=>a.options.id===e&&(!n||a.descriptor.app===n))}($n=A).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||($n.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]),(Kn=A).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(Kn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={}),(qn=A).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(qn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=""),(Wn=A).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Wn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]),(Gn=A).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Gn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Yn,We="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";(Yn=A)[We]!=null||(Yn[We]={connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:fl()});var vl=nt(e=>{lt.hooks.callHook("devtoolsStateUpdated",{state:e})});nt((e,n)=>{lt.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:n})});var Rt=new Proxy(A.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get:(e,n,a)=>n==="value"?A.__VUE_DEVTOOLS_KIT_APP_RECORDS__:A.__VUE_DEVTOOLS_KIT_APP_RECORDS__[n]}),Ce=new Proxy(A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get:(e,n,a)=>n==="value"?A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:n==="id"?A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[n]});function Zn(){vl({...A[We],appRecords:Rt.value,activeAppRecordId:Ce.id,tabs:A.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:A.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}var Xn,be=new Proxy(A[We],{get:(e,n)=>n==="appRecords"?Rt:n==="activeAppRecordId"?Ce.id:n==="tabs"?A.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:n==="commands"?A.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:A[We][n],deleteProperty:(e,n)=>(delete e[n],!0),set:(e,n,a)=>(A[We],e[n]=a,A[We][n]=a,!0)});function ml(e={}){var n,a,l;const{file:r,host:o,baseUrl:i=window.location.origin,line:u=0,column:s=0}=e;if(r){if(o==="chrome-extension"){r.replace(/\\/g,"\\\\");const c=(a=(n=window.VUE_DEVTOOLS_CONFIG)==null?void 0:n.openInEditorHost)!=null?a:"/";fetch(`${c}__open-in-editor?file=${encodeURI(r)}`).then(m=>{m.ok})}else if(be.vitePluginDetected){const c=(l=A.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?l:i;A.__VUE_INSPECTOR__.openInEditor(c,r,u,s)}}}k(),k(),k(),k(),k(),(Xn=A).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Xn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Jn,Qn,In=new Proxy(A.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get:(e,n,a)=>Reflect.get(e,n,a)});function rn(e){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].defaultValue}),n}function Sn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function hl(e){var n,a,l;const r=(a=(n=In.find(o=>{var i;return o[0].id===e&&!!((i=o[0])!=null&&i.settings)}))==null?void 0:n[0])!=null?a:null;return(l=r==null?void 0:r.settings)!=null?l:null}function Zo(e,n){var a,l,r;const o=Sn(e);if(o){const i=localStorage.getItem(o);if(i)return JSON.parse(i)}if(e){const i=(l=(a=In.find(u=>u[0].id===e))==null?void 0:a[0])!=null?l:null;return rn((r=i==null?void 0:i.settings)!=null?r:{})}return rn(n)}k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k();var xe=(Qn=(Jn=A).__VUE_DEVTOOLS_HOOK)!=null?Qn:Jn.__VUE_DEVTOOLS_HOOK=Bo(),gl={vueAppInit(e){xe.hook("app:init",e)},vueAppUnmount(e){xe.hook("app:unmount",e)},vueAppConnected(e){xe.hook("app:connected",e)},componentAdded:e=>xe.hook("component:added",e),componentEmit:e=>xe.hook("component:emit",e),componentUpdated:e=>xe.hook("component:updated",e),componentRemoved:e=>xe.hook("component:removed",e),setupDevtoolsPlugin(e){xe.hook("devtools-plugin:setup",e)},perfStart:e=>xe.hook("perf:start",e),perfEnd:e=>xe.hook("perf:end",e)},Xo={on:gl,setupDevToolsPlugin:(e,n)=>xe.callHook("devtools-plugin:setup",e,n)},_l=class{constructor({plugin:e,ctx:n}){this.hooks=n.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var n;if(be.highPerfModeEnabled)return;const a=Yo().find(l=>l.packageName===this.plugin.descriptor.packageName);if(a!=null&&a.id){if(e){const l=[e.appContext.app,e.uid,(n=e.parent)==null?void 0:n.uid,e];xe.callHook("component:updated",...l)}else xe.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:a.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&function(n,a){const l=Sn(n);localStorage.getItem(l)||localStorage.setItem(l,JSON.stringify(rn(a)))}(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){be.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){be.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,n){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:n,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return be.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){be.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Zo(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const n=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:n})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}};k(),k(),k(),k();var yl="__vue_devtool_undefined__",bl="__vue_devtool_infinity__",Vl="__vue_devtool_negative_infinity__",El="__vue_devtool_nan__";k(),k();var eo,Ol={[yl]:"undefined",[El]:"NaN",[bl]:"Infinity",[Vl]:"-Infinity"};function Jo(e){A.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||be.highPerfModeEnabled||(A.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),In.forEach(n=>{(function(a,l){const[r,o]=a;if(r.app!==l)return;const i=new _l({plugin:{setupFn:o,descriptor:r},ctx:lt});r.packageName==="vuex"&&i.on.editInspectorState(u=>{i.sendInspectorState(u.inspectorId)}),o(i)})(n,e)}))}Object.entries(Ol).reduce((e,[n,a])=>(e[a]=n,e),{}),k(),k(),k(),k(),k(),(eo=A).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(eo.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set),k(),k();var to,no,oo,ft="__VUE_DEVTOOLS_ROUTER__",Qe="__VUE_DEVTOOLS_ROUTER_INFO__";function un(e){return e.map(n=>{let{path:a,name:l,children:r,meta:o}=n;return r!=null&&r.length&&(r=un(r)),{path:a,name:l,children:r,meta:o}})}function kl(e,n){function a(){var l;const r=(l=e.app)==null?void 0:l.config.globalProperties.$router,o=function(s){if(s){const{fullPath:c,hash:m,href:p,path:V,name:g,matched:y,params:h,query:v}=s;return{fullPath:c,hash:m,href:p,path:V,name:g,params:h,query:v,matched:un(y)}}return s}(r==null?void 0:r.currentRoute.value),i=un(function(s){const c=new Map;return((s==null?void 0:s.getRoutes())||[]).filter(m=>!c.has(m.path)&&c.set(m.path,1))}(r)),u=console.warn;console.warn=()=>{},A[Qe]={currentRoute:o?Dn(o):{},routes:Dn(i)},A[ft]=r,console.warn=u}a(),Xo.on.componentUpdated(nt(()=>{var l;((l=n.value)==null?void 0:l.app)===e.app&&(a(),be.highPerfModeEnabled||lt.hooks.callHook("routerInfoUpdated",{state:A[Qe]}))},200))}(to=A)[Qe]!=null||(to[Qe]={currentRoute:null,routes:[]}),(no=A)[ft]!=null||(no[ft]={}),new Proxy(A[Qe],{get:(e,n)=>A[Qe][n]}),new Proxy(A[ft],{get(e,n){if(n==="value")return A[ft]}}),k(),(oo=A).__VUE_DEVTOOLS_ENV__!=null||(oo.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var ao,ct,lo=function(){const e=Bo();e.hook("addInspector",({inspector:l,plugin:r})=>{(function(o,i){var u,s;Cn.push({options:o,descriptor:i,treeFilterPlaceholder:(u=o.treeFilterPlaceholder)!=null?u:"Search tree...",stateFilterPlaceholder:(s=o.stateFilterPlaceholder)!=null?s:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Nt(i.app)}),Go()})(l,r.descriptor)});const n=nt(async({inspectorId:l,plugin:r})=>{var o;if(!l||!((o=r==null?void 0:r.descriptor)!=null&&o.app)||be.highPerfModeEnabled)return;const i=Pt(l,r.descriptor.app),u={app:r.descriptor.app,inspectorId:l,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(s=>{e.callHookWith(async c=>{await Promise.all(c.map(m=>m(u))),s()},"getInspectorTree")}),e.callHookWith(async s=>{await Promise.all(s.map(c=>c({inspectorId:l,rootNodes:u.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",n);const a=nt(async({inspectorId:l,plugin:r})=>{var o;if(!l||!((o=r==null?void 0:r.descriptor)!=null&&o.app)||be.highPerfModeEnabled)return;const i=Pt(l,r.descriptor.app),u={app:r.descriptor.app,inspectorId:l,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},s={currentTab:`custom-inspector:${l}`};u.nodeId&&await new Promise(c=>{e.callHookWith(async m=>{await Promise.all(m.map(p=>p(u,s))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(m=>m({inspectorId:l,nodeId:u.nodeId,state:u.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",a),e.hook("customInspectorSelectNode",({inspectorId:l,nodeId:r,plugin:o})=>{const i=Pt(l,o.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:l,plugin:r})=>{(function(o,i){be.timelineLayersState[i.id]=!1,pl.push({...o,descriptorId:i.id,appRecord:Nt(i.app)})})(l,r.descriptor)}),e.hook("timelineEventAdded",({options:l,plugin:r})=>{var o;be.highPerfModeEnabled||!((o=be.timelineLayersState)!=null&&o[r.descriptor.id])&&!["performance","component-event","keyboard","mouse"].includes(l.layerId)||e.callHookWith(async i=>{await Promise.all(i.map(u=>u(l)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:l})=>{const r=l.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const o=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===o).map(([,i])=>i)}),e.hook("getComponentBounds",async({instance:l})=>Ze(l)),e.hook("getComponentName",({instance:l})=>jt(l)),e.hook("componentHighlight",({uid:l})=>{const r=Ce.value.instanceMap.get(l);r&&function(o){const i=Ze(o);if(!i.width&&!i.height)return;const u=jt(o);ot()?kn({bounds:i,name:u}):On({bounds:i,name:u})}(r)}),e.hook("componentUnhighlight",()=>{Wo()}),e}();(ao=A).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ao.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:lo,get state(){return{...be,activeAppRecordId:Ce.id,activeAppRecord:Ce.value,appRecords:Rt.value}},api:(ct=lo,{async getInspectorTree(e){const n={...e,app:Ce.value.app,rootNodes:[]};return await new Promise(a=>{ct.callHookWith(async l=>{await Promise.all(l.map(r=>r(n))),a()},"getInspectorTree")}),n.rootNodes},async getInspectorState(e){const n={...e,app:Ce.value.app,state:null},a={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(l=>{ct.callHookWith(async r=>{await Promise.all(r.map(o=>o(n,a))),l()},"getInspectorState")}),n.state},editInspectorState(e){const n=new ll,a={...e,app:Ce.value.app,set:(l,r=e.path,o=e.state.value,i)=>{n.set(l,r,o,i||n.createDefaultSetCallback(e.state))}};ct.callHookWith(l=>{l.forEach(r=>r(a))},"editInspectorState")},sendInspectorState(e){const n=Pt(e);ct.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector:()=>(window.addEventListener("mouseover",Yt),new Promise(e=>{function n(a){a.preventDefault(),a.stopPropagation(),cl(a,l=>{window.removeEventListener("click",n,!0),St=null,window.removeEventListener("mouseover",Yt);const r=ot();r&&(r.style.display="none"),e(JSON.stringify({id:l}))})}St=n,window.addEventListener("click",n,!0)})),cancelInspectComponentInspector:()=>(Wo(),window.removeEventListener("mouseover",Yt),window.removeEventListener("click",St,!0),void(St=null)),getComponentRenderCode(e){const n=Gt(Ce.value,e);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent:e=>function(n){const a=Gt(Ce.value,n.id);if(a){const[l]=an(a);if(typeof l.scrollIntoView=="function")l.scrollIntoView({behavior:"smooth"});else{const r=Ze(a),o=document.createElement("div"),i={...En(r),position:"absolute"};Object.assign(o.style,i),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=Ze(a);if(r.width||r.height){const o=jt(a),i=ot();i?kn({...n,name:o,bounds:r}):On({...n,name:o,bounds:r}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}({id:e}),openInEditor:ml,getVueInspector:dl,toggleApp(e){const n=Rt.value.find(l=>l.id===e);var a;n&&(function(l){A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=l,Zn()}(e),a=n,A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=a,Zn(),kl(n,Ce),Go(),Jo(n.app))},inspectDOM(e){const n=Gt(Ce.value,e);if(n){const[a]=an(n);a&&(A.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=a)}},updatePluginSettings(e,n,a){(function(l,r,o){const i=Sn(l),u=localStorage.getItem(i),s=JSON.parse(u||"{}"),c={...s,[r]:o};localStorage.setItem(i,JSON.stringify(c)),lt.hooks.callHookWith(m=>{m.forEach(p=>p({pluginId:l,key:r,oldValue:s[r],newValue:o,settings:c}))},"setPluginSettings")})(e,n,a)},getPluginSettings:e=>({options:hl(e),values:Zo(e)})})});var ro,io,lt=A.__VUE_DEVTOOLS_KIT_CONTEXT__;k(),((e,n,a)=>{a=e!=null?Ja(el(e)):{},((l,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of Vn(r))tl.call(l,u)||u===o||Bn(l,u,{get:()=>r[u],enumerable:!(i=Qa(r,u))||i.enumerable})})(Bn(a,"default",{value:e,enumerable:!0}),e)})(ol()),(ro=A).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(ro.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),k(),k(),k(),k(),(io=A).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(io.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=function(e){be.devtoolsClientDetected={...be.devtoolsClientDetected,...e};const n=Object.values(be.devtoolsClientDetected).some(Boolean);var a;a=!n,be.highPerfModeEnabled=a??!be.highPerfModeEnabled,!a&&Ce.value&&Jo(Ce.value.app)}),k(),k(),k(),k(),k(),k(),k();var Cl=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,n){this.keyToValue.set(e,n),this.valueToKey.set(n,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Qo=class{constructor(e){this.generateIdentifier=e,this.kv=new Cl}register(e,n){this.kv.getByValue(e)||(n||(n=this.generateIdentifier(e)),this.kv.set(n,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Il=class extends Qo{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(e,n.allowProps),super.register(e,n.identifier)):super.register(e,n)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Sl(e,n){const a=function(r){if("values"in Object)return Object.values(r);const o=[];for(const i in r)r.hasOwnProperty(i)&&o.push(r[i]);return o}(e);if("find"in a)return a.find(n);const l=a;for(let r=0;rn(l,a))}function At(e,n){return e.indexOf(n)!==-1}function uo(e,n){for(let a=0;an.isApplicable(e))}findByName(e){return this.transfomers[e]}};k(),k();var ea=e=>e===void 0,bt=e=>typeof e=="object"&&e!==null&&e!==Object.prototype&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),sn=e=>bt(e)&&Object.keys(e).length===0,Fe=e=>Array.isArray(e),Vt=e=>e instanceof Map,Et=e=>e instanceof Set,ta=e=>(n=>Object.prototype.toString.call(n).slice(8,-1))(e)==="Symbol",so=e=>typeof e=="number"&&isNaN(e),Tl=e=>(n=>typeof n=="boolean")(e)||(n=>n===null)(e)||ea(e)||(n=>typeof n=="number"&&!isNaN(n))(e)||(n=>typeof n=="string")(e)||ta(e);k();var na=e=>e.replace(/\./g,"\\."),Zt=e=>e.map(String).map(na).join("."),ht=e=>{const n=[];let a="";for(let r=0;rnull,()=>{}),De(e=>typeof e=="bigint","bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),De(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),De(e=>e instanceof Error,"Error",(e,n)=>{const a={name:e.name,message:e.message};return n.allowedErrorProps.forEach(l=>{a[l]=e[l]}),a},(e,n)=>{const a=new Error(e.message);return a.name=e.name,a.stack=e.stack,n.allowedErrorProps.forEach(l=>{a[l]=e[l]}),a}),De(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const n=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(n,a)}),De(Et,"set",e=>[...e.values()],e=>new Set(e)),De(Vt,"map",e=>[...e.entries()],e=>new Map(e)),De(e=>{return so(e)||(n=e)===1/0||n===-1/0;var n},"number",e=>so(e)?"NaN":e>0?"Infinity":"-Infinity",Number),De(e=>e===0&&1/e==-1/0,"number",()=>"-0",Number),De(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Lt(e,n,a,l){return{isApplicable:e,annotation:n,transform:a,untransform:l}}var aa=Lt((e,n)=>ta(e)?!!n.symbolRegistry.getIdentifier(e):!1,(e,n)=>["symbol",n.symbolRegistry.getIdentifier(e)],e=>e.description,(e,n,a)=>{const l=a.symbolRegistry.getValue(n[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),xl=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,n)=>(e[n.name]=n,e),{}),la=Lt(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,n)=>{const a=xl[n[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});function ra(e,n){return e!=null&&e.constructor?!!n.classRegistry.getIdentifier(e.constructor):!1}var ia=Lt(ra,(e,n)=>["class",n.classRegistry.getIdentifier(e.constructor)],(e,n)=>{const a=n.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};const l={};return a.forEach(r=>{l[r]=e[r]}),l},(e,n,a)=>{const l=a.classRegistry.getValue(n[1]);if(!l)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(l.prototype),e)}),ua=Lt((e,n)=>!!n.customTransformerRegistry.findApplicable(e),(e,n)=>["custom",n.customTransformerRegistry.findApplicable(e).name],(e,n)=>n.customTransformerRegistry.findApplicable(e).serialize(e),(e,n,a)=>{const l=a.customTransformerRegistry.findByName(n[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(e)}),Pl=[ia,aa,ua,la],co=(e,n)=>{const a=uo(Pl,r=>r.isApplicable(e,n));if(a)return{value:a.transform(e,n),type:a.annotation(e,n)};const l=uo(oa,r=>r.isApplicable(e,n));return l?{value:l.transform(e,n),type:l.annotation}:void 0},sa={};oa.forEach(e=>{sa[e.annotation]=e});k();var et=(e,n)=>{const a=e.keys();for(;n>0;)a.next(),n--;return a.next().value};function ca(e){if(At(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(At(e,"prototype"))throw new Error("prototype is not allowed as a property");if(At(e,"constructor"))throw new Error("constructor is not allowed as a property")}var cn=(e,n,a)=>{if(ca(n),n.length===0)return a(e);let l=e;for(let o=0;odn(o,n,[...a,...ht(i)]));const[l,r]=e;r&&at(r,(o,i)=>{dn(o,n,[...a,...ht(i)])}),n(l,a)}function Al(e,n,a){return dn(n,(l,r)=>{e=cn(e,r,o=>((i,u,s)=>{if(!Fe(u)){const c=sa[u];if(!c)throw new Error("Unknown transformation: "+u);return c.untransform(i,s)}switch(u[0]){case"symbol":return aa.untransform(i,u,s);case"class":return ia.untransform(i,u,s);case"custom":return ua.untransform(i,u,s);case"typed-array":return la.untransform(i,u,s);default:throw new Error("Unknown transformation: "+u)}})(o,l,a))}),e}function Nl(e,n){function a(l,r){const o=((i,u)=>{ca(u);for(let s=0;s{e=cn(e,i,()=>o)})}if(Fe(n)){const[l,r]=n;l.forEach(o=>{e=cn(e,ht(o),()=>e)}),r&&at(r,a)}else at(n,a);return e}var da=(e,n,a,l,r=[],o=[],i=new Map)=>{var u;const s=Tl(e);if(!s){(function(h,v,S){const I=S.get(h);I?I.push(v):S.set(h,[v])})(e,r,n);const y=i.get(e);if(y)return l?{transformedValue:null}:y}if(!((y,h)=>bt(y)||Fe(y)||Vt(y)||Et(y)||ra(y,h))(e,a)){const y=co(e,a),h=y?{transformedValue:y.value,annotations:[y.type]}:{transformedValue:e};return s||i.set(e,h),h}if(At(o,e))return{transformedValue:null};const c=co(e,a),m=(u=c==null?void 0:c.value)!=null?u:e,p=Fe(m)?[]:{},V={};at(m,(y,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);const v=da(y,n,a,l,[...r,h],[...o,e],i);p[h]=v.transformedValue,Fe(v.annotations)?V[h]=v.annotations:bt(v.annotations)&&at(v.annotations,(S,I)=>{V[na(h)+"."+I]=S})});const g=sn(V)?{transformedValue:p,annotations:c?[c.type]:void 0}:{transformedValue:p,annotations:c?[c.type,V]:V};return s||i.set(e,g),g};function fa(e){return Object.prototype.toString.call(e).slice(8,-1)}function fo(e){return fa(e)==="Array"}function fn(e,n={}){return fo(e)?e.map(a=>fn(a,n)):function(a){if(fa(a)!=="Object")return!1;const l=Object.getPrototypeOf(a);return!!l&&l.constructor===Object&&l===Object.prototype}(e)?[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((a,l)=>(fo(n.props)&&!n.props.includes(l)||function(r,o,i,u,s){const c={}.propertyIsEnumerable.call(u,o)?"enumerable":"nonenumerable";c==="enumerable"&&(r[o]=i),s&&c==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}(a,l,fn(e[l],n),e,n.nonenumerable),a),{}):e}k(),k();var po,vo,mo,ho,go,_o,ce=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Il,this.symbolRegistry=new Qo(n=>{var a;return(a=n.description)!=null?a:""}),this.customTransformerRegistry=new wl,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const n=new Map,a=da(e,n,this,this.dedupe),l={json:a.transformedValue};a.annotations&&(l.meta={...l.meta,values:a.annotations});const r=function(o,i){const u={};let s;return o.forEach(c=>{if(c.length<=1)return;i||(c=c.map(V=>V.map(String)).sort((V,g)=>V.length-g.length));const[m,...p]=c;m.length===0?s=p.map(Zt):u[Zt(m)]=p.map(Zt)}),s?sn(u)?[s]:[s,u]:sn(u)?void 0:u}(n,this.dedupe);return r&&(l.meta={...l.meta,referentialEqualities:r}),l}deserialize(e){const{json:n,meta:a}=e;let l=fn(n);return a!=null&&a.values&&(l=Al(l,a.values,this)),a!=null&&a.referentialEqualities&&(l=Nl(l,a.referentialEqualities)),l}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,n){this.classRegistry.register(e,n)}registerSymbol(e,n){this.symbolRegistry.register(e,n)}registerCustom(e,n){this.customTransformerRegistry.register({name:n,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};/** - * vee-validate v4.14.7 - * (c) 2024 Abdelrahman Awad - * @license MIT - */function Ee(e){return typeof e=="function"}function pa(e){return e==null}ce.defaultInstance=new ce,ce.serialize=ce.defaultInstance.serialize.bind(ce.defaultInstance),ce.deserialize=ce.defaultInstance.deserialize.bind(ce.defaultInstance),ce.stringify=ce.defaultInstance.stringify.bind(ce.defaultInstance),ce.parse=ce.defaultInstance.parse.bind(ce.defaultInstance),ce.registerClass=ce.defaultInstance.registerClass.bind(ce.defaultInstance),ce.registerSymbol=ce.defaultInstance.registerSymbol.bind(ce.defaultInstance),ce.registerCustom=ce.defaultInstance.registerCustom.bind(ce.defaultInstance),ce.allowErrorProps=ce.defaultInstance.allowErrorProps.bind(ce.defaultInstance),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),(po=A).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(po.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]),(vo=A).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(vo.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null),(mo=A).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(mo.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null),(ho=A).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(ho.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null),(go=A).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(go.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null),(_o=A).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(_o.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),k(),k(),k(),k(),k(),k(),k();const He=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function wn(e){return Number(e)>=0}function yo(e){if(!function(a){return typeof a=="object"&&a!==null}(e)||function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(a)}(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function pt(e,n){return Object.keys(n).forEach(a=>{if(yo(n[a])&&yo(e[a]))return e[a]||(e[a]={}),void pt(e[a],n[a]);e[a]=n[a]}),e}function vt(e){const n=e.split(".");if(!n.length)return"";let a=String(n[0]);for(let l=1;l{return(He(o=l)||Array.isArray(o))&&r in l?l[r]:a;var o},e):a}function Be(e,n,a){if(zt(n))return void(e[xn(n)]=a);const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let o=0;owe(e,a.slice(0,u).join(".")));for(let i=r.length-1;i>=0;i--)o=r[i],(Array.isArray(o)?o.length===0:He(o)&&Object.keys(o).length===0)&&(i!==0?Xt(r[i-1],a[i-1]):Xt(e,a[0]));var o}function Se(e){return Object.keys(e)}function ma(e,n=void 0){const a=t.getCurrentInstance();return(a==null?void 0:a.provides[e])||t.inject(e,n)}function Io(e,n,a){if(Array.isArray(e)){const l=[...e],r=l.findIndex(o=>Ie(o,n));return r>=0?l.splice(r,1):l.push(n),l}return Ie(e,n)?a:n}function So(e,n=0){let a=null,l=[];return function(...r){return a&&clearTimeout(a),a=setTimeout(()=>{const o=e(...r);l.forEach(i=>i(o)),l=[]},n),new Promise(o=>l.push(o))}}function Ml(e,n){return He(n)&&n.number?function(a){const l=parseFloat(a);return isNaN(l)?a:l}(e):e}function vn(e,n){let a;return async function(...l){const r=e(...l);a=r;const o=await r;return r!==a?o:(a=void 0,n(o,l))}}function mn(e){return Array.isArray(e)?e:e?[e]:[]}function wt(e,n){const a={};for(const l in e)n.includes(l)||(a[l]=e[l]);return a}function Jt(e){if(ha(e))return e._value}function ha(e){return"_value"in e}function Bt(e){if(!va(e))return e;const n=e.target;if(Ot(n.type)&&ha(n))return Jt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(Vo(a=n)&&a.multiple)return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(Jt);var a;if(Vo(n)){const l=Array.from(n.options).find(r=>r.selected);return l?Jt(l):n.value}return function(l){return l.type==="number"||l.type==="range"?Number.isNaN(l.valueAsNumber)?l.value:l.valueAsNumber:l.value}(n)}function ga(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?He(e)&&e._$$isNormalized?e:He(e)?Object.keys(e).reduce((a,l)=>{const r=function(o){return o===!0?[]:Array.isArray(o)||He(o)?o:[o]}(e[l]);return e[l]!==!1&&(a[l]=wo(r)),a},n):typeof e!="string"?n:e.split("|").reduce((a,l)=>{const r=Ll(l);return r.name&&(a[r.name]=wo(r.params)),a},n):n}function wo(e){const n=a=>typeof a=="string"&&a[0]==="@"?function(l){const r=o=>{var i;return(i=we(o,l))!==null&&i!==void 0?i:o[l]};return r.__locatorRef=l,r}(a.slice(1)):a;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((a,l)=>(a[l]=n(e[l]),a),{})}const Ll=e=>{let n=[];const a=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:a,params:n}};let zl=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const Ge=()=>zl;async function _a(e,n,a={}){const l=a==null?void 0:a.bails,r={name:(a==null?void 0:a.name)||"{field}",rules:n,label:a==null?void 0:a.label,bails:l==null||l,formData:(a==null?void 0:a.values)||{}},o=await async function(i,u){const s=i.rules;if(Ne(s)||Dt(s))return async function(g,y){const h=Ne(y.rules)?y.rules:ya(y.rules),v=await h.parse(g,{formData:y.formData}),S=[];for(const I of v.errors)I.errors.length&&S.push(...I.errors);return{value:v.value,errors:S}}(u,Object.assign(Object.assign({},i),{rules:s}));if(Ee(s)||Array.isArray(s)){const g={field:i.label||i.name,name:i.name,label:i.label,form:i.formData,value:u},y=Array.isArray(s)?s:[s],h=y.length,v=[];for(let S=0;S{const c=s.path||"";return u[c]||(u[c]={errors:[],path:c}),u[c].errors.push(...s.errors),u},{});return{errors:Object.values(i)}}}}}async function Fl(e,n,a){const l=(r=a.name,jl[r]);var r;if(!l)throw new Error(`No such validator '${a.name}' exists.`);const o=function(s,c){const m=p=>pn(p)?p(c):p;return Array.isArray(s)?s.map(m):Object.keys(s).reduce((p,V)=>(p[V]=m(s[V]),p),{})}(a.params,e.formData),i={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},a),{params:o})},u=await l(n,o,i);return typeof u=="string"?{error:u}:{error:u?void 0:ba(i)}}function ba(e){const n=Ge().generateMessage;return n?n(e):"Field is invalid"}async function Hl(e,n,a){const l=Se(e).map(async s=>{var c,m,p;const V=(c=a==null?void 0:a.names)===null||c===void 0?void 0:c[s],g=await _a(we(n,s),e[s],{name:(V==null?void 0:V.name)||s,label:V==null?void 0:V.label,values:n,bails:(p=(m=a==null?void 0:a.bailsMap)===null||m===void 0?void 0:m[s])===null||p===void 0||p});return Object.assign(Object.assign({},g),{path:s})});let r=!0;const o=await Promise.all(l),i={},u={};for(const s of o)i[s.path]={valid:s.valid,errors:s.errors},s.valid||(r=!1,u[s.path]=s.errors[0]);return{valid:r,results:i,errors:u,source:"schema"}}let To=0;function $l(e,n){const{value:a,initialValue:l,setInitialValue:r}=function(u,s,c){const m=t.ref(t.unref(s));function p(){return c?we(c.initialValues.value,t.unref(u),t.unref(m)):t.unref(m)}function V(v){c?c.setFieldInitialValue(t.unref(u),v,!0):m.value=v}const g=t.computed(p);if(!c)return{value:t.ref(p()),initialValue:g,setInitialValue:V};const y=function(v,S,I,w){return t.isRef(v)?t.unref(v):v!==void 0?v:we(S.values,t.unref(w),t.unref(I))}(s,c,g,u);return c.stageInitialValue(t.unref(u),y,!0),{value:t.computed({get:()=>we(c.values,t.unref(u)),set(v){c.setFieldValue(t.unref(u),v,!1)}}),initialValue:g,setInitialValue:V}}(e,n.modelValue,n.form);if(!n.form){let p=function(V){var g;"value"in V&&(a.value=V.value),"errors"in V&&s(V.errors),"touched"in V&&(m.touched=(g=V.touched)!==null&&g!==void 0?g:m.touched),"initialValue"in V&&r(V.initialValue)};const{errors:u,setErrors:s}=function(){const V=t.ref([]);return{errors:V,setErrors:g=>{V.value=mn(g)}}}(),c=To>=Number.MAX_SAFE_INTEGER?0:++To,m=function(V,g,y,h){const v=t.computed(()=>{var I,w,U;return(U=(w=(I=t.toValue(h))===null||I===void 0?void 0:I.describe)===null||w===void 0?void 0:w.call(I).required)!==null&&U!==void 0&&U}),S=t.reactive({touched:!1,pending:!1,valid:!0,required:v,validated:!!t.unref(y).length,initialValue:t.computed(()=>t.unref(g)),dirty:t.computed(()=>!Ie(t.unref(V),t.unref(g)))});return t.watch(y,I=>{S.valid=!I.length},{immediate:!0,flush:"sync"}),S}(a,l,u,n.schema);return{id:c,path:e,value:a,initialValue:l,meta:m,flags:{pendingUnmount:{[c]:!1},pendingReset:!1},errors:u,setState:p}}const o=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),i=t.computed(()=>o.errors);return{id:Array.isArray(o.id)?o.id[o.id.length-1]:o.id,path:e,value:a,errors:i,meta:o,initialValue:l,flags:o.__flags,setState:function(u){var s,c,m;"value"in u&&(a.value=u.value),"errors"in u&&((s=n.form)===null||s===void 0||s.setFieldError(t.unref(e),u.errors)),"touched"in u&&((c=n.form)===null||c===void 0||c.setFieldTouched(t.unref(e),(m=u.touched)!==null&&m!==void 0&&m)),"initialValue"in u&&r(u.initialValue)}}}const gt={},_t={},yt="vee-validate-inspector",Kl=12405579,ql=448379,Wl=5522283,Mt=16777215,hn=0,Gl=218007,Yl=12157168,Zl=16099682,Xl=12304330;let Ye,_e=null;function Va(e){var n,a;process.env.NODE_ENV!=="production"&&(n={id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},a=l=>{Ye=l,l.addInspector({id:yt,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{_e?_e.type!=="field"?_e.type!=="form"?_e.type==="pathState"&&await _e.form.validateField(_e.state.path):await _e.form.validate():await _e.field.validate():console.error("There is not a valid selected vee-validate node or component")}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{_e?_e.type!=="field"?(_e.type==="form"&&_e.form.resetForm(),_e.type==="pathState"&&_e.form.resetField(_e.state.path)):_e.field.resetField():console.error("There is not a valid selected vee-validate node or component")}}]}),l.on.getInspectorTree(r=>{if(r.inspectorId!==yt)return;const o=Object.values(gt),i=Object.values(_t);r.rootNodes=[...o.map(Jl),...i.map(u=>function(s,c){return{id:gn(c,s),label:t.unref(s.name),tags:Ea(!1,1,s.type,s.meta.valid,c)}}(u))]}),l.on.getInspectorState(r=>{if(r.inspectorId!==yt)return;const{form:o,field:i,state:u,type:s}=function(c){try{const m=JSON.parse(decodeURIComponent(atob(c))),p=gt[m.f];if(!p&&m.ff){const g=_t[m.ff];return g?{type:m.type,field:g}:{}}if(!p)return{};const V=p.getPathState(m.ff);return{type:m.type,form:p,state:V}}catch{}return{}}(r.nodeId);return l.unhighlightElement(),o&&s==="form"?(r.state=function(c){const{errorBag:m,meta:p,values:V,isSubmitting:g,isValidating:y,submitCount:h}=c;return{"Form state":[{key:"submitCount",value:h.value},{key:"isSubmitting",value:g.value},{key:"isValidating",value:y.value},{key:"touched",value:p.value.touched},{key:"dirty",value:p.value.dirty},{key:"valid",value:p.value.valid},{key:"initialValues",value:p.value.initialValues},{key:"currentValues",value:V},{key:"errors",value:Se(m.value).reduce((v,S)=>{var I;const w=(I=m.value[S])===null||I===void 0?void 0:I[0];return w&&(v[S]=w),v},{})}]}}(o),_e={type:"form",form:o},void l.highlightElement(o._vm)):u&&s==="pathState"&&o?(r.state=xo(u),void(_e={type:"pathState",state:u,form:o})):i&&s==="field"?(r.state=xo({errors:i.errors.value,dirty:i.meta.dirty,valid:i.meta.valid,touched:i.meta.touched,value:i.value.value,initialValue:i.meta.initialValue}),_e={field:i,type:"field"},void l.highlightElement(i._vm)):(_e=null,void l.unhighlightElement())})},Xo.setupDevToolsPlugin(n,a))}const tt=function(e,n){let a,l;return function(...r){const o=this;return a||(a=!0,setTimeout(()=>a=!1,n),l=e.apply(o,r)),l}}(()=>{setTimeout(async()=>{await t.nextTick(),Ye==null||Ye.sendInspectorState(yt),Ye==null||Ye.sendInspectorTree(yt)},100)},100);function Jl(e){const{textColor:n,bgColor:a}=Oa(e.meta.value.valid),l={};Object.values(e.getAllPathStates()).forEach(o=>{Be(l,t.toValue(o.path),function(i,u){return{id:gn(u,i),label:t.toValue(i.path),tags:Ea(i.multiple,i.fieldsCount,i.type,i.valid,u)}}(o,e))});const{children:r}=function o(i,u=[]){const s=[...u].pop();return"id"in i?Object.assign(Object.assign({},i),{label:s||i.label}):He(i)?{id:`${u.join(".")}`,label:s||"",children:Object.keys(i).map(c=>o(i[c],[...u,c]))}:Array.isArray(i)?{id:`${u.join(".")}`,label:`${s}[]`,children:i.map((c,m)=>o(c,[...u,String(m)]))}:{id:"",label:"",children:[]}}(l);return{id:gn(e),label:e.name,children:r,tags:[{label:"Form",textColor:n,backgroundColor:a},{label:`${e.getAllPathStates().length} fields`,textColor:Mt,backgroundColor:Wl}]}}function Ea(e,n,a,l,r){const{textColor:o,bgColor:i}=Oa(l);return[e?void 0:{label:"Field",textColor:o,backgroundColor:i},r?void 0:{label:"Standalone",textColor:hn,backgroundColor:Xl},a==="checkbox"?{label:"Checkbox",textColor:Mt,backgroundColor:Gl}:void 0,a==="radio"?{label:"Radio",textColor:Mt,backgroundColor:Yl}:void 0,e?{label:"Multiple",textColor:hn,backgroundColor:Zl}:void 0].filter(Boolean)}function gn(e,n){const a=n?"path"in n?"pathState":"field":"form",l=n?"path"in n?n==null?void 0:n.path:t.toValue(n==null?void 0:n.name):"",r={f:e==null?void 0:e.formId,ff:(n==null?void 0:n.id)||l,type:a};return btoa(encodeURIComponent(JSON.stringify(r)))}function xo(e){return{"Field state":[{key:"errors",value:e.errors},{key:"initialValue",value:e.initialValue},{key:"currentValue",value:e.value},{key:"touched",value:e.touched},{key:"dirty",value:e.dirty},{key:"valid",value:e.valid}]}}function Oa(e){return{bgColor:e?ql:Kl,textColor:e?hn:Mt}}function rt(e,n,a){return Ot(a==null?void 0:a.type)?function(l,r,o){const i=o!=null&&o.standalone?void 0:ma(Tn),u=o==null?void 0:o.checkedValue,s=o==null?void 0:o.uncheckedValue;function c(m){const p=m.handleChange,V=t.computed(()=>{const y=t.toValue(m.value),h=t.toValue(u);return Array.isArray(y)?y.findIndex(v=>Ie(v,h))>=0:Ie(h,y)});function g(y,h=!0){var v,S;if(V.value===((v=y==null?void 0:y.target)===null||v===void 0?void 0:v.checked))return void(h&&m.validate());const I=t.toValue(l),w=i==null?void 0:i.getPathState(I),U=Bt(y);let M=(S=t.toValue(u))!==null&&S!==void 0?S:U;i&&(w!=null&&w.multiple)&&w.type==="checkbox"?M=Io(we(i.values,I)||[],M,void 0):(o==null?void 0:o.type)==="checkbox"&&(M=Io(t.toValue(m.value),M,t.toValue(s))),p(M,h)}return Object.assign(Object.assign({},m),{checked:V,checkedValue:u,uncheckedValue:s,handleChange:g})}return c(Po(l,r,o))}(e,n,a):Po(e,n,a)}function Po(e,n,a){const{initialValue:l,validateOnMount:r,bails:o,type:i,checkedValue:u,label:s,validateOnValueUpdate:c,uncheckedValue:m,controlled:p,keepValueOnUnmount:V,syncVModel:g,form:y}=function(b){const L=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),ae=!!(b!=null&&b.syncVModel),B=typeof(b==null?void 0:b.syncVModel)=="string"?b.syncVModel:(b==null?void 0:b.modelPropName)||"modelValue",re=ae&&!("initialValue"in(b||{}))?Qt(t.getCurrentInstance(),B):b==null?void 0:b.initialValue;if(!b)return Object.assign(Object.assign({},L()),{initialValue:re});const ee="valueProp"in b?b.valueProp:b.checkedValue,ge="standalone"in b?!b.standalone:b.controlled,se=(b==null?void 0:b.modelPropName)||(b==null?void 0:b.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},L()),b||{}),{initialValue:re,controlled:ge==null||ge,checkedValue:ee,syncVModel:se})}(a),h=p?ma(Tn):void 0,v=y||h,S=t.computed(()=>vt(t.toValue(e))),I=t.computed(()=>{if(t.toValue(v==null?void 0:v.schema))return;const b=t.unref(n);return Dt(b)||Ne(b)||Ee(b)||Array.isArray(b)?b:ga(b)}),w=!Ee(I.value)&&Ne(t.toValue(n)),{id:U,value:M,initialValue:le,meta:Y,setState:oe,errors:Q,flags:X}=$l(S,{modelValue:l,form:v,bails:o,label:s,type:i,validate:I.value?J:void 0,schema:w?n:void 0}),T=t.computed(()=>Q.value[0]);g&&function({prop:b,value:L,handleChange:ae,shouldValidate:B}){const re=t.getCurrentInstance();if(!re||!b)return void(process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup."));const ee=typeof b=="string"?b:"modelValue",ge=`update:${ee}`;ee in re.props&&(t.watch(L,se=>{Ie(se,Qt(re,ee))||re.emit(ge,se)}),t.watch(()=>Qt(re,ee),se=>{if(se===Ut&&L.value===void 0)return;const O=se===Ut?void 0:se;Ie(O,L.value)||ae(O,B())}))}({value:M,prop:g,handleChange:G,shouldValidate:()=>c&&!X.pendingReset});async function D(b){var L,ae;if(v!=null&&v.validateSchema){const{results:B}=await v.validateSchema(b);return(L=B[t.toValue(S)])!==null&&L!==void 0?L:{valid:!0,errors:[]}}return I.value?_a(M.value,I.value,{name:t.toValue(S),label:t.toValue(s),values:(ae=v==null?void 0:v.values)!==null&&ae!==void 0?ae:{},bails:o}):{valid:!0,errors:[]}}const ne=vn(async()=>(Y.pending=!0,Y.validated=!0,D("validated-only")),b=>(X.pendingUnmount[W.id]||(oe({errors:b.errors}),Y.pending=!1,Y.valid=b.valid),b)),z=vn(async()=>D("silent"),b=>(Y.valid=b.valid,b));function J(b){return(b==null?void 0:b.mode)==="silent"?z():ne()}function G(b,L=!0){te(Bt(b),L)}function F(b){var L;const ae=b&&"value"in b?b.value:le.value;oe({value:ue(ae),initialValue:ue(ae),touched:(L=b==null?void 0:b.touched)!==null&&L!==void 0&&L,errors:(b==null?void 0:b.errors)||[]}),Y.pending=!1,Y.validated=!1,z()}t.onMounted(()=>{if(r)return ne();v&&v.validateSchema||z()});const K=t.getCurrentInstance();function te(b,L=!0){M.value=K&&g?Ml(b,K.props.modelModifiers):b,(L?ne:z)()}const q=t.computed({get:()=>M.value,set(b){te(b,c)}}),W={id:U,name:S,label:s,value:q,meta:Y,errors:Q,errorMessage:T,type:i,checkedValue:u,uncheckedValue:m,bails:o,keepValueOnUnmount:V,resetField:F,handleReset:()=>F(),validate:J,handleChange:G,handleBlur:(b,L=!1)=>{Y.touched=!0,L&&ne()},setState:oe,setTouched:function(b){Y.touched=b},setErrors:function(b){oe({errors:Array.isArray(b)?b:[b]})},setValue:te};if(t.provide(Ul,W),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(b,L)=>{Ie(b,L)||(Y.validated?ne():z())},{deep:!0}),process.env.NODE_ENV!=="production"&&(W._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:Q.value},Y),{value:M.value}),tt,{deep:!0}),v||function(b){const L=t.getCurrentInstance();if(!Ye){const ae=L==null?void 0:L.appContext.app;if(!ae)return;Va(ae)}_t[b.id]=Object.assign({},b),_t[b.id]._vm=L,t.onUnmounted(()=>{delete _t[b.id],tt()}),tt()}(W)),!v)return W;const ie=t.computed(()=>{const b=I.value;return!b||Ee(b)||Dt(b)||Ne(b)||Array.isArray(b)?{}:Object.keys(b).reduce((L,ae)=>{const B=(re=b[ae],Array.isArray(re)?re.filter(pn):Se(re).filter(ee=>pn(re[ee])).map(ee=>re[ee])).map(ee=>ee.__locatorRef).reduce((ee,ge)=>{const se=we(v.values,ge)||v.values[ge];return se!==void 0&&(ee[ge]=se),ee},{});var re;return Object.assign(L,B),L},{})});return t.watch(ie,(b,L)=>{Object.keys(b).length&&!Ie(b,L)&&(Y.validated?ne():z())}),t.onBeforeUnmount(()=>{var b;const L=(b=t.toValue(W.keepValueOnUnmount))!==null&&b!==void 0?b:t.toValue(v.keepValuesOnUnmount),ae=t.toValue(S);if(L||!v||X.pendingUnmount[W.id])return void(v==null||v.removePathState(ae,U));X.pendingUnmount[W.id]=!0;const B=v.getPathState(ae);if(Array.isArray(B==null?void 0:B.id)&&(B!=null&&B.multiple)?B!=null&&B.id.includes(W.id):(B==null?void 0:B.id)===W.id){if(B!=null&&B.multiple&&Array.isArray(B.value)){const re=B.value.findIndex(ee=>Ie(ee,t.toValue(W.checkedValue)));if(re>-1){const ee=[...B.value];ee.splice(re,1),v.setFieldValue(ae,ee)}Array.isArray(B.id)&&B.id.splice(B.id.indexOf(W.id),1)}else v.unsetPathValue(t.toValue(S));v.removePathState(ae,U)}}),W}function Qt(e,n){if(e)return e.props[n]}const Ql=t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Ge().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Ut},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const a=t.toRef(e,"rules"),l=t.toRef(e,"name"),r=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),i=t.toRef(e,"keepValue"),{errors:u,value:s,errorMessage:c,validate:m,handleChange:p,handleBlur:V,setTouched:g,resetField:y,handleReset:h,meta:v,checked:S,setErrors:I,setValue:w}=rt(l,a,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:er(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:r,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:i,syncVModel:!0}),U=function(Q,X=!0){p(Q,X)},M=t.computed(()=>{const{validateOnInput:Q,validateOnChange:X,validateOnBlur:T,validateOnModelUpdate:D}=function(z){var J,G,F,K;const{validateOnInput:te,validateOnChange:q,validateOnBlur:W,validateOnModelUpdate:ie}=Ge();return{validateOnInput:(J=z.validateOnInput)!==null&&J!==void 0?J:te,validateOnChange:(G=z.validateOnChange)!==null&&G!==void 0?G:q,validateOnBlur:(F=z.validateOnBlur)!==null&&F!==void 0?F:W,validateOnModelUpdate:(K=z.validateOnModelUpdate)!==null&&K!==void 0?K:ie}}(e);return{name:e.name,onBlur:function(z){V(z,T),Ee(n.attrs.onBlur)&&n.attrs.onBlur(z)},onInput:function(z){U(z,Q),Ee(n.attrs.onInput)&&n.attrs.onInput(z)},onChange:function(z){U(z,X),Ee(n.attrs.onChange)&&n.attrs.onChange(z)},"onUpdate:modelValue":z=>U(z,D)}}),le=t.computed(()=>{const Q=Object.assign({},M.value);return Ot(n.attrs.type)&&S&&(Q.checked=S.value),Bl(Ao(e,n),n.attrs)&&(Q.value=s.value),Q}),Y=t.computed(()=>Object.assign(Object.assign({},M.value),{modelValue:s.value}));function oe(){return{field:le.value,componentField:Y.value,value:s.value,meta:v,errors:u.value,errorMessage:c.value,validate:m,resetField:y,handleChange:U,handleInput:Q=>U(Q,!1),handleReset:h,handleBlur:M.value.onBlur,setTouched:g,setErrors:I,setValue:w}}return n.expose({value:s,meta:v,errors:u,errorMessage:c,setErrors:I,setTouched:g,setValue:w,reset:y,validate:m,handleChange:p}),()=>{const Q=t.resolveDynamicComponent(Ao(e,n)),X=function(T,D,ne){return D.slots.default?typeof T!="string"&&T?{default:()=>{var z,J;return(J=(z=D.slots).default)===null||J===void 0?void 0:J.call(z,ne())}}:D.slots.default(ne()):D.slots.default}(Q,n,oe);return Q?t.h(Q,Object.assign(Object.assign({},n.attrs),le.value),X):X}}});function Ao(e,n){let a=e.as||"";return e.as||n.slots.default||(a="input"),a}function er(e,n){return Ot(n.attrs.type)?Eo(e,"modelValue")?e.modelValue:void 0:Eo(e,"modelValue")?e.modelValue:n.attrs.value}const tr=Ql;let nr=0;const Tt=["bails","fieldsCount","id","multiple","type","validate"];function No(e){const n=(e==null?void 0:e.initialValues)||{},a=Object.assign({},t.toValue(n)),l=t.unref(e==null?void 0:e.validationSchema);return l&&Ne(l)&&Ee(l.cast)?ue(l.cast(a)||{}):ue(a)}function or(e){var n;const a=nr++,l=(e==null?void 0:e.name)||"Form";let r=0;const o=t.ref(!1),i=t.ref(!1),u=t.ref(0),s=[],c=t.reactive(No(e)),m=t.ref([]),p=t.ref({}),V=t.ref({}),g=function(f){let d=null,_=[];return function(...C){const E=t.nextTick(()=>{if(d!==E)return;const N=f(...C);_.forEach(P=>P(N)),_=[],d=null});return d=E,new Promise(N=>_.push(N))}}(()=>{V.value=m.value.reduce((f,d)=>(f[vt(t.toValue(d.path))]=d,f),{})});function y(f,d){const _=F(f);if(_){if(typeof f=="string"){const C=vt(f);p.value[C]&&delete p.value[C]}_.errors=mn(d),_.valid=!_.errors.length}else typeof f=="string"&&(p.value[vt(f)]=mn(d))}function h(f){Se(f).forEach(d=>{y(d,f[d])})}e!=null&&e.initialErrors&&h(e.initialErrors);const v=t.computed(()=>{const f=m.value.reduce((d,_)=>(_.errors.length&&(d[t.toValue(_.path)]=_.errors),d),{});return Object.assign(Object.assign({},p.value),f)}),S=t.computed(()=>Se(v.value).reduce((f,d)=>{const _=v.value[d];return _!=null&&_.length&&(f[d]=_[0]),f},{})),I=t.computed(()=>m.value.reduce((f,d)=>(f[t.toValue(d.path)]={name:t.toValue(d.path)||"",label:d.label||""},f),{})),w=t.computed(()=>m.value.reduce((f,d)=>{var _;return f[t.toValue(d.path)]=(_=d.bails)===null||_===void 0||_,f},{})),U=Object.assign({},(e==null?void 0:e.initialErrors)||{}),M=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0&&n,{initialValues:le,originalInitialValues:Y,setInitialValues:oe}=function(f,d,_){const C=No(_),E=t.ref(C),N=t.ref(ue(C));function P(H,Z){Z!=null&&Z.force?(E.value=ue(H),N.value=ue(H)):(E.value=pt(ue(E.value)||{},ue(H)),N.value=pt(ue(N.value)||{},ue(H))),Z!=null&&Z.updateFields&&f.value.forEach(de=>{if(de.touched)return;const $=we(E.value,t.toValue(de.path));Be(d,t.toValue(de.path),ue($))})}return{initialValues:E,originalInitialValues:N,setInitialValues:P}}(m,c,e),Q=function(f,d,_,C){const E={touched:"some",pending:"some",valid:"every"},N=t.computed(()=>!Ie(d,t.unref(_)));function P(){const Z=f.value;return Se(E).reduce((de,$)=>{const me=E[$];return de[$]=Z[me](fe=>fe[$]),de},{})}const H=t.reactive(P());return t.watchEffect(()=>{const Z=P();H.touched=Z.touched,H.valid=Z.valid,H.pending=Z.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(_)},H),{valid:H.valid&&!Se(C.value).length,dirty:N.value}))}(m,c,Y,S),X=t.computed(()=>m.value.reduce((f,d)=>{const _=we(c,t.toValue(d.path));return Be(f,t.toValue(d.path),_),f},{})),T=e==null?void 0:e.validationSchema;function D(f,d){var _,C;const E=t.computed(()=>we(le.value,t.toValue(f))),N=V.value[t.toValue(f)],P=(d==null?void 0:d.type)==="checkbox"||(d==null?void 0:d.type)==="radio";if(N&&P){N.multiple=!0;const ve=r++;return Array.isArray(N.id)?N.id.push(ve):N.id=[N.id,ve],N.fieldsCount++,N.__flags.pendingUnmount[ve]=!1,N}const H=t.computed(()=>we(c,t.toValue(f))),Z=t.toValue(f),de=te.findIndex(ve=>ve===Z);de!==-1&&te.splice(de,1);const $=t.computed(()=>{var ve,Oe,je,Xe;const Ae=t.toValue(T);if(Ne(Ae))return(Oe=(ve=Ae.describe)===null||ve===void 0?void 0:ve.call(Ae,t.toValue(f)).required)!==null&&Oe!==void 0&&Oe;const Me=t.toValue(d==null?void 0:d.schema);return!!Ne(Me)&&(Xe=(je=Me.describe)===null||je===void 0?void 0:je.call(Me).required)!==null&&Xe!==void 0&&Xe}),me=r++,fe=t.reactive({id:me,path:f,touched:!1,pending:!1,valid:!0,validated:!!(!((_=U[Z])===null||_===void 0)&&_.length),required:$,initialValue:E,errors:t.shallowRef([]),bails:(C=d==null?void 0:d.bails)!==null&&C!==void 0&&C,label:d==null?void 0:d.label,type:(d==null?void 0:d.type)||"default",value:H,multiple:!1,__flags:{pendingUnmount:{[me]:!1},pendingReset:!1},fieldsCount:1,validate:d==null?void 0:d.validate,dirty:t.computed(()=>!Ie(t.unref(H),t.unref(E)))});return m.value.push(fe),V.value[Z]=fe,g(),S.value[Z]&&!U[Z]&&t.nextTick(()=>{O(Z,{mode:"silent"})}),t.isRef(f)&&t.watch(f,ve=>{g();const Oe=ue(H.value);V.value[ve]=fe,t.nextTick(()=>{Be(c,ve,Oe)})}),fe}const ne=So(ye,5),z=So(ye,5),J=vn(async f=>await(f==="silent"?ne():z()),(f,[d])=>{const _=Se(ie.errorBag.value),C=[...new Set([...Se(f.results),...m.value.map(E=>E.path),..._])].sort().reduce((E,N)=>{var P;const H=N,Z=F(H)||function(fe){return m.value.filter(Oe=>fe.startsWith(t.toValue(Oe.path))).reduce((Oe,je)=>Oe?je.path.length>Oe.path.length?je:Oe:je,void 0)}(H),de=((P=f.results[H])===null||P===void 0?void 0:P.errors)||[],$=t.toValue(Z==null?void 0:Z.path)||H,me=function(fe,ve){return ve?{valid:fe.valid&&ve.valid,errors:[...fe.errors,...ve.errors]}:fe}({errors:de,valid:!de.length},E.results[$]);return E.results[$]=me,me.valid||(E.errors[$]=me.errors[0]),Z&&p.value[$]&&delete p.value[$],Z?(Z.valid=me.valid,d==="silent"||(d!=="validated-only"||Z.validated)&&y(Z,me.errors),E):(y($,de),E)},{valid:f.valid,results:{},errors:{},source:f.source});return f.values&&(C.values=f.values,C.source=f.source),Se(C.results).forEach(E=>{var N;const P=F(E);P&&d!=="silent"&&(d!=="validated-only"||P.validated)&&y(P,(N=C.results[E])===null||N===void 0?void 0:N.errors)}),C});function G(f){m.value.forEach(f)}function F(f){const d=typeof f=="string"?vt(f):f;return typeof d=="string"?V.value[d]:d}let K,te=[];function q(f){return function(d,_){return function(C){return C instanceof Event&&(C.preventDefault(),C.stopPropagation()),G(E=>E.touched=!0),o.value=!0,u.value++,se().then(E=>{const N=ue(c);if(E.valid&&typeof d=="function"){const P=ue(X.value);let H=f?P:N;return E.values&&(H=E.source==="schema"?E.values:Object.assign({},H,E.values)),d(H,{evt:C,controlledValues:P,setErrors:h,setFieldError:y,setTouched:re,setFieldTouched:B,setValues:L,setFieldValue:b,resetForm:ge,resetField:ee})}E.valid||typeof _!="function"||_({values:N,evt:C,errors:E.errors,results:E.results})}).then(E=>(o.value=!1,E),E=>{throw o.value=!1,E})}}}const W=q(!1);W.withControlled=q(!0);const ie={name:l,formId:a,values:c,controlledValues:X,errorBag:v,errors:S,schema:T,submitCount:u,meta:Q,isSubmitting:o,isValidating:i,fieldArrays:s,keepValuesOnUnmount:M,validateSchema:t.unref(T)?J:void 0,validate:se,setFieldError:y,validateField:O,setFieldValue:b,setValues:L,setErrors:h,setFieldTouched:B,setTouched:re,resetForm:ge,resetField:ee,handleSubmit:W,useFieldModel:function(f){return Array.isArray(f)?f.map(d=>ae(d,!0)):ae(f)},defineInputBinds:function(f,d){const[_,C]=x(f,d);function E(){C.value.onBlur()}function N(H){const Z=Bt(H);b(t.toValue(f),Z,!1),C.value.onInput()}function P(H){const Z=Bt(H);b(t.toValue(f),Z,!1),C.value.onChange()}return t.computed(()=>Object.assign(Object.assign({},C.value),{onBlur:E,onInput:N,onChange:P,value:_.value}))},defineComponentBinds:function(f,d){const[_,C]=x(f,d),E=F(t.toValue(f));function N(P){_.value=P}return t.computed(()=>{const P=Ee(d)?d(wt(E,Tt)):d||{};return Object.assign({[P.model||"modelValue"]:_.value,[`onUpdate:${P.model||"modelValue"}`]:N},C.value)})},defineField:x,stageInitialValue:function(f,d,_=!1){he(f,d),Be(c,f,d),_&&!(e!=null&&e.initialValues)&&Be(Y.value,f,ue(d))},unsetInitialValue:j,setFieldInitialValue:he,createPathState:D,getPathState:F,unsetPathValue:function(f){return te.push(f),K||(K=t.nextTick(()=>{[...te].sort().reverse().forEach(d=>{Co(c,d)}),te=[],K=null})),K},removePathState:function(f,d){const _=m.value.findIndex(E=>E.path===f&&(Array.isArray(E.id)?E.id.includes(d):E.id===d)),C=m.value[_];if(_!==-1&&C){if(t.nextTick(()=>{O(f,{mode:"silent",warn:!1})}),C.multiple&&C.fieldsCount&&C.fieldsCount--,Array.isArray(C.id)){const E=C.id.indexOf(d);E>=0&&C.id.splice(E,1),delete C.__flags.pendingUnmount[d]}(!C.multiple||C.fieldsCount<=0)&&(m.value.splice(_,1),j(f),g(),delete V.value[f])}},initialValues:le,getAllPathStates:()=>m.value,destroyPath:function(f){Se(V.value).forEach(d=>{d.startsWith(f)&&delete V.value[d]}),m.value=m.value.filter(d=>!d.path.startsWith(f)),t.nextTick(()=>{g()})},isFieldTouched:function(f){const d=F(f);return d?d.touched:m.value.filter(_=>_.path.startsWith(f)).some(_=>_.touched)},isFieldDirty:function(f){const d=F(f);return d?d.dirty:m.value.filter(_=>_.path.startsWith(f)).some(_=>_.dirty)},isFieldValid:function(f){const d=F(f);return d?d.valid:m.value.filter(_=>_.path.startsWith(f)).every(_=>_.valid)}};function b(f,d,_=!0){const C=ue(d),E=typeof f=="string"?f:f.path;F(E)||D(E),Be(c,E,C),_&&O(E)}function L(f,d=!0){pt(c,f),s.forEach(_=>_&&_.reset()),d&&se()}function ae(f,d){const _=F(t.toValue(f))||D(f);return t.computed({get:()=>_.value,set(C){var E;b(t.toValue(f),C,(E=t.toValue(d))!==null&&E!==void 0&&E)}})}function B(f,d){const _=F(f);_&&(_.touched=d)}function re(f){typeof f!="boolean"?Se(f).forEach(d=>{B(d,!!f[d])}):G(d=>{d.touched=f})}function ee(f,d){var _;const C=d&&"value"in d?d.value:we(le.value,f),E=F(f);E&&(E.__flags.pendingReset=!0),he(f,ue(C),!0),b(f,C,!1),B(f,(_=d==null?void 0:d.touched)!==null&&_!==void 0&&_),y(f,(d==null?void 0:d.errors)||[]),t.nextTick(()=>{E&&(E.__flags.pendingReset=!1)})}function ge(f,d){let _=ue(f!=null&&f.values?f.values:Y.value);_=d!=null&&d.force?_:pt(Y.value,_),_=Ne(T)&&Ee(T.cast)?T.cast(_):_,oe(_,{force:d==null?void 0:d.force}),G(C=>{var E;C.__flags.pendingReset=!0,C.validated=!1,C.touched=((E=f==null?void 0:f.touched)===null||E===void 0?void 0:E[t.toValue(C.path)])||!1,b(t.toValue(C.path),we(_,t.toValue(C.path)),!1),y(t.toValue(C.path),void 0)}),d!=null&&d.force?function(C,E=!0){Se(c).forEach(N=>{delete c[N]}),Se(C).forEach(N=>{b(N,C[N],!1)}),E&&se()}(_,!1):L(_,!1),h((f==null?void 0:f.errors)||{}),u.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{se({mode:"silent"}),G(C=>{C.__flags.pendingReset=!1})})}async function se(f){const d=(f==null?void 0:f.mode)||"force";if(d==="force"&&G(P=>P.validated=!0),ie.validateSchema)return ie.validateSchema(d);i.value=!0;const _=await Promise.all(m.value.map(P=>P.validate?P.validate(f).then(H=>({key:t.toValue(P.path),valid:H.valid,errors:H.errors,value:H.value})):Promise.resolve({key:t.toValue(P.path),valid:!0,errors:[],value:void 0})));i.value=!1;const C={},E={},N={};for(const P of _)C[P.key]={valid:P.valid,errors:P.errors},P.value&&Be(N,P.key,P.value),P.errors.length&&(E[P.key]=P.errors[0]);return{valid:_.every(P=>P.valid),results:C,errors:E,values:N,source:"fields"}}async function O(f,d){var _;const C=F(f);if(C&&(d==null?void 0:d.mode)!=="silent"&&(C.validated=!0),T){const{results:E}=await J((d==null?void 0:d.mode)||"validated-only");return E[f]||{errors:[],valid:!0}}return C!=null&&C.validate?C.validate(d):(!C&&((_=d==null?void 0:d.warn)===null||_===void 0||_)&&process.env.NODE_ENV!=="production"&&t.warn(`field with path ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function j(f){Co(le.value,f)}function he(f,d,_=!1){Be(le.value,f,ue(d)),_&&Be(Y.value,f,ue(d))}async function ye(){const f=t.unref(T);if(!f)return{valid:!0,results:{},errors:{},source:"none"};i.value=!0;const d=Dt(f)||Ne(f)?await async function(_,C){const E=Ne(_)?_:ya(_),N=await E.parse(ue(C),{formData:ue(C)}),P={},H={};for(const Z of N.errors){const de=Z.errors,$=(Z.path||"").replace(/\["(\d+)"\]/g,(me,fe)=>`[${fe}]`);P[$]={valid:!de.length,errors:de},de.length&&(H[$]=de[0])}return{valid:!N.errors.length,results:P,errors:H,values:N.value,source:"schema"}}(f,c):await Hl(f,c,{names:I.value,bailsMap:w.value});return i.value=!1,d}const R=W((f,{evt:d})=>{(function(_){return va(_)&&_.target&&"submit"in _.target})(d)&&d.target.submit()});function x(f,d){const _=Ee(d)||d==null?void 0:d.label,C=F(t.toValue(f))||D(f,{label:_}),E=()=>Ee(d)?d(wt(C,Tt)):d||{};function N(){var $;C.touched=!0,(($=E().validateOnBlur)!==null&&$!==void 0?$:Ge().validateOnBlur)&&O(t.toValue(C.path))}function P(){var $;(($=E().validateOnInput)!==null&&$!==void 0?$:Ge().validateOnInput)&&t.nextTick(()=>{O(t.toValue(C.path))})}function H(){var $;(($=E().validateOnChange)!==null&&$!==void 0?$:Ge().validateOnChange)&&t.nextTick(()=>{O(t.toValue(C.path))})}const Z=t.computed(()=>{const $={onChange:H,onInput:P,onBlur:N};return Ee(d)?Object.assign(Object.assign({},$),d(wt(C,Tt)).props||{}):d!=null&&d.props?Object.assign(Object.assign({},$),d.props(wt(C,Tt))):$});return[ae(f,()=>{var $,me,fe;return(fe=($=E().validateOnModelUpdate)!==null&&$!==void 0?$:(me=Ge())===null||me===void 0?void 0:me.validateOnModelUpdate)===null||fe===void 0||fe}),Z]}t.onMounted(()=>{e!=null&&e.initialErrors&&h(e.initialErrors),e!=null&&e.initialTouched&&re(e.initialTouched),e!=null&&e.validateOnMount?se():ie.validateSchema&&ie.validateSchema("silent")}),t.isRef(T)&&t.watch(T,()=>{var f;(f=ie.validateSchema)===null||f===void 0||f.call(ie,"validated-only")}),t.provide(Tn,ie),process.env.NODE_ENV!=="production"&&(function(f){const d=t.getCurrentInstance();if(!Ye){const _=d==null?void 0:d.appContext.app;if(!_)return;Va(_)}gt[f.formId]=Object.assign({},f),gt[f.formId]._vm=d,t.onUnmounted(()=>{delete gt[f.formId],tt()}),tt()}(ie),t.watch(()=>Object.assign(Object.assign({errors:v.value},Q.value),{values:c,isSubmitting:o.value,isValidating:i.value,submitCount:u.value}),tt,{deep:!0}));const pe=Object.assign(Object.assign({},ie),{values:t.readonly(c),handleReset:()=>ge(),submitForm:R});return t.provide(Rl,pe),pe}const ka=e=>{const{columnsMerged:n,fieldColumns:a,propName:l}=e;a&&l&&tn({columns:a,propName:`${l} prop "columns"`});const r=(a==null?void 0:a.sm)??n.sm,o=(a==null?void 0:a.md)??n.md,i=(a==null?void 0:a.lg)??n.lg,u=(a==null?void 0:a.xl)??n.xl;return{"v-col-12":!0,"v-cols":!0,[`v-col-sm-${r}`]:!!r,[`v-col-md-${o}`]:!!o,[`v-col-lg-${i}`]:!!i,[`v-col-xl-${u}`]:!!u}},ar=["columns","options","required","rules","when"],Ke=(e,n=[])=>{const a=Object.entries(e).filter(([l])=>!ar.includes(l)&&!(n!=null&&n.includes(l)));return Object.fromEntries(a)},it=async e=>{const{action:n,emit:a,field:l,settingsValidateOn:r,validate:o}=e,i=l.validateOn||r;(n==="blur"&&i==="blur"||n==="input"&&i==="input"||n==="change"&&i==="change"||n==="click")&&await o().then(()=>{a("validate",l)})},lr=t.defineComponent({__name:"CommonField",props:t.mergeModels({field:{},component:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>o.required||!1),s=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),c=l.value,{errorMessage:m,setValue:p,validate:V,value:g}=rt(o.name,void 0,{initialValue:l.value,validateOnBlur:s.value==="blur",validateOnChange:s.value==="change",validateOnInput:s.value==="input",validateOnModelUpdate:s.value!=null});async function y(U){await it({action:U,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:V})}t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=c,p(c))});const h=t.computed(()=>o!=null&&o.items?o.items:void 0),v=t.computed(()=>o.type==="color"||o.type==="date"?"text":o.type),S=t.computed(()=>{let U=o==null?void 0:o.error;return U=o!=null&&o.errorMessages?o.errorMessages.length>0:U,U}),I=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,hideDetails:o.hideDetails||i.value.hideDetails,type:v.value,variant:o.variant||i.value.variant})),w=t.computed(()=>Ke(I.value));return(U,M)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.component),t.mergeProps({modelValue:t.unref(g),"onUpdate:modelValue":M[0]||(M[0]=le=>t.isRef(g)?g.value=le:null)},{...t.unref(w)},{"data-cy":`vsf-field-${t.unref(o).name}`,error:t.unref(S),"error-messages":t.unref(m)||t.unref(o).errorMessages,items:t.unref(h),onBlur:M[1]||(M[1]=le=>y("blur")),onChange:M[2]||(M[2]=le=>y("change")),onInput:M[3]||(M[3]=le=>y("input"))}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(u)},null,8,["label","required"])]),_:1},16,["modelValue","data-cy","error","error-messages","items"]))}}),rr=["innerHTML"],ir={key:0,class:"v-input__details"},ur=["name"],sr=t.defineComponent({__name:"VSFButtonField",props:t.mergeModels({density:{},field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){t.useCssVars(O=>({"7f272e17":t.unref(ie)}));const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>o.required||!1),s=t.computed(()=>{var O;return(o==null?void 0:o.validateOn)??((O=i.value)==null?void 0:O.validateOn)}),c=l.value,{errorMessage:m,handleChange:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:o!=null&&o.multiple?[]:null,validateOnBlur:s.value==="blur",validateOnChange:s.value==="change",validateOnInput:s.value==="input",validateOnModelUpdate:s.value!=null});t.onUnmounted(()=>{var O;(O=i.value)!=null&&O.keepValuesOnUnmount||(l.value=c,V(c))});const h=t.ref(l.value);async function v(O,j){var he;if(h.value!==j||s.value!=="change"&&s.value!=="input"){if(!(o!=null&&o.disabled)&&y.value){let ye;if(o!=null&&o.multiple){const R=Array.isArray(y.value)?y.value.slice():[],x=String(j);R.includes(x)?R.splice(R.indexOf(x),1):R.push(x),ye=R}else ye=j;V(ye),l.value=ye}else V(j),l.value=j;await it({action:O,emit:a,field:o,settingsValidateOn:(he=i.value)==null?void 0:he.validateOn,validate:g}).then(()=>{h.value=y.value}).catch(ye=>{console.error(ye)})}}const S=t.computed(()=>{var O,j,he;return{...o,border:o!=null&&o.border?`${o==null?void 0:o.color} ${o==null?void 0:o.border}`:void 0,color:o.color||((O=i.value)==null?void 0:O.color),density:(o==null?void 0:o.density)??((j=i.value)==null?void 0:j.density),hideDetails:o.hideDetails||((he=i.value)==null?void 0:he.hideDetails),multiple:void 0}}),I=t.computed(()=>Ke(S.value,["autoPage","hideDetails","href","maxErrors","multiple","to"])),w=(O,j)=>{const he=O[j],ye=o==null?void 0:o[j];return he??ye};function U(O,j){return O.id!=null?O.id:o!=null&&o.id?`${o==null?void 0:o.id}-${j}`:void 0}const M={comfortable:"48px",compact:"40px",default:"56px",expanded:"64px",oversized:"72px"},le=t.computed(()=>{var O;return(o==null?void 0:o.density)??((O=i.value)==null?void 0:O.density)});function Y(){return le.value?M[le.value]:M.default}function oe(O){const j=(O==null?void 0:O.minWidth)??(o==null?void 0:o.minWidth);return j??(O!=null&&O.icon||o!=null&&o.icon?Y():"100px")}function Q(O){const j=(O==null?void 0:O.maxWidth)??(o==null?void 0:o.maxWidth);return j??(O!=null&&O.icon||o!=null&&o.icon?Y():void 0)}function X(O){const j=(O==null?void 0:O.minHeight)??(o==null?void 0:o.minHeight);return j??(O!=null&&O.icon||o!=null&&o.icon?Y():void 0)}function T(O){const j=(O==null?void 0:O.maxHeight)??(o==null?void 0:o.maxHeight);if(j!=null)return j}function D(O){const j=(O==null?void 0:O.width)??(o==null?void 0:o.width);return j??(O!=null&&O.icon?Y():"fit-content")}function ne(O){const j=(O==null?void 0:O.height)??(o==null?void 0:o.height);return j??Y()}const z=O=>{if(y.value)return y.value===O||y.value.includes(O)},J=t.ref(o==null?void 0:o.variant);function G(O){var j;return z(O)?"flat":J.value??((j=i.value)==null?void 0:j.variant)??"tonal"}function F(O){return O&&O.length>0?O:o.hint&&(o.persistentHint||ee.value)?o.hint:o.messages?o.messages:""}const K=t.computed(()=>o.messages&&o.messages.length>0),te=t.computed(()=>!S.value.hideDetails||S.value.hideDetails==="auto"&&K.value),q=t.shallowRef(o.gap??2),W=t.computed(()=>se(q.value)?{gap:`${q.value}`}:{}),ie=t.ref("rgb(var(--v-theme-on-surface))"),b=t.computed(()=>({[`align-${o==null?void 0:o.align}`]:(o==null?void 0:o.align)!=null&&(o==null?void 0:o.block),[`justify-${o==null?void 0:o.align}`]:(o==null?void 0:o.align)!=null&&!(o!=null&&o.block),"d-flex":!0,"flex-column":o==null?void 0:o.block,[`ga-${q.value}`]:!se(q.value)})),L=t.computed(()=>({"d-flex":o==null?void 0:o.align,"flex-column":o==null?void 0:o.align,"v-input--error":!!m&&(m==null?void 0:m.length)>0,"vsf-button-field__container":!0,[`align-${o==null?void 0:o.align}`]:o==null?void 0:o.align})),ae=t.computed(()=>{const O=le.value;return O==="expanded"||O==="oversized"?{[`v-btn--density-${O}`]:!0}:{}}),B=O=>({[`${O==null?void 0:O.class}`]:!0,[`${o.selectedClass}`]:z(O.value)&&o.selectedClass!=null}),re=O=>{const j=z(O.value),he=G(O.value),ye=j||he==="flat"||he==="elevated";return{[`bg-${O==null?void 0:O.color}`]:ye}},ee=t.shallowRef(null);function ge(O){ee.value=O}function se(O){return/(px|em|rem|vw|vh|vmin|vmax|%|pt|cm|mm|in|pc|ex|ch)$/.test(O)}return(O,j)=>{var ye;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(t.unref(L))},[t.createVNode(yn.VLabel,null,{default:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(u)},null,8,["label","required"])]),_:1}),t.createVNode(Pn.VItemGroup,{id:(ye=t.unref(o))==null?void 0:ye.id,modelValue:l.value,"onUpdate:modelValue":j[2]||(j[2]=R=>l.value=R),class:t.normalizeClass(["mt-2",t.unref(b)]),"data-cy":`vsf-field-group-${t.unref(o).name}`,style:t.normalizeStyle(t.unref(W))},{default:t.withCtx(()=>{var R;return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((R=t.unref(o))==null?void 0:R.options,(x,pe)=>(t.openBlock(),t.createBlock(Pn.VItem,{key:x.value},{default:t.withCtx(()=>{var f,d;return[t.createVNode(xt.VBtn,t.mergeProps({ref_for:!0},t.unref(I),{id:U(x,pe),active:z(x.value),appendIcon:w(x,"appendIcon"),class:["text-none",{...t.unref(ae),...B(x)}],color:(x==null?void 0:x.color)||((f=t.unref(o))==null?void 0:f.color)||((d=t.unref(i))==null?void 0:d.color),"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(le),height:ne(x),icon:w(x,"icon"),maxHeight:T(x),maxWidth:Q(x),minHeight:X(x),minWidth:oe(x),prependIcon:w(x,"prependIcon"),value:x.value,variant:G(x.value),width:D(x),onClick:t.withModifiers(_=>v("click",x.value),["prevent"]),onKeydown:t.withKeys(t.withModifiers(_=>v("click",x.value),["prevent"]),["space"]),onMousedown:_=>ge(x.value),onMouseleave:j[0]||(j[0]=_=>ge(null)),onMouseup:j[1]||(j[1]=_=>ge(null))}),t.createSlots({_:2},[w(x,"icon")==null?{name:"default",fn:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["vsf-button-field__btn-label",re(x)]),innerHTML:x.label},null,10,rr)]),key:"0"}:void 0]),1040,["id","active","appendIcon","class","color","data-cy","density","height","icon","maxHeight","maxWidth","minHeight","minWidth","prependIcon","value","variant","width","onClick","onKeydown","onMousedown"])]}),_:2},1024))),128))]}),_:1},8,["id","modelValue","class","data-cy","style"]),t.unref(te)?(t.openBlock(),t.createElementBlock("div",ir,[t.createVNode(t.unref(ze.VMessages),{active:(he=t.unref(m),!!(he&&he.length>0)||!(!o.hint||!o.persistentHint&&!ee.value)||!!o.messages),color:t.unref(m)?"error":void 0,"data-cy":"vsf-field-messages",messages:F(t.unref(m))},null,8,["active","color","messages"])])):t.createCommentVNode("",!0)],2),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":j[3]||(j[3]=R=>t.isRef(y)?y.value=R:null),"data-cy":"vsf-button-field-input",name:t.unref(o).name,type:"hidden",onChange:j[4]||(j[4]=(...R)=>t.unref(p)&&t.unref(p)(...R))},null,40,ur),[[t.vModelText,t.unref(y)]])],64);var he}}}),Ca=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},cr=Ca(sr,[["__scopeId","data-v-49f12da6"]]),dr={key:1,class:"v-input v-input--horizontal v-input--center-affix"},fr=["id"],pr={key:0,class:"v-input__details"},vr=t.defineComponent({__name:"VSFCheckbox",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var T;return(o==null?void 0:o.density)??((T=i.value)==null?void 0:T.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value,{errorMessage:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:l.value,validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m,V(m))});const h=t.ref(o==null?void 0:o.disabled);async function v(T){h.value||(h.value=!0,l.value=y.value,await it({action:o!=null&&o.autoPage?"click":T,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:g}).then(()=>{h.value=!1}))}const S=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||void 0,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),I=t.computed(()=>Ke(S.value,["validateOn"])),w=t.ref(!1);function U(T){return T&&T.length>0?T:o.hint&&(o.persistentHint||w.value)?o.hint:o.messages?o.messages:""}const M=t.computed(()=>o.messages&&o.messages.length>0),le=t.computed(()=>!S.value.hideDetails||S.value.hideDetails==="auto"&&M.value),Y=t.computed(()=>({"flex-direction":o.labelPositionLeft?"row":"column"})),oe=t.computed(()=>({display:o.inline?"flex":void 0})),Q=t.computed(()=>({"margin-right":o.inline&&o.inlineSpacing?o.inlineSpacing:"10px"})),X=t.computed(()=>({"v-input--error":!!p&&(p==null?void 0:p.length)>0,"v-selection-control-group":o.inline}));return(T,D)=>{var z,J,G,F;return(z=t.unref(o))!=null&&z.multiple?(t.openBlock(),t.createElementBlock("div",dr,[t.createElementVNode("div",{class:"v-input__control",style:t.normalizeStyle(t.unref(Y))},[t.unref(o).label?(t.openBlock(),t.createBlock(yn.VLabel,{key:0,class:t.normalizeClass({"me-2":t.unref(o).labelPositionLeft})},{default:t.withCtx(()=>{var K,te;return[t.createVNode($e,{class:t.normalizeClass({"pb-5":!((K=t.unref(o))!=null&&K.hideDetails)&&((te=t.unref(o))==null?void 0:te.labelPositionLeft)}),label:t.unref(o).label,required:t.unref(s)},null,8,["class","label","required"])]}),_:1},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{id:(J=t.unref(o))==null?void 0:J.id,class:t.normalizeClass(t.unref(X)),style:t.normalizeStyle(t.unref(oe))},[t.createElementVNode("div",{class:t.normalizeClass({"v-input__control":t.unref(o).inline})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((G=t.unref(o))==null?void 0:G.options,K=>{var te;return t.openBlock(),t.createBlock(An.VCheckbox,t.mergeProps({key:K.value,ref_for:!0},{...t.unref(I)},{id:K.id,modelValue:t.unref(y),"onUpdate:modelValue":D[5]||(D[5]=q=>t.isRef(y)?y.value=q:null),"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(h),error:!!t.unref(p)&&((te=t.unref(p))==null?void 0:te.length)>0,"error-messages":t.unref(p),"hide-details":!0,label:K.label,style:t.unref(Q),"true-value":K.value,onBlur:D[6]||(D[6]=q=>v("blur")),onChange:D[7]||(D[7]=q=>v("change")),onClick:D[8]||(D[8]=q=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click"):void 0),onInput:D[9]||(D[9]=q=>v("input")),"onUpdate:focused":D[10]||(D[10]=q=>{return W=q,void(w.value=W);var W})}),null,16,["id","modelValue","data-cy","density","disabled","error","error-messages","label","style","true-value"])}),128))],2),t.unref(le)?(t.openBlock(),t.createElementBlock("div",pr,[t.createVNode(t.unref(ze.VMessages),{active:(ne=t.unref(p),!!(ne&&ne.length>0)||!(!o.hint||!o.persistentHint&&!w.value)||!!o.messages),color:t.unref(p)?"error":void 0,messages:U(t.unref(p))},null,8,["active","color","messages"])])):t.createCommentVNode("",!0)],14,fr)],4)])):(t.openBlock(),t.createBlock(An.VCheckbox,t.mergeProps({key:0,modelValue:t.unref(y),"onUpdate:modelValue":D[0]||(D[0]=K=>t.isRef(y)?y.value=K:null)},{...t.unref(I)},{"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(h),error:!!t.unref(p)&&((F=t.unref(p))==null?void 0:F.length)>0,"error-messages":t.unref(p),onBlur:D[1]||(D[1]=K=>v("blur")),onChange:D[2]||(D[2]=K=>v("change")),onClick:D[3]||(D[3]=K=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click"):void 0),onInput:D[4]||(D[4]=K=>v("input"))}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(s)},null,8,["label","required"])]),_:1},16,["modelValue","data-cy","density","disabled","error","error-messages"]));var ne}}}),mr=["data-cy"],hr=t.defineComponent({__name:"VSFCustom",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=t.useSlots(),l=n,r=t.useModel(e,"modelValue"),o=e,{field:i}=o,u=t.inject("settings"),s=t.toRaw($e),c=t.computed(()=>(i==null?void 0:i.validateOn)??u.value.validateOn),m=rt(i.name,void 0,{initialValue:r.value,validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});async function p(h){await it({action:h,emit:l,field:i,settingsValidateOn:u.value.validateOn,validate:m.validate})}const V=t.computed(()=>({...Ke(m,["_vm","errorMessage","field","id","label","name","type","value"])})),g=t.computed(()=>({...i,color:i.color||u.value.color,density:i.density||u.value.density})),y=t.computed(()=>({...Ke(g.value),options:i.options,required:i.required}));return(h,v)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(S,I)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:I},[I===`field.${[t.unref(i).name]}`?(t.openBlock(),t.createElementBlock("div",{key:0,"data-cy":`vsf-field-${t.unref(i).name}`},[t.renderSlot(h.$slots,I,t.mergeProps({ref_for:!0},{FieldLabel:t.unref(s),blur:()=>p("blur"),change:()=>p("change"),input:()=>p("input"),onUpdate:w=>{(function(U){m.setValue(U)})(w)},field:{errorMessages:t.unref(m).errorMessage.value,...t.unref(y)},...t.unref(V)}))],8,mr)):t.createCommentVNode("",!0)],64))),128))}}),gr=["id"],_r=t.defineComponent({__name:"VSFRadio",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var oe;return(o==null?void 0:o.density)??((oe=i.value)==null?void 0:oe.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value,{errorMessage:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:l.value,type:"radio",validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m)});const h=t.ref(o==null?void 0:o.disabled);async function v(oe,Q){if(!h.value){let X;if(h.value=!0,o==null?void 0:o.multiple){const T=Array.isArray(y.value)?y.value.slice():[],D=String(Q);T.includes(D)?T.splice(T.indexOf(D),1):T.push(D),X=T}else X=Q;V(X),l.value=X,await it({action:o!=null&&o.autoPage?"click":oe,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:g}).then(()=>{h.value=!1})}}const S=t.computed(()=>{let oe=o==null?void 0:o.error;return oe=o!=null&&o.errorMessages?o.errorMessages.length>0:oe,oe}),I=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||!1,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),w=t.computed(()=>Ke(I.value)),U=t.computed(()=>({width:(o==null?void 0:o.minWidth)??(o==null?void 0:o.width)??void 0})),M=t.computed(()=>({"flex-direction":o.labelPositionLeft?"row":"column"})),le=t.computed(()=>({display:o.inline?"flex":void 0})),Y=t.computed(()=>({"margin-right":o.inline&&o.inlineSpacing?o.inlineSpacing:"10px"}));return(oe,Q)=>{var X,T,D,ne,z,J,G,F,K,te,q,W,ie,b,L,ae,B;return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(t.unref(U))},[t.createElementVNode("div",{class:"v-input__control",style:t.normalizeStyle(t.unref(M))},[t.unref(o).label?(t.openBlock(),t.createBlock(yn.VLabel,{key:0,class:t.normalizeClass({"me-2":t.unref(o).labelPositionLeft})},{default:t.withCtx(()=>[t.createVNode($e,{class:t.normalizeClass({"pb-5":t.unref(o).labelPositionLeft}),label:t.unref(o).label,required:t.unref(s)},null,8,["class","label","required"])]),_:1},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{id:(X=t.unref(o))==null?void 0:X.groupId,style:t.normalizeStyle(t.unref(le))},[t.createVNode(Pa.VRadioGroup,{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=re=>l.value=re),"append-icon":(T=t.unref(o))==null?void 0:T.appendIcon,"data-cy":`vsf-field-group-${t.unref(o).name}`,density:t.unref(u),direction:(D=t.unref(o))==null?void 0:D.direction,disabled:t.unref(h),error:t.unref(S),"error-messages":t.unref(p)||((ne=t.unref(o))==null?void 0:ne.errorMessages),hideDetails:((z=t.unref(o))==null?void 0:z.hideDetails)||((J=t.unref(i))==null?void 0:J.hideDetails),hint:(G=t.unref(o))==null?void 0:G.hint,inline:(F=t.unref(o))==null?void 0:F.inline,"max-errors":(K=t.unref(o))==null?void 0:K.maxErrors,"max-width":(te=t.unref(o))==null?void 0:te.maxWidth,messages:(q=t.unref(o))==null?void 0:q.messages,"min-width":(W=t.unref(o))==null?void 0:W.minWidth,multiple:(ie=t.unref(o))==null?void 0:ie.multiple,persistentHint:(b=t.unref(o))==null?void 0:b.persistentHint,"prepend-icon":(L=t.unref(o))==null?void 0:L.prependIcon,theme:(ae=t.unref(o))==null?void 0:ae.theme,width:(B=t.unref(o))==null?void 0:B.width},{default:t.withCtx(()=>{var re;return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((re=t.unref(o))==null?void 0:re.options,(ee,ge)=>{var se;return t.openBlock(),t.createElementBlock("div",{key:ge},[t.createVNode(xa.VRadio,t.mergeProps({ref_for:!0},{...t.unref(w)},{id:void 0,"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),error:!!t.unref(p)&&((se=t.unref(p))==null?void 0:se.length)>0,"error-messages":t.unref(p),"false-value":t.unref(o).falseValue,label:ee.label,name:t.unref(o).name,style:t.unref(Y),"true-value":ee.value||t.unref(o).trueValue,value:ee.value,onBlur:O=>v("blur",ee.value),onChange:O=>v("change",ee.value),onClick:O=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click",ee.value):void 0,onInput:O=>v("input",ee.value)}),null,16,["data-cy","density","error","error-messages","false-value","label","name","style","true-value","value","onBlur","onChange","onClick","onInput"])])}),128))]}),_:1},8,["modelValue","append-icon","data-cy","density","direction","disabled","error","error-messages","hideDetails","hint","inline","max-errors","max-width","messages","min-width","multiple","persistentHint","prepend-icon","theme","width"])],12,gr)],4)],4)}}}),yr=t.defineComponent({__name:"VSFSwitch",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var h;return(o==null?void 0:o.density)??((h=i.value)==null?void 0:h.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value;t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m)});const p=t.ref(o==null?void 0:o.disabled);async function V(h,v){p.value||(p.value=!0,await it({action:o!=null&&o.autoPage?"click":v,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:h}).then(()=>{p.value=!1}))}const g=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||!1,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),y=t.computed(()=>Ke(g.value));return(h,v)=>(t.openBlock(),t.createBlock(t.unref(tr),{modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=S=>l.value=S),name:t.unref(o).name,syncVModel:!0,type:"checkbox","unchecked-value":t.unref(o).falseValue,"validate-on-blur":t.unref(c)==="blur","validate-on-change":t.unref(c)==="change","validate-on-input":t.unref(c)==="input","validate-on-model-update":!1,value:t.unref(o).trueValue},{default:t.withCtx(S=>{var I;return[t.createVNode(Aa.VSwitch,t.mergeProps({...t.unref(y),...S.field},{"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(p),error:!!S.errorMessage&&((I=S.errorMessage)==null?void 0:I.length)>0,"error-messages":S.errorMessage,onBlur:w=>V(S.validate,"blur"),onChange:w=>V(S.validate,"change"),onClick:w=>t.unref(c)==="blur"||t.unref(c)==="change"?V(S.validate,"click"):void 0,onInput:w=>V(S.validate,"input")}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(s)},null,8,["label","required"])]),_:2},1040,["data-cy","density","disabled","error","error-messages","onBlur","onChange","onClick","onInput"])]}),_:1},8,["modelValue","name","unchecked-value","validate-on-blur","validate-on-change","validate-on-input","value"]))}}),br=["onUpdate:modelValue","data-cy","name"],Vr=["innerHTML"],Er=t.defineComponent({inheritAttrs:!1,__name:"PageContainer",props:t.mergeModels({fieldColumns:{},page:{},pageIndex:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useSlots(),r=["email","number","password","tel","text","textField","url"];function o(p){if(r.includes(p))return t.markRaw(ze.VTextField);switch(p){case"autocomplete":return t.markRaw(ze.VAutocomplete);case"color":return t.markRaw(wa);case"combobox":return t.markRaw(ze.VCombobox);case"date":return t.markRaw(Ta.VDateInput);case"file":return t.markRaw(ze.VFileInput);case"select":return t.markRaw(ze.VSelect);case"textarea":return t.markRaw(ze.VTextarea);default:return null}}const i=t.useModel(e,"modelValue"),u=t.computed(()=>{var p;return((p=e.page)==null?void 0:p.pageFieldColumns)??{}}),s=t.ref({lg:void 0,md:void 0,sm:void 0,xl:void 0,...e.fieldColumns,...u.value});function c(p){return ka({columnsMerged:s.value,fieldColumns:p.columns,propName:`${p.name} field`})}function m(p){a("validate",p)}return(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.page.text?(t.openBlock(),t.createBlock(Te.VRow,{key:0},{default:t.withCtx(()=>[t.createVNode(Te.VCol,{innerHTML:p.page.text},null,8,["innerHTML"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.page.fields,g=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${g.name}-${g.type}`},[g.type!=="hidden"&&g.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[g.text?(t.openBlock(),t.createBlock(Te.VCol,{key:0,cols:"12"},{default:t.withCtx(()=>[t.createElementVNode("div",{"data-cy":"vsf-field-text",innerHTML:g.text},null,8,Vr)]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(Te.VCol,{class:t.normalizeClass(c(g))},{default:t.withCtx(()=>[g.type==="checkbox"?(t.openBlock(),t.createBlock(vr,{key:0,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="radio"?(t.openBlock(),t.createBlock(_r,{key:1,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="buttons"?(t.openBlock(),t.createBlock(cr,{key:2,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="switch"?(t.openBlock(),t.createBlock(yr,{key:3,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),o(g.type)!=null?(t.openBlock(),t.createBlock(lr,{key:4,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,component:o(g.type),field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","component","field"])):t.createCommentVNode("",!0),g.type==="field"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[g.type==="field"?(t.openBlock(),t.createBlock(hr,{key:0,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},t.createSlots({_:2},[t.renderList(l,(y,h)=>({name:h,fn:t.withCtx(v=>[t.renderSlot(p.$slots,h,t.mergeProps({ref_for:!0},{...v}))])}))]),1032,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]),_:2},1032,["class"])],64)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":y=>i.value[g.name]=y,"data-cy":`vsf-field-${g.name}`,name:g.name,type:"hidden"},null,8,br)),[[t.vModelText,i.value[g.name]]])],64))),128))]),_:3})],64))}}),Or=t.defineComponent({inheritAttrs:!1,__name:"PageReviewContainer",props:t.mergeModels({page:{},pages:{},summaryColumns:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["goToQuestion"],["update:modelValue"]),setup(e,{emit:n}){const a=t.inject("settings"),{editable:l}=t.unref(a),r=n,o=t.useModel(e,"modelValue"),i=t.ref([]),{lastNonEditableIndex:u}=nn(e.pages);function s(p){var g;const V=e.pages.findIndex(y=>y.fields?y.fields.some(h=>h.name===p.name):-1);return l!==!1&&((g=e.pages[V])==null?void 0:g.editable)!==!1&&p.editable!==!1}Object.values(e.pages).forEach((p,V)=>{p.fields&&Object.values(p.fields).forEach(g=>{const y=g;V<=u&&(y.editable=!1),i.value.push(y)})});const c=t.ref({lg:void 0,md:void 0,sm:void 0,xl:void 0,...e.summaryColumns}),m=t.computed(()=>ka({columnsMerged:c.value}));return(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.page.text?(t.openBlock(),t.createBlock(Te.VRow,{key:0},{default:t.withCtx(()=>[t.createVNode(Te.VCol,{innerHTML:p.page.text},null,8,["innerHTML"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),g=>(t.openBlock(),t.createBlock(Te.VCol,{key:g.name,class:t.normalizeClass(t.unref(m))},{default:t.withCtx(()=>[t.createVNode(qe.VList,{lines:"two"},{default:t.withCtx(()=>[t.createVNode(Na.VCard,{class:"mb-2",color:"background"},{default:t.withCtx(()=>[s(g)?(t.openBlock(),t.createBlock(qe.VListItem,{key:0,onClick:y=>t.unref(l)&&g.editable!==!1?function(h){var S;let v=e.pages.findIndex(I=>I.fields?I.fields.some(w=>w.name===h.name):-1);((S=e.pages[v])==null?void 0:S.editable)!==!1&&h.editable!==!1&&(v+=1,setTimeout(()=>{r("goToQuestion",v)},350))}(g):void 0},{default:t.withCtx(()=>[t.createVNode(qe.VListItemTitle,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1024),t.createVNode(qe.VListItemSubtitle,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(g.text),1),t.createElementVNode("div",{class:t.normalizeClass(`text-${t.unref(a).color}`)},t.toDisplayString(o.value[g.name]),3)]),_:2},1024)]),_:2},1032,["onClick"])):(t.openBlock(),t.createBlock(qe.VListItem,{key:1,ripple:!1},{default:t.withCtx(()=>[t.createVNode(qe.VListItemTitle,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1024),t.createVNode(qe.VListItemSubtitle,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(g.text),1),t.createElementVNode("div",{class:t.normalizeClass(`text-${t.unref(a).color}`)},t.toDisplayString(o.value[g.name]),3)]),_:2},1024)]),_:2},1024))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1})],64))}}),kr=t.defineComponent({__name:"VStepperForm",props:t.mergeModels(t.mergeDefaults({pages:{},validationSchema:{},autoPage:{type:Boolean},autoPageDelay:{},color:{},density:{},direction:{},editable:{},errorIcon:{},fieldColumns:{},headerTooltips:{type:Boolean},hideDetails:{type:[Boolean,String]},jumpAhead:{type:Boolean},keepValuesOnUnmount:{type:Boolean},navButtonSize:{},navButtonVariant:{},summaryColumns:{},title:{},tooltipLocation:{},tooltipOffset:{},tooltipTransition:{},validateOn:{},validateOnMount:{type:Boolean},variant:{},width:{},transition:{}},Ro),{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["submit","update:model-value"],["update:modelValue"]),setup(e,{emit:n}){var he,ye;const a=t.useAttrs(),l=t.useId(),r=t.useSlots(),o=n,i=t.inject(jo),u=e;let s=t.reactive(en(a,i,u));const{direction:c,jumpAhead:m,title:p,width:V}=t.toRefs(u),g=t.reactive(u.pages),y=JSON.parse(JSON.stringify(g)),h=t.ref(Nn(s)),v=t.computed(()=>Ke(h.value,["autoPage","autoPageDelay","hideDetails","keepValuesOnUnmount","transition","validateOn","validateOnMount"]));t.watch(u,()=>{s=en(a,i,u),h.value=Nn(s)},{deep:!0}),t.provide("settings",h);const S=t.ref([]);Object.values(g).forEach(R=>{R.fields&&Object.values(R.fields).forEach(x=>{S.value.push(x)})}),t.onMounted(()=>{re(),tn({columns:u.fieldColumns,propName:'"fieldColumns" prop'}),tn({columns:u.summaryColumns,propName:'"summaryColumns" prop'})});const I=t.useModel(e,"modelValue"),w=t.ref(1),U=t.computed(()=>w.value-1),{mobile:M,sm:le}=Sa.useDisplay(),Y=t.computed(()=>s.transition),oe=t.useTemplateRef("stepperFormRef");t.provide("parentForm",oe);const Q=t.computed(()=>h.value.editable),X=t.computed(()=>w.value===1?"prev":w.value===Object.keys(u.pages).length?"next":void 0),T=t.computed(()=>{const R=X.value==="next"||h.value.disabled;return te.value||R}),D=t.computed(()=>{const{lastNonEditableIndex:R}=nn(B.value);return U.value===0||!Q.value||!!F.value||U.value-1===R}),ne=t.computed(()=>{const R=B.value[w.value-2];return Q.value!==!0&&(R?R.editable===!1:w.value===B.value.length&&!u.editable)}),z=t.computed(()=>w.value===Object.keys(B.value).length);function J(R){var fe,ve,Oe,je,Xe;const{firstNonEditableIndex:x,lastNonEditableIndex:pe}=nn(B.value),f=B.value,d=f.findIndex(Ae=>Ae===R),_=R.editable!==!1,C=R.editable===!1,E=((fe=f[U.value])==null?void 0:fe.editable)!==!1,N=f.length-1,P=d-1,H=((ve=f[P])==null?void 0:ve.editable)!==!1,Z=((Oe=f[P])==null?void 0:Oe.editable)===!1,de=d+1,$=((je=f[de])==null?void 0:je.editable)!==!1,me=((Xe=f[de])==null?void 0:Xe.editable)===!1;return U.value===d||!!Q.value&&!F.value&&(m.value?(Ae=>{const{currentPageEditable:Me,firstNonEditableIndex:ke,lastNonEditableIndex:Re,lastPageIdx:kt,nextPageEditable:Ft,nextPageNotEditable:Ht,pageIdx:Ve,pageNotEditable:Pe,previousPageEditable:$t,previousPageNotEditable:Le}=Ae,Ue=t.unref(Ae.currentPageIdx);if(Ve>Re)return Ue>Re;if(Ve===Re)return!1;if(Veke)return!(!Me||!Ft)||!!(Me&&Ht&&Ve>ke&&Ue>ke&&Ve>Ue)}return Ve>ke?!(Ue<=ke):VeVe&&Ve<=ke)&&(Ve=Ve&&$t)))})({currentPageEditable:E,currentPageIdx:U,firstNonEditableIndex:x,lastNonEditableIndex:pe,lastPageIdx:N,nextPageEditable:$,nextPageNotEditable:me,pageIdx:d,pageNotEditable:C,previousPageEditable:H,previousPageNotEditable:Z}):(Ae=>{const{currentPageEditable:Me,firstNonEditableIndex:ke,lastNonEditableIndex:Re,lastPageIdx:kt,nextPageEditable:Ft,nextPageNotEditable:Ht,pageEditable:Ve,pageIdx:Pe,pageNotEditable:$t}=Ae,Le=t.unref(Ae.currentPageIdx);if(PeRe){if(Pe>ke&&Pe>Re&&Le===kt&&Ve)return!0;if(!Ve)return!1}if(Peke&&Peke&&Ft&&Le!==kt)return!0}return!1})({currentPageEditable:E,currentPageIdx:U,firstNonEditableIndex:x,lastNonEditableIndex:pe,lastPageIdx:N,nextPageEditable:$,nextPageNotEditable:me,pageEditable:_,pageIdx:d,pageNotEditable:C}))}const G=t.computed(()=>u.validationSchema),F=t.ref(!1),K=t.ref([]),te=t.computed(()=>K.value.includes(w.value-1)),q=or({initialValues:I.value,keepValuesOnUnmount:(he=h.value)==null?void 0:he.keepValuesOnUnmount,validationSchema:G.value,valueOnMount:(ye=h.value)==null?void 0:ye.validateOnMount});function W(R){if(K.value.includes(R)){const x=K.value.indexOf(R);x>-1&&K.value.splice(x,1)}F.value=!1}function ie(R,x,pe=()=>{}){const f=B.value[U.value];if(!f)return;const d=B.value.findIndex(C=>C===f),_=(f==null?void 0:f.fields)??[];if(Object.keys(R).some(C=>_.some(E=>E.name===C)))return F.value=!0,void b(d,f,x);W(d),pe&&!z.value&&x!=="submit"&&pe()}function b(R,x,pe="submit"){F.value=!0,x&&pe==="submit"&&(x.error=!0),K.value.includes(R)||K.value.push(R)}let L;Ia.watchDeep(q.values,()=>{I.value=q.values,re()});const ae=q.handleSubmit(R=>{o("submit",R)}),B=t.computed(()=>(Object.values(g).forEach((R,x)=>{const pe=R;if(pe.visible=!0,pe.when){const f=pe.when(q.values);g[x]&&(g[x].visible=f)}}),g.filter(R=>R.visible)));function re(){Object.values(g).forEach((R,x)=>{R.fields&&Object.values(R.fields).forEach((pe,f)=>{if(pe.when){const d=pe.when(q.values),_=B.value[x];_!=null&&_.fields&&(_!=null&&_.fields[f])&&(_.fields[f].type=d?y[x].fields[f].type:"hidden")}})})}const ee=t.computed(()=>(R=>{const{direction:x}=R;return{"d-flex flex-column justify-center align-center":x==="horizontal",[`${ut}`]:!0,[`${ut}--container`]:!0,[`${ut}--container-${x}`]:!0}})({direction:c.value})),ge=t.computed(()=>(R=>{const{direction:x}=R;return{"d-flex flex-column justify-center align-center":x==="horizontal",[`${ut}--container-stepper`]:!0,[`${ut}--container-stepper-${x}`]:!0}})({direction:c.value})),se=t.computed(()=>({width:"100%"})),O=t.computed(()=>({width:V.value}));function j(R){return R+1}return(R,x)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(ee)),style:t.normalizeStyle(t.unref(se))},[t.createElementVNode("div",{style:t.normalizeStyle(t.unref(O))},[t.unref(p)?(t.openBlock(),t.createBlock(Te.VContainer,{key:0,fluid:""},{default:t.withCtx(()=>[t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[t.createVNode(Te.VCol,null,{default:t.withCtx(()=>[t.createElementVNode("h2",null,t.toDisplayString(t.unref(p)),1)]),_:1})]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VContainer,{class:t.normalizeClass(t.unref(ge)),fluid:""},{default:t.withCtx(()=>[t.createVNode(Je.VStepper,t.mergeProps({modelValue:t.unref(w),"onUpdate:modelValue":x[4]||(x[4]=pe=>t.isRef(w)?w.value=pe:null),"data-cy":"vsf-stepper-form"},t.unref(v),{mobile:t.unref(le),width:"100%"}),{default:t.withCtx(({prev:pe,next:f})=>[t.createVNode(Je.VStepperHeader,{"data-cy":"vsf-stepper-header"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(B),(d,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${j(_)}-step`},[t.createVNode(Je.VStepperItem,{class:t.normalizeClass(`vsf-activator-${t.unref(l)}-${_+1}`),color:t.unref(h).color,"edit-icon":d.isSummary?"$complete":t.unref(h).editIcon,editable:J(d),elevation:"0",error:t.unref(F)&&t.unref(K).includes(_),title:d.title,value:j(_),onClick:C=>function(E){const N=E===0?0:E-1,P=B.value[N];P&&P.fields&&P.fields.forEach(H=>{q.validateField(H.name,{},{name:H.name}).then(Z=>{if(Z.errors.length)return w.value=N+1,F.value=!0,void b(N,P,"submit");W(N)})})}(_)},{default:t.withCtx(()=>[!t.unref(M)&&t.unref(h).headerTooltips&&(d!=null&&d.fields)&&(d==null?void 0:d.fields.length)>0?(t.openBlock(),t.createBlock(Ra.VTooltip,{key:0,activator:d.title?"parent":`.vsf-activator-${t.unref(l)}-${_+1}`,location:t.unref(h).tooltipLocation,offset:d.title?t.unref(h).tooltipOffset:Number(t.unref(h).tooltipOffset)-28,transition:t.unref(h).tooltipTransition},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.fields,(C,E)=>(t.openBlock(),t.createElementBlock("div",{key:E},t.toDisplayString(C.label),1))),128))]),_:2},1032,["activator","location","offset","transition"])):t.createCommentVNode("",!0)]),_:2},1032,["class","color","edit-icon","editable","error","title","value","onClick"]),j(_)!==Object.keys(t.unref(B)).length?(t.openBlock(),t.createBlock(ja.VDivider,{key:j(_)})):t.createCommentVNode("",!0)],64))),128))]),_:1}),t.createElementVNode("form",{ref:"stepperFormRef",onSubmit:x[3]||(x[3]=(...d)=>t.unref(ae)&&t.unref(ae)(...d))},[t.createVNode(Je.VStepperWindow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(B),(d,_)=>(t.openBlock(),t.createBlock(Je.VStepperWindowItem,{key:`${j(_)}-content`,"data-cy":d.isSummary?"vsf-page-summary":`vsf-page-${j(_)}`,"reverse-transition":t.unref(Y),transition:t.unref(Y),value:j(_)},{default:t.withCtx(()=>[t.createVNode(Te.VContainer,null,{default:t.withCtx(()=>{var C,E;return[d.isSummary?(t.openBlock(),t.createBlock(Or,{key:1,modelValue:I.value,"onUpdate:modelValue":x[1]||(x[1]=N=>I.value=N),page:d,pages:t.unref(B),settings:t.unref(h),summaryColumns:(C=t.unref(h))==null?void 0:C.summaryColumns,onGoToQuestion:x[2]||(x[2]=N=>w.value=N)},null,8,["modelValue","page","pages","settings","summaryColumns"])):(t.openBlock(),t.createBlock(Er,{key:`${j(_)}-page`,modelValue:I.value,"onUpdate:modelValue":x[0]||(x[0]=N=>I.value=N),fieldColumns:(E=t.unref(h))==null?void 0:E.fieldColumns,index:j(_),page:d,pageIndex:j(_),settings:t.unref(h),onValidate:N=>function(P,H){var $;const Z=q.errorBag,de=P.autoPage||h.value.autoPage?H:null;P!=null&&P.autoPage||($=h.value)!=null&&$.autoPage?oe.value&&q.validate().then(me=>{var ve;if(me.valid)return clearTimeout(L),void(L=setTimeout(()=>{ie(Z,"field",de)},(P==null?void 0:P.autoPageDelay)??((ve=h.value)==null?void 0:ve.autoPageDelay)));const fe=B.value[U.value];b(B.value.findIndex(Oe=>Oe===fe),fe,"validating")}).catch(me=>{console.error("Error",me)}):q.validateField(P.name,{},{name:P.name}).then(()=>{ie(q.errorBag.value,"field",de)})}(N,f)},t.createSlots({_:2},[t.renderList(t.unref(r),(N,P)=>({name:P,fn:t.withCtx(H=>[t.renderSlot(R.$slots,P,t.mergeProps({ref_for:!0},{...H}),void 0,!0)])}))]),1032,["modelValue","fieldColumns","index","page","pageIndex","settings","onValidate"]))]}),_:2},1024)]),_:2},1032,["data-cy","reverse-transition","transition","value"]))),128))]),_:2},1024),t.unref(h).hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Je.VStepperActions,{key:0},{next:t.withCtx(()=>[t.unref(z)?(t.openBlock(),t.createBlock(xt.VBtn,{key:1,color:t.unref(h).color,"data-cy":"vsf-submit-button",disabled:t.unref(te),size:R.navButtonSize,type:"submit",variant:R.navButtonVariant,onClick:t.unref(ae)},{default:t.withCtx(()=>x[5]||(x[5]=[t.createTextVNode("Submit")])),_:1},8,["color","disabled","size","variant","onClick"])):(t.openBlock(),t.createBlock(xt.VBtn,{key:0,color:t.unref(h).color,"data-cy":"vsf-next-button",disabled:t.unref(T),size:R.navButtonSize,variant:R.navButtonVariant,onClick:d=>function(_="submit",C=()=>{}){oe.value&&q.validate().then(E=>{ie(E.errors,_,C)}).catch(E=>{console.error("Error",E)})}("next",f)},null,8,["color","disabled","size","variant","onClick"]))]),prev:t.withCtx(()=>[t.createVNode(xt.VBtn,{"data-cy":"vsf-previous-button",disabled:t.unref(D),size:R.navButtonSize,variant:R.navButtonVariant,onClick:d=>function(_){ne.value||_()}(pe)},null,8,["disabled","size","variant","onClick"])]),_:2},1024))],544)]),_:3},16,["modelValue","mobile"])]),_:3},8,["class"])],4)],6))}}),_n=Ca(kr,[["__scopeId","data-v-15220e2c"]]),Cr=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"}));exports.FieldLabel=$e,exports.VStepperForm=_n,exports.createVStepperForm=function(e={}){return{install:n=>{const a=en(e,Ro);n.provide(jo,a),n.config.idPrefix="vsf",n.component("VStepperForm",t.defineAsyncComponent(()=>Promise.resolve().then(()=>Cr))),n.component("FieldLabel",t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./FieldLabel-Cd_UO4bq.js"))))}}},exports.default=_n; -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".v-item-group[data-v-49f12da6]{flex-wrap:wrap}.vsf-button-field__btn-label[data-v-49f12da6]{color:var(--7f272e17)}.v-stepper-item--error[data-v-15220e2c] .v-icon{color:#fff}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); diff --git a/dist/vuetify-stepper-form.es.js b/dist/vuetify-stepper-form.es.js deleted file mode 100644 index be07843..0000000 --- a/dist/vuetify-stepper-form.es.js +++ /dev/null @@ -1,2747 +0,0 @@ -import { defineComponent as Ge, openBlock as M, createElementBlock as me, createElementVNode as Ue, createTextVNode as rn, createCommentVNode as Te, computed as S, toValue as N, unref as s, onMounted as Gn, getCurrentInstance as ft, provide as Kt, isRef as nt, watch as et, onBeforeUnmount as fl, ref as _e, reactive as Vt, nextTick as Ke, warn as vl, readonly as ml, watchEffect as hl, inject as at, onUnmounted as yt, toRef as xt, resolveDynamicComponent as go, h as gl, shallowRef as An, mergeModels as Pe, useModel as ot, createBlock as ve, mergeProps as tt, withCtx as X, createVNode as re, useCssVars as _l, Fragment as xe, normalizeClass as Me, normalizeStyle as ut, renderList as We, withModifiers as da, withKeys as yl, createSlots as Yn, withDirectives as _o, vModelText as yo, useSlots as Zn, toRaw as bl, renderSlot as Xn, markRaw as rt, toDisplayString as st, mergeDefaults as Ol, useAttrs as El, useId as Vl, toRefs as kl, useTemplateRef as Il, defineAsyncComponent as ca } from "vue"; -import { watchDeep as Sl } from "@vueuse/core"; -import { useDisplay as Tl } from "vuetify"; -import wl from "@wdns/vuetify-color-field"; -import { VMessages as bo, VTextField as Cl, VTextarea as Al, VSelect as Pl, VFileInput as xl, VCombobox as jl, VAutocomplete as Ul } from "vuetify/components"; -import { VDateInput as Dl } from "vuetify/labs/VDateInput"; -import { VBtn as an } from "vuetify/lib/components/VBtn/index.mjs"; -import { VItemGroup as Rl, VItem as Nl } from "vuetify/lib/components/VItemGroup/index.mjs"; -import { VLabel as Jn } from "vuetify/lib/components/VLabel/index.mjs"; -import { VCheckbox as pa } from "vuetify/lib/components/VCheckbox/index.mjs"; -import { VRadio as Ml } from "vuetify/lib/components/VRadio/index.mjs"; -import { VRadioGroup as Ll } from "vuetify/lib/components/VRadioGroup/index.mjs"; -import { VSwitch as Bl } from "vuetify/lib/components/VSwitch/index.mjs"; -import { VRow as qt, VCol as kt, VContainer as bn } from "vuetify/lib/components/VGrid/index.mjs"; -import { VCard as Hl } from "vuetify/lib/components/VCard/index.mjs"; -import { VList as $l, VListItem as fa, VListItemTitle as va, VListItemSubtitle as ma } from "vuetify/lib/components/VList/index.mjs"; -import { VDivider as Fl } from "vuetify/lib/components/VDivider/index.mjs"; -import { VStepper as zl, VStepperHeader as Kl, VStepperItem as ql, VStepperWindow as Wl, VStepperWindowItem as Gl, VStepperActions as Yl } from "vuetify/lib/components/VStepper/index.mjs"; -import { VTooltip as Zl } from "vuetify/lib/components/VTooltip/index.mjs"; -/** - * @name @wdns/vuetify-stepper-form - * @version 1.0.2 - * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. - * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) - * @copyright Copyright 2024, WebDevNerdStuff - * @homepage https://webdevnerdstuff.github.io/vuetify-stepper-form/ - * @repository https://github.com/webdevnerdstuff/vuetify-stepper-form - * @license MIT License - */ -const Xl = { "data-cy": "vsf-field-label" }, Jl = ["innerHTML"], Ql = { key: 0, class: "text-error ms-1" }, gt = Ge({ __name: "FieldLabel", props: { label: {}, required: { type: Boolean, default: !1 } }, setup: (e) => (t, a) => (M(), me("div", Xl, [Ue("span", { innerHTML: t.label }, null, 8, Jl), a[0] || (a[0] = rn()), t.required ? (M(), me("span", Ql, "*")) : Te("", !0)])) }), Pn = (e, t, a = {}) => { - const o = (l, n) => { - const i = { ...l }; - for (const r in n) n[r] === void 0 || typeof n[r] != "object" || Array.isArray(n[r]) ? n[r] !== void 0 && (i[r] = n[r]) : i[r] = o(i[r] ?? {}, n[r]); - return i; - }; - return [e, t, a].filter(Boolean).reduce(o, {}); -}, ha = (e) => ({ altLabels: e.altLabels, autoPage: e.autoPage, autoPageDelay: e.autoPageDelay, bgColor: e.bgColor, border: e.border, color: e.color, density: e.density, disabled: e.disabled, editIcon: e.editIcon, editable: e.editable, elevation: e.elevation, errorIcon: e.errorIcon, fieldColumns: e.fieldColumns, flat: e.flat, headerTooltips: e.headerTooltips, height: e.height, hideActions: e.hideActions, hideDetails: e.hideDetails, keepValuesOnUnmount: e.keepValuesOnUnmount, maxHeight: e.maxHeight, maxWidth: e.maxWidth, minHeight: e.minHeight, minWidth: e.minWidth, nextText: e.nextText, prevText: e.prevText, rounded: e.rounded, selectedClass: e.selectedClass, summaryColumns: e.summaryColumns, tag: e.tag, theme: e.theme, tile: e.tile, tooltipLocation: e.tooltipLocation, tooltipOffset: e.tooltipOffset, tooltipTransition: e.tooltipTransition, transition: e.transition, validateOn: e.validateOn, validateOnMount: e.validateOnMount, variant: e.variant }), xn = (e) => { - const { columns: t, propName: a } = e; - let o = !1; - if (t && (Object.values(t).forEach((l) => { - (l < 1 || l > 12) && (o = !0); - }), o)) throw new Error(`The ${a} values must be between 1 and 12`); -}, jn = (e) => { - let t = -1, a = -1; - return e.forEach((o, l) => { - o.editable === !1 && (t === -1 && (t = l), a = l); - }), { firstNonEditableIndex: t, lastNonEditableIndex: a }; -}, jt = "v-stepper-form", Oo = Symbol(), Eo = { autoPageDelay: 250, direction: "horizontal", disabled: !1, editable: !0, jumpAhead: !1, keepValuesOnUnmount: !1, navButtonSize: "large", tooltipLocation: "bottom", tooltipOffset: 10, tooltipTransition: "fade-transition", transition: "fade-transition", width: "100%" }; -var Ut, ga, On, Jt, ei = Object.create, _a = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, Qn = Object.getOwnPropertyNames, ni = Object.getPrototypeOf, ai = Object.prototype.hasOwnProperty, Bt = (Ut = { "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"() { -} }, function() { - return Ut && (ga = (0, Ut[Qn(Ut)[0]])(Ut = 0)), ga; -}), oi = (On = { "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) { - function a(o) { - return o instanceof Buffer ? Buffer.from(o) : new o.constructor(o.buffer.slice(), o.byteOffset, o.length); - } - Bt(), t.exports = function(o) { - if ((o = o || {}).circles) return function(r) { - const u = [], d = [], m = /* @__PURE__ */ new Map(); - if (m.set(Date, (h) => new Date(h)), m.set(Map, (h, v) => new Map(O(Array.from(h), v))), m.set(Set, (h, v) => new Set(O(Array.from(h), v))), r.constructorHandlers) for (const h of r.constructorHandlers) m.set(h[0], h[1]); - let f = null; - return r.proto ? y : g; - function O(h, v) { - const w = Object.keys(h), T = new Array(w.length); - for (let C = 0; C < w.length; C++) { - const L = w[C], $ = h[L]; - if (typeof $ != "object" || $ === null) T[L] = $; - else if ($.constructor !== Object && (f = m.get($.constructor))) T[L] = f($, v); - else if (ArrayBuffer.isView($)) T[L] = a($); - else { - const de = u.indexOf($); - T[L] = de !== -1 ? d[de] : v($); - } - } - return T; - } - function g(h) { - if (typeof h != "object" || h === null) return h; - if (Array.isArray(h)) return O(h, g); - if (h.constructor !== Object && (f = m.get(h.constructor))) return f(h, g); - const v = {}; - u.push(h), d.push(v); - for (const w in h) { - if (Object.hasOwnProperty.call(h, w) === !1) continue; - const T = h[w]; - if (typeof T != "object" || T === null) v[w] = T; - else if (T.constructor !== Object && (f = m.get(T.constructor))) v[w] = f(T, g); - else if (ArrayBuffer.isView(T)) v[w] = a(T); - else { - const C = u.indexOf(T); - v[w] = C !== -1 ? d[C] : g(T); - } - } - return u.pop(), d.pop(), v; - } - function y(h) { - if (typeof h != "object" || h === null) return h; - if (Array.isArray(h)) return O(h, y); - if (h.constructor !== Object && (f = m.get(h.constructor))) return f(h, y); - const v = {}; - u.push(h), d.push(v); - for (const w in h) { - const T = h[w]; - if (typeof T != "object" || T === null) v[w] = T; - else if (T.constructor !== Object && (f = m.get(T.constructor))) v[w] = f(T, y); - else if (ArrayBuffer.isView(T)) v[w] = a(T); - else { - const C = u.indexOf(T); - v[w] = C !== -1 ? d[C] : y(T); - } - } - return u.pop(), d.pop(), v; - } - }(o); - const l = /* @__PURE__ */ new Map(); - if (l.set(Date, (r) => new Date(r)), l.set(Map, (r, u) => new Map(i(Array.from(r), u))), l.set(Set, (r, u) => new Set(i(Array.from(r), u))), o.constructorHandlers) for (const r of o.constructorHandlers) l.set(r[0], r[1]); - let n = null; - return o.proto ? function r(u) { - if (typeof u != "object" || u === null) return u; - if (Array.isArray(u)) return i(u, r); - if (u.constructor !== Object && (n = l.get(u.constructor))) return n(u, r); - const d = {}; - for (const m in u) { - const f = u[m]; - typeof f != "object" || f === null ? d[m] = f : f.constructor !== Object && (n = l.get(f.constructor)) ? d[m] = n(f, r) : ArrayBuffer.isView(f) ? d[m] = a(f) : d[m] = r(f); - } - return d; - } : function r(u) { - if (typeof u != "object" || u === null) return u; - if (Array.isArray(u)) return i(u, r); - if (u.constructor !== Object && (n = l.get(u.constructor))) return n(u, r); - const d = {}; - for (const m in u) { - if (Object.hasOwnProperty.call(u, m) === !1) continue; - const f = u[m]; - typeof f != "object" || f === null ? d[m] = f : f.constructor !== Object && (n = l.get(f.constructor)) ? d[m] = n(f, r) : ArrayBuffer.isView(f) ? d[m] = a(f) : d[m] = r(f); - } - return d; - }; - function i(r, u) { - const d = Object.keys(r), m = new Array(d.length); - for (let f = 0; f < d.length; f++) { - const O = d[f], g = r[O]; - typeof g != "object" || g === null ? m[O] = g : g.constructor !== Object && (n = l.get(g.constructor)) ? m[O] = n(g, u) : ArrayBuffer.isView(g) ? m[O] = a(g) : m[O] = u(g); - } - return m; - } - }; -} }, function() { - return Jt || (0, On[Qn(On)[0]])((Jt = { exports: {} }).exports, Jt), Jt.exports; -}); -Bt(), Bt(), Bt(); -var ya, Vo = typeof navigator < "u", j = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {}; -j.chrome !== void 0 && j.chrome.devtools, Vo && (j.self, j.top), typeof navigator < "u" && ((ya = navigator.userAgent) == null || ya.toLowerCase().includes("electron")), Bt(); -var li = ((e, t, a) => (a = e != null ? ei(ni(e)) : {}, ((o, l, n, i) => { - if (l && typeof l == "object" || typeof l == "function") for (let r of Qn(l)) ai.call(o, r) || r === n || _a(o, r, { get: () => l[r], enumerable: !(i = ti(l, r)) || i.enumerable }); - return o; -})(_a(a, "default", { value: e, enumerable: !0 }), e)))(oi()), ii = /(?:^|[-_/])(\w)/g; -function ri(e, t) { - return t ? t.toUpperCase() : ""; -} -var ba = (0, li.default)({ circles: !0 }); -const si = { trailing: !0 }; -function St(e, t = 25, a = {}) { - if (a = { ...si, ...a }, !Number.isFinite(t)) throw new TypeError("Expected `wait` to be a finite number"); - let o, l, n, i, r = []; - const u = (d, m) => (n = async function(f, O, g) { - return await f.apply(O, g); - }(e, d, m), n.finally(() => { - if (n = null, a.trailing && i && !l) { - const f = u(d, i); - return i = null, f; - } - }), n); - return function(...d) { - return n ? (a.trailing && (i = d), n) : new Promise((m) => { - const f = !l && a.leading; - clearTimeout(l), l = setTimeout(() => { - l = null; - const O = a.leading ? o : u(this, d); - for (const g of r) g(O); - r = []; - }, t), f ? (o = u(this, d), m(o)) : r.push(m); - }); - }; -} -function Un(e, t = {}, a) { - for (const o in e) { - const l = e[o], n = a ? `${a}:${o}` : o; - typeof l == "object" && l !== null ? Un(l, t, n) : typeof l == "function" && (t[n] = l); - } - return t; -} -const ui = { run: (e) => e() }, ko = console.createTask !== void 0 ? console.createTask : () => ui; -function di(e, t) { - const a = t.shift(), o = ko(a); - return e.reduce((l, n) => l.then(() => o.run(() => n(...t))), Promise.resolve()); -} -function ci(e, t) { - const a = t.shift(), o = ko(a); - return Promise.all(e.map((l) => o.run(() => l(...t)))); -} -function En(e, t) { - for (const a of [...e]) a(t); -} -class pi { - constructor() { - this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this); - } - hook(t, a, o = {}) { - if (!t || typeof a != "function") return () => { - }; - const l = t; - let n; - for (; this._deprecatedHooks[t]; ) n = this._deprecatedHooks[t], t = n.to; - if (n && !o.allowDeprecated) { - let i = n.message; - i || (i = `${l} hook has been deprecated` + (n.to ? `, please use ${n.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(i) || (console.warn(i), this._deprecatedMessages.add(i)); - } - if (!a.name) try { - Object.defineProperty(a, "name", { get: () => "_" + t.replace(/\W+/g, "_") + "_hook_cb", configurable: !0 }); - } catch { - } - return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(a), () => { - a && (this.removeHook(t, a), a = void 0); - }; - } - hookOnce(t, a) { - let o, l = (...n) => (typeof o == "function" && o(), o = void 0, l = void 0, a(...n)); - return o = this.hook(t, l), o; - } - removeHook(t, a) { - if (this._hooks[t]) { - const o = this._hooks[t].indexOf(a); - o !== -1 && this._hooks[t].splice(o, 1), this._hooks[t].length === 0 && delete this._hooks[t]; - } - } - deprecateHook(t, a) { - this._deprecatedHooks[t] = typeof a == "string" ? { to: a } : a; - const o = this._hooks[t] || []; - delete this._hooks[t]; - for (const l of o) this.hook(t, l); - } - deprecateHooks(t) { - Object.assign(this._deprecatedHooks, t); - for (const a in t) this.deprecateHook(a, t[a]); - } - addHooks(t) { - const a = Un(t), o = Object.keys(a).map((l) => this.hook(l, a[l])); - return () => { - for (const l of o.splice(0, o.length)) l(); - }; - } - removeHooks(t) { - const a = Un(t); - for (const o in a) this.removeHook(o, a[o]); - } - removeAllHooks() { - for (const t in this._hooks) delete this._hooks[t]; - } - callHook(t, ...a) { - return a.unshift(t), this.callHookWith(di, t, ...a); - } - callHookParallel(t, ...a) { - return a.unshift(t), this.callHookWith(ci, t, ...a); - } - callHookWith(t, a, ...o) { - const l = this._before || this._after ? { name: a, args: o, context: {} } : void 0; - this._before && En(this._before, l); - const n = t(a in this._hooks ? [...this._hooks[a]] : [], o); - return n instanceof Promise ? n.finally(() => { - this._after && l && En(this._after, l); - }) : (this._after && l && En(this._after, l), n); - } - beforeEach(t) { - return this._before = this._before || [], this._before.push(t), () => { - if (this._before !== void 0) { - const a = this._before.indexOf(t); - a !== -1 && this._before.splice(a, 1); - } - }; - } - afterEach(t) { - return this._after = this._after || [], this._after.push(t), () => { - if (this._after !== void 0) { - const a = this._after.indexOf(t); - a !== -1 && this._after.splice(a, 1); - } - }; - } -} -function Io() { - return new pi(); -} -var fi = Object.create, Oa = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, ea = Object.getOwnPropertyNames, mi = Object.getPrototypeOf, hi = Object.prototype.hasOwnProperty, So = (e, t) => function() { - return t || (0, e[ea(e)[0]])((t = { exports: {} }).exports, t), t.exports; -}, k = /* @__PURE__ */ ((e, t) => function() { - return e && (t = (0, e[ea(e)[0]])(e = 0)), t; -})({ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"() { -} }), gi = So({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) { - k(), function(a) { - var o = { À: "A", Á: "A", Â: "A", Ã: "A", Ä: "Ae", Å: "A", Æ: "AE", Ç: "C", È: "E", É: "E", Ê: "E", Ë: "E", Ì: "I", Í: "I", Î: "I", Ï: "I", Ð: "D", Ñ: "N", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "Oe", Ő: "O", Ø: "O", Ù: "U", Ú: "U", Û: "U", Ü: "Ue", Ű: "U", Ý: "Y", Þ: "TH", ß: "ss", à: "a", á: "a", â: "a", ã: "a", ä: "ae", å: "a", æ: "ae", ç: "c", è: "e", é: "e", ê: "e", ë: "e", ì: "i", í: "i", î: "i", ï: "i", ð: "d", ñ: "n", ò: "o", ó: "o", ô: "o", õ: "o", ö: "oe", ő: "o", ø: "o", ù: "u", ú: "u", û: "u", ü: "ue", ű: "u", ý: "y", þ: "th", ÿ: "y", "ẞ": "SS", ا: "a", أ: "a", إ: "i", آ: "aa", ؤ: "u", ئ: "e", ء: "a", ب: "b", ت: "t", ث: "th", ج: "j", ح: "h", خ: "kh", د: "d", ذ: "th", ر: "r", ز: "z", س: "s", ش: "sh", ص: "s", ض: "dh", ط: "t", ظ: "z", ع: "a", غ: "gh", ف: "f", ق: "q", ك: "k", ل: "l", م: "m", ن: "n", ه: "h", و: "w", ي: "y", ى: "a", ة: "h", ﻻ: "la", ﻷ: "laa", ﻹ: "lai", ﻵ: "laa", گ: "g", چ: "ch", پ: "p", ژ: "zh", ک: "k", ی: "y", "َ": "a", "ً": "an", "ِ": "e", "ٍ": "en", "ُ": "u", "ٌ": "on", "ْ": "", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9", က: "k", ခ: "kh", ဂ: "g", ဃ: "ga", င: "ng", စ: "s", ဆ: "sa", ဇ: "z", "စျ": "za", ည: "ny", ဋ: "t", ဌ: "ta", ဍ: "d", ဎ: "da", ဏ: "na", တ: "t", ထ: "ta", ဒ: "d", ဓ: "da", န: "n", ပ: "p", ဖ: "pa", ဗ: "b", ဘ: "ba", မ: "m", ယ: "y", ရ: "ya", လ: "l", ဝ: "w", သ: "th", ဟ: "h", ဠ: "la", အ: "a", "ြ": "y", "ျ": "ya", "ွ": "w", "ြွ": "yw", "ျွ": "ywa", "ှ": "h", ဧ: "e", "၏": "-e", ဣ: "i", ဤ: "-i", ဉ: "u", ဦ: "-u", ဩ: "aw", "သြော": "aw", ဪ: "aw", "၀": "0", "၁": "1", "၂": "2", "၃": "3", "၄": "4", "၅": "5", "၆": "6", "၇": "7", "၈": "8", "၉": "9", "္": "", "့": "", "း": "", č: "c", ď: "d", ě: "e", ň: "n", ř: "r", š: "s", ť: "t", ů: "u", ž: "z", Č: "C", Ď: "D", Ě: "E", Ň: "N", Ř: "R", Š: "S", Ť: "T", Ů: "U", Ž: "Z", ހ: "h", ށ: "sh", ނ: "n", ރ: "r", ބ: "b", ޅ: "lh", ކ: "k", އ: "a", ވ: "v", މ: "m", ފ: "f", ދ: "dh", ތ: "th", ލ: "l", ގ: "g", ޏ: "gn", ސ: "s", ޑ: "d", ޒ: "z", ޓ: "t", ޔ: "y", ޕ: "p", ޖ: "j", ޗ: "ch", ޘ: "tt", ޙ: "hh", ޚ: "kh", ޛ: "th", ޜ: "z", ޝ: "sh", ޞ: "s", ޟ: "d", ޠ: "t", ޡ: "z", ޢ: "a", ޣ: "gh", ޤ: "q", ޥ: "w", "ަ": "a", "ާ": "aa", "ި": "i", "ީ": "ee", "ު": "u", "ޫ": "oo", "ެ": "e", "ޭ": "ey", "ޮ": "o", "ޯ": "oa", "ް": "", ა: "a", ბ: "b", გ: "g", დ: "d", ე: "e", ვ: "v", ზ: "z", თ: "t", ი: "i", კ: "k", ლ: "l", მ: "m", ნ: "n", ო: "o", პ: "p", ჟ: "zh", რ: "r", ს: "s", ტ: "t", უ: "u", ფ: "p", ქ: "k", ღ: "gh", ყ: "q", შ: "sh", ჩ: "ch", ც: "ts", ძ: "dz", წ: "ts", ჭ: "ch", ხ: "kh", ჯ: "j", ჰ: "h", α: "a", β: "v", γ: "g", δ: "d", ε: "e", ζ: "z", η: "i", θ: "th", ι: "i", κ: "k", λ: "l", μ: "m", ν: "n", ξ: "ks", ο: "o", π: "p", ρ: "r", σ: "s", τ: "t", υ: "y", φ: "f", χ: "x", ψ: "ps", ω: "o", ά: "a", έ: "e", ί: "i", ό: "o", ύ: "y", ή: "i", ώ: "o", ς: "s", ϊ: "i", ΰ: "y", ϋ: "y", ΐ: "i", Α: "A", Β: "B", Γ: "G", Δ: "D", Ε: "E", Ζ: "Z", Η: "I", Θ: "TH", Ι: "I", Κ: "K", Λ: "L", Μ: "M", Ν: "N", Ξ: "KS", Ο: "O", Π: "P", Ρ: "R", Σ: "S", Τ: "T", Υ: "Y", Φ: "F", Χ: "X", Ψ: "PS", Ω: "O", Ά: "A", Έ: "E", Ί: "I", Ό: "O", Ύ: "Y", Ή: "I", Ώ: "O", Ϊ: "I", Ϋ: "Y", ā: "a", ē: "e", ģ: "g", ī: "i", ķ: "k", ļ: "l", ņ: "n", ū: "u", Ā: "A", Ē: "E", Ģ: "G", Ī: "I", Ķ: "k", Ļ: "L", Ņ: "N", Ū: "U", Ќ: "Kj", ќ: "kj", Љ: "Lj", љ: "lj", Њ: "Nj", њ: "nj", Тс: "Ts", тс: "ts", ą: "a", ć: "c", ę: "e", ł: "l", ń: "n", ś: "s", ź: "z", ż: "z", Ą: "A", Ć: "C", Ę: "E", Ł: "L", Ń: "N", Ś: "S", Ź: "Z", Ż: "Z", Є: "Ye", І: "I", Ї: "Yi", Ґ: "G", є: "ye", і: "i", ї: "yi", ґ: "g", ă: "a", Ă: "A", ș: "s", Ș: "S", ț: "t", Ț: "T", ţ: "t", Ţ: "T", а: "a", б: "b", в: "v", г: "g", д: "d", е: "e", ё: "yo", ж: "zh", з: "z", и: "i", й: "i", к: "k", л: "l", м: "m", н: "n", о: "o", п: "p", р: "r", с: "s", т: "t", у: "u", ф: "f", х: "kh", ц: "c", ч: "ch", ш: "sh", щ: "sh", ъ: "", ы: "y", ь: "", э: "e", ю: "yu", я: "ya", А: "A", Б: "B", В: "V", Г: "G", Д: "D", Е: "E", Ё: "Yo", Ж: "Zh", З: "Z", И: "I", Й: "I", К: "K", Л: "L", М: "M", Н: "N", О: "O", П: "P", Р: "R", С: "S", Т: "T", У: "U", Ф: "F", Х: "Kh", Ц: "C", Ч: "Ch", Ш: "Sh", Щ: "Sh", Ъ: "", Ы: "Y", Ь: "", Э: "E", Ю: "Yu", Я: "Ya", ђ: "dj", ј: "j", ћ: "c", џ: "dz", Ђ: "Dj", Ј: "j", Ћ: "C", Џ: "Dz", ľ: "l", ĺ: "l", ŕ: "r", Ľ: "L", Ĺ: "L", Ŕ: "R", ş: "s", Ş: "S", ı: "i", İ: "I", ğ: "g", Ğ: "G", ả: "a", Ả: "A", ẳ: "a", Ẳ: "A", ẩ: "a", Ẩ: "A", đ: "d", Đ: "D", ẹ: "e", Ẹ: "E", ẽ: "e", Ẽ: "E", ẻ: "e", Ẻ: "E", ế: "e", Ế: "E", ề: "e", Ề: "E", ệ: "e", Ệ: "E", ễ: "e", Ễ: "E", ể: "e", Ể: "E", ỏ: "o", ọ: "o", Ọ: "o", ố: "o", Ố: "O", ồ: "o", Ồ: "O", ổ: "o", Ổ: "O", ộ: "o", Ộ: "O", ỗ: "o", Ỗ: "O", ơ: "o", Ơ: "O", ớ: "o", Ớ: "O", ờ: "o", Ờ: "O", ợ: "o", Ợ: "O", ỡ: "o", Ỡ: "O", Ở: "o", ở: "o", ị: "i", Ị: "I", ĩ: "i", Ĩ: "I", ỉ: "i", Ỉ: "i", ủ: "u", Ủ: "U", ụ: "u", Ụ: "U", ũ: "u", Ũ: "U", ư: "u", Ư: "U", ứ: "u", Ứ: "U", ừ: "u", Ừ: "U", ự: "u", Ự: "U", ữ: "u", Ữ: "U", ử: "u", Ử: "ư", ỷ: "y", Ỷ: "y", ỳ: "y", Ỳ: "Y", ỵ: "y", Ỵ: "Y", ỹ: "y", Ỹ: "Y", ạ: "a", Ạ: "A", ấ: "a", Ấ: "A", ầ: "a", Ầ: "A", ậ: "a", Ậ: "A", ẫ: "a", Ẫ: "A", ắ: "a", Ắ: "A", ằ: "a", Ằ: "A", ặ: "a", Ặ: "A", ẵ: "a", Ẵ: "A", "⓪": "0", "①": "1", "②": "2", "③": "3", "④": "4", "⑤": "5", "⑥": "6", "⑦": "7", "⑧": "8", "⑨": "9", "⑩": "10", "⑪": "11", "⑫": "12", "⑬": "13", "⑭": "14", "⑮": "15", "⑯": "16", "⑰": "17", "⑱": "18", "⑲": "18", "⑳": "18", "⓵": "1", "⓶": "2", "⓷": "3", "⓸": "4", "⓹": "5", "⓺": "6", "⓻": "7", "⓼": "8", "⓽": "9", "⓾": "10", "⓿": "0", "⓫": "11", "⓬": "12", "⓭": "13", "⓮": "14", "⓯": "15", "⓰": "16", "⓱": "17", "⓲": "18", "⓳": "19", "⓴": "20", "Ⓐ": "A", "Ⓑ": "B", "Ⓒ": "C", "Ⓓ": "D", "Ⓔ": "E", "Ⓕ": "F", "Ⓖ": "G", "Ⓗ": "H", "Ⓘ": "I", "Ⓙ": "J", "Ⓚ": "K", "Ⓛ": "L", "Ⓜ": "M", "Ⓝ": "N", "Ⓞ": "O", "Ⓟ": "P", "Ⓠ": "Q", "Ⓡ": "R", "Ⓢ": "S", "Ⓣ": "T", "Ⓤ": "U", "Ⓥ": "V", "Ⓦ": "W", "Ⓧ": "X", "Ⓨ": "Y", "Ⓩ": "Z", "ⓐ": "a", "ⓑ": "b", "ⓒ": "c", "ⓓ": "d", "ⓔ": "e", "ⓕ": "f", "ⓖ": "g", "ⓗ": "h", "ⓘ": "i", "ⓙ": "j", "ⓚ": "k", "ⓛ": "l", "ⓜ": "m", "ⓝ": "n", "ⓞ": "o", "ⓟ": "p", "ⓠ": "q", "ⓡ": "r", "ⓢ": "s", "ⓣ": "t", "ⓤ": "u", "ⓦ": "v", "ⓥ": "w", "ⓧ": "x", "ⓨ": "y", "ⓩ": "z", "“": '"', "”": '"', "‘": "'", "’": "'", "∂": "d", ƒ: "f", "™": "(TM)", "©": "(C)", œ: "oe", Œ: "OE", "®": "(R)", "†": "+", "℠": "(SM)", "…": "...", "˚": "o", º: "o", ª: "a", "•": "*", "၊": ",", "။": ".", $: "USD", "€": "EUR", "₢": "BRN", "₣": "FRF", "£": "GBP", "₤": "ITL", "₦": "NGN", "₧": "ESP", "₩": "KRW", "₪": "ILS", "₫": "VND", "₭": "LAK", "₮": "MNT", "₯": "GRD", "₱": "ARS", "₲": "PYG", "₳": "ARA", "₴": "UAH", "₵": "GHS", "¢": "cent", "¥": "CNY", 元: "CNY", 円: "YEN", "﷼": "IRR", "₠": "EWE", "฿": "THB", "₨": "INR", "₹": "INR", "₰": "PF", "₺": "TRY", "؋": "AFN", "₼": "AZN", лв: "BGN", "៛": "KHR", "₡": "CRC", "₸": "KZT", ден: "MKD", zł: "PLN", "₽": "RUB", "₾": "GEL" }, l = ["်", "ް"], n = { "ာ": "a", "ါ": "a", "ေ": "e", "ဲ": "e", "ိ": "i", "ီ": "i", "ို": "o", "ု": "u", "ူ": "u", "ေါင်": "aung", "ော": "aw", "ော်": "aw", "ေါ": "aw", "ေါ်": "aw", "်": "်", "က်": "et", "ိုက်": "aik", "ောက်": "auk", "င်": "in", "ိုင်": "aing", "ောင်": "aung", "စ်": "it", "ည်": "i", "တ်": "at", "ိတ်": "eik", "ုတ်": "ok", "ွတ်": "ut", "ေတ်": "it", "ဒ်": "d", "ိုဒ်": "ok", "ုဒ်": "ait", "န်": "an", "ာန်": "an", "ိန်": "ein", "ုန်": "on", "ွန်": "un", "ပ်": "at", "ိပ်": "eik", "ုပ်": "ok", "ွပ်": "ut", "န်ုပ်": "nub", "မ်": "an", "ိမ်": "ein", "ုမ်": "on", "ွမ်": "un", "ယ်": "e", "ိုလ်": "ol", "ဉ်": "in", "ံ": "an", "ိံ": "ein", "ုံ": "on", "ައް": "ah", "ަށް": "ah" }, i = { en: {}, az: { ç: "c", ə: "e", ğ: "g", ı: "i", ö: "o", ş: "s", ü: "u", Ç: "C", Ə: "E", Ğ: "G", İ: "I", Ö: "O", Ş: "S", Ü: "U" }, cs: { č: "c", ď: "d", ě: "e", ň: "n", ř: "r", š: "s", ť: "t", ů: "u", ž: "z", Č: "C", Ď: "D", Ě: "E", Ň: "N", Ř: "R", Š: "S", Ť: "T", Ů: "U", Ž: "Z" }, fi: { ä: "a", Ä: "A", ö: "o", Ö: "O" }, hu: { ä: "a", Ä: "A", ö: "o", Ö: "O", ü: "u", Ü: "U", ű: "u", Ű: "U" }, lt: { ą: "a", č: "c", ę: "e", ė: "e", į: "i", š: "s", ų: "u", ū: "u", ž: "z", Ą: "A", Č: "C", Ę: "E", Ė: "E", Į: "I", Š: "S", Ų: "U", Ū: "U" }, lv: { ā: "a", č: "c", ē: "e", ģ: "g", ī: "i", ķ: "k", ļ: "l", ņ: "n", š: "s", ū: "u", ž: "z", Ā: "A", Č: "C", Ē: "E", Ģ: "G", Ī: "i", Ķ: "k", Ļ: "L", Ņ: "N", Š: "S", Ū: "u", Ž: "Z" }, pl: { ą: "a", ć: "c", ę: "e", ł: "l", ń: "n", ó: "o", ś: "s", ź: "z", ż: "z", Ą: "A", Ć: "C", Ę: "e", Ł: "L", Ń: "N", Ó: "O", Ś: "S", Ź: "Z", Ż: "Z" }, sv: { ä: "a", Ä: "A", ö: "o", Ö: "O" }, sk: { ä: "a", Ä: "A" }, sr: { љ: "lj", њ: "nj", Љ: "Lj", Њ: "Nj", đ: "dj", Đ: "Dj" }, tr: { Ü: "U", Ö: "O", ü: "u", ö: "o" } }, r = { ar: { "∆": "delta", "∞": "la-nihaya", "♥": "hob", "&": "wa", "|": "aw", "<": "aqal-men", ">": "akbar-men", "∑": "majmou", "¤": "omla" }, az: {}, ca: { "∆": "delta", "∞": "infinit", "♥": "amor", "&": "i", "|": "o", "<": "menys que", ">": "mes que", "∑": "suma dels", "¤": "moneda" }, cs: { "∆": "delta", "∞": "nekonecno", "♥": "laska", "&": "a", "|": "nebo", "<": "mensi nez", ">": "vetsi nez", "∑": "soucet", "¤": "mena" }, de: { "∆": "delta", "∞": "unendlich", "♥": "Liebe", "&": "und", "|": "oder", "<": "kleiner als", ">": "groesser als", "∑": "Summe von", "¤": "Waehrung" }, dv: { "∆": "delta", "∞": "kolunulaa", "♥": "loabi", "&": "aai", "|": "noonee", "<": "ah vure kuda", ">": "ah vure bodu", "∑": "jumula", "¤": "faisaa" }, en: { "∆": "delta", "∞": "infinity", "♥": "love", "&": "and", "|": "or", "<": "less than", ">": "greater than", "∑": "sum", "¤": "currency" }, es: { "∆": "delta", "∞": "infinito", "♥": "amor", "&": "y", "|": "u", "<": "menos que", ">": "mas que", "∑": "suma de los", "¤": "moneda" }, fa: { "∆": "delta", "∞": "bi-nahayat", "♥": "eshgh", "&": "va", "|": "ya", "<": "kamtar-az", ">": "bishtar-az", "∑": "majmooe", "¤": "vahed" }, fi: { "∆": "delta", "∞": "aarettomyys", "♥": "rakkaus", "&": "ja", "|": "tai", "<": "pienempi kuin", ">": "suurempi kuin", "∑": "summa", "¤": "valuutta" }, fr: { "∆": "delta", "∞": "infiniment", "♥": "Amour", "&": "et", "|": "ou", "<": "moins que", ">": "superieure a", "∑": "somme des", "¤": "monnaie" }, ge: { "∆": "delta", "∞": "usasruloba", "♥": "siqvaruli", "&": "da", "|": "an", "<": "naklebi", ">": "meti", "∑": "jami", "¤": "valuta" }, gr: {}, hu: { "∆": "delta", "∞": "vegtelen", "♥": "szerelem", "&": "es", "|": "vagy", "<": "kisebb mint", ">": "nagyobb mint", "∑": "szumma", "¤": "penznem" }, it: { "∆": "delta", "∞": "infinito", "♥": "amore", "&": "e", "|": "o", "<": "minore di", ">": "maggiore di", "∑": "somma", "¤": "moneta" }, lt: { "∆": "delta", "∞": "begalybe", "♥": "meile", "&": "ir", "|": "ar", "<": "maziau nei", ">": "daugiau nei", "∑": "suma", "¤": "valiuta" }, lv: { "∆": "delta", "∞": "bezgaliba", "♥": "milestiba", "&": "un", "|": "vai", "<": "mazak neka", ">": "lielaks neka", "∑": "summa", "¤": "valuta" }, my: { "∆": "kwahkhyaet", "∞": "asaonasme", "♥": "akhyait", "&": "nhin", "|": "tho", "<": "ngethaw", ">": "kyithaw", "∑": "paungld", "¤": "ngwekye" }, mk: {}, nl: { "∆": "delta", "∞": "oneindig", "♥": "liefde", "&": "en", "|": "of", "<": "kleiner dan", ">": "groter dan", "∑": "som", "¤": "valuta" }, pl: { "∆": "delta", "∞": "nieskonczonosc", "♥": "milosc", "&": "i", "|": "lub", "<": "mniejsze niz", ">": "wieksze niz", "∑": "suma", "¤": "waluta" }, pt: { "∆": "delta", "∞": "infinito", "♥": "amor", "&": "e", "|": "ou", "<": "menor que", ">": "maior que", "∑": "soma", "¤": "moeda" }, ro: { "∆": "delta", "∞": "infinit", "♥": "dragoste", "&": "si", "|": "sau", "<": "mai mic ca", ">": "mai mare ca", "∑": "suma", "¤": "valuta" }, ru: { "∆": "delta", "∞": "beskonechno", "♥": "lubov", "&": "i", "|": "ili", "<": "menshe", ">": "bolshe", "∑": "summa", "¤": "valjuta" }, sk: { "∆": "delta", "∞": "nekonecno", "♥": "laska", "&": "a", "|": "alebo", "<": "menej ako", ">": "viac ako", "∑": "sucet", "¤": "mena" }, sr: {}, tr: { "∆": "delta", "∞": "sonsuzluk", "♥": "ask", "&": "ve", "|": "veya", "<": "kucuktur", ">": "buyuktur", "∑": "toplam", "¤": "para birimi" }, uk: { "∆": "delta", "∞": "bezkinechnist", "♥": "lubov", "&": "i", "|": "abo", "<": "menshe", ">": "bilshe", "∑": "suma", "¤": "valjuta" }, vn: { "∆": "delta", "∞": "vo cuc", "♥": "yeu", "&": "va", "|": "hoac", "<": "nho hon", ">": "lon hon", "∑": "tong", "¤": "tien te" } }, u = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), d = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), m = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(h, v) { - var w, T, C, L, $, de, Q, se, ae, te, A, B, ie, z, ne = "-", J = "", K = "", G = !0, le = {}, Y = ""; - if (typeof h != "string") return ""; - if (typeof v == "string" && (ne = v), Q = r.en, se = i.en, typeof v == "object") for (A in w = v.maintainCase || !1, le = v.custom && typeof v.custom == "object" ? v.custom : le, C = +v.truncate > 1 && v.truncate || !1, L = v.uric || !1, $ = v.uricNoSlash || !1, de = v.mark || !1, G = v.symbols !== !1 && v.lang !== !1, ne = v.separator || ne, L && (Y += u), $ && (Y += d), de && (Y += m), Q = v.lang && r[v.lang] && G ? r[v.lang] : G ? r.en : {}, se = v.lang && i[v.lang] ? i[v.lang] : v.lang === !1 || v.lang === !0 ? {} : i.en, v.titleCase && typeof v.titleCase.length == "number" && Array.prototype.toString.call(v.titleCase) ? (v.titleCase.forEach(function(Z) { - le[Z + ""] = Z + ""; - }), T = !0) : T = !!v.titleCase, v.custom && typeof v.custom.length == "number" && Array.prototype.toString.call(v.custom) && v.custom.forEach(function(Z) { - le[Z + ""] = Z + ""; - }), Object.keys(le).forEach(function(Z) { - var pe; - pe = Z.length > 1 ? new RegExp("\\b" + g(Z) + "\\b", "gi") : new RegExp(g(Z), "gi"), h = h.replace(pe, le[Z]); - }), le) Y += A; - for (Y = g(Y += ne), ie = !1, z = !1, te = 0, B = (h = h.replace(/(^\s+|\s+$)/g, "")).length; te < B; te++) A = h[te], y(A, le) ? ie = !1 : se[A] ? (A = ie && se[A].match(/[A-Za-z0-9]/) ? " " + se[A] : se[A], ie = !1) : A in o ? (te + 1 < B && l.indexOf(h[te + 1]) >= 0 ? (K += A, A = "") : z === !0 ? (A = n[K] + o[A], K = "") : A = ie && o[A].match(/[A-Za-z0-9]/) ? " " + o[A] : o[A], ie = !1, z = !1) : A in n ? (K += A, A = "", te === B - 1 && (A = n[K]), z = !0) : !Q[A] || L && u.indexOf(A) !== -1 || $ && d.indexOf(A) !== -1 ? (z === !0 ? (A = n[K] + A, K = "", z = !1) : ie && (/[A-Za-z0-9]/.test(A) || J.substr(-1).match(/A-Za-z0-9]/)) && (A = " " + A), ie = !1) : (A = ie || J.substr(-1).match(/[A-Za-z0-9]/) ? ne + Q[A] : Q[A], A += h[te + 1] !== void 0 && h[te + 1].match(/[A-Za-z0-9]/) ? ne : "", ie = !0), J += A.replace(new RegExp("[^\\w\\s" + Y + "_-]", "g"), ne); - return T && (J = J.replace(/(\w)(\S*)/g, function(Z, pe, b) { - var F = pe.toUpperCase() + (b !== null ? b : ""); - return Object.keys(le).indexOf(F.toLowerCase()) < 0 ? F : F.toLowerCase(); - })), J = J.replace(/\s+/g, ne).replace(new RegExp("\\" + ne + "+", "g"), ne).replace(new RegExp("(^\\" + ne + "+|\\" + ne + "+$)", "g"), ""), C && J.length > C && (ae = J.charAt(C) === ne, J = J.slice(0, C), ae || (J = J.slice(0, J.lastIndexOf(ne)))), w || T || (J = J.toLowerCase()), J; - }, O = function(h) { - return function(v) { - return f(v, h); - }; - }, g = function(h) { - return h.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&"); - }, y = function(h, v) { - for (var w in v) if (v[w] === h) return !0; - }; - if (t !== void 0 && t.exports) t.exports = f, t.exports.createSlug = O; - else if (typeof define < "u" && define.amd) define([], function() { - return f; - }); - else try { - if (a.getSlug || a.createSlug) throw "speakingurl: globals exists /(getSlug|createSlug)/"; - a.getSlug = f, a.createSlug = O; - } catch { - } - }(e); -} }), _i = So({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) { - k(), t.exports = gi(); -} }); -function To(e) { - return function(t) { - return !(!t || !t.__v_isReadonly); - }(e) ? To(e.__v_raw) : !(!e || !e.__v_isReactive); -} -function Vn(e) { - return !(!e || e.__v_isRef !== !0); -} -function Rt(e) { - const t = e && e.__v_raw; - return t ? Rt(t) : e; -} -function yi(e) { - const t = e.__file; - if (t) return (a = function(o, l) { - let n = o.replace(/^[a-z]:/i, "").replace(/\\/g, "/"); - n.endsWith(`index${l}`) && (n = n.replace(`/index${l}`, l)); - const i = n.lastIndexOf("/"), r = n.substring(i + 1); - { - const u = r.lastIndexOf(l); - return r.substring(0, u); - } - }(t, ".vue")) && `${a}`.replace(ii, ri); - var a; -} -function Ea(e, t) { - return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t; -} -function sn(e) { - return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__ ? e.__VUE_DEVTOOLS_NEXT_APP_RECORD__ : e.root ? e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__ : void 0; -} -function wo(e) { - var t, a; - const o = (t = e.subTree) == null ? void 0 : t.type, l = sn(e); - return !!l && ((a = l == null ? void 0 : l.types) == null ? void 0 : a.Fragment) === o; -} -function un(e) { - var t, a, o; - const l = function(i) { - var r; - const u = i.name || i._componentTag || i.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || i.__name; - return u === "index" && ((r = i.__file) != null && r.endsWith("index.vue")) ? "" : u; - }((e == null ? void 0 : e.type) || {}); - if (l) return l; - if ((e == null ? void 0 : e.root) === e) return "Root"; - for (const i in (a = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : a.components) if (e.parent.type.components[i] === (e == null ? void 0 : e.type)) return Ea(e, i); - for (const i in (o = e.appContext) == null ? void 0 : o.components) if (e.appContext.components[i] === (e == null ? void 0 : e.type)) return Ea(e, i); - return yi((e == null ? void 0 : e.type) || {}) || "Anonymous Component"; -} -function kn(e, t) { - return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root"); -} -k(), k(), k(), k(), k(), k(), k(), k(); -var Qt, bi = class { - constructor() { - this.refEditor = new Oi(); - } - set(e, t, a, o) { - const l = Array.isArray(t) ? t : t.split("."); - for (; l.length > 1; ) { - const r = l.shift(); - e instanceof Map && (e = e.get(r)), e = e instanceof Set ? Array.from(e.values())[r] : e[r], this.refEditor.isRef(e) && (e = this.refEditor.get(e)); - } - const n = l[0], i = this.refEditor.get(e)[n]; - o ? o(e, n, a) : this.refEditor.isRef(i) ? this.refEditor.set(i, a) : e[n] = a; - } - get(e, t) { - const a = Array.isArray(t) ? t : t.split("."); - for (let o = 0; o < a.length; o++) if (e = e instanceof Map ? e.get(a[o]) : e[a[o]], this.refEditor.isRef(e) && (e = this.refEditor.get(e)), !e) return; - return e; - } - has(e, t, a = !1) { - if (e === void 0) return !1; - const o = Array.isArray(t) ? t.slice() : t.split("."), l = a ? 2 : 1; - for (; e && o.length > l; ) - e = e[o.shift()], this.refEditor.isRef(e) && (e = this.refEditor.get(e)); - return e != null && Object.prototype.hasOwnProperty.call(e, o[0]); - } - createDefaultSetCallback(e) { - return (t, a, o) => { - if ((e.remove || e.newKey) && (Array.isArray(t) ? t.splice(a, 1) : Rt(t) instanceof Map ? t.delete(a) : Rt(t) instanceof Set ? t.delete(Array.from(t.values())[a]) : Reflect.deleteProperty(t, a)), !e.remove) { - const l = t[e.newKey || a]; - this.refEditor.isRef(l) ? this.refEditor.set(l, o) : Rt(t) instanceof Map ? t.set(e.newKey || a, o) : Rt(t) instanceof Set ? t.add(o) : t[e.newKey || a] = o; - } - }; - } -}, Oi = class { - set(e, t) { - if (Vn(e)) e.value = t; - else { - if (e instanceof Set && Array.isArray(t)) return e.clear(), void t.forEach((l) => e.add(l)); - const a = Object.keys(t); - if (e instanceof Map) { - const l = new Set(e.keys()); - return a.forEach((n) => { - e.set(n, Reflect.get(t, n)), l.delete(n); - }), void l.forEach((n) => e.delete(n)); - } - const o = new Set(Object.keys(e)); - a.forEach((l) => { - Reflect.set(e, l, Reflect.get(t, l)), o.delete(l); - }), o.forEach((l) => Reflect.deleteProperty(e, l)); - } - } - get(e) { - return Vn(e) ? e.value : e; - } - isRef(e) { - return Vn(e) || To(e); - } -}; -function Dn(e) { - return wo(e) ? function(t) { - if (!t.children) return []; - const a = []; - return t.children.forEach((o) => { - o.component ? a.push(...Dn(o.component)) : o != null && o.el && a.push(o.el); - }), a; - }(e.subTree) : e.subTree ? [e.subTree.el] : []; -} -function Ei(e, t) { - return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e; -} -k(), k(), k(); -var Va = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 }; -function _t(e) { - const t = e.subTree.el; - return typeof window > "u" ? Va : wo(e) ? function(a) { - const o = /* @__PURE__ */ function() { - const n = { top: 0, bottom: 0, left: 0, right: 0, get width() { - return n.right - n.left; - }, get height() { - return n.bottom - n.top; - } }; - return n; - }(); - if (!a.children) return o; - for (let n = 0, i = a.children.length; n < i; n++) { - const r = a.children[n]; - let u; - if (r.component) u = _t(r.component); - else if (r.el) { - const d = r.el; - d.nodeType === 1 || d.getBoundingClientRect ? u = d.getBoundingClientRect() : d.nodeType === 3 && d.data.trim() && (l = d, Qt || (Qt = document.createRange()), Qt.selectNode(l), u = Qt.getBoundingClientRect()); - } - u && Ei(o, u); - } - var l; - return o; - }(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? _t(e.subTree.component) : Va; -} -var Co = "__vue-devtools-component-inspector__", Ao = "__vue-devtools-component-inspector__card__", Po = "__vue-devtools-component-inspector__name__", xo = "__vue-devtools-component-inspector__indicator__", jo = { display: "block", zIndex: 2147483640, position: "fixed", backgroundColor: "#42b88325", border: "1px solid #42b88350", borderRadius: "5px", transition: "all 0.1s ease-in", pointerEvents: "none" }, Vi = { fontFamily: "Arial, Helvetica, sans-serif", padding: "5px 8px", borderRadius: "4px", textAlign: "left", position: "absolute", left: 0, color: "#e9e9e9", fontSize: "14px", fontWeight: 600, lineHeight: "24px", backgroundColor: "#42b883", boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)" }, ki = { display: "inline-block", fontWeight: 400, fontStyle: "normal", fontSize: "12px", opacity: 0.7 }; -function Tt() { - return document.getElementById(Co); -} -function ta(e) { - return { left: Math.round(100 * e.left) / 100 + "px", top: Math.round(100 * e.top) / 100 + "px", width: Math.round(100 * e.width) / 100 + "px", height: Math.round(100 * e.height) / 100 + "px" }; -} -function na(e) { - var t; - const a = document.createElement("div"); - a.id = (t = e.elementId) != null ? t : Co, Object.assign(a.style, { ...jo, ...ta(e.bounds), ...e.style }); - const o = document.createElement("span"); - o.id = Ao, Object.assign(o.style, { ...Vi, top: e.bounds.top < 35 ? 0 : "-35px" }); - const l = document.createElement("span"); - l.id = Po, l.innerHTML = `<${e.name}>  `; - const n = document.createElement("i"); - return n.id = xo, n.innerHTML = `${Math.round(100 * e.bounds.width) / 100} x ${Math.round(100 * e.bounds.height) / 100}`, Object.assign(n.style, ki), o.appendChild(l), o.appendChild(n), a.appendChild(o), document.body.appendChild(a), a; -} -function aa(e) { - const t = Tt(), a = document.getElementById(Ao), o = document.getElementById(Po), l = document.getElementById(xo); - t && (Object.assign(t.style, { ...jo, ...ta(e.bounds) }), Object.assign(a.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), o.innerHTML = `<${e.name}>  `, l.innerHTML = `${Math.round(100 * e.bounds.width) / 100} x ${Math.round(100 * e.bounds.height) / 100}`); -} -function Uo() { - const e = Tt(); - e && (e.style.display = "none"); -} -var Rn = null; -function In(e) { - const t = e.target; - if (t) { - const a = t.__vueParentComponent; - if (a && (Rn = a, a.vnode.el)) { - const o = _t(a), l = un(a); - Tt() ? aa({ bounds: o, name: l }) : na({ bounds: o, name: l }); - } - } -} -function Ii(e, t) { - var a; - if (e.preventDefault(), e.stopPropagation(), Rn) { - const o = (a = Ne.value) == null ? void 0 : a.app; - (async function(l) { - const { app: n, uid: i, instance: r } = l; - try { - if (r.__VUE_DEVTOOLS_NEXT_UID__) return r.__VUE_DEVTOOLS_NEXT_UID__; - const u = await sn(n); - if (!u) return null; - const d = u.rootInstance === r; - return `${u.id}:${d ? "root" : i}`; - } catch { - } - })({ app: o, uid: o.uid, instance: Rn }).then((l) => { - t(l); - }); - } -} -var ka, en = null; -function Si() { - return new Promise((e) => { - function t() { - (function() { - const a = j.__VUE_INSPECTOR__, o = a.openInEditor; - a.openInEditor = async (...l) => { - a.disable(), o(...l); - }; - })(), e(j.__VUE_INSPECTOR__); - } - j.__VUE_INSPECTOR__ ? t() : function(a) { - let o = 0; - const l = setInterval(() => { - j.__VUE_INSPECTOR__ && (clearInterval(l), o += 30, a()), o >= 5e3 && clearInterval(l); - }, 30); - }(() => { - t(); - }); - }); -} -k(), (ka = j).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ != null || (ka.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0), k(), k(), k(); -var Ia; -function Ti() { - if (!Vo || typeof localStorage > "u" || localStorage === null) return { recordingState: !1, mouseEventEnabled: !1, keyboardEventEnabled: !1, componentEventEnabled: !1, performanceEventEnabled: !1, selected: "" }; - const e = localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__"); - return e ? JSON.parse(e) : { recordingState: !1, mouseEventEnabled: !1, keyboardEventEnabled: !1, componentEventEnabled: !1, performanceEventEnabled: !1, selected: "" }; -} -k(), k(), k(), (Ia = j).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS != null || (Ia.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []); -var Sa, wi = new Proxy(j.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, { get: (e, t, a) => Reflect.get(e, t, a) }); -(Sa = j).__VUE_DEVTOOLS_KIT_INSPECTOR__ != null || (Sa.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []); -var Ta, wa, Ca, Aa, Pa, oa = new Proxy(j.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get: (e, t, a) => Reflect.get(e, t, a) }), Do = St(() => { - Ct.hooks.callHook("sendInspectorToClient", Ro()); -}); -function Ro() { - return oa.filter((e) => e.descriptor.app === Ne.value.app).filter((e) => e.descriptor.id !== "components").map((e) => { - var t; - const a = e.descriptor, o = e.options; - return { id: o.id, label: o.label, logo: a.logo, icon: `custom-ic-baseline-${(t = o == null ? void 0 : o.icon) == null ? void 0 : t.replace(/_/g, "-")}`, packageName: a.packageName, homepage: a.homepage, pluginId: a.id }; - }); -} -function on(e, t) { - return oa.find((a) => a.options.id === e && (!t || a.descriptor.app === t)); -} -(Ta = j).__VUE_DEVTOOLS_KIT_APP_RECORDS__ != null || (Ta.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []), (wa = j).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ != null || (wa.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}), (Ca = j).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ != null || (Ca.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = ""), (Aa = j).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ != null || (Aa.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []), (Pa = j).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ != null || (Pa.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []); -var xa, vt = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__"; -(xa = j)[vt] != null || (xa[vt] = { connected: !1, clientConnected: !1, vitePluginDetected: !0, appRecords: [], activeAppRecordId: "", tabs: [], commands: [], highPerfModeEnabled: !0, devtoolsClientDetected: {}, perfUniqueGroupId: 0, timelineLayersState: Ti() }); -var Ci = St((e) => { - Ct.hooks.callHook("devtoolsStateUpdated", { state: e }); -}); -St((e, t) => { - Ct.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t }); -}); -var dn = new Proxy(j.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get: (e, t, a) => t === "value" ? j.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : j.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t] }), Ne = new Proxy(j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, { get: (e, t, a) => t === "value" ? j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t] }); -function ja() { - Ci({ ...j[vt], appRecords: dn.value, activeAppRecordId: Ne.id, tabs: j.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__, commands: j.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ }); -} -var Ua, Ce = new Proxy(j[vt], { get: (e, t) => t === "appRecords" ? dn : t === "activeAppRecordId" ? Ne.id : t === "tabs" ? j.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? j.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : j[vt][t], deleteProperty: (e, t) => (delete e[t], !0), set: (e, t, a) => (j[vt], e[t] = a, j[vt][t] = a, !0) }); -function Ai(e = {}) { - var t, a, o; - const { file: l, host: n, baseUrl: i = window.location.origin, line: r = 0, column: u = 0 } = e; - if (l) { - if (n === "chrome-extension") { - l.replace(/\\/g, "\\\\"); - const d = (a = (t = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : t.openInEditorHost) != null ? a : "/"; - fetch(`${d}__open-in-editor?file=${encodeURI(l)}`).then((m) => { - m.ok; - }); - } else if (Ce.vitePluginDetected) { - const d = (o = j.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? o : i; - j.__VUE_INSPECTOR__.openInEditor(d, l, r, u); - } - } -} -k(), k(), k(), k(), k(), (Ua = j).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ != null || (Ua.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []); -var Da, Ra, la = new Proxy(j.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get: (e, t, a) => Reflect.get(e, t, a) }); -function Nn(e) { - const t = {}; - return Object.keys(e).forEach((a) => { - t[a] = e[a].defaultValue; - }), t; -} -function ia(e) { - return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`; -} -function Pi(e) { - var t, a, o; - const l = (a = (t = la.find((n) => { - var i; - return n[0].id === e && !!((i = n[0]) != null && i.settings); - })) == null ? void 0 : t[0]) != null ? a : null; - return (o = l == null ? void 0 : l.settings) != null ? o : null; -} -function No(e, t) { - var a, o, l; - const n = ia(e); - if (n) { - const i = localStorage.getItem(n); - if (i) return JSON.parse(i); - } - if (e) { - const i = (o = (a = la.find((r) => r[0].id === e)) == null ? void 0 : a[0]) != null ? o : null; - return Nn((l = i == null ? void 0 : i.settings) != null ? l : {}); - } - return Nn(t); -} -k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(); -var $e = (Ra = (Da = j).__VUE_DEVTOOLS_HOOK) != null ? Ra : Da.__VUE_DEVTOOLS_HOOK = Io(), xi = { vueAppInit(e) { - $e.hook("app:init", e); -}, vueAppUnmount(e) { - $e.hook("app:unmount", e); -}, vueAppConnected(e) { - $e.hook("app:connected", e); -}, componentAdded: (e) => $e.hook("component:added", e), componentEmit: (e) => $e.hook("component:emit", e), componentUpdated: (e) => $e.hook("component:updated", e), componentRemoved: (e) => $e.hook("component:removed", e), setupDevtoolsPlugin(e) { - $e.hook("devtools-plugin:setup", e); -}, perfStart: (e) => $e.hook("perf:start", e), perfEnd: (e) => $e.hook("perf:end", e) }, Mo = { on: xi, setupDevToolsPlugin: (e, t) => $e.callHook("devtools-plugin:setup", e, t) }, ji = class { - constructor({ plugin: e, ctx: t }) { - this.hooks = t.hooks, this.plugin = e; - } - get on() { - return { visitComponentTree: (e) => { - this.hooks.hook("visitComponentTree", e); - }, inspectComponent: (e) => { - this.hooks.hook("inspectComponent", e); - }, editComponentState: (e) => { - this.hooks.hook("editComponentState", e); - }, getInspectorTree: (e) => { - this.hooks.hook("getInspectorTree", e); - }, getInspectorState: (e) => { - this.hooks.hook("getInspectorState", e); - }, editInspectorState: (e) => { - this.hooks.hook("editInspectorState", e); - }, inspectTimelineEvent: (e) => { - this.hooks.hook("inspectTimelineEvent", e); - }, timelineCleared: (e) => { - this.hooks.hook("timelineCleared", e); - }, setPluginSettings: (e) => { - this.hooks.hook("setPluginSettings", e); - } }; - } - notifyComponentUpdate(e) { - var t; - if (Ce.highPerfModeEnabled) return; - const a = Ro().find((o) => o.packageName === this.plugin.descriptor.packageName); - if (a != null && a.id) { - if (e) { - const o = [e.appContext.app, e.uid, (t = e.parent) == null ? void 0 : t.uid, e]; - $e.callHook("component:updated", ...o); - } else $e.callHook("component:updated"); - this.hooks.callHook("sendInspectorState", { inspectorId: a.id, plugin: this.plugin }); - } - } - addInspector(e) { - this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && function(t, a) { - const o = ia(t); - localStorage.getItem(o) || localStorage.setItem(o, JSON.stringify(Nn(a))); - }(e.id, this.plugin.descriptor.settings); - } - sendInspectorTree(e) { - Ce.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin }); - } - sendInspectorState(e) { - Ce.highPerfModeEnabled || this.hooks.callHook("sendInspectorState", { inspectorId: e, plugin: this.plugin }); - } - selectInspectorNode(e, t) { - this.hooks.callHook("customInspectorSelectNode", { inspectorId: e, nodeId: t, plugin: this.plugin }); - } - visitComponentTree(e) { - return this.hooks.callHook("visitComponentTree", e); - } - now() { - return Ce.highPerfModeEnabled ? 0 : Date.now(); - } - addTimelineLayer(e) { - this.hooks.callHook("timelineLayerAdded", { options: e, plugin: this.plugin }); - } - addTimelineEvent(e) { - Ce.highPerfModeEnabled || this.hooks.callHook("timelineEventAdded", { options: e, plugin: this.plugin }); - } - getSettings(e) { - return No(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings); - } - getComponentInstances(e) { - return this.hooks.callHook("getComponentInstances", { app: e }); - } - getComponentBounds(e) { - return this.hooks.callHook("getComponentBounds", { instance: e }); - } - getComponentName(e) { - return this.hooks.callHook("getComponentName", { instance: e }); - } - highlightElement(e) { - const t = e.__VUE_DEVTOOLS_NEXT_UID__; - return this.hooks.callHook("componentHighlight", { uid: t }); - } - unhighlightElement() { - return this.hooks.callHook("componentUnhighlight"); - } -}; -k(), k(), k(), k(); -var Ui = "__vue_devtool_undefined__", Di = "__vue_devtool_infinity__", Ri = "__vue_devtool_negative_infinity__", Ni = "__vue_devtool_nan__"; -k(), k(); -var Na, Mi = { [Ui]: "undefined", [Ni]: "NaN", [Di]: "Infinity", [Ri]: "-Infinity" }; -function Lo(e) { - j.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || Ce.highPerfModeEnabled || (j.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), la.forEach((t) => { - (function(a, o) { - const [l, n] = a; - if (l.app !== o) return; - const i = new ji({ plugin: { setupFn: n, descriptor: l }, ctx: Ct }); - l.packageName === "vuex" && i.on.editInspectorState((r) => { - i.sendInspectorState(r.inspectorId); - }), n(i); - })(t, e); - })); -} -Object.entries(Mi).reduce((e, [t, a]) => (e[a] = t, e), {}), k(), k(), k(), k(), k(), (Na = j).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ != null || (Na.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set()), k(), k(); -var Ma, La, Ba, Nt = "__VUE_DEVTOOLS_ROUTER__", Ot = "__VUE_DEVTOOLS_ROUTER_INFO__"; -function Mn(e) { - return e.map((t) => { - let { path: a, name: o, children: l, meta: n } = t; - return l != null && l.length && (l = Mn(l)), { path: a, name: o, children: l, meta: n }; - }); -} -function Li(e, t) { - function a() { - var o; - const l = (o = e.app) == null ? void 0 : o.config.globalProperties.$router, n = function(u) { - if (u) { - const { fullPath: d, hash: m, href: f, path: O, name: g, matched: y, params: h, query: v } = u; - return { fullPath: d, hash: m, href: f, path: O, name: g, params: h, query: v, matched: Mn(y) }; - } - return u; - }(l == null ? void 0 : l.currentRoute.value), i = Mn(function(u) { - const d = /* @__PURE__ */ new Map(); - return ((u == null ? void 0 : u.getRoutes()) || []).filter((m) => !d.has(m.path) && d.set(m.path, 1)); - }(l)), r = console.warn; - console.warn = () => { - }, j[Ot] = { currentRoute: n ? ba(n) : {}, routes: ba(i) }, j[Nt] = l, console.warn = r; - } - a(), Mo.on.componentUpdated(St(() => { - var o; - ((o = t.value) == null ? void 0 : o.app) === e.app && (a(), Ce.highPerfModeEnabled || Ct.hooks.callHook("routerInfoUpdated", { state: j[Ot] })); - }, 200)); -} -(Ma = j)[Ot] != null || (Ma[Ot] = { currentRoute: null, routes: [] }), (La = j)[Nt] != null || (La[Nt] = {}), new Proxy(j[Ot], { get: (e, t) => j[Ot][t] }), new Proxy(j[Nt], { get(e, t) { - if (t === "value") return j[Nt]; -} }), k(), (Ba = j).__VUE_DEVTOOLS_ENV__ != null || (Ba.__VUE_DEVTOOLS_ENV__ = { vitePluginDetected: !1 }); -var Ha, Dt, $a = function() { - const e = Io(); - e.hook("addInspector", ({ inspector: o, plugin: l }) => { - (function(n, i) { - var r, u; - oa.push({ options: n, descriptor: i, treeFilterPlaceholder: (r = n.treeFilterPlaceholder) != null ? r : "Search tree...", stateFilterPlaceholder: (u = n.stateFilterPlaceholder) != null ? u : "Search state...", treeFilter: "", selectedNodeId: "", appRecord: sn(i.app) }), Do(); - })(o, l.descriptor); - }); - const t = St(async ({ inspectorId: o, plugin: l }) => { - var n; - if (!o || !((n = l == null ? void 0 : l.descriptor) != null && n.app) || Ce.highPerfModeEnabled) return; - const i = on(o, l.descriptor.app), r = { app: l.descriptor.app, inspectorId: o, filter: (i == null ? void 0 : i.treeFilter) || "", rootNodes: [] }; - await new Promise((u) => { - e.callHookWith(async (d) => { - await Promise.all(d.map((m) => m(r))), u(); - }, "getInspectorTree"); - }), e.callHookWith(async (u) => { - await Promise.all(u.map((d) => d({ inspectorId: o, rootNodes: r.rootNodes }))); - }, "sendInspectorTreeToClient"); - }, 120); - e.hook("sendInspectorTree", t); - const a = St(async ({ inspectorId: o, plugin: l }) => { - var n; - if (!o || !((n = l == null ? void 0 : l.descriptor) != null && n.app) || Ce.highPerfModeEnabled) return; - const i = on(o, l.descriptor.app), r = { app: l.descriptor.app, inspectorId: o, nodeId: (i == null ? void 0 : i.selectedNodeId) || "", state: null }, u = { currentTab: `custom-inspector:${o}` }; - r.nodeId && await new Promise((d) => { - e.callHookWith(async (m) => { - await Promise.all(m.map((f) => f(r, u))), d(); - }, "getInspectorState"); - }), e.callHookWith(async (d) => { - await Promise.all(d.map((m) => m({ inspectorId: o, nodeId: r.nodeId, state: r.state }))); - }, "sendInspectorStateToClient"); - }, 120); - return e.hook("sendInspectorState", a), e.hook("customInspectorSelectNode", ({ inspectorId: o, nodeId: l, plugin: n }) => { - const i = on(o, n.descriptor.app); - i && (i.selectedNodeId = l); - }), e.hook("timelineLayerAdded", ({ options: o, plugin: l }) => { - (function(n, i) { - Ce.timelineLayersState[i.id] = !1, wi.push({ ...n, descriptorId: i.id, appRecord: sn(i.app) }); - })(o, l.descriptor); - }), e.hook("timelineEventAdded", ({ options: o, plugin: l }) => { - var n; - Ce.highPerfModeEnabled || !((n = Ce.timelineLayersState) != null && n[l.descriptor.id]) && !["performance", "component-event", "keyboard", "mouse"].includes(o.layerId) || e.callHookWith(async (i) => { - await Promise.all(i.map((r) => r(o))); - }, "sendTimelineEventToClient"); - }), e.hook("getComponentInstances", async ({ app: o }) => { - const l = o.__VUE_DEVTOOLS_NEXT_APP_RECORD__; - if (!l) return null; - const n = l.id.toString(); - return [...l.instanceMap].filter(([i]) => i.split(":")[0] === n).map(([, i]) => i); - }), e.hook("getComponentBounds", async ({ instance: o }) => _t(o)), e.hook("getComponentName", ({ instance: o }) => un(o)), e.hook("componentHighlight", ({ uid: o }) => { - const l = Ne.value.instanceMap.get(o); - l && function(n) { - const i = _t(n); - if (!i.width && !i.height) return; - const r = un(n); - Tt() ? aa({ bounds: i, name: r }) : na({ bounds: i, name: r }); - }(l); - }), e.hook("componentUnhighlight", () => { - Uo(); - }), e; -}(); -(Ha = j).__VUE_DEVTOOLS_KIT_CONTEXT__ != null || (Ha.__VUE_DEVTOOLS_KIT_CONTEXT__ = { hooks: $a, get state() { - return { ...Ce, activeAppRecordId: Ne.id, activeAppRecord: Ne.value, appRecords: dn.value }; -}, api: (Dt = $a, { async getInspectorTree(e) { - const t = { ...e, app: Ne.value.app, rootNodes: [] }; - return await new Promise((a) => { - Dt.callHookWith(async (o) => { - await Promise.all(o.map((l) => l(t))), a(); - }, "getInspectorTree"); - }), t.rootNodes; -}, async getInspectorState(e) { - const t = { ...e, app: Ne.value.app, state: null }, a = { currentTab: `custom-inspector:${e.inspectorId}` }; - return await new Promise((o) => { - Dt.callHookWith(async (l) => { - await Promise.all(l.map((n) => n(t, a))), o(); - }, "getInspectorState"); - }), t.state; -}, editInspectorState(e) { - const t = new bi(), a = { ...e, app: Ne.value.app, set: (o, l = e.path, n = e.state.value, i) => { - t.set(o, l, n, i || t.createDefaultSetCallback(e.state)); - } }; - Dt.callHookWith((o) => { - o.forEach((l) => l(a)); - }, "editInspectorState"); -}, sendInspectorState(e) { - const t = on(e); - Dt.callHook("sendInspectorState", { inspectorId: e, plugin: { descriptor: t.descriptor, setupFn: () => ({}) } }); -}, inspectComponentInspector: () => (window.addEventListener("mouseover", In), new Promise((e) => { - function t(a) { - a.preventDefault(), a.stopPropagation(), Ii(a, (o) => { - window.removeEventListener("click", t, !0), en = null, window.removeEventListener("mouseover", In); - const l = Tt(); - l && (l.style.display = "none"), e(JSON.stringify({ id: o })); - }); - } - en = t, window.addEventListener("click", t, !0); -})), cancelInspectComponentInspector: () => (Uo(), window.removeEventListener("mouseover", In), window.removeEventListener("click", en, !0), void (en = null)), getComponentRenderCode(e) { - const t = kn(Ne.value, e); - if (t) return (t == null ? void 0 : t.type) instanceof Function ? t.type.toString() : t.render.toString(); -}, scrollToComponent: (e) => function(t) { - const a = kn(Ne.value, t.id); - if (a) { - const [o] = Dn(a); - if (typeof o.scrollIntoView == "function") o.scrollIntoView({ behavior: "smooth" }); - else { - const l = _t(a), n = document.createElement("div"), i = { ...ta(l), position: "absolute" }; - Object.assign(n.style, i), document.body.appendChild(n), n.scrollIntoView({ behavior: "smooth" }), setTimeout(() => { - document.body.removeChild(n); - }, 2e3); - } - setTimeout(() => { - const l = _t(a); - if (l.width || l.height) { - const n = un(a), i = Tt(); - i ? aa({ ...t, name: n, bounds: l }) : na({ ...t, name: n, bounds: l }), setTimeout(() => { - i && (i.style.display = "none"); - }, 1500); - } - }, 1200); - } -}({ id: e }), openInEditor: Ai, getVueInspector: Si, toggleApp(e) { - const t = dn.value.find((o) => o.id === e); - var a; - t && (function(o) { - j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = o, ja(); - }(e), a = t, j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = a, ja(), Li(t, Ne), Do(), Lo(t.app)); -}, inspectDOM(e) { - const t = kn(Ne.value, e); - if (t) { - const [a] = Dn(t); - a && (j.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = a); - } -}, updatePluginSettings(e, t, a) { - (function(o, l, n) { - const i = ia(o), r = localStorage.getItem(i), u = JSON.parse(r || "{}"), d = { ...u, [l]: n }; - localStorage.setItem(i, JSON.stringify(d)), Ct.hooks.callHookWith((m) => { - m.forEach((f) => f({ pluginId: o, key: l, oldValue: u[l], newValue: n, settings: d })); - }, "setPluginSettings"); - })(e, t, a); -}, getPluginSettings: (e) => ({ options: Pi(e), values: No(e) }) }) }); -var Fa, za, Ct = j.__VUE_DEVTOOLS_KIT_CONTEXT__; -k(), ((e, t, a) => { - a = e != null ? fi(mi(e)) : {}, ((o, l, n, i) => { - if (l && typeof l == "object" || typeof l == "function") for (let r of ea(l)) hi.call(o, r) || r === n || Oa(o, r, { get: () => l[r], enumerable: !(i = vi(l, r)) || i.enumerable }); - })(Oa(a, "default", { value: e, enumerable: !0 }), e); -})(_i()), (Fa = j).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ != null || (Fa.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = { id: 0, appIds: /* @__PURE__ */ new Set() }), k(), k(), k(), k(), (za = j).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ != null || (za.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = function(e) { - Ce.devtoolsClientDetected = { ...Ce.devtoolsClientDetected, ...e }; - const t = Object.values(Ce.devtoolsClientDetected).some(Boolean); - var a; - a = !t, Ce.highPerfModeEnabled = a ?? !Ce.highPerfModeEnabled, !a && Ne.value && Lo(Ne.value.app); -}), k(), k(), k(), k(), k(), k(), k(); -var Bi = class { - constructor() { - this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map(); - } - set(e, t) { - this.keyToValue.set(e, t), this.valueToKey.set(t, e); - } - getByKey(e) { - return this.keyToValue.get(e); - } - getByValue(e) { - return this.valueToKey.get(e); - } - clear() { - this.keyToValue.clear(), this.valueToKey.clear(); - } -}, Bo = class { - constructor(e) { - this.generateIdentifier = e, this.kv = new Bi(); - } - register(e, t) { - this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e)); - } - clear() { - this.kv.clear(); - } - getIdentifier(e) { - return this.kv.getByValue(e); - } - getValue(e) { - return this.kv.getByKey(e); - } -}, Hi = class extends Bo { - constructor() { - super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map(); - } - register(e, t) { - typeof t == "object" ? (t.allowProps && this.classToAllowedProps.set(e, t.allowProps), super.register(e, t.identifier)) : super.register(e, t); - } - getAllowedProps(e) { - return this.classToAllowedProps.get(e); - } -}; -function $i(e, t) { - const a = function(l) { - if ("values" in Object) return Object.values(l); - const n = []; - for (const i in l) l.hasOwnProperty(i) && n.push(l[i]); - return n; - }(e); - if ("find" in a) return a.find(t); - const o = a; - for (let l = 0; l < o.length; l++) { - const n = o[l]; - if (t(n)) return n; - } -} -function wt(e, t) { - Object.entries(e).forEach(([a, o]) => t(o, a)); -} -function ln(e, t) { - return e.indexOf(t) !== -1; -} -function Ka(e, t) { - for (let a = 0; a < e.length; a++) { - const o = e[a]; - if (t(o)) return o; - } -} -k(), k(); -var Fi = class { - constructor() { - this.transfomers = {}; - } - register(e) { - this.transfomers[e.name] = e; - } - findApplicable(e) { - return $i(this.transfomers, (t) => t.isApplicable(e)); - } - findByName(e) { - return this.transfomers[e]; - } -}; -k(), k(); -var Ho = (e) => e === void 0, Wt = (e) => typeof e == "object" && e !== null && e !== Object.prototype && (Object.getPrototypeOf(e) === null || Object.getPrototypeOf(e) === Object.prototype), Ln = (e) => Wt(e) && Object.keys(e).length === 0, dt = (e) => Array.isArray(e), Gt = (e) => e instanceof Map, Yt = (e) => e instanceof Set, $o = (e) => ((t) => Object.prototype.toString.call(t).slice(8, -1))(e) === "Symbol", qa = (e) => typeof e == "number" && isNaN(e), zi = (e) => /* @__PURE__ */ ((t) => typeof t == "boolean")(e) || /* @__PURE__ */ ((t) => t === null)(e) || Ho(e) || ((t) => typeof t == "number" && !isNaN(t))(e) || /* @__PURE__ */ ((t) => typeof t == "string")(e) || $o(e); -k(); -var Fo = (e) => e.replace(/\./g, "\\."), Sn = (e) => e.map(String).map(Fo).join("."), Ht = (e) => { - const t = []; - let a = ""; - for (let l = 0; l < e.length; l++) { - let n = e.charAt(l); - if (n === "\\" && e.charAt(l + 1) === ".") { - a += ".", l++; - continue; - } - n === "." ? (t.push(a), a = "") : a += n; - } - const o = a; - return t.push(o), t; -}; -function Je(e, t, a, o) { - return { isApplicable: e, annotation: t, transform: a, untransform: o }; -} -k(); -var zo = [Je(Ho, "undefined", () => null, () => { -}), Je((e) => typeof e == "bigint", "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)), Je((e) => e instanceof Date && !isNaN(e.valueOf()), "Date", (e) => e.toISOString(), (e) => new Date(e)), Je((e) => e instanceof Error, "Error", (e, t) => { - const a = { name: e.name, message: e.message }; - return t.allowedErrorProps.forEach((o) => { - a[o] = e[o]; - }), a; -}, (e, t) => { - const a = new Error(e.message); - return a.name = e.name, a.stack = e.stack, t.allowedErrorProps.forEach((o) => { - a[o] = e[o]; - }), a; -}), Je((e) => e instanceof RegExp, "regexp", (e) => "" + e, (e) => { - const t = e.slice(1, e.lastIndexOf("/")), a = e.slice(e.lastIndexOf("/") + 1); - return new RegExp(t, a); -}), Je(Yt, "set", (e) => [...e.values()], (e) => new Set(e)), Je(Gt, "map", (e) => [...e.entries()], (e) => new Map(e)), Je((e) => { - return qa(e) || (t = e) === 1 / 0 || t === -1 / 0; - var t; -}, "number", (e) => qa(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number), Je((e) => e === 0 && 1 / e == -1 / 0, "number", () => "-0", Number), Je((e) => e instanceof URL, "URL", (e) => e.toString(), (e) => new URL(e))]; -function mn(e, t, a, o) { - return { isApplicable: e, annotation: t, transform: a, untransform: o }; -} -var Ko = mn((e, t) => $o(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, a) => { - const o = a.symbolRegistry.getValue(t[1]); - if (!o) throw new Error("Trying to deserialize unknown symbol"); - return o; -}), Ki = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, Uint8ClampedArray].reduce((e, t) => (e[t.name] = t, e), {}), qo = mn((e) => ArrayBuffer.isView(e) && !(e instanceof DataView), (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => { - const a = Ki[t[1]]; - if (!a) throw new Error("Trying to deserialize unknown typed array"); - return new a(e); -}); -function Wo(e, t) { - return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1; -} -var Go = mn(Wo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => { - const a = t.classRegistry.getAllowedProps(e.constructor); - if (!a) return { ...e }; - const o = {}; - return a.forEach((l) => { - o[l] = e[l]; - }), o; -}, (e, t, a) => { - const o = a.classRegistry.getValue(t[1]); - if (!o) throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564"); - return Object.assign(Object.create(o.prototype), e); -}), Yo = mn((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, a) => { - const o = a.customTransformerRegistry.findByName(t[1]); - if (!o) throw new Error("Trying to deserialize unknown custom value"); - return o.deserialize(e); -}), qi = [Go, Ko, Yo, qo], Wa = (e, t) => { - const a = Ka(qi, (l) => l.isApplicable(e, t)); - if (a) return { value: a.transform(e, t), type: a.annotation(e, t) }; - const o = Ka(zo, (l) => l.isApplicable(e, t)); - return o ? { value: o.transform(e, t), type: o.annotation } : void 0; -}, Zo = {}; -zo.forEach((e) => { - Zo[e.annotation] = e; -}); -k(); -var Et = (e, t) => { - const a = e.keys(); - for (; t > 0; ) a.next(), t--; - return a.next().value; -}; -function Xo(e) { - if (ln(e, "__proto__")) throw new Error("__proto__ is not allowed as a property"); - if (ln(e, "prototype")) throw new Error("prototype is not allowed as a property"); - if (ln(e, "constructor")) throw new Error("constructor is not allowed as a property"); -} -var Bn = (e, t, a) => { - if (Xo(t), t.length === 0) return a(e); - let o = e; - for (let n = 0; n < t.length - 1; n++) { - const i = t[n]; - if (dt(o)) - o = o[+i]; - else if (Wt(o)) o = o[i]; - else if (Yt(o)) - o = Et(o, +i); - else if (Gt(o)) { - if (n === t.length - 2) break; - const r = +i, u = +t[++n] == 0 ? "key" : "value", d = Et(o, r); - switch (u) { - case "key": - o = d; - break; - case "value": - o = o.get(d); - } - } - } - const l = t[t.length - 1]; - if (dt(o) ? o[+l] = a(o[+l]) : Wt(o) && (o[l] = a(o[l])), Yt(o)) { - const n = Et(o, +l), i = a(n); - n !== i && (o.delete(n), o.add(i)); - } - if (Gt(o)) { - const n = +t[t.length - 2], i = Et(o, n); - switch (+l == 0 ? "key" : "value") { - case "key": { - const r = a(i); - o.set(r, o.get(i)), r !== i && o.delete(i); - break; - } - case "value": - o.set(i, a(o.get(i))); - } - } - return e; -}; -function Hn(e, t, a = []) { - if (!e) return; - if (!dt(e)) return void wt(e, (n, i) => Hn(n, t, [...a, ...Ht(i)])); - const [o, l] = e; - l && wt(l, (n, i) => { - Hn(n, t, [...a, ...Ht(i)]); - }), t(o, a); -} -function Wi(e, t, a) { - return Hn(t, (o, l) => { - e = Bn(e, l, (n) => ((i, r, u) => { - if (!dt(r)) { - const d = Zo[r]; - if (!d) throw new Error("Unknown transformation: " + r); - return d.untransform(i, u); - } - switch (r[0]) { - case "symbol": - return Ko.untransform(i, r, u); - case "class": - return Go.untransform(i, r, u); - case "custom": - return Yo.untransform(i, r, u); - case "typed-array": - return qo.untransform(i, r, u); - default: - throw new Error("Unknown transformation: " + r); - } - })(n, o, a)); - }), e; -} -function Gi(e, t) { - function a(o, l) { - const n = ((i, r) => { - Xo(r); - for (let u = 0; u < r.length; u++) { - const d = r[u]; - if (Yt(i)) i = Et(i, +d); - else if (Gt(i)) { - const m = +d, f = +r[++u] == 0 ? "key" : "value", O = Et(i, m); - switch (f) { - case "key": - i = O; - break; - case "value": - i = i.get(O); - } - } else i = i[d]; - } - return i; - })(e, Ht(l)); - o.map(Ht).forEach((i) => { - e = Bn(e, i, () => n); - }); - } - if (dt(t)) { - const [o, l] = t; - o.forEach((n) => { - e = Bn(e, Ht(n), () => e); - }), l && wt(l, a); - } else wt(t, a); - return e; -} -var Jo = (e, t, a, o, l = [], n = [], i = /* @__PURE__ */ new Map()) => { - var r; - const u = zi(e); - if (!u) { - (function(h, v, w) { - const T = w.get(h); - T ? T.push(v) : w.set(h, [v]); - })(e, l, t); - const y = i.get(e); - if (y) return o ? { transformedValue: null } : y; - } - if (!((y, h) => Wt(y) || dt(y) || Gt(y) || Yt(y) || Wo(y, h))(e, a)) { - const y = Wa(e, a), h = y ? { transformedValue: y.value, annotations: [y.type] } : { transformedValue: e }; - return u || i.set(e, h), h; - } - if (ln(n, e)) return { transformedValue: null }; - const d = Wa(e, a), m = (r = d == null ? void 0 : d.value) != null ? r : e, f = dt(m) ? [] : {}, O = {}; - wt(m, (y, h) => { - if (h === "__proto__" || h === "constructor" || h === "prototype") throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`); - const v = Jo(y, t, a, o, [...l, h], [...n, e], i); - f[h] = v.transformedValue, dt(v.annotations) ? O[h] = v.annotations : Wt(v.annotations) && wt(v.annotations, (w, T) => { - O[Fo(h) + "." + T] = w; - }); - }); - const g = Ln(O) ? { transformedValue: f, annotations: d ? [d.type] : void 0 } : { transformedValue: f, annotations: d ? [d.type, O] : O }; - return u || i.set(e, g), g; -}; -function Qo(e) { - return Object.prototype.toString.call(e).slice(8, -1); -} -function Ga(e) { - return Qo(e) === "Array"; -} -function $n(e, t = {}) { - return Ga(e) ? e.map((a) => $n(a, t)) : function(a) { - if (Qo(a) !== "Object") return !1; - const o = Object.getPrototypeOf(a); - return !!o && o.constructor === Object && o === Object.prototype; - }(e) ? [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)].reduce((a, o) => (Ga(t.props) && !t.props.includes(o) || function(l, n, i, r, u) { - const d = {}.propertyIsEnumerable.call(r, n) ? "enumerable" : "nonenumerable"; - d === "enumerable" && (l[n] = i), u && d === "nonenumerable" && Object.defineProperty(l, n, { value: i, enumerable: !1, writable: !0, configurable: !0 }); - }(a, o, $n(e[o], t), e, t.nonenumerable), a), {}) : e; -} -k(), k(); -var Ya, Za, Xa, Ja, Qa, eo, ge = class { - constructor({ dedupe: e = !1 } = {}) { - this.classRegistry = new Hi(), this.symbolRegistry = new Bo((t) => { - var a; - return (a = t.description) != null ? a : ""; - }), this.customTransformerRegistry = new Fi(), this.allowedErrorProps = [], this.dedupe = e; - } - serialize(e) { - const t = /* @__PURE__ */ new Map(), a = Jo(e, t, this, this.dedupe), o = { json: a.transformedValue }; - a.annotations && (o.meta = { ...o.meta, values: a.annotations }); - const l = function(n, i) { - const r = {}; - let u; - return n.forEach((d) => { - if (d.length <= 1) return; - i || (d = d.map((O) => O.map(String)).sort((O, g) => O.length - g.length)); - const [m, ...f] = d; - m.length === 0 ? u = f.map(Sn) : r[Sn(m)] = f.map(Sn); - }), u ? Ln(r) ? [u] : [u, r] : Ln(r) ? void 0 : r; - }(t, this.dedupe); - return l && (o.meta = { ...o.meta, referentialEqualities: l }), o; - } - deserialize(e) { - const { json: t, meta: a } = e; - let o = $n(t); - return a != null && a.values && (o = Wi(o, a.values, this)), a != null && a.referentialEqualities && (o = Gi(o, a.referentialEqualities)), o; - } - stringify(e) { - return JSON.stringify(this.serialize(e)); - } - parse(e) { - return this.deserialize(JSON.parse(e)); - } - registerClass(e, t) { - this.classRegistry.register(e, t); - } - registerSymbol(e, t) { - this.symbolRegistry.register(e, t); - } - registerCustom(e, t) { - this.customTransformerRegistry.register({ name: t, ...e }); - } - allowErrorProps(...e) { - this.allowedErrorProps.push(...e); - } -}; -/** - * vee-validate v4.14.7 - * (c) 2024 Abdelrahman Awad - * @license MIT - */ -function je(e) { - return typeof e == "function"; -} -function el(e) { - return e == null; -} -ge.defaultInstance = new ge(), ge.serialize = ge.defaultInstance.serialize.bind(ge.defaultInstance), ge.deserialize = ge.defaultInstance.deserialize.bind(ge.defaultInstance), ge.stringify = ge.defaultInstance.stringify.bind(ge.defaultInstance), ge.parse = ge.defaultInstance.parse.bind(ge.defaultInstance), ge.registerClass = ge.defaultInstance.registerClass.bind(ge.defaultInstance), ge.registerSymbol = ge.defaultInstance.registerSymbol.bind(ge.defaultInstance), ge.registerCustom = ge.defaultInstance.registerCustom.bind(ge.defaultInstance), ge.allowErrorProps = ge.defaultInstance.allowErrorProps.bind(ge.defaultInstance), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), (Ya = j).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ != null || (Ya.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []), (Za = j).__VUE_DEVTOOLS_KIT_RPC_CLIENT__ != null || (Za.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null), (Xa = j).__VUE_DEVTOOLS_KIT_RPC_SERVER__ != null || (Xa.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null), (Ja = j).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ != null || (Ja.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null), (Qa = j).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ != null || (Qa.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null), (eo = j).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ != null || (eo.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null), k(), k(), k(), k(), k(), k(), k(); -const ct = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e); -function ra(e) { - return Number(e) >= 0; -} -function to(e) { - if (!/* @__PURE__ */ function(a) { - return typeof a == "object" && a !== null; - }(e) || function(a) { - return a == null ? a === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(a); - }(e) !== "[object Object]") return !1; - if (Object.getPrototypeOf(e) === null) return !0; - let t = e; - for (; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t); - return Object.getPrototypeOf(e) === t; -} -function Mt(e, t) { - return Object.keys(t).forEach((a) => { - if (to(t[a]) && to(e[a])) return e[a] || (e[a] = {}), void Mt(e[a], t[a]); - e[a] = t[a]; - }), e; -} -function Lt(e) { - const t = e.split("."); - if (!t.length) return ""; - let a = String(t[0]); - for (let o = 1; o < t.length; o++) ra(t[o]) ? a += `[${t[o]}]` : a += `.${t[o]}`; - return a; -} -const Yi = {}; -function no(e, t, a) { - typeof a.value == "object" && (a.value = fe(a.value)), a.enumerable && !a.get && !a.set && a.configurable && a.writable && t !== "__proto__" ? e[t] = a.value : Object.defineProperty(e, t, a); -} -function fe(e) { - if (typeof e != "object") return e; - var t, a, o, l = 0, n = Object.prototype.toString.call(e); - if (n === "[object Object]" ? o = Object.create(e.__proto__ || null) : n === "[object Array]" ? o = Array(e.length) : n === "[object Set]" ? (o = /* @__PURE__ */ new Set(), e.forEach(function(i) { - o.add(fe(i)); - })) : n === "[object Map]" ? (o = /* @__PURE__ */ new Map(), e.forEach(function(i, r) { - o.set(fe(r), fe(i)); - })) : n === "[object Date]" ? o = /* @__PURE__ */ new Date(+e) : n === "[object RegExp]" ? o = new RegExp(e.source, e.flags) : n === "[object DataView]" ? o = new e.constructor(fe(e.buffer)) : n === "[object ArrayBuffer]" ? o = e.slice(0) : n.slice(-6) === "Array]" && (o = new e.constructor(e)), o) { - for (a = Object.getOwnPropertySymbols(e); l < a.length; l++) no(o, a[l], Object.getOwnPropertyDescriptor(e, a[l])); - for (l = 0, a = Object.getOwnPropertyNames(e); l < a.length; l++) Object.hasOwnProperty.call(o, t = a[l]) && o[t] === e[t] || no(o, t, Object.getOwnPropertyDescriptor(e, t)); - } - return o || e; -} -const sa = Symbol("vee-validate-form"), Zi = Symbol("vee-validate-form-context"), Xi = Symbol("vee-validate-field-instance"), cn = Symbol("Default empty value"), Ji = typeof window < "u"; -function Fn(e) { - return je(e) && !!e.__locatorRef; -} -function qe(e) { - return !!e && je(e.parse) && e.__type === "VVTypedSchema"; -} -function pn(e) { - return !!e && je(e.validate); -} -function Zt(e) { - return e === "checkbox" || e === "radio"; -} -function hn(e) { - return /^\[.+\]$/i.test(e); -} -function ao(e) { - return e.tagName === "SELECT"; -} -function Qi(e, t) { - return !function(a, o) { - const l = ![!1, null, void 0, 0].includes(o.multiple) && !Number.isNaN(o.multiple); - return a === "select" && "multiple" in o && l; - }(e, t) && t.type !== "file" && !Zt(t.type); -} -function tl(e) { - return !!e && (!!(typeof Event < "u" && je(Event) && e instanceof Event) || !(!e || !e.srcElement)); -} -function oo(e, t) { - return t in e && e[t] !== cn; -} -function Le(e, t) { - if (e === t) return !0; - if (e && t && typeof e == "object" && typeof t == "object") { - if (e.constructor !== t.constructor) return !1; - var a, o, l; - if (Array.isArray(e)) { - if ((a = e.length) != t.length) return !1; - for (o = a; o-- != 0; ) if (!Le(e[o], t[o])) return !1; - return !0; - } - if (e instanceof Map && t instanceof Map) { - if (e.size !== t.size) return !1; - for (o of e.entries()) if (!t.has(o[0])) return !1; - for (o of e.entries()) if (!Le(o[1], t.get(o[0]))) return !1; - return !0; - } - if (io(e) && io(t)) return e.size === t.size && e.name === t.name && e.lastModified === t.lastModified && e.type === t.type; - if (e instanceof Set && t instanceof Set) { - if (e.size !== t.size) return !1; - for (o of e.entries()) if (!t.has(o[0])) return !1; - return !0; - } - if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { - if ((a = e.length) != t.length) return !1; - for (o = a; o-- != 0; ) if (e[o] !== t[o]) return !1; - return !0; - } - if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags; - if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf(); - if (e.toString !== Object.prototype.toString) return e.toString() === t.toString(); - if ((a = (l = Object.keys(e)).length - lo(e, l)) !== Object.keys(t).length - lo(t, Object.keys(t))) return !1; - for (o = a; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(t, l[o])) return !1; - for (o = a; o-- != 0; ) { - var n = l[o]; - if (!Le(e[n], t[n])) return !1; - } - return !0; - } - return e != e && t != t; -} -function lo(e, t) { - let a = 0; - for (let o = t.length; o-- != 0; ) - e[t[o]] === void 0 && a++; - return a; -} -function io(e) { - return !!Ji && e instanceof File; -} -function ua(e) { - return hn(e) ? e.replace(/\[|\]/gi, "") : e; -} -function He(e, t, a) { - return e ? hn(t) ? e[ua(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o, l) => { - return (ct(n = o) || Array.isArray(n)) && l in o ? o[l] : a; - var n; - }, e) : a; -} -function Qe(e, t, a) { - if (hn(t)) return void (e[ua(t)] = a); - const o = t.split(/\.|\[(\d+)\]/).filter(Boolean); - let l = e; - for (let n = 0; n < o.length; n++) { - if (n === o.length - 1) return void (l[o[n]] = a); - o[n] in l && !el(l[o[n]]) || (l[o[n]] = ra(o[n + 1]) ? [] : {}), l = l[o[n]]; - } -} -function Tn(e, t) { - Array.isArray(e) && ra(t) ? e.splice(Number(t), 1) : ct(e) && delete e[t]; -} -function ro(e, t) { - if (hn(t)) return void delete e[ua(t)]; - const a = t.split(/\.|\[(\d+)\]/).filter(Boolean); - let o = e; - for (let i = 0; i < a.length; i++) { - if (i === a.length - 1) { - Tn(o, a[i]); - break; - } - if (!(a[i] in o) || el(o[a[i]])) break; - o = o[a[i]]; - } - const l = a.map((i, r) => He(e, a.slice(0, r).join("."))); - for (let i = l.length - 1; i >= 0; i--) n = l[i], (Array.isArray(n) ? n.length === 0 : ct(n) && Object.keys(n).length === 0) && (i !== 0 ? Tn(l[i - 1], a[i - 1]) : Tn(e, a[0])); - var n; -} -function Be(e) { - return Object.keys(e); -} -function nl(e, t = void 0) { - const a = ft(); - return (a == null ? void 0 : a.provides[e]) || at(e, t); -} -function so(e, t, a) { - if (Array.isArray(e)) { - const o = [...e], l = o.findIndex((n) => Le(n, t)); - return l >= 0 ? o.splice(l, 1) : o.push(t), o; - } - return Le(e, t) ? a : t; -} -function uo(e, t = 0) { - let a = null, o = []; - return function(...l) { - return a && clearTimeout(a), a = setTimeout(() => { - const n = e(...l); - o.forEach((i) => i(n)), o = []; - }, t), new Promise((n) => o.push(n)); - }; -} -function er(e, t) { - return ct(t) && t.number ? function(a) { - const o = parseFloat(a); - return isNaN(o) ? a : o; - }(e) : e; -} -function zn(e, t) { - let a; - return async function(...o) { - const l = e(...o); - a = l; - const n = await l; - return l !== a ? n : (a = void 0, t(n, o)); - }; -} -function Kn(e) { - return Array.isArray(e) ? e : e ? [e] : []; -} -function tn(e, t) { - const a = {}; - for (const o in e) t.includes(o) || (a[o] = e[o]); - return a; -} -function wn(e) { - if (al(e)) return e._value; -} -function al(e) { - return "_value" in e; -} -function fn(e) { - if (!tl(e)) return e; - const t = e.target; - if (Zt(t.type) && al(t)) return wn(t); - if (t.type === "file" && t.files) { - const o = Array.from(t.files); - return t.multiple ? o : o[0]; - } - if (ao(a = t) && a.multiple) return Array.from(t.options).filter((o) => o.selected && !o.disabled).map(wn); - var a; - if (ao(t)) { - const o = Array.from(t.options).find((l) => l.selected); - return o ? wn(o) : t.value; - } - return function(o) { - return o.type === "number" || o.type === "range" ? Number.isNaN(o.valueAsNumber) ? o.value : o.valueAsNumber : o.value; - }(t); -} -function ol(e) { - const t = {}; - return Object.defineProperty(t, "_$$isNormalized", { value: !0, writable: !1, enumerable: !1, configurable: !1 }), e ? ct(e) && e._$$isNormalized ? e : ct(e) ? Object.keys(e).reduce((a, o) => { - const l = function(n) { - return n === !0 ? [] : Array.isArray(n) || ct(n) ? n : [n]; - }(e[o]); - return e[o] !== !1 && (a[o] = co(l)), a; - }, t) : typeof e != "string" ? t : e.split("|").reduce((a, o) => { - const l = tr(o); - return l.name && (a[l.name] = co(l.params)), a; - }, t) : t; -} -function co(e) { - const t = (a) => typeof a == "string" && a[0] === "@" ? function(o) { - const l = (n) => { - var i; - return (i = He(n, o)) !== null && i !== void 0 ? i : n[o]; - }; - return l.__locatorRef = o, l; - }(a.slice(1)) : a; - return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((a, o) => (a[o] = t(e[o]), a), {}); -} -const tr = (e) => { - let t = []; - const a = e.split(":")[0]; - return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: a, params: t }; -}; -let nr = Object.assign({}, { generateMessage: ({ field: e }) => `${e} is not valid.`, bails: !0, validateOnBlur: !0, validateOnChange: !0, validateOnInput: !1, validateOnModelUpdate: !0 }); -const mt = () => nr; -async function ll(e, t, a = {}) { - const o = a == null ? void 0 : a.bails, l = { name: (a == null ? void 0 : a.name) || "{field}", rules: t, label: a == null ? void 0 : a.label, bails: o == null || o, formData: (a == null ? void 0 : a.values) || {} }, n = await async function(i, r) { - const u = i.rules; - if (qe(u) || pn(u)) return async function(g, y) { - const h = qe(y.rules) ? y.rules : il(y.rules), v = await h.parse(g, { formData: y.formData }), w = []; - for (const T of v.errors) T.errors.length && w.push(...T.errors); - return { value: v.value, errors: w }; - }(r, Object.assign(Object.assign({}, i), { rules: u })); - if (je(u) || Array.isArray(u)) { - const g = { field: i.label || i.name, name: i.name, label: i.label, form: i.formData, value: r }, y = Array.isArray(u) ? u : [u], h = y.length, v = []; - for (let w = 0; w < h; w++) { - const T = y[w], C = await T(r, g); - if (!(typeof C != "string" && !Array.isArray(C) && C)) { - if (Array.isArray(C)) v.push(...C); - else { - const L = typeof C == "string" ? C : rl(g); - v.push(L); - } - if (i.bails) return { errors: v }; - } - } - return { errors: v }; - } - const d = Object.assign(Object.assign({}, i), { rules: ol(u) }), m = [], f = Object.keys(d.rules), O = f.length; - for (let g = 0; g < O; g++) { - const y = f[g], h = await ar(d, r, { name: y, params: d.rules[y] }); - if (h.error && (m.push(h.error), i.bails)) return { errors: m }; - } - return { errors: m }; - }(l, e); - return Object.assign(Object.assign({}, n), { valid: !n.errors.length }); -} -function il(e) { - return { __type: "VVTypedSchema", async parse(a, o) { - var l; - try { - return { output: await e.validate(a, { abortEarly: !1, context: (o == null ? void 0 : o.formData) || {} }), errors: [] }; - } catch (n) { - if (!function(r) { - return !!r && r.name === "ValidationError"; - }(n)) throw n; - if (!(!((l = n.inner) === null || l === void 0) && l.length) && n.errors.length) return { errors: [{ path: n.path, errors: n.errors }] }; - const i = n.inner.reduce((r, u) => { - const d = u.path || ""; - return r[d] || (r[d] = { errors: [], path: d }), r[d].errors.push(...u.errors), r; - }, {}); - return { errors: Object.values(i) }; - } - } }; -} -async function ar(e, t, a) { - const o = (l = a.name, Yi[l]); - var l; - if (!o) throw new Error(`No such validator '${a.name}' exists.`); - const n = function(u, d) { - const m = (f) => Fn(f) ? f(d) : f; - return Array.isArray(u) ? u.map(m) : Object.keys(u).reduce((f, O) => (f[O] = m(u[O]), f), {}); - }(a.params, e.formData), i = { field: e.label || e.name, name: e.name, label: e.label, value: t, form: e.formData, rule: Object.assign(Object.assign({}, a), { params: n }) }, r = await o(t, n, i); - return typeof r == "string" ? { error: r } : { error: r ? void 0 : rl(i) }; -} -function rl(e) { - const t = mt().generateMessage; - return t ? t(e) : "Field is invalid"; -} -async function or(e, t, a) { - const o = Be(e).map(async (u) => { - var d, m, f; - const O = (d = a == null ? void 0 : a.names) === null || d === void 0 ? void 0 : d[u], g = await ll(He(t, u), e[u], { name: (O == null ? void 0 : O.name) || u, label: O == null ? void 0 : O.label, values: t, bails: (f = (m = a == null ? void 0 : a.bailsMap) === null || m === void 0 ? void 0 : m[u]) === null || f === void 0 || f }); - return Object.assign(Object.assign({}, g), { path: u }); - }); - let l = !0; - const n = await Promise.all(o), i = {}, r = {}; - for (const u of n) i[u.path] = { valid: u.valid, errors: u.errors }, u.valid || (l = !1, r[u.path] = u.errors[0]); - return { valid: l, results: i, errors: r, source: "schema" }; -} -let po = 0; -function lr(e, t) { - const { value: a, initialValue: o, setInitialValue: l } = function(r, u, d) { - const m = _e(s(u)); - function f() { - return d ? He(d.initialValues.value, s(r), s(m)) : s(m); - } - function O(v) { - d ? d.setFieldInitialValue(s(r), v, !0) : m.value = v; - } - const g = S(f); - if (!d) - return { value: _e(f()), initialValue: g, setInitialValue: O }; - const y = function(v, w, T, C) { - return nt(v) ? s(v) : v !== void 0 ? v : He(w.values, s(C), s(T)); - }(u, d, g, r); - return d.stageInitialValue(s(r), y, !0), { value: S({ get: () => He(d.values, s(r)), set(v) { - d.setFieldValue(s(r), v, !1); - } }), initialValue: g, setInitialValue: O }; - }(e, t.modelValue, t.form); - if (!t.form) { - let f = function(O) { - var g; - "value" in O && (a.value = O.value), "errors" in O && u(O.errors), "touched" in O && (m.touched = (g = O.touched) !== null && g !== void 0 ? g : m.touched), "initialValue" in O && l(O.initialValue); - }; - const { errors: r, setErrors: u } = function() { - const O = _e([]); - return { errors: O, setErrors: (g) => { - O.value = Kn(g); - } }; - }(), d = po >= Number.MAX_SAFE_INTEGER ? 0 : ++po, m = function(O, g, y, h) { - const v = S(() => { - var T, C, L; - return (L = (C = (T = N(h)) === null || T === void 0 ? void 0 : T.describe) === null || C === void 0 ? void 0 : C.call(T).required) !== null && L !== void 0 && L; - }), w = Vt({ touched: !1, pending: !1, valid: !0, required: v, validated: !!s(y).length, initialValue: S(() => s(g)), dirty: S(() => !Le(s(O), s(g))) }); - return et(y, (T) => { - w.valid = !T.length; - }, { immediate: !0, flush: "sync" }), w; - }(a, o, r, t.schema); - return { id: d, path: e, value: a, initialValue: o, meta: m, flags: { pendingUnmount: { [d]: !1 }, pendingReset: !1 }, errors: r, setState: f }; - } - const n = t.form.createPathState(e, { bails: t.bails, label: t.label, type: t.type, validate: t.validate, schema: t.schema }), i = S(() => n.errors); - return { id: Array.isArray(n.id) ? n.id[n.id.length - 1] : n.id, path: e, value: a, errors: i, meta: n, initialValue: o, flags: n.__flags, setState: function(r) { - var u, d, m; - "value" in r && (a.value = r.value), "errors" in r && ((u = t.form) === null || u === void 0 || u.setFieldError(s(e), r.errors)), "touched" in r && ((d = t.form) === null || d === void 0 || d.setFieldTouched(s(e), (m = r.touched) !== null && m !== void 0 && m)), "initialValue" in r && l(r.initialValue); - } }; -} -const $t = {}, Ft = {}, zt = "vee-validate-inspector", ir = 12405579, rr = 448379, sr = 5522283, vn = 16777215, qn = 0, ur = 218007, dr = 12157168, cr = 16099682, pr = 12304330; -let ht, Se = null; -function sl(e) { - var t, a; - process.env.NODE_ENV !== "production" && (t = { id: "vee-validate-devtools-plugin", label: "VeeValidate Plugin", packageName: "vee-validate", homepage: "https://vee-validate.logaretm.com/v4", app: e, logo: "https://vee-validate.logaretm.com/v4/logo.png" }, a = (o) => { - ht = o, o.addInspector({ id: zt, icon: "rule", label: "vee-validate", noSelectionText: "Select a vee-validate node to inspect", actions: [{ icon: "done_outline", tooltip: "Validate selected item", action: async () => { - Se ? Se.type !== "field" ? Se.type !== "form" ? Se.type === "pathState" && await Se.form.validateField(Se.state.path) : await Se.form.validate() : await Se.field.validate() : console.error("There is not a valid selected vee-validate node or component"); - } }, { icon: "delete_sweep", tooltip: "Clear validation state of the selected item", action: () => { - Se ? Se.type !== "field" ? (Se.type === "form" && Se.form.resetForm(), Se.type === "pathState" && Se.form.resetField(Se.state.path)) : Se.field.resetField() : console.error("There is not a valid selected vee-validate node or component"); - } }] }), o.on.getInspectorTree((l) => { - if (l.inspectorId !== zt) return; - const n = Object.values($t), i = Object.values(Ft); - l.rootNodes = [...n.map(fr), ...i.map((r) => function(u, d) { - return { id: Wn(d, u), label: s(u.name), tags: ul(!1, 1, u.type, u.meta.valid, d) }; - }(r))]; - }), o.on.getInspectorState((l) => { - if (l.inspectorId !== zt) return; - const { form: n, field: i, state: r, type: u } = function(d) { - try { - const m = JSON.parse(decodeURIComponent(atob(d))), f = $t[m.f]; - if (!f && m.ff) { - const g = Ft[m.ff]; - return g ? { type: m.type, field: g } : {}; - } - if (!f) return {}; - const O = f.getPathState(m.ff); - return { type: m.type, form: f, state: O }; - } catch { - } - return {}; - }(l.nodeId); - return o.unhighlightElement(), n && u === "form" ? (l.state = function(d) { - const { errorBag: m, meta: f, values: O, isSubmitting: g, isValidating: y, submitCount: h } = d; - return { "Form state": [{ key: "submitCount", value: h.value }, { key: "isSubmitting", value: g.value }, { key: "isValidating", value: y.value }, { key: "touched", value: f.value.touched }, { key: "dirty", value: f.value.dirty }, { key: "valid", value: f.value.valid }, { key: "initialValues", value: f.value.initialValues }, { key: "currentValues", value: O }, { key: "errors", value: Be(m.value).reduce((v, w) => { - var T; - const C = (T = m.value[w]) === null || T === void 0 ? void 0 : T[0]; - return C && (v[w] = C), v; - }, {}) }] }; - }(n), Se = { type: "form", form: n }, void o.highlightElement(n._vm)) : r && u === "pathState" && n ? (l.state = fo(r), void (Se = { type: "pathState", state: r, form: n })) : i && u === "field" ? (l.state = fo({ errors: i.errors.value, dirty: i.meta.dirty, valid: i.meta.valid, touched: i.meta.touched, value: i.value.value, initialValue: i.meta.initialValue }), Se = { field: i, type: "field" }, void o.highlightElement(i._vm)) : (Se = null, void o.unhighlightElement()); - }); - }, Mo.setupDevToolsPlugin(t, a)); -} -const It = /* @__PURE__ */ function(e, t) { - let a, o; - return function(...l) { - const n = this; - return a || (a = !0, setTimeout(() => a = !1, t), o = e.apply(n, l)), o; - }; -}(() => { - setTimeout(async () => { - await Ke(), ht == null || ht.sendInspectorState(zt), ht == null || ht.sendInspectorTree(zt); - }, 100); -}, 100); -function fr(e) { - const { textColor: t, bgColor: a } = dl(e.meta.value.valid), o = {}; - Object.values(e.getAllPathStates()).forEach((n) => { - Qe(o, N(n.path), function(i, r) { - return { id: Wn(r, i), label: N(i.path), tags: ul(i.multiple, i.fieldsCount, i.type, i.valid, r) }; - }(n, e)); - }); - const { children: l } = function n(i, r = []) { - const u = [...r].pop(); - return "id" in i ? Object.assign(Object.assign({}, i), { label: u || i.label }) : ct(i) ? { id: `${r.join(".")}`, label: u || "", children: Object.keys(i).map((d) => n(i[d], [...r, d])) } : Array.isArray(i) ? { id: `${r.join(".")}`, label: `${u}[]`, children: i.map((d, m) => n(d, [...r, String(m)])) } : { id: "", label: "", children: [] }; - }(o); - return { id: Wn(e), label: e.name, children: l, tags: [{ label: "Form", textColor: t, backgroundColor: a }, { label: `${e.getAllPathStates().length} fields`, textColor: vn, backgroundColor: sr }] }; -} -function ul(e, t, a, o, l) { - const { textColor: n, bgColor: i } = dl(o); - return [e ? void 0 : { label: "Field", textColor: n, backgroundColor: i }, l ? void 0 : { label: "Standalone", textColor: qn, backgroundColor: pr }, a === "checkbox" ? { label: "Checkbox", textColor: vn, backgroundColor: ur } : void 0, a === "radio" ? { label: "Radio", textColor: vn, backgroundColor: dr } : void 0, e ? { label: "Multiple", textColor: qn, backgroundColor: cr } : void 0].filter(Boolean); -} -function Wn(e, t) { - const a = t ? "path" in t ? "pathState" : "field" : "form", o = t ? "path" in t ? t == null ? void 0 : t.path : N(t == null ? void 0 : t.name) : "", l = { f: e == null ? void 0 : e.formId, ff: (t == null ? void 0 : t.id) || o, type: a }; - return btoa(encodeURIComponent(JSON.stringify(l))); -} -function fo(e) { - return { "Field state": [{ key: "errors", value: e.errors }, { key: "initialValue", value: e.initialValue }, { key: "currentValue", value: e.value }, { key: "touched", value: e.touched }, { key: "dirty", value: e.dirty }, { key: "valid", value: e.valid }] }; -} -function dl(e) { - return { bgColor: e ? rr : ir, textColor: e ? qn : vn }; -} -function At(e, t, a) { - return Zt(a == null ? void 0 : a.type) ? function(o, l, n) { - const i = n != null && n.standalone ? void 0 : nl(sa), r = n == null ? void 0 : n.checkedValue, u = n == null ? void 0 : n.uncheckedValue; - function d(m) { - const f = m.handleChange, O = S(() => { - const y = N(m.value), h = N(r); - return Array.isArray(y) ? y.findIndex((v) => Le(v, h)) >= 0 : Le(h, y); - }); - function g(y, h = !0) { - var v, w; - if (O.value === ((v = y == null ? void 0 : y.target) === null || v === void 0 ? void 0 : v.checked)) return void (h && m.validate()); - const T = N(o), C = i == null ? void 0 : i.getPathState(T), L = fn(y); - let $ = (w = N(r)) !== null && w !== void 0 ? w : L; - i && (C != null && C.multiple) && C.type === "checkbox" ? $ = so(He(i.values, T) || [], $, void 0) : (n == null ? void 0 : n.type) === "checkbox" && ($ = so(N(m.value), $, N(u))), f($, h); - } - return Object.assign(Object.assign({}, m), { checked: O, checkedValue: r, uncheckedValue: u, handleChange: g }); - } - return d(vo(o, l, n)); - }(e, t, a) : vo(e, t, a); -} -function vo(e, t, a) { - const { initialValue: o, validateOnMount: l, bails: n, type: i, checkedValue: r, label: u, validateOnValueUpdate: d, uncheckedValue: m, controlled: f, keepValueOnUnmount: O, syncVModel: g, form: y } = function(b) { - const F = () => ({ initialValue: void 0, validateOnMount: !1, bails: !0, label: void 0, validateOnValueUpdate: !0, keepValueOnUnmount: void 0, syncVModel: !1, controlled: !0 }), ue = !!(b != null && b.syncVModel), H = typeof (b == null ? void 0 : b.syncVModel) == "string" ? b.syncVModel : (b == null ? void 0 : b.modelPropName) || "modelValue", ce = ue && !("initialValue" in (b || {})) ? Cn(ft(), H) : b == null ? void 0 : b.initialValue; - if (!b) return Object.assign(Object.assign({}, F()), { initialValue: ce }); - const oe = "valueProp" in b ? b.valueProp : b.checkedValue, Ie = "standalone" in b ? !b.standalone : b.controlled, he = (b == null ? void 0 : b.modelPropName) || (b == null ? void 0 : b.syncVModel) || !1; - return Object.assign(Object.assign(Object.assign({}, F()), b || {}), { initialValue: ce, controlled: Ie == null || Ie, checkedValue: oe, syncVModel: he }); - }(a), h = f ? nl(sa) : void 0, v = y || h, w = S(() => Lt(N(e))), T = S(() => { - if (N(v == null ? void 0 : v.schema)) return; - const b = s(t); - return pn(b) || qe(b) || je(b) || Array.isArray(b) ? b : ol(b); - }), C = !je(T.value) && qe(N(t)), { id: L, value: $, initialValue: de, meta: Q, setState: se, errors: ae, flags: te } = lr(w, { modelValue: o, form: v, bails: n, label: u, type: i, validate: T.value ? ne : void 0, schema: C ? t : void 0 }), A = S(() => ae.value[0]); - g && function({ prop: b, value: F, handleChange: ue, shouldValidate: H }) { - const ce = ft(); - if (!ce || !b) return void (process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.")); - const oe = typeof b == "string" ? b : "modelValue", Ie = `update:${oe}`; - oe in ce.props && (et(F, (he) => { - Le(he, Cn(ce, oe)) || ce.emit(Ie, he); - }), et(() => Cn(ce, oe), (he) => { - if (he === cn && F.value === void 0) return; - const V = he === cn ? void 0 : he; - Le(V, F.value) || ue(V, H()); - })); - }({ value: $, prop: g, handleChange: J, shouldValidate: () => d && !te.pendingReset }); - async function B(b) { - var F, ue; - if (v != null && v.validateSchema) { - const { results: H } = await v.validateSchema(b); - return (F = H[N(w)]) !== null && F !== void 0 ? F : { valid: !0, errors: [] }; - } - return T.value ? ll($.value, T.value, { name: N(w), label: N(u), values: (ue = v == null ? void 0 : v.values) !== null && ue !== void 0 ? ue : {}, bails: n }) : { valid: !0, errors: [] }; - } - const ie = zn(async () => (Q.pending = !0, Q.validated = !0, B("validated-only")), (b) => (te.pendingUnmount[Z.id] || (se({ errors: b.errors }), Q.pending = !1, Q.valid = b.valid), b)), z = zn(async () => B("silent"), (b) => (Q.valid = b.valid, b)); - function ne(b) { - return (b == null ? void 0 : b.mode) === "silent" ? z() : ie(); - } - function J(b, F = !0) { - le(fn(b), F); - } - function K(b) { - var F; - const ue = b && "value" in b ? b.value : de.value; - se({ value: fe(ue), initialValue: fe(ue), touched: (F = b == null ? void 0 : b.touched) !== null && F !== void 0 && F, errors: (b == null ? void 0 : b.errors) || [] }), Q.pending = !1, Q.validated = !1, z(); - } - Gn(() => { - if (l) return ie(); - v && v.validateSchema || z(); - }); - const G = ft(); - function le(b, F = !0) { - $.value = G && g ? er(b, G.props.modelModifiers) : b, (F ? ie : z)(); - } - const Y = S({ get: () => $.value, set(b) { - le(b, d); - } }), Z = { id: L, name: w, label: u, value: Y, meta: Q, errors: ae, errorMessage: A, type: i, checkedValue: r, uncheckedValue: m, bails: n, keepValueOnUnmount: O, resetField: K, handleReset: () => K(), validate: ne, handleChange: J, handleBlur: (b, F = !1) => { - Q.touched = !0, F && ie(); - }, setState: se, setTouched: function(b) { - Q.touched = b; - }, setErrors: function(b) { - se({ errors: Array.isArray(b) ? b : [b] }); - }, setValue: le }; - if (Kt(Xi, Z), nt(t) && typeof s(t) != "function" && et(t, (b, F) => { - Le(b, F) || (Q.validated ? ie() : z()); - }, { deep: !0 }), process.env.NODE_ENV !== "production" && (Z._vm = ft(), et(() => Object.assign(Object.assign({ errors: ae.value }, Q), { value: $.value }), It, { deep: !0 }), v || function(b) { - const F = ft(); - if (!ht) { - const ue = F == null ? void 0 : F.appContext.app; - if (!ue) return; - sl(ue); - } - Ft[b.id] = Object.assign({}, b), Ft[b.id]._vm = F, yt(() => { - delete Ft[b.id], It(); - }), It(); - }(Z)), !v) return Z; - const pe = S(() => { - const b = T.value; - return !b || je(b) || pn(b) || qe(b) || Array.isArray(b) ? {} : Object.keys(b).reduce((F, ue) => { - const H = (ce = b[ue], Array.isArray(ce) ? ce.filter(Fn) : Be(ce).filter((oe) => Fn(ce[oe])).map((oe) => ce[oe])).map((oe) => oe.__locatorRef).reduce((oe, Ie) => { - const he = He(v.values, Ie) || v.values[Ie]; - return he !== void 0 && (oe[Ie] = he), oe; - }, {}); - var ce; - return Object.assign(F, H), F; - }, {}); - }); - return et(pe, (b, F) => { - Object.keys(b).length && !Le(b, F) && (Q.validated ? ie() : z()); - }), fl(() => { - var b; - const F = (b = N(Z.keepValueOnUnmount)) !== null && b !== void 0 ? b : N(v.keepValuesOnUnmount), ue = N(w); - if (F || !v || te.pendingUnmount[Z.id]) return void (v == null || v.removePathState(ue, L)); - te.pendingUnmount[Z.id] = !0; - const H = v.getPathState(ue); - if (Array.isArray(H == null ? void 0 : H.id) && (H != null && H.multiple) ? H != null && H.id.includes(Z.id) : (H == null ? void 0 : H.id) === Z.id) { - if (H != null && H.multiple && Array.isArray(H.value)) { - const ce = H.value.findIndex((oe) => Le(oe, N(Z.checkedValue))); - if (ce > -1) { - const oe = [...H.value]; - oe.splice(ce, 1), v.setFieldValue(ue, oe); - } - Array.isArray(H.id) && H.id.splice(H.id.indexOf(Z.id), 1); - } else v.unsetPathValue(N(w)); - v.removePathState(ue, L); - } - }), Z; -} -function Cn(e, t) { - if (e) return e.props[t]; -} -const vr = Ge({ name: "Field", inheritAttrs: !1, props: { as: { type: [String, Object], default: void 0 }, name: { type: String, required: !0 }, rules: { type: [Object, String, Function], default: void 0 }, validateOnMount: { type: Boolean, default: !1 }, validateOnBlur: { type: Boolean, default: void 0 }, validateOnChange: { type: Boolean, default: void 0 }, validateOnInput: { type: Boolean, default: void 0 }, validateOnModelUpdate: { type: Boolean, default: void 0 }, bails: { type: Boolean, default: () => mt().bails }, label: { type: String, default: void 0 }, uncheckedValue: { type: null, default: void 0 }, modelValue: { type: null, default: cn }, modelModifiers: { type: null, default: () => ({}) }, "onUpdate:modelValue": { type: null, default: void 0 }, standalone: { type: Boolean, default: !1 }, keepValue: { type: Boolean, default: void 0 } }, setup(e, t) { - const a = xt(e, "rules"), o = xt(e, "name"), l = xt(e, "label"), n = xt(e, "uncheckedValue"), i = xt(e, "keepValue"), { errors: r, value: u, errorMessage: d, validate: m, handleChange: f, handleBlur: O, setTouched: g, resetField: y, handleReset: h, meta: v, checked: w, setErrors: T, setValue: C } = At(o, a, { validateOnMount: e.validateOnMount, bails: e.bails, standalone: e.standalone, type: t.attrs.type, initialValue: mr(e, t), checkedValue: t.attrs.value, uncheckedValue: n, label: l, validateOnValueUpdate: e.validateOnModelUpdate, keepValueOnUnmount: i, syncVModel: !0 }), L = function(ae, te = !0) { - f(ae, te); - }, $ = S(() => { - const { validateOnInput: ae, validateOnChange: te, validateOnBlur: A, validateOnModelUpdate: B } = function(z) { - var ne, J, K, G; - const { validateOnInput: le, validateOnChange: Y, validateOnBlur: Z, validateOnModelUpdate: pe } = mt(); - return { validateOnInput: (ne = z.validateOnInput) !== null && ne !== void 0 ? ne : le, validateOnChange: (J = z.validateOnChange) !== null && J !== void 0 ? J : Y, validateOnBlur: (K = z.validateOnBlur) !== null && K !== void 0 ? K : Z, validateOnModelUpdate: (G = z.validateOnModelUpdate) !== null && G !== void 0 ? G : pe }; - }(e); - return { name: e.name, onBlur: function(z) { - O(z, A), je(t.attrs.onBlur) && t.attrs.onBlur(z); - }, onInput: function(z) { - L(z, ae), je(t.attrs.onInput) && t.attrs.onInput(z); - }, onChange: function(z) { - L(z, te), je(t.attrs.onChange) && t.attrs.onChange(z); - }, "onUpdate:modelValue": (z) => L(z, B) }; - }), de = S(() => { - const ae = Object.assign({}, $.value); - return Zt(t.attrs.type) && w && (ae.checked = w.value), Qi(mo(e, t), t.attrs) && (ae.value = u.value), ae; - }), Q = S(() => Object.assign(Object.assign({}, $.value), { modelValue: u.value })); - function se() { - return { field: de.value, componentField: Q.value, value: u.value, meta: v, errors: r.value, errorMessage: d.value, validate: m, resetField: y, handleChange: L, handleInput: (ae) => L(ae, !1), handleReset: h, handleBlur: $.value.onBlur, setTouched: g, setErrors: T, setValue: C }; - } - return t.expose({ value: u, meta: v, errors: r, errorMessage: d, setErrors: T, setTouched: g, setValue: C, reset: y, validate: m, handleChange: f }), () => { - const ae = go(mo(e, t)), te = function(A, B, ie) { - return B.slots.default ? typeof A != "string" && A ? { default: () => { - var z, ne; - return (ne = (z = B.slots).default) === null || ne === void 0 ? void 0 : ne.call(z, ie()); - } } : B.slots.default(ie()) : B.slots.default; - }(ae, t, se); - return ae ? gl(ae, Object.assign(Object.assign({}, t.attrs), de.value), te) : te; - }; -} }); -function mo(e, t) { - let a = e.as || ""; - return e.as || t.slots.default || (a = "input"), a; -} -function mr(e, t) { - return Zt(t.attrs.type) ? oo(e, "modelValue") ? e.modelValue : void 0 : oo(e, "modelValue") ? e.modelValue : t.attrs.value; -} -const hr = vr; -let gr = 0; -const nn = ["bails", "fieldsCount", "id", "multiple", "type", "validate"]; -function ho(e) { - const t = (e == null ? void 0 : e.initialValues) || {}, a = Object.assign({}, N(t)), o = s(e == null ? void 0 : e.validationSchema); - return o && qe(o) && je(o.cast) ? fe(o.cast(a) || {}) : fe(a); -} -function _r(e) { - var t; - const a = gr++, o = (e == null ? void 0 : e.name) || "Form"; - let l = 0; - const n = _e(!1), i = _e(!1), r = _e(0), u = [], d = Vt(ho(e)), m = _e([]), f = _e({}), O = _e({}), g = /* @__PURE__ */ function(p) { - let c = null, _ = []; - return function(...I) { - const E = Ke(() => { - if (c !== E) return; - const U = p(...I); - _.forEach((x) => x(U)), _ = [], c = null; - }); - return c = E, new Promise((U) => _.push(U)); - }; - }(() => { - O.value = m.value.reduce((p, c) => (p[Lt(N(c.path))] = c, p), {}); - }); - function y(p, c) { - const _ = K(p); - if (_) { - if (typeof p == "string") { - const I = Lt(p); - f.value[I] && delete f.value[I]; - } - _.errors = Kn(c), _.valid = !_.errors.length; - } else typeof p == "string" && (f.value[Lt(p)] = Kn(c)); - } - function h(p) { - Be(p).forEach((c) => { - y(c, p[c]); - }); - } - e != null && e.initialErrors && h(e.initialErrors); - const v = S(() => { - const p = m.value.reduce((c, _) => (_.errors.length && (c[N(_.path)] = _.errors), c), {}); - return Object.assign(Object.assign({}, f.value), p); - }), w = S(() => Be(v.value).reduce((p, c) => { - const _ = v.value[c]; - return _ != null && _.length && (p[c] = _[0]), p; - }, {})), T = S(() => m.value.reduce((p, c) => (p[N(c.path)] = { name: N(c.path) || "", label: c.label || "" }, p), {})), C = S(() => m.value.reduce((p, c) => { - var _; - return p[N(c.path)] = (_ = c.bails) === null || _ === void 0 || _, p; - }, {})), L = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), $ = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 && t, { initialValues: de, originalInitialValues: Q, setInitialValues: se } = function(p, c, _) { - const I = ho(_), E = _e(I), U = _e(fe(I)); - function x(q, ee) { - ee != null && ee.force ? (E.value = fe(q), U.value = fe(q)) : (E.value = Mt(fe(E.value) || {}, fe(q)), U.value = Mt(fe(U.value) || {}, fe(q))), ee != null && ee.updateFields && p.value.forEach((ye) => { - if (ye.touched) return; - const W = He(E.value, N(ye.path)); - Qe(c, N(ye.path), fe(W)); - }); - } - return { initialValues: E, originalInitialValues: U, setInitialValues: x }; - }(m, d, e), ae = function(p, c, _, I) { - const E = { touched: "some", pending: "some", valid: "every" }, U = S(() => !Le(c, s(_))); - function x() { - const ee = p.value; - return Be(E).reduce((ye, W) => { - const Ve = E[W]; - return ye[W] = ee[Ve]((be) => be[W]), ye; - }, {}); - } - const q = Vt(x()); - return hl(() => { - const ee = x(); - q.touched = ee.touched, q.valid = ee.valid, q.pending = ee.pending; - }), S(() => Object.assign(Object.assign({ initialValues: s(_) }, q), { valid: q.valid && !Be(I.value).length, dirty: U.value })); - }(m, d, Q, w), te = S(() => m.value.reduce((p, c) => { - const _ = He(d, N(c.path)); - return Qe(p, N(c.path), _), p; - }, {})), A = e == null ? void 0 : e.validationSchema; - function B(p, c) { - var _, I; - const E = S(() => He(de.value, N(p))), U = O.value[N(p)], x = (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "radio"; - if (U && x) { - U.multiple = !0; - const Ee = l++; - return Array.isArray(U.id) ? U.id.push(Ee) : U.id = [U.id, Ee], U.fieldsCount++, U.__flags.pendingUnmount[Ee] = !1, U; - } - const q = S(() => He(d, N(p))), ee = N(p), ye = le.findIndex((Ee) => Ee === ee); - ye !== -1 && le.splice(ye, 1); - const W = S(() => { - var Ee, De, Ye, bt; - const ze = N(A); - if (qe(ze)) return (De = (Ee = ze.describe) === null || Ee === void 0 ? void 0 : Ee.call(ze, N(p)).required) !== null && De !== void 0 && De; - const lt = N(c == null ? void 0 : c.schema); - return !!qe(lt) && (bt = (Ye = lt.describe) === null || Ye === void 0 ? void 0 : Ye.call(lt).required) !== null && bt !== void 0 && bt; - }), Ve = l++, be = Vt({ id: Ve, path: p, touched: !1, pending: !1, valid: !0, validated: !!(!((_ = L[ee]) === null || _ === void 0) && _.length), required: W, initialValue: E, errors: An([]), bails: (I = c == null ? void 0 : c.bails) !== null && I !== void 0 && I, label: c == null ? void 0 : c.label, type: (c == null ? void 0 : c.type) || "default", value: q, multiple: !1, __flags: { pendingUnmount: { [Ve]: !1 }, pendingReset: !1 }, fieldsCount: 1, validate: c == null ? void 0 : c.validate, dirty: S(() => !Le(s(q), s(E))) }); - return m.value.push(be), O.value[ee] = be, g(), w.value[ee] && !L[ee] && Ke(() => { - V(ee, { mode: "silent" }); - }), nt(p) && et(p, (Ee) => { - g(); - const De = fe(q.value); - O.value[Ee] = be, Ke(() => { - Qe(d, Ee, De); - }); - }), be; - } - const ie = uo(we, 5), z = uo(we, 5), ne = zn(async (p) => await (p === "silent" ? ie() : z()), (p, [c]) => { - const _ = Be(pe.errorBag.value), I = [.../* @__PURE__ */ new Set([...Be(p.results), ...m.value.map((E) => E.path), ..._])].sort().reduce((E, U) => { - var x; - const q = U, ee = K(q) || function(be) { - return m.value.filter((De) => be.startsWith(N(De.path))).reduce((De, Ye) => De ? Ye.path.length > De.path.length ? Ye : De : Ye, void 0); - }(q), ye = ((x = p.results[q]) === null || x === void 0 ? void 0 : x.errors) || [], W = N(ee == null ? void 0 : ee.path) || q, Ve = function(be, Ee) { - return Ee ? { valid: be.valid && Ee.valid, errors: [...be.errors, ...Ee.errors] } : be; - }({ errors: ye, valid: !ye.length }, E.results[W]); - return E.results[W] = Ve, Ve.valid || (E.errors[W] = Ve.errors[0]), ee && f.value[W] && delete f.value[W], ee ? (ee.valid = Ve.valid, c === "silent" || (c !== "validated-only" || ee.validated) && y(ee, Ve.errors), E) : (y(W, ye), E); - }, { valid: p.valid, results: {}, errors: {}, source: p.source }); - return p.values && (I.values = p.values, I.source = p.source), Be(I.results).forEach((E) => { - var U; - const x = K(E); - x && c !== "silent" && (c !== "validated-only" || x.validated) && y(x, (U = I.results[E]) === null || U === void 0 ? void 0 : U.errors); - }), I; - }); - function J(p) { - m.value.forEach(p); - } - function K(p) { - const c = typeof p == "string" ? Lt(p) : p; - return typeof c == "string" ? O.value[c] : c; - } - let G, le = []; - function Y(p) { - return function(c, _) { - return function(I) { - return I instanceof Event && (I.preventDefault(), I.stopPropagation()), J((E) => E.touched = !0), n.value = !0, r.value++, he().then((E) => { - const U = fe(d); - if (E.valid && typeof c == "function") { - const x = fe(te.value); - let q = p ? x : U; - return E.values && (q = E.source === "schema" ? E.values : Object.assign({}, q, E.values)), c(q, { evt: I, controlledValues: x, setErrors: h, setFieldError: y, setTouched: ce, setFieldTouched: H, setValues: F, setFieldValue: b, resetForm: Ie, resetField: oe }); - } - E.valid || typeof _ != "function" || _({ values: U, evt: I, errors: E.errors, results: E.results }); - }).then((E) => (n.value = !1, E), (E) => { - throw n.value = !1, E; - }); - }; - }; - } - const Z = Y(!1); - Z.withControlled = Y(!0); - const pe = { name: o, formId: a, values: d, controlledValues: te, errorBag: v, errors: w, schema: A, submitCount: r, meta: ae, isSubmitting: n, isValidating: i, fieldArrays: u, keepValuesOnUnmount: $, validateSchema: s(A) ? ne : void 0, validate: he, setFieldError: y, validateField: V, setFieldValue: b, setValues: F, setErrors: h, setFieldTouched: H, setTouched: ce, resetForm: Ie, resetField: oe, handleSubmit: Z, useFieldModel: function(p) { - return Array.isArray(p) ? p.map((c) => ue(c, !0)) : ue(p); - }, defineInputBinds: function(p, c) { - const [_, I] = P(p, c); - function E() { - I.value.onBlur(); - } - function U(q) { - const ee = fn(q); - b(N(p), ee, !1), I.value.onInput(); - } - function x(q) { - const ee = fn(q); - b(N(p), ee, !1), I.value.onChange(); - } - return S(() => Object.assign(Object.assign({}, I.value), { onBlur: E, onInput: U, onChange: x, value: _.value })); - }, defineComponentBinds: function(p, c) { - const [_, I] = P(p, c), E = K(N(p)); - function U(x) { - _.value = x; - } - return S(() => { - const x = je(c) ? c(tn(E, nn)) : c || {}; - return Object.assign({ [x.model || "modelValue"]: _.value, [`onUpdate:${x.model || "modelValue"}`]: U }, I.value); - }); - }, defineField: P, stageInitialValue: function(p, c, _ = !1) { - ke(p, c), Qe(d, p, c), _ && !(e != null && e.initialValues) && Qe(Q.value, p, fe(c)); - }, unsetInitialValue: D, setFieldInitialValue: ke, createPathState: B, getPathState: K, unsetPathValue: function(p) { - return le.push(p), G || (G = Ke(() => { - [...le].sort().reverse().forEach((c) => { - ro(d, c); - }), le = [], G = null; - })), G; - }, removePathState: function(p, c) { - const _ = m.value.findIndex((E) => E.path === p && (Array.isArray(E.id) ? E.id.includes(c) : E.id === c)), I = m.value[_]; - if (_ !== -1 && I) { - if (Ke(() => { - V(p, { mode: "silent", warn: !1 }); - }), I.multiple && I.fieldsCount && I.fieldsCount--, Array.isArray(I.id)) { - const E = I.id.indexOf(c); - E >= 0 && I.id.splice(E, 1), delete I.__flags.pendingUnmount[c]; - } - (!I.multiple || I.fieldsCount <= 0) && (m.value.splice(_, 1), D(p), g(), delete O.value[p]); - } - }, initialValues: de, getAllPathStates: () => m.value, destroyPath: function(p) { - Be(O.value).forEach((c) => { - c.startsWith(p) && delete O.value[c]; - }), m.value = m.value.filter((c) => !c.path.startsWith(p)), Ke(() => { - g(); - }); - }, isFieldTouched: function(p) { - const c = K(p); - return c ? c.touched : m.value.filter((_) => _.path.startsWith(p)).some((_) => _.touched); - }, isFieldDirty: function(p) { - const c = K(p); - return c ? c.dirty : m.value.filter((_) => _.path.startsWith(p)).some((_) => _.dirty); - }, isFieldValid: function(p) { - const c = K(p); - return c ? c.valid : m.value.filter((_) => _.path.startsWith(p)).every((_) => _.valid); - } }; - function b(p, c, _ = !0) { - const I = fe(c), E = typeof p == "string" ? p : p.path; - K(E) || B(E), Qe(d, E, I), _ && V(E); - } - function F(p, c = !0) { - Mt(d, p), u.forEach((_) => _ && _.reset()), c && he(); - } - function ue(p, c) { - const _ = K(N(p)) || B(p); - return S({ get: () => _.value, set(I) { - var E; - b(N(p), I, (E = N(c)) !== null && E !== void 0 && E); - } }); - } - function H(p, c) { - const _ = K(p); - _ && (_.touched = c); - } - function ce(p) { - typeof p != "boolean" ? Be(p).forEach((c) => { - H(c, !!p[c]); - }) : J((c) => { - c.touched = p; - }); - } - function oe(p, c) { - var _; - const I = c && "value" in c ? c.value : He(de.value, p), E = K(p); - E && (E.__flags.pendingReset = !0), ke(p, fe(I), !0), b(p, I, !1), H(p, (_ = c == null ? void 0 : c.touched) !== null && _ !== void 0 && _), y(p, (c == null ? void 0 : c.errors) || []), Ke(() => { - E && (E.__flags.pendingReset = !1); - }); - } - function Ie(p, c) { - let _ = fe(p != null && p.values ? p.values : Q.value); - _ = c != null && c.force ? _ : Mt(Q.value, _), _ = qe(A) && je(A.cast) ? A.cast(_) : _, se(_, { force: c == null ? void 0 : c.force }), J((I) => { - var E; - I.__flags.pendingReset = !0, I.validated = !1, I.touched = ((E = p == null ? void 0 : p.touched) === null || E === void 0 ? void 0 : E[N(I.path)]) || !1, b(N(I.path), He(_, N(I.path)), !1), y(N(I.path), void 0); - }), c != null && c.force ? function(I, E = !0) { - Be(d).forEach((U) => { - delete d[U]; - }), Be(I).forEach((U) => { - b(U, I[U], !1); - }), E && he(); - }(_, !1) : F(_, !1), h((p == null ? void 0 : p.errors) || {}), r.value = (p == null ? void 0 : p.submitCount) || 0, Ke(() => { - he({ mode: "silent" }), J((I) => { - I.__flags.pendingReset = !1; - }); - }); - } - async function he(p) { - const c = (p == null ? void 0 : p.mode) || "force"; - if (c === "force" && J((x) => x.validated = !0), pe.validateSchema) return pe.validateSchema(c); - i.value = !0; - const _ = await Promise.all(m.value.map((x) => x.validate ? x.validate(p).then((q) => ({ key: N(x.path), valid: q.valid, errors: q.errors, value: q.value })) : Promise.resolve({ key: N(x.path), valid: !0, errors: [], value: void 0 }))); - i.value = !1; - const I = {}, E = {}, U = {}; - for (const x of _) I[x.key] = { valid: x.valid, errors: x.errors }, x.value && Qe(U, x.key, x.value), x.errors.length && (E[x.key] = x.errors[0]); - return { valid: _.every((x) => x.valid), results: I, errors: E, values: U, source: "fields" }; - } - async function V(p, c) { - var _; - const I = K(p); - if (I && (c == null ? void 0 : c.mode) !== "silent" && (I.validated = !0), A) { - const { results: E } = await ne((c == null ? void 0 : c.mode) || "validated-only"); - return E[p] || { errors: [], valid: !0 }; - } - return I != null && I.validate ? I.validate(c) : (!I && ((_ = c == null ? void 0 : c.warn) === null || _ === void 0 || _) && process.env.NODE_ENV !== "production" && vl(`field with path ${p} was not found`), Promise.resolve({ errors: [], valid: !0 })); - } - function D(p) { - ro(de.value, p); - } - function ke(p, c, _ = !1) { - Qe(de.value, p, fe(c)), _ && Qe(Q.value, p, fe(c)); - } - async function we() { - const p = s(A); - if (!p) return { valid: !0, results: {}, errors: {}, source: "none" }; - i.value = !0; - const c = pn(p) || qe(p) ? await async function(_, I) { - const E = qe(_) ? _ : il(_), U = await E.parse(fe(I), { formData: fe(I) }), x = {}, q = {}; - for (const ee of U.errors) { - const ye = ee.errors, W = (ee.path || "").replace(/\["(\d+)"\]/g, (Ve, be) => `[${be}]`); - x[W] = { valid: !ye.length, errors: ye }, ye.length && (q[W] = ye[0]); - } - return { valid: !U.errors.length, results: x, errors: q, values: U.value, source: "schema" }; - }(p, d) : await or(p, d, { names: T.value, bailsMap: C.value }); - return i.value = !1, c; - } - const R = Z((p, { evt: c }) => { - (function(_) { - return tl(_) && _.target && "submit" in _.target; - })(c) && c.target.submit(); - }); - function P(p, c) { - const _ = je(c) || c == null ? void 0 : c.label, I = K(N(p)) || B(p, { label: _ }), E = () => je(c) ? c(tn(I, nn)) : c || {}; - function U() { - var W; - I.touched = !0, ((W = E().validateOnBlur) !== null && W !== void 0 ? W : mt().validateOnBlur) && V(N(I.path)); - } - function x() { - var W; - ((W = E().validateOnInput) !== null && W !== void 0 ? W : mt().validateOnInput) && Ke(() => { - V(N(I.path)); - }); - } - function q() { - var W; - ((W = E().validateOnChange) !== null && W !== void 0 ? W : mt().validateOnChange) && Ke(() => { - V(N(I.path)); - }); - } - const ee = S(() => { - const W = { onChange: q, onInput: x, onBlur: U }; - return je(c) ? Object.assign(Object.assign({}, W), c(tn(I, nn)).props || {}) : c != null && c.props ? Object.assign(Object.assign({}, W), c.props(tn(I, nn))) : W; - }); - return [ue(p, () => { - var W, Ve, be; - return (be = (W = E().validateOnModelUpdate) !== null && W !== void 0 ? W : (Ve = mt()) === null || Ve === void 0 ? void 0 : Ve.validateOnModelUpdate) === null || be === void 0 || be; - }), ee]; - } - Gn(() => { - e != null && e.initialErrors && h(e.initialErrors), e != null && e.initialTouched && ce(e.initialTouched), e != null && e.validateOnMount ? he() : pe.validateSchema && pe.validateSchema("silent"); - }), nt(A) && et(A, () => { - var p; - (p = pe.validateSchema) === null || p === void 0 || p.call(pe, "validated-only"); - }), Kt(sa, pe), process.env.NODE_ENV !== "production" && (function(p) { - const c = ft(); - if (!ht) { - const _ = c == null ? void 0 : c.appContext.app; - if (!_) return; - sl(_); - } - $t[p.formId] = Object.assign({}, p), $t[p.formId]._vm = c, yt(() => { - delete $t[p.formId], It(); - }), It(); - }(pe), et(() => Object.assign(Object.assign({ errors: v.value }, ae.value), { values: d, isSubmitting: n.value, isValidating: i.value, submitCount: r.value }), It, { deep: !0 })); - const Oe = Object.assign(Object.assign({}, pe), { values: ml(d), handleReset: () => Ie(), submitForm: R }); - return Kt(Zi, Oe), Oe; -} -const cl = (e) => { - const { columnsMerged: t, fieldColumns: a, propName: o } = e; - a && o && xn({ columns: a, propName: `${o} prop "columns"` }); - const l = (a == null ? void 0 : a.sm) ?? t.sm, n = (a == null ? void 0 : a.md) ?? t.md, i = (a == null ? void 0 : a.lg) ?? t.lg, r = (a == null ? void 0 : a.xl) ?? t.xl; - return { "v-col-12": !0, "v-cols": !0, [`v-col-sm-${l}`]: !!l, [`v-col-md-${n}`]: !!n, [`v-col-lg-${i}`]: !!i, [`v-col-xl-${r}`]: !!r }; -}, yr = ["columns", "options", "required", "rules", "when"], pt = (e, t = []) => { - const a = Object.entries(e).filter(([o]) => !yr.includes(o) && !(t != null && t.includes(o))); - return Object.fromEntries(a); -}, Pt = async (e) => { - const { action: t, emit: a, field: o, settingsValidateOn: l, validate: n } = e, i = o.validateOn || l; - (t === "blur" && i === "blur" || t === "input" && i === "input" || t === "change" && i === "change" || t === "click") && await n().then(() => { - a("validate", o); - }); -}, br = Ge({ __name: "CommonField", props: Pe({ field: {}, component: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => n.required || !1), u = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), d = o.value, { errorMessage: m, setValue: f, validate: O, value: g } = At(n.name, void 0, { initialValue: o.value, validateOnBlur: u.value === "blur", validateOnChange: u.value === "change", validateOnInput: u.value === "input", validateOnModelUpdate: u.value != null }); - async function y(L) { - await Pt({ action: L, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: O }); - } - yt(() => { - i.value.keepValuesOnUnmount || (o.value = d, f(d)); - }); - const h = S(() => n != null && n.items ? n.items : void 0), v = S(() => n.type === "color" || n.type === "date" ? "text" : n.type), w = S(() => { - let L = n == null ? void 0 : n.error; - return L = n != null && n.errorMessages ? n.errorMessages.length > 0 : L, L; - }), T = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, hideDetails: n.hideDetails || i.value.hideDetails, type: v.value, variant: n.variant || i.value.variant })), C = S(() => pt(T.value)); - return (L, $) => (M(), ve(go(L.component), tt({ modelValue: s(g), "onUpdate:modelValue": $[0] || ($[0] = (de) => nt(g) ? g.value = de : null) }, { ...s(C) }, { "data-cy": `vsf-field-${s(n).name}`, error: s(w), "error-messages": s(m) || s(n).errorMessages, items: s(h), onBlur: $[1] || ($[1] = (de) => y("blur")), onChange: $[2] || ($[2] = (de) => y("change")), onInput: $[3] || ($[3] = (de) => y("input")) }), { label: X(() => [re(gt, { label: s(n).label, required: s(r) }, null, 8, ["label", "required"])]), _: 1 }, 16, ["modelValue", "data-cy", "error", "error-messages", "items"])); -} }), Or = ["innerHTML"], Er = { key: 0, class: "v-input__details" }, Vr = ["name"], kr = Ge({ __name: "VSFButtonField", props: Pe({ density: {}, field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - _l((V) => ({ "7f272e17": s(pe) })); - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => n.required || !1), u = S(() => { - var V; - return (n == null ? void 0 : n.validateOn) ?? ((V = i.value) == null ? void 0 : V.validateOn); - }), d = o.value, { errorMessage: m, handleChange: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: n != null && n.multiple ? [] : null, validateOnBlur: u.value === "blur", validateOnChange: u.value === "change", validateOnInput: u.value === "input", validateOnModelUpdate: u.value != null }); - yt(() => { - var V; - (V = i.value) != null && V.keepValuesOnUnmount || (o.value = d, O(d)); - }); - const h = _e(o.value); - async function v(V, D) { - var ke; - if (h.value !== D || u.value !== "change" && u.value !== "input") { - if (!(n != null && n.disabled) && y.value) { - let we; - if (n != null && n.multiple) { - const R = Array.isArray(y.value) ? y.value.slice() : [], P = String(D); - R.includes(P) ? R.splice(R.indexOf(P), 1) : R.push(P), we = R; - } else we = D; - O(we), o.value = we; - } else O(D), o.value = D; - await Pt({ action: V, emit: a, field: n, settingsValidateOn: (ke = i.value) == null ? void 0 : ke.validateOn, validate: g }).then(() => { - h.value = y.value; - }).catch((we) => { - console.error(we); - }); - } - } - const w = S(() => { - var V, D, ke; - return { ...n, border: n != null && n.border ? `${n == null ? void 0 : n.color} ${n == null ? void 0 : n.border}` : void 0, color: n.color || ((V = i.value) == null ? void 0 : V.color), density: (n == null ? void 0 : n.density) ?? ((D = i.value) == null ? void 0 : D.density), hideDetails: n.hideDetails || ((ke = i.value) == null ? void 0 : ke.hideDetails), multiple: void 0 }; - }), T = S(() => pt(w.value, ["autoPage", "hideDetails", "href", "maxErrors", "multiple", "to"])), C = (V, D) => { - const ke = V[D], we = n == null ? void 0 : n[D]; - return ke ?? we; - }; - function L(V, D) { - return V.id != null ? V.id : n != null && n.id ? `${n == null ? void 0 : n.id}-${D}` : void 0; - } - const $ = { comfortable: "48px", compact: "40px", default: "56px", expanded: "64px", oversized: "72px" }, de = S(() => { - var V; - return (n == null ? void 0 : n.density) ?? ((V = i.value) == null ? void 0 : V.density); - }); - function Q() { - return de.value ? $[de.value] : $.default; - } - function se(V) { - const D = (V == null ? void 0 : V.minWidth) ?? (n == null ? void 0 : n.minWidth); - return D ?? (V != null && V.icon || n != null && n.icon ? Q() : "100px"); - } - function ae(V) { - const D = (V == null ? void 0 : V.maxWidth) ?? (n == null ? void 0 : n.maxWidth); - return D ?? (V != null && V.icon || n != null && n.icon ? Q() : void 0); - } - function te(V) { - const D = (V == null ? void 0 : V.minHeight) ?? (n == null ? void 0 : n.minHeight); - return D ?? (V != null && V.icon || n != null && n.icon ? Q() : void 0); - } - function A(V) { - const D = (V == null ? void 0 : V.maxHeight) ?? (n == null ? void 0 : n.maxHeight); - if (D != null) return D; - } - function B(V) { - const D = (V == null ? void 0 : V.width) ?? (n == null ? void 0 : n.width); - return D ?? (V != null && V.icon ? Q() : "fit-content"); - } - function ie(V) { - const D = (V == null ? void 0 : V.height) ?? (n == null ? void 0 : n.height); - return D ?? Q(); - } - const z = (V) => { - if (y.value) return y.value === V || y.value.includes(V); - }, ne = _e(n == null ? void 0 : n.variant); - function J(V) { - var D; - return z(V) ? "flat" : ne.value ?? ((D = i.value) == null ? void 0 : D.variant) ?? "tonal"; - } - function K(V) { - return V && V.length > 0 ? V : n.hint && (n.persistentHint || oe.value) ? n.hint : n.messages ? n.messages : ""; - } - const G = S(() => n.messages && n.messages.length > 0), le = S(() => !w.value.hideDetails || w.value.hideDetails === "auto" && G.value), Y = An(n.gap ?? 2), Z = S(() => he(Y.value) ? { gap: `${Y.value}` } : {}), pe = _e("rgb(var(--v-theme-on-surface))"), b = S(() => ({ [`align-${n == null ? void 0 : n.align}`]: (n == null ? void 0 : n.align) != null && (n == null ? void 0 : n.block), [`justify-${n == null ? void 0 : n.align}`]: (n == null ? void 0 : n.align) != null && !(n != null && n.block), "d-flex": !0, "flex-column": n == null ? void 0 : n.block, [`ga-${Y.value}`]: !he(Y.value) })), F = S(() => ({ "d-flex": n == null ? void 0 : n.align, "flex-column": n == null ? void 0 : n.align, "v-input--error": !!m && (m == null ? void 0 : m.length) > 0, "vsf-button-field__container": !0, [`align-${n == null ? void 0 : n.align}`]: n == null ? void 0 : n.align })), ue = S(() => { - const V = de.value; - return V === "expanded" || V === "oversized" ? { [`v-btn--density-${V}`]: !0 } : {}; - }), H = (V) => ({ [`${V == null ? void 0 : V.class}`]: !0, [`${n.selectedClass}`]: z(V.value) && n.selectedClass != null }), ce = (V) => { - const D = z(V.value), ke = J(V.value), we = D || ke === "flat" || ke === "elevated"; - return { [`bg-${V == null ? void 0 : V.color}`]: we }; - }, oe = An(null); - function Ie(V) { - oe.value = V; - } - function he(V) { - return /(px|em|rem|vw|vh|vmin|vmax|%|pt|cm|mm|in|pc|ex|ch)$/.test(V); - } - return (V, D) => { - var we; - return M(), me(xe, null, [Ue("div", { class: Me(s(F)) }, [re(Jn, null, { default: X(() => [re(gt, { label: s(n).label, required: s(r) }, null, 8, ["label", "required"])]), _: 1 }), re(Rl, { id: (we = s(n)) == null ? void 0 : we.id, modelValue: o.value, "onUpdate:modelValue": D[2] || (D[2] = (R) => o.value = R), class: Me(["mt-2", s(b)]), "data-cy": `vsf-field-group-${s(n).name}`, style: ut(s(Z)) }, { default: X(() => { - var R; - return [(M(!0), me(xe, null, We((R = s(n)) == null ? void 0 : R.options, (P, Oe) => (M(), ve(Nl, { key: P.value }, { default: X(() => { - var p, c; - return [re(an, tt({ ref_for: !0 }, s(T), { id: L(P, Oe), active: z(P.value), appendIcon: C(P, "appendIcon"), class: ["text-none", { ...s(ue), ...H(P) }], color: (P == null ? void 0 : P.color) || ((p = s(n)) == null ? void 0 : p.color) || ((c = s(i)) == null ? void 0 : c.color), "data-cy": `vsf-field-${s(n).name}`, density: s(de), height: ie(P), icon: C(P, "icon"), maxHeight: A(P), maxWidth: ae(P), minHeight: te(P), minWidth: se(P), prependIcon: C(P, "prependIcon"), value: P.value, variant: J(P.value), width: B(P), onClick: da((_) => v("click", P.value), ["prevent"]), onKeydown: yl(da((_) => v("click", P.value), ["prevent"]), ["space"]), onMousedown: (_) => Ie(P.value), onMouseleave: D[0] || (D[0] = (_) => Ie(null)), onMouseup: D[1] || (D[1] = (_) => Ie(null)) }), Yn({ _: 2 }, [C(P, "icon") == null ? { name: "default", fn: X(() => [Ue("span", { class: Me(["vsf-button-field__btn-label", ce(P)]), innerHTML: P.label }, null, 10, Or)]), key: "0" } : void 0]), 1040, ["id", "active", "appendIcon", "class", "color", "data-cy", "density", "height", "icon", "maxHeight", "maxWidth", "minHeight", "minWidth", "prependIcon", "value", "variant", "width", "onClick", "onKeydown", "onMousedown"])]; - }), _: 2 }, 1024))), 128))]; - }), _: 1 }, 8, ["id", "modelValue", "class", "data-cy", "style"]), s(le) ? (M(), me("div", Er, [re(s(bo), { active: (ke = s(m), !!(ke && ke.length > 0) || !(!n.hint || !n.persistentHint && !oe.value) || !!n.messages), color: s(m) ? "error" : void 0, "data-cy": "vsf-field-messages", messages: K(s(m)) }, null, 8, ["active", "color", "messages"])])) : Te("", !0)], 2), _o(Ue("input", { "onUpdate:modelValue": D[3] || (D[3] = (R) => nt(y) ? y.value = R : null), "data-cy": "vsf-button-field-input", name: s(n).name, type: "hidden", onChange: D[4] || (D[4] = (...R) => s(f) && s(f)(...R)) }, null, 40, Vr), [[yo, s(y)]])], 64); - var ke; - }; -} }), pl = (e, t) => { - const a = e.__vccOpts || e; - for (const [o, l] of t) a[o] = l; - return a; -}, Ir = pl(kr, [["__scopeId", "data-v-49f12da6"]]), Sr = { key: 1, class: "v-input v-input--horizontal v-input--center-affix" }, Tr = ["id"], wr = { key: 0, class: "v-input__details" }, Cr = Ge({ __name: "VSFCheckbox", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => { - var A; - return (n == null ? void 0 : n.density) ?? ((A = i.value) == null ? void 0 : A.density); - }), u = S(() => n.required || !1), d = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value, { errorMessage: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: o.value, validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); - yt(() => { - i.value.keepValuesOnUnmount || (o.value = m, O(m)); - }); - const h = _e(n == null ? void 0 : n.disabled); - async function v(A) { - h.value || (h.value = !0, o.value = y.value, await Pt({ action: n != null && n.autoPage ? "click" : A, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: g }).then(() => { - h.value = !1; - })); - } - const w = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || void 0, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), T = S(() => pt(w.value, ["validateOn"])), C = _e(!1); - function L(A) { - return A && A.length > 0 ? A : n.hint && (n.persistentHint || C.value) ? n.hint : n.messages ? n.messages : ""; - } - const $ = S(() => n.messages && n.messages.length > 0), de = S(() => !w.value.hideDetails || w.value.hideDetails === "auto" && $.value), Q = S(() => ({ "flex-direction": n.labelPositionLeft ? "row" : "column" })), se = S(() => ({ display: n.inline ? "flex" : void 0 })), ae = S(() => ({ "margin-right": n.inline && n.inlineSpacing ? n.inlineSpacing : "10px" })), te = S(() => ({ "v-input--error": !!f && (f == null ? void 0 : f.length) > 0, "v-selection-control-group": n.inline })); - return (A, B) => { - var z, ne, J, K; - return (z = s(n)) != null && z.multiple ? (M(), me("div", Sr, [Ue("div", { class: "v-input__control", style: ut(s(Q)) }, [s(n).label ? (M(), ve(Jn, { key: 0, class: Me({ "me-2": s(n).labelPositionLeft }) }, { default: X(() => { - var G, le; - return [re(gt, { class: Me({ "pb-5": !((G = s(n)) != null && G.hideDetails) && ((le = s(n)) == null ? void 0 : le.labelPositionLeft) }), label: s(n).label, required: s(u) }, null, 8, ["class", "label", "required"])]; - }), _: 1 }, 8, ["class"])) : Te("", !0), Ue("div", { id: (ne = s(n)) == null ? void 0 : ne.id, class: Me(s(te)), style: ut(s(se)) }, [Ue("div", { class: Me({ "v-input__control": s(n).inline }) }, [(M(!0), me(xe, null, We((J = s(n)) == null ? void 0 : J.options, (G) => { - var le; - return M(), ve(pa, tt({ key: G.value, ref_for: !0 }, { ...s(T) }, { id: G.id, modelValue: s(y), "onUpdate:modelValue": B[5] || (B[5] = (Y) => nt(y) ? y.value = Y : null), "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(h), error: !!s(f) && ((le = s(f)) == null ? void 0 : le.length) > 0, "error-messages": s(f), "hide-details": !0, label: G.label, style: s(ae), "true-value": G.value, onBlur: B[6] || (B[6] = (Y) => v("blur")), onChange: B[7] || (B[7] = (Y) => v("change")), onClick: B[8] || (B[8] = (Y) => s(d) === "blur" || s(d) === "change" ? v("click") : void 0), onInput: B[9] || (B[9] = (Y) => v("input")), "onUpdate:focused": B[10] || (B[10] = (Y) => { - return Z = Y, void (C.value = Z); - var Z; - }) }), null, 16, ["id", "modelValue", "data-cy", "density", "disabled", "error", "error-messages", "label", "style", "true-value"]); - }), 128))], 2), s(de) ? (M(), me("div", wr, [re(s(bo), { active: (ie = s(f), !!(ie && ie.length > 0) || !(!n.hint || !n.persistentHint && !C.value) || !!n.messages), color: s(f) ? "error" : void 0, messages: L(s(f)) }, null, 8, ["active", "color", "messages"])])) : Te("", !0)], 14, Tr)], 4)])) : (M(), ve(pa, tt({ key: 0, modelValue: s(y), "onUpdate:modelValue": B[0] || (B[0] = (G) => nt(y) ? y.value = G : null) }, { ...s(T) }, { "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(h), error: !!s(f) && ((K = s(f)) == null ? void 0 : K.length) > 0, "error-messages": s(f), onBlur: B[1] || (B[1] = (G) => v("blur")), onChange: B[2] || (B[2] = (G) => v("change")), onClick: B[3] || (B[3] = (G) => s(d) === "blur" || s(d) === "change" ? v("click") : void 0), onInput: B[4] || (B[4] = (G) => v("input")) }), { label: X(() => [re(gt, { label: s(n).label, required: s(u) }, null, 8, ["label", "required"])]), _: 1 }, 16, ["modelValue", "data-cy", "density", "disabled", "error", "error-messages"])); - var ie; - }; -} }), Ar = ["data-cy"], Pr = Ge({ __name: "VSFCustom", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = Zn(), o = t, l = ot(e, "modelValue"), n = e, { field: i } = n, r = at("settings"), u = bl(gt), d = S(() => (i == null ? void 0 : i.validateOn) ?? r.value.validateOn), m = At(i.name, void 0, { initialValue: l.value, validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); - async function f(h) { - await Pt({ action: h, emit: o, field: i, settingsValidateOn: r.value.validateOn, validate: m.validate }); - } - const O = S(() => ({ ...pt(m, ["_vm", "errorMessage", "field", "id", "label", "name", "type", "value"]) })), g = S(() => ({ ...i, color: i.color || r.value.color, density: i.density || r.value.density })), y = S(() => ({ ...pt(g.value), options: i.options, required: i.required })); - return (h, v) => (M(!0), me(xe, null, We(s(a), (w, T) => (M(), me(xe, { key: T }, [T === `field.${[s(i).name]}` ? (M(), me("div", { key: 0, "data-cy": `vsf-field-${s(i).name}` }, [Xn(h.$slots, T, tt({ ref_for: !0 }, { FieldLabel: s(u), blur: () => f("blur"), change: () => f("change"), input: () => f("input"), onUpdate: (C) => { - (function(L) { - m.setValue(L); - })(C); - }, field: { errorMessages: s(m).errorMessage.value, ...s(y) }, ...s(O) }))], 8, Ar)) : Te("", !0)], 64))), 128)); -} }), xr = ["id"], jr = Ge({ __name: "VSFRadio", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => { - var se; - return (n == null ? void 0 : n.density) ?? ((se = i.value) == null ? void 0 : se.density); - }), u = S(() => n.required || !1), d = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value, { errorMessage: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: o.value, type: "radio", validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); - yt(() => { - i.value.keepValuesOnUnmount || (o.value = m); - }); - const h = _e(n == null ? void 0 : n.disabled); - async function v(se, ae) { - if (!h.value) { - let te; - if (h.value = !0, n == null ? void 0 : n.multiple) { - const A = Array.isArray(y.value) ? y.value.slice() : [], B = String(ae); - A.includes(B) ? A.splice(A.indexOf(B), 1) : A.push(B), te = A; - } else te = ae; - O(te), o.value = te, await Pt({ action: n != null && n.autoPage ? "click" : se, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: g }).then(() => { - h.value = !1; - }); - } - } - const w = S(() => { - let se = n == null ? void 0 : n.error; - return se = n != null && n.errorMessages ? n.errorMessages.length > 0 : se, se; - }), T = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || !1, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), C = S(() => pt(T.value)), L = S(() => ({ width: (n == null ? void 0 : n.minWidth) ?? (n == null ? void 0 : n.width) ?? void 0 })), $ = S(() => ({ "flex-direction": n.labelPositionLeft ? "row" : "column" })), de = S(() => ({ display: n.inline ? "flex" : void 0 })), Q = S(() => ({ "margin-right": n.inline && n.inlineSpacing ? n.inlineSpacing : "10px" })); - return (se, ae) => { - var te, A, B, ie, z, ne, J, K, G, le, Y, Z, pe, b, F, ue, H; - return M(), me("div", { style: ut(s(L)) }, [Ue("div", { class: "v-input__control", style: ut(s($)) }, [s(n).label ? (M(), ve(Jn, { key: 0, class: Me({ "me-2": s(n).labelPositionLeft }) }, { default: X(() => [re(gt, { class: Me({ "pb-5": s(n).labelPositionLeft }), label: s(n).label, required: s(u) }, null, 8, ["class", "label", "required"])]), _: 1 }, 8, ["class"])) : Te("", !0), Ue("div", { id: (te = s(n)) == null ? void 0 : te.groupId, style: ut(s(de)) }, [re(Ll, { modelValue: o.value, "onUpdate:modelValue": ae[0] || (ae[0] = (ce) => o.value = ce), "append-icon": (A = s(n)) == null ? void 0 : A.appendIcon, "data-cy": `vsf-field-group-${s(n).name}`, density: s(r), direction: (B = s(n)) == null ? void 0 : B.direction, disabled: s(h), error: s(w), "error-messages": s(f) || ((ie = s(n)) == null ? void 0 : ie.errorMessages), hideDetails: ((z = s(n)) == null ? void 0 : z.hideDetails) || ((ne = s(i)) == null ? void 0 : ne.hideDetails), hint: (J = s(n)) == null ? void 0 : J.hint, inline: (K = s(n)) == null ? void 0 : K.inline, "max-errors": (G = s(n)) == null ? void 0 : G.maxErrors, "max-width": (le = s(n)) == null ? void 0 : le.maxWidth, messages: (Y = s(n)) == null ? void 0 : Y.messages, "min-width": (Z = s(n)) == null ? void 0 : Z.minWidth, multiple: (pe = s(n)) == null ? void 0 : pe.multiple, persistentHint: (b = s(n)) == null ? void 0 : b.persistentHint, "prepend-icon": (F = s(n)) == null ? void 0 : F.prependIcon, theme: (ue = s(n)) == null ? void 0 : ue.theme, width: (H = s(n)) == null ? void 0 : H.width }, { default: X(() => { - var ce; - return [(M(!0), me(xe, null, We((ce = s(n)) == null ? void 0 : ce.options, (oe, Ie) => { - var he; - return M(), me("div", { key: Ie }, [re(Ml, tt({ ref_for: !0 }, { ...s(C) }, { id: void 0, "data-cy": `vsf-field-${s(n).name}`, density: s(r), error: !!s(f) && ((he = s(f)) == null ? void 0 : he.length) > 0, "error-messages": s(f), "false-value": s(n).falseValue, label: oe.label, name: s(n).name, style: s(Q), "true-value": oe.value || s(n).trueValue, value: oe.value, onBlur: (V) => v("blur", oe.value), onChange: (V) => v("change", oe.value), onClick: (V) => s(d) === "blur" || s(d) === "change" ? v("click", oe.value) : void 0, onInput: (V) => v("input", oe.value) }), null, 16, ["data-cy", "density", "error", "error-messages", "false-value", "label", "name", "style", "true-value", "value", "onBlur", "onChange", "onClick", "onInput"])]); - }), 128))]; - }), _: 1 }, 8, ["modelValue", "append-icon", "data-cy", "density", "direction", "disabled", "error", "error-messages", "hideDetails", "hint", "inline", "max-errors", "max-width", "messages", "min-width", "multiple", "persistentHint", "prepend-icon", "theme", "width"])], 12, xr)], 4)], 4); - }; -} }), Ur = Ge({ __name: "VSFSwitch", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => { - var h; - return (n == null ? void 0 : n.density) ?? ((h = i.value) == null ? void 0 : h.density); - }), u = S(() => n.required || !1), d = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value; - yt(() => { - i.value.keepValuesOnUnmount || (o.value = m); - }); - const f = _e(n == null ? void 0 : n.disabled); - async function O(h, v) { - f.value || (f.value = !0, await Pt({ action: n != null && n.autoPage ? "click" : v, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: h }).then(() => { - f.value = !1; - })); - } - const g = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || !1, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), y = S(() => pt(g.value)); - return (h, v) => (M(), ve(s(hr), { modelValue: o.value, "onUpdate:modelValue": v[0] || (v[0] = (w) => o.value = w), name: s(n).name, syncVModel: !0, type: "checkbox", "unchecked-value": s(n).falseValue, "validate-on-blur": s(d) === "blur", "validate-on-change": s(d) === "change", "validate-on-input": s(d) === "input", "validate-on-model-update": !1, value: s(n).trueValue }, { default: X((w) => { - var T; - return [re(Bl, tt({ ...s(y), ...w.field }, { "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(f), error: !!w.errorMessage && ((T = w.errorMessage) == null ? void 0 : T.length) > 0, "error-messages": w.errorMessage, onBlur: (C) => O(w.validate, "blur"), onChange: (C) => O(w.validate, "change"), onClick: (C) => s(d) === "blur" || s(d) === "change" ? O(w.validate, "click") : void 0, onInput: (C) => O(w.validate, "input") }), { label: X(() => [re(gt, { label: s(n).label, required: s(u) }, null, 8, ["label", "required"])]), _: 2 }, 1040, ["data-cy", "density", "disabled", "error", "error-messages", "onBlur", "onChange", "onClick", "onInput"])]; - }), _: 1 }, 8, ["modelValue", "name", "unchecked-value", "validate-on-blur", "validate-on-change", "validate-on-input", "value"])); -} }), Dr = ["onUpdate:modelValue", "data-cy", "name"], Rr = ["innerHTML"], Nr = Ge({ inheritAttrs: !1, __name: "PageContainer", props: Pe({ fieldColumns: {}, page: {}, pageIndex: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = Zn(), l = ["email", "number", "password", "tel", "text", "textField", "url"]; - function n(f) { - if (l.includes(f)) return rt(Cl); - switch (f) { - case "autocomplete": - return rt(Ul); - case "color": - return rt(wl); - case "combobox": - return rt(jl); - case "date": - return rt(Dl); - case "file": - return rt(xl); - case "select": - return rt(Pl); - case "textarea": - return rt(Al); - default: - return null; - } - } - const i = ot(e, "modelValue"), r = S(() => { - var f; - return ((f = e.page) == null ? void 0 : f.pageFieldColumns) ?? {}; - }), u = _e({ lg: void 0, md: void 0, sm: void 0, xl: void 0, ...e.fieldColumns, ...r.value }); - function d(f) { - return cl({ columnsMerged: u.value, fieldColumns: f.columns, propName: `${f.name} field` }); - } - function m(f) { - a("validate", f); - } - return (f, O) => (M(), me(xe, null, [f.page.text ? (M(), ve(qt, { key: 0 }, { default: X(() => [re(kt, { innerHTML: f.page.text }, null, 8, ["innerHTML"])]), _: 1 })) : Te("", !0), re(qt, null, { default: X(() => [(M(!0), me(xe, null, We(f.page.fields, (g) => (M(), me(xe, { key: `${g.name}-${g.type}` }, [g.type !== "hidden" && g.type ? (M(), me(xe, { key: 1 }, [g.text ? (M(), ve(kt, { key: 0, cols: "12" }, { default: X(() => [Ue("div", { "data-cy": "vsf-field-text", innerHTML: g.text }, null, 8, Rr)]), _: 2 }, 1024)) : Te("", !0), re(kt, { class: Me(d(g)) }, { default: X(() => [g.type === "checkbox" ? (M(), ve(Cr, { key: 0, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "radio" ? (M(), ve(jr, { key: 1, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "buttons" ? (M(), ve(Ir, { key: 2, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "switch" ? (M(), ve(Ur, { key: 3, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), n(g.type) != null ? (M(), ve(br, { key: 4, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, component: n(g.type), field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "component", "field"])) : Te("", !0), g.type === "field" ? (M(), me(xe, { key: 5 }, [g.type === "field" ? (M(), ve(Pr, { key: 0, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, Yn({ _: 2 }, [We(o, (y, h) => ({ name: h, fn: X((v) => [Xn(f.$slots, h, tt({ ref_for: !0 }, { ...v }))]) }))]), 1032, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0)], 64)) : Te("", !0)]), _: 2 }, 1032, ["class"])], 64)) : _o((M(), me("input", { key: 0, "onUpdate:modelValue": (y) => i.value[g.name] = y, "data-cy": `vsf-field-${g.name}`, name: g.name, type: "hidden" }, null, 8, Dr)), [[yo, i.value[g.name]]])], 64))), 128))]), _: 3 })], 64)); -} }), Mr = Ge({ inheritAttrs: !1, __name: "PageReviewContainer", props: Pe({ page: {}, pages: {}, summaryColumns: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["goToQuestion"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = at("settings"), { editable: o } = s(a), l = t, n = ot(e, "modelValue"), i = _e([]), { lastNonEditableIndex: r } = jn(e.pages); - function u(f) { - var g; - const O = e.pages.findIndex((y) => y.fields ? y.fields.some((h) => h.name === f.name) : -1); - return o !== !1 && ((g = e.pages[O]) == null ? void 0 : g.editable) !== !1 && f.editable !== !1; - } - Object.values(e.pages).forEach((f, O) => { - f.fields && Object.values(f.fields).forEach((g) => { - const y = g; - O <= r && (y.editable = !1), i.value.push(y); - }); - }); - const d = _e({ lg: void 0, md: void 0, sm: void 0, xl: void 0, ...e.summaryColumns }), m = S(() => cl({ columnsMerged: d.value })); - return (f, O) => (M(), me(xe, null, [f.page.text ? (M(), ve(qt, { key: 0 }, { default: X(() => [re(kt, { innerHTML: f.page.text }, null, 8, ["innerHTML"])]), _: 1 })) : Te("", !0), re(qt, null, { default: X(() => [(M(!0), me(xe, null, We(s(i), (g) => (M(), ve(kt, { key: g.name, class: Me(s(m)) }, { default: X(() => [re($l, { lines: "two" }, { default: X(() => [re(Hl, { class: "mb-2", color: "background" }, { default: X(() => [u(g) ? (M(), ve(fa, { key: 0, onClick: (y) => s(o) && g.editable !== !1 ? function(h) { - var w; - let v = e.pages.findIndex((T) => T.fields ? T.fields.some((C) => C.name === h.name) : -1); - ((w = e.pages[v]) == null ? void 0 : w.editable) !== !1 && h.editable !== !1 && (v += 1, setTimeout(() => { - l("goToQuestion", v); - }, 350)); - }(g) : void 0 }, { default: X(() => [re(va, null, { default: X(() => [rn(st(g.label), 1)]), _: 2 }, 1024), re(ma, null, { default: X(() => [Ue("div", null, st(g.text), 1), Ue("div", { class: Me(`text-${s(a).color}`) }, st(n.value[g.name]), 3)]), _: 2 }, 1024)]), _: 2 }, 1032, ["onClick"])) : (M(), ve(fa, { key: 1, ripple: !1 }, { default: X(() => [re(va, null, { default: X(() => [rn(st(g.label), 1)]), _: 2 }, 1024), re(ma, null, { default: X(() => [Ue("div", null, st(g.text), 1), Ue("div", { class: Me(`text-${s(a).color}`) }, st(n.value[g.name]), 3)]), _: 2 }, 1024)]), _: 2 }, 1024))]), _: 2 }, 1024)]), _: 2 }, 1024)]), _: 2 }, 1032, ["class"]))), 128))]), _: 1 })], 64)); -} }), Lr = Ge({ __name: "VStepperForm", props: Pe(Ol({ pages: {}, validationSchema: {}, autoPage: { type: Boolean }, autoPageDelay: {}, color: {}, density: {}, direction: {}, editable: {}, errorIcon: {}, fieldColumns: {}, headerTooltips: { type: Boolean }, hideDetails: { type: [Boolean, String] }, jumpAhead: { type: Boolean }, keepValuesOnUnmount: { type: Boolean }, navButtonSize: {}, navButtonVariant: {}, summaryColumns: {}, title: {}, tooltipLocation: {}, tooltipOffset: {}, tooltipTransition: {}, validateOn: {}, validateOnMount: { type: Boolean }, variant: {}, width: {}, transition: {} }, Eo), { modelValue: {}, modelModifiers: {} }), emits: Pe(["submit", "update:model-value"], ["update:modelValue"]), setup(e, { emit: t }) { - var ke, we; - const a = El(), o = Vl(), l = Zn(), n = t, i = at(Oo), r = e; - let u = Vt(Pn(a, i, r)); - const { direction: d, jumpAhead: m, title: f, width: O } = kl(r), g = Vt(r.pages), y = JSON.parse(JSON.stringify(g)), h = _e(ha(u)), v = S(() => pt(h.value, ["autoPage", "autoPageDelay", "hideDetails", "keepValuesOnUnmount", "transition", "validateOn", "validateOnMount"])); - et(r, () => { - u = Pn(a, i, r), h.value = ha(u); - }, { deep: !0 }), Kt("settings", h); - const w = _e([]); - Object.values(g).forEach((R) => { - R.fields && Object.values(R.fields).forEach((P) => { - w.value.push(P); - }); - }), Gn(() => { - ce(), xn({ columns: r.fieldColumns, propName: '"fieldColumns" prop' }), xn({ columns: r.summaryColumns, propName: '"summaryColumns" prop' }); - }); - const T = ot(e, "modelValue"), C = _e(1), L = S(() => C.value - 1), { mobile: $, sm: de } = Tl(), Q = S(() => u.transition), se = Il("stepperFormRef"); - Kt("parentForm", se); - const ae = S(() => h.value.editable), te = S(() => C.value === 1 ? "prev" : C.value === Object.keys(r.pages).length ? "next" : void 0), A = S(() => { - const R = te.value === "next" || h.value.disabled; - return le.value || R; - }), B = S(() => { - const { lastNonEditableIndex: R } = jn(H.value); - return L.value === 0 || !ae.value || !!K.value || L.value - 1 === R; - }), ie = S(() => { - const R = H.value[C.value - 2]; - return ae.value !== !0 && (R ? R.editable === !1 : C.value === H.value.length && !r.editable); - }), z = S(() => C.value === Object.keys(H.value).length); - function ne(R) { - var be, Ee, De, Ye, bt; - const { firstNonEditableIndex: P, lastNonEditableIndex: Oe } = jn(H.value), p = H.value, c = p.findIndex((ze) => ze === R), _ = R.editable !== !1, I = R.editable === !1, E = ((be = p[L.value]) == null ? void 0 : be.editable) !== !1, U = p.length - 1, x = c - 1, q = ((Ee = p[x]) == null ? void 0 : Ee.editable) !== !1, ee = ((De = p[x]) == null ? void 0 : De.editable) === !1, ye = c + 1, W = ((Ye = p[ye]) == null ? void 0 : Ye.editable) !== !1, Ve = ((bt = p[ye]) == null ? void 0 : bt.editable) === !1; - return L.value === c || !!ae.value && !K.value && (m.value ? ((ze) => { - const { currentPageEditable: lt, firstNonEditableIndex: Re, lastNonEditableIndex: Ze, lastPageIdx: Xt, nextPageEditable: gn, nextPageNotEditable: _n, pageIdx: Ae, pageNotEditable: Fe, previousPageEditable: yn, previousPageNotEditable: it } = ze, Xe = s(ze.currentPageIdx); - if (Ae > Ze) return Xe > Ze; - if (Ae === Ze) return !1; - if (Ae < Ze) { - if (Xe === Xt) return !1; - if (Ae > Re) return !(!lt || !gn) || !!(lt && _n && Ae > Re && Xe > Re && Ae > Xe); - } - return Ae > Re ? !(Xe <= Re) : Ae < Re && Xe <= Re || !(Xe > Ae && Ae <= Re) && (Ae < Xe || !Fe && (Xe <= Ae ? !(Ae < Re) : !!(Xe >= Ae && yn))); - })({ currentPageEditable: E, currentPageIdx: L, firstNonEditableIndex: P, lastNonEditableIndex: Oe, lastPageIdx: U, nextPageEditable: W, nextPageNotEditable: Ve, pageIdx: c, pageNotEditable: I, previousPageEditable: q, previousPageNotEditable: ee }) : ((ze) => { - const { currentPageEditable: lt, firstNonEditableIndex: Re, lastNonEditableIndex: Ze, lastPageIdx: Xt, nextPageEditable: gn, nextPageNotEditable: _n, pageEditable: Ae, pageIdx: Fe, pageNotEditable: yn } = ze, it = s(ze.currentPageIdx); - if (Fe < it) { - if (it > Ze) { - if (Fe > Re && Fe > Ze && it === Xt && Ae) return !0; - if (!Ae) return !1; - } - if (Fe < Re && it <= Re) return !0; - } - if (Fe <= Re && lt) return !1; - if (Fe < it) { - if (Fe > Re && Fe < Ze && it <= Ze && _n && Ae) return !0; - if (Fe < Ze && yn) return !1; - if (Fe > Re && gn && it !== Xt) return !0; - } - return !1; - })({ currentPageEditable: E, currentPageIdx: L, firstNonEditableIndex: P, lastNonEditableIndex: Oe, lastPageIdx: U, nextPageEditable: W, nextPageNotEditable: Ve, pageEditable: _, pageIdx: c, pageNotEditable: I })); - } - const J = S(() => r.validationSchema), K = _e(!1), G = _e([]), le = S(() => G.value.includes(C.value - 1)), Y = _r({ initialValues: T.value, keepValuesOnUnmount: (ke = h.value) == null ? void 0 : ke.keepValuesOnUnmount, validationSchema: J.value, valueOnMount: (we = h.value) == null ? void 0 : we.validateOnMount }); - function Z(R) { - if (G.value.includes(R)) { - const P = G.value.indexOf(R); - P > -1 && G.value.splice(P, 1); - } - K.value = !1; - } - function pe(R, P, Oe = () => { - }) { - const p = H.value[L.value]; - if (!p) return; - const c = H.value.findIndex((I) => I === p), _ = (p == null ? void 0 : p.fields) ?? []; - if (Object.keys(R).some((I) => _.some((E) => E.name === I))) return K.value = !0, void b(c, p, P); - Z(c), Oe && !z.value && P !== "submit" && Oe(); - } - function b(R, P, Oe = "submit") { - K.value = !0, P && Oe === "submit" && (P.error = !0), G.value.includes(R) || G.value.push(R); - } - let F; - Sl(Y.values, () => { - T.value = Y.values, ce(); - }); - const ue = Y.handleSubmit((R) => { - n("submit", R); - }), H = S(() => (Object.values(g).forEach((R, P) => { - const Oe = R; - if (Oe.visible = !0, Oe.when) { - const p = Oe.when(Y.values); - g[P] && (g[P].visible = p); - } - }), g.filter((R) => R.visible))); - function ce() { - Object.values(g).forEach((R, P) => { - R.fields && Object.values(R.fields).forEach((Oe, p) => { - if (Oe.when) { - const c = Oe.when(Y.values), _ = H.value[P]; - _ != null && _.fields && (_ != null && _.fields[p]) && (_.fields[p].type = c ? y[P].fields[p].type : "hidden"); - } - }); - }); - } - const oe = S(() => ((R) => { - const { direction: P } = R; - return { "d-flex flex-column justify-center align-center": P === "horizontal", [`${jt}`]: !0, [`${jt}--container`]: !0, [`${jt}--container-${P}`]: !0 }; - })({ direction: d.value })), Ie = S(() => ((R) => { - const { direction: P } = R; - return { "d-flex flex-column justify-center align-center": P === "horizontal", [`${jt}--container-stepper`]: !0, [`${jt}--container-stepper-${P}`]: !0 }; - })({ direction: d.value })), he = S(() => ({ width: "100%" })), V = S(() => ({ width: O.value })); - function D(R) { - return R + 1; - } - return (R, P) => (M(), me("div", { class: Me(s(oe)), style: ut(s(he)) }, [Ue("div", { style: ut(s(V)) }, [s(f) ? (M(), ve(bn, { key: 0, fluid: "" }, { default: X(() => [re(qt, null, { default: X(() => [re(kt, null, { default: X(() => [Ue("h2", null, st(s(f)), 1)]), _: 1 })]), _: 1 })]), _: 1 })) : Te("", !0), re(bn, { class: Me(s(Ie)), fluid: "" }, { default: X(() => [re(zl, tt({ modelValue: s(C), "onUpdate:modelValue": P[4] || (P[4] = (Oe) => nt(C) ? C.value = Oe : null), "data-cy": "vsf-stepper-form" }, s(v), { mobile: s(de), width: "100%" }), { default: X(({ prev: Oe, next: p }) => [re(Kl, { "data-cy": "vsf-stepper-header" }, { default: X(() => [(M(!0), me(xe, null, We(s(H), (c, _) => (M(), me(xe, { key: `${D(_)}-step` }, [re(ql, { class: Me(`vsf-activator-${s(o)}-${_ + 1}`), color: s(h).color, "edit-icon": c.isSummary ? "$complete" : s(h).editIcon, editable: ne(c), elevation: "0", error: s(K) && s(G).includes(_), title: c.title, value: D(_), onClick: (I) => function(E) { - const U = E === 0 ? 0 : E - 1, x = H.value[U]; - x && x.fields && x.fields.forEach((q) => { - Y.validateField(q.name, {}, { name: q.name }).then((ee) => { - if (ee.errors.length) return C.value = U + 1, K.value = !0, void b(U, x, "submit"); - Z(U); - }); - }); - }(_) }, { default: X(() => [!s($) && s(h).headerTooltips && (c != null && c.fields) && (c == null ? void 0 : c.fields.length) > 0 ? (M(), ve(Zl, { key: 0, activator: c.title ? "parent" : `.vsf-activator-${s(o)}-${_ + 1}`, location: s(h).tooltipLocation, offset: c.title ? s(h).tooltipOffset : Number(s(h).tooltipOffset) - 28, transition: s(h).tooltipTransition }, { default: X(() => [(M(!0), me(xe, null, We(c.fields, (I, E) => (M(), me("div", { key: E }, st(I.label), 1))), 128))]), _: 2 }, 1032, ["activator", "location", "offset", "transition"])) : Te("", !0)]), _: 2 }, 1032, ["class", "color", "edit-icon", "editable", "error", "title", "value", "onClick"]), D(_) !== Object.keys(s(H)).length ? (M(), ve(Fl, { key: D(_) })) : Te("", !0)], 64))), 128))]), _: 1 }), Ue("form", { ref: "stepperFormRef", onSubmit: P[3] || (P[3] = (...c) => s(ue) && s(ue)(...c)) }, [re(Wl, null, { default: X(() => [(M(!0), me(xe, null, We(s(H), (c, _) => (M(), ve(Gl, { key: `${D(_)}-content`, "data-cy": c.isSummary ? "vsf-page-summary" : `vsf-page-${D(_)}`, "reverse-transition": s(Q), transition: s(Q), value: D(_) }, { default: X(() => [re(bn, null, { default: X(() => { - var I, E; - return [c.isSummary ? (M(), ve(Mr, { key: 1, modelValue: T.value, "onUpdate:modelValue": P[1] || (P[1] = (U) => T.value = U), page: c, pages: s(H), settings: s(h), summaryColumns: (I = s(h)) == null ? void 0 : I.summaryColumns, onGoToQuestion: P[2] || (P[2] = (U) => C.value = U) }, null, 8, ["modelValue", "page", "pages", "settings", "summaryColumns"])) : (M(), ve(Nr, { key: `${D(_)}-page`, modelValue: T.value, "onUpdate:modelValue": P[0] || (P[0] = (U) => T.value = U), fieldColumns: (E = s(h)) == null ? void 0 : E.fieldColumns, index: D(_), page: c, pageIndex: D(_), settings: s(h), onValidate: (U) => function(x, q) { - var W; - const ee = Y.errorBag, ye = x.autoPage || h.value.autoPage ? q : null; - x != null && x.autoPage || (W = h.value) != null && W.autoPage ? se.value && Y.validate().then((Ve) => { - var Ee; - if (Ve.valid) return clearTimeout(F), void (F = setTimeout(() => { - pe(ee, "field", ye); - }, (x == null ? void 0 : x.autoPageDelay) ?? ((Ee = h.value) == null ? void 0 : Ee.autoPageDelay))); - const be = H.value[L.value]; - b(H.value.findIndex((De) => De === be), be, "validating"); - }).catch((Ve) => { - console.error("Error", Ve); - }) : Y.validateField(x.name, {}, { name: x.name }).then(() => { - pe(Y.errorBag.value, "field", ye); - }); - }(U, p) }, Yn({ _: 2 }, [We(s(l), (U, x) => ({ name: x, fn: X((q) => [Xn(R.$slots, x, tt({ ref_for: !0 }, { ...q }), void 0, !0)]) }))]), 1032, ["modelValue", "fieldColumns", "index", "page", "pageIndex", "settings", "onValidate"]))]; - }), _: 2 }, 1024)]), _: 2 }, 1032, ["data-cy", "reverse-transition", "transition", "value"]))), 128))]), _: 2 }, 1024), s(h).hideActions ? Te("", !0) : (M(), ve(Yl, { key: 0 }, { next: X(() => [s(z) ? (M(), ve(an, { key: 1, color: s(h).color, "data-cy": "vsf-submit-button", disabled: s(le), size: R.navButtonSize, type: "submit", variant: R.navButtonVariant, onClick: s(ue) }, { default: X(() => P[5] || (P[5] = [rn("Submit")])), _: 1 }, 8, ["color", "disabled", "size", "variant", "onClick"])) : (M(), ve(an, { key: 0, color: s(h).color, "data-cy": "vsf-next-button", disabled: s(A), size: R.navButtonSize, variant: R.navButtonVariant, onClick: (c) => function(_ = "submit", I = () => { - }) { - se.value && Y.validate().then((E) => { - pe(E.errors, _, I); - }).catch((E) => { - console.error("Error", E); - }); - }("next", p) }, null, 8, ["color", "disabled", "size", "variant", "onClick"]))]), prev: X(() => [re(an, { "data-cy": "vsf-previous-button", disabled: s(B), size: R.navButtonSize, variant: R.navButtonVariant, onClick: (c) => function(_) { - ie.value || _(); - }(Oe) }, null, 8, ["disabled", "size", "variant", "onClick"])]), _: 2 }, 1024))], 544)]), _: 3 }, 16, ["modelValue", "mobile"])]), _: 3 }, 8, ["class"])], 4)], 6)); -} }), Br = pl(Lr, [["__scopeId", "data-v-15220e2c"]]), Hr = Object.freeze(Object.defineProperty({ __proto__: null, default: Br }, Symbol.toStringTag, { value: "Module" })); -function rs(e = {}) { - return { install: (t) => { - const a = Pn(e, Eo); - t.provide(Oo, a), t.config.idPrefix = "vsf", t.component("VStepperForm", ca(() => Promise.resolve().then(() => Hr))), t.component("FieldLabel", ca(() => import("./FieldLabel-7fESx4JQ.mjs"))); - } }; -} -export { - gt as FieldLabel, - Br as VStepperForm, - rs as createVStepperForm, - Br as default -}; -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".v-item-group[data-v-49f12da6]{flex-wrap:wrap}.vsf-button-field__btn-label[data-v-49f12da6]{color:var(--7f272e17)}.v-stepper-item--error[data-v-15220e2c] .v-icon{color:#fff}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); From 8b5160546951705df1ca479b474fd91cd032da40 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Tue, 11 Feb 2025 12:25:47 -0800 Subject: [PATCH 05/11] add dist to ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index da270b6..f7e6b85 100755 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ lerna-debug.log* node_modules docs +dist dist-ssr *.local From 6c6d37ed2125977c8e8fd5a221934799cf65af68 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Tue, 11 Feb 2025 16:02:45 -0800 Subject: [PATCH 06/11] corrected field to field.value --- src/plugin/components/fields/VSFButtonField/VSFButtonField.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue b/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue index cd84f1c..4e6f763 100644 --- a/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue +++ b/src/plugin/components/fields/VSFButtonField/VSFButtonField.vue @@ -204,7 +204,7 @@ const boundSettings = computed(() => useBindingSettings(bindSettings.value as Pa // -------------------------------------------------- Properties // const getIcon = (option: Option, prop: string): string => { const optionValue = option[prop] as string; - const fieldValue = field?.[prop]; + const fieldValue = field.value?.[prop]; return optionValue ?? fieldValue; }; From 1e4179275f9c30255417d4c7973fefc19e63ac63 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Wed, 12 Feb 2025 13:13:00 -0800 Subject: [PATCH 07/11] update vee-validate and validators --- package.json | 10 +-- pnpm-lock.yaml | 223 ++++++++++++++++++++++++++++--------------------- 2 files changed, 134 insertions(+), 99 deletions(-) diff --git a/package.json b/package.json index d2ef30b..b1e933c 100755 --- a/package.json +++ b/package.json @@ -95,8 +95,8 @@ "@types/node": "^22.9.0", "@typescript-eslint/eslint-plugin": "^8.15.0", "@typescript-eslint/parser": "^8.15.0", - "@vee-validate/yup": "^4.14.7", - "@vee-validate/zod": "^4.14.7", + "@vee-validate/yup": "^4.15.0", + "@vee-validate/zod": "^4.15.0", "@vitejs/plugin-vue": "^5.2.0", "@vue/cli-service": "^5.0.8", "@vue/eslint-config-typescript": "^14.1.3", @@ -135,7 +135,7 @@ "typescript": "^5.6.3", "typescript-eslint": "^8.15.0", "unplugin-auto-import": "^0.18.4", - "vee-validate": "^4.14.7", + "vee-validate": "^4.15.0", "vite": "^5.4.11", "vite-plugin-css-injected-by-js": "^3.5.2", "vite-plugin-dts": "^4.3.0", @@ -147,7 +147,7 @@ "vitest": "^2.1.5", "vue-tsc": "^2.1.8", "webfontloader": "^1.6.28", - "yup": "^1.4.0", - "zod": "^3.23.8" + "yup": "^1.6.1", + "zod": "^3.24.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1219402..7731914 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ importers: version: 11.2.0(vue@3.5.13(typescript@5.6.3)) '@wdns/vuetify-color-field': specifier: ^1.1.8 - version: 1.1.8(typescript@5.6.3)(vite-plugin-vuetify@2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4)) + version: 1.1.8(typescript@5.6.3)(vite-plugin-vuetify@2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4)) vue: specifier: ^3.5.13 version: 3.5.13(typescript@5.6.3) @@ -67,14 +67,14 @@ importers: specifier: ^8.15.0 version: 8.15.0(eslint@9.15.0)(typescript@5.6.3) '@vee-validate/yup': - specifier: ^4.14.7 - version: 4.14.7(vue@3.5.13(typescript@5.6.3))(yup@1.4.0) + specifier: ^4.15.0 + version: 4.15.0(vue@3.5.13(typescript@5.6.3))(yup@1.6.1) '@vee-validate/zod': - specifier: ^4.14.7 - version: 4.14.7(vue@3.5.13(typescript@5.6.3)) + specifier: ^4.15.0 + version: 4.15.0(vue@3.5.13(typescript@5.6.3))(zod@3.24.2) '@vitejs/plugin-vue': specifier: ^5.2.0 - version: 5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3)) + version: 5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3)) '@vue/cli-service': specifier: ^5.0.8 version: 5.0.8(@vue/compiler-sfc@3.5.13)(lodash@4.17.21)(prettier@3.3.3)(vue@3.5.13(typescript@5.6.3))(webpack-sources@3.2.3) @@ -187,35 +187,35 @@ importers: specifier: ^0.18.4 version: 0.18.4(@vueuse/core@11.2.0(vue@3.5.13(typescript@5.6.3)))(rollup@4.27.3) vee-validate: - specifier: ^4.14.7 - version: 4.14.7(vue@3.5.13(typescript@5.6.3)) + specifier: ^4.15.0 + version: 4.15.0(vue@3.5.13(typescript@5.6.3)) vite: specifier: ^5.4.11 - version: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + version: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) vite-plugin-css-injected-by-js: specifier: ^3.5.2 - version: 3.5.2(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + version: 3.5.2(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) vite-plugin-dts: specifier: ^4.3.0 - version: 4.3.0(@types/node@22.9.0)(rollup@4.27.3)(typescript@5.6.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + version: 4.3.0(@types/node@22.9.0)(rollup@4.27.3)(typescript@5.6.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) vite-plugin-eslint2: specifier: ^5.0.2 - version: 5.0.2(@types/eslint@9.6.1)(eslint@9.15.0)(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + version: 5.0.2(@types/eslint@9.6.1)(eslint@9.15.0)(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) vite-plugin-static-copy: specifier: ^2.1.0 - version: 2.1.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + version: 2.1.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) vite-plugin-stylelint: specifier: 5.3.1 - version: 5.3.1(postcss@8.4.49)(rollup@4.27.3)(stylelint@16.10.0(typescript@5.6.3))(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + version: 5.3.1(postcss@8.4.49)(rollup@4.27.3)(stylelint@16.10.0(typescript@5.6.3))(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) vite-plugin-vue-devtools: specifier: ^7.6.4 - version: 7.6.4(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3)) + version: 7.6.4(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3)) vite-plugin-vuetify: specifier: ^2.0.4 - version: 2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4) + version: 2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4) vitest: specifier: ^2.1.5 - version: 2.1.5(@types/node@22.9.0)(jsdom@25.0.1)(sass@1.81.0)(terser@5.36.0) + version: 2.1.5(@types/node@22.9.0)(jsdom@25.0.1)(sass@1.81.0)(terser@5.38.2) vue-tsc: specifier: ^2.1.8 version: 2.1.10(typescript@5.6.3) @@ -223,11 +223,11 @@ importers: specifier: ^1.6.28 version: 1.6.28 yup: - specifier: ^1.4.0 - version: 1.4.0 + specifier: ^1.6.1 + version: 1.6.1 zod: - specifier: ^3.23.8 - version: 3.23.8 + specifier: ^3.24.2 + version: 3.24.2 packages: @@ -1195,13 +1195,15 @@ packages: resolution: {integrity: sha512-h8vYOulWec9LhpwfAdZf2bjr8xIp0KNKnpgqSz0qqYYKAW/QZKw3ktRndbiAtUz4acH4QLQavwZBYCc0wulA/Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@vee-validate/yup@4.14.7': - resolution: {integrity: sha512-sMLkSXbVWIFK0BE8gEp2Gcdd3aqpTggBjbkrYmcdgyHBeYoPmhBHhUpkXDFhmsckie2xv6lNTicGO5oJt71N1Q==} + '@vee-validate/yup@4.15.0': + resolution: {integrity: sha512-paK2ZdxZJRrUGwqaqf7KMNC+n5C7UGs7DofK7wZCza/zKT/QtFSxVYgopGoYYrbAfd6DpVmNpf/ouBuRdPBthA==} peerDependencies: yup: ^1.3.2 - '@vee-validate/zod@4.14.7': - resolution: {integrity: sha512-UD0Tfyz1cKKd7BinnUztqKL+oeMjg/T4ZEguN/uZV4DsR9z7gdrD0lOuOU7aVl9UpVK6NM7MhDka35Lj7b/DTw==} + '@vee-validate/zod@4.15.0': + resolution: {integrity: sha512-MpvIKiyg9X5yD8bJW0no2AU7wtR2T5mrvD9tuPRiie951sU2n6QKgMV38qKKOiqFBCxsMSjIuLLLV3V5kVE4nQ==} + peerDependencies: + zod: ^3.24.0 '@vitejs/plugin-vue@5.2.0': resolution: {integrity: sha512-7n7KdUEtx/7Yl7I/WVAMZ1bEb0eVvXF3ummWTeLcs/9gvo9pJhuLdouSXGjdZ/MKD1acf1I272+X0RMua4/R3g==} @@ -1338,8 +1340,8 @@ packages: '@vue/devtools-api@6.6.4': resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} - '@vue/devtools-api@7.6.4': - resolution: {integrity: sha512-5AaJ5ELBIuevmFMZYYLuOO9HUuY/6OlkOELHE7oeDhy4XD/hSODIzktlsvBOsn+bto3aD0psj36LGzwVu5Ip8w==} + '@vue/devtools-api@7.7.2': + resolution: {integrity: sha512-1syn558KhyN+chO5SjlZIwJ8bV/bQ1nOVTG66t2RbG66ZGekyiYNmRO7X9BJCXQqPsFHlnksqvPhce2qpzxFnA==} '@vue/devtools-core@7.6.4': resolution: {integrity: sha512-blSwGVYpb7b5TALMjjoBiAl5imuBF7WEOAtaJaBMNikR8SQkm6mkUt4YlIKh9874/qoimwmpDOm+GHBZ4Y5m+g==} @@ -1349,9 +1351,15 @@ packages: '@vue/devtools-kit@7.6.4': resolution: {integrity: sha512-Zs86qIXXM9icU0PiGY09PQCle4TI750IPLmAJzW5Kf9n9t5HzSYf6Rz6fyzSwmfMPiR51SUKJh9sXVZu78h2QA==} + '@vue/devtools-kit@7.7.2': + resolution: {integrity: sha512-CY0I1JH3Z8PECbn6k3TqM1Bk9ASWxeMtTCvZr7vb+CHi+X/QwQm5F1/fPagraamKMAHVfuuCbdcnNg1A4CYVWQ==} + '@vue/devtools-shared@7.6.4': resolution: {integrity: sha512-nD6CUvBEel+y7zpyorjiUocy0nh77DThZJ0k1GRnJeOmY3ATq2fWijEp7wk37gb023Cb0R396uYh5qMSBQ5WFg==} + '@vue/devtools-shared@7.7.2': + resolution: {integrity: sha512-uBFxnp8gwW2vD6FrJB8JZLUzVb6PNRG0B0jBnHsOH8uKyva2qINY8PTF5Te4QlTbMDqU5K6qtJDr6cNsKWhbOA==} + '@vue/eslint-config-typescript@14.1.3': resolution: {integrity: sha512-L4NUJQz/0We2QYtrNwRAGRy4KfpOagl5V3MpZZ+rQ51a+bKjlKYYrugi7lp7PIX8LolRgu06ZwDoswnSGWnAmA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -5238,8 +5246,8 @@ packages: engines: {node: '>=18.12.0'} hasBin: true - superjson@2.2.1: - resolution: {integrity: sha512-8iGv75BYOa0xRJHK5vRLEjE2H/i4lulTjzpUXic3Eg8akftYjkmQDa8JARQ42rlczXyFR3IeRoeFCc7RxHsYZA==} + superjson@2.2.2: + resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==} engines: {node: '>=16'} supports-color@5.5.0: @@ -5306,6 +5314,11 @@ packages: engines: {node: '>=10'} hasBin: true + terser@5.38.2: + resolution: {integrity: sha512-w8CXxxbFA5zfNsR/i8HZq5bvn18AK0O9jj7hyo1YqkovLxEFa0uP0LCVGZRqiRaKRFxXhELBp8SteeAjEnfeJg==} + engines: {node: '>=10'} + hasBin: true + thenify-all@1.6.0: resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} engines: {node: '>=0.8'} @@ -5436,8 +5449,8 @@ packages: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} engines: {node: '>=12.20'} - type-fest@4.27.0: - resolution: {integrity: sha512-3IMSWgP7C5KSQqmo1wjhKrwsvXAtF33jO3QY+Uy++ia7hqvgSK6iXbbg5PbDBc1P2ZbNEDgejOrN4YooXvhwCw==} + type-fest@4.34.1: + resolution: {integrity: sha512-6kSc32kT0rbwxD6QL1CYe8IqdzN/J/ILMrNK+HMQCKH3insCDRY/3ITb0vcBss0a3t72fzh2YSzj8ko1HgwT3g==} engines: {node: '>=16'} type-is@1.6.18: @@ -5562,8 +5575,8 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} - vee-validate@4.14.7: - resolution: {integrity: sha512-XVb1gBFJR57equ11HEI8uxNqFJkwvCP/b+p+saDPQYaW7k45cdF5jsYPEJud1o29GD6h2y7Awm7Qfm89yKi74A==} + vee-validate@4.15.0: + resolution: {integrity: sha512-PGJh1QCFwCBjbHu5aN6vB8macYVWrajbDvgo1Y/8fz9n/RVIkLmZCJDpUgu7+mUmCOPMxeyq7vXUOhbwAqdXcA==} peerDependencies: vue: ^3.4.26 @@ -6041,11 +6054,11 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - yup@1.4.0: - resolution: {integrity: sha512-wPbgkJRCqIf+OHyiTBQoJiP5PFuAXaWiJK6AmYkzQAh5/c2K9hzSApBZG5wV9KoKSePF7sAxmNSvh/13YHkFDg==} + yup@1.6.1: + resolution: {integrity: sha512-JED8pB50qbA4FOkDol0bYF/p60qSEDQqBD0/qeIrUCG1KbPBIQ776fCUNb9ldbPcSTxA69g/47XTo4TqWiuXOA==} - zod@3.23.8: - resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} + zod@3.24.2: + resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==} snapshots: @@ -7024,25 +7037,25 @@ snapshots: '@typescript-eslint/types': 8.15.0 eslint-visitor-keys: 4.2.0 - '@vee-validate/yup@4.14.7(vue@3.5.13(typescript@5.6.3))(yup@1.4.0)': + '@vee-validate/yup@4.15.0(vue@3.5.13(typescript@5.6.3))(yup@1.6.1)': dependencies: - type-fest: 4.27.0 - vee-validate: 4.14.7(vue@3.5.13(typescript@5.6.3)) - yup: 1.4.0 + type-fest: 4.34.1 + vee-validate: 4.15.0(vue@3.5.13(typescript@5.6.3)) + yup: 1.6.1 transitivePeerDependencies: - vue - '@vee-validate/zod@4.14.7(vue@3.5.13(typescript@5.6.3))': + '@vee-validate/zod@4.15.0(vue@3.5.13(typescript@5.6.3))(zod@3.24.2)': dependencies: - type-fest: 4.27.0 - vee-validate: 4.14.7(vue@3.5.13(typescript@5.6.3)) - zod: 3.23.8 + type-fest: 4.34.1 + vee-validate: 4.15.0(vue@3.5.13(typescript@5.6.3)) + zod: 3.24.2 transitivePeerDependencies: - vue - '@vitejs/plugin-vue@5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))': + '@vitejs/plugin-vue@5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))': dependencies: - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) vue: 3.5.13(typescript@5.6.3) '@vitest/expect@2.1.5': @@ -7052,13 +7065,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.5(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))': + '@vitest/mocker@2.1.5(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))': dependencies: '@vitest/spy': 2.1.5 estree-walker: 3.0.3 magic-string: 0.30.13 optionalDependencies: - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) '@vitest/pretty-format@2.1.5': dependencies: @@ -7403,18 +7416,18 @@ snapshots: '@vue/devtools-api@6.6.4': {} - '@vue/devtools-api@7.6.4': + '@vue/devtools-api@7.7.2': dependencies: - '@vue/devtools-kit': 7.6.4 + '@vue/devtools-kit': 7.7.2 - '@vue/devtools-core@7.6.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))': + '@vue/devtools-core@7.6.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))': dependencies: '@vue/devtools-kit': 7.6.4 '@vue/devtools-shared': 7.6.4 mitt: 3.0.1 nanoid: 3.3.7 pathe: 1.1.2 - vite-hot-client: 0.2.3(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + vite-hot-client: 0.2.3(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) vue: 3.5.13(typescript@5.6.3) transitivePeerDependencies: - vite @@ -7427,12 +7440,26 @@ snapshots: mitt: 3.0.1 perfect-debounce: 1.0.0 speakingurl: 14.0.1 - superjson: 2.2.1 + superjson: 2.2.2 + + '@vue/devtools-kit@7.7.2': + dependencies: + '@vue/devtools-shared': 7.7.2 + birpc: 0.2.19 + hookable: 5.5.3 + mitt: 3.0.1 + perfect-debounce: 1.0.0 + speakingurl: 14.0.1 + superjson: 2.2.2 '@vue/devtools-shared@7.6.4': dependencies: rfdc: 1.4.1 + '@vue/devtools-shared@7.7.2': + dependencies: + rfdc: 1.4.1 + '@vue/eslint-config-typescript@14.1.3(@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.6.3))(eslint-plugin-vue@9.31.0(eslint@9.15.0))(eslint@9.15.0)(typescript@5.6.3)': dependencies: '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.6.3))(eslint@9.15.0)(typescript@5.6.3) @@ -7593,7 +7620,7 @@ snapshots: transitivePeerDependencies: - typescript - '@wdns/vuetify-color-field@1.1.8(typescript@5.6.3)(vite-plugin-vuetify@2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4))': + '@wdns/vuetify-color-field@1.1.8(typescript@5.6.3)(vite-plugin-vuetify@2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4))': dependencies: '@vueuse/core': 10.11.1(vue@3.5.13(typescript@5.6.3)) vue: 3.5.13(typescript@5.6.3) @@ -11521,7 +11548,7 @@ snapshots: - supports-color - typescript - superjson@2.2.1: + superjson@2.2.2: dependencies: copy-anything: 3.0.5 @@ -11589,6 +11616,14 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 + terser@5.38.2: + dependencies: + '@jridgewell/source-map': 0.3.6 + acorn: 8.14.0 + commander: 2.20.3 + source-map-support: 0.5.21 + optional: true + thenify-all@1.6.0: dependencies: thenify: 3.3.1 @@ -11691,7 +11726,7 @@ snapshots: type-fest@2.19.0: {} - type-fest@4.27.0: {} + type-fest@4.34.1: {} type-is@1.6.18: dependencies: @@ -11831,10 +11866,10 @@ snapshots: vary@1.1.2: {} - vee-validate@4.14.7(vue@3.5.13(typescript@5.6.3)): + vee-validate@4.15.0(vue@3.5.13(typescript@5.6.3)): dependencies: - '@vue/devtools-api': 7.6.4 - type-fest: 4.27.0 + '@vue/devtools-api': 7.7.2 + type-fest: 4.34.1 vue: 3.5.13(typescript@5.6.3) verror@1.10.0: @@ -11843,17 +11878,17 @@ snapshots: core-util-is: 1.0.2 extsprintf: 1.3.0 - vite-hot-client@0.2.3(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-hot-client@0.2.3(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) - vite-node@2.1.5(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0): + vite-node@2.1.5(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2): dependencies: cac: 6.7.14 debug: 4.3.7(supports-color@8.1.1) es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) transitivePeerDependencies: - '@types/node' - less @@ -11865,11 +11900,11 @@ snapshots: - supports-color - terser - vite-plugin-css-injected-by-js@3.5.2(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-css-injected-by-js@3.5.2(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) - vite-plugin-dts@4.3.0(@types/node@22.9.0)(rollup@4.27.3)(typescript@5.6.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-dts@4.3.0(@types/node@22.9.0)(rollup@4.27.3)(typescript@5.6.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: '@microsoft/api-extractor': 7.47.11(@types/node@22.9.0) '@rollup/pluginutils': 5.1.3(rollup@4.27.3) @@ -11882,25 +11917,25 @@ snapshots: magic-string: 0.30.12 typescript: 5.6.3 optionalDependencies: - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) transitivePeerDependencies: - '@types/node' - rollup - supports-color - vite-plugin-eslint2@5.0.2(@types/eslint@9.6.1)(eslint@9.15.0)(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-eslint2@5.0.2(@types/eslint@9.6.1)(eslint@9.15.0)(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: '@rollup/pluginutils': 5.1.3(rollup@4.27.3) debug: 4.3.7(supports-color@8.1.1) eslint: 9.15.0 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) optionalDependencies: '@types/eslint': 9.6.1 rollup: 4.27.3 transitivePeerDependencies: - supports-color - vite-plugin-inspect@0.8.7(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-inspect@0.8.7(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: '@antfu/utils': 0.7.10 '@rollup/pluginutils': 5.1.3(rollup@4.27.3) @@ -11911,49 +11946,49 @@ snapshots: perfect-debounce: 1.0.0 picocolors: 1.1.1 sirv: 2.0.4 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) transitivePeerDependencies: - rollup - supports-color - vite-plugin-static-copy@2.1.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-static-copy@2.1.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: chokidar: 3.6.0 fast-glob: 3.3.2 fs-extra: 11.2.0 picocolors: 1.1.1 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) - vite-plugin-stylelint@5.3.1(postcss@8.4.49)(rollup@4.27.3)(stylelint@16.10.0(typescript@5.6.3))(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-stylelint@5.3.1(postcss@8.4.49)(rollup@4.27.3)(stylelint@16.10.0(typescript@5.6.3))(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: '@rollup/pluginutils': 5.1.3(rollup@4.27.3) chokidar: 3.6.0 debug: 4.3.7(supports-color@8.1.1) stylelint: 16.10.0(typescript@5.6.3) - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) optionalDependencies: postcss: 8.4.49 rollup: 4.27.3 transitivePeerDependencies: - supports-color - vite-plugin-vue-devtools@7.6.4(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3)): + vite-plugin-vue-devtools@7.6.4(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3)): dependencies: - '@vue/devtools-core': 7.6.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3)) + '@vue/devtools-core': 7.6.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3)) '@vue/devtools-kit': 7.6.4 '@vue/devtools-shared': 7.6.4 execa: 8.0.1 sirv: 3.0.0 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) - vite-plugin-inspect: 0.8.7(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) - vite-plugin-vue-inspector: 5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) + vite-plugin-inspect: 0.8.7(rollup@4.27.3)(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) + vite-plugin-vue-inspector: 5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) transitivePeerDependencies: - '@nuxt/kit' - rollup - supports-color - vue - vite-plugin-vue-inspector@5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)): + vite-plugin-vue-inspector@5.2.0(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)): dependencies: '@babel/core': 7.26.0 '@babel/plugin-proposal-decorators': 7.25.9(@babel/core@7.26.0) @@ -11964,22 +11999,22 @@ snapshots: '@vue/compiler-dom': 3.5.13 kolorist: 1.8.0 magic-string: 0.30.13 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) transitivePeerDependencies: - supports-color - vite-plugin-vuetify@2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4): + vite-plugin-vuetify@2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4): dependencies: '@vuetify/loader-shared': 2.0.3(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4(typescript@5.6.3)(vite-plugin-vuetify@2.0.4)(vue@3.5.13(typescript@5.6.3))) debug: 4.3.7(supports-color@8.1.1) upath: 2.0.1 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) vue: 3.5.13(typescript@5.6.3) vuetify: 3.7.4(typescript@5.6.3)(vite-plugin-vuetify@2.0.4)(vue@3.5.13(typescript@5.6.3)) transitivePeerDependencies: - supports-color - vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0): + vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2): dependencies: esbuild: 0.21.5 postcss: 8.4.49 @@ -11988,12 +12023,12 @@ snapshots: '@types/node': 22.9.0 fsevents: 2.3.3 sass: 1.81.0 - terser: 5.36.0 + terser: 5.38.2 - vitest@2.1.5(@types/node@22.9.0)(jsdom@25.0.1)(sass@1.81.0)(terser@5.36.0): + vitest@2.1.5(@types/node@22.9.0)(jsdom@25.0.1)(sass@1.81.0)(terser@5.38.2): dependencies: '@vitest/expect': 2.1.5 - '@vitest/mocker': 2.1.5(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0)) + '@vitest/mocker': 2.1.5(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2)) '@vitest/pretty-format': 2.1.5 '@vitest/runner': 2.1.5 '@vitest/snapshot': 2.1.5 @@ -12009,8 +12044,8 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) - vite-node: 2.1.5(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0) + vite: 5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) + vite-node: 2.1.5(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.9.0 @@ -12155,7 +12190,7 @@ snapshots: vue: 3.5.13(typescript@5.6.3) optionalDependencies: typescript: 5.6.3 - vite-plugin-vuetify: 2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.36.0))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4) + vite-plugin-vuetify: 2.0.4(vite@5.4.11(@types/node@22.9.0)(sass@1.81.0)(terser@5.38.2))(vue@3.5.13(typescript@5.6.3))(vuetify@3.7.4) w3c-xmlserializer@5.0.0: dependencies: @@ -12430,11 +12465,11 @@ snapshots: yocto-queue@0.1.0: {} - yup@1.4.0: + yup@1.6.1: dependencies: property-expr: 2.0.6 tiny-case: 1.0.3 toposort: 2.0.2 type-fest: 2.19.0 - zod@3.23.8: {} + zod@3.24.2: {} From eae1b84657fd38699acf2ff7f8d5aee52e4307a1 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Wed, 12 Feb 2025 13:13:30 -0800 Subject: [PATCH 08/11] copy update --- cypress/templates/testData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/templates/testData.ts b/cypress/templates/testData.ts index 1fd1a0e..39ce2d8 100644 --- a/cypress/templates/testData.ts +++ b/cypress/templates/testData.ts @@ -337,7 +337,7 @@ const finalAnswer = { number: '100', selectAnimal: 'rabbit', selectsMultipleAnimals: ['rabbit', 'duck'], - description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec pur', + description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', // hidden: "I'm a hidden field answer", // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Less Common Fields Page // @@ -367,9 +367,9 @@ const validationSchema = yupObject({ .url('Must be a valid URL'), number: yupNumber().required(isRequired('Number')) .min(Number(finalAnswer.number), 'Number must be at least ${min}'), - description: yupString().required(isRequired('Description')), selectAnimal: yupString().required(isRequired('Select Animal')), selectsMultipleAnimals: yupArray().required(isRequired('Select Multiple Animals')), + description: yupString().required(isRequired('Description')), // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Less Common Fields Page // autocompleteAnimal: yupString().required(isRequired('Autocomplete Animal')), From 1dbe35b25c2ddfec8376a5cd2e98c98cd37553de Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Wed, 12 Feb 2025 13:13:57 -0800 Subject: [PATCH 09/11] moved click --- src/plugin/__tests__/VStepperForm.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/__tests__/VStepperForm.cy.ts b/src/plugin/__tests__/VStepperForm.cy.ts index eec0820..0e7a452 100644 --- a/src/plugin/__tests__/VStepperForm.cy.ts +++ b/src/plugin/__tests__/VStepperForm.cy.ts @@ -34,11 +34,11 @@ const pages = [ fields: [ defaultFields.autocomplete, defaultFields.autocompleteMultiple, - defaultFields.combobox, { ...defaultFields.color, readonlyInput: true, }, + defaultFields.combobox, // defaultFields.date, ], }, @@ -402,9 +402,9 @@ describe('Stepper Form', () => { .find('input') .then((el) => { expect(el).to.have.value('#804040'); + cy.get('@appWrap').click(); }); - cy.get('@appWrap').click(); } // & -------------------------------------------------- Date field // else if (field.name === 'date') { From b8b895131c85b4c2750f5265b3f5201afef7a06a Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Wed, 12 Feb 2025 13:15:32 -0800 Subject: [PATCH 10/11] update to run blur,change,input only if set --- src/plugin/components/fields/CommonField/CommonField.vue | 7 +++---- src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue | 6 +++--- src/plugin/components/fields/VSFRadio/VSFRadio.vue | 6 +++--- src/plugin/components/fields/VSFSwitch/VSFSwitch.vue | 6 +++--- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/plugin/components/fields/CommonField/CommonField.vue b/src/plugin/components/fields/CommonField/CommonField.vue index 6e5a036..f707304 100644 --- a/src/plugin/components/fields/CommonField/CommonField.vue +++ b/src/plugin/components/fields/CommonField/CommonField.vue @@ -7,9 +7,9 @@ :error="hasErrors" :error-messages="errorMessage || field.errorMessages" :items="fieldItems" - @blur="onActions('blur')" - @change="onActions('change')" - @input="onActions('input')" + @blur="fieldValidateOn === 'blur' ? onActions('blur') : undefined" + @change="fieldValidateOn === 'change' ? onActions('change') : undefined" + @input="fieldValidateOn === 'input' ? onActions('input') : undefined" >