@huntflow/ui 0.2.5 → 0.2.7

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/ui.es.js CHANGED
@@ -1,32 +1,34 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.nonce=document.head.querySelector("meta[property=csp-nonce]")?.content,o.appendChild(document.createTextNode(`@keyframes _loader-animation_tpkd0_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_tpkd0_11{color:var(--hf-loader-color);display:block;flex:0 0 auto}._circle_tpkd0_17{animation-name:_loader-animation_tpkd0_1;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite}._white_tpkd0_24{--hf-loader-color: var(--hf-color-text-invert)}._black_tpkd0_28{--hf-loader-color: var(--hf-color-text-main)}._s_tpkd0_32{width:18px;height:18px}._m_tpkd0_37{width:28px;height:28px}._l_tpkd0_11{width:56px;height:56px}._spinner_tpkd0_47{display:inline-block;border:1px solid var(--hf-loader-color);border-radius:50%;border-left-color:transparent;border-top-color:transparent}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._button_mb1r2_1{font-family:var(--hf-font-family-body),sans-serif;font-style:normal;color:inherit;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--hf-spacing-button-icon);min-width:-moz-max-content;min-width:max-content;border:solid 1px;position:relative;cursor:pointer;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._button_mb1r2_1:active{background-color:#999}._button_mb1r2_1:focus{outline:none}._button_mb1r2_1:focus-visible{outline:solid 3px var(--hf-color-button-primary-border-focus)}._button_mb1r2_1:is(._disabled_mb1r2_1),._button_mb1r2_1:is(._disabled_mb1r2_1):hover{color:var(--hf-color-text-light);background-color:var(--hf-color-button-disable-default);border-color:transparent;box-shadow:none;transform:none;cursor:default}._button_mb1r2_1._loading_mb1r2_1{cursor:default}._button_mb1r2_1._loading_mb1r2_1>*:not(._loader_mb1r2_1){visibility:hidden}._button_mb1r2_1+._button_mb1r2_1{margin-left:var(--hf-spacing-button-gap)}._content_mb1r2_1{line-height:inherit;display:flex}._content_mb1r2_1:first-child:last-child{text-align:center;width:100%}._loader_mb1r2_1{display:flex;justify-content:center;align-items:center;position:absolute;inset:0}._s_mb1r2_2{font-size:var(--hf-font-size-button-s);font-weight:var(--hf-font-weight-button-s);line-height:var(--hf-font-line-height-button-s);padding:var(--hf-padding-button-top-bottom-s) var(--hf-padding-button-left-right-s);border-radius:var(--hf-radius-button-s)}._xs_mb1r2_1{font-size:var(--hf-font-size-button-xs);font-weight:var(--hf-font-weight-button-xs);line-height:var(--hf-font-line-height-button-xs);padding:var(--hf-padding-button-top-bottom-xs) var(--hf-padding-button-left-right-xs)}._xs_mb1r2_1._square_mb1r2_1{border-radius:var(--hf-radius-button-xs)}._xs_mb1r2_1._circle_mb1r2_1{border-radius:var(--hf-radius-button-circle)}._m_mb1r2_1{font-size:var(--hf-font-size-button-m);font-weight:var(--hf-font-weight-button-m);line-height:var(--hf-font-line-height-button-m);padding:var(--hf-padding-button-top-bottom-m) var(--hf-padding-button-left-right-m);border-radius:var(--hf-radius-button-m)}._l_mb1r2_1{font-size:var(--hf-font-size-button-l);font-weight:var(--hf-font-weight-button-l);line-height:var(--hf-font-line-height-button-l);padding:var(--hf-padding-button-top-bottom-l) var(--hf-padding-button-left-right-l);border-radius:var(--hf-radius-button-l)}._primary_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_mb1r2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_mb1r2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._primary_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-primary-default)}._secondary_mb1r2_1{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-default);border-color:var(--hf-color-button-secondary-border-default);box-shadow:0 1px 4px #0505050a}._secondary_mb1r2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_mb1r2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._secondary_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-secondary-fill-default)}._accent_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_mb1r2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_mb1r2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._accent_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-accent-default)}._danger_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_mb1r2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_mb1r2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._danger_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-danger-default)}._jobsites_mb1r2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_mb1r2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_mb1r2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._jobsites_mb1r2_1._loading_mb1r2_1{background-color:var(--hf-color-button-jobsite-default)}._ghost_mb1r2_1{color:var(--hf-color-text-secondary);background-color:transparent;border-color:transparent}._ghost_mb1r2_1:hover{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_mb1r2_1:active{color:var(--hf-color-text-main);background-color:var(--hf-color-button-secondary-fill-active)}._ghost_mb1r2_1._loading_mb1r2_1{background-color:transparent}._ghost-danger_mb1r2_1{color:var(--hf-color-text-secondary);background-color:transparent;border-color:transparent}._ghost-danger_mb1r2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_mb1r2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._ghost-danger_mb1r2_1._loading_mb1r2_1{background-color:transparent}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_o7jd7_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_o7jd7_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs);border-radius:var(--hf-radius-button-circle)}._m_o7jd7_20{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_o7jd7_25{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_o7jd7_31{padding:0}._button_1xnk4_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-button-link-s);font-style:normal;font-weight:var(--hf-font-weight-button-link-s);line-height:var(--hf-font-line-height-button-link-s);color:var(--hf-color-link-default);display:flex;flex-direction:row;align-items:center;gap:var(--hf-spacing-button-link-s);margin:0;padding:0 2px 0 0;background-color:transparent;border:none;cursor:pointer;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._button_1xnk4_1:hover{color:var(--hf-color-link-hover)}._label_1ic51_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-label-title);font-style:normal;font-weight:var(--hf-font-weight-regular);line-height:var(--hf-font-line-height-label-title);color:var(--hf-color-text-main);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._content_1g21n_1{font-family:var(--hf-font-family-body),sans-serif;display:flex;flex:1;flex-direction:row;gap:var(--hf-spacing-xs);margin-bottom:var(--hf-spacing-xs);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._label_1g21n_12{font-style:normal;display:flex;flex:1;flex-direction:row;gap:var(--hf-spacing-xs);margin-bottom:var(--hf-spacing-xs)}._header_1g21n_21{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4-medium);line-height:var(--hf-font-line-height-text-h4);color:var(--hf-color-text-main);display:block}._headerWrapper_1g21n_29{display:flex;flex-direction:column;flex-grow:1;gap:var(--hf-spacing-xs)}._title_1g21n_36{font-size:var(--hf-font-size-label-title);font-weight:var(--hf-font-weight-label-title);line-height:var(--hf-font-line-height-label-title);color:var(--hf-color-text-main);display:block}._subTitleRow_1g21n_44{font-size:var(--hf-font-size-label-subtitle);font-weight:var(--hf-font-weight-label-subtitle);color:var(--hf-color-text-semilight);display:flex;justify-content:space-between}._subTitle_1g21n_44{line-height:var(--hf-font-line-height-label-subtitle)}._link_1g21n_56{font-size:var(--hf-font-size-label-title);font-weight:var(--hf-font-weight-label-subtitle);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);align-self:flex-end;height:20px;margin-left:auto;overflow:hidden;text-overflow:ellipsis}._link_1g21n_56 a{color:var(--hf-color-text-semilight);text-decoration:none}._linkUpper_1g21n_73{margin-bottom:1px}._wrapper_1i81c_1{font-family:var(--hf-font-family-body),sans-serif;margin-bottom:var(--hf-spacing-xs);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._input_1i81c_8{font-size:var(--hf-font-size-field-text);font-weight:var(--hf-font-weight-field-text);line-height:var(--hf-font-line-height-field-text);color:var(--hf-color-input-text-default);box-sizing:border-box;width:100%;padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-right-default) var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-default);background:var(--hf-color-input-background-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);border-radius:var(--hf-radius-input-default)}._input_1i81c_8:active{border-color:var(--hf-color-input-border-focus)}._input_1i81c_8:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1i81c_8:disabled{color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);border-color:var(--hf-color-input-text-disable);outline:none}._error_1i81c_38,._error_1i81c_38:active{border-color:var(--hf-color-input-border-error)}._error_1i81c_38:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1i81c_51{font-size:var(--hf-font-size-field-error);font-weight:var(--hf-font-weight-field-description);line-height:var(--hf-font-line-height-field-description);margin-top:var(--hf-spacing-xs)}._description_1i81c_51 a{text-decoration:underline}._descriptionText_1i81c_62{color:var(--hf-color-input-text-description)}._errorText_1i81c_66{color:var(--hf-color-text-danger)}._inputWrapper_1i81c_70{position:relative}._leftSpace_1i81c_74{padding-left:42px}._rightSpace_1i81c_78{padding-right:42px}._leftIcon_1i81c_82,._rightIcon_1i81c_83{height:100%;position:absolute}._leftIcon_1i81c_82{left:15px}._rightIcon_1i81c_83{padding:0 9px;right:0}._rightIcon_1i81c_83[aria-label^=close]{color:var(--hf-color-text-light);cursor:pointer}._plank_1yp3k_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-text-primary);font-style:normal;font-weight:var(--hf-font-weight-text-primary-regular);line-height:var(--hf-font-line-height-text-primary);display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--hf-spacing-m);padding:var(--hf-spacing-m) var(--hf-spacing-l);border-width:1px;border-style:solid;border-radius:var(--hf-radius-m);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._default_1yp3k_20{color:var(--hf-color-text-main);background-color:var(--hf-color-plank-default-background);border-color:var(--hf-color-plank-default-border)}._accent_1yp3k_26{color:var(--hf-color-plank-success-text);background-color:var(--hf-color-plank-success-background);border-color:var(--hf-color-plank-success-border)}._danger_1yp3k_32{color:var(--hf-color-plank-danger-text);background-color:var(--hf-color-plank-danger-background);border-color:var(--hf-color-plank-danger-border)}._text_1yp3k_38{flex-grow:1}._icon_1yp3k_42{width:var(--hf-font-line-height-text-primary);height:var(--hf-font-line-height-text-primary)}._text_dbd8t_1{font-family:var(--hf-font-family-body),sans-serif;font-style:normal;color:var(--hf-color-text-main);margin:0;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._primary_dbd8t_10{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary-regular);line-height:var(--hf-font-line-height-text-primary)}._primary_dbd8t_10._medium_dbd8t_15{font-weight:var(--hf-font-weight-text-primary-medium)}._secondary_dbd8t_20{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary-regular);line-height:var(--hf-font-line-height-text-secondary)}._secondary_dbd8t_20._medium_dbd8t_15{font-weight:var(--hf-font-weight-text-secondary-medium)}._accent_dbd8t_30{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent-regular);line-height:var(--hf-font-line-height-text-accent)}._accent_dbd8t_30._medium_dbd8t_15{font-weight:var(--hf-font-weight-text-accent-medium)}._subtitle_dbd8t_40{font-size:var(--hf-font-size-text-subtitle);font-weight:var(--hf-font-weight-text-subtitle);line-height:var(--hf-font-line-height-text-subtitle)}._color-main_dbd8t_46{color:var(--hf-color-text-main)}._color-secondary_dbd8t_50{color:var(--hf-color-text-secondary)}._color-semilight_dbd8t_54{color:var(--hf-color-text-semilight)}._color-light_dbd8t_58{color:var(--hf-color-text-light)}._color-invert_dbd8t_62{color:var(--hf-color-text-invert)}._color-danger_dbd8t_66{color:var(--hf-color-text-danger)}._color-success_dbd8t_70{color:var(--hf-color-text-success)}._title_1m0wo_1{font-family:var(--hf-font-family-body),sans-serif;font-style:normal;color:var(--hf-color-text-main);margin:0;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._level-1_1m0wo_10{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1-regular);line-height:var(--hf-font-line-height-text-h1)}._level-1_1m0wo_10._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h1-medium)}._level-2_1m0wo_20{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2-regular);line-height:var(--hf-font-line-height-text-h2)}._level-2_1m0wo_20._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h2-medium)}._level-3_1m0wo_30{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3-regular);line-height:var(--hf-font-line-height-text-h3)}._level-3_1m0wo_30._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h3-medium)}._level-4_1m0wo_40{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4-regular);line-height:var(--hf-font-line-height-text-h4)}._level-4_1m0wo_40._medium_1m0wo_15{font-weight:var(--hf-font-weight-text-h4-medium)}._color-main_1m0wo_50{color:var(--hf-color-text-main)}._color-secondary_1m0wo_54{color:var(--hf-color-text-secondary)}._color-semilight_1m0wo_58{color:var(--hf-color-text-semilight)}._color-light_1m0wo_62{color:var(--hf-color-text-light)}._color-invert_1m0wo_66{color:var(--hf-color-text-invert)}._color-danger_1m0wo_70{color:var(--hf-color-text-danger)}._color-success_1m0wo_74{color:var(--hf-color-text-success)}._error_lk2jx_1{font-family:var(--hf-font-family-body),sans-serif;font-size:var(--hf-font-size-label-subtitle);font-weight:var(--hf-font-weight-regular);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-danger);-moz-osx-font-smoothing:auto;-webkit-font-smoothing:antialiased}._root_1tj1b_1{overflow:hidden;border-radius:50%;position:relative;aspect-ratio:1/1}._root_1tj1b_1 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._default_1tj1b_14{background-color:var(--hf-color-avatar-background);background-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3731%2012.2451C8.04067%2011.4614%207.47001%207.04127%2010.5054%205.5244C11.4539%205.05047%2012.6607%205.02109%2013.5811%205.44961C15.802%206.48374%2016.3914%209.29209%2014.7734%2011.1304C13.9547%2012.0605%2012.5483%2012.5215%2011.3731%2012.2451Z'%20fill='%23D7D7D7'/%3e%3cpath%20d='M7.06146%2014.4533C7.36479%2013.8666%208.78017%2013.2895%2010.4265%2013.081C12.0578%2012.8746%2013.8883%2012.9839%2015.2382%2013.3686C17.2103%2013.9304%2017.7187%2014.6903%2017.0375%2016.0575C16.2941%2017.5493%2013.9853%2018.8659%2012.1058%2018.8699C10.2126%2018.874%207.85172%2017.5174%207.15739%2016.0265C6.84163%2015.3485%206.81597%2014.9279%207.06146%2014.4533Z'%20fill='%23D7D7D7'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:center center;background-size:cover}._default_1tj1b_14 img{display:none}._xxs_1tj1b_26{width:var(--hf-size-avatar-xxs)}._xs_1tj1b_30{width:var(--hf-size-avatar-xs)}._s_1tj1b_16{width:var(--hf-size-avatar-s)}._m_1tj1b_38{width:var(--hf-size-avatar-m)}._l_1tj1b_42{width:var(--hf-size-avatar-l)}._l_1tj1b_42._square_1tj1b_45{border-radius:var(--hf-radius-s)}._xl_1tj1b_50{width:var(--hf-size-avatar-xl)}._xl_1tj1b_50._square_1tj1b_45{border-radius:var(--hf-radius-l)}._xxl_1tj1b_58{width:var(--hf-size-avatar-xxl)}._xxl_1tj1b_58._square_1tj1b_45{border-radius:var(--hf-radius-l)}._3xl_1tj1b_66{width:var(--hf-size-avatar-3xl)}._3xl_1tj1b_66._square_1tj1b_45{border-radius:var(--hf-radius-l)}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { defineComponent as f, computed as c, createElementBlock as p, openBlock as a, normalizeClass as u, unref as r, normalizeStyle as Q, createElementVNode as E, useSlots as P, createCommentVNode as m, renderSlot as h, createBlock as k, createVNode as x, mergeProps as M, withCtx as v, Fragment as X, toValue as Y, getCurrentInstance as Z, ref as O, Comment as ee, cloneVNode as te, h as q, mergeModels as H, useAttrs as se, useModel as ne, createTextVNode as S, toDisplayString as j, resolveDynamicComponent as A, watch as oe } from "vue";
3
- const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
4
- const o = s.children;
5
- return o && o.toString().trim() !== "";
6
- }) ?? !1, le = "_loader_tpkd0_11", re = "_circle_tpkd0_17", ae = "_white_tpkd0_24", ce = "_black_tpkd0_28", ie = "_s_tpkd0_32", ue = "_m_tpkd0_37", _e = "_l_tpkd0_11", de = "_spinner_tpkd0_47", I = {
7
- loader: le,
8
- circle: re,
2
+ import { defineComponent as f, computed as a, createElementBlock as d, openBlock as r, normalizeClass as i, unref as n, normalizeStyle as de, createElementVNode as q, useSlots as D, createCommentVNode as p, renderSlot as b, createBlock as h, createVNode as I, mergeProps as O, withCtx as k, Fragment as pe, toValue as me, getCurrentInstance as fe, ref as W, Comment as be, cloneVNode as ye, h as A, toRefs as ve, useAttrs as ke, createTextVNode as S, toDisplayString as j, resolveDynamicComponent as K, watch as ge } from "vue";
3
+ const x = (s, e) => (e ? s[e] : s.default)?.().some((t) => {
4
+ const l = t.children;
5
+ return l && l.toString().trim() !== "";
6
+ }) ?? !1, he = "_loader_tpkd0_11", $e = "_circle_tpkd0_17", we = "_white_tpkd0_24", xe = "_black_tpkd0_28", Ce = "_s_tpkd0_32", Te = "_m_tpkd0_37", Be = "_l_tpkd0_11", Le = "_spinner_tpkd0_47", L = {
7
+ loader: he,
8
+ circle: $e,
9
9
  "loader-animation": "_loader-animation_tpkd0_1",
10
- white: ae,
11
- black: ce,
12
- s: ie,
13
- m: ue,
14
- l: _e,
15
- spinner: de
16
- }, pe = /* @__PURE__ */ f({
10
+ white: we,
11
+ black: xe,
12
+ s: Ce,
13
+ m: Te,
14
+ l: Be,
15
+ spinner: Le
16
+ }, Se = /* @__PURE__ */ f({
17
+ name: "UiLoader",
17
18
  __name: "loader",
18
19
  props: {
19
20
  className: {},
20
21
  size: { default: "l" },
21
22
  color: { default: "black" }
22
23
  },
23
- setup(n) {
24
- const e = n, t = c(() => [I.loader, I[e.size], I[e.color], I.circle]);
25
- return (s, o) => (a(), p("span", {
26
- class: u([r(I).spinner, t.value])
24
+ setup(s) {
25
+ const e = s, o = a(() => [L.loader, L[e.size], L[e.color], L.circle]);
26
+ return (t, l) => (r(), d("span", {
27
+ class: i([n(L).spinner, o.value])
27
28
  }, null, 2));
28
29
  }
29
- }), me = ["aria-label", "width", "height"], fe = ["xlink:href"], be = /* @__PURE__ */ f({
30
+ }), je = ["aria-label"], Ie = ["xlink:href"], Ue = /* @__PURE__ */ f({
31
+ name: "UiIcon",
30
32
  __name: "icon",
31
33
  props: {
32
34
  name: {},
@@ -35,37 +37,32 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
35
37
  width: {},
36
38
  height: {}
37
39
  },
38
- setup(n) {
39
- const e = n, t = c(() => {
40
- const l = e?.name?.match(/(\d+)$/);
41
- return l ? Number.parseInt(l[1], 10) : 16;
42
- }), s = c(() => e.width ? e.width : t.value), o = c(() => e.height ? e.height : t.value), i = c(() => {
43
- const l = {};
44
- return e.color && (l.color = e.color), e.block && (l.display = "block"), l;
40
+ setup(s) {
41
+ const e = s, o = a(() => {
42
+ const t = {};
43
+ return e.color && (t.color = e.color), e.block && (t.display = "block"), t;
45
44
  });
46
- return (l, _) => (a(), p("svg", {
47
- class: u(l.$style.icon),
48
- "aria-label": l.name,
49
- style: Q(i.value),
50
- role: "img",
51
- width: s.value,
52
- height: o.value
45
+ return (t, l) => (r(), d("svg", {
46
+ class: i(t.$style.icon),
47
+ "aria-label": t.name,
48
+ style: de(o.value),
49
+ role: "img"
53
50
  }, [
54
- E("use", {
55
- "xlink:href": `#${l.name}`
56
- }, null, 8, fe)
57
- ], 14, me));
51
+ q("use", {
52
+ "xlink:href": `#${t.name}`
53
+ }, null, 8, Ie)
54
+ ], 14, je));
58
55
  }
