vuiii 1.0.0-beta.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Radio.vue.d.ts +1 -1
- package/dist/icons/minus.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/vuiii.es.js +77 -52
- package/dist/vuiii.umd.js +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.vuiii-link{cursor:pointer;color:var(--vuiii-color-primary);text-decoration:none}.vuiii-link:hover{color:var(--vuiii-color-primary--darker);text-decoration:underline}.vuiii-link.vuiii-link--danger,.vuiii-link.vuiii-link--danger:hover{color:var(--vuiii-color-danger--darker)}.IconSpinner[data-v-683816b2]{will-change:transform;-webkit-animation:animation-683816b2 .7s infinite linear;animation:animation-683816b2 .7s infinite linear}@-webkit-keyframes animation-683816b2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes animation-683816b2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.Icon[data-v-cc79c81e]{display:inline-block;vertical-align:middle;width:1.5rem;aspect-ratio:1 / 1;flex:none}.Breadcrumbs[data-v-357000f6]{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;opacity:.5}.Breadcrumbs__breadcrumb[data-v-357000f6]{display:flex;align-items:center;font-size:.85rem;gap:.5rem}.Breadcrumbs__link[data-v-357000f6]:hover{text-decoration:underline}.Breadcrumbs__arrow[data-v-357000f6]{width:1rem}:root{--vuiii-color-white: white;--vuiii-color-black: black;--vuiii-color-gray: rgb(212 212 216);--vuiii-color-gray--light: rgb(229, 229, 229);--vuiii-color-gray--lighter: rgb(245, 245, 245);--vuiii-color-gray--lightest: rgb(250, 250, 250);--vuiii-color-gray--dark: rgb(163, 163, 163);--vuiii-color-gray--darker: rgb(115, 115, 115);--vuiii-color-gray--darkest: rgb(82, 82, 82);--vuiii-color-primary: rgb(79 70 229);--vuiii-color-primary-shadow: rgb(67 56 202/.2);--vuiii-color-primary--darker: rgb(67 56 202);--vuii-color-secondary: rgb(212 212 216);--vuii-color-secondary-shadow: rgb(192 192 192/.25);--vuii-color-secondary--darker: rgb(192 192 192);--vuiii-color-danger: rgb(225 29 72);--vuiii-color-danger-shadow: rgb(225 29 72/.2);--vuiii-color-danger--darker: rgb(190 18 60);--vuiii-color-success: rgb(77 124 15);--vuiii-color-success-shadow: rgb(77 124 15/.2);--vuiii-color-success--darker: rgb(63 98 18);--vuiii-shadow: 0 1px 3px 0 rgb(0 0 0/.1), 0 1px 2px -1px rgb(0 0 0/.1);--vuiii-field-height: 2.75rem;--vuiii-field-padding: 1.4375rem;--vuiii-field-borderRadius: .35rem;--vuiii-field-borderWidth: 1px;--vuiii-field-borderColor: var(--vuiii-color-gray);--vuiii-field-fontSize: 1rem;--vuiii-field-ringColor: var(--vuiii-color-primary-shadow);--vuiii-field-ringSize: 4px;--vuiii-field-borderColor--active: var(--vuiii-color-primary);--vuiii-field-borderColor--focus: var(--vuiii-color-primary);--vuiii-field-borderColor--invalid: var(--vuiii-color-danger);--vuiii-field-height--small: 2rem;--vuiii-field-padding--small: 1.1875rem;--vuiii-field-fontSize--small: .8125rem;--vuiii-field-ringSize--small: 2px;--vuiii-field-height--large: 3rem;--vuiii-field-padding--large: 1.4375rem;--vuiii-field-fontSize--large: 1rem;--vuiii-field-height--xlarge: 3.25rem;--vuiii-field-padding--xlarge: 1.5625rem;--vuiii-field-fontSize--xlarge: 1.125rem;--vuiii-fontSize-base: 1rem;--vuiii-fontSize-small: .85rem}.vuiii-button{--bgColor: var(--vuiii-button-bgColor, transparent);--borderColor: var(--vuiii-button-borderColor, transparent);--textColor: var(--vuiii-button-textColor, black);--borderRadius: var(--vuiii-button-borderRadius, var(--vuiii-field-borderRadius));--borderWidth: var(--vuiii-button-borderWidth, var(--vuiii-field-borderWidth));--height: var(--vuiii-button-height, var(--vuiii-field-height));--padding: var(--vuiii-button-padding, var(--vuiii-field-padding));--fontSize: var(--vuiii-button-fontSize, var(--vuiii-field-fontSize));--fontWeight: var(--vuiii-button-fontWeight, 600);--shadow: var(--vuiii-button-shadow, 0 0);--transition: var(--vuiii-button-transition, var(--vuiii-field-transition, none));--ringColor: var(--vuiii-button-ringColor, rgb(0 0 0/.05));--gap: .5rem;--ringSize: 0;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;gap:var(--gap);align-items:center;align-self:center;justify-content:center;padding:0 var(--padding);min-height:var(--height);cursor:pointer;font-size:var(--fontSize, inherit);font-weight:var(--fontWeight, normal);font-family:var(--fontFamily, inherit);outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:var(--borderRadius);box-shadow:0 0 0 var(--ringSize) var(--ringColor),var(--shadow);transition:var(--transition);position:relative;background-color:var(--bgColor);border:var(--borderWidth) solid var(--borderColor);color:var(--textColor)}.vuiii-button:focus:not(:disabled){--borderColor: var(--vuiii-button-borderColor--focus, var(--vuiii-button-borderColor, transparent));--bgColor: var(--vuiii-button-bgColor--focus, var(--vuiii-button-bgColor, transparent));--textColor: var(--vuiii-button-textColor--hover, var(--vuiii-button-textColor, black));--ringSize: var(--vuiii-button-ringSize, var(--vuiii-field-ringSize))}.vuiii-button:hover:not(:disabled){--borderColor: var(--vuiii-button-borderColor--hover, var(--vuiii-button-borderColor, transparent));--bgColor: var(--vuiii-button-bgColor--hover, var(--vuiii-button-bgColor, transparent));--textColor: var(--vuiii-button-textColor--hover, var(--vuiii-button-textColor, black))}.vuiii-button.vuiii-button:disabled{pointer-events:none;opacity:var(--vuiii-button-opacity--disabled, var(--vuiii-field-opacity--disabled, .75));--borderColor: var(--vuiii-button-borderColor--disabled, var(--vuiii-button-borderColor, transparent));--bgColor: var(--vuiii-button-bgColor--disabled, var(--vuiii-button-bgColor, transparent));--textColor: var(--vuiii-button-textColor--disabled, var(--vuiii-button-textColor, black))}.vuiii-button.vuiii-button--small{--gap: .25rem;--height: var(--vuiii-button-height--small, var(--vuiii-field-height--small));--padding: var(--vuiii-button-padding--small, var(--vuiii-field-padding--small));--fontSize: var(--vuiii-button-fontSize--small, var(--vuiii-field-fontSize--small));--borderRadius: var(--vuiii-button-borderRadius--small, var(--vuiii-field-borderRadius--small, var(--vuiii-field-borderRadius))) }.vuiii-button.vuiii-button--small:focus:not(:disabled){--ringSize: var(--vuiii-button-ringSize--small, var(--vuiii-button-ringSize, var(--vuiii-field-ringSize--small)))}.vuiii-button.vuiii-button--large{--gap: .75rem;--height: var(--vuiii-button-height--large, var(--vuiii-field-height--large));--padding: var(--vuiii-button-padding--large, var(--vuiii-field-padding--large));--fontSize: var(--vuiii-button-fontSize--large, var(--vuiii-field-fontSize--large));--borderRadius: var(--vuiii-button-borderRadius--large, var(--vuiii-field-borderRadius--large, var(--vuiii-field-borderRadius)))}.vuiii-button.vuiii-button--xlarge{--gap: 1rem;--height: var(--vuiii-button-height--xlarge, var(--vuiii-field-height--xlarge));--padding: var(--vuiii-button-padding--xlarge, var(--vuiii-field-padding--xlarge));--fontSize: var(--vuiii-button-fontSize--xlarge, var(--vuiii-field-fontSize--xlarge));--borderRadius: var(--vuiii-button-borderRadius--xlarge, var(--vuiii-button-borderRadius--large, var(--vuiii-field-borderRadius--xlarge, var(--vuiii-field-borderRadius--large))))}.vuiii-button.vuiii-button--primary{--bgColor: var(--vuiii-button-bgColor--primary, var(--vuiii-color-primary));--borderColor: var(--vuiii-button-borderColor--primary, transparent);--borderWidth: var(--vuiii-button-borderWidth--primary, var(--vuiii-button-borderWidth, var(--vuiii-field-borderWidth)));--textColor: var(--vuiii-button-textColor--primary, white);--ringColor: var(--vuiii-button-ringColor--primary, var(--vuiii-color-primary-shadow)) }.vuiii-button.vuiii-button--primary:focus:not(:disabled){--bgColor: var(--vuiii-button-bgColor--primary--focus, var(--vuiii-button-bgColor--primary, var(--vuiii-color-primary)));--borderColor: var(--vuiii-button-borderColor--primary--focus, var(--vuiii-button-borderColor--primary, var(--vuiii-color-primary--darker, transparent)));--textColor: var(--vuiii-button-textColor--primary--focus, var(--vuiii-button-textColor--primary, white))}.vuiii-button.vuiii-button--primary:hover:not(:disabled),.vuiii-button.vuiii-button--primary.vuiii-button--active:not(:disabled){--bgColor: var(--vuiii-button-bgColor--primary--hover, var(--vuiii-button-bgColor--primary, var(--vuiii-color-primary--darker)));--borderColor: var(--vuiii-button-borderColor--primary--hover, var(--vuiii-button-borderColor--primary, var(--vuiii-color-primary--darker, transparent)));--textColor: var(--vuiii-button-textColor--primary--hover, var(--vuiii-button-textColor--primary, white))}.vuiii-button.vuiii-button--secondary{--bgColor: var(--vuiii-button-bgColor--secondary, var(--vuiii-color-secondary));--borderColor: var(--vuiii-button-borderColor--secondary, transparent);--borderWidth: var(--vuiii-button-borderWidth--secondary, var(--vuiii-button-borderWidth, var(--vuiii-field-borderWidth)));--textColor: var(--vuiii-button-textColor--secondary, black);--ringColor: var(--vuiii-button-ringColor--secondary, var(--vuiii-color-secondary-shadow)) }.vuiii-button.vuiii-button--secondary:focus:not(:disabled){--bgColor: var(--vuiii-button-bgColor--secondary--focus, var(--vuiii-button-bgColor--secondary, var(--vuiii-color-secondary, transparent)));--borderColor: var(--vuiii-button-borderColor--secondary--focus, var(--vuiii-button-borderColor--secondary, var(--vuiii-color-secondary--darker, transparent)));--textColor: var(--vuiii-button-textColor--secondary--focus, var(--vuiii-button-textColor--secondary, black))}.vuiii-button.vuiii-button--secondary:hover:not(:disabled),.vuiii-button.vuiii-button--secondary.vuiii-button--active:not(:disabled){--bgColor: var(--vuiii-button-bgColor--secondary--hover, var(--vuiii-button-bgColor--secondary, var(--vuiii-color-secondary--darker, transparent)));--borderColor: var(--vuiii-button-borderColor--secondary--hover, var(--vuiii-button-borderColor--secondary, var(--vuiii-color-secondary--darker, transparent)));--textColor: var(--vuiii-button-textColor--secondary--hover, var(--vuiii-button-textColor--secondary, black))}.vuiii-button.vuiii-button--danger{--bgColor: var(--vuiii-button-bgColor--danger, var(--vuiii-color-danger));--borderColor: var(--vuiii-button-borderColor--danger, transparent);--textColor: var(--vuiii-button-textColor--danger, white);--ringColor: var(--vuiii-button-ringColor--danger, var(--vuiii-color-danger-shadow)) }.vuiii-button.vuiii-button--danger:focus:not(:disabled){--bgColor: var(--vuiii-button-bgColor--danger--focus, var(--vuiii-button-bgColor--danger, var(--vuiii-color-danger)));--borderColor: var(--vuiii-button-borderColor--danger--focus, var(--vuiii-button-borderColor--danger, transparent));--textColor: var(--vuiii-button-textColor--danger--focus, var(--vuiii-button-textColor--danger, white))}.vuiii-button.vuiii-button--danger:hover:not(:disabled),.vuiii-button.vuiii-button--danger.vuiii-button--active:not(:disabled){--bgColor: var(--vuiii-button-bgColor--danger--hover, var(--vuiii-button-bgColor--danger, var(--vuiii-color-danger--darker)));--borderColor: var(--vuiii-button-borderColor--danger--hover, var(--vuiii-button-borderColor--danger, transparent));--textColor: var(--vuiii-button-textColor--danger--hover, var(--vuiii-button-textColor--danger, white))}.vuiii-button.vuiii-button--light{--bgColor: white;--textColor: black }.vuiii-button.vuiii-button--light:hover:not(:disabled),.vuiii-button.vuiii-button--light:focus:not(:disabled){--ringSize: 0;--textColor: black;--bgColor: rgba(39, 41, 55, .05)}.vuiii-button.vuiii-button--dark{--bgColor: black;--textColor: white }.vuiii-button.vuiii-button--dark:hover:not(:disabled),.vuiii-button.vuiii-button--dark:focus:not(:disabled){--ringColor: rgba(39, 41, 55, .05);--textColor: white;--bgColor: black}.Button--block[data-v-24bf0302]{width:100%}.Button__icon--small[data-v-24bf0302]{width:.75rem}.Button__icon--normal[data-v-24bf0302]{width:1.35rem}.Button__icon--prefix.Button__icon--normal[data-v-24bf0302]{margin-left:-.125rem}.Button__icon--suffix.Button__icon--normal[data-v-24bf0302]{margin-right:-.125rem}.vuiii-input{--bgColor: var(--vuiii-input-bgColor, white);--borderRadus: var(--vuiii-input-borderRadius, var(--vuiii-field-borderRadius));--borderWidth: var(--vuiii-input-borderWidth, 1px);--borderColor: var(--vuiii-input-borderColor, var(--vuiii-color-gray));--height: var(--vuiii-input-height, var(--vuiii-field-height));--padding: var(--vuiii-input-padding, 1rem);--fontSize: var(--vuiii-input-fontSize, var(--vuiii-field-fontSize));--transition: var(--vuiii-input-transition, var(--vuiii-field-transition));--shadow: var(--vuiii-input-shadow, 0 0);--ringColor: var(--vuiii-input-ringColor, var(--vuiii-field-ringColor));--ringSize: 0;width:100%;background-color:var(--bgColor);border:var(--borderWidth) solid var(--borderColor);border-radius:var(--borderRadus);padding-left:var(--padding);padding-right:var(--padding);min-height:var(--height);font-size:var(--fontSize);transition:var(--transition);box-shadow:0 0 0 var(--ringSize) var(--ringColor),var(--shadow)}.vuiii-input::-moz-placeholder{color:var(--vuiii-input-placeholderColor, var(--vuiii-color-gray--dark))}.vuiii-input:-ms-input-placeholder{color:var(--vuiii-input-placeholderColor, var(--vuiii-color-gray--dark))}.vuiii-input::placeholder{color:var(--vuiii-input-placeholderColor, var(--vuiii-color-gray--dark))}.vuiii-input:focus,.vuiii-input:focus-within{--ringSize: var(--vuiii-input-ringSize, var(--vuiii-field-ringSize));--borderColor: var(--vuiii-input-borderColor--focus, var(--vuiii-field-borderColor--focus, var(--vuiii-input-borderColor, var(--vuiii-color-gray))));--bgColor: var(--vuiii-input-bgColor--focus, var(--vuiii-input-bgColor, white));outline:none}.vuiii-input:disabled,.vuiii-input.vuiii-input--disabled{--borderColor: var(--vuiii-color-gray--light);opacity:.6;pointer-events:none}.vuiii-input.vuiii-input--small{--height: var(--vuiii-input-height--small, var(--vuiii-field-height--small));--fontSize: var(--vuiii-input-fontSize--small, var(--vuiii-field-fontSize--small)) }.vuiii-input.vuiii-input--small:focus,.vuiii-input.vuiii-input--small:focus-within{--ringSize: var(--vuiii-field-ringSize--small)}.vuiii-input.vuiii-input--valid{color:var(--vuiii-color-success);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%2356B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.415em + .25rem) center;background-size:calc(.83em + .5rem) calc(.83em + .5rem)}.vuiii-input.vuiii-input--invalid{--borderColor: var(--vuiii-color-danger);--ringColor: var(--vuiii-color-danger-shadow);color:var(--vuiii-color-success);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.415em + .25rem) center;background-size:calc(.83em + .5rem) calc(.83em + .5rem)}.vuiii-input.vuiii-input--invalid:focus,.vuiii-input.vuiii-input--invalid:focus-within{outline:none}.vuiii-input .vuiii-input__nested{padding:0 var(--padding);line-height:1;background:transparent;border:none;border-radius:var(--borderRadus);min-height:calc(var(--height) - 2px);outline:none;cursor:inherit}.vuiii-input .vuiii-input__nested::-moz-placeholder{color:var(--vuiii-color-gray--dark)}.vuiii-input .vuiii-input__nested:-ms-input-placeholder{color:var(--vuiii-color-gray--dark)}.vuiii-input .vuiii-input__nested::placeholder{color:var(--vuiii-color-gray--dark)}select.vuiii-input{padding-right:2.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1792 1792"><path d="M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z"/></svg>');background-position:right .75rem center;background-size:1.2rem;text-overflow:ellipsis}@supports (-moz-appearance:none){select.vuiii-input{line-height:3}}select.vuiii-input.vuiii-input--small{padding-right:2rem;background-size:1rem}input[type=number].vuiii-input{-moz-appearance:textfield}input.vuiii-input[type=number]::-webkit-outer-spin-button,input.vuiii-input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}input[type=checkbox].vuiii-input,input[type=radio].vuiii-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1.25rem;height:1.25rem;min-height:0;padding:0;background:white;cursor:pointer;flex:none}input.vuiii-input[type=checkbox]:checked,input.vuiii-input[type=radio]:checked{background-repeat:no-repeat;background-position:center;background-color:var(--vuiii-color-primary);border-color:var(--vuiii-color-primary)}input.vuiii-input[type=checkbox]:disabled,input.vuiii-input[type=radio]:disabled{cursor:default}input[type=checkbox].vuiii-input{border-radius:.25rem}input.vuiii-input[type=checkbox]:checked{background-image:url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M20.405 40.983L38.79 59.368 81.217 16.94l14.142 14.143L38.79 87.652 6.263 55.125l14.142-14.142z"/></svg>');background-size:.75rem}input[type=radio].vuiii-input{border-radius:100%}input.vuiii-input[type=radio]:checked{background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 1 1"><circle r=".5" cx=".5" cy=".5" /></svg>');background-size:.5rem}textarea.vuiii-input{padding-top:.75rem;padding-bottom:.75rem;vertical-align:middle;line-height:1.25;resize:vertical}.Checkbox[data-v-18ef5cd1]{display:inline-flex;align-items:flex-start;vertical-align:top;cursor:pointer}--disabled.Checkbox[data-v-18ef5cd1]{opacity:.5}.Checkbox__input[data-v-18ef5cd1]{margin-top:1px}.Checkbox__switch[data-v-18ef5cd1]{padding:3px;margin-top:-1px;width:2.25rem;border-radius:999px;transition:all .15s ease-out;background:rgb(115,115,115)}--active.Checkbox__switch[data-v-18ef5cd1]{background:var(--vuiii-color-primary)}.Checkbox__switchDot[data-v-18ef5cd1]{width:1.25rem;aspect-ratio:1 / 1;background:white;border-radius:999px;transition:all .15s ease-out}.Checkbox__switch--active .Checkbox__switchDot[data-v-18ef5cd1]{transform:translate(.75rem)}.Checkbox__label[data-v-18ef5cd1]{margin-left:.5rem;line-height:1.375}.Checkbox__required[data-v-18ef5cd1]{line-height:1;color:var(--vuiii-color-danger)}.CheckboxGroup>*+*[data-v-1a9cd604]{margin-top:.5rem}.FormGroup[data-v-404fde51]{width:100%}.FormGroup--invalid[data-v-404fde51] .vuiii-input,.FormGroup--invalid[data-v-404fde51] .vuiii-input:hover{--borderColor: var(--vuiii-field-borderColor--invalid);--ringColor: var(--vuiii-field-ringColor--invalid, rgb(225 29 72/.2) )}.FormGroup__header[data-v-404fde51]{display:flex;align-items:center;margin-bottom:.5rem;gap:.25rem}.FormGroup__label[data-v-404fde51]{font-size:.8rem;font-weight:600;letter-spacing:.05rem;text-transform:uppercase}.FormGroup__required[data-v-404fde51]{line-height:1;color:var(--vuiii-color-danger)}.FormGroup__description[data-v-404fde51]{font-size:.8rem;margin-bottom:.75rem;max-width:48rem;color:#737373}.FormGroup__hint[data-v-404fde51]{font-size:.8rem;margin-top:.5rem;max-width:48rem;color:#737373}.FormGroup__error[data-v-404fde51]{font-size:.8rem;margin-top:.5rem;max-width:48rem;color:var(--vuiii-color-danger)}.FormFields>*+*[data-v-7f82ddf3]{margin-top:2rem}.Form>*+*[data-v-4a2acd7e]{margin-top:2rem}.Form__buttons[data-v-4a2acd7e]{display:flex;align-items:center;margin-top:2rem}.Form__buttons>*+*[data-v-4a2acd7e]{margin-left:1rem}.Input.Input[data-v-6a6438b5]{cursor:text;display:flex;align-items:center;padding-left:0;padding-right:0;line-height:1}.Input__icon[data-v-6a6438b5]{display:flex;align-items:center;justify-content:center;width:3rem;opacity:.35}.Input__icon--right[data-v-6a6438b5]{margin-left:-1rem}.Input__icon--left[data-v-6a6438b5]{margin-right:-1rem}.Input__nestedInput[data-v-6a6438b5]{flex:auto;align-self:stretch;width:100%}.ModalLayout[data-v-386279ac]{position:relative;display:flex;flex-direction:column;align-items:stretch;margin:auto;min-height:-webkit-fit-content;min-height:-moz-fit-content;min-height:fit-content;background-color:#fff;border-radius:4px;box-shadow:0 2px 10px #0000001a}.ModalLayout.isScrollable[data-v-386279ac]{min-height:auto;max-height:calc(100vh - 3rem)}.ModalLayout__header[data-v-386279ac]{flex:0 0 auto;padding:1.25rem 4rem 1.25rem 1.5rem}.ModalLayout__header .ModalLayout.isPlain[data-v-386279ac]{padding:0}.ModalLayout__title[data-v-386279ac]{font-size:larger}.ModalLayout__close[data-v-386279ac]{position:absolute;z-index:1;top:0;right:0;display:flex;justify-content:center;align-items:center;width:4rem;height:4.3rem;font-size:1.85rem;opacity:.4}.ModalLayout__close[data-v-386279ac]:hover{opacity:1;cursor:pointer}.ModalLayout__closeIcon[data-v-386279ac]{width:1.5rem;height:1.5rem}.ModalLayout__body[data-v-386279ac]{flex:1 0 auto;padding:1.5rem;border-radius:4px}.ModalLayout.hasHeader .ModalLayout__body[data-v-386279ac]{padding-top:0;border-top-right-radius:0;border-top-left-radius:0}.ModalLayout.hasFooter .ModalLayout__body[data-v-386279ac]{padding-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.ModalLayout.isScrollable .ModalLayout__body[data-v-386279ac]{flex:1 1 auto;overflow:auto;padding:1.5rem;-ms-scroll-chaining:none;overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch}.ModalLayout.isScrollable.hasHeader .ModalLayout__body[data-v-386279ac]{border-top:1px solid rgba(0,0,0,.1)}.ModalLayout.isScrollable.hasFooter .ModalLayout__body[data-v-386279ac]{border-bottom:1px solid rgba(0,0,0,.1)}.ModalLayout.isPlain .ModalLayout__body[data-v-386279ac]{padding:0}.ModalLayout__footer[data-v-386279ac]{flex:0 0 auto;padding:1.25rem 1.5rem}.ModalLayout.isPlain .ModalLayout__footer[data-v-386279ac]{padding:0}.Radio>*+*[data-v-70d84c36]{margin-top:.5rem}.Radio__option[data-v-70d84c36]{display:flex;align-items:flex-start;vertical-align:top;cursor:pointer}.Radio__input[data-v-70d84c36]{margin-top:1px}.Radio__label[data-v-70d84c36]{margin-left:.5rem;line-height:1.375}.vuiii-table{min-width:100%;background-color:var(--vuiii-table-bgColor);border:1px solid var(--vuiii-table-borderColor, transparent);border-radius:var(--vuiii-table-borderRadius, var(--vuiii-field-borderRadius));shadow:var(--vuiii-table-shadow, var(--vuiii-shadow));font-size:var(--vuiii-table-fontSize, inherit)}.vuiii-table thead tr{border-bottom:1px solid var(--vuiii-color-gray--light)}.vuiii-table thead th{padding:.75rem 1.5rem;font-size:.8rem;font-weight:600;text-align:left;letter-spacing:.025em;color:#404040;text-transform:uppercase}:is(.vuiii-table tbody)>*+*{border-top:1px solid var(--vuiii-color-gray--light)}.vuiii-table tbody td{padding:1rem 1.5rem}.vuiii-table.vuiii-table--hover tbody tr:hover td{background-color:#00000006}.vuiii-link{cursor:pointer;color:var(--vuiii-color-primary);text-decoration:none}.vuiii-link:hover{color:var(--vuiii-color-primary--darker);text-decoration:underline}.vuiii-link.vuiii-link--danger,.vuiii-link.vuiii-link--danger:hover{color:var(--vuiii-color-danger--darker)}.vuiii-muted{color:var(--vuiii-color-gray-darker)}.ModalLayoutDialog__buttons[data-v-612c6cb9]{display:flex;align-items:center;justify-content:flex-end;margin-top:1rem}.ModalLayoutDialog__buttons>*+*[data-v-612c6cb9]{margin-left:.5rem}.ModalLayoutDialog__message--offset[data-v-612c6cb9]{padding-right:2.5rem}.ModalStack[data-v-2f4ee2c2]{position:fixed;z-index:1050}.ModalStack__backdrop[data-v-2f4ee2c2]{background:rgba(0,0,0,.35);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}.ModalStack__modalWrapper[data-v-2f4ee2c2]{position:fixed;z-index:2;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;width:auto;height:auto;padding:1.5rem;overflow:auto}.ModalStack__modalScroller[data-v-2f4ee2c2]{overflow:auto;position:relative;height:100vh;display:flex;justify-content:center;width:100%}.ModalStack__modal[data-v-2f4ee2c2]{transition:filter .15s}.ModalStack__modal[data-v-2f4ee2c2]:not(.isActive){filter:brightness(80%)}.ModalStack__modal-enter-active[data-v-2f4ee2c2],.ModalStack__modal-leave-active[data-v-2f4ee2c2]{transition:opacity .15s;pointer-events:none}.ModalStack__modal-enter-from[data-v-2f4ee2c2],.ModalStack__modal-leave-to[data-v-2f4ee2c2]{opacity:0;pointer-events:none}.ModalStack__backdrop-enter-active[data-v-2f4ee2c2],.ModalStack__backdrop-leave-active[data-v-2f4ee2c2]{transition:opacity .15s;pointer-events:none}.ModalStack__backdrop-enter-from[data-v-2f4ee2c2],.ModalStack__backdrop-leave-to[data-v-2f4ee2c2]{opacity:0;pointer-events:none}.Snackbar[data-v-272e7ab3]{position:fixed;bottom:0;right:0;z-index:10;margin:2rem}.Snackbar__transition-enter-from[data-v-272e7ab3],.Snackbar__transition-leave-to[data-v-272e7ab3]{opacity:0;transform:translateY(.5rem)}.Snackbar__transition-enter-active[data-v-272e7ab3],.Snackbar__transition-leave-active[data-v-272e7ab3]{transition:all .15s ease-out}.Snackbar__transition-enter-to[data-v-272e7ab3],.Snackbar__transition-leave-from[data-v-272e7ab3]{opacity:1}.Snackbar__message[data-v-272e7ab3]{position:absolute;bottom:0;right:0;display:flex;justify-content:flex-end;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:48rem;pointer-events:none;word-break:break-word}.Snackbar__messageWrapper[data-v-272e7ab3]{padding-top:.5rem;transition:transform .15s ease-in}.Snackbar__messageBlock[data-v-272e7ab3]{display:inline-flex;align-items:flex-start;padding:.75rem 1.5rem;color:#fff;border-radius:.25rem;cursor:default;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Snackbar__messageBlock--success[data-v-272e7ab3]{background-color:#000}.Snackbar__messageBlock--error[data-v-272e7ab3]{background-color:var(--vuiii-color-danger)}.Snackbar__messageClose[data-v-272e7ab3]{display:inline-flex;justify-content:center;align-items:center;padding:.75rem;margin:-.75rem -.75rem -.75rem .75rem;font-size:.85rem;font-weight:600;opacity:.5;cursor:pointer}.Snackbar__messageClose[data-v-272e7ab3]:hover{opacity:1}.Snackbar__messageCloseIcon[data-v-272e7ab3]{width:1rem}
|
|
1
|
+
.vuiii-link{cursor:pointer;color:var(--vuiii-color-primary);text-decoration:none}.vuiii-link:hover{color:var(--vuiii-color-primary--darker);text-decoration:underline}.vuiii-link.vuiii-link--danger,.vuiii-link.vuiii-link--danger:hover{color:var(--vuiii-color-danger--darker)}.IconSpinner[data-v-683816b2]{will-change:transform;-webkit-animation:animation-683816b2 .7s infinite linear;animation:animation-683816b2 .7s infinite linear}@-webkit-keyframes animation-683816b2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes animation-683816b2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.Icon[data-v-cc79c81e]{display:inline-block;vertical-align:middle;width:1.5rem;aspect-ratio:1 / 1;flex:none}.Breadcrumbs[data-v-357000f6]{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;opacity:.5}.Breadcrumbs__breadcrumb[data-v-357000f6]{display:flex;align-items:center;font-size:.85rem;gap:.5rem}.Breadcrumbs__link[data-v-357000f6]:hover{text-decoration:underline}.Breadcrumbs__arrow[data-v-357000f6]{width:1rem}:root{--vuiii-color-white: white;--vuiii-color-black: black;--vuiii-color-gray: rgb(212 212 216);--vuiii-color-gray--light: rgb(229, 229, 229);--vuiii-color-gray--lighter: rgb(245, 245, 245);--vuiii-color-gray--lightest: rgb(250, 250, 250);--vuiii-color-gray--dark: rgb(163, 163, 163);--vuiii-color-gray--darker: rgb(115, 115, 115);--vuiii-color-gray--darkest: rgb(82, 82, 82);--vuiii-color-primary: rgb(79 70 229);--vuiii-color-primary-shadow: rgb(67 56 202/.2);--vuiii-color-primary--darker: rgb(67 56 202);--vuii-color-secondary: rgb(212 212 216);--vuii-color-secondary-shadow: rgb(192 192 192/.25);--vuii-color-secondary--darker: rgb(192 192 192);--vuiii-color-danger: rgb(225 29 72);--vuiii-color-danger-shadow: rgb(225 29 72/.2);--vuiii-color-danger--darker: rgb(190 18 60);--vuiii-color-success: rgb(77 124 15);--vuiii-color-success-shadow: rgb(77 124 15/.2);--vuiii-color-success--darker: rgb(63 98 18);--vuiii-shadow: 0 1px 3px 0 rgb(0 0 0/.1), 0 1px 2px -1px rgb(0 0 0/.1);--vuiii-field-height: 2.75rem;--vuiii-field-padding: 1.4375rem;--vuiii-field-borderRadius: .35rem;--vuiii-field-borderWidth: 1px;--vuiii-field-borderColor: var(--vuiii-color-gray);--vuiii-field-fontSize: 1rem;--vuiii-field-ringColor: var(--vuiii-color-primary-shadow);--vuiii-field-ringSize: 4px;--vuiii-field-borderColor--active: var(--vuiii-color-primary);--vuiii-field-borderColor--focus: var(--vuiii-color-primary);--vuiii-field-borderColor--invalid: var(--vuiii-color-danger);--vuiii-field-height--small: 2rem;--vuiii-field-padding--small: 1.1875rem;--vuiii-field-fontSize--small: .8125rem;--vuiii-field-ringSize--small: 2px;--vuiii-field-height--large: 3rem;--vuiii-field-padding--large: 1.4375rem;--vuiii-field-fontSize--large: 1rem;--vuiii-field-height--xlarge: 3.25rem;--vuiii-field-padding--xlarge: 1.5625rem;--vuiii-field-fontSize--xlarge: 1.125rem;--vuiii-fontSize-base: 1rem;--vuiii-fontSize-small: .85rem}.vuiii-button{--bgColor: var(--vuiii-button-bgColor, transparent);--borderColor: var(--vuiii-button-borderColor, transparent);--textColor: var(--vuiii-button-textColor, black);--borderRadius: var(--vuiii-button-borderRadius, var(--vuiii-field-borderRadius));--borderWidth: var(--vuiii-button-borderWidth, var(--vuiii-field-borderWidth));--height: var(--vuiii-button-height, var(--vuiii-field-height));--padding: var(--vuiii-button-padding, var(--vuiii-field-padding));--fontSize: var(--vuiii-button-fontSize, var(--vuiii-field-fontSize));--fontWeight: var(--vuiii-button-fontWeight, 600);--shadow: var(--vuiii-button-shadow, 0 0);--transition: var(--vuiii-button-transition, var(--vuiii-field-transition, none));--ringColor: var(--vuiii-button-ringColor, rgb(0 0 0/.05));--gap: .5rem;--ringSize: 0;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;gap:var(--gap);align-items:center;align-self:center;justify-content:center;padding:0 var(--padding);min-height:var(--height);cursor:pointer;font-size:var(--fontSize, inherit);font-weight:var(--fontWeight, normal);font-family:var(--fontFamily, inherit);outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:var(--borderRadius);box-shadow:0 0 0 var(--ringSize) var(--ringColor),var(--shadow);transition:var(--transition);position:relative;background-color:var(--bgColor);border:var(--borderWidth) solid var(--borderColor);color:var(--textColor)}.vuiii-button:focus:not(:disabled){--borderColor: var(--vuiii-button-borderColor--focus, var(--vuiii-button-borderColor, transparent));--bgColor: var(--vuiii-button-bgColor--focus, var(--vuiii-button-bgColor, transparent));--textColor: var(--vuiii-button-textColor--hover, var(--vuiii-button-textColor, black));--ringSize: var(--vuiii-button-ringSize, var(--vuiii-field-ringSize))}.vuiii-button:hover:not(:disabled){--borderColor: var(--vuiii-button-borderColor--hover, var(--vuiii-button-borderColor, transparent));--bgColor: var(--vuiii-button-bgColor--hover, var(--vuiii-button-bgColor, transparent));--textColor: var(--vuiii-button-textColor--hover, var(--vuiii-button-textColor, black))}.vuiii-button.vuiii-button:disabled{pointer-events:none;opacity:var(--vuiii-button-opacity--disabled, var(--vuiii-field-opacity--disabled, .75));--borderColor: var(--vuiii-button-borderColor--disabled, var(--vuiii-button-borderColor, transparent));--bgColor: var(--vuiii-button-bgColor--disabled, var(--vuiii-button-bgColor, transparent));--textColor: var(--vuiii-button-textColor--disabled, var(--vuiii-button-textColor, black))}.vuiii-button.vuiii-button--small{--gap: .25rem;--height: var(--vuiii-button-height--small, var(--vuiii-field-height--small));--padding: var(--vuiii-button-padding--small, var(--vuiii-field-padding--small));--fontSize: var(--vuiii-button-fontSize--small, var(--vuiii-field-fontSize--small));--borderRadius: var(--vuiii-button-borderRadius--small, var(--vuiii-field-borderRadius--small, var(--vuiii-field-borderRadius))) }.vuiii-button.vuiii-button--small:focus:not(:disabled){--ringSize: var(--vuiii-button-ringSize--small, var(--vuiii-button-ringSize, var(--vuiii-field-ringSize--small)))}.vuiii-button.vuiii-button--large{--gap: .75rem;--height: var(--vuiii-button-height--large, var(--vuiii-field-height--large));--padding: var(--vuiii-button-padding--large, var(--vuiii-field-padding--large));--fontSize: var(--vuiii-button-fontSize--large, var(--vuiii-field-fontSize--large));--borderRadius: var(--vuiii-button-borderRadius--large, var(--vuiii-field-borderRadius--large, var(--vuiii-field-borderRadius)))}.vuiii-button.vuiii-button--xlarge{--gap: 1rem;--height: var(--vuiii-button-height--xlarge, var(--vuiii-field-height--xlarge));--padding: var(--vuiii-button-padding--xlarge, var(--vuiii-field-padding--xlarge));--fontSize: var(--vuiii-button-fontSize--xlarge, var(--vuiii-field-fontSize--xlarge));--borderRadius: var(--vuiii-button-borderRadius--xlarge, var(--vuiii-button-borderRadius--large, var(--vuiii-field-borderRadius--xlarge, var(--vuiii-field-borderRadius--large))))}.vuiii-button.vuiii-button--primary{--bgColor: var(--vuiii-button-bgColor--primary, var(--vuiii-color-primary));--borderColor: var(--vuiii-button-borderColor--primary, transparent);--borderWidth: var(--vuiii-button-borderWidth--primary, var(--vuiii-button-borderWidth, var(--vuiii-field-borderWidth)));--textColor: var(--vuiii-button-textColor--primary, white);--ringColor: var(--vuiii-button-ringColor--primary, var(--vuiii-color-primary-shadow)) }.vuiii-button.vuiii-button--primary:focus:not(:disabled){--bgColor: var(--vuiii-button-bgColor--primary--focus, var(--vuiii-button-bgColor--primary, var(--vuiii-color-primary)));--borderColor: var(--vuiii-button-borderColor--primary--focus, var(--vuiii-button-borderColor--primary, var(--vuiii-color-primary--darker, transparent)));--textColor: var(--vuiii-button-textColor--primary--focus, var(--vuiii-button-textColor--primary, white))}.vuiii-button.vuiii-button--primary:hover:not(:disabled),.vuiii-button.vuiii-button--primary.vuiii-button--active:not(:disabled){--bgColor: var(--vuiii-button-bgColor--primary--hover, var(--vuiii-button-bgColor--primary, var(--vuiii-color-primary--darker)));--borderColor: var(--vuiii-button-borderColor--primary--hover, var(--vuiii-button-borderColor--primary, var(--vuiii-color-primary--darker, transparent)));--textColor: var(--vuiii-button-textColor--primary--hover, var(--vuiii-button-textColor--primary, white))}.vuiii-button.vuiii-button--secondary{--bgColor: var(--vuiii-button-bgColor--secondary, var(--vuiii-color-secondary));--borderColor: var(--vuiii-button-borderColor--secondary, transparent);--borderWidth: var(--vuiii-button-borderWidth--secondary, var(--vuiii-button-borderWidth, var(--vuiii-field-borderWidth)));--textColor: var(--vuiii-button-textColor--secondary, black);--ringColor: var(--vuiii-button-ringColor--secondary, var(--vuiii-color-secondary-shadow)) }.vuiii-button.vuiii-button--secondary:focus:not(:disabled){--bgColor: var(--vuiii-button-bgColor--secondary--focus, var(--vuiii-button-bgColor--secondary, var(--vuiii-color-secondary, transparent)));--borderColor: var(--vuiii-button-borderColor--secondary--focus, var(--vuiii-button-borderColor--secondary, var(--vuiii-color-secondary--darker, transparent)));--textColor: var(--vuiii-button-textColor--secondary--focus, var(--vuiii-button-textColor--secondary, black))}.vuiii-button.vuiii-button--secondary:hover:not(:disabled),.vuiii-button.vuiii-button--secondary.vuiii-button--active:not(:disabled){--bgColor: var(--vuiii-button-bgColor--secondary--hover, var(--vuiii-button-bgColor--secondary, var(--vuiii-color-secondary--darker, transparent)));--borderColor: var(--vuiii-button-borderColor--secondary--hover, var(--vuiii-button-borderColor--secondary, var(--vuiii-color-secondary--darker, transparent)));--textColor: var(--vuiii-button-textColor--secondary--hover, var(--vuiii-button-textColor--secondary, black))}.vuiii-button.vuiii-button--danger{--bgColor: var(--vuiii-button-bgColor--danger, var(--vuiii-color-danger));--borderColor: var(--vuiii-button-borderColor--danger, transparent);--textColor: var(--vuiii-button-textColor--danger, white);--ringColor: var(--vuiii-button-ringColor--danger, var(--vuiii-color-danger-shadow)) }.vuiii-button.vuiii-button--danger:focus:not(:disabled){--bgColor: var(--vuiii-button-bgColor--danger--focus, var(--vuiii-button-bgColor--danger, var(--vuiii-color-danger)));--borderColor: var(--vuiii-button-borderColor--danger--focus, var(--vuiii-button-borderColor--danger, transparent));--textColor: var(--vuiii-button-textColor--danger--focus, var(--vuiii-button-textColor--danger, white))}.vuiii-button.vuiii-button--danger:hover:not(:disabled),.vuiii-button.vuiii-button--danger.vuiii-button--active:not(:disabled){--bgColor: var(--vuiii-button-bgColor--danger--hover, var(--vuiii-button-bgColor--danger, var(--vuiii-color-danger--darker)));--borderColor: var(--vuiii-button-borderColor--danger--hover, var(--vuiii-button-borderColor--danger, transparent));--textColor: var(--vuiii-button-textColor--danger--hover, var(--vuiii-button-textColor--danger, white))}.vuiii-button.vuiii-button--light{--bgColor: white;--textColor: black }.vuiii-button.vuiii-button--light:hover:not(:disabled),.vuiii-button.vuiii-button--light:focus:not(:disabled){--ringSize: 0;--textColor: black;--bgColor: rgba(39, 41, 55, .05)}.vuiii-button.vuiii-button--dark{--bgColor: black;--textColor: white }.vuiii-button.vuiii-button--dark:hover:not(:disabled),.vuiii-button.vuiii-button--dark:focus:not(:disabled){--ringColor: rgba(39, 41, 55, .05);--textColor: white;--bgColor: black}.Button--block[data-v-24bf0302]{width:100%}.Button__icon--small[data-v-24bf0302]{width:.75rem}.Button__icon--normal[data-v-24bf0302]{width:1.35rem}.Button__icon--prefix.Button__icon--normal[data-v-24bf0302]{margin-left:-.125rem}.Button__icon--suffix.Button__icon--normal[data-v-24bf0302]{margin-right:-.125rem}.vuiii-input{--textColor: var(--vuiii-input-textColor, inherit);--bgColor: var(--vuiii-input-bgColor, white);--borderRadus: var(--vuiii-input-borderRadius, var(--vuiii-field-borderRadius));--borderWidth: var(--vuiii-input-borderWidth, 1px);--borderColor: var(--vuiii-input-borderColor, var(--vuiii-color-gray));--height: var(--vuiii-input-height, var(--vuiii-field-height));--padding: var(--vuiii-input-padding, 1rem);--fontSize: var(--vuiii-input-fontSize, var(--vuiii-field-fontSize));--transition: var(--vuiii-input-transition, var(--vuiii-field-transition));--shadow: var(--vuiii-input-shadow, 0 0);--ringColor: var(--vuiii-input-ringColor, var(--vuiii-field-ringColor));--ringSize: 0;width:100%;color:var(--textColor);background-color:var(--bgColor);border:var(--borderWidth) solid var(--borderColor);border-radius:var(--borderRadus);padding-left:var(--padding);padding-right:var(--padding);min-height:var(--height);font-size:var(--fontSize);transition:var(--transition);box-shadow:0 0 0 var(--ringSize) var(--ringColor),var(--shadow)}.vuiii-input::-moz-placeholder{color:var(--vuiii-input-placeholderColor, var(--vuiii-color-gray--dark))}.vuiii-input:-ms-input-placeholder{color:var(--vuiii-input-placeholderColor, var(--vuiii-color-gray--dark))}.vuiii-input::placeholder{color:var(--vuiii-input-placeholderColor, var(--vuiii-color-gray--dark))}.vuiii-input:focus,.vuiii-input:focus-within{--ringSize: var(--vuiii-input-ringSize, var(--vuiii-field-ringSize));--borderColor: var(--vuiii-input-borderColor--focus, var(--vuiii-field-borderColor--focus, var(--vuiii-input-borderColor, var(--vuiii-color-gray))));--bgColor: var(--vuiii-input-bgColor--focus, var(--vuiii-input-bgColor, white));outline:none}.vuiii-input:disabled,.vuiii-input.vuiii-input--disabled{--borderColor: var(--vuiii-color-gray--light);opacity:.6;pointer-events:none}.vuiii-input.vuiii-input--small{--height: var(--vuiii-input-height--small, var(--vuiii-field-height--small));--fontSize: var(--vuiii-input-fontSize--small, var(--vuiii-field-fontSize--small)) }.vuiii-input.vuiii-input--small:focus,.vuiii-input.vuiii-input--small:focus-within{--ringSize: var(--vuiii-field-ringSize--small)}.vuiii-input.vuiii-input--valid{color:var(--vuiii-color-success);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%2356B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.415em + .25rem) center;background-size:calc(.83em + .5rem) calc(.83em + .5rem)}.vuiii-input.vuiii-input--invalid{--borderColor: var(--vuiii-color-danger);--ringColor: var(--vuiii-color-danger-shadow);color:var(--vuiii-color-success);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.415em + .25rem) center;background-size:calc(.83em + .5rem) calc(.83em + .5rem)}.vuiii-input.vuiii-input--invalid:focus,.vuiii-input.vuiii-input--invalid:focus-within{outline:none}.vuiii-input .vuiii-input__nested{color:inherit;padding:0 var(--padding);line-height:1;background:transparent;border:none;border-radius:var(--borderRadus);min-height:calc(var(--height) - 2px);outline:none;cursor:inherit}.vuiii-input .vuiii-input__nested::-moz-placeholder{color:var(--vuiii-color-gray--dark)}.vuiii-input .vuiii-input__nested:-ms-input-placeholder{color:var(--vuiii-color-gray--dark)}.vuiii-input .vuiii-input__nested::placeholder{color:var(--vuiii-color-gray--dark)}select.vuiii-input{padding-right:2.5rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1792 1792"><path d="M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z"/></svg>');background-position:right .75rem center;background-size:1.2rem;text-overflow:ellipsis}@supports (-moz-appearance:none){select.vuiii-input{line-height:3}}select.vuiii-input.vuiii-input--small{padding-right:2rem;background-size:1rem}input[type=number].vuiii-input{-moz-appearance:textfield}input.vuiii-input[type=number]::-webkit-outer-spin-button,input.vuiii-input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}input[type=checkbox].vuiii-input,input[type=radio].vuiii-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1.25rem;height:1.25rem;min-height:0;padding:0;background:white;cursor:pointer;flex:none}input.vuiii-input[type=checkbox]:checked,input.vuiii-input[type=radio]:checked{background-repeat:no-repeat;background-position:center;background-color:var(--vuiii-color-primary);border-color:var(--vuiii-color-primary)}input.vuiii-input[type=checkbox]:disabled,input.vuiii-input[type=radio]:disabled{cursor:default}input[type=checkbox].vuiii-input{border-radius:.25rem}input.vuiii-input[type=checkbox]:checked{background-image:url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M20.405 40.983L38.79 59.368 81.217 16.94l14.142 14.143L38.79 87.652 6.263 55.125l14.142-14.142z"/></svg>');background-size:.75rem}input[type=radio].vuiii-input{border-radius:100%}input.vuiii-input[type=radio]:checked{background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 1 1"><circle r=".5" cx=".5" cy=".5" /></svg>');background-size:.5rem}textarea.vuiii-input{padding-top:.75rem;padding-bottom:.75rem;vertical-align:middle;line-height:1.25;resize:vertical}.Checkbox[data-v-18ef5cd1]{display:inline-flex;align-items:flex-start;vertical-align:top;cursor:pointer}--disabled.Checkbox[data-v-18ef5cd1]{opacity:.5}.Checkbox__input[data-v-18ef5cd1]{margin-top:1px}.Checkbox__switch[data-v-18ef5cd1]{padding:3px;margin-top:-1px;width:2.25rem;border-radius:999px;transition:all .15s ease-out;background:rgb(115,115,115)}--active.Checkbox__switch[data-v-18ef5cd1]{background:var(--vuiii-color-primary)}.Checkbox__switchDot[data-v-18ef5cd1]{width:1.25rem;aspect-ratio:1 / 1;background:white;border-radius:999px;transition:all .15s ease-out}.Checkbox__switch--active .Checkbox__switchDot[data-v-18ef5cd1]{transform:translate(.75rem)}.Checkbox__label[data-v-18ef5cd1]{margin-left:.5rem;line-height:1.375}.Checkbox__required[data-v-18ef5cd1]{line-height:1;color:var(--vuiii-color-danger)}.CheckboxGroup>*+*[data-v-1a9cd604]{margin-top:.5rem}.FormGroup[data-v-2a74e30e]{width:100%}.FormGroup--invalid[data-v-2a74e30e] .vuiii-input,.FormGroup--invalid[data-v-2a74e30e] .vuiii-input:hover{--textColor: var(--vuiii-field-borderColor--invalid);--borderColor: var(--vuiii-field-borderColor--invalid);--ringColor: var(--vuiii-field-ringColor--invalid, rgb(225 29 72/.2) )}.FormGroup__header[data-v-2a74e30e]{display:flex;align-items:center;margin-bottom:.5rem;gap:.25rem}.FormGroup__label[data-v-2a74e30e]{font-size:.8rem;font-weight:600;letter-spacing:.05rem;text-transform:uppercase}.FormGroup__required[data-v-2a74e30e]{line-height:1;color:var(--vuiii-color-danger)}.FormGroup__description[data-v-2a74e30e]{font-size:.8rem;margin-bottom:.75rem;max-width:48rem;color:#737373}.FormGroup__hint[data-v-2a74e30e]{font-size:.8rem;margin-top:.5rem;max-width:48rem;color:#737373}.FormGroup__error[data-v-2a74e30e]{font-size:.8rem;margin-top:.25rem;max-width:48rem;color:var(--vuiii-color-danger)}.FormFields>*+*[data-v-7f82ddf3]{margin-top:2rem}.Form>*+*[data-v-4a2acd7e]{margin-top:2rem}.Form__buttons[data-v-4a2acd7e]{display:flex;align-items:center;margin-top:2rem}.Form__buttons>*+*[data-v-4a2acd7e]{margin-left:1rem}.Input.Input[data-v-6a6438b5]{cursor:text;display:flex;align-items:center;padding-left:0;padding-right:0;line-height:1}.Input__icon[data-v-6a6438b5]{display:flex;align-items:center;justify-content:center;width:3rem;opacity:.35}.Input__icon--right[data-v-6a6438b5]{margin-left:-1rem}.Input__icon--left[data-v-6a6438b5]{margin-right:-1rem}.Input__nestedInput[data-v-6a6438b5]{flex:auto;align-self:stretch;width:100%}.ModalLayout[data-v-386279ac]{position:relative;display:flex;flex-direction:column;align-items:stretch;margin:auto;min-height:-webkit-fit-content;min-height:-moz-fit-content;min-height:fit-content;background-color:#fff;border-radius:4px;box-shadow:0 2px 10px #0000001a}.ModalLayout.isScrollable[data-v-386279ac]{min-height:auto;max-height:calc(100vh - 3rem)}.ModalLayout__header[data-v-386279ac]{flex:0 0 auto;padding:1.25rem 4rem 1.25rem 1.5rem}.ModalLayout__header .ModalLayout.isPlain[data-v-386279ac]{padding:0}.ModalLayout__title[data-v-386279ac]{font-size:larger}.ModalLayout__close[data-v-386279ac]{position:absolute;z-index:1;top:0;right:0;display:flex;justify-content:center;align-items:center;width:4rem;height:4.3rem;font-size:1.85rem;opacity:.4}.ModalLayout__close[data-v-386279ac]:hover{opacity:1;cursor:pointer}.ModalLayout__closeIcon[data-v-386279ac]{width:1.5rem;height:1.5rem}.ModalLayout__body[data-v-386279ac]{flex:1 0 auto;padding:1.5rem;border-radius:4px}.ModalLayout.hasHeader .ModalLayout__body[data-v-386279ac]{padding-top:0;border-top-right-radius:0;border-top-left-radius:0}.ModalLayout.hasFooter .ModalLayout__body[data-v-386279ac]{padding-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.ModalLayout.isScrollable .ModalLayout__body[data-v-386279ac]{flex:1 1 auto;overflow:auto;padding:1.5rem;-ms-scroll-chaining:none;overscroll-behavior:contain;overflow-y:scroll;-webkit-overflow-scrolling:touch}.ModalLayout.isScrollable.hasHeader .ModalLayout__body[data-v-386279ac]{border-top:1px solid rgba(0,0,0,.1)}.ModalLayout.isScrollable.hasFooter .ModalLayout__body[data-v-386279ac]{border-bottom:1px solid rgba(0,0,0,.1)}.ModalLayout.isPlain .ModalLayout__body[data-v-386279ac]{padding:0}.ModalLayout__footer[data-v-386279ac]{flex:0 0 auto;padding:1.25rem 1.5rem}.ModalLayout.isPlain .ModalLayout__footer[data-v-386279ac]{padding:0}.Radio>*+*[data-v-0251715f]{margin-top:.5rem}.Radio__option[data-v-0251715f]{display:flex;align-items:flex-start;vertical-align:top;cursor:pointer}.Radio__input[data-v-0251715f]{margin-top:1px}.Radio__label[data-v-0251715f]{margin-left:.5rem;line-height:1.375}.vuiii-table{min-width:100%;background-color:var(--vuiii-table-bgColor);border:1px solid var(--vuiii-table-borderColor, transparent);border-radius:var(--vuiii-table-borderRadius, var(--vuiii-field-borderRadius));shadow:var(--vuiii-table-shadow, var(--vuiii-shadow));font-size:var(--vuiii-table-fontSize, inherit)}.vuiii-table thead tr{border-bottom:1px solid var(--vuiii-color-gray--light)}.vuiii-table thead th{padding:.75rem 1.5rem;font-size:.8rem;font-weight:600;text-align:left;letter-spacing:.025em;color:#404040;text-transform:uppercase}:is(.vuiii-table tbody)>*+*{border-top:1px solid var(--vuiii-color-gray--light)}.vuiii-table tbody td{padding:1rem 1.5rem}.vuiii-table.vuiii-table--hover tbody tr:hover td{background-color:#00000006}.vuiii-link{cursor:pointer;color:var(--vuiii-color-primary);text-decoration:none}.vuiii-link:hover{color:var(--vuiii-color-primary--darker);text-decoration:underline}.vuiii-link.vuiii-link--danger,.vuiii-link.vuiii-link--danger:hover{color:var(--vuiii-color-danger--darker)}.vuiii-muted{color:var(--vuiii-color-gray-darker)}.ModalLayoutDialog__buttons[data-v-612c6cb9]{display:flex;align-items:center;justify-content:flex-end;margin-top:1rem}.ModalLayoutDialog__buttons>*+*[data-v-612c6cb9]{margin-left:.5rem}.ModalLayoutDialog__message--offset[data-v-612c6cb9]{padding-right:2.5rem}.ModalStack[data-v-2f4ee2c2]{position:fixed;z-index:1050}.ModalStack__backdrop[data-v-2f4ee2c2]{background:rgba(0,0,0,.35);position:fixed;z-index:1;top:0;left:0;width:100%;height:100%}.ModalStack__modalWrapper[data-v-2f4ee2c2]{position:fixed;z-index:2;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;width:auto;height:auto;padding:1.5rem;overflow:auto}.ModalStack__modalScroller[data-v-2f4ee2c2]{overflow:auto;position:relative;height:100vh;display:flex;justify-content:center;width:100%}.ModalStack__modal[data-v-2f4ee2c2]{transition:filter .15s}.ModalStack__modal[data-v-2f4ee2c2]:not(.isActive){filter:brightness(80%)}.ModalStack__modal-enter-active[data-v-2f4ee2c2],.ModalStack__modal-leave-active[data-v-2f4ee2c2]{transition:opacity .15s;pointer-events:none}.ModalStack__modal-enter-from[data-v-2f4ee2c2],.ModalStack__modal-leave-to[data-v-2f4ee2c2]{opacity:0;pointer-events:none}.ModalStack__backdrop-enter-active[data-v-2f4ee2c2],.ModalStack__backdrop-leave-active[data-v-2f4ee2c2]{transition:opacity .15s;pointer-events:none}.ModalStack__backdrop-enter-from[data-v-2f4ee2c2],.ModalStack__backdrop-leave-to[data-v-2f4ee2c2]{opacity:0;pointer-events:none}.Snackbar[data-v-272e7ab3]{position:fixed;bottom:0;right:0;z-index:10;margin:2rem}.Snackbar__transition-enter-from[data-v-272e7ab3],.Snackbar__transition-leave-to[data-v-272e7ab3]{opacity:0;transform:translateY(.5rem)}.Snackbar__transition-enter-active[data-v-272e7ab3],.Snackbar__transition-leave-active[data-v-272e7ab3]{transition:all .15s ease-out}.Snackbar__transition-enter-to[data-v-272e7ab3],.Snackbar__transition-leave-from[data-v-272e7ab3]{opacity:1}.Snackbar__message[data-v-272e7ab3]{position:absolute;bottom:0;right:0;display:flex;justify-content:flex-end;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:48rem;pointer-events:none;word-break:break-word}.Snackbar__messageWrapper[data-v-272e7ab3]{padding-top:.5rem;transition:transform .15s ease-in}.Snackbar__messageBlock[data-v-272e7ab3]{display:inline-flex;align-items:flex-start;padding:.75rem 1.5rem;color:#fff;border-radius:.25rem;cursor:default;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Snackbar__messageBlock--success[data-v-272e7ab3]{background-color:#000}.Snackbar__messageBlock--error[data-v-272e7ab3]{background-color:var(--vuiii-color-danger)}.Snackbar__messageClose[data-v-272e7ab3]{display:inline-flex;justify-content:center;align-items:center;padding:.75rem;margin:-.75rem -.75rem -.75rem .75rem;font-size:.85rem;font-weight:600;opacity:.5;cursor:pointer}.Snackbar__messageClose[data-v-272e7ab3]:hover{opacity:1}.Snackbar__messageCloseIcon[data-v-272e7ab3]{width:1rem}
|
package/dist/vuiii.es.js
CHANGED
|
@@ -39,6 +39,30 @@ var _export_sfc = (sfc, props) => {
|
|
|
39
39
|
}
|
|
40
40
|
return target;
|
|
41
41
|
};
|
|
42
|
+
const _sfc_main$w = {};
|
|
43
|
+
const _hoisted_1$u = {
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
fill: "none",
|
|
46
|
+
viewBox: "0 0 24 24",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
"stroke-width": "2"
|
|
49
|
+
};
|
|
50
|
+
const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
|
|
51
|
+
"stroke-linecap": "round",
|
|
52
|
+
"stroke-linejoin": "round",
|
|
53
|
+
d: "M16 17l-4 4m0 0l-4-4m4 4V3"
|
|
54
|
+
}, null, -1);
|
|
55
|
+
const _hoisted_3$n = [
|
|
56
|
+
_hoisted_2$p
|
|
57
|
+
];
|
|
58
|
+
function _sfc_render$v(_ctx, _cache) {
|
|
59
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$n);
|
|
60
|
+
}
|
|
61
|
+
var arrowNarrowDown = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$v]]);
|
|
62
|
+
var __glob_4_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
63
|
+
__proto__: null,
|
|
64
|
+
"default": arrowNarrowDown
|
|
65
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
42
66
|
const _sfc_main$v = {};
|
|
43
67
|
const _hoisted_1$t = {
|
|
44
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -50,7 +74,7 @@ const _hoisted_1$t = {
|
|
|
50
74
|
const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
|
|
51
75
|
"stroke-linecap": "round",
|
|
52
76
|
"stroke-linejoin": "round",
|
|
53
|
-
d: "
|
|
77
|
+
d: "M7 16l-4-4m0 0l4-4m-4 4h18"
|
|
54
78
|
}, null, -1);
|
|
55
79
|
const _hoisted_3$m = [
|
|
56
80
|
_hoisted_2$o
|
|
@@ -58,10 +82,10 @@ const _hoisted_3$m = [
|
|
|
58
82
|
function _sfc_render$u(_ctx, _cache) {
|
|
59
83
|
return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$m);
|
|
60
84
|
}
|
|
61
|
-
var
|
|
62
|
-
var
|
|
85
|
+
var arrowNarrowLeft = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$u]]);
|
|
86
|
+
var __glob_4_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
63
87
|
__proto__: null,
|
|
64
|
-
"default":
|
|
88
|
+
"default": arrowNarrowLeft
|
|
65
89
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
66
90
|
const _sfc_main$u = {};
|
|
67
91
|
const _hoisted_1$s = {
|
|
@@ -74,7 +98,7 @@ const _hoisted_1$s = {
|
|
|
74
98
|
const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
|
|
75
99
|
"stroke-linecap": "round",
|
|
76
100
|
"stroke-linejoin": "round",
|
|
77
|
-
d: "
|
|
101
|
+
d: "M17 8l4 4m0 0l-4 4m4-4H3"
|
|
78
102
|
}, null, -1);
|
|
79
103
|
const _hoisted_3$l = [
|
|
80
104
|
_hoisted_2$n
|
|
@@ -82,10 +106,10 @@ const _hoisted_3$l = [
|
|
|
82
106
|
function _sfc_render$t(_ctx, _cache) {
|
|
83
107
|
return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_3$l);
|
|
84
108
|
}
|
|
85
|
-
var
|
|
86
|
-
var
|
|
109
|
+
var arrowNarrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$t]]);
|
|
110
|
+
var __glob_4_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
87
111
|
__proto__: null,
|
|
88
|
-
"default":
|
|
112
|
+
"default": arrowNarrowRight
|
|
89
113
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
114
|
const _sfc_main$t = {};
|
|
91
115
|
const _hoisted_1$r = {
|
|
@@ -98,7 +122,7 @@ const _hoisted_1$r = {
|
|
|
98
122
|
const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
|
|
99
123
|
"stroke-linecap": "round",
|
|
100
124
|
"stroke-linejoin": "round",
|
|
101
|
-
d: "
|
|
125
|
+
d: "M8 7l4-4m0 0l4 4m-4-4v18"
|
|
102
126
|
}, null, -1);
|
|
103
127
|
const _hoisted_3$k = [
|
|
104
128
|
_hoisted_2$m
|
|
@@ -106,10 +130,10 @@ const _hoisted_3$k = [
|
|
|
106
130
|
function _sfc_render$s(_ctx, _cache) {
|
|
107
131
|
return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$k);
|
|
108
132
|
}
|
|
109
|
-
var
|
|
110
|
-
var
|
|
133
|
+
var arrowNarrowUp = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$s]]);
|
|
134
|
+
var __glob_4_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
111
135
|
__proto__: null,
|
|
112
|
-
"default":
|
|
136
|
+
"default": arrowNarrowUp
|
|
113
137
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
114
138
|
const _sfc_main$s = {};
|
|
115
139
|
const _hoisted_1$q = {
|
|
@@ -122,7 +146,7 @@ const _hoisted_1$q = {
|
|
|
122
146
|
const _hoisted_2$l = /* @__PURE__ */ createElementVNode("path", {
|
|
123
147
|
"stroke-linecap": "round",
|
|
124
148
|
"stroke-linejoin": "round",
|
|
125
|
-
d: "
|
|
149
|
+
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
126
150
|
}, null, -1);
|
|
127
151
|
const _hoisted_3$j = [
|
|
128
152
|
_hoisted_2$l
|
|
@@ -130,10 +154,10 @@ const _hoisted_3$j = [
|
|
|
130
154
|
function _sfc_render$r(_ctx, _cache) {
|
|
131
155
|
return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_3$j);
|
|
132
156
|
}
|
|
133
|
-
var
|
|
134
|
-
var
|
|
157
|
+
var checkCircle = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$r]]);
|
|
158
|
+
var __glob_4_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
135
159
|
__proto__: null,
|
|
136
|
-
"default":
|
|
160
|
+
"default": checkCircle
|
|
137
161
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
138
162
|
const _sfc_main$r = {};
|
|
139
163
|
const _hoisted_1$p = {
|
|
@@ -146,7 +170,7 @@ const _hoisted_1$p = {
|
|
|
146
170
|
const _hoisted_2$k = /* @__PURE__ */ createElementVNode("path", {
|
|
147
171
|
"stroke-linecap": "round",
|
|
148
172
|
"stroke-linejoin": "round",
|
|
149
|
-
d: "
|
|
173
|
+
d: "M5 13l4 4L19 7"
|
|
150
174
|
}, null, -1);
|
|
151
175
|
const _hoisted_3$i = [
|
|
152
176
|
_hoisted_2$k
|
|
@@ -154,10 +178,10 @@ const _hoisted_3$i = [
|
|
|
154
178
|
function _sfc_render$q(_ctx, _cache) {
|
|
155
179
|
return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$i);
|
|
156
180
|
}
|
|
157
|
-
var
|
|
158
|
-
var
|
|
181
|
+
var check = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$q]]);
|
|
182
|
+
var __glob_4_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
159
183
|
__proto__: null,
|
|
160
|
-
"default":
|
|
184
|
+
"default": check
|
|
161
185
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
162
186
|
const _sfc_main$q = {};
|
|
163
187
|
const _hoisted_1$o = {
|
|
@@ -170,7 +194,7 @@ const _hoisted_1$o = {
|
|
|
170
194
|
const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
|
|
171
195
|
"stroke-linecap": "round",
|
|
172
196
|
"stroke-linejoin": "round",
|
|
173
|
-
d: "
|
|
197
|
+
d: "M15 19l-7-7 7-7"
|
|
174
198
|
}, null, -1);
|
|
175
199
|
const _hoisted_3$h = [
|
|
176
200
|
_hoisted_2$j
|
|
@@ -178,10 +202,10 @@ const _hoisted_3$h = [
|
|
|
178
202
|
function _sfc_render$p(_ctx, _cache) {
|
|
179
203
|
return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$h);
|
|
180
204
|
}
|
|
181
|
-
var
|
|
182
|
-
var
|
|
205
|
+
var chevronLeft = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$p]]);
|
|
206
|
+
var __glob_4_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
183
207
|
__proto__: null,
|
|
184
|
-
"default":
|
|
208
|
+
"default": chevronLeft
|
|
185
209
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
186
210
|
const _sfc_main$p = {};
|
|
187
211
|
const _hoisted_1$n = {
|
|
@@ -194,7 +218,7 @@ const _hoisted_1$n = {
|
|
|
194
218
|
const _hoisted_2$i = /* @__PURE__ */ createElementVNode("path", {
|
|
195
219
|
"stroke-linecap": "round",
|
|
196
220
|
"stroke-linejoin": "round",
|
|
197
|
-
d: "
|
|
221
|
+
d: "M9 5l7 7-7 7"
|
|
198
222
|
}, null, -1);
|
|
199
223
|
const _hoisted_3$g = [
|
|
200
224
|
_hoisted_2$i
|
|
@@ -202,10 +226,10 @@ const _hoisted_3$g = [
|
|
|
202
226
|
function _sfc_render$o(_ctx, _cache) {
|
|
203
227
|
return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$g);
|
|
204
228
|
}
|
|
205
|
-
var
|
|
206
|
-
var
|
|
229
|
+
var chevronRight = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$o]]);
|
|
230
|
+
var __glob_4_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
207
231
|
__proto__: null,
|
|
208
|
-
"default":
|
|
232
|
+
"default": chevronRight
|
|
209
233
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
210
234
|
const _sfc_main$o = {};
|
|
211
235
|
const _hoisted_1$m = {
|
|
@@ -218,7 +242,7 @@ const _hoisted_1$m = {
|
|
|
218
242
|
const _hoisted_2$h = /* @__PURE__ */ createElementVNode("path", {
|
|
219
243
|
"stroke-linecap": "round",
|
|
220
244
|
"stroke-linejoin": "round",
|
|
221
|
-
d: "
|
|
245
|
+
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
222
246
|
}, null, -1);
|
|
223
247
|
const _hoisted_3$f = [
|
|
224
248
|
_hoisted_2$h
|
|
@@ -226,10 +250,10 @@ const _hoisted_3$f = [
|
|
|
226
250
|
function _sfc_render$n(_ctx, _cache) {
|
|
227
251
|
return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$f);
|
|
228
252
|
}
|
|
229
|
-
var
|
|
230
|
-
var
|
|
253
|
+
var exclamationCircle = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$n]]);
|
|
254
|
+
var __glob_4_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
231
255
|
__proto__: null,
|
|
232
|
-
"default":
|
|
256
|
+
"default": exclamationCircle
|
|
233
257
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
234
258
|
const _sfc_main$n = {};
|
|
235
259
|
const _hoisted_1$l = {
|
|
@@ -242,7 +266,7 @@ const _hoisted_1$l = {
|
|
|
242
266
|
const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
|
|
243
267
|
"stroke-linecap": "round",
|
|
244
268
|
"stroke-linejoin": "round",
|
|
245
|
-
d: "M12
|
|
269
|
+
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
246
270
|
}, null, -1);
|
|
247
271
|
const _hoisted_3$e = [
|
|
248
272
|
_hoisted_2$g
|
|
@@ -250,23 +274,23 @@ const _hoisted_3$e = [
|
|
|
250
274
|
function _sfc_render$m(_ctx, _cache) {
|
|
251
275
|
return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$e);
|
|
252
276
|
}
|
|
253
|
-
var
|
|
254
|
-
var
|
|
277
|
+
var exclamation = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$m]]);
|
|
278
|
+
var __glob_4_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
255
279
|
__proto__: null,
|
|
256
|
-
"default":
|
|
280
|
+
"default": exclamation
|
|
257
281
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
258
282
|
const _sfc_main$m = {};
|
|
259
283
|
const _hoisted_1$k = {
|
|
260
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
261
285
|
fill: "none",
|
|
262
286
|
viewBox: "0 0 24 24",
|
|
263
|
-
stroke: "
|
|
264
|
-
|
|
287
|
+
"stroke-width": "1.5",
|
|
288
|
+
stroke: "currentColor"
|
|
265
289
|
};
|
|
266
290
|
const _hoisted_2$f = /* @__PURE__ */ createElementVNode("path", {
|
|
267
291
|
"stroke-linecap": "round",
|
|
268
292
|
"stroke-linejoin": "round",
|
|
269
|
-
d: "
|
|
293
|
+
d: "M19.5 12h-15"
|
|
270
294
|
}, null, -1);
|
|
271
295
|
const _hoisted_3$d = [
|
|
272
296
|
_hoisted_2$f
|
|
@@ -274,10 +298,10 @@ const _hoisted_3$d = [
|
|
|
274
298
|
function _sfc_render$l(_ctx, _cache) {
|
|
275
299
|
return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$d);
|
|
276
300
|
}
|
|
277
|
-
var
|
|
278
|
-
var
|
|
301
|
+
var minus = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l]]);
|
|
302
|
+
var __glob_4_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
279
303
|
__proto__: null,
|
|
280
|
-
"default":
|
|
304
|
+
"default": minus
|
|
281
305
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
282
306
|
const _sfc_main$l = {};
|
|
283
307
|
const _hoisted_1$j = {
|
|
@@ -299,7 +323,7 @@ function _sfc_render$k(_ctx, _cache) {
|
|
|
299
323
|
return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$c);
|
|
300
324
|
}
|
|
301
325
|
var plus = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k]]);
|
|
302
|
-
var
|
|
326
|
+
var __glob_4_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
303
327
|
__proto__: null,
|
|
304
328
|
"default": plus
|
|
305
329
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -323,7 +347,7 @@ function _sfc_render$j(_ctx, _cache) {
|
|
|
323
347
|
return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$b);
|
|
324
348
|
}
|
|
325
349
|
var search = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j]]);
|
|
326
|
-
var
|
|
350
|
+
var __glob_4_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
327
351
|
__proto__: null,
|
|
328
352
|
"default": search
|
|
329
353
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -350,7 +374,7 @@ function _sfc_render$i(_ctx, _cache) {
|
|
|
350
374
|
return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$a);
|
|
351
375
|
}
|
|
352
376
|
var spinner = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-683816b2"]]);
|
|
353
|
-
var
|
|
377
|
+
var __glob_4_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
354
378
|
__proto__: null,
|
|
355
379
|
"default": spinner
|
|
356
380
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -374,7 +398,7 @@ function _sfc_render$h(_ctx, _cache) {
|
|
|
374
398
|
return openBlock(), createElementBlock("svg", _hoisted_1$g, _hoisted_3$9);
|
|
375
399
|
}
|
|
376
400
|
var trash = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h]]);
|
|
377
|
-
var
|
|
401
|
+
var __glob_4_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
378
402
|
__proto__: null,
|
|
379
403
|
"default": trash
|
|
380
404
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -399,7 +423,7 @@ function _sfc_render$g(_ctx, _cache) {
|
|
|
399
423
|
return openBlock(), createElementBlock("svg", _hoisted_1$f, _hoisted_3$8);
|
|
400
424
|
}
|
|
401
425
|
var x = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]]);
|
|
402
|
-
var
|
|
426
|
+
var __glob_4_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
403
427
|
__proto__: null,
|
|
404
428
|
"default": x
|
|
405
429
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -422,7 +446,7 @@ function resolveIconComponent(name) {
|
|
|
422
446
|
}
|
|
423
447
|
return component;
|
|
424
448
|
}
|
|
425
|
-
const icons = { "../icons/arrow-narrow-down.vue": __glob_4_0, "../icons/arrow-narrow-left.vue": __glob_4_1, "../icons/arrow-narrow-right.vue": __glob_4_2, "../icons/arrow-narrow-up.vue": __glob_4_3, "../icons/check-circle.vue": __glob_4_4, "../icons/check.vue": __glob_4_5, "../icons/chevron-left.vue": __glob_4_6, "../icons/chevron-right.vue": __glob_4_7, "../icons/exclamation-circle.vue": __glob_4_8, "../icons/exclamation.vue": __glob_4_9, "../icons/
|
|
449
|
+
const icons = { "../icons/arrow-narrow-down.vue": __glob_4_0, "../icons/arrow-narrow-left.vue": __glob_4_1, "../icons/arrow-narrow-right.vue": __glob_4_2, "../icons/arrow-narrow-up.vue": __glob_4_3, "../icons/check-circle.vue": __glob_4_4, "../icons/check.vue": __glob_4_5, "../icons/chevron-left.vue": __glob_4_6, "../icons/chevron-right.vue": __glob_4_7, "../icons/exclamation-circle.vue": __glob_4_8, "../icons/exclamation.vue": __glob_4_9, "../icons/minus.vue": __glob_4_10, "../icons/plus.vue": __glob_4_11, "../icons/search.vue": __glob_4_12, "../icons/spinner.vue": __glob_4_13, "../icons/trash.vue": __glob_4_14, "../icons/x.vue": __glob_4_15 };
|
|
426
450
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
427
451
|
name: "Icon",
|
|
428
452
|
props: {
|
|
@@ -827,7 +851,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
827
851
|
_ctx.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(_ctx.errorMessage), 1)) : createCommentVNode("", true)
|
|
828
852
|
], 2);
|
|
829
853
|
}
|
|
830
|
-
var FormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-
|
|
854
|
+
var FormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-2a74e30e"]]);
|
|
831
855
|
var FormFields_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
832
856
|
const _sfc_main$a = defineComponent({
|
|
833
857
|
components: {
|
|
@@ -1181,7 +1205,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
1181
1205
|
emits: ["update:modelValue"],
|
|
1182
1206
|
data() {
|
|
1183
1207
|
return {
|
|
1184
|
-
inputName: iterator++
|
|
1208
|
+
inputName: "vuiii-radio-input-" + iterator++
|
|
1185
1209
|
};
|
|
1186
1210
|
},
|
|
1187
1211
|
computed: {
|
|
@@ -1195,7 +1219,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
1195
1219
|
}
|
|
1196
1220
|
});
|
|
1197
1221
|
const _hoisted_1$5 = { class: "Radio" };
|
|
1198
|
-
const _hoisted_2$4 = ["checked", "required", "name", "disabled"];
|
|
1222
|
+
const _hoisted_2$4 = ["value", "checked", "required", "name", "disabled"];
|
|
1199
1223
|
const _hoisted_3$2 = { class: "Radio__label" };
|
|
1200
1224
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1201
1225
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
@@ -1205,6 +1229,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1205
1229
|
class: normalizeClass(["Radio__option", { "Radio--disabled": option.disabled }])
|
|
1206
1230
|
}, [
|
|
1207
1231
|
createElementVNode("input", mergeProps(_ctx.normalizedAttrs, {
|
|
1232
|
+
value: option.value,
|
|
1208
1233
|
checked: _ctx.modelValue === option.value,
|
|
1209
1234
|
class: "Radio__input vuiii-input",
|
|
1210
1235
|
required: _ctx.required,
|
|
@@ -1221,7 +1246,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1221
1246
|
}), 128))
|
|
1222
1247
|
]);
|
|
1223
1248
|
}
|
|
1224
|
-
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
1249
|
+
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0251715f"]]);
|
|
1225
1250
|
const sizes = ["normal", "small"];
|
|
1226
1251
|
const _sfc_main$5 = defineComponent({
|
|
1227
1252
|
mixins: [transformInputAttrs],
|
package/dist/vuiii.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(a=typeof globalThis!="undefined"?globalThis:a||self,e(a.vui={},a.Vue,a.VueRouter))})(this,function(a,e,f){"use strict";var yn=Object.defineProperty,Bn=Object.defineProperties;var Sn=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var T=(a,e,f)=>e in a?yn(a,e,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[e]=f,$=(a,e)=>{for(var f in e||(e={}))P.call(e,f)&&T(a,f,e[f]);if(V)for(var f of V(e))R.call(e,f)&&T(a,f,e[f]);return a},B=(a,e)=>Bn(a,Sn(e));var q=(a,e)=>{var f={};for(var k in a)P.call(a,k)&&e.indexOf(k)<0&&(f[k]=a[k]);if(a!=null&&V)for(var k of V(a))e.indexOf(k)<0&&R.call(a,k)&&(f[k]=a[k]);return f};var k="",p=(t,o)=>{const n=t.__vccOpts||t;for(const[s,i]of o)n[s]=i;return n};const K={},G={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},v=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16 17l-4 4m0 0l-4-4m4 4V3"},null,-1)];function U(t,o){return e.openBlock(),e.createElementBlock("svg",G,v)}var H=p(K,[["render",U]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}));const X={},Y={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},J=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 16l-4-4m0 0l4-4m-4 4h18"},null,-1)];function Q(t,o){return e.openBlock(),e.createElementBlock("svg",Y,J)}var Z=p(X,[["render",Q]]),x=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));const ee={},te={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},oe=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"},null,-1)];function ne(t,o){return e.openBlock(),e.createElementBlock("svg",te,oe)}var re=p(ee,[["render",ne]]),le=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));const se={},ae={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ie=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7l4-4m0 0l4 4m-4-4v18"},null,-1)];function ce(t,o){return e.openBlock(),e.createElementBlock("svg",ae,ie)}var de=p(se,[["render",ce]]),_e=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));const pe={},me={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ue=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function fe(t,o){return e.openBlock(),e.createElementBlock("svg",me,ue)}var he=p(pe,[["render",fe]]),ke=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));const be={},ge={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},$e=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)];function ye(t,o){return e.openBlock(),e.createElementBlock("svg",ge,$e)}var Be=p(be,[["render",ye]]),Se=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));const we={},Ce={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Ve=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"},null,-1)];function Ee(t,o){return e.openBlock(),e.createElementBlock("svg",Ce,Ve)}var Me=p(we,[["render",Ee]]),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Me},Symbol.toStringTag,{value:"Module"}));const Ie={},je={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ze=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"},null,-1)];function Fe(t,o){return e.openBlock(),e.createElementBlock("svg",je,ze)}var Oe=p(Ie,[["render",Fe]]),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));const Ae={},De={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Te=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function Pe(t,o){return e.openBlock(),e.createElementBlock("svg",De,Te)}var Re=p(Ae,[["render",Pe]]),qe=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"}));const Ke={},Ge={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ve=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1)];function Ue(t,o){return e.openBlock(),e.createElementBlock("svg",Ge,ve)}var He=p(Ke,[["render",Ue]]),We=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"}));const Xe={},Ye={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Je=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"},null,-1)];function Qe(t,o){return e.openBlock(),e.createElementBlock("svg",Ye,Je)}var Ze=p(Xe,[["render",Qe]]),xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ze},Symbol.toStringTag,{value:"Module"}));const et={},tt={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ot=[e.createElementVNode("path",{d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1)];function nt(t,o){return e.openBlock(),e.createElementBlock("svg",tt,ot)}var rt=p(et,[["render",nt]]),lt=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),An="";const st={},at=t=>(e.pushScopeId("data-v-683816b2"),t=t(),e.popScopeId(),t),it={class:"IconSpinner",fill:"none",stroke:"currentColor",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},ct=[at(()=>e.createElementVNode("path",{d:"M23.5 12.5c0 6.1-4.9 11-11 11s-11-4.9-11-11 4.9-11 11-11","shape-rendering":"geometricPrecision",style:{"stroke-width":"2","stroke-miterlimit":"10",stroke:"currentColor",fill:"none"},"vector-effect":"non-scaling-stroke"},null,-1))];function dt(t,o){return e.openBlock(),e.createElementBlock("svg",it,ct)}var _t=p(st,[["render",dt],["__scopeId","data-v-683816b2"]]),pt=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));const mt={},ut={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ft=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},null,-1)];function ht(t,o){return e.openBlock(),e.createElementBlock("svg",ut,ft)}var kt=p(mt,[["render",ht]]),bt=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"}));const gt={},$t={"aria-hidden":"true",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},yt=[e.createElementVNode("path",{d:"M6 18L18 6M6 6l12 12","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1)];function Bt(t,o){return e.openBlock(),e.createElementBlock("svg",$t,yt)}var St=p(gt,[["render",Bt]]),wt=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"}));function Ct(t,o){var n;return(n=Object.entries(t).map(([s,i])=>({path:s,source:i})).find(s=>s.path.endsWith(`/${o}`)))==null?void 0:n.source.default}var Rn="";let E;function Vt(t){E=t}function Et(t){let o;return E&&(o=E(t)),o||(o=Ct(Mt,`${t}.vue`)),o}const Mt={"../icons/arrow-narrow-down.vue":W,"../icons/arrow-narrow-left.vue":x,"../icons/arrow-narrow-right.vue":le,"../icons/arrow-narrow-up.vue":_e,"../icons/check-circle.vue":ke,"../icons/check.vue":Se,"../icons/chevron-left.vue":Ne,"../icons/chevron-right.vue":Le,"../icons/exclamation-circle.vue":qe,"../icons/exclamation.vue":We,"../icons/plus.vue":xe,"../icons/search.vue":lt,"../icons/spinner.vue":pt,"../icons/trash.vue":bt,"../icons/x.vue":wt};var y=p(e.defineComponent({name:"Icon",props:{name:{type:String,required:!0}},setup(t){const o=t,n=e.shallowRef(void 0);return e.watch(()=>o.name,()=>n.value=Et(o.name),{immediate:!0}),(s,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),{class:"Icon"}))}}),[["__scopeId","data-v-cc79c81e"]]),Kn="";const Nt=e.defineComponent({components:{Icon:y},props:{breadcrumbs:{type:Object,default:()=>({})}}}),It={class:"Breadcrumbs"};function jt(t,o,n,s,i,m){const r=e.resolveComponent("router-link"),l=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",It,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.breadcrumbs,(c,_,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"Breadcrumbs__breadcrumb"},[e.createVNode(r,{to:c,class:"Breadcrumbs__link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["to"]),e.createVNode(l,{name:"chevron-right",class:"Breadcrumbs__arrow"})]))),128))])}var zt=p(Nt,[["render",jt],["__scopeId","data-v-357000f6"]]),Gn="";const Ft=["normal","small"],Ot=["default","primary","secondary","danger"];var vn="";const Lt=e.defineComponent({components:{Icon:y},inheritAttrs:!1,props:{size:{type:String,default:"normal",validator:t=>Ft.includes(t)},variant:{type:String,default:"default",validator:t=>Ot.includes(t)},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},label:{type:String,default:""},active:Boolean,loading:Boolean,block:Boolean,disabled:Boolean},computed:{component(){return this.$attrs.to?"router-link":this.$attrs.href?"a":"button"},classModifiers(){const t=[this.size,this.variant];return this.active&&t.push("active"),this.loading&&t.push("loading"),this.disabled&&t.push("disabled"),t.map(o=>`vuiii-button--${o}`)}}}),At={key:1};function Dt(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),e.mergeProps({class:["Button vuiii-button",[t.classModifiers,{"Button--block":t.block},{"vuiii-button--disabled":t.$attrs.disabled}]]},t.$attrs,{type:t.component==="button"?"button":t.$attrs.type}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix",{},()=>[t.prefixIcon&&!t.loading?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["Button__icon Button__icon--prefix",[`Button__icon--${t.size}`]]),name:t.prefixIcon},null,8,["class","name"])):e.createCommentVNode("",!0)],!0),t.loading?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["Button__icon Button__icon--prefix",[`Button__icon--${t.size}`]]),name:"spinner"},null,8,["class"])):e.createCommentVNode("",!0),t.$slots.default||t.label?(e.openBlock(),e.createElementBlock("span",At,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"suffix",{},()=>[t.suffixIcon?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["Button__icon Button__icon--suffix",[`Button__icon--${t.size}`]]),name:t.suffixIcon},null,8,["class","name"])):e.createCommentVNode("",!0)],!0)]),_:3},16,["class","type"])}var M=p(Lt,[["render",Dt],["__scopeId","data-v-24bf0302"]]),Un="";const Tt=t=>t.target.getAttribute("type")==="number"?t.target.valueAsNumber:t.target.getAttribute("type")==="checkbox"?t.target.checked:t.target.value,S=e.defineComponent({emits:["update:modelValue"],computed:{normalizedAttrs(){const n=this.$attrs,{class:t}=n,o=q(n,["class"]);return B($({},o),{onInput:s=>this.$emit("update:modelValue",Tt(s))})}}});var Hn="";const Pt=e.defineComponent({mixins:[S],inheritAttrs:!1,props:{modelValue:Boolean,required:Boolean,switch:Boolean,caption:{type:String,default:""}}}),Rt=t=>(e.pushScopeId("data-v-18ef5cd1"),t=t(),e.popScopeId(),t),qt=["checked","required"],Kt=[Rt(()=>e.createElementVNode("div",{class:"Checkbox__switchDot"},null,-1))],Gt={key:1,class:"Checkbox__label"},vt={key:0,class:"Checkbox__required"};function Ut(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["Checkbox",[t.$attrs.class,{"Checkbox--disabled":t.$attrs.disabled}]])},[e.withDirectives(e.createElementVNode("input",e.mergeProps(t.normalizedAttrs,{checked:t.modelValue,class:"Checkbox__input vuiii-input",required:t.required,type:"checkbox"}),null,16,qt),[[e.vShow,!t.$props.switch]]),t.$props.switch?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["Checkbox__switch",{"Checkbox__switch--active":t.modelValue}])},Kt,2)):e.createCommentVNode("",!0),t.$slots.default||t.caption?(e.openBlock(),e.createElementBlock("div",Gt,[t.required?(e.openBlock(),e.createElementBlock("span",vt,"*")):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.caption),1)],!0)])):e.createCommentVNode("",!0)],2)}var j=p(Pt,[["render",Ut],["__scopeId","data-v-18ef5cd1"]]);function C(t,o){return typeof o=="function"?o(t):o||o===0?t[o]:t}function N(t,o={}){return Array.isArray(t)?t.map(n=>({value:C(n,o.value),label:C(n,o.label),description:o.description&&C(n,o.description),disabled:o.disabled&&C(n,o.disabled)})):Object.entries(t||{}).reduce((n,[s,i])=>n.concat({value:s,label:i}),[])}var Xn="";const Ht=e.defineComponent({components:{Checkbox:j},props:{modelValue:{type:Array,default:()=>[]},options:{type:[Array,Object],required:!0},optionLabelKey:{type:[Function,String,Number],default:void 0},optionValueKey:{type:[Function,String,Number],default:void 0},optionDisabledKey:{type:[Function,String,Number],default:void 0}},emits:["update:modelValue"],computed:{normalizedOptions(){return N(this.options,{value:this.optionValueKey,label:this.optionLabelKey,disabled:this.optionDisabledKey})},checkedValues(){return this.modelValue.reduce((t,o)=>B($({},t),{[o]:!0}),{})}},methods:{toggleCheckedValue(t){const o=B($({},this.checkedValues),{[t]:!this.checkedValues[t]}),n=Object.entries(o).filter(([s,i])=>i).map(([s])=>s);this.$emit("update:modelValue",n)}}}),Wt={class:"CheckboxGroup"};function Xt(t,o,n,s,i,m){const r=e.resolveComponent("Checkbox");return e.openBlock(),e.createElementBlock("div",Wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedOptions,l=>(e.openBlock(),e.createElementBlock("div",{key:l.value},[e.createVNode(r,{disabled:l.disabled,"model-value":t.checkedValues[l.value],caption:l.label,"onUpdate:modelValue":c=>t.toggleCheckedValue(l.value)},null,8,["disabled","model-value","caption","onUpdate:modelValue"])]))),128))])}var Yt=p(Ht,[["render",Xt],["__scopeId","data-v-1a9cd604"]]),Yn="";const Jt=e.defineComponent({props:{label:{type:String,default:""},error:{type:[String,Array,Boolean],default:""},description:{type:String,default:""},hint:{type:String,default:""},required:Boolean},computed:{errorMessage(){return Array.isArray(this.error)?this.error.filter(Boolean).join(" "):typeof this.error=="string"?this.error:""}}}),Qt={key:0,class:"FormGroup__header"},Zt={class:"FormGroup__label"},xt={key:0,class:"FormGroup__required"},eo={key:1,class:"FormGroup__description"},to={key:2,class:"FormGroup__hint"},oo={key:3,class:"FormGroup__error"};function no(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["FormGroup",{"FormGroup--invalid":t.error}])},[t.label?(e.openBlock(),e.createElementBlock("div",Qt,[e.createElementVNode("label",Zt,e.toDisplayString(t.label),1),t.required?(e.openBlock(),e.createElementBlock("div",xt,"*")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.$slots.description||t.description?(e.openBlock(),e.createElementBlock("div",eo,[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},void 0,!0),t.$slots.hint||t.hint?(e.openBlock(),e.createElementBlock("div",to,[e.renderSlot(t.$slots,"hint",{},()=>[e.createTextVNode(e.toDisplayString(t.hint),1)],!0)])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("div",oo,e.toDisplayString(t.errorMessage),1)):e.createCommentVNode("",!0)],2)}var z=p(Jt,[["render",no],["__scopeId","data-v-404fde51"]]),Jn="";const ro=e.defineComponent({components:{FormGroup:z},props:{fields:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},errors:{type:Object,default:()=>({})}},emits:["update:modelValue"],methods:{getFieldValue(t){var n;return(((n=this.fields[t].value)==null?void 0:n.getter)||(s=>s[t]))(this.modelValue)},setFieldValue(t,o){var i;const s=(((i=this.fields[t].value)==null?void 0:i.setter)||((m,r)=>B($({},r),{[t]:m})))(o,this.modelValue);this.$emit("update:modelValue",s)}}}),lo={class:"FormFields"};function so(t,o,n,s,i,m){const r=e.resolveComponent("FormGroup");return e.openBlock(),e.createElementBlock("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,(l,c)=>{var _;return e.openBlock(),e.createBlock(r,{key:c,label:l.label,description:l.description,hint:l.hint,required:l.required,error:(_=t.errors)==null?void 0:_[c]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component),e.mergeProps({"model-value":t.getFieldValue(String(c))},l.props,{"onUpdate:modelValue":u=>t.setFieldValue(String(c),u)}),null,16,["model-value","onUpdate:modelValue"]))]),_:2},1032,["label","description","hint","required","error"])}),128))])}var F=p(ro,[["render",so],["__scopeId","data-v-7f82ddf3"]]),Qn="";const ao=e.defineComponent({components:{Button:M,FormFields:F,Icon:y},props:{structure:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>{}},errors:{type:Object,default:()=>({})},submit:{type:Function,default:void 0},submitLabel:{type:String,default:"Submit"},cancel:{type:[Function,Object],default:void 0},cancelLabel:{type:String,default:"Cancel"},submitting:Boolean},emits:["update:modelValue","change","submit","cancel"],methods:{handleSubmit(){var t;(t=this.submit)==null||t.call(this,this.modelValue)},handleCancel(){var t;typeof this.cancel=="function"?(t=this.cancel)==null||t.call(this):this.cancel&&this.$router.push(this.cancel)}}}),io={class:"Form"},co=["disabled"],_o={key:0,class:"Form__title"},po={key:0,class:"Form__buttons"};function mo(t,o,n,s,i,m){const r=e.resolveComponent("FormFields"),l=e.resolveComponent("Button"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",io,[t.modelValue?(e.openBlock(),e.createElementBlock("form",{key:0,disabled:t.submitting,onSubmit:o[3]||(o[3]=e.withModifiers(_=>{var u;return(u=t.handleSubmit)==null?void 0:u.call(t)},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.structure,(_,u)=>(e.openBlock(),e.createElementBlock("div",{key:u},[_.title?(e.openBlock(),e.createElementBlock("div",_o,e.toDisplayString(_.title),1)):e.createCommentVNode("",!0),e.createVNode(r,{fields:_.fields,"model-value":t.modelValue,errors:t.errors,"onUpdate:modelValue":o[0]||(o[0]=d=>t.$emit("update:modelValue",d)),onChange:o[1]||(o[1]=d=>t.$emit("change",d))},null,8,["fields","model-value","errors"])]))),128)),e.renderSlot(t.$slots,"buttons",e.normalizeProps(e.guardReactiveProps({cancel:t.cancel,submit:t.submit})),()=>[t.submit||t.cancel?(e.openBlock(),e.createElementBlock("div",po,[t.submit?(e.openBlock(),e.createBlock(l,{key:0,variant:"primary",type:"submit",label:t.submitLabel,disabled:t.submitting,"prefix-icon":t.submitting?"spinner":void 0},null,8,["label","disabled","prefix-icon"])):e.createCommentVNode("",!0),t.cancel?(e.openBlock(),e.createBlock(l,{key:1,label:t.cancelLabel,disabled:t.submitting,onClick:o[2]||(o[2]=_=>t.handleCancel())},null,8,["label","disabled"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],!0)],40,co)):(e.openBlock(),e.createBlock(c,{key:1,name:"spinner"}))])}var uo=p(ao,[["render",mo],["__scopeId","data-v-4a2acd7e"]]),Zn="";const fo=["normal","small"],ho=e.defineComponent({components:{Icon:y},mixins:[S],inheritAttrs:!1,props:{modelValue:{type:[Number,String],default:""},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},size:{type:String,default:"normal",validator:t=>fo.includes(t)},invalid:Boolean},computed:{hasPrefix(){return Boolean(this.$slots.prefix||this.prefixIcon)},hasSuffix(){return Boolean(this.$slots.suffix||this.suffixIcon)}}}),ko={class:"Input__icon Input__icon--left"},bo=["aria-label","value"],go={class:"Input__icon Input__icon--right"};function $o(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["Input vuiii-input",[t.$attrs.class,{"vuiii-input--invalid":t.invalid,"vuiii-input--disabled":t.$attrs.disabled,"vuiii-input--small":t.size==="small"}]]),onClick:o[0]||(o[0]=l=>t.$refs.input.focus())},[t.hasPrefix?e.renderSlot(t.$slots,"prefix",{key:0},()=>[e.createElementVNode("div",ko,[e.createVNode(r,{name:t.prefixIcon},null,8,["name"])])],!0):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({ref:"input","aria-label":t.$attrs.placeholder||"input"},t.normalizedAttrs,{class:"Input__nestedInput vuiii-input__nested",value:t.modelValue}),null,16,bo),t.hasSuffix?e.renderSlot(t.$slots,"suffix",{key:1},()=>[e.createElementVNode("div",go,[e.createVNode(r,{name:t.suffixIcon},null,8,["name"])])],!0):e.createCommentVNode("",!0)],2)}var yo=p(ho,[["render",$o],["__scopeId","data-v-6a6438b5"]]),xn="";const Bo=e.defineComponent({components:{Icon:y},props:{title:{type:String,default:""},width:{type:[Number,String],default:600},hideCloser:Boolean,scroll:Boolean,plain:Boolean},computed:{hasHeader(){return Boolean(this.$slots.header||this.title)},hasFooter(){return Boolean(this.$slots.footer)},computedStyle(){const t=this.width+(Number(this.width)?"px":"");return t&&t!=="auto"?{width:"100%",maxWidth:t}:{}}},methods:{close(){window.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape"}))}}}),So={key:1,class:"ModalLayout__header"},wo={class:"ModalLayout__title"},Co={class:"ModalLayout__body"},Vo={key:2,class:"ModalLayout__footer"};function Eo(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ModalLayout",{hasHeader:t.hasHeader,hasFooter:t.hasFooter,isScrollable:t.scroll,isPlain:t.plain}]),style:e.normalizeStyle(t.computedStyle)},[t.hideCloser?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"ModalLayout__close",onClick:o[0]||(o[0]=l=>t.close())},[e.createVNode(r,{name:"x",class:"ModalLayout__closeIcon"})])),t.hasHeader?(e.openBlock(),e.createElementBlock("div",So,[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("div",wo,e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Co,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),t.hasFooter?(e.openBlock(),e.createElementBlock("div",Vo,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6)}var O=p(Bo,[["render",Eo],["__scopeId","data-v-386279ac"]]),er="";let Mo=1;const No=e.defineComponent({mixins:[S],inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:void 0},options:{type:[Array,Object],required:!0},optionLabelKey:{type:[Function,String,Number],default:void 0},optionValueKey:{type:[Function,String,Number],default:void 0},optionDisabledKey:{type:[Function,String,Number],default:void 0},required:Boolean},emits:["update:modelValue"],data(){return{inputName:Mo++}},computed:{normalizedOptions(){return N(this.options,{value:this.optionValueKey,label:this.optionLabelKey,disabled:this.optionDisabledKey})}}}),Io={class:"Radio"},jo=["checked","required","name","disabled"],zo={class:"Radio__label"};function Fo(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("div",Io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedOptions,r=>(e.openBlock(),e.createElementBlock("label",{key:r.value,class:e.normalizeClass(["Radio__option",{"Radio--disabled":r.disabled}])},[e.createElementVNode("input",e.mergeProps(t.normalizedAttrs,{checked:t.modelValue===r.value,class:"Radio__input vuiii-input",required:t.required,type:"Radio",name:t.inputName,disabled:r.disabled}),null,16,jo),e.createElementVNode("div",zo,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(r.label),1)],!0)])],2))),128))])}var Oo=p(No,[["render",Fo],["__scopeId","data-v-70d84c36"]]);const Lo=["normal","small"],Ao=e.defineComponent({mixins:[S],props:{modelValue:{type:[String,Number,Object],default:""},options:{type:[Array,Object],required:!0},optionLabelKey:{type:[Function,String,Number],default:void 0},optionValueKey:{type:[Function,String,Number],default:void 0},optionDisabledKey:{type:[Function,String,Number],default:void 0},placeholder:{type:String,default:""},size:{type:String,default:"normal",validator:t=>Lo.includes(t)},allowEmpty:Boolean},computed:{normalizedOptions(){return N(this.options,{value:this.optionValueKey,label:this.optionLabelKey,disabled:this.optionDisabledKey})}}}),Do=["value"],To=["disabled"],Po=["disabled","value"];function Ro(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("select",e.mergeProps({class:"Select vuiii-input"},t.normalizedAttrs,{class:[t.$attrs.class,{"vuiii-input--small":t.size==="small"}],value:t.modelValue}),[t.placeholder?(e.openBlock(),e.createElementBlock("option",{key:0,disabled:!t.allowEmpty,selected:"",value:""},e.toDisplayString(t.placeholder),9,To)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedOptions,r=>(e.openBlock(),e.createElementBlock("option",{key:r.value,disabled:r.disabled,value:r.value},e.toDisplayString(r.label),9,Po))),128))],16,Do)}var qo=p(Ao,[["render",Ro]]),tr="",or="";const Ko=e.defineComponent({props:{items:{type:Array,default:()=>[]},columns:{type:Object,default:null},rowClass:{type:[String,Function],default:null}},computed:{normalizedColumns(){return Object.entries(this.columns).reduce((t,[o,n])=>B($({},t),{[o]:typeof n=="string"?{label:n}:n}),{})}},methods:{formatValue(t,o){const n=this.normalizedColumns[o],s=typeof n.value=="function"?n.value(t):t[o];return n.format?n.format(s):s},resolveRowClass(t){return typeof this.rowClass=="function"?this.rowClass(t):this.rowClass}}}),Go={class:"vuiii-table vuiii-table--hover"},vo=["width"];function Uo(t,o,n,s,i,m){const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("table",Go,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedColumns,(l,c)=>(e.openBlock(),e.createElementBlock("th",{key:c,style:e.normalizeStyle({textAlign:l.align||"left"}),width:l.width},e.toDisplayString(l.label),13,vo))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c,class:e.normalizeClass(t.resolveRowClass(l))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedColumns,(_,u)=>(e.openBlock(),e.createElementBlock("td",{key:u,style:e.normalizeStyle({textAlign:_.align||"left"})},[e.renderSlot(t.$slots,u,e.normalizeProps(e.guardReactiveProps({item:l})),()=>[_.href?(e.openBlock(),e.createBlock(r,{key:0,class:"vuiii-link",to:_.href(l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.formatValue(l,u)),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.formatValue(l,u)),1)],64))])],4))),128))],2))),128))])])}var Ho=p(Ko,[["render",Uo]]);const Wo=e.defineComponent({mixins:[S],props:{modelValue:{type:String,default:""}}});function Xo(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("textarea",e.mergeProps({class:"Textarea vuiii-input"},t.normalizedAttrs),null,16)}var Yo=p(Wo,[["render",Xo]]),nr="";const Jo=e.defineComponent({components:{ModalLayout:O,Button:M},props:{title:{type:String,default:""},message:{type:String,default:""},buttons:{type:Array,default:()=>[]}},emits:["close"]}),Qo={class:"ModalLayoutDialog__buttons"};function Zo(t,o,n,s,i,m){var c;const r=e.resolveComponent("Button"),l=e.resolveComponent("ModalLayout");return e.openBlock(),e.createBlock(l,{class:"ModalLayoutDialog",width:"480",title:t.title},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["ModalLayoutDialog__message",{"ModalLayoutDialog__message--offset":!t.title}])},e.toDisplayString(t.message),3)]),_:2},[(c=t.buttons)!=null&&c.length?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(_,u)=>(e.openBlock(),e.createElementBlock("span",{key:u,class:"ModalLayoutDialog__buttonWrapper"},[e.createVNode(r,{type:"button",variant:_.variant,"prefix-icon":_.icon,autofocus:"",onClick:d=>t.$emit("close",_.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["variant","prefix-icon","onClick"])]))),128))])])}:void 0]),1032,["title"])}var xo=p(Jo,[["render",Zo],["__scopeId","data-v-612c6cb9"]]),rr="";const en=e.defineComponent({props:{modals:{type:Array,default:()=>[]}},emits:["closeModal"],data(){return{modalInstances:{},registerReference(t){return o=>this.modalInstances[t]=o}}},computed:{activeModal(){return this.modals.length?this.modals[this.modals.length-1]:null}},mounted(){window.addEventListener("keydown",this.closeActiveModalByEscapeKey)},beforeUnmount(){window.removeEventListener("keydown",this.closeActiveModalByEscapeKey)},methods:{closeModal(t,o){var i;const n=()=>{this.$emit("closeModal",{modal:t,result:o})},s=this.modalInstances[t.id].$el;(i=s.$attrs)!=null&&i.onBeforeClose?s.$attrs.onBeforeClose(n):n()},closeActiveModal(){this.activeModal&&this.closeModal(this.activeModal)},closeActiveModalByEscapeKey(t){this.activeModal&&t.key==="Escape"&&!t.defaultPrevented&&(t.preventDefault(),this.closeActiveModal())},closeModalByBackdropClick(t,o){t.target===t.currentTarget&&this.closeModal(o)}}}),tn={class:"ModalStack"},on={key:0,class:"ModalStack__backdrop"},nn=["onClick"];function rn(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("div",tn,[e.createVNode(e.Transition,{name:"ModalStack__backdrop"},{default:e.withCtx(()=>[t.modals.length?(e.openBlock(),e.createElementBlock("div",on)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{name:"ModalStack__modal"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modals,r=>{var l;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"ModalStack__modalWrapper",onClick:c=>t.closeModalByBackdropClick(c,r)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.component),e.mergeProps(r.props,{ref_for:!0,ref:t.registerReference(r.id),class:["ModalStack__modal",{isActive:((l=t.activeModal)==null?void 0:l.id)===r.id}],onClose:c=>t.closeModal(r,c)}),null,16,["class","onClose"]))],8,nn)}),128))]),_:1})])}var ln=p(en,[["render",rn],["__scopeId","data-v-2f4ee2c2"]]);const sn={cancelLabel:"Cancel",confirmLabel:"OK"},an=(t,o={})=>{let n=1;o=$($({},sn),o);const s=e.reactive({modals:[]}),i=(d,b)=>{var h;s.modals=s.modals.filter(({id:g})=>g!==d.id),d.resolve(b),(h=d.focusElement)==null||h.focus()},m=e.createApp({parent:t,data(){return s},render(){return e.h(ln,{modals:s.modals,onCloseModal:({modal:d,result:b})=>i(d,b)})}}),r=document.createElement("div");document.body.appendChild(r),m.mount(r);const l=(d,b)=>{var g;const h=document.activeElement;return(g=h.blur)==null||g.call(h),new Promise(w=>{s.modals.push({id:n++,component:d,props:b,resolve:w,focusElement:h})})},c=d=>l(xo,d),_=d=>{typeof d=="string"&&(d={message:d});const{title:b,message:h,confirmVariant:g,confirmLabel:w=o.confirmLabel,confirmIcon:I}=d;return c({title:b,message:h,buttons:[{variant:g||"primary",label:w||"",icon:I}]})},u=d=>{typeof d=="string"&&(d={message:d});const{title:b,message:h,cancelLabel:g=o.cancelLabel,cancelVariant:w,cancelIcon:I,confirmLabel:bn=o.confirmLabel,confirmVariant:gn,confirmIcon:$n}=d;return c({title:b,message:h,buttons:[{variant:w,label:g||"",icon:I,value:!1},{variant:gn||"primary",label:bn||"",icon:$n,value:!0}]})};t.config.globalProperties.$modal={open:l,dialog:c,alert:_,confirm:u}};function L(){var t;return(t=e.getCurrentInstance())==null?void 0:t.appContext.config.globalProperties.$modal}var lr="";const cn=e.defineComponent({components:{Icon:y},props:{messages:{type:Array,default:()=>[]}},emits:["remove-message"],computed:{messagesInReverse(){return[...this.messages].reverse()}}}),dn={class:"Snackbar"},_n=["onClick"];function pn(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(e.TransitionGroup,{name:"Snackbar__transition"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messagesInReverse,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"Snackbar__message"},[e.createElementVNode("div",{class:"Snackbar__messageWrapper",style:e.normalizeStyle({transform:`translateY(-${100*c}%)`})},[e.createElementVNode("div",{class:e.normalizeClass(["Snackbar__messageBlock",`Snackbar__messageBlock--${l.type}`])},[e.createElementVNode("div",null,e.toDisplayString(l.text),1),e.createElementVNode("div",{class:"Snackbar__messageClose",onClick:_=>t.$emit("remove-message",l.id)},[e.createVNode(r,{class:"Snackbar__messageCloseIcon",name:"x"})],8,_n)],2)],4)]))),128))]),_:1})])}var mn=p(cn,[["render",pn],["__scopeId","data-v-272e7ab3"]]);const un=1e4,fn=5,hn=t=>{let o=1;const n=e.reactive({messages:[]}),s=l=>{n.messages=n.messages.filter(({id:c})=>c!==l)},i=e.createApp({parent:t,data(){return n},render(){return e.h(mn,{messages:this.messages,onRemoveMessage:s})}}),m=document.createElement("div");document.body.appendChild(m),i.mount(m);const r=(l,c="success",_=un)=>{const u=o++;n.messages.push({text:l,type:c,id:u}),n.messages.length>fn&&n.messages.shift(),_>0&&setTimeout(()=>s(u),_)};t.config.globalProperties.$snackbar={success:l=>r(l,"success"),error:l=>r(l,"error",0)}};function A(){var t;return(t=e.getCurrentInstance())==null?void 0:t.appContext.config.globalProperties.$snackbar}function D(t,o={}){const n=A(),s=L(),i=f.useRouter(),m=e.ref(!1),r=e.ref(),l=e.ref(Object.freeze({})),c=async _=>{var u;if(!(o.confirm&&s&&!await s.confirm(typeof o.confirm=="function"?o.confirm(_):o.confirm))){if(o.validator){const d=await o.validator(_);if(!d||typeof d=="object"&&(l.value=(d==null?void 0:d.errors)||{},!(d!=null&&d.isValid)))return}m.value=!0;try{r.value=await t(_)}catch(d){if(o.errorMessage&&n&&n.error(typeof o.errorMessage=="function"?o.errorMessage(d,_):o.errorMessage||d.message),m.value=!1,o.onError&&o.onError({error:d,data:_,router:i,snackbar:n}))return;throw d}return m.value=!1,o.successMessage&&n&&n.success(typeof o.successMessage=="function"?o.successMessage(r.value,_):o.successMessage),(u=o.onSuccess)==null||u.call(o,{result:r.value,data:_,router:i,snackbar:n}),o.redirectOnSuccess&&i.push(typeof o.redirectOnSuccess=="function"?o.redirectOnSuccess(r.value,_):o.redirectOnSuccess),r.value}};return o.immediate&&e.onMounted(c),{submit:c,errors:l,result:r,isSubmitting:m}}const kn=(t,o={})=>{const{isSubmitting:n,submit:s,result:i}=D(t,{onSuccess:({router:m,data:r,result:l})=>{var c;return(c=o.onSuccess)==null?void 0:c.call(o,{data:l,params:r,router:m})},onError:({router:m,error:r,data:l})=>{var c;return(c=o.onError)==null?void 0:c.call(o,{error:r,params:l,router:m})},successMessage:o.successMessage,errorMessage:o.errorMessage,immediate:o.immediate});return{load:s,isLoading:n,data:i}};a.Breadcrumbs=zt,a.Button=M,a.Checkbox=j,a.CheckboxGroup=Yt,a.Form=uo,a.FormFields=F,a.FormGroup=z,a.Icon=y,a.Input=yo,a.ModalLayout=O,a.Radio=Oo,a.Select=qo,a.Table=Ho,a.Textarea=Yo,a.modal=an,a.registerCustomIconResolver=Vt,a.snackbar=hn,a.useLoadData=kn,a.useModal=L,a.useSnackbar=A,a.useSubmitAction=D,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(a,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(a=typeof globalThis!="undefined"?globalThis:a||self,e(a.vui={},a.Vue,a.VueRouter))})(this,function(a,e,f){"use strict";var En=Object.defineProperty,Mn=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var T=(a,e,f)=>e in a?En(a,e,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[e]=f,$=(a,e)=>{for(var f in e||(e={}))P.call(e,f)&&T(a,f,e[f]);if(V)for(var f of V(e))v.call(e,f)&&T(a,f,e[f]);return a},B=(a,e)=>Mn(a,Nn(e));var R=(a,e)=>{var f={};for(var k in a)P.call(a,k)&&e.indexOf(k)<0&&(f[k]=a[k]);if(a!=null&&V)for(var k of V(a))e.indexOf(k)<0&&v.call(a,k)&&(f[k]=a[k]);return f};var k="",p=(t,o)=>{const n=t.__vccOpts||t;for(const[s,i]of o)n[s]=i;return n};const q={},K={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},G=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16 17l-4 4m0 0l-4-4m4 4V3"},null,-1)];function U(t,o){return e.openBlock(),e.createElementBlock("svg",K,G)}var H=p(q,[["render",U]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}));const X={},Y={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},J=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 16l-4-4m0 0l4-4m-4 4h18"},null,-1)];function Q(t,o){return e.openBlock(),e.createElementBlock("svg",Y,J)}var Z=p(X,[["render",Q]]),x=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));const ee={},te={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},oe=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"},null,-1)];function ne(t,o){return e.openBlock(),e.createElementBlock("svg",te,oe)}var re=p(ee,[["render",ne]]),le=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));const se={},ae={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ie=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7l4-4m0 0l4 4m-4-4v18"},null,-1)];function ce(t,o){return e.openBlock(),e.createElementBlock("svg",ae,ie)}var de=p(se,[["render",ce]]),_e=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));const pe={},me={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ue=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function fe(t,o){return e.openBlock(),e.createElementBlock("svg",me,ue)}var he=p(pe,[["render",fe]]),ke=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));const be={},ge={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},$e=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)];function ye(t,o){return e.openBlock(),e.createElementBlock("svg",ge,$e)}var Be=p(be,[["render",ye]]),we=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));const Se={},Ce={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Ve=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"},null,-1)];function Ee(t,o){return e.openBlock(),e.createElementBlock("svg",Ce,Ve)}var Me=p(Se,[["render",Ee]]),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Me},Symbol.toStringTag,{value:"Module"}));const Ie={},je={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ze=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"},null,-1)];function Fe(t,o){return e.openBlock(),e.createElementBlock("svg",je,ze)}var Oe=p(Ie,[["render",Fe]]),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));const Ae={},De={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Te=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function Pe(t,o){return e.openBlock(),e.createElementBlock("svg",De,Te)}var ve=p(Ae,[["render",Pe]]),Re=Object.freeze(Object.defineProperty({__proto__:null,default:ve},Symbol.toStringTag,{value:"Module"}));const qe={},Ke={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Ge=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1)];function Ue(t,o){return e.openBlock(),e.createElementBlock("svg",Ke,Ge)}var He=p(qe,[["render",Ue]]),We=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"}));const Xe={},Ye={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Je=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 12h-15"},null,-1)];function Qe(t,o){return e.openBlock(),e.createElementBlock("svg",Ye,Je)}var Ze=p(Xe,[["render",Qe]]),xe=Object.freeze(Object.defineProperty({__proto__:null,default:Ze},Symbol.toStringTag,{value:"Module"}));const et={},tt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},ot=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"},null,-1)];function nt(t,o){return e.openBlock(),e.createElementBlock("svg",tt,ot)}var rt=p(et,[["render",nt]]),lt=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"}));const st={},at={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},it=[e.createElementVNode("path",{d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1)];function ct(t,o){return e.openBlock(),e.createElementBlock("svg",at,it)}var dt=p(st,[["render",ct]]),_t=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),Kn="";const pt={},mt=t=>(e.pushScopeId("data-v-683816b2"),t=t(),e.popScopeId(),t),ut={class:"IconSpinner",fill:"none",stroke:"currentColor",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},ft=[mt(()=>e.createElementVNode("path",{d:"M23.5 12.5c0 6.1-4.9 11-11 11s-11-4.9-11-11 4.9-11 11-11","shape-rendering":"geometricPrecision",style:{"stroke-width":"2","stroke-miterlimit":"10",stroke:"currentColor",fill:"none"},"vector-effect":"non-scaling-stroke"},null,-1))];function ht(t,o){return e.openBlock(),e.createElementBlock("svg",ut,ft)}var kt=p(pt,[["render",ht],["__scopeId","data-v-683816b2"]]),bt=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"}));const gt={},$t={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},yt=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},null,-1)];function Bt(t,o){return e.openBlock(),e.createElementBlock("svg",$t,yt)}var wt=p(gt,[["render",Bt]]),St=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));const Ct={},Vt={"aria-hidden":"true",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Et=[e.createElementVNode("path",{d:"M6 18L18 6M6 6l12 12","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1)];function Mt(t,o){return e.openBlock(),e.createElementBlock("svg",Vt,Et)}var Nt=p(Ct,[["render",Mt]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:Nt},Symbol.toStringTag,{value:"Module"}));function jt(t,o){var n;return(n=Object.entries(t).map(([s,i])=>({path:s,source:i})).find(s=>s.path.endsWith(`/${o}`)))==null?void 0:n.source.default}var Wn="";let E;function zt(t){E=t}function Ft(t){let o;return E&&(o=E(t)),o||(o=jt(Ot,`${t}.vue`)),o}const Ot={"../icons/arrow-narrow-down.vue":W,"../icons/arrow-narrow-left.vue":x,"../icons/arrow-narrow-right.vue":le,"../icons/arrow-narrow-up.vue":_e,"../icons/check-circle.vue":ke,"../icons/check.vue":we,"../icons/chevron-left.vue":Ne,"../icons/chevron-right.vue":Le,"../icons/exclamation-circle.vue":Re,"../icons/exclamation.vue":We,"../icons/minus.vue":xe,"../icons/plus.vue":lt,"../icons/search.vue":_t,"../icons/spinner.vue":bt,"../icons/trash.vue":St,"../icons/x.vue":It};var y=p(e.defineComponent({name:"Icon",props:{name:{type:String,required:!0}},setup(t){const o=t,n=e.shallowRef(void 0);return e.watch(()=>o.name,()=>n.value=Ft(o.name),{immediate:!0}),(s,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),{class:"Icon"}))}}),[["__scopeId","data-v-cc79c81e"]]),Yn="";const Lt=e.defineComponent({components:{Icon:y},props:{breadcrumbs:{type:Object,default:()=>({})}}}),At={class:"Breadcrumbs"};function Dt(t,o,n,s,i,m){const r=e.resolveComponent("router-link"),l=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.breadcrumbs,(c,_,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"Breadcrumbs__breadcrumb"},[e.createVNode(r,{to:c,class:"Breadcrumbs__link"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["to"]),e.createVNode(l,{name:"chevron-right",class:"Breadcrumbs__arrow"})]))),128))])}var Tt=p(Lt,[["render",Dt],["__scopeId","data-v-357000f6"]]),Jn="";const Pt=["normal","small"],vt=["default","primary","secondary","danger"];var Qn="";const Rt=e.defineComponent({components:{Icon:y},inheritAttrs:!1,props:{size:{type:String,default:"normal",validator:t=>Pt.includes(t)},variant:{type:String,default:"default",validator:t=>vt.includes(t)},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},label:{type:String,default:""},active:Boolean,loading:Boolean,block:Boolean,disabled:Boolean},computed:{component(){return this.$attrs.to?"router-link":this.$attrs.href?"a":"button"},classModifiers(){const t=[this.size,this.variant];return this.active&&t.push("active"),this.loading&&t.push("loading"),this.disabled&&t.push("disabled"),t.map(o=>`vuiii-button--${o}`)}}}),qt={key:1};function Kt(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),e.mergeProps({class:["Button vuiii-button",[t.classModifiers,{"Button--block":t.block},{"vuiii-button--disabled":t.$attrs.disabled}]]},t.$attrs,{type:t.component==="button"?"button":t.$attrs.type}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix",{},()=>[t.prefixIcon&&!t.loading?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["Button__icon Button__icon--prefix",[`Button__icon--${t.size}`]]),name:t.prefixIcon},null,8,["class","name"])):e.createCommentVNode("",!0)],!0),t.loading?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["Button__icon Button__icon--prefix",[`Button__icon--${t.size}`]]),name:"spinner"},null,8,["class"])):e.createCommentVNode("",!0),t.$slots.default||t.label?(e.openBlock(),e.createElementBlock("span",qt,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"suffix",{},()=>[t.suffixIcon?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["Button__icon Button__icon--suffix",[`Button__icon--${t.size}`]]),name:t.suffixIcon},null,8,["class","name"])):e.createCommentVNode("",!0)],!0)]),_:3},16,["class","type"])}var M=p(Rt,[["render",Kt],["__scopeId","data-v-24bf0302"]]),Zn="";const Gt=t=>t.target.getAttribute("type")==="number"?t.target.valueAsNumber:t.target.getAttribute("type")==="checkbox"?t.target.checked:t.target.value,w=e.defineComponent({emits:["update:modelValue"],computed:{normalizedAttrs(){const n=this.$attrs,{class:t}=n,o=R(n,["class"]);return B($({},o),{onInput:s=>this.$emit("update:modelValue",Gt(s))})}}});var xn="";const Ut=e.defineComponent({mixins:[w],inheritAttrs:!1,props:{modelValue:Boolean,required:Boolean,switch:Boolean,caption:{type:String,default:""}}}),Ht=t=>(e.pushScopeId("data-v-18ef5cd1"),t=t(),e.popScopeId(),t),Wt=["checked","required"],Xt=[Ht(()=>e.createElementVNode("div",{class:"Checkbox__switchDot"},null,-1))],Yt={key:1,class:"Checkbox__label"},Jt={key:0,class:"Checkbox__required"};function Qt(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["Checkbox",[t.$attrs.class,{"Checkbox--disabled":t.$attrs.disabled}]])},[e.withDirectives(e.createElementVNode("input",e.mergeProps(t.normalizedAttrs,{checked:t.modelValue,class:"Checkbox__input vuiii-input",required:t.required,type:"checkbox"}),null,16,Wt),[[e.vShow,!t.$props.switch]]),t.$props.switch?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["Checkbox__switch",{"Checkbox__switch--active":t.modelValue}])},Xt,2)):e.createCommentVNode("",!0),t.$slots.default||t.caption?(e.openBlock(),e.createElementBlock("div",Yt,[t.required?(e.openBlock(),e.createElementBlock("span",Jt,"*")):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.caption),1)],!0)])):e.createCommentVNode("",!0)],2)}var j=p(Ut,[["render",Qt],["__scopeId","data-v-18ef5cd1"]]);function C(t,o){return typeof o=="function"?o(t):o||o===0?t[o]:t}function N(t,o={}){return Array.isArray(t)?t.map(n=>({value:C(n,o.value),label:C(n,o.label),description:o.description&&C(n,o.description),disabled:o.disabled&&C(n,o.disabled)})):Object.entries(t||{}).reduce((n,[s,i])=>n.concat({value:s,label:i}),[])}var tr="";const Zt=e.defineComponent({components:{Checkbox:j},props:{modelValue:{type:Array,default:()=>[]},options:{type:[Array,Object],required:!0},optionLabelKey:{type:[Function,String,Number],default:void 0},optionValueKey:{type:[Function,String,Number],default:void 0},optionDisabledKey:{type:[Function,String,Number],default:void 0}},emits:["update:modelValue"],computed:{normalizedOptions(){return N(this.options,{value:this.optionValueKey,label:this.optionLabelKey,disabled:this.optionDisabledKey})},checkedValues(){return this.modelValue.reduce((t,o)=>B($({},t),{[o]:!0}),{})}},methods:{toggleCheckedValue(t){const o=B($({},this.checkedValues),{[t]:!this.checkedValues[t]}),n=Object.entries(o).filter(([s,i])=>i).map(([s])=>s);this.$emit("update:modelValue",n)}}}),xt={class:"CheckboxGroup"};function eo(t,o,n,s,i,m){const r=e.resolveComponent("Checkbox");return e.openBlock(),e.createElementBlock("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedOptions,l=>(e.openBlock(),e.createElementBlock("div",{key:l.value},[e.createVNode(r,{disabled:l.disabled,"model-value":t.checkedValues[l.value],caption:l.label,"onUpdate:modelValue":c=>t.toggleCheckedValue(l.value)},null,8,["disabled","model-value","caption","onUpdate:modelValue"])]))),128))])}var to=p(Zt,[["render",eo],["__scopeId","data-v-1a9cd604"]]),or="";const oo=e.defineComponent({props:{label:{type:String,default:""},error:{type:[String,Array,Boolean],default:""},description:{type:String,default:""},hint:{type:String,default:""},required:Boolean},computed:{errorMessage(){return Array.isArray(this.error)?this.error.filter(Boolean).join(" "):typeof this.error=="string"?this.error:""}}}),no={key:0,class:"FormGroup__header"},ro={class:"FormGroup__label"},lo={key:0,class:"FormGroup__required"},so={key:1,class:"FormGroup__description"},ao={key:2,class:"FormGroup__hint"},io={key:3,class:"FormGroup__error"};function co(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["FormGroup",{"FormGroup--invalid":t.error}])},[t.label?(e.openBlock(),e.createElementBlock("div",no,[e.createElementVNode("label",ro,e.toDisplayString(t.label),1),t.required?(e.openBlock(),e.createElementBlock("div",lo,"*")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.$slots.description||t.description?(e.openBlock(),e.createElementBlock("div",so,[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},void 0,!0),t.$slots.hint||t.hint?(e.openBlock(),e.createElementBlock("div",ao,[e.renderSlot(t.$slots,"hint",{},()=>[e.createTextVNode(e.toDisplayString(t.hint),1)],!0)])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("div",io,e.toDisplayString(t.errorMessage),1)):e.createCommentVNode("",!0)],2)}var z=p(oo,[["render",co],["__scopeId","data-v-2a74e30e"]]),nr="";const _o=e.defineComponent({components:{FormGroup:z},props:{fields:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},errors:{type:Object,default:()=>({})}},emits:["update:modelValue"],methods:{getFieldValue(t){var n;return(((n=this.fields[t].value)==null?void 0:n.getter)||(s=>s[t]))(this.modelValue)},setFieldValue(t,o){var i;const s=(((i=this.fields[t].value)==null?void 0:i.setter)||((m,r)=>B($({},r),{[t]:m})))(o,this.modelValue);this.$emit("update:modelValue",s)}}}),po={class:"FormFields"};function mo(t,o,n,s,i,m){const r=e.resolveComponent("FormGroup");return e.openBlock(),e.createElementBlock("div",po,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,(l,c)=>{var _;return e.openBlock(),e.createBlock(r,{key:c,label:l.label,description:l.description,hint:l.hint,required:l.required,error:(_=t.errors)==null?void 0:_[c]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component),e.mergeProps({"model-value":t.getFieldValue(String(c))},l.props,{"onUpdate:modelValue":u=>t.setFieldValue(String(c),u)}),null,16,["model-value","onUpdate:modelValue"]))]),_:2},1032,["label","description","hint","required","error"])}),128))])}var F=p(_o,[["render",mo],["__scopeId","data-v-7f82ddf3"]]),rr="";const uo=e.defineComponent({components:{Button:M,FormFields:F,Icon:y},props:{structure:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>{}},errors:{type:Object,default:()=>({})},submit:{type:Function,default:void 0},submitLabel:{type:String,default:"Submit"},cancel:{type:[Function,Object],default:void 0},cancelLabel:{type:String,default:"Cancel"},submitting:Boolean},emits:["update:modelValue","change","submit","cancel"],methods:{handleSubmit(){var t;(t=this.submit)==null||t.call(this,this.modelValue)},handleCancel(){var t;typeof this.cancel=="function"?(t=this.cancel)==null||t.call(this):this.cancel&&this.$router.push(this.cancel)}}}),fo={class:"Form"},ho=["disabled"],ko={key:0,class:"Form__title"},bo={key:0,class:"Form__buttons"};function go(t,o,n,s,i,m){const r=e.resolveComponent("FormFields"),l=e.resolveComponent("Button"),c=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",fo,[t.modelValue?(e.openBlock(),e.createElementBlock("form",{key:0,disabled:t.submitting,onSubmit:o[3]||(o[3]=e.withModifiers(_=>{var u;return(u=t.handleSubmit)==null?void 0:u.call(t)},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.structure,(_,u)=>(e.openBlock(),e.createElementBlock("div",{key:u},[_.title?(e.openBlock(),e.createElementBlock("div",ko,e.toDisplayString(_.title),1)):e.createCommentVNode("",!0),e.createVNode(r,{fields:_.fields,"model-value":t.modelValue,errors:t.errors,"onUpdate:modelValue":o[0]||(o[0]=d=>t.$emit("update:modelValue",d)),onChange:o[1]||(o[1]=d=>t.$emit("change",d))},null,8,["fields","model-value","errors"])]))),128)),e.renderSlot(t.$slots,"buttons",e.normalizeProps(e.guardReactiveProps({cancel:t.cancel,submit:t.submit})),()=>[t.submit||t.cancel?(e.openBlock(),e.createElementBlock("div",bo,[t.submit?(e.openBlock(),e.createBlock(l,{key:0,variant:"primary",type:"submit",label:t.submitLabel,disabled:t.submitting,"prefix-icon":t.submitting?"spinner":void 0},null,8,["label","disabled","prefix-icon"])):e.createCommentVNode("",!0),t.cancel?(e.openBlock(),e.createBlock(l,{key:1,label:t.cancelLabel,disabled:t.submitting,onClick:o[2]||(o[2]=_=>t.handleCancel())},null,8,["label","disabled"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],!0)],40,ho)):(e.openBlock(),e.createBlock(c,{key:1,name:"spinner"}))])}var $o=p(uo,[["render",go],["__scopeId","data-v-4a2acd7e"]]),lr="";const yo=["normal","small"],Bo=e.defineComponent({components:{Icon:y},mixins:[w],inheritAttrs:!1,props:{modelValue:{type:[Number,String],default:""},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},size:{type:String,default:"normal",validator:t=>yo.includes(t)},invalid:Boolean},computed:{hasPrefix(){return Boolean(this.$slots.prefix||this.prefixIcon)},hasSuffix(){return Boolean(this.$slots.suffix||this.suffixIcon)}}}),wo={class:"Input__icon Input__icon--left"},So=["aria-label","value"],Co={class:"Input__icon Input__icon--right"};function Vo(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["Input vuiii-input",[t.$attrs.class,{"vuiii-input--invalid":t.invalid,"vuiii-input--disabled":t.$attrs.disabled,"vuiii-input--small":t.size==="small"}]]),onClick:o[0]||(o[0]=l=>t.$refs.input.focus())},[t.hasPrefix?e.renderSlot(t.$slots,"prefix",{key:0},()=>[e.createElementVNode("div",wo,[e.createVNode(r,{name:t.prefixIcon},null,8,["name"])])],!0):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({ref:"input","aria-label":t.$attrs.placeholder||"input"},t.normalizedAttrs,{class:"Input__nestedInput vuiii-input__nested",value:t.modelValue}),null,16,So),t.hasSuffix?e.renderSlot(t.$slots,"suffix",{key:1},()=>[e.createElementVNode("div",Co,[e.createVNode(r,{name:t.suffixIcon},null,8,["name"])])],!0):e.createCommentVNode("",!0)],2)}var Eo=p(Bo,[["render",Vo],["__scopeId","data-v-6a6438b5"]]),sr="";const Mo=e.defineComponent({components:{Icon:y},props:{title:{type:String,default:""},width:{type:[Number,String],default:600},hideCloser:Boolean,scroll:Boolean,plain:Boolean},computed:{hasHeader(){return Boolean(this.$slots.header||this.title)},hasFooter(){return Boolean(this.$slots.footer)},computedStyle(){const t=this.width+(Number(this.width)?"px":"");return t&&t!=="auto"?{width:"100%",maxWidth:t}:{}}},methods:{close(){window.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape"}))}}}),No={key:1,class:"ModalLayout__header"},Io={class:"ModalLayout__title"},jo={class:"ModalLayout__body"},zo={key:2,class:"ModalLayout__footer"};function Fo(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ModalLayout",{hasHeader:t.hasHeader,hasFooter:t.hasFooter,isScrollable:t.scroll,isPlain:t.plain}]),style:e.normalizeStyle(t.computedStyle)},[t.hideCloser?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"ModalLayout__close",onClick:o[0]||(o[0]=l=>t.close())},[e.createVNode(r,{name:"x",class:"ModalLayout__closeIcon"})])),t.hasHeader?(e.openBlock(),e.createElementBlock("div",No,[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("div",Io,e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",jo,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),t.hasFooter?(e.openBlock(),e.createElementBlock("div",zo,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6)}var O=p(Mo,[["render",Fo],["__scopeId","data-v-386279ac"]]),ar="";let Oo=1;const Lo=e.defineComponent({mixins:[w],inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:void 0},options:{type:[Array,Object],required:!0},optionLabelKey:{type:[Function,String,Number],default:void 0},optionValueKey:{type:[Function,String,Number],default:void 0},optionDisabledKey:{type:[Function,String,Number],default:void 0},required:Boolean},emits:["update:modelValue"],data(){return{inputName:"vuiii-radio-input-"+Oo++}},computed:{normalizedOptions(){return N(this.options,{value:this.optionValueKey,label:this.optionLabelKey,disabled:this.optionDisabledKey})}}}),Ao={class:"Radio"},Do=["value","checked","required","name","disabled"],To={class:"Radio__label"};function Po(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("div",Ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedOptions,r=>(e.openBlock(),e.createElementBlock("label",{key:r.value,class:e.normalizeClass(["Radio__option",{"Radio--disabled":r.disabled}])},[e.createElementVNode("input",e.mergeProps(t.normalizedAttrs,{value:r.value,checked:t.modelValue===r.value,class:"Radio__input vuiii-input",required:t.required,type:"Radio",name:t.inputName,disabled:r.disabled}),null,16,Do),e.createElementVNode("div",To,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(r.label),1)],!0)])],2))),128))])}var vo=p(Lo,[["render",Po],["__scopeId","data-v-0251715f"]]);const Ro=["normal","small"],qo=e.defineComponent({mixins:[w],props:{modelValue:{type:[String,Number,Object],default:""},options:{type:[Array,Object],required:!0},optionLabelKey:{type:[Function,String,Number],default:void 0},optionValueKey:{type:[Function,String,Number],default:void 0},optionDisabledKey:{type:[Function,String,Number],default:void 0},placeholder:{type:String,default:""},size:{type:String,default:"normal",validator:t=>Ro.includes(t)},allowEmpty:Boolean},computed:{normalizedOptions(){return N(this.options,{value:this.optionValueKey,label:this.optionLabelKey,disabled:this.optionDisabledKey})}}}),Ko=["value"],Go=["disabled"],Uo=["disabled","value"];function Ho(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("select",e.mergeProps({class:"Select vuiii-input"},t.normalizedAttrs,{class:[t.$attrs.class,{"vuiii-input--small":t.size==="small"}],value:t.modelValue}),[t.placeholder?(e.openBlock(),e.createElementBlock("option",{key:0,disabled:!t.allowEmpty,selected:"",value:""},e.toDisplayString(t.placeholder),9,Go)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedOptions,r=>(e.openBlock(),e.createElementBlock("option",{key:r.value,disabled:r.disabled,value:r.value},e.toDisplayString(r.label),9,Uo))),128))],16,Ko)}var Wo=p(qo,[["render",Ho]]),ir="",cr="";const Xo=e.defineComponent({props:{items:{type:Array,default:()=>[]},columns:{type:Object,default:null},rowClass:{type:[String,Function],default:null}},computed:{normalizedColumns(){return Object.entries(this.columns).reduce((t,[o,n])=>B($({},t),{[o]:typeof n=="string"?{label:n}:n}),{})}},methods:{formatValue(t,o){const n=this.normalizedColumns[o],s=typeof n.value=="function"?n.value(t):t[o];return n.format?n.format(s):s},resolveRowClass(t){return typeof this.rowClass=="function"?this.rowClass(t):this.rowClass}}}),Yo={class:"vuiii-table vuiii-table--hover"},Jo=["width"];function Qo(t,o,n,s,i,m){const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("table",Yo,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedColumns,(l,c)=>(e.openBlock(),e.createElementBlock("th",{key:c,style:e.normalizeStyle({textAlign:l.align||"left"}),width:l.width},e.toDisplayString(l.label),13,Jo))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c,class:e.normalizeClass(t.resolveRowClass(l))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.normalizedColumns,(_,u)=>(e.openBlock(),e.createElementBlock("td",{key:u,style:e.normalizeStyle({textAlign:_.align||"left"})},[e.renderSlot(t.$slots,u,e.normalizeProps(e.guardReactiveProps({item:l})),()=>[_.href?(e.openBlock(),e.createBlock(r,{key:0,class:"vuiii-link",to:_.href(l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.formatValue(l,u)),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.formatValue(l,u)),1)],64))])],4))),128))],2))),128))])])}var Zo=p(Xo,[["render",Qo]]);const xo=e.defineComponent({mixins:[w],props:{modelValue:{type:String,default:""}}});function en(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("textarea",e.mergeProps({class:"Textarea vuiii-input"},t.normalizedAttrs),null,16)}var tn=p(xo,[["render",en]]),dr="";const on=e.defineComponent({components:{ModalLayout:O,Button:M},props:{title:{type:String,default:""},message:{type:String,default:""},buttons:{type:Array,default:()=>[]}},emits:["close"]}),nn={class:"ModalLayoutDialog__buttons"};function rn(t,o,n,s,i,m){var c;const r=e.resolveComponent("Button"),l=e.resolveComponent("ModalLayout");return e.openBlock(),e.createBlock(l,{class:"ModalLayoutDialog",width:"480",title:t.title},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["ModalLayoutDialog__message",{"ModalLayoutDialog__message--offset":!t.title}])},e.toDisplayString(t.message),3)]),_:2},[(c=t.buttons)!=null&&c.length?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(_,u)=>(e.openBlock(),e.createElementBlock("span",{key:u,class:"ModalLayoutDialog__buttonWrapper"},[e.createVNode(r,{type:"button",variant:_.variant,"prefix-icon":_.icon,autofocus:"",onClick:d=>t.$emit("close",_.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["variant","prefix-icon","onClick"])]))),128))])])}:void 0]),1032,["title"])}var ln=p(on,[["render",rn],["__scopeId","data-v-612c6cb9"]]),_r="";const sn=e.defineComponent({props:{modals:{type:Array,default:()=>[]}},emits:["closeModal"],data(){return{modalInstances:{},registerReference(t){return o=>this.modalInstances[t]=o}}},computed:{activeModal(){return this.modals.length?this.modals[this.modals.length-1]:null}},mounted(){window.addEventListener("keydown",this.closeActiveModalByEscapeKey)},beforeUnmount(){window.removeEventListener("keydown",this.closeActiveModalByEscapeKey)},methods:{closeModal(t,o){var i;const n=()=>{this.$emit("closeModal",{modal:t,result:o})},s=this.modalInstances[t.id].$el;(i=s.$attrs)!=null&&i.onBeforeClose?s.$attrs.onBeforeClose(n):n()},closeActiveModal(){this.activeModal&&this.closeModal(this.activeModal)},closeActiveModalByEscapeKey(t){this.activeModal&&t.key==="Escape"&&!t.defaultPrevented&&(t.preventDefault(),this.closeActiveModal())},closeModalByBackdropClick(t,o){t.target===t.currentTarget&&this.closeModal(o)}}}),an={class:"ModalStack"},cn={key:0,class:"ModalStack__backdrop"},dn=["onClick"];function _n(t,o,n,s,i,m){return e.openBlock(),e.createElementBlock("div",an,[e.createVNode(e.Transition,{name:"ModalStack__backdrop"},{default:e.withCtx(()=>[t.modals.length?(e.openBlock(),e.createElementBlock("div",cn)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{name:"ModalStack__modal"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modals,r=>{var l;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"ModalStack__modalWrapper",onClick:c=>t.closeModalByBackdropClick(c,r)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.component),e.mergeProps(r.props,{ref_for:!0,ref:t.registerReference(r.id),class:["ModalStack__modal",{isActive:((l=t.activeModal)==null?void 0:l.id)===r.id}],onClose:c=>t.closeModal(r,c)}),null,16,["class","onClose"]))],8,dn)}),128))]),_:1})])}var pn=p(sn,[["render",_n],["__scopeId","data-v-2f4ee2c2"]]);const mn={cancelLabel:"Cancel",confirmLabel:"OK"},un=(t,o={})=>{let n=1;o=$($({},mn),o);const s=e.reactive({modals:[]}),i=(d,b)=>{var h;s.modals=s.modals.filter(({id:g})=>g!==d.id),d.resolve(b),(h=d.focusElement)==null||h.focus()},m=e.createApp({parent:t,data(){return s},render(){return e.h(pn,{modals:s.modals,onCloseModal:({modal:d,result:b})=>i(d,b)})}}),r=document.createElement("div");document.body.appendChild(r),m.mount(r);const l=(d,b)=>{var g;const h=document.activeElement;return(g=h.blur)==null||g.call(h),new Promise(S=>{s.modals.push({id:n++,component:d,props:b,resolve:S,focusElement:h})})},c=d=>l(ln,d),_=d=>{typeof d=="string"&&(d={message:d});const{title:b,message:h,confirmVariant:g,confirmLabel:S=o.confirmLabel,confirmIcon:I}=d;return c({title:b,message:h,buttons:[{variant:g||"primary",label:S||"",icon:I}]})},u=d=>{typeof d=="string"&&(d={message:d});const{title:b,message:h,cancelLabel:g=o.cancelLabel,cancelVariant:S,cancelIcon:I,confirmLabel:Sn=o.confirmLabel,confirmVariant:Cn,confirmIcon:Vn}=d;return c({title:b,message:h,buttons:[{variant:S,label:g||"",icon:I,value:!1},{variant:Cn||"primary",label:Sn||"",icon:Vn,value:!0}]})};t.config.globalProperties.$modal={open:l,dialog:c,alert:_,confirm:u}};function L(){var t;return(t=e.getCurrentInstance())==null?void 0:t.appContext.config.globalProperties.$modal}var pr="";const fn=e.defineComponent({components:{Icon:y},props:{messages:{type:Array,default:()=>[]}},emits:["remove-message"],computed:{messagesInReverse(){return[...this.messages].reverse()}}}),hn={class:"Snackbar"},kn=["onClick"];function bn(t,o,n,s,i,m){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",hn,[e.createVNode(e.TransitionGroup,{name:"Snackbar__transition"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messagesInReverse,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"Snackbar__message"},[e.createElementVNode("div",{class:"Snackbar__messageWrapper",style:e.normalizeStyle({transform:`translateY(-${100*c}%)`})},[e.createElementVNode("div",{class:e.normalizeClass(["Snackbar__messageBlock",`Snackbar__messageBlock--${l.type}`])},[e.createElementVNode("div",null,e.toDisplayString(l.text),1),e.createElementVNode("div",{class:"Snackbar__messageClose",onClick:_=>t.$emit("remove-message",l.id)},[e.createVNode(r,{class:"Snackbar__messageCloseIcon",name:"x"})],8,kn)],2)],4)]))),128))]),_:1})])}var gn=p(fn,[["render",bn],["__scopeId","data-v-272e7ab3"]]);const $n=1e4,yn=5,Bn=t=>{let o=1;const n=e.reactive({messages:[]}),s=l=>{n.messages=n.messages.filter(({id:c})=>c!==l)},i=e.createApp({parent:t,data(){return n},render(){return e.h(gn,{messages:this.messages,onRemoveMessage:s})}}),m=document.createElement("div");document.body.appendChild(m),i.mount(m);const r=(l,c="success",_=$n)=>{const u=o++;n.messages.push({text:l,type:c,id:u}),n.messages.length>yn&&n.messages.shift(),_>0&&setTimeout(()=>s(u),_)};t.config.globalProperties.$snackbar={success:l=>r(l,"success"),error:l=>r(l,"error",0)}};function A(){var t;return(t=e.getCurrentInstance())==null?void 0:t.appContext.config.globalProperties.$snackbar}function D(t,o={}){const n=A(),s=L(),i=f.useRouter(),m=e.ref(!1),r=e.ref(),l=e.ref(Object.freeze({})),c=async _=>{var u;if(!(o.confirm&&s&&!await s.confirm(typeof o.confirm=="function"?o.confirm(_):o.confirm))){if(o.validator){const d=await o.validator(_);if(!d||typeof d=="object"&&(l.value=(d==null?void 0:d.errors)||{},!(d!=null&&d.isValid)))return}m.value=!0;try{r.value=await t(_)}catch(d){if(o.errorMessage&&n&&n.error(typeof o.errorMessage=="function"?o.errorMessage(d,_):o.errorMessage||d.message),m.value=!1,o.onError&&o.onError({error:d,data:_,router:i,snackbar:n}))return;throw d}return m.value=!1,o.successMessage&&n&&n.success(typeof o.successMessage=="function"?o.successMessage(r.value,_):o.successMessage),(u=o.onSuccess)==null||u.call(o,{result:r.value,data:_,router:i,snackbar:n}),o.redirectOnSuccess&&i.push(typeof o.redirectOnSuccess=="function"?o.redirectOnSuccess(r.value,_):o.redirectOnSuccess),r.value}};return o.immediate&&e.onMounted(c),{submit:c,errors:l,result:r,isSubmitting:m}}const wn=(t,o={})=>{const{isSubmitting:n,submit:s,result:i}=D(t,{onSuccess:({router:m,data:r,result:l})=>{var c;return(c=o.onSuccess)==null?void 0:c.call(o,{data:l,params:r,router:m})},onError:({router:m,error:r,data:l})=>{var c;return(c=o.onError)==null?void 0:c.call(o,{error:r,params:l,router:m})},successMessage:o.successMessage,errorMessage:o.errorMessage,immediate:o.immediate});return{load:s,isLoading:n,data:i}};a.Breadcrumbs=Tt,a.Button=M,a.Checkbox=j,a.CheckboxGroup=to,a.Form=$o,a.FormFields=F,a.FormGroup=z,a.Icon=y,a.Input=Eo,a.ModalLayout=O,a.Radio=vo,a.Select=Wo,a.Table=Zo,a.Textarea=tn,a.modal=un,a.registerCustomIconResolver=zt,a.snackbar=Bn,a.useLoadData=wn,a.useModal=L,a.useSnackbar=A,a.useSubmitAction=D,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|