maz-ui 3.47.2-beta.21 → 3.47.2-beta.23
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/components/MazPhoneNumberInput.mjs +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/chunks/{MazBtn-C7yEnuOD.mjs → MazBtn-CC9H3U2X.mjs} +2 -2
- package/components/chunks/{MazCheckbox-BNvSeNBP.mjs → MazCheckbox-CbfTOJdy.mjs} +1 -1
- package/components/chunks/{MazIcon-kLACGOa2.mjs → MazIcon-BSUswKRF.mjs} +1 -1
- package/components/chunks/{MazPhoneNumberInput-BQjByOtQ.mjs → MazPhoneNumberInput-BAGcArnr.mjs} +75 -75
- package/components/chunks/{MazSpinner-DoPIk0St.mjs → MazSpinner-DOPjHhPx.mjs} +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/tailwindcss/utils/colors.ts +9 -5
- package/types/tailwindcss/tailwind.config.d.ts +2 -2
- package/types/tailwindcss/utils/colors.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-lazy-img-component[data-v-83e40430]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:top;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-lazy-img-component.--block[data-v-83e40430],.m-lazy-img-component.--block img[data-v-83e40430]{width:100%}.m-lazy-img-component-loader[data-v-83e40430]{position:absolute;top:0;right:0;bottom:0;left:0;display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-lazy-img-component.--height-full img[data-v-83e40430]{max-height:100%!important;width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;max-width:-webkit-min-content!important;max-width:-moz-min-content!important;max-width:min-content!important}.m-lazy-img-component.m-lazy-error[data-v-83e40430]:not(.m-lazy-no-photo){background-color:var(--maz-color-bg-light)}.m-lazy-img-component.m-lazy-error:not(.m-lazy-no-photo) img[data-v-83e40430]{height:50%;width:50%}.m-lazy-img-component.m-lazy-loading .m-lazy-img-component-loader[data-v-83e40430]{display:-webkit-box;display:-ms-flexbox;display:flex}.m-input[data-v-1443c13f]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;vertical-align:top}.m-input.--block[data-v-1443c13f]{width:100%}.m-input-top-label[data-v-1443c13f]{margin-bottom:.5rem;color:var(--maz-color-text)}.m-input-bottom-text[data-v-1443c13f]{margin-top:.25rem;font-size:.875rem;line-height:1.25rem}.m-input-wrapper[data-v-1443c13f]{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden;border-width:var(--maz-border-width);border-style:solid;background-color:var(--maz-color-bg);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s}.m-input-wrapper.--block[data-v-1443c13f]{width:100%}.m-input-wrapper.--default-border[data-v-1443c13f]{border-color:var(--maz-border-color)}.m-input-wrapper.--default-border[data-v-1443c13f]:is([class~=dark] *){border-color:var(--maz-color-bg-lighter)}.m-input-wrapper-input[data-v-1443c13f]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;max-width:100%;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.m-input-wrapper-input.--xl[data-v-1443c13f]{height:calc(4rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--xl .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--xl .m-input-label[data-v-1443c13f]{font-size:1.25rem;line-height:1.75rem}.m-input-wrapper-input.--lg[data-v-1443c13f]{height:calc(3.5rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--lg .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--lg .m-input-label[data-v-1443c13f]{font-size:1.125rem;line-height:1.75rem}.m-input-wrapper-input.--md[data-v-1443c13f]{height:calc(3rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--sm[data-v-1443c13f]{height:calc(2.5rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--sm .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--sm .m-input-label[data-v-1443c13f]{font-size:.875rem;line-height:1.25rem}.m-input-wrapper-input.--xs[data-v-1443c13f]{height:calc(2rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--xs .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--xs .m-input-label[data-v-1443c13f]{font-size:.75rem;line-height:1rem}.m-input-wrapper-input.--mini[data-v-1443c13f]{height:calc(1.5rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--mini .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--mini .m-input-label[data-v-1443c13f]{font-size:.75rem;line-height:1rem}.m-input-wrapper-right[data-v-1443c13f],.m-input-wrapper-left[data-v-1443c13f]{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex}.m-input-wrapper-right[data-v-1443c13f]>:not([hidden])~:not([hidden]),.m-input-wrapper-left[data-v-1443c13f]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.m-input-wrapper-right[data-v-1443c13f],.m-input-wrapper-left[data-v-1443c13f]{padding-top:.25rem;padding-bottom:.25rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-input-wrapper-right[data-v-1443c13f]{padding-right:.5rem}.m-input-wrapper-left[data-v-1443c13f]{padding-left:.5rem}.m-input-wrapper.--rounded-sm[data-v-1443c13f]{border-radius:.125rem}.m-input-wrapper.--rounded-md[data-v-1443c13f]{border-radius:.375rem}.m-input-wrapper.--rounded-lg[data-v-1443c13f]{border-radius:var(--maz-border-radius)}.m-input-wrapper.--rounded-xl[data-v-1443c13f]{border-radius:.75rem}.m-input-wrapper.--rounded-full[data-v-1443c13f]{border-radius:9999px}.m-input-input[data-v-1443c13f]{margin:0;height:100%;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-style:none;background-color:transparent;padding-left:1rem;padding-right:1rem;padding-top:0;padding-bottom:0;color:var(--maz-color-text);--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.m-input-input[data-v-1443c13f]:-webkit-autofill,.m-input-input[data-v-1443c13f]:-webkit-autofill:hover,.m-input-input[data-v-1443c13f]:-webkit-autofill:focus{-webkit-text-fill-color:var(--maz-color-text);-webkit-box-shadow:0 0 0 1000px var(--maz-color-primary-50) inset;box-shadow:0 0 0 1000px var(--maz-color-primary-50) inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.m-input-input[data-v-1443c13f]::-webkit-input-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]::-moz-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]:-ms-input-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]::-ms-input-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]::placeholder{color:var(--maz-color-muted)}.m-input-label[data-v-1443c13f]{pointer-events:none;position:absolute;left:.75rem;width:100%;-webkit-transform-origin:top left;transform-origin:top left;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;line-height:1.5rem;width:calc(100% + 1.3rem);-webkit-transition:-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:transform .2s cubic-bezier(0,0,.2,1) 0ms,-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms}.m-input:not(.--should-up) .m-input-label[data-v-1443c13f]{width:calc(100% - .75rem)}.m-input.--should-up .m-input-label[data-v-1443c13f]{-webkit-transform:scale(.8) translateY(-.65em);transform:scale(.8) translateY(-.65em)}.m-input[data-v-1443c13f]:not(.--has-state){color:var(--maz-color-muted)}.m-input.--has-z-2 .m-input-wrapper[data-v-1443c13f]{z-index:2}.m-input.--is-readonly .m-input-input[data-v-1443c13f]{cursor:default}.m-input.--is-disabled .m-input-wrapper[data-v-1443c13f]{background-color:var(--maz-color-bg-lighter);color:var(--maz-color-muted)}.m-input.--is-disabled .m-input-input[data-v-1443c13f]{cursor:not-allowed;color:var(--maz-color-muted)}.m-input:not(.--is-disabled) .m-input-wrapper[data-v-1443c13f]:is([class~=dark] *){background-color:var(--maz-color-bg-light)}.m-input.--is-focused .m-input-wrapper[data-v-1443c13f]{z-index:3}.m-input.--has-label .m-input-label[data-v-1443c13f]{padding-right:.75rem}[dir=rtl] .m-input.--has-label .m-input-label[data-v-1443c13f]{padding-right:0;padding-left:.75rem}.m-input.--has-label .m-input-input[data-v-1443c13f]{padding-left:.75rem;padding-right:.75rem;padding-top:1rem}html.dark .m-input-input[data-v-1443c13f]:-webkit-autofill,html.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:hover,html.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:focus,.m-input.dark .m-input-input[data-v-1443c13f]:-webkit-autofill,.m-input.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:hover,.m-input.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:focus{-webkit-text-fill-color:var(--maz-color-text);-webkit-box-shadow:0 0 0 1000px var(--maz-color-bg-lighter) inset;box-shadow:0 0 0 1000px var(--maz-color-bg-lighter) inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.m-select[data-v-07cbef8c]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:top}.m-select.--mini[data-v-07cbef8c],.m-select.--xs[data-v-07cbef8c]{font-size:.75rem;line-height:1rem}.m-select.--sm[data-v-07cbef8c]{font-size:.875rem;line-height:1.25rem}.m-select.--md[data-v-07cbef8c]{font-size:1rem;line-height:1.5rem}.m-select.--lg[data-v-07cbef8c]{font-size:1.125rem;line-height:1.75rem}.m-select.--xl[data-v-07cbef8c]{font-size:1.25rem;line-height:1.75rem}.m-select.--block[data-v-07cbef8c]{width:100%}.m-select[data-v-07cbef8c]:not(.--disabled) .m-input-input{cursor:pointer}.m-select-input[data-v-07cbef8c] .m-input-input,.m-select-input.--has-label[data-v-07cbef8c] .m-input-input{padding-right:0}.m-select-input__toggle-button[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;background-color:transparent;padding-left:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-select-input[data-v-07cbef8c] input{caret-color:transparent}.m-select-chevron[data-v-07cbef8c]{font-size:1.2em;color:var(--maz-color-text);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.m-select.--is-open .m-select-chevron[data-v-07cbef8c]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.m-select .m-select-list[data-v-07cbef8c]{position:absolute;z-index:1050;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.25rem;overflow:hidden;border-radius:var(--maz-border-radius);background-color:var(--maz-color-bg);padding:.5rem;-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}.m-select .m-select-list[data-v-07cbef8c]:is([class~=dark] *){border-width:var(--maz-border-width);border-color:var(--maz-color-bg-light)}.m-select .m-select-list-optgroup[data-v-07cbef8c]{-webkit-box-flex:0;-ms-flex:none;flex:none;padding:.125rem;text-align:start;font-size:.875em;color:var(--maz-color-muted)}.m-select .m-select-list[data-v-07cbef8c]{min-width:3.5rem}.m-select .m-select-list.--top[data-v-07cbef8c]{bottom:100%}.m-select .m-select-list.--left[data-v-07cbef8c]{left:0}.m-select .m-select-list.--right[data-v-07cbef8c]{right:0}.m-select .m-select-list.--bottom[data-v-07cbef8c]{top:100%}.m-select .m-select-list__scroll-wrapper[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.25rem;overflow:auto}.m-select .m-select-list__no-results[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:1rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-select .m-select-list-item[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--maz-border-radius);background-color:transparent;padding-left:.75rem;padding-right:.75rem;padding-top:.5em;padding-bottom:.5em;text-align:start;font-size:1em;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-select .m-select-list-item[data-v-07cbef8c]:focus-within{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item[data-v-07cbef8c]:hover{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item span[data-v-07cbef8c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-select .m-select-list-item.--is-keyboard-selected[data-v-07cbef8c]{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item.--is-keyboard-selected[data-v-07cbef8c]:is([class~=dark] *){background-color:var(--maz-color-bg-lighter)}.m-select .m-select-list-item.--is-keyboard-selected.--is-selected[data-v-07cbef8c],.m-select .m-select-list-item.--is-keyboard-selected.--is-selected[data-v-07cbef8c]:hover{background-color:var(--keyboard-selected-bg-color)}.m-select .m-select-list-item.--is-none-value[data-v-07cbef8c]{color:var(--maz-color-muted)}.m-select .m-select-list-item.--is-selected[data-v-07cbef8c]{color:var(--selected-text-color);background-color:var(--selected-bg-color)}.m-select .m-select-list-item.--is-selected[data-v-07cbef8c]:hover{background-color:var(--selected-bg-color)}.m-select .m-select-list-item.--is-selected.--transparent[data-v-07cbef8c]{background-color:var(--maz-color-bg)}.m-select button.maz-custom[data-v-07cbef8c]{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none}.m-country-selector[data-v-e2fee821]{position:relative}.m-country-selector__country-flag[data-v-e2fee821]{position:absolute;left:.813rem;z-index:4;outline:none;border:none;padding:0;margin:0;top:1.25rem;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-country-selector__country-flag.--should-have-bottom-flag[data-v-e2fee821]{bottom:2px}.m-country-selector__select[data-v-e2fee821] .m-input-label{padding:0!important}.m-country-selector__select__item[data-v-e2fee821]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem}.m-country-selector__select__item__flag-container[data-v-e2fee821]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-country-selector:not(.--no-flags) .m-country-selector__select[data-v-e2fee821] .m-select-input input{padding-left:2.5rem!important}.m-phone-number-input.--responsive .m-country-selector[data-v-e2fee821]{min-width:100%}@media (min-width: 425px){.m-phone-number-input.--responsive .m-country-selector[data-v-e2fee821]{min-width:inherit}}.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821]{min-width:100%}@media (min-width: 425px){.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821]{min-width:inherit}}.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width: 425px){.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-bottom-right-radius:var(--maz-border-radius);border-bottom-left-radius:var(--maz-border-radius);border-top-right-radius:0;border-bottom-right-radius:0}}.m-phone-number-input.--row .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.m-phone-number-input.--col .m-country-selector[data-v-e2fee821],.m-phone-number-input.--col .m-country-selector__select[data-v-e2fee821]{min-width:100%}.m-phone-number-input.--col .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--maz-border-radius)}.m-phone-input[data-v-a447a345]{min-width:13rem;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.m-phone-input.--error[data-v-a447a345],.m-phone-input.--focused[data-v-a447a345]{z-index:1}.m-phone-number-input.--responsive .m-phone-input[data-v-a447a345]{margin-top:-.125rem;-webkit-box-flex:0;-ms-flex:none;flex:none}@media (min-width: 425px){.m-phone-number-input.--responsive .m-phone-input[data-v-a447a345]{margin-left:-.125rem;margin-top:0;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}}.m-phone-number-input.--responsive .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-top-right-radius:0}@media (min-width: 425px){.m-phone-number-input.--responsive .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--maz-border-radius)}}.m-phone-number-input.--row .m-phone-input[data-v-a447a345]{margin-left:-.125rem}.m-phone-number-input.--row .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.m-phone-number-input.--col .m-phone-input[data-v-a447a345]{margin-top:-.125rem;margin-left:0;-webkit-box-flex:0;-ms-flex:none;flex:none}.m-phone-number-input.--col .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--maz-border-radius)}.m-phone-number-input[data-v-d8d7fc2e]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;vertical-align:top}.m-phone-number-input.--block[data-v-d8d7fc2e]{width:100%}.m-phone-number-input.--col[data-v-d8d7fc2e],.m-phone-number-input.--responsive[data-v-d8d7fc2e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 425px){.m-phone-number-input.--responsive[data-v-d8d7fc2e]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}
|
|
1
|
+
.m-lazy-img-component[data-v-83e40430]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:top;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-lazy-img-component.--block[data-v-83e40430],.m-lazy-img-component.--block img[data-v-83e40430]{width:100%}.m-lazy-img-component-loader[data-v-83e40430]{position:absolute;top:0;right:0;bottom:0;left:0;display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-lazy-img-component.--height-full img[data-v-83e40430]{max-height:100%!important;width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;max-width:-webkit-min-content!important;max-width:-moz-min-content!important;max-width:min-content!important}.m-lazy-img-component.m-lazy-error[data-v-83e40430]:not(.m-lazy-no-photo){background-color:var(--maz-color-bg-light)}.m-lazy-img-component.m-lazy-error:not(.m-lazy-no-photo) img[data-v-83e40430]{height:50%;width:50%}.m-lazy-img-component.m-lazy-loading .m-lazy-img-component-loader[data-v-83e40430]{display:-webkit-box;display:-ms-flexbox;display:flex}.m-input[data-v-1443c13f]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;vertical-align:top}.m-input.--block[data-v-1443c13f]{width:100%}.m-input-top-label[data-v-1443c13f]{margin-bottom:.5rem;color:var(--maz-color-text)}.m-input-bottom-text[data-v-1443c13f]{margin-top:.25rem;font-size:.875rem;line-height:1.25rem}.m-input-wrapper[data-v-1443c13f]{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden;border-width:var(--maz-border-width);border-style:solid;background-color:var(--maz-color-bg);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s}.m-input-wrapper.--block[data-v-1443c13f]{width:100%}.m-input-wrapper.--default-border[data-v-1443c13f]{border-color:var(--maz-border-color)}.m-input-wrapper.--default-border[data-v-1443c13f]:is([class~=dark] *){border-color:var(--maz-color-bg-lighter)}.m-input-wrapper-input[data-v-1443c13f]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;max-width:100%;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.m-input-wrapper-input.--xl[data-v-1443c13f]{height:calc(4rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--xl .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--xl .m-input-label[data-v-1443c13f]{font-size:1.25rem;line-height:1.75rem}.m-input-wrapper-input.--lg[data-v-1443c13f]{height:calc(3.5rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--lg .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--lg .m-input-label[data-v-1443c13f]{font-size:1.125rem;line-height:1.75rem}.m-input-wrapper-input.--md[data-v-1443c13f]{height:calc(3rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--sm[data-v-1443c13f]{height:calc(2.5rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--sm .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--sm .m-input-label[data-v-1443c13f]{font-size:.875rem;line-height:1.25rem}.m-input-wrapper-input.--xs[data-v-1443c13f]{height:calc(2rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--xs .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--xs .m-input-label[data-v-1443c13f]{font-size:.75rem;line-height:1rem}.m-input-wrapper-input.--mini[data-v-1443c13f]{height:calc(1.5rem - (var(--maz-border-width) * 2))}.m-input-wrapper-input.--mini .m-input-input[data-v-1443c13f],.m-input-wrapper-input.--mini .m-input-label[data-v-1443c13f]{font-size:.75rem;line-height:1rem}.m-input-wrapper-right[data-v-1443c13f],.m-input-wrapper-left[data-v-1443c13f]{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex}.m-input-wrapper-right[data-v-1443c13f]>:not([hidden])~:not([hidden]),.m-input-wrapper-left[data-v-1443c13f]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.m-input-wrapper-right[data-v-1443c13f],.m-input-wrapper-left[data-v-1443c13f]{padding-top:.25rem;padding-bottom:.25rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-input-wrapper-right[data-v-1443c13f]{padding-right:.5rem}.m-input-wrapper-left[data-v-1443c13f]{padding-left:.5rem}.m-input-wrapper.--rounded-sm[data-v-1443c13f]{border-radius:.125rem}.m-input-wrapper.--rounded-md[data-v-1443c13f]{border-radius:.375rem}.m-input-wrapper.--rounded-lg[data-v-1443c13f]{border-radius:var(--maz-border-radius)}.m-input-wrapper.--rounded-xl[data-v-1443c13f]{border-radius:.75rem}.m-input-wrapper.--rounded-full[data-v-1443c13f]{border-radius:9999px}.m-input-input[data-v-1443c13f]{margin:0;height:100%;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-style:none;background-color:transparent;padding-left:1rem;padding-right:1rem;padding-top:0;padding-bottom:0;color:var(--maz-color-text);--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.m-input-input[data-v-1443c13f]:-webkit-autofill,.m-input-input[data-v-1443c13f]:-webkit-autofill:hover,.m-input-input[data-v-1443c13f]:-webkit-autofill:focus{-webkit-text-fill-color:var(--maz-color-text);-webkit-box-shadow:0 0 0 1000px var(--maz-color-primary-50) inset;box-shadow:0 0 0 1000px var(--maz-color-primary-50) inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.m-input-input[data-v-1443c13f]::-webkit-input-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]::-moz-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]:-ms-input-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]::-ms-input-placeholder{color:var(--maz-color-muted)}.m-input-input[data-v-1443c13f]::placeholder{color:var(--maz-color-muted)}.m-input-label[data-v-1443c13f]{pointer-events:none;position:absolute;left:.75rem;width:100%;-webkit-transform-origin:top left;transform-origin:top left;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;line-height:1.5rem;width:calc(100% + 1.3rem);-webkit-transition:-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:transform .2s cubic-bezier(0,0,.2,1) 0ms,-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms}.m-input:not(.--should-up) .m-input-label[data-v-1443c13f]{width:calc(100% - .75rem)}.m-input.--should-up .m-input-label[data-v-1443c13f]{-webkit-transform:scale(.8) translateY(-.65em);transform:scale(.8) translateY(-.65em)}.m-input[data-v-1443c13f]:not(.--has-state){color:var(--maz-color-muted)}.m-input.--has-z-2 .m-input-wrapper[data-v-1443c13f]{z-index:2}.m-input.--is-readonly .m-input-input[data-v-1443c13f]{cursor:default}.m-input.--is-disabled .m-input-wrapper[data-v-1443c13f]{background-color:var(--maz-color-bg-lighter);color:var(--maz-color-muted)}.m-input.--is-disabled .m-input-input[data-v-1443c13f]{cursor:not-allowed;color:var(--maz-color-muted)}.m-input:not(.--is-disabled) .m-input-wrapper[data-v-1443c13f]:is([class~=dark] *){background-color:var(--maz-color-bg-light)}.m-input.--is-focused .m-input-wrapper[data-v-1443c13f]{z-index:3}.m-input.--has-label .m-input-label[data-v-1443c13f]{padding-right:.75rem}[dir=rtl] .m-input.--has-label .m-input-label[data-v-1443c13f]{padding-right:0;padding-left:.75rem}.m-input.--has-label .m-input-input[data-v-1443c13f]{padding-left:.75rem;padding-right:.75rem;padding-top:1rem}html.dark .m-input-input[data-v-1443c13f]:-webkit-autofill,html.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:hover,html.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:focus,.m-input.dark .m-input-input[data-v-1443c13f]:-webkit-autofill,.m-input.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:hover,.m-input.dark .m-input-input[data-v-1443c13f]:-webkit-autofill:focus{-webkit-text-fill-color:var(--maz-color-text);-webkit-box-shadow:0 0 0 1000px var(--maz-color-bg-lighter) inset;box-shadow:0 0 0 1000px var(--maz-color-bg-lighter) inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.m-select[data-v-07cbef8c]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:top}.m-select.--mini[data-v-07cbef8c],.m-select.--xs[data-v-07cbef8c]{font-size:.75rem;line-height:1rem}.m-select.--sm[data-v-07cbef8c]{font-size:.875rem;line-height:1.25rem}.m-select.--md[data-v-07cbef8c]{font-size:1rem;line-height:1.5rem}.m-select.--lg[data-v-07cbef8c]{font-size:1.125rem;line-height:1.75rem}.m-select.--xl[data-v-07cbef8c]{font-size:1.25rem;line-height:1.75rem}.m-select.--block[data-v-07cbef8c]{width:100%}.m-select[data-v-07cbef8c]:not(.--disabled) .m-input-input{cursor:pointer}.m-select-input[data-v-07cbef8c] .m-input-input,.m-select-input.--has-label[data-v-07cbef8c] .m-input-input{padding-right:0}.m-select-input__toggle-button[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;background-color:transparent;padding-left:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-select-input[data-v-07cbef8c] input{caret-color:transparent}.m-select-chevron[data-v-07cbef8c]{font-size:1.2em;color:var(--maz-color-text);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.m-select.--is-open .m-select-chevron[data-v-07cbef8c]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.m-select .m-select-list[data-v-07cbef8c]{position:absolute;z-index:1050;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.25rem;overflow:hidden;border-radius:var(--maz-border-radius);background-color:var(--maz-color-bg);padding:.5rem;-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}.m-select .m-select-list[data-v-07cbef8c]:is([class~=dark] *){border-width:var(--maz-border-width);border-color:var(--maz-color-bg-light)}.m-select .m-select-list-optgroup[data-v-07cbef8c]{-webkit-box-flex:0;-ms-flex:none;flex:none;padding:.125rem;text-align:start;font-size:.875em;color:var(--maz-color-muted)}.m-select .m-select-list[data-v-07cbef8c]{min-width:3.5rem}.m-select .m-select-list.--top[data-v-07cbef8c]{bottom:100%}.m-select .m-select-list.--left[data-v-07cbef8c]{left:0}.m-select .m-select-list.--right[data-v-07cbef8c]{right:0}.m-select .m-select-list.--bottom[data-v-07cbef8c]{top:100%}.m-select .m-select-list__scroll-wrapper[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.25rem;overflow:auto}.m-select .m-select-list__no-results[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:1rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-select .m-select-list-item[data-v-07cbef8c]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--maz-border-radius);background-color:transparent;padding-left:.75rem;padding-right:.75rem;padding-top:.5em;padding-bottom:.5em;text-align:start;font-size:1em;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-select .m-select-list-item[data-v-07cbef8c]:focus-within{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item[data-v-07cbef8c]:hover{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item span[data-v-07cbef8c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-select .m-select-list-item.--is-keyboard-selected[data-v-07cbef8c]{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item.--is-keyboard-selected[data-v-07cbef8c]:is([class~=dark] *){background-color:var(--maz-color-bg-lighter)}.m-select .m-select-list-item.--is-keyboard-selected.--is-selected[data-v-07cbef8c],.m-select .m-select-list-item.--is-keyboard-selected.--is-selected[data-v-07cbef8c]:hover{background-color:var(--keyboard-selected-bg-color)}.m-select .m-select-list-item.--is-none-value[data-v-07cbef8c]{color:var(--maz-color-muted)}.m-select .m-select-list-item.--is-selected[data-v-07cbef8c]{color:var(--selected-text-color);background-color:var(--selected-bg-color)}.m-select .m-select-list-item.--is-selected[data-v-07cbef8c]:hover{background-color:var(--selected-bg-color)}.m-select .m-select-list-item.--is-selected.--transparent[data-v-07cbef8c]{background-color:var(--maz-color-bg)}.m-select button.maz-custom[data-v-07cbef8c]{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none}.m-country-selector[data-v-e2fee821]{position:relative}.m-country-selector__country-flag[data-v-e2fee821]{position:absolute;left:.813rem;z-index:4;outline:none;border:none;padding:0;margin:0;top:1.25rem;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-country-selector__country-flag.--should-have-bottom-flag[data-v-e2fee821]{bottom:2px}.m-country-selector__select[data-v-e2fee821] .m-input-label{padding:0!important}.m-country-selector__select__item[data-v-e2fee821]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem}.m-country-selector__select__item__flag-container[data-v-e2fee821]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-country-selector:not(.--no-flags) .m-country-selector__select[data-v-e2fee821] .m-select-input input{padding-left:2.5rem!important}.m-phone-number-input.--responsive .m-country-selector[data-v-e2fee821]{min-width:100%}@media (min-width: 425px){.m-phone-number-input.--responsive .m-country-selector[data-v-e2fee821]{min-width:inherit}}.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821]{min-width:100%}@media (min-width: 425px){.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821]{min-width:inherit}}.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-bottom-right-radius:0;border-bottom-left-radius:0}@media (min-width: 425px){.m-phone-number-input.--responsive .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-bottom-right-radius:var(--maz-border-radius);border-bottom-left-radius:var(--maz-border-radius);border-top-right-radius:0;border-bottom-right-radius:0}}.m-phone-number-input.--row .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.m-phone-number-input.--col .m-country-selector[data-v-e2fee821],.m-phone-number-input.--col .m-country-selector__select[data-v-e2fee821]{min-width:100%}.m-phone-number-input.--col .m-country-selector__select[data-v-e2fee821] .m-select-input .m-input-wrapper{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--maz-border-radius)}.m-phone-input[data-v-a447a345]{min-width:13rem;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.m-phone-input.--error[data-v-a447a345],.m-phone-input.--focused[data-v-a447a345]{z-index:1}.m-phone-number-input.--responsive .m-phone-input[data-v-a447a345]{margin-top:-.125rem;-webkit-box-flex:0;-ms-flex:none;flex:none}@media (min-width: 425px){.m-phone-number-input.--responsive .m-phone-input[data-v-a447a345]{margin-left:-.125rem;margin-top:0;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}}.m-phone-number-input.--responsive .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-top-right-radius:0}@media (min-width: 425px){.m-phone-number-input.--responsive .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--maz-border-radius)}}.m-phone-number-input.--row .m-phone-input[data-v-a447a345]{margin-left:-.125rem}.m-phone-number-input.--row .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.m-phone-number-input.--col .m-phone-input[data-v-a447a345]{margin-top:-.125rem;margin-left:0;-webkit-box-flex:0;-ms-flex:none;flex:none}.m-phone-number-input.--col .m-phone-input.--border-radius[data-v-a447a345] .m-input-wrapper{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--maz-border-radius)}.m-phone-number-input[data-v-a7477624]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;vertical-align:top}.m-phone-number-input.--block[data-v-a7477624]{width:100%}.m-phone-number-input.--col[data-v-a7477624],.m-phone-number-input.--responsive[data-v-a7477624]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 425px){.m-phone-number-input.--responsive[data-v-a7477624]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./MazPhoneNumberInput-
|
|
2
|
+
import { _ as F } from "./MazPhoneNumberInput-BAGcArnr.mjs";
|
|
3
3
|
import '../assets/MazBtn.css';const O = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "m-btn-loader-container"
|
|
@@ -28,7 +28,7 @@ import '../assets/MazBtn.css';const O = {
|
|
|
28
28
|
justify: { default: "center" }
|
|
29
29
|
},
|
|
30
30
|
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-
|
|
31
|
+
const n = y, v = m(() => import("./MazSpinner-DOPjHhPx.mjs")), c = m(() => import("./MazIcon-BSUswKRF.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
32
|
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
33
|
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
34
|
return (e, D) => (t(), l(r(f.value), {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, computed as r, ref as E, openBlock as v, createElementBlock as k, unref as c, normalizeClass as u, normalizeStyle as t, createElementVNode as d, mergeProps as A, createVNode as M, renderSlot as _, createTextVNode as D, toDisplayString as y, createCommentVNode as R } from "vue";
|
|
2
|
-
import { u as $, _ as q } from "./MazPhoneNumberInput-
|
|
2
|
+
import { u as $, _ as q } from "./MazPhoneNumberInput-BAGcArnr.mjs";
|
|
3
3
|
import F from "./check-C9Q_W85g.mjs";
|
|
4
4
|
import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id", "checked", "disabled", "name"], P = { class: "m-checkbox__text" }, T = /* @__PURE__ */ N({
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./MazPhoneNumberInput-
|
|
2
|
+
import { i as q } from "./MazPhoneNumberInput-BAGcArnr.mjs";
|
|
3
3
|
const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
package/components/chunks/{MazPhoneNumberInput-BQjByOtQ.mjs → MazPhoneNumberInput-BAGcArnr.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '../assets/MazPhoneNumberInput.css';var Ze = Object.defineProperty;
|
|
2
2
|
var Xe = (a, e, t) => e in a ? Ze(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var X = (a, e, t) => Xe(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { computed as
|
|
4
|
+
import { computed as v, useId as xe, inject as _e, defineComponent as se, defineAsyncComponent as R, withDirectives as Ie, openBlock as b, createElementBlock as S, normalizeClass as O, normalizeStyle as x, Fragment as Ce, renderList as Oe, createElementVNode as q, mergeProps as ee, createVNode as U, unref as I, createCommentVNode as V, renderSlot as F, ref as k, onMounted as Ae, useSlots as eo, toDisplayString as _, createBlock as K, resolveDynamicComponent as Be, toHandlers as oo, vModelDynamic as to, createTextVNode as lo, withModifiers as ae, withCtx as W, onBeforeMount as Te, nextTick as de, Transition as ao, mergeModels as so, useModel as no, watch as ve, provide as ro } from "vue";
|
|
5
5
|
import { getCountries as Me, getCountryCallingCode as ce, isSupportedCountry as io, parsePhoneNumberFromString as uo, getExampleNumber as co, AsYouType as mo } from "libphonenumber-js";
|
|
6
6
|
function we({
|
|
7
7
|
componentName: a,
|
|
8
8
|
providedId: e
|
|
9
9
|
}) {
|
|
10
|
-
return
|
|
10
|
+
return v(() => e ?? `${a}-${xe().replace(/:/g, "")}`);
|
|
11
11
|
}
|
|
12
12
|
function Le(a, e = "20x15") {
|
|
13
13
|
return `https://flagcdn.com/${e}/${a.toLowerCase()}.png`;
|
|
@@ -35,7 +35,7 @@ const fo = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAA
|
|
|
35
35
|
threshold: 0.1
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
class
|
|
38
|
+
class vo {
|
|
39
39
|
constructor(e = {}) {
|
|
40
40
|
X(this, "observers", []);
|
|
41
41
|
X(this, "defaultOptions", ho);
|
|
@@ -150,16 +150,16 @@ class yo {
|
|
|
150
150
|
handleIntersectionObserver(e, t, o, i) {
|
|
151
151
|
var r, g;
|
|
152
152
|
this.observers.push(i);
|
|
153
|
-
for (const
|
|
154
|
-
if (
|
|
155
|
-
if ((g = (r = this.options).onIntersecting) == null || g.call(r,
|
|
153
|
+
for (const y of o)
|
|
154
|
+
if (y.isIntersecting) {
|
|
155
|
+
if ((g = (r = this.options).onIntersecting) == null || g.call(r, y.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
156
156
|
return;
|
|
157
157
|
this.loadImage(e, t);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
createObserver(e, t) {
|
|
161
|
-
const o = (g,
|
|
162
|
-
this.handleIntersectionObserver(e, t, g,
|
|
161
|
+
const o = (g, y) => {
|
|
162
|
+
this.handleIntersectionObserver(e, t, g, y);
|
|
163
163
|
}, i = this.options.observerOptions;
|
|
164
164
|
new IntersectionObserver(o, i).observe(e);
|
|
165
165
|
}
|
|
@@ -189,10 +189,10 @@ class yo {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
let ue;
|
|
192
|
-
const
|
|
192
|
+
const yo = {
|
|
193
193
|
created(a, e) {
|
|
194
194
|
const t = typeof e.value == "object" ? e.value : {};
|
|
195
|
-
ue = new
|
|
195
|
+
ue = new vo(t), ue.add(a, e);
|
|
196
196
|
},
|
|
197
197
|
updated(a, e) {
|
|
198
198
|
ue.update(a, e);
|
|
@@ -224,7 +224,7 @@ const vo = {
|
|
|
224
224
|
},
|
|
225
225
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
226
226
|
setup(a) {
|
|
227
|
-
const e = a, t = R(() => import("./MazSpinner-
|
|
227
|
+
const e = a, t = R(() => import("./MazSpinner-DOPjHhPx.mjs")), o = v(() => e.image || e.src), i = v(() => {
|
|
228
228
|
var r;
|
|
229
229
|
return typeof o.value == "string" ? [{ srcset: o.value }] : (r = o.value) == null ? void 0 : r.sources;
|
|
230
230
|
});
|
|
@@ -238,9 +238,9 @@ const vo = {
|
|
|
238
238
|
(b(!0), S(
|
|
239
239
|
Ce,
|
|
240
240
|
null,
|
|
241
|
-
Oe(i.value, ({ srcset:
|
|
241
|
+
Oe(i.value, ({ srcset: y, media: L }, C) => (b(), S("source", {
|
|
242
242
|
key: C,
|
|
243
|
-
"data-lazy-srcset":
|
|
243
|
+
"data-lazy-srcset": y,
|
|
244
244
|
media: L
|
|
245
245
|
}, null, 8, go))),
|
|
246
246
|
128
|
|
@@ -260,16 +260,16 @@ const vo = {
|
|
|
260
260
|
6
|
|
261
261
|
/* CLASS, STYLE */
|
|
262
262
|
)), [
|
|
263
|
-
[I(
|
|
263
|
+
[I(yo), {
|
|
264
264
|
noPhoto: r.noPhoto,
|
|
265
265
|
loadOnce: r.loadOnce,
|
|
266
266
|
observerOptions: r.observerOptions,
|
|
267
267
|
fallbackSrc: r.fallbackSrc,
|
|
268
268
|
observerOnce: !r.noObserverOnce,
|
|
269
|
-
onIntersecting: (
|
|
270
|
-
onLoading: (
|
|
271
|
-
onLoaded: (
|
|
272
|
-
onError: (
|
|
269
|
+
onIntersecting: (y) => r.$emit("intersecting", y),
|
|
270
|
+
onLoading: (y) => r.$emit("loading", y),
|
|
271
|
+
onLoaded: (y) => r.$emit("loaded", y),
|
|
272
|
+
onError: (y) => r.$emit("error", y)
|
|
273
273
|
}]
|
|
274
274
|
]);
|
|
275
275
|
}
|
|
@@ -352,11 +352,11 @@ function Ao(a, e) {
|
|
|
352
352
|
i[0][r] = r;
|
|
353
353
|
for (let r = 1; r <= t; r++)
|
|
354
354
|
for (let g = 1; g <= o; g++) {
|
|
355
|
-
const
|
|
355
|
+
const y = a[r - 1] === e[g - 1] ? 0 : 1;
|
|
356
356
|
i[r][g] = Math.min(
|
|
357
357
|
i[r - 1][g] + 1,
|
|
358
358
|
i[r][g - 1] + 1,
|
|
359
|
-
i[r - 1][g - 1] +
|
|
359
|
+
i[r - 1][g - 1] + y
|
|
360
360
|
);
|
|
361
361
|
}
|
|
362
362
|
return i[t][o];
|
|
@@ -368,21 +368,21 @@ function Ne(a, e) {
|
|
|
368
368
|
function wo(a, e, t = 0.75) {
|
|
369
369
|
return Ne(a, e) >= t;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
const o =
|
|
371
|
+
function ye(a, e, t = 0.75) {
|
|
372
|
+
const o = v(
|
|
373
373
|
() => me(typeof a == "string" ? a : a.value)
|
|
374
|
-
), i =
|
|
374
|
+
), i = v(
|
|
375
375
|
() => me(typeof e == "string" ? e : e.value)
|
|
376
|
-
), r =
|
|
376
|
+
), r = v(() => typeof t == "number" ? t : t.value), g = v(() => Ne(o.value, i.value));
|
|
377
377
|
return {
|
|
378
|
-
isMatching:
|
|
378
|
+
isMatching: v(
|
|
379
379
|
() => wo(o.value, i.value, r.value)
|
|
380
380
|
),
|
|
381
381
|
score: g
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
function Ke(a, e, t) {
|
|
385
|
-
var g,
|
|
385
|
+
var g, y;
|
|
386
386
|
a.stopPropagation();
|
|
387
387
|
const o = typeof t.value == "function" ? t.value : t.value.handler, i = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
388
388
|
let r = !1;
|
|
@@ -390,7 +390,7 @@ function Ke(a, e, t) {
|
|
|
390
390
|
for (const L of i)
|
|
391
391
|
if (!r && a.target instanceof HTMLElement) {
|
|
392
392
|
const C = (g = document.querySelector(L)) == null ? void 0 : g.getAttribute("id");
|
|
393
|
-
r = (a.target.getAttribute("id") === C || ((
|
|
393
|
+
r = (a.target.getAttribute("id") === C || ((y = document.querySelector(L)) == null ? void 0 : y.contains(a.target))) ?? !1;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
!e.contains(a.target) && !r && (o == null || o(a));
|
|
@@ -473,7 +473,7 @@ const Lo = ["for"], Eo = {
|
|
|
473
473
|
},
|
|
474
474
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
475
475
|
setup(a, { emit: e }) {
|
|
476
|
-
const t = a, o = e, i = R(() => import("./MazBtn-
|
|
476
|
+
const t = a, o = e, i = R(() => import("./MazBtn-CC9H3U2X.mjs")), r = R(() => import("./MazIcon-BSUswKRF.mjs")), g = R(() => import("./eye-slash-BoO00xzs.mjs")), y = R(() => import("./eye-f8zAUc30.mjs")), L = R(() => import("./check-C9Q_W85g.mjs")), C = k(!1), h = k(!1), T = k(), c = we({
|
|
477
477
|
componentName: "MazInput",
|
|
478
478
|
providedId: t.id
|
|
479
479
|
});
|
|
@@ -481,7 +481,7 @@ const Lo = ["for"], Eo = {
|
|
|
481
481
|
var s;
|
|
482
482
|
t.autoFocus && ((s = T.value) == null || s.focus());
|
|
483
483
|
});
|
|
484
|
-
const A =
|
|
484
|
+
const A = v(() => t.type === "password"), m = v(() => C.value ? "text" : t.type), p = v(() => {
|
|
485
485
|
if (!t.noBorder) {
|
|
486
486
|
if (t.error)
|
|
487
487
|
return "maz-border-danger";
|
|
@@ -509,11 +509,11 @@ const Lo = ["for"], Eo = {
|
|
|
509
509
|
}
|
|
510
510
|
return "--default-border";
|
|
511
511
|
}
|
|
512
|
-
}), E = eo(), G =
|
|
512
|
+
}), E = eo(), G = v(() => {
|
|
513
513
|
const { required: s, placeholder: M } = t;
|
|
514
514
|
if (M)
|
|
515
515
|
return s ? `${M} *` : M;
|
|
516
|
-
}), oe =
|
|
516
|
+
}), oe = v(() => H.value !== void 0 && H.value !== ""), j = Bo(
|
|
517
517
|
(s) => {
|
|
518
518
|
o("update:model-value", s);
|
|
519
519
|
},
|
|
@@ -524,10 +524,10 @@ const Lo = ["for"], Eo = {
|
|
|
524
524
|
return j(s);
|
|
525
525
|
o("update:model-value", s);
|
|
526
526
|
}
|
|
527
|
-
const H =
|
|
527
|
+
const H = v({
|
|
528
528
|
get: () => t.modelValue,
|
|
529
529
|
set: (s) => Q(s)
|
|
530
|
-
}), N =
|
|
530
|
+
}), N = v(() => (!!t.label || !!t.hint) && (h.value || !!oe.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), n = v(() => !!t.label || !!t.hint);
|
|
531
531
|
function w() {
|
|
532
532
|
return !!E["right-icon"] || A.value || !!E["valid-button"] || t.validButton || !!t.rightIcon;
|
|
533
533
|
}
|
|
@@ -673,7 +673,7 @@ const Lo = ["for"], Eo = {
|
|
|
673
673
|
C.value ? (b(), K(I(g), {
|
|
674
674
|
key: 0,
|
|
675
675
|
class: "maz-text-xl maz-text-muted"
|
|
676
|
-
})) : (b(), K(I(
|
|
676
|
+
})) : (b(), K(I(y), {
|
|
677
677
|
key: 1,
|
|
678
678
|
class: "maz-text-xl maz-text-muted"
|
|
679
679
|
}))
|
|
@@ -762,22 +762,22 @@ const Lo = ["for"], Eo = {
|
|
|
762
762
|
},
|
|
763
763
|
emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
|
|
764
764
|
setup(a, { expose: e, emit: t }) {
|
|
765
|
-
const o = a, i = t, r = R(() => import("./MazCheckbox-
|
|
765
|
+
const o = a, i = t, r = R(() => import("./MazCheckbox-CbfTOJdy.mjs")), g = R(() => import("./magnifying-glass--nBiyXot.mjs")), y = R(() => import("./chevron-down-BkvtON3b.mjs")), L = R(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
766
766
|
e({
|
|
767
767
|
/** Method to open the option list */
|
|
768
768
|
openList: re,
|
|
769
769
|
/** Method to close the option list */
|
|
770
770
|
closeList: le
|
|
771
771
|
});
|
|
772
|
-
const C = k(!1), h = k(), T =
|
|
772
|
+
const C = k(!1), h = k(), T = v(
|
|
773
773
|
() => ["black", "transparent", "white"].includes(o.color)
|
|
774
|
-
), c =
|
|
774
|
+
), c = v(
|
|
775
775
|
() => T.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
|
|
776
|
-
), A =
|
|
776
|
+
), A = v(
|
|
777
777
|
() => T.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-100)`
|
|
778
|
-
), m =
|
|
778
|
+
), m = v(
|
|
779
779
|
() => T.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-200)`
|
|
780
|
-
), p =
|
|
780
|
+
), p = v(() => C.value || o.open), E = we({
|
|
781
781
|
componentName: "MazSelect",
|
|
782
782
|
providedId: o.id
|
|
783
783
|
});
|
|
@@ -796,7 +796,7 @@ const Lo = ["for"], Eo = {
|
|
|
796
796
|
[o.optionInputValueKey]: l[o.optionInputValueKey]
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
|
-
const j =
|
|
799
|
+
const j = v(() => {
|
|
800
800
|
var d;
|
|
801
801
|
const l = [];
|
|
802
802
|
if (!((d = o.options) != null && d.length))
|
|
@@ -809,7 +809,7 @@ const Lo = ["for"], Eo = {
|
|
|
809
809
|
)
|
|
810
810
|
) : l.push(oe(u));
|
|
811
811
|
return l;
|
|
812
|
-
}), Q =
|
|
812
|
+
}), Q = v(
|
|
813
813
|
() => {
|
|
814
814
|
var l;
|
|
815
815
|
return ((l = j.value) == null ? void 0 : l.filter((d) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(d[o.optionValueKey]) && !$(d[o.optionValueKey]) : !1 : o.modelValue === d[o.optionValueKey] && !$(d[o.optionValueKey]))) ?? [];
|
|
@@ -829,7 +829,7 @@ const Lo = ["for"], Eo = {
|
|
|
829
829
|
(f) => f[o.optionValueKey] === l[o.optionValueKey]
|
|
830
830
|
)) ?? !1) && !$(l[o.optionValueKey]);
|
|
831
831
|
}
|
|
832
|
-
const te =
|
|
832
|
+
const te = v(() => {
|
|
833
833
|
var d;
|
|
834
834
|
if (o.multiple && o.modelValue && Array.isArray(o.modelValue))
|
|
835
835
|
return o.modelValue.map(
|
|
@@ -842,7 +842,7 @@ const Lo = ["for"], Eo = {
|
|
|
842
842
|
(u) => u[o.optionValueKey] === o.modelValue
|
|
843
843
|
);
|
|
844
844
|
return $(o.modelValue) || l == null ? void 0 : l[o.optionInputValueKey];
|
|
845
|
-
}), pe =
|
|
845
|
+
}), pe = v(
|
|
846
846
|
() => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
847
847
|
), J = k(""), s = k("");
|
|
848
848
|
function M(l, d) {
|
|
@@ -852,10 +852,10 @@ const Lo = ["for"], Eo = {
|
|
|
852
852
|
var d;
|
|
853
853
|
return l ? (d = j.value) == null ? void 0 : d.filter((u) => {
|
|
854
854
|
const f = u[o.optionLabelKey], z = u[o.optionValueKey], B = u[o.optionInputValueKey], D = o.searchThreshold;
|
|
855
|
-
return M(f, l) || M(B, l) || M(z, l) || typeof f == "string" &&
|
|
855
|
+
return M(f, l) || M(B, l) || M(z, l) || typeof f == "string" && ye(f, l, D).isMatching.value || typeof B == "string" && ye(B, l, D).isMatching.value || typeof z == "string" && ye(z, l, D).isMatching.value;
|
|
856
856
|
}) : j.value;
|
|
857
857
|
}
|
|
858
|
-
const Y =
|
|
858
|
+
const Y = v(() => Z(J.value));
|
|
859
859
|
async function le(l) {
|
|
860
860
|
var u, f;
|
|
861
861
|
if (!p.value)
|
|
@@ -995,7 +995,7 @@ const Lo = ["for"], Eo = {
|
|
|
995
995
|
"aria-label": `${p.value ? "collapse" : "expand"} list of options`,
|
|
996
996
|
onClick: ae(je, ["stop"])
|
|
997
997
|
}, [
|
|
998
|
-
U(I(
|
|
998
|
+
U(I(y), { class: "m-select-chevron maz-text-xl" })
|
|
999
999
|
], 8, Fo)
|
|
1000
1000
|
]),
|
|
1001
1001
|
_: 1
|
|
@@ -1152,14 +1152,14 @@ function jo(a, e) {
|
|
|
1152
1152
|
const g = qo(a, r, e);
|
|
1153
1153
|
if (g)
|
|
1154
1154
|
try {
|
|
1155
|
-
const
|
|
1155
|
+
const y = ce(r);
|
|
1156
1156
|
t.push({
|
|
1157
1157
|
iso2: r,
|
|
1158
|
-
dialCode:
|
|
1158
|
+
dialCode: y,
|
|
1159
1159
|
name: g
|
|
1160
1160
|
});
|
|
1161
|
-
} catch (
|
|
1162
|
-
console.error(`[MazPhoneNumberInput](getCountryCallingCode) ${
|
|
1161
|
+
} catch (y) {
|
|
1162
|
+
console.error(`[MazPhoneNumberInput](getCountryCallingCode) ${y}`);
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
1165
|
return t;
|
|
@@ -1218,7 +1218,7 @@ const Qo = ["id"], Go = {
|
|
|
1218
1218
|
},
|
|
1219
1219
|
emits: ["update:model-value"],
|
|
1220
1220
|
setup(a) {
|
|
1221
|
-
const e = a, { phoneNumber: t } = Fe("data"), o = k(), { getCountriesList: i } = Se(), r =
|
|
1221
|
+
const e = a, { phoneNumber: t } = Fe("data"), o = k(), { getCountriesList: i } = Se(), r = v(() => i(e.countryLocale, e.customCountriesList)), g = v(
|
|
1222
1222
|
() => {
|
|
1223
1223
|
var c;
|
|
1224
1224
|
return (c = r.value) == null ? void 0 : c.filter((A) => {
|
|
@@ -1226,7 +1226,7 @@ const Qo = ["id"], Go = {
|
|
|
1226
1226
|
return !((m = e.ignoredCountries) != null && m.includes(A.iso2));
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
|
-
),
|
|
1229
|
+
), y = v(() => {
|
|
1230
1230
|
const c = e.onlyCountries || e.preferredCountries;
|
|
1231
1231
|
return c == null ? void 0 : c.map(
|
|
1232
1232
|
(A) => {
|
|
@@ -1234,7 +1234,7 @@ const Qo = ["id"], Go = {
|
|
|
1234
1234
|
return (m = g.value) == null ? void 0 : m.find((p) => p.iso2.includes(A));
|
|
1235
1235
|
}
|
|
1236
1236
|
);
|
|
1237
|
-
}), L =
|
|
1237
|
+
}), L = v(
|
|
1238
1238
|
() => {
|
|
1239
1239
|
var c;
|
|
1240
1240
|
return (c = g.value) == null ? void 0 : c.filter((A) => {
|
|
@@ -1242,9 +1242,9 @@ const Qo = ["id"], Go = {
|
|
|
1242
1242
|
return !((m = e.preferredCountries) != null && m.includes(A.iso2));
|
|
1243
1243
|
});
|
|
1244
1244
|
}
|
|
1245
|
-
), C =
|
|
1246
|
-
() => e.preferredCountries ? [...
|
|
1247
|
-
), h =
|
|
1245
|
+
), C = v(
|
|
1246
|
+
() => e.preferredCountries ? [...y.value ?? [], ...L.value ?? []] : e.onlyCountries ? y.value : g.value
|
|
1247
|
+
), h = v(
|
|
1248
1248
|
() => {
|
|
1249
1249
|
var c;
|
|
1250
1250
|
return (c = C.value) == null ? void 0 : c.map(
|
|
@@ -1519,20 +1519,20 @@ const at = /* @__PURE__ */ se({
|
|
|
1519
1519
|
}),
|
|
1520
1520
|
emits: ["update:modelValue"],
|
|
1521
1521
|
setup(a) {
|
|
1522
|
-
const { getPhoneNumberExample: e, getAsYouTypeFormat: t, loadExamples: o } = Re(), { sanitizePhoneNumber: i } = Se(), { results: r, selectedCountry: g } = Fe("data"),
|
|
1523
|
-
const m = r.value.isValid ? r.value.formatNational :
|
|
1522
|
+
const { getPhoneNumberExample: e, getAsYouTypeFormat: t, loadExamples: o } = Re(), { sanitizePhoneNumber: i } = Se(), { results: r, selectedCountry: g } = Fe("data"), y = no(a, "modelValue"), L = v(() => {
|
|
1523
|
+
const m = r.value.isValid ? r.value.formatNational : y.value;
|
|
1524
1524
|
return t(g.value, m) || m;
|
|
1525
|
-
}), C = k(!1), h =
|
|
1526
|
-
get: () => !C.value && a.autoFormat ? L.value :
|
|
1525
|
+
}), C = k(!1), h = v({
|
|
1526
|
+
get: () => !C.value && a.autoFormat ? L.value : y.value,
|
|
1527
1527
|
set: (m) => {
|
|
1528
|
-
|
|
1528
|
+
y.value = i(m);
|
|
1529
1529
|
}
|
|
1530
1530
|
});
|
|
1531
1531
|
function T(m) {
|
|
1532
1532
|
const p = e(m);
|
|
1533
1533
|
return p ? `${a.locales.phoneInput.example} ${p}` : void 0;
|
|
1534
1534
|
}
|
|
1535
|
-
const c =
|
|
1535
|
+
const c = v(() => {
|
|
1536
1536
|
var p;
|
|
1537
1537
|
if (a.label || a.placeholder)
|
|
1538
1538
|
return a.label || a.placeholder;
|
|
@@ -1543,7 +1543,7 @@ const at = /* @__PURE__ */ se({
|
|
|
1543
1543
|
const E = T(g.value);
|
|
1544
1544
|
return (p = r.value) != null && p.isValid || !E ? m : E;
|
|
1545
1545
|
}
|
|
1546
|
-
}), A =
|
|
1546
|
+
}), A = v(() => a.placeholder ? { placeholder: c.value } : { label: c.value });
|
|
1547
1547
|
return Ae(() => {
|
|
1548
1548
|
a.noExample || o();
|
|
1549
1549
|
}), (m, p) => (b(), K(ze, ee({
|
|
@@ -1625,25 +1625,25 @@ const at = /* @__PURE__ */ se({
|
|
|
1625
1625
|
},
|
|
1626
1626
|
emits: ["update:model-value", "country-code", "update:country-code", "update", "data"],
|
|
1627
1627
|
setup(a, { emit: e }) {
|
|
1628
|
-
const t = a, o = e, { fetchCountryCode: i, getBrowserLocale: r } = Se(), { isCountryAvailable: g, getPhoneNumberResults:
|
|
1628
|
+
const t = a, o = e, { fetchCountryCode: i, getBrowserLocale: r } = Se(), { isCountryAvailable: g, getPhoneNumberResults: y } = Re(), L = we({
|
|
1629
1629
|
componentName: "MazPhoneNumberInput",
|
|
1630
1630
|
providedId: t.id
|
|
1631
|
-
}), C = k(), h = k(), T = k(!1), c = k(!1), A =
|
|
1631
|
+
}), C = k(), h = k(), T = k(!1), c = k(!1), A = v(() => ({
|
|
1632
1632
|
...Xo,
|
|
1633
1633
|
...t.translations
|
|
1634
|
-
})), m =
|
|
1634
|
+
})), m = v(() => t.autoFormat && !t.noFormattingAsYouType), p = k({
|
|
1635
1635
|
isValid: !1,
|
|
1636
1636
|
countryCode: t.countryCode ?? t.defaultCountryCode,
|
|
1637
1637
|
phoneNumber: t.modelValue
|
|
1638
1638
|
}), E = k();
|
|
1639
1639
|
Te(async () => {
|
|
1640
|
-
if (N({ countryCode: t.countryCode ?? t.defaultCountryCode }), t.fetchCountry && !h.value) {
|
|
1640
|
+
if ((t.countryCode || t.defaultCountryCode) && !h.value && N({ countryCode: t.countryCode ?? t.defaultCountryCode }), t.fetchCountry && !h.value) {
|
|
1641
1641
|
const n = await i();
|
|
1642
1642
|
N({ countryCode: n });
|
|
1643
1643
|
}
|
|
1644
1644
|
}), Ae(() => {
|
|
1645
1645
|
var n;
|
|
1646
|
-
if (!
|
|
1646
|
+
if (!h.value && !t.noUseBrowserLocale) {
|
|
1647
1647
|
const w = (n = r()) == null ? void 0 : n.locale;
|
|
1648
1648
|
N({ countryCode: w });
|
|
1649
1649
|
}
|
|
@@ -1653,7 +1653,7 @@ const at = /* @__PURE__ */ se({
|
|
|
1653
1653
|
countryCode: w = h.value,
|
|
1654
1654
|
checkCountryCode: $ = !1
|
|
1655
1655
|
}) {
|
|
1656
|
-
p.value =
|
|
1656
|
+
p.value = y({
|
|
1657
1657
|
phoneNumber: n,
|
|
1658
1658
|
countryCode: w,
|
|
1659
1659
|
checkCountryCode: $
|
|
@@ -1683,7 +1683,7 @@ const at = /* @__PURE__ */ se({
|
|
|
1683
1683
|
G({ phone: n }), p.value.parsedCountryCode && p.value.parsedCountryCode !== h.value && N({
|
|
1684
1684
|
countryCode: p.value.parsedCountryCode,
|
|
1685
1685
|
updateResults: !1
|
|
1686
|
-
}),
|
|
1686
|
+
}), p.value.isValid && m.value ? C.value = (w = p.value.formatNational) == null ? void 0 : w.trim().replaceAll(new RegExp(/\D/g), "") : C.value = n, T.value = !0, p.value.e164 ? o("update:model-value", p.value.e164) : o("update:model-value", p.value.phoneNumber), setTimeout(() => {
|
|
1687
1687
|
T.value = !1;
|
|
1688
1688
|
}, 0);
|
|
1689
1689
|
}
|
|
@@ -1705,19 +1705,19 @@ const at = /* @__PURE__ */ se({
|
|
|
1705
1705
|
c.value = !1;
|
|
1706
1706
|
}, 0);
|
|
1707
1707
|
}
|
|
1708
|
-
return
|
|
1708
|
+
return ve(
|
|
1709
1709
|
() => t.modelValue ?? t.defaultPhoneNumber,
|
|
1710
1710
|
(n, w) => {
|
|
1711
1711
|
!T.value && n !== w && n !== C.value && H({ newPhoneNumber: n });
|
|
1712
1712
|
},
|
|
1713
1713
|
{ immediate: !0 }
|
|
1714
|
-
),
|
|
1714
|
+
), ve(
|
|
1715
1715
|
() => t.countryCode ?? t.defaultCountryCode,
|
|
1716
1716
|
(n, w) => {
|
|
1717
1717
|
!c.value && n && n !== w && n !== h.value && N({ countryCode: n });
|
|
1718
1718
|
},
|
|
1719
1719
|
{ immediate: !0 }
|
|
1720
|
-
),
|
|
1720
|
+
), ve(
|
|
1721
1721
|
p,
|
|
1722
1722
|
(n) => {
|
|
1723
1723
|
o("update", n), o("data", n);
|
|
@@ -1804,7 +1804,7 @@ const at = /* @__PURE__ */ se({
|
|
|
1804
1804
|
);
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
|
-
}), dt = /* @__PURE__ */ ne(nt, [["__scopeId", "data-v-
|
|
1807
|
+
}), dt = /* @__PURE__ */ ne(nt, [["__scopeId", "data-v-a7477624"]]);
|
|
1808
1808
|
export {
|
|
1809
1809
|
dt as M,
|
|
1810
1810
|
ne as _,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as a } from "./MazPhoneNumberInput-
|
|
2
|
+
import { _ as a } from "./MazPhoneNumberInput-BAGcArnr.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { ThemeConfig } from 'tailwindcss/types/config'
|
|
2
2
|
import { baseColors, variatingColors, variations } from '../variables/colors'
|
|
3
3
|
|
|
4
|
+
type VariatingColorKeys = keyof typeof variatingColors
|
|
5
|
+
|
|
4
6
|
export function getColors() {
|
|
5
|
-
const colors:
|
|
7
|
+
const colors: ThemeConfig['colors'] = {
|
|
6
8
|
...baseColors,
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
for (const color of Object.keys(variatingColors)) {
|
|
10
|
-
|
|
11
|
+
for (const color of Object.keys(variatingColors) as VariatingColorKeys[]) {
|
|
12
|
+
const colorVariations = variations.reduce(
|
|
11
13
|
(colorVariations, variation) => {
|
|
12
14
|
colorVariations[variation]
|
|
13
15
|
= variation === 'DEFAULT'
|
|
@@ -15,9 +17,11 @@ export function getColors() {
|
|
|
15
17
|
: `var(--maz-color-${color}-${variation})`
|
|
16
18
|
return colorVariations
|
|
17
19
|
},
|
|
18
|
-
{} as Record<
|
|
20
|
+
{} as Record<typeof variations[number], string>,
|
|
19
21
|
)
|
|
22
|
+
|
|
23
|
+
colors[color] = colorVariations
|
|
20
24
|
}
|
|
21
25
|
|
|
22
|
-
return colors
|
|
26
|
+
return colors
|
|
23
27
|
}
|
|
@@ -39,7 +39,7 @@ export declare const baseConfig: {
|
|
|
39
39
|
'lap-2xl': string;
|
|
40
40
|
'lap-3xl': string;
|
|
41
41
|
};
|
|
42
|
-
colors:
|
|
42
|
+
colors: import("tailwindcss/types/config").RecursiveKeyValuePair<string, string>;
|
|
43
43
|
borderWidth: {
|
|
44
44
|
0: string;
|
|
45
45
|
1: string;
|
|
@@ -98,7 +98,7 @@ export declare const tailwindConfig: {
|
|
|
98
98
|
'lap-2xl': string;
|
|
99
99
|
'lap-3xl': string;
|
|
100
100
|
};
|
|
101
|
-
colors:
|
|
101
|
+
colors: import("tailwindcss/types/config").RecursiveKeyValuePair<string, string>;
|
|
102
102
|
borderWidth: {
|
|
103
103
|
0: string;
|
|
104
104
|
1: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getColors():
|
|
1
|
+
export declare function getColors(): import("tailwindcss/types/config").RecursiveKeyValuePair<string, string>;
|