59
- }), he = "_icon_1p8iz_2", ye = {
60
- icon: he
61
- }, ge = (n, e) => {
62
- const t = n.__vccOpts || n;
63
- for (const [s, o] of e)
64
- t[s] = o;
65
- return t;
66
- }, ve = {
67
- $style: ye
68
- }, T = /* @__PURE__ */ ge(be, [["__cssModules", ve]]), Zt = async () => {
56
+ }), Ne = "_icon_1p8iz_2", ze = {
57
+ icon: Ne
58
+ }, Ee = (s, e) => {
59
+ const o = s.__vccOpts || s;
60
+ for (const [t, l] of e)
61
+ o[t] = l;
62
+ return o;
63
+ }, qe = {
64
+ $style: ze
65
+ }, C = /* @__PURE__ */ Ee(Ue, [["__cssModules", qe]]), bn = async () => {
69
66
  if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
70
67
  try {
71
68
  const e = `
@@ -74,29 +71,30 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
74
71
  </svg>
75
72
  `;
76
73
  document.body.insertAdjacentHTML("afterbegin", e);
77
- } catch (n) {
78
- console.error("Failed to load SVG sprite:", n);
74
+ } catch (s) {
75
+ console.error("Failed to load SVG sprite:", s);
79
76
  }
80
- }, ke = "_button_mb1r2_1", $e = "_disabled_mb1r2_1", we = "_loading_mb1r2_1", Ce = "_loader_mb1r2_1", Te = "_content_mb1r2_1", Ie = "_s_mb1r2_2", Se = "_xs_mb1r2_1", je = "_square_mb1r2_1", xe = "_circle_mb1r2_1", Be = "_m_mb1r2_1", Le = "_l_mb1r2_1", Ne = "_primary_mb1r2_1", ze = "_secondary_mb1r2_1", Ue = "_accent_mb1r2_1", Ee = "_danger_mb1r2_1", Me = "_jobsites_mb1r2_1", qe = "_ghost_mb1r2_1", g = {
81
- button: ke,
82
- disabled: $e,
83
- loading: we,
84
- loader: Ce,
85
- content: Te,
86
- s: Ie,
87
- xs: Se,
88
- square: je,
89
- circle: xe,
90
- m: Be,
91
- l: Le,
92
- primary: Ne,
93
- secondary: ze,
94
- accent: Ue,
95
- danger: Ee,
96
- jobsites: Me,
97
- ghost: qe,
77
+ }, Oe = "_button_mb1r2_1", Pe = "_disabled_mb1r2_1", Me = "_loading_mb1r2_1", Ve = "_loader_mb1r2_1", Re = "_content_mb1r2_1", Ae = "_s_mb1r2_2", We = "_xs_mb1r2_1", De = "_square_mb1r2_1", He = "_circle_mb1r2_1", Fe = "_m_mb1r2_1", Ge = "_l_mb1r2_1", Ke = "_primary_mb1r2_1", Je = "_secondary_mb1r2_1", Qe = "_accent_mb1r2_1", Xe = "_danger_mb1r2_1", Ye = "_jobsites_mb1r2_1", Ze = "_ghost_mb1r2_1", v = {
78
+ button: Oe,
79
+ disabled: Pe,
80
+ loading: Me,
81
+ loader: Ve,
82
+ content: Re,
83
+ s: Ae,
84
+ xs: We,
85
+ square: De,
86
+ circle: He,
87
+ m: Fe,
88
+ l: Ge,
89
+ primary: Ke,
90
+ secondary: Je,
91
+ accent: Qe,
92
+ danger: Xe,
93
+ jobsites: Ye,
94
+ ghost: Ze,
98
95
  "ghost-danger": "_ghost-danger_mb1r2_1"
99
- }, Oe = ["name", "type", "disabled"], D = /* @__PURE__ */ f({
96
+ }, et = ["name", "type", "disabled"], J = /* @__PURE__ */ f({
97
+ name: "UiButton",
100
98
  __name: "button",
101
99
  props: {
102
100
  size: { default: "m" },
@@ -109,11 +107,11 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
109
107
  name: {},
110
108
  circle: { type: Boolean, default: !1 },
111
109
  bordered: { type: Boolean, default: !1 },
112
- htmlType: {}
110
+ htmlType: { default: "button" }
113
111
  },
114
112
  emits: ["click"],
115
- setup(n) {
116
- const e = n, t = P(), s = {
113
+ setup(s) {
114
+ const e = s, o = D(), t = {
117
115
  primary: "white",
118
116
  secondary: "black",
119
117
  accent: "white",
@@ -121,58 +119,59 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
121
119
  jobsites: "white",
122
120
  ghost: "black",
123
121
  "ghost-danger": "black"
124
- }, o = c(() => C(t)), i = c(() => [
125
- g.button,
126
- g[e.size],
127
- g[e.type],
128
- e.circle ? [g.circle] : [g.square],
122
+ }, l = a(() => x(o)), u = a(() => [
123
+ v.button,
124
+ v[e.size],
125
+ v[e.type],
126
+ e.circle ? [v.circle] : [v.square],
129
127
  {
130
- [g.disabled]: e.disabled,
131
- [g.loading]: e.loading,
132
- [g.active]: e.active,
133
- [g.bordered]: e.bordered
128
+ [v.disabled]: e.disabled,
129
+ [v.loading]: e.loading,
130
+ [v.active]: e.active,
131
+ [v.bordered]: e.bordered
134
132
  },
135
133
  e.className
136
- ]), l = c(() => s[e.type] || "white");
137
- return (_, b) => (a(), p("button", {
134
+ ]), c = a(() => t[e.type] || "white");
135
+ return (_, m) => (r(), d("button", {
138
136
  name: _.name,
139
- class: u(i.value),
137
+ class: i(u.value),
140
138
  type: _.htmlType,
141
139
  disabled: _.disabled || _.loading,
142
- onClick: b[0] || (b[0] = ($) => _.$emit("click"))
140
+ onClick: m[0] || (m[0] = (g) => _.$emit("click"))
143
141
  }, [
144
- _.loading ? (a(), p("div", {
142
+ _.loading ? (r(), d("div", {
145
143
  key: 0,
146
- class: u(r(g).loader)
144
+ class: i(n(v).loader)
147
145
  }, [
148
- x(r(pe), {
146
+ I(n(Se), {
149
147
  size: "s",
150
- color: l.value
148
+ color: c.value
151
149
  }, null, 8, ["color"])
152
- ], 2)) : m("", !0),
153
- _.$slots.before ? h(_.$slots, "before", { key: 1 }) : m("", !0),
154
- o.value ? (a(), p("span", {
150
+ ], 2)) : p("", !0),
151
+ _.$slots.before ? b(_.$slots, "before", { key: 1 }) : p("", !0),
152
+ l.value ? (r(), d("span", {
155
153
  key: 2,
156
- class: u(r(g).content)
154
+ class: i(n(v).content)
157
155
  }, [
158
- h(_.$slots, "default")
159
- ], 2)) : m("", !0),
160
- _.$slots.after ? h(_.$slots, "after", { key: 3 }) : m("", !0),
161
- _.dropdown ? (a(), k(r(T), {
156
+ b(_.$slots, "default")
157
+ ], 2)) : p("", !0),
158
+ _.$slots.after ? b(_.$slots, "after", { key: 3 }) : p("", !0),
159
+ _.dropdown ? (r(), h(n(C), {
162
160
  key: 4,
163
161
  width: 12,
164
162
  height: 16,
165
163
  name: "drop-down"
166
- })) : m("", !0)
167
- ], 10, Oe));
164
+ })) : p("", !0)
165
+ ], 10, et));
168
166
  }
169
- }), Pe = "_s_o7jd7_9", We = "_xs_o7jd7_14", He = "_m_o7jd7_20", Re = "_l_o7jd7_25", Ae = "_button_o7jd7_31", R = {
170
- s: Pe,
171
- xs: We,
172
- m: He,
173
- l: Re,
174
- button: Ae
175
- }, es = /* @__PURE__ */ f({
167
+ }), tt = "_s_o7jd7_9", nt = "_xs_o7jd7_14", st = "_m_o7jd7_20", ot = "_l_o7jd7_25", lt = "_button_o7jd7_31", G = {
168
+ s: tt,
169
+ xs: nt,
170
+ m: st,
171
+ l: ot,
172
+ button: lt
173
+ }, yn = /* @__PURE__ */ f({
174
+ name: "UiButtonIcon",
176
175
  __name: "button-icon",
177
176
  props: {
178
177
  icon: {},
@@ -187,98 +186,99 @@ const C = (n, e) => (e ? n[e] : n.default)?.().some((s) => {
187
186
  bordered: { type: Boolean, default: !1 }
188
187
  },
189
188
  emits: ["click"],
190
- setup(n) {
191
- const e = n, t = c(() => [R.button, R[e.size], e.className]), s = c(() => {
192
- const i = e.size === "xs" ? "18" : "20";
193
- return e.icon.replace(/-?\d*$/, `-${i}`);
194
- }), o = c(() => e.size === "xs");
195
- return (i, l) => (a(), k(r(D), M({ class: t.value }, e, {
189
+ setup(s) {
190
+ const e = s, o = a(() => [G.button, G[e.size], e.className]), t = a(() => {
191
+ const u = e.size === "xs" ? "18" : "20";
192
+ return e.icon.replace(/-?\d*$/, `-${u}`);
193
+ }), l = a(() => e.size === "xs");
194
+ return (u, c) => (r(), h(n(J), O({ class: o.value }, e, {
196
195
  "html-type": "button",
197
- circle: o.value,
198
- onClick: l[0] || (l[0] = (_) => i.$emit("click"))
196
+ circle: l.value,
197
+ onClick: c[0] || (c[0] = (_) => u.$emit("click"))
199
198
  }), {
200
- before: v(() => [
201
- x(r(T), { name: s.value }, null, 8, ["name"])
199
+ before: k(() => [
200
+ I(n(C), { name: t.value }, null, 8, ["name"])
202
201
  ]),
203
202
  _: 1
204
203
  }, 16, ["class", "circle"]));
205
204
  }
206
- }), De = "_button_1xnk4_1", Ve = {
207
- button: De
208
- }, ts = /* @__PURE__ */ f({
205
+ }), rt = "_button_1xnk4_1", at = {
206
+ button: rt
207
+ }, vn = /* @__PURE__ */ f({
208
+ name: "UiButtonLink",
209
209
  __name: "button-link",
210
210
  emits: ["click"],
211
- setup(n) {
212
- return (e, t) => (a(), p("button", {
213
- class: u(r(Ve).button),
211
+ setup(s) {
212
+ return (e, o) => (r(), d("button", {
213
+ class: i(n(at).button),
214
214
  type: "button",
215
- onClick: t[0] || (t[0] = (s) => e.$emit("click"))
215
+ onClick: o[0] || (o[0] = (t) => e.$emit("click"))
216
216
  }, [
217
- x(r(T), { name: "plus-18" }),
218
- h(e.$slots, "default")
217
+ I(n(C), { name: "plus-18" }),
218
+ b(e.$slots, "default")
219
219
  ], 2));
220
220
  }
221
221
  });
222
- function V(n) {
223
- return n ? n.flatMap((e) => e.type === X ? V(e.children) : [e]) : [];
222
+ function Q(s) {
223
+ return s ? s.flatMap((e) => e.type === pe ? Q(e.children) : [e]) : [];
224
224
  }
225
- function Fe(n) {
225
+ function ct(s) {
226
226
  var e;
227
- const t = Y(n);
228
- return (e = t?.$el) != null ? e : t;
227
+ const o = me(s);
228
+ return (e = o?.$el) != null ? e : o;
229
229
  }
230
- function Ge() {
231
- const n = Z(), e = O(), t = c(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : Fe(e)), s = Object.assign({}, n.exposed), o = {};
232
- for (const l in n.props) Object.defineProperty(o, l, {
230
+ function it() {
231
+ const s = fe(), e = W(), o = a(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : ct(e)), t = Object.assign({}, s.exposed), l = {};
232
+ for (const c in s.props) Object.defineProperty(l, c, {
233
233
  enumerable: !0,
234
234
  configurable: !0,
235
- get: () => n.props[l]
235
+ get: () => s.props[c]
236
236
  });
237
- if (Object.keys(s).length > 0) for (const l in s) Object.defineProperty(o, l, {
237
+ if (Object.keys(t).length > 0) for (const c in t) Object.defineProperty(l, c, {
238
238
  enumerable: !0,
239
239
  configurable: !0,
240
- get: () => s[l]
240
+ get: () => t[c]
241
241
  });
242
- Object.defineProperty(o, "$el", {
242
+ Object.defineProperty(l, "$el", {
243
243
  enumerable: !0,
244
244
  configurable: !0,
245
- get: () => n.vnode.el
246
- }), n.exposed = o;
247
- function i(l) {
248
- e.value = l, l && (Object.defineProperty(o, "$el", {
245
+ get: () => s.vnode.el
246
+ }), s.exposed = l;
247
+ function u(c) {
248
+ e.value = c, c && (Object.defineProperty(l, "$el", {
249
249
  enumerable: !0,
250
250
  configurable: !0,
251
- get: () => l instanceof Element ? l : l.$el
252
- }), n.exposed = o);
251
+ get: () => c instanceof Element ? c : c.$el
252
+ }), s.exposed = l);
253
253
  }
254
254
  return {
255
- forwardRef: i,
255
+ forwardRef: u,
256
256
  currentRef: e,
257
- currentElement: t
257
+ currentElement: o
258
258
  };
259
259
  }
260
- const Ke = f({
260
+ const ut = f({
261
261
  name: "PrimitiveSlot",
262
262
  inheritAttrs: !1,
263
- setup(n, { attrs: e, slots: t }) {
263
+ setup(s, { attrs: e, slots: o }) {
264
264
  return () => {
265
- if (!t.default) return null;
266
- const s = V(t.default()), o = s.findIndex((b) => b.type !== ee);
267
- if (o === -1) return s;
268
- const i = s[o];
269
- delete i.props?.ref;
270
- const l = i.props ? M(e, i.props) : e, _ = te({
271
- ...i,
265
+ if (!o.default) return null;
266
+ const t = Q(o.default()), l = t.findIndex((m) => m.type !== be);
267
+ if (l === -1) return t;
268
+ const u = t[l];
269
+ delete u.props?.ref;
270
+ const c = u.props ? O(e, u.props) : e, _ = ye({
271
+ ...u,
272
272
  props: {}
273
- }, l);
274
- return s.length === 1 ? _ : (s[o] = _, s);
273
+ }, c);
274
+ return t.length === 1 ? _ : (t[l] = _, t);
275
275
  };
276
276
  }
277
- }), Je = [
277
+ }), _t = [
278
278
  "area",
279
279
  "img",
280
280
  "input"
281
- ], Qe = f({
281
+ ], dt = f({
282
282
  name: "Primitive",
283
283
  inheritAttrs: !1,
284
284
  props: {
@@ -291,12 +291,12 @@ const Ke = f({
291
291
  default: "div"
292
292
  }
293
293
  },
294
- setup(n, { attrs: e, slots: t }) {
295
- const s = n.asChild ? "template" : n.as;
296
- return typeof s == "string" && Je.includes(s) ? () => q(s, e) : s !== "template" ? () => q(n.as, e, { default: t.default }) : () => q(Ke, e, { default: t.default });
294
+ setup(s, { attrs: e, slots: o }) {
295
+ const t = s.asChild ? "template" : s.as;
296
+ return typeof t == "string" && _t.includes(t) ? () => A(t, e) : t !== "template" ? () => A(s.as, e, { default: o.default }) : () => A(ut, e, { default: o.default });
297
297
  }
298
298
  });
299
- var Xe = /* @__PURE__ */ f({
299
+ var pt = /* @__PURE__ */ f({
300
300
  __name: "Label",
301
301
  props: {
302
302
  for: {
@@ -313,110 +313,113 @@ var Xe = /* @__PURE__ */ f({
313
313
  default: "label"
314
314
  }
315
315
  },
316
- setup(n) {
317
- const e = n;
318
- return Ge(), (t, s) => (a(), k(r(Qe), M(e, { onMousedown: s[0] || (s[0] = (o) => {
319
- !o.defaultPrevented && o.detail > 1 && o.preventDefault();
316
+ setup(s) {
317
+ const e = s;
318
+ return it(), (o, t) => (r(), h(n(dt), O(e, { onMousedown: t[0] || (t[0] = (l) => {
319
+ !l.defaultPrevented && l.detail > 1 && l.preventDefault();
320
320
  }) }), {
321
- default: v(() => [h(t.$slots, "default")]),
321
+ default: k(() => [b(o.$slots, "default")]),
322
322
  _: 3
323
323
  }, 16));
324
324
  }
325
- }), Ye = Xe;
326
- const Ze = "_label_1ic51_1", et = {
327
- label: Ze
328
- }, tt = /* @__PURE__ */ f({
325
+ }), mt = pt;
326
+ const ft = "_label_1ic51_1", bt = {
327
+ label: ft
328
+ }, yt = /* @__PURE__ */ f({
329
+ name: "UiLabel",
329
330
  __name: "label",
330
331
  props: {
331
332
  className: {}
332
333
  },
333
- setup(n) {
334
- const e = n, t = c(() => [
335
- et.label,
334
+ setup(s) {
335
+ const e = s, o = a(() => [
336
+ bt.label,
336
337
  e.className
337
338
  ]);
338
- return (s, o) => (a(), k(r(Ye), {
339
- class: u(t.value)
339
+ return (t, l) => (r(), h(n(mt), {
340
+ class: i(o.value)
340
341
  }, {
341
- default: v(() => [
342
- h(s.$slots, "default")
342
+ default: k(() => [
343
+ b(t.$slots, "default")
343
344
  ]),
344
345
  _: 3
345
346
  }, 8, ["class"]));
346
347
  }
347
- }), st = "_content_1g21n_1", nt = "_label_1g21n_12", ot = "_header_1g21n_21", lt = "_headerWrapper_1g21n_29", rt = "_title_1g21n_36", at = "_subTitleRow_1g21n_44", ct = "_subTitle_1g21n_44", it = "_link_1g21n_56", ut = "_linkUpper_1g21n_73", w = {
348
- content: st,
349
- label: nt,
350
- header: ot,
351
- headerWrapper: lt,
352
- title: rt,
353
- subTitleRow: at,
354
- subTitle: ct,
355
- link: it,
356
- linkUpper: ut
357
- }, _t = /* @__PURE__ */ f({
348
+ }), vt = "_content_1g21n_1", kt = "_label_1g21n_12", gt = "_header_1g21n_21", ht = "_headerWrapper_1g21n_29", $t = "_title_1g21n_36", wt = "_subTitleRow_1g21n_44", xt = "_subTitle_1g21n_44", Ct = "_link_1g21n_56", Tt = "_linkUpper_1g21n_73", $ = {
349
+ content: vt,
350
+ label: kt,
351
+ header: gt,
352
+ headerWrapper: ht,
353
+ title: $t,
354
+ subTitleRow: wt,
355
+ subTitle: xt,
356
+ link: Ct,
357
+ linkUpper: Tt
358
+ }, Bt = /* @__PURE__ */ f({
359
+ name: "UiLabelContent",
358
360
  __name: "label-content",
359
361
  emits: ["click"],
360
- setup(n) {
361
- const e = P(), t = c(() => C(e, "header")), s = c(() => C(e)), o = c(() => C(e, "subTitle")), i = c(() => C(e, "link")), l = c(() => t.value || s.value || o.value), _ = c(() => !s.value && !o.value), b = c(
362
- () => [w.link, _.value && w.linkUpper].filter(Boolean)
362
+ setup(s) {
363
+ const e = D(), o = a(() => x(e, "header")), t = a(() => x(e)), l = a(() => x(e, "subTitle")), u = a(() => x(e, "link")), c = a(() => o.value || t.value || l.value), _ = a(() => !t.value && !l.value), m = a(
364
+ () => [$.link, _.value && $.linkUpper].filter(Boolean)
363
365
  );
364
- return ($, B) => (a(), p("div", {
365
- class: u(r(w).content)
366
+ return (g, T) => (r(), d("div", {
367
+ class: i(n($).content)
366
368
  }, [
367
- l.value ? (a(), p("span", {
369
+ c.value ? (r(), d("span", {
368
370
  key: 0,
369
- class: u(r(w).headerWrapper)
371
+ class: i(n($).headerWrapper)
370
372
  }, [
371
- t.value ? (a(), p("span", {
373
+ o.value ? (r(), d("span", {
372
374
  key: 0,
373
- class: u(r(w).header)
375
+ class: i(n($).header)
374
376
  }, [
375
- h($.$slots, "header")
376
- ], 2)) : m("", !0),
377
- s.value ? (a(), p("span", {
377
+ b(g.$slots, "header")
378
+ ], 2)) : p("", !0),
379
+ t.value ? (r(), d("span", {
378
380
  key: 1,
379
- class: u(r(w).title)
381
+ class: i(n($).title)
380
382
  }, [
381
- h($.$slots, "default")
382
- ], 2)) : m("", !0),
383
- o.value ? (a(), p("span", {
383
+ b(g.$slots, "default")
384
+ ], 2)) : p("", !0),
385
+ l.value ? (r(), d("span", {
384
386
  key: 2,
385
- class: u(r(w).subTitleRow)
387
+ class: i(n($).subTitleRow)
386
388
  }, [
387
- E("span", {
388
- class: u(r(w).subTitle)
389
+ q("span", {
390
+ class: i(n($).subTitle)
389
391
  }, [
390
- h($.$slots, "subTitle")
392
+ b(g.$slots, "subTitle")
391
393
  ], 2)
392
- ], 2)) : m("", !0)
393
- ], 2)) : m("", !0),
394
- i.value ? (a(), p("span", {
394
+ ], 2)) : p("", !0)
395
+ ], 2)) : p("", !0),
396
+ u.value ? (r(), d("span", {
395
397
  key: 1,
396
- class: u(b.value),
397
- onClick: B[0] || (B[0] = (W) => $.$emit("click"))
398
+ class: i(m.value),
399
+ onClick: T[0] || (T[0] = (P) => g.$emit("click"))
398
400
  }, [
399
- h($.$slots, "link")
400
- ], 2)) : m("", !0)
401
+ b(g.$slots, "link")
402
+ ], 2)) : p("", !0)
401
403
  ], 2));
402
404
  }
403
- }), dt = "_wrapper_1i81c_1", pt = "_input_1i81c_8", mt = "_error_1i81c_38", ft = "_description_1i81c_51", bt = "_descriptionText_1i81c_62", ht = "_errorText_1i81c_66", yt = "_inputWrapper_1i81c_70", gt = "_leftSpace_1i81c_74", vt = "_rightSpace_1i81c_78", kt = "_leftIcon_1i81c_82", $t = "_rightIcon_1i81c_83", y = {
404
- wrapper: dt,
405
- input: pt,
406
- error: mt,
407
- description: ft,
408
- descriptionText: bt,
409
- errorText: ht,
410
- inputWrapper: yt,
411
- leftSpace: gt,
412
- rightSpace: vt,
413
- leftIcon: kt,
414
- rightIcon: $t
415
- }, wt = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], Ct = ["innerHTML"], Tt = ["innerHTML"], ss = /* @__PURE__ */ f({
405
+ }), Lt = "_wrapper_1i81c_1", St = "_input_1i81c_8", jt = "_error_1i81c_38", It = "_description_1i81c_51", Ut = "_descriptionText_1i81c_62", Nt = "_errorText_1i81c_66", zt = "_inputWrapper_1i81c_70", Et = "_leftSpace_1i81c_74", qt = "_rightSpace_1i81c_78", Ot = "_leftIcon_1i81c_82", Pt = "_rightIcon_1i81c_83", y = {
406
+ wrapper: Lt,
407
+ input: St,
408
+ error: jt,
409
+ description: It,
410
+ descriptionText: Ut,
411
+ errorText: Nt,
412
+ inputWrapper: zt,
413
+ leftSpace: Et,
414
+ rightSpace: qt,
415
+ leftIcon: Ot,
416
+ rightIcon: Pt
417
+ }, Mt = ["id", "value", "name", "type", "disabled", "placeholder", "aria-invalid"], Vt = ["innerHTML"], Rt = ["innerHTML"], kn = /* @__PURE__ */ f({
418
+ name: "UiInput",
416
419
  __name: "input",
417
- props: /* @__PURE__ */ H({
418
- value: {},
419
- type: { default: "text" },
420
+ props: {
421
+ modelValue: {},
422
+ type: {},
420
423
  id: {},
421
424
  name: {},
422
425
  disabled: { type: Boolean },
@@ -431,120 +434,127 @@ const Ze = "_label_1ic51_1", et = {
431
434
  className: {},
432
435
  leftIcon: {},
433
436
  rightIcon: {}
434
- }, {
435
- value: {},
436
- valueModifiers: {}
437
- }),
438
- emits: /* @__PURE__ */ H(["update:value", "enter", "clickLink", "clickIcon", "click", "focus", "blur"], ["update:value"]),
439
- setup(n, { emit: e }) {
440
- const t = n, s = e, o = se(), i = ne(n, "value"), l = c(() => [
437
+ },
438
+ emits: ["update:modelValue", "enter", "clickLink", "clickIcon", "click", "focus", "blur"],
439
+ setup(s, { emit: e }) {
440
+ const o = s, t = e, {
441
+ modelValue: l,
442
+ type: u,
443
+ id: c,
444
+ name: _,
445
+ disabled: m,
446
+ title: g,
447
+ header: T,
448
+ subTitle: P,
449
+ link: H,
450
+ placeholder: X,
451
+ loading: F,
452
+ error: B,
453
+ description: M,
454
+ className: Y,
455
+ leftIcon: V,
456
+ rightIcon: R
457
+ } = ve(o), Z = a(() => l.value ?? ""), ee = a(() => u.value ?? "text"), te = ke(), ne = a(() => [
441
458
  y.input,
442
459
  {
443
- [y.disabled]: t.disabled,
444
- [y.error]: t.error,
445
- [y.loading]: t.loading,
446
- [y.leftSpace]: !!t.leftIcon,
447
- [y.rightSpace]: !!t.rightIcon
460
+ [y.disabled]: m.value,
461
+ [y.error]: B.value,
462
+ [y.loading]: F.value,
463
+ [y.leftSpace]: !!V.value,
464
+ [y.rightSpace]: !!R.value
448
465
  },
449
- t.className
450
- ]), _ = c(() => t.header || t.title || t.subTitle || t.link), b = c(() => t.description || t.error), $ = (d) => {
451
- d.key === "Enter" && s("enter");
452
- }, B = (d) => {
453
- s("update:value", d.target.value);
454
- }, W = () => {
455
- s("focus");
456
- }, F = () => {
457
- s("blur");
458
- }, G = () => {
459
- s("clickLink");
460
- }, K = () => {
461
- s("click");
462
- }, J = (d) => {
463
- d.preventDefault(), s("clickIcon");
466
+ Y.value
467
+ ]), se = a(() => T.value || g.value || P.value || H.value), oe = a(() => M.value || B.value), le = (w) => {
468
+ w.key === "Enter" && t("enter");
469
+ }, re = (w) => {
470
+ t("update:modelValue", w.target.value);
471
+ }, ae = () => t("focus"), ce = () => t("blur"), ie = () => t("clickLink"), ue = () => t("click"), _e = (w) => {
472
+ w.preventDefault(), t("clickIcon");
464
473
  };
465
- return (d, Xt) => (a(), p("div", {
466
- class: u(r(y).wrapper)
474
+ return (w, mn) => (r(), d("div", {
475
+ class: i(n(y).wrapper)
467
476
  }, [
468
- _.value ? (a(), k(r(tt), {
477
+ se.value ? (r(), h(n(yt), {
469
478
  key: 0,
470
- for: d.id,
471
- onClick: G
479
+ for: n(c),
480
+ onClick: ie
472
481
  }, {
473
- default: v(() => [
474
- x(r(_t), null, {
475
- header: v(() => [
476
- S(j(t.header), 1)
482
+ default: k(() => [
483
+ I(n(Bt), null, {
484
+ header: k(() => [
485
+ S(j(n(T)), 1)
477
486
  ]),
478
- subTitle: v(() => [
479
- S(j(t.subTitle), 1)
487
+ subTitle: k(() => [
488
+ S(j(n(P)), 1)
480
489
  ]),
481
- link: v(() => [
482
- S(j(t.link), 1)
490
+ link: k(() => [
491
+ S(j(n(H)), 1)
483
492
  ]),
484
- default: v(() => [
485
- S(" " + j(t.title) + " ", 1)
493
+ default: k(() => [
494
+ S(" " + j(n(g)) + " ", 1)
486
495
  ]),
487
496
  _: 1
488
497
  })
489
498
  ]),
490
499
  _: 1
491
- }, 8, ["for"])) : m("", !0),
492
- E("div", {
493
- class: u(r(y).inputWrapper)
500
+ }, 8, ["for"])) : p("", !0),
501
+ q("div", {
502
+ class: i(n(y).inputWrapper)
494
503
  }, [
495
- d.leftIcon ? (a(), k(r(T), {
504
+ n(V) ? (r(), h(n(C), {
496
505
  key: 0,
497
- name: d.leftIcon,
498
- class: u(r(y).leftIcon)
499
- }, null, 8, ["name", "class"])) : m("", !0),
500
- E("input", M({
501
- id: d.id,
502
- value: i.value,
503
- name: d.name,
504
- type: d.type,
505
- disabled: d.disabled || d.loading,
506
- placeholder: d.placeholder,
507
- class: l.value,
508
- "aria-invalid": !!d.error
509
- }, r(o), {
510
- onInput: B,
511
- onKeydown: $,
512
- onFocus: W,
513
- onBlur: F,
514
- onClick: K
515
- }), null, 16, wt),
516
- d.rightIcon ? (a(), k(r(T), {
506
+ name: n(V),
507
+ class: i(n(y).leftIcon)
508
+ }, null, 8, ["name", "class"])) : p("", !0),
509
+ q("input", O({
510
+ id: n(c),
511
+ value: Z.value,
512
+ name: n(_),
513
+ type: ee.value,
514
+ disabled: n(m) || n(F),
515
+ placeholder: n(X),
516
+ class: ne.value,
517
+ "aria-invalid": !!n(B)
518
+ }, n(te), {
519
+ onInput: re,
520
+ onKeydown: le,
521
+ onFocus: ae,
522
+ onBlur: ce,
523
+ onClick: ue
524
+ }), null, 16, Mt),
525
+ n(R) ? (r(), h(n(C), {
517
526
  key: 1,
518
- name: d.rightIcon,
519
- class: u(r(y).rightIcon),
520
- onClick: J
521
- }, null, 8, ["name", "class"])) : m("", !0)
527
+ name: n(R),
528
+ class: i(n(y).rightIcon),
529
+ onClick: _e
530
+ }, null, 8, ["name", "class"])) : p("", !0)
522
531
  ], 2),
523
- b.value ? (a(), p("div", {
532
+ oe.value ? (r(), d("div", {
524
533
  key: 1,
525
- class: u(r(y).description)
534
+ class: i(n(y).description)
526
535
  }, [
527
- d.error ? (a(), p("div", {
536
+ n(B) ? (r(), d("div", {
528
537
  key: 0,
529
- class: u(r(y).errorText),
530
- innerHTML: d.error
531
- }, null, 10, Ct)) : m("", !0),
532
- d.description ? (a(), p("div", {
538
+ class: i(n(y).errorText),
539
+ innerHTML: n(B)
540
+ }, null, 10, Vt)) : p("", !0),
541
+ n(M) ? (r(), d("div", {
533
542
  key: 1,
534
- class: u(r(y).descriptionText),
535
- innerHTML: d.description
536
- }, null, 10, Tt)) : m("", !0)
537
- ], 2)) : m("", !0)
543
+ class: i(n(y).descriptionText),
544
+ innerHTML: n(M)
545
+ }, null, 10, Rt)) : p("", !0)
546
+ ], 2)) : p("", !0)
538
547
  ], 2));
539
548
  }
540
- }), It = "_plank_1yp3k_1", St = "_accent_1yp3k_26", jt = "_danger_1yp3k_32", xt = "_text_1yp3k_38", Bt = "_icon_1yp3k_42", L = {
541
- plank: It,
549
+ }), At = "_plank_1yp3k_1", Wt = "_accent_1yp3k_26", Dt = "_danger_1yp3k_32", Ht = "_text_1yp3k_38", Ft = "_icon_1yp3k_42", U = {
550
+ plank: At,
542
551
  default: "_default_1yp3k_20",
543
- accent: St,
544
- danger: jt,
545
- text: xt,
546
- icon: Bt
547
- }, ns = /* @__PURE__ */ f({
552
+ accent: Wt,
553
+ danger: Dt,
554
+ text: Ht,
555
+ icon: Ft
556
+ }, gn = /* @__PURE__ */ f({
557
+ name: "UiPlank",
548
558
  __name: "plank",
549
559
  props: {
550
560
  type: { default: "default" },
@@ -552,43 +562,43 @@ const Ze = "_label_1ic51_1", et = {
552
562
  label: {}
553
563
  },
554
564
  emits: ["click"],
555
- setup(n) {
556
- const e = n, t = P(), s = c(() => C(t)), o = c(() => [L.plank, L[e.type]]);
557
- return (i, l) => (a(), p("div", {
558
- class: u(o.value)
565
+ setup(s) {
566
+ const e = s, o = D(), t = a(() => x(o)), l = a(() => [U.plank, U[e.type]]);
567
+ return (u, c) => (r(), d("div", {
568
+ class: i(l.value)
559
569
  }, [
560
- i.icon ? (a(), p("div", {
570
+ u.icon ? (r(), d("div", {
561
571
  key: 0,
562
- class: u(r(L).icon)
572
+ class: i(n(U).icon)
563
573
  }, [
564
- x(r(T), { name: i.icon }, null, 8, ["name"])
565
- ], 2)) : m("", !0),
566
- s.value ? (a(), p("div", {
574
+ I(n(C), { name: u.icon }, null, 8, ["name"])
575
+ ], 2)) : p("", !0),
576
+ t.value ? (r(), d("div", {
567
577
  key: 1,
568
- class: u(r(L).text)
578
+ class: i(n(U).text)
569
579
  }, [
570
- h(i.$slots, "default")
571
- ], 2)) : m("", !0),
572
- i.label ? (a(), k(r(D), {
580
+ b(u.$slots, "default")
581
+ ], 2)) : p("", !0),
582
+ u.label ? (r(), h(n(J), {
573
583
  key: 2,
574
584
  size: "xs",
575
585
  type: "secondary",
576
- onClick: l[0] || (l[0] = (_) => i.$emit("click"))
586
+ onClick: c[0] || (c[0] = (_) => u.$emit("click"))
577
587
  }, {
578
- default: v(() => [
579
- S(j(i.label), 1)
588
+ default: k(() => [
589
+ S(j(u.label), 1)
580
590
  ]),
581
591
  _: 1
582
- })) : m("", !0)
592
+ })) : p("", !0)
583
593
  ], 2));
584
594
  }
585
- }), Lt = "_text_dbd8t_1", Nt = "_primary_dbd8t_10", zt = "_medium_dbd8t_15", Ut = "_secondary_dbd8t_20", Et = "_accent_dbd8t_30", Mt = "_subtitle_dbd8t_40", N = {
586
- text: Lt,
587
- primary: Nt,
588
- medium: zt,
589
- secondary: Ut,
590
- accent: Et,
591
- subtitle: Mt,
595
+ }), Gt = "_text_dbd8t_1", Kt = "_primary_dbd8t_10", Jt = "_medium_dbd8t_15", Qt = "_secondary_dbd8t_20", Xt = "_accent_dbd8t_30", Yt = "_subtitle_dbd8t_40", N = {
596
+ text: Gt,
597
+ primary: Kt,
598
+ medium: Jt,
599
+ secondary: Qt,
600
+ accent: Xt,
601
+ subtitle: Yt,
592
602
  "color-main": "_color-main_dbd8t_46",
593
603
  "color-secondary": "_color-secondary_dbd8t_50",
594
604
  "color-semilight": "_color-semilight_dbd8t_54",
@@ -596,7 +606,8 @@ const Ze = "_label_1ic51_1", et = {
596
606
  "color-invert": "_color-invert_dbd8t_62",
597
607
  "color-danger": "_color-danger_dbd8t_66",
598
608
  "color-success": "_color-success_dbd8t_70"
599
- }, os = /* @__PURE__ */ f({
609
+ }, hn = /* @__PURE__ */ f({
610
+ name: "UiText",
600
611
  __name: "text",
601
612
  props: {
602
613
  tagName: { default: "p" },
@@ -604,26 +615,26 @@ const Ze = "_label_1ic51_1", et = {
604
615
  weight: {},
605
616
  color: {}
606
617
  },
607
- setup(n) {
608
- const e = n, t = c(() => [
618
+ setup(s) {
619
+ const e = s, o = a(() => [
609
620
  N.text,
610
621
  N[e.kind],
611
622
  e.weight && N[e.weight],
612
623
  e.color && N[`color-${e.color}`]
613
624
  ]);
614
- return (s, o) => (a(), k(A(s.tagName), {
615
- class: u(t.value)
625
+ return (t, l) => (r(), h(K(t.tagName), {
626
+ class: i(o.value)
616
627
  }, {
617
- default: v(() => [
618
- h(s.$slots, "default")
628
+ default: k(() => [
629
+ b(t.$slots, "default")
619
630
  ]),
620
631
  _: 3
621
632
  }, 8, ["class"]));
622
633
  }
623
- }), qt = "_title_1m0wo_1", Ot = "_medium_1m0wo_15", z = {
624
- title: qt,
634
+ }), Zt = "_title_1m0wo_1", en = "_medium_1m0wo_15", z = {
635
+ title: Zt,
625
636
  "level-1": "_level-1_1m0wo_10",
626
- medium: Ot,
637
+ medium: en,
627
638
  "level-2": "_level-2_1m0wo_20",
628
639
  "level-3": "_level-3_1m0wo_30",
629
640
  "level-4": "_level-4_1m0wo_40",
@@ -634,7 +645,8 @@ const Ze = "_label_1ic51_1", et = {
634
645
  "color-invert": "_color-invert_1m0wo_66",
635
646
  "color-danger": "_color-danger_1m0wo_70",
636
647
  "color-success": "_color-success_1m0wo_74"
637
- }, ls = /* @__PURE__ */ f({
648
+ }, $n = /* @__PURE__ */ f({
649
+ name: "UiTitle",
638
650
  __name: "title",
639
651
  props: {
640
652
  level: {},
@@ -642,108 +654,110 @@ const Ze = "_label_1ic51_1", et = {
642
654
  weight: {},
643
655
  color: {}
644
656
  },
645
- setup(n) {
646
- const e = n, t = c(() => [
657
+ setup(s) {
658
+ const e = s, o = a(() => [
647
659
  z.title,
648
660
  z[`level-${e.level ?? 1}`],
649
661
  e.className,
650
662
  e.weight && z[e.weight],
651
663
  e.color && z[`color-${e.color}`]
652
- ]), s = c(() => `h${e.level ?? 1}`);
653
- return (o, i) => (a(), k(A(s.value), {
654
- class: u(t.value)
664
+ ]), t = a(() => `h${e.level ?? 1}`);
665
+ return (l, u) => (r(), h(K(t.value), {
666
+ class: i(o.value)
655
667
  }, {
656
- default: v(() => [
657
- h(o.$slots, "default")
668
+ default: k(() => [
669
+ b(l.$slots, "default")
658
670
  ]),
659
671
  _: 3
660
672
  }, 8, ["class"]));
661
673
  }
662
- }), Pt = "_error_lk2jx_1", Wt = {
663
- error: Pt
664
- }, rs = /* @__PURE__ */ f({
674
+ }), tn = "_error_lk2jx_1", nn = {
675
+ error: tn
676
+ }, wn = /* @__PURE__ */ f({
677
+ name: "UiError",
665
678
  __name: "error",
666
679
  props: {
667
680
  className: {}
668
681
  },
669
- setup(n) {
670
- const e = n, t = c(() => [
671
- Wt.error,
682
+ setup(s) {
683
+ const e = s, o = a(() => [
684
+ nn.error,
672
685
  e.className
673
686
  ]);
674
- return (s, o) => (a(), p("span", {
675
- class: u(t.value)
687
+ return (t, l) => (r(), d("span", {
688
+ class: i(o.value)
676
689
  }, [
677
- h(s.$slots, "default")
690
+ b(t.$slots, "default")
678
691
  ], 2));
679
692
  }
680
- }), Ht = "_root_1tj1b_1", Rt = "_xxs_1tj1b_26", At = "_xs_1tj1b_30", Dt = "_s_1tj1b_16", Vt = "_m_1tj1b_38", Ft = "_l_1tj1b_42", Gt = "_square_1tj1b_45", Kt = "_xl_1tj1b_50", Jt = "_xxl_1tj1b_58", U = {
681
- root: Ht,
693
+ }), sn = "_root_1tj1b_1", on = "_xxs_1tj1b_26", ln = "_xs_1tj1b_30", rn = "_s_1tj1b_16", an = "_m_1tj1b_38", cn = "_l_1tj1b_42", un = "_square_1tj1b_45", _n = "_xl_1tj1b_50", dn = "_xxl_1tj1b_58", E = {
694
+ root: sn,
682
695
  default: "_default_1tj1b_14",
683
- xxs: Rt,
684
- xs: At,
685
- s: Dt,
686
- m: Vt,
687
- l: Ft,
688
- square: Gt,
689
- xl: Kt,
690
- xxl: Jt,
696
+ xxs: on,
697
+ xs: ln,
698
+ s: rn,
699
+ m: an,
700
+ l: cn,
701
+ square: un,
702
+ xl: _n,
703
+ xxl: dn,
691
704
  "3xl": "_3xl_1tj1b_66"
692
- }, Qt = ["src"], as = /* @__PURE__ */ f({
705
+ }, pn = ["src"], xn = /* @__PURE__ */ f({
706
+ name: "UiAvatar",
693
707
  __name: "avatar",
694
708
  props: {
695
709
  src: { default: void 0 },
696
710
  size: { default: "xxs" },
697
711
  square: { type: Boolean, default: !1 }
698
712
  },
699
- setup(n) {
700
- const e = n, t = O(!e.src), s = O(!1), o = c(() => e.src && !s.value), i = c(() => {
701
- const b = !t.value || s.value || !e.src;
713
+ setup(s) {
714
+ const e = s, o = W(!e.src), t = W(!1), l = a(() => e.src && !t.value), u = a(() => {
715
+ const m = !o.value || t.value || !e.src;
702
716
  return [
703
- U.root,
704
- U[e.size],
705
- e.square && U.square,
706
- b && U.default
717
+ E.root,
718
+ E[e.size],
719
+ e.square && E.square,
720
+ m && E.default
707
721
  ];
708
722
  });
709
- oe(
723
+ ge(
710
724
  () => e.src,
711
- (b) => {
712
- t.value = !b, s.value = !1;
725
+ (m) => {
726
+ o.value = !m, t.value = !1;
713
727
  },
714
728
  { immediate: !0 }
715
729
  );
716
- function l() {
717
- t.value = !0;
730
+ function c() {
731
+ o.value = !0;
718
732
  }
719
733
  function _() {
720
- s.value = !0;
734
+ t.value = !0;
721
735
  }
722
- return (b, $) => (a(), p("div", {
723
- class: u(i.value)
736
+ return (m, g) => (r(), d("div", {
737
+ class: i(u.value)
724
738
  }, [
725
- o.value ? (a(), p("img", {
739
+ l.value ? (r(), d("img", {
726
740
  key: 0,
727
- src: b.src,
728
- onLoad: l,
741
+ src: m.src,
742
+ onLoad: c,
729
743
  onError: _
730
- }, null, 40, Qt)) : m("", !0),
731
- h(b.$slots, "default")
744
+ }, null, 40, pn)) : p("", !0),
745
+ b(m.$slots, "default")
732
746
  ], 2));
733
747
  }
734
748
  });
735
749
  export {
736
- as as UiAvatar,
737
- D as UiButton,
738
- es as UiButtonIcon,
739
- ts as UiButtonLink,
740
- rs as UiError,
741
- T as UiIcon,
742
- ss as UiInput,
743
- tt as UiLabel,
744
- pe as UiLoader,
745
- ns as UiPlank,
746
- os as UiText,
747
- ls as UiTitle,
748
- Zt as injectSvgSprite
750
+ xn as UiAvatar,
751
+ J as UiButton,
752
+ yn as UiButtonIcon,
753
+ vn as UiButtonLink,
754
+ wn as UiError,
755
+ C as UiIcon,
756
+ kn as UiInput,
757
+ yt as UiLabel,
758
+ Se as UiLoader,
759
+ gn as UiPlank,
760
+ hn as UiText,
761
+ $n as UiTitle,
762
+ bn as injectSvgSprite
749
763
  };