@huntflow/ui 0.0.54 → 0.0.55

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.
Files changed (3) hide show
  1. package/dist/ui.cjs.js +3 -3
  2. package/dist/ui.es.js +120 -120
  3. package/package.json +13 -13
package/dist/ui.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(){"use strict";var o;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(o=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:o.content,t.appendChild(document.createTextNode('@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._button_1syl2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-button-icon)}._button_1syl2_1:active{background-color:#999}._button_1syl2_1:focus{outline:none}._button_1syl2_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_1syl2_1:is(._disabled_1syl2_1),._button_1syl2_1:is(._disabled_1syl2_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_1syl2_1._loading_1syl2_1{cursor:default}._button_1syl2_1._loading_1syl2_1>*:not(._loader_1syl2_1){visibility:hidden}._button_1syl2_1+._button_1syl2_1{margin-left:var(--hf-gap-button-between)}._content_1syl2_1{display:flex;line-height:inherit}._content_1syl2_1:first-child:last-child{width:100%;text-align:center}._loader_1syl2_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_1syl2_1{margin-left:calc(var(--hf-gap-button-icon) * -1)}._s_1syl2_2{border-radius:var(--hf-radius-button-s);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)}._xs_1syl2_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_1syl2_1._square_1syl2_1{border-radius:var(--hf-radius-button-xs)}._xs_1syl2_1._circle_1syl2_1{border-radius:var(--hf-radius-button-circle)}._m_1syl2_1{border-radius:var(--hf-radius-button-m);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)}._l_1syl2_1{border-radius:var(--hf-radius-button-l);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)}._primary_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_1syl2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_1syl2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_1syl2_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_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_1syl2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_1syl2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_1syl2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_1syl2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_1syl2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_1syl2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_1syl2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_1syl2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._wrapper_6qo53_1{margin-bottom:var(--hf-gap-xs)}._input_6qo53_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-field-border-default);background:var(--hf-color-field-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-right-default);width:100%;box-sizing:border-box;color:var(--hf-color-field-text-default);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)}._input_6qo53_5:active{border-color:var(--hf-color-field-border-focus)}._input_6qo53_5:focus{border-color:var(--hf-color-field-border-focus);outline:solid 3px var(--hf-color-field-border-focus-visible)}._input_6qo53_5:disabled{outline:none;border-color:var(--hf-color-field-text-disable);background:var(--hf-color-field-background-disable);color:var(--hf-color-field-text-disable)}._error_6qo53_35,._error_6qo53_35:active{border-color:var(--hf-color-field-border-error)}._error_6qo53_35:focus{border-color:var(--hf-color-field-border-error);outline:solid 3px var(--hf-color-field-border-error-focus-visible)}._description_6qo53_47{margin-top:var(--hf-gap-xs);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)}._description_6qo53_47 a{text-decoration:underline}._descriptionText_6qo53_58{color:var(--hf-color-field-text-description)}._errorText_6qo53_62{color:var(--hf-color-text-danger)}._label_12r0e_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12r0e_10{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_12r0e_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12r0e_25{display:block;color:var(--hf-color-text-main);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)}._subTitleRow_12r0e_33{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_12r0e_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12r0e_45{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_12r0e_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_12r0e_62{margin-bottom:1px}._label_jcdiv_1{display:flex;align-items:center;gap:8px;height:20px}._label_jcdiv_1._disabled_jcdiv_7{color:gray;cursor:not-allowed}._label_jcdiv_1 span{margin-top:-5px}._input_jcdiv_17[type=checkbox]{vertical-align:-2px;margin:0;border-radius:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;width:16px;height:16px;border:1px solid #25CFE8;transform:translateY(-.075em);display:grid;place-content:center}._input_jcdiv_17._error_jcdiv_30[type=checkbox]{border:1px solid #FF0000}._input_jcdiv_17[type=checkbox]:before{content:"";width:16px;height:16px;clip-path:polygon(0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);transform:scale(0);transform-origin:bottom left;transition:.12s transform ease-in-out;background-color:#25cfe8;border-radius:4px}._input_jcdiv_17[type=checkbox]:checked:before{transform:scale(1)}._input_jcdiv_17[type=checkbox]:focus{outline:2px solid #C4EDFA}._input_jcdiv_17._error_jcdiv_30[type=checkbox]:focus{outline:2px solid #FFD6D6}._input_jcdiv_17[type=checkbox]:disabled{border-color:#00000029;opacity:30%;color:#000;cursor:not-allowed}._text_jcdiv_70{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:15px;line-height:20px}._errorText_jcdiv_76{color:red;font-size:12px}._title_6ila8_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main)}._level-1_6ila8_7{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1);line-height:var(--hf-font-line-height-text-h1)}._level-2_6ila8_13{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2);line-height:var(--hf-font-line-height-text-h2)}._level-3_6ila8_19{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3);line-height:var(--hf-font-line-height-text-h3)}._level-4_6ila8_25{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._text_pweht_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_pweht_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary);line-height:var(--hf-font-line-height-text-primary)}._primary_pweht_8._medium_pweht_13{font-weight:var(--hf-font-weight-text-primary-bold)}._secondary_pweht_18{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary);line-height:var(--hf-font-line-height-text-secondary)}._secondary_pweht_18._medium_pweht_13{font-weight:var(--hf-font-weight-text-secondary-bold)}._accent_pweht_27{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent);line-height:var(--hf-font-line-height-text-accent)}._accent_pweht_27._medium_pweht_13{font-weight:var(--hf-font-weight-text-accent-bold)}._subtitle_pweht_36{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)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_n8n8w_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_n8n8w_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs)}._m_n8n8w_19{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_n8n8w_24{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_n8n8w_30{padding:0}._button_fj122_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-gap-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);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)}._button_fj122_1:hover{color:var(--hf-color-link-hover)}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=(s,t)=>{const l=t?s[t]:s.default;return(l==null?void 0:l().some(n=>{const o=n.children;return o&&o.toString().trim()!==""}))??!1},z="_loader_t6bg6_10",S="_circle_t6bg6_15",V="_white_t6bg6_22",E="_black_t6bg6_26",x="_s_t6bg6_30",M="_m_t6bg6_35",L="_l_t6bg6_10",j="_spinner_t6bg6_45",k={loader:z,circle:S,"loader-animation":"_loader-animation_t6bg6_1",white:V,black:E,s:x,m:M,l:L,spinner:j},g=e.defineComponent({__name:"loader",props:{className:{},size:{default:"l"},color:{default:"black"}},setup(s){const t=s,l=e.computed(()=>[k.loader,k[t.size],k[t.color],k.circle]);return(n,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(k).spinner,l.value])},null,2))}}),D="_button_1syl2_1",q="_disabled_1syl2_1",I="_loading_1syl2_1",H="_loader_1syl2_1",U="_content_1syl2_1",R="_dropdownIcon_1syl2_1",O="_s_1syl2_2",W="_xs_1syl2_1",P="_square_1syl2_1",A="_circle_1syl2_1",F="_m_1syl2_1",G="_l_1syl2_1",K="_primary_1syl2_1",J="_secondary_1syl2_1",Q="_accent_1syl2_1",X="_danger_1syl2_1",Y="_jobsites_1syl2_1",Z="_ghost_1syl2_1",i={button:D,disabled:q,loading:I,loader:H,content:U,dropdownIcon:R,s:O,xs:W,square:P,circle:A,m:F,l:G,primary:K,secondary:J,accent:Q,danger:X,jobsites:Y,ghost:Z,"ghost-danger":"_ghost-danger_1syl2_1"},ee=["aria-label","width","height"],te=["xlink:href"],oe=e.defineComponent({__name:"icon",props:{type:{},color:{},block:{type:Boolean}},setup(s){const t=s,l=e.computed(()=>{var r;const o=(r=t==null?void 0:t.type)==null?void 0:r.match(/(\d+)$/);return o?parseInt(o[1],10):16}),n=e.computed(()=>{const o={};return t.color&&(o.color=t.color),t.block&&(o.display="block"),o});return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.$style.icon),"aria-label":o.type,style:e.normalizeStyle(n.value),role:"img",width:l.value,height:l.value},[e.createElementVNode("use",{"xlink:href":`#${o.type}`},null,8,te)],14,ee))}}),le="_icon_1p8iz_2",ne={icon:le},se=(s,t)=>{const l=s.__vccOpts||s;for(const[n,o]of t)l[n]=o;return l},re={$style:ne},h=se(oe,[["__cssModules",re]]),ae=["name","type","disabled"],w=e.defineComponent({__name:"button",props:{size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dropdown:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},htmlType:{}},emits:["click"],setup(s){const t=e.useSlots(),l=s,n={primary:"white",secondary:"black",accent:"white",danger:"white",jobsites:"white",ghost:"black","ghost-danger":"black"},o=e.computed(()=>b(t)),r=e.computed(()=>[i.button,i[l.size],i[l.type],l.circle?[i.circle]:[i.square],{[i.disabled]:l.disabled,[i.loading]:l.loading,[i.active]:l.active,[i.bordered]:l.bordered},l.className]),d=e.computed(()=>n[l.type]||"white");return(a,m)=>(e.openBlock(),e.createElementBlock("button",{name:a.name,class:e.normalizeClass(r.value),type:a.htmlType,disabled:a.disabled||a.loading,onClick:m[0]||(m[0]=u=>a.$emit("click"))},[a.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i).loader)},[e.createVNode(e.unref(g),{size:"s",color:d.value},null,8,["color"])],2)):e.createCommentVNode("",!0),a.$slots.before?e.renderSlot(a.$slots,"before",{key:1}):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(i).content)},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0),a.$slots.after?e.renderSlot(a.$slots,"after",{key:3}):e.createCommentVNode("",!0),a.dropdown?(e.openBlock(),e.createBlock(h,{key:4,class:e.normalizeClass(e.unref(i).dropdownIcon),type:"chevron-down-18"},null,8,["class"])):e.createCommentVNode("",!0)],10,ae))}}),ce="_wrapper_6qo53_1",ie="_input_6qo53_5",de="_error_6qo53_35",ue="_description_6qo53_47",pe="_descriptionText_6qo53_58",_e="_errorText_6qo53_62",p={wrapper:ce,input:ie,error:de,description:ue,descriptionText:pe,errorText:_e},me="_label_12r0e_1",ye="_header_12r0e_10",ke="_headerWrapper_12r0e_18",be="_title_12r0e_25",fe="_subTitleRow_12r0e_33",he="_subTitle_12r0e_33",ve="_link_12r0e_45",Be="_linkUpper_12r0e_62",_={label:me,header:ye,headerWrapper:ke,title:be,subTitleRow:fe,subTitle:he,link:ve,linkUpper:Be},T=e.defineComponent({__name:"label",emits:["click"],setup(s){const t=e.useSlots(),l=e.computed(()=>b(t,"header")),n=e.computed(()=>b(t)),o=e.computed(()=>b(t,"subTitle")),r=e.computed(()=>b(t,"link")),d=e.computed(()=>l.value||n.value||o.value),a=e.computed(()=>!n.value&&!o.value),m=e.computed(()=>[_.link,a.value&&_.linkUpper].filter(Boolean));return(u,f)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(_).label)},[d.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).headerWrapper)},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).header)},[e.renderSlot(u.$slots,"header")],2)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(_).title)},[e.renderSlot(u.$slots,"default")],2)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(_).subTitleRow)},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(_).subTitle)},[e.renderSlot(u.$slots,"subTitle")],2)],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(m.value),onClick:f[0]||(f[0]=c=>u.$emit("click"))},[e.renderSlot(u.$slots,"link")],2)):e.createCommentVNode("",!0)],2))}}),Ce=["id","name","type","disabled","placeholder"],$e=["innerHTML"],ge=["innerHTML"],we=e.defineComponent({__name:"input",props:e.mergeModels({value:{},type:{default:"text"},id:{},name:{},disabled:{type:Boolean},title:{},header:{},subTitle:{},link:{},placeholder:{},loading:{type:Boolean},error:{},description:{},className:{}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","enter","click-link"],["update:value"]),setup(s,{emit:t}){const l=e.useModel(s,"value"),n=s,o=t,r=e.computed(()=>[p.input,{[p.disabled]:n.disabled,[p.error]:n.error,[p.loading]:n.loading},n.className]),d=e.computed(()=>n.header||n.title||n.subTitle||n.link),a=e.computed(()=>n.description||n.error),m=c=>{o("update:value",c.target.value)},u=c=>{c.key==="Enter"&&o("enter")},f=()=>{o("click-link")};return(c,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).wrapper)},[d.value?(e.openBlock(),e.createBlock(e.unref(T),{key:0,for:c.id,onClick:f},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.header),1)]),subTitle:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.subTitle),1)]),link:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.link),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n.title)+" ",1)]),_:1},8,["for"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:c.id,"onUpdate:modelValue":B[0]||(B[0]=N=>l.value=N),name:c.name,type:c.type,disabled:c.disabled||c.loading,placeholder:c.placeholder,class:e.normalizeClass(r.value),onInput:m,onKeydown:u},null,42,Ce),[[e.vModelDynamic,l.value]]),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).description)},[c.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p).errorText),innerHTML:c.error},null,10,$e)):e.createCommentVNode("",!0),c.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).descriptionText),innerHTML:c.description},null,10,ge)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),Te="_label_jcdiv_1",Ne="_disabled_jcdiv_7",ze="_input_jcdiv_17",Se="_error_jcdiv_30",Ve="_text_jcdiv_70",Ee="_errorText_jcdiv_76",y={label:Te,disabled:Ne,input:ze,error:Se,text:Ve,errorText:Ee},xe=["for"],Me=["id","name","disabled"],Le=e.defineComponent({__name:"checkbox",props:e.mergeModels({id:{},name:{},disabled:{type:Boolean},label:{},error:{},className:{}},{checked:{type:Boolean},checkedModifiers:{}}),emits:["update:checked"],setup(s){const t=e.useModel(s,"checked"),l=s,n=e.computed(()=>[y.label,{[y.disabled]:l.disabled},l.className]);return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",{for:o.id,class:e.normalizeClass(n.value)},[e.withDirectives(e.createElementVNode("input",{id:o.id,"onUpdate:modelValue":r[0]||(r[0]=d=>t.value=d),name:o.name,type:"checkbox",disabled:o.disabled,class:e.normalizeClass([e.unref(y).input,{[e.unref(y).error]:!!l.error}])},null,10,Me),[[e.vModelCheckbox,t.value]]),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(y).text)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],10,xe),o.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(y).errorText)},e.toDisplayString(o.error),3)):e.createCommentVNode("",!0)]))}}),je=async()=>{if(!(typeof document>"u")&&!document.getElementById("__svg-sprite__"))try{const t=`
1
+ (function(){"use strict";var o;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(o=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:o.content,t.appendChild(document.createTextNode('@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._button_1syl2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-button-icon)}._button_1syl2_1:active{background-color:#999}._button_1syl2_1:focus{outline:none}._button_1syl2_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_1syl2_1:is(._disabled_1syl2_1),._button_1syl2_1:is(._disabled_1syl2_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_1syl2_1._loading_1syl2_1{cursor:default}._button_1syl2_1._loading_1syl2_1>*:not(._loader_1syl2_1){visibility:hidden}._button_1syl2_1+._button_1syl2_1{margin-left:var(--hf-gap-button-between)}._content_1syl2_1{display:flex;line-height:inherit}._content_1syl2_1:first-child:last-child{width:100%;text-align:center}._loader_1syl2_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_1syl2_1{margin-left:calc(var(--hf-gap-button-icon) * -1)}._s_1syl2_2{border-radius:var(--hf-radius-button-s);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)}._xs_1syl2_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_1syl2_1._square_1syl2_1{border-radius:var(--hf-radius-button-xs)}._xs_1syl2_1._circle_1syl2_1{border-radius:var(--hf-radius-button-circle)}._m_1syl2_1{border-radius:var(--hf-radius-button-m);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)}._l_1syl2_1{border-radius:var(--hf-radius-button-l);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)}._primary_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_1syl2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_1syl2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_1syl2_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_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_1syl2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_1syl2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_1syl2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_1syl2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_1syl2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_1syl2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_1syl2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_1syl2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._wrapper_1rgcl_1{margin-bottom:var(--hf-gap-xs)}._input_1rgcl_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);background:var(--hf-color-input-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-right-default);width:100%;box-sizing:border-box;color:var(--hf-color-input-text-default);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)}._input_1rgcl_5:active{border-color:var(--hf-color-input-border-focus)}._input_1rgcl_5:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1rgcl_5:disabled{outline:none;border-color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);color:var(--hf-color-input-text-disable)}._error_1rgcl_35,._error_1rgcl_35:active{border-color:var(--hf-color-input-border-error)}._error_1rgcl_35:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1rgcl_47{margin-top:var(--hf-gap-xs);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)}._description_1rgcl_47 a{text-decoration:underline}._descriptionText_1rgcl_58{color:var(--hf-color-input-text-description)}._errorText_1rgcl_62{color:var(--hf-color-text-danger)}._label_12r0e_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12r0e_10{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_12r0e_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12r0e_25{display:block;color:var(--hf-color-text-main);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)}._subTitleRow_12r0e_33{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_12r0e_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12r0e_45{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_12r0e_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_12r0e_62{margin-bottom:1px}._label_jcdiv_1{display:flex;align-items:center;gap:8px;height:20px}._label_jcdiv_1._disabled_jcdiv_7{color:gray;cursor:not-allowed}._label_jcdiv_1 span{margin-top:-5px}._input_jcdiv_17[type=checkbox]{vertical-align:-2px;margin:0;border-radius:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;width:16px;height:16px;border:1px solid #25CFE8;transform:translateY(-.075em);display:grid;place-content:center}._input_jcdiv_17._error_jcdiv_30[type=checkbox]{border:1px solid #FF0000}._input_jcdiv_17[type=checkbox]:before{content:"";width:16px;height:16px;clip-path:polygon(0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);transform:scale(0);transform-origin:bottom left;transition:.12s transform ease-in-out;background-color:#25cfe8;border-radius:4px}._input_jcdiv_17[type=checkbox]:checked:before{transform:scale(1)}._input_jcdiv_17[type=checkbox]:focus{outline:2px solid #C4EDFA}._input_jcdiv_17._error_jcdiv_30[type=checkbox]:focus{outline:2px solid #FFD6D6}._input_jcdiv_17[type=checkbox]:disabled{border-color:#00000029;opacity:30%;color:#000;cursor:not-allowed}._text_jcdiv_70{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:15px;line-height:20px}._errorText_jcdiv_76{color:red;font-size:12px}._title_j3vxq_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._level-1_j3vxq_8{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1);line-height:var(--hf-font-line-height-text-h1)}._level-2_j3vxq_14{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2);line-height:var(--hf-font-line-height-text-h2)}._level-3_j3vxq_20{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3);line-height:var(--hf-font-line-height-text-h3)}._level-4_j3vxq_26{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._text_pweht_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_pweht_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary);line-height:var(--hf-font-line-height-text-primary)}._primary_pweht_8._medium_pweht_13{font-weight:var(--hf-font-weight-text-primary-bold)}._secondary_pweht_18{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary);line-height:var(--hf-font-line-height-text-secondary)}._secondary_pweht_18._medium_pweht_13{font-weight:var(--hf-font-weight-text-secondary-bold)}._accent_pweht_27{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent);line-height:var(--hf-font-line-height-text-accent)}._accent_pweht_27._medium_pweht_13{font-weight:var(--hf-font-weight-text-accent-bold)}._subtitle_pweht_36{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)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_n8n8w_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_n8n8w_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs)}._m_n8n8w_19{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_n8n8w_24{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_n8n8w_30{padding:0}._button_fj122_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-gap-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);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)}._button_fj122_1:hover{color:var(--hf-color-link-hover)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=(s,t)=>{const l=t?s[t]:s.default;return(l==null?void 0:l().some(n=>{const o=n.children;return o&&o.toString().trim()!==""}))??!1},z="_loader_t6bg6_10",S="_circle_t6bg6_15",V="_white_t6bg6_22",E="_black_t6bg6_26",x="_s_t6bg6_30",j="_m_t6bg6_35",M="_l_t6bg6_10",L="_spinner_t6bg6_45",k={loader:z,circle:S,"loader-animation":"_loader-animation_t6bg6_1",white:V,black:E,s:x,m:j,l:M,spinner:L},$=e.defineComponent({__name:"loader",props:{className:{},size:{default:"l"},color:{default:"black"}},setup(s){const t=s,l=e.computed(()=>[k.loader,k[t.size],k[t.color],k.circle]);return(n,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([e.unref(k).spinner,l.value])},null,2))}}),D="_button_1syl2_1",I="_disabled_1syl2_1",q="_loading_1syl2_1",H="_loader_1syl2_1",U="_content_1syl2_1",R="_dropdownIcon_1syl2_1",O="_s_1syl2_2",W="_xs_1syl2_1",P="_square_1syl2_1",A="_circle_1syl2_1",F="_m_1syl2_1",G="_l_1syl2_1",K="_primary_1syl2_1",J="_secondary_1syl2_1",Q="_accent_1syl2_1",X="_danger_1syl2_1",Y="_jobsites_1syl2_1",Z="_ghost_1syl2_1",i={button:D,disabled:I,loading:q,loader:H,content:U,dropdownIcon:R,s:O,xs:W,square:P,circle:A,m:F,l:G,primary:K,secondary:J,accent:Q,danger:X,jobsites:Y,ghost:Z,"ghost-danger":"_ghost-danger_1syl2_1"},ee=["aria-label","width","height"],te=["xlink:href"],oe=e.defineComponent({__name:"icon",props:{type:{},color:{},block:{type:Boolean}},setup(s){const t=s,l=e.computed(()=>{var r;const o=(r=t==null?void 0:t.type)==null?void 0:r.match(/(\d+)$/);return o?parseInt(o[1],10):16}),n=e.computed(()=>{const o={};return t.color&&(o.color=t.color),t.block&&(o.display="block"),o});return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(o.$style.icon),"aria-label":o.type,style:e.normalizeStyle(n.value),role:"img",width:l.value,height:l.value},[e.createElementVNode("use",{"xlink:href":`#${o.type}`},null,8,te)],14,ee))}}),le="_icon_1p8iz_2",ne={icon:le},se=(s,t)=>{const l=s.__vccOpts||s;for(const[n,o]of t)l[n]=o;return l},re={$style:ne},v=se(oe,[["__cssModules",re]]),ae=["name","type","disabled"],w=e.defineComponent({__name:"button",props:{size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dropdown:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},htmlType:{}},emits:["click"],setup(s){const t=e.useSlots(),l=s,n={primary:"white",secondary:"black",accent:"white",danger:"white",jobsites:"white",ghost:"black","ghost-danger":"black"},o=e.computed(()=>b(t)),r=e.computed(()=>[i.button,i[l.size],i[l.type],l.circle?[i.circle]:[i.square],{[i.disabled]:l.disabled,[i.loading]:l.loading,[i.active]:l.active,[i.bordered]:l.bordered},l.className]),d=e.computed(()=>n[l.type]||"white");return(a,m)=>(e.openBlock(),e.createElementBlock("button",{name:a.name,class:e.normalizeClass(r.value),type:a.htmlType,disabled:a.disabled||a.loading,onClick:m[0]||(m[0]=u=>a.$emit("click"))},[a.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i).loader)},[e.createVNode(e.unref($),{size:"s",color:d.value},null,8,["color"])],2)):e.createCommentVNode("",!0),a.$slots.before?e.renderSlot(a.$slots,"before",{key:1}):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(i).content)},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0),a.$slots.after?e.renderSlot(a.$slots,"after",{key:3}):e.createCommentVNode("",!0),a.dropdown?(e.openBlock(),e.createBlock(v,{key:4,class:e.normalizeClass(e.unref(i).dropdownIcon),type:"chevron-down-18"},null,8,["class"])):e.createCommentVNode("",!0)],10,ae))}}),ce="_wrapper_1rgcl_1",ie="_input_1rgcl_5",de="_error_1rgcl_35",ue="_description_1rgcl_47",pe="_descriptionText_1rgcl_58",_e="_errorText_1rgcl_62",p={wrapper:ce,input:ie,error:de,description:ue,descriptionText:pe,errorText:_e},me="_label_12r0e_1",ye="_header_12r0e_10",ke="_headerWrapper_12r0e_18",be="_title_12r0e_25",fe="_subTitleRow_12r0e_33",ve="_subTitle_12r0e_33",he="_link_12r0e_45",Be="_linkUpper_12r0e_62",_={label:me,header:ye,headerWrapper:ke,title:be,subTitleRow:fe,subTitle:ve,link:he,linkUpper:Be},T=e.defineComponent({__name:"label",emits:["click"],setup(s){const t=e.useSlots(),l=e.computed(()=>b(t,"header")),n=e.computed(()=>b(t)),o=e.computed(()=>b(t,"subTitle")),r=e.computed(()=>b(t,"link")),d=e.computed(()=>l.value||n.value||o.value),a=e.computed(()=>!n.value&&!o.value),m=e.computed(()=>[_.link,a.value&&_.linkUpper].filter(Boolean));return(u,f)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(_).label)},[d.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).headerWrapper)},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(_).header)},[e.renderSlot(u.$slots,"header")],2)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(_).title)},[e.renderSlot(u.$slots,"default")],2)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(_).subTitleRow)},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(_).subTitle)},[e.renderSlot(u.$slots,"subTitle")],2)],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(m.value),onClick:f[0]||(f[0]=c=>u.$emit("click"))},[e.renderSlot(u.$slots,"link")],2)):e.createCommentVNode("",!0)],2))}}),ge=["id","name","type","disabled","placeholder"],Ce=["innerHTML"],$e=["innerHTML"],we=e.defineComponent({__name:"input",props:e.mergeModels({value:{},type:{default:"text"},id:{},name:{},disabled:{type:Boolean},title:{},header:{},subTitle:{},link:{},placeholder:{},loading:{type:Boolean},error:{},description:{},className:{}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","enter","click-link"],["update:value"]),setup(s,{emit:t}){const l=e.useModel(s,"value"),n=s,o=t,r=e.computed(()=>[p.input,{[p.disabled]:n.disabled,[p.error]:n.error,[p.loading]:n.loading},n.className]),d=e.computed(()=>n.header||n.title||n.subTitle||n.link),a=e.computed(()=>n.description||n.error),m=c=>{o("update:value",c.target.value)},u=c=>{c.key==="Enter"&&o("enter")},f=()=>{o("click-link")};return(c,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).wrapper)},[d.value?(e.openBlock(),e.createBlock(e.unref(T),{key:0,for:c.id,onClick:f},{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.header),1)]),subTitle:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.subTitle),1)]),link:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.link),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(n.title)+" ",1)]),_:1},8,["for"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:c.id,"onUpdate:modelValue":B[0]||(B[0]=N=>l.value=N),name:c.name,type:c.type,disabled:c.disabled||c.loading,placeholder:c.placeholder,class:e.normalizeClass(r.value),onInput:m,onKeydown:u},null,42,ge),[[e.vModelDynamic,l.value]]),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).description)},[c.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p).errorText),innerHTML:c.error},null,10,Ce)):e.createCommentVNode("",!0),c.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(p).descriptionText),innerHTML:c.description},null,10,$e)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),Te="_label_jcdiv_1",Ne="_disabled_jcdiv_7",ze="_input_jcdiv_17",Se="_error_jcdiv_30",Ve="_text_jcdiv_70",Ee="_errorText_jcdiv_76",y={label:Te,disabled:Ne,input:ze,error:Se,text:Ve,errorText:Ee},xe=["for"],je=["id","name","disabled"],Me=e.defineComponent({__name:"checkbox",props:e.mergeModels({id:{},name:{},disabled:{type:Boolean},label:{},error:{},className:{}},{checked:{type:Boolean},checkedModifiers:{}}),emits:["update:checked"],setup(s){const t=e.useModel(s,"checked"),l=s,n=e.computed(()=>[y.label,{[y.disabled]:l.disabled},l.className]);return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",{for:o.id,class:e.normalizeClass(n.value)},[e.withDirectives(e.createElementVNode("input",{id:o.id,"onUpdate:modelValue":r[0]||(r[0]=d=>t.value=d),name:o.name,type:"checkbox",disabled:o.disabled,class:e.normalizeClass([e.unref(y).input,{[e.unref(y).error]:!!l.error}])},null,10,je),[[e.vModelCheckbox,t.value]]),o.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(y).text)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],10,xe),o.error?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(y).errorText)},e.toDisplayString(o.error),3)):e.createCommentVNode("",!0)]))}}),Le=async()=>{if(!(typeof document>"u")&&!document.getElementById("__svg-sprite__"))try{const t=`
3
3
  <svg id="__svg-sprite__" xmlns="http://www.w3.org/2000/svg" style="display: none;">
4
4
  ${(await Promise.resolve().then(()=>require("./sprite-BG3yTt8x.cjs"))).default}
5
5
  </svg>
6
- `;document.body.insertAdjacentHTML("afterbegin",t)}catch(s){console.error("Failed to load SVG sprite:",s)}},De="_title_6ila8_1",C={title:De,"level-1":"_level-1_6ila8_7","level-2":"_level-2_6ila8_13","level-3":"_level-3_6ila8_19","level-4":"_level-4_6ila8_25"},qe=e.defineComponent({__name:"title",props:{level:{},text:{},className:{}},setup(s){const t=s,l=e.computed(()=>[C.title,C[`level-${t.level}`],t.className]),n=e.computed(()=>`h${t.level}`);return(o,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{class:e.normalizeClass(l.value)},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])]),_:3},8,["class"]))}}),Ie="_text_pweht_1",He="_primary_pweht_8",Ue="_medium_pweht_13",Re="_secondary_pweht_18",Oe="_accent_pweht_27",We="_subtitle_pweht_36",v={text:Ie,primary:He,medium:Ue,secondary:Re,accent:Oe,subtitle:We},Pe=e.defineComponent({__name:"text",props:{text:{},kind:{default:"primary"},weight:{}},setup(s){const t=s,l=e.computed(()=>[v.text,v[t.kind],t.weight&&v[t.weight]]);return(n,o)=>(e.openBlock(),e.createElementBlock("p",{class:e.normalizeClass(l.value)},[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2))}}),Ae="_s_n8n8w_9",Fe="_xs_n8n8w_14",Ge="_m_n8n8w_19",Ke="_l_n8n8w_24",Je="_button_n8n8w_30",$={s:Ae,xs:Fe,m:Ge,l:Ke,button:Je},Qe=e.defineComponent({__name:"button-icon",props:{icon:{},size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},emits:["click"],setup(s){const t=s,l=e.computed(()=>[$.button,$[t.size],t.className]),n=e.computed(()=>{const o=t.size==="xs"?"18":"20";return t.icon.replace(/-?\d*$/,`-${o}`)});return(o,r)=>(e.openBlock(),e.createBlock(e.unref(w),e.mergeProps({class:l.value},t,{"html-type":"button",onClick:r[0]||(r[0]=d=>o.$emit("click"))}),{before:e.withCtx(()=>[e.createVNode(e.unref(h),{type:n.value},null,8,["type"])]),_:1},16,["class"]))}}),Xe="_button_fj122_1",Ye={button:Xe},Ze=e.defineComponent({__name:"button-link",emits:["click"],setup(s){return(t,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(e.unref(Ye).button),type:"button",onClick:l[0]||(l[0]=n=>t.$emit("click"))},[e.createVNode(e.unref(h),{type:"plus-18"}),e.renderSlot(t.$slots,"default")],2))}});exports.BaseButton=w;exports.BaseCheckbox=Le;exports.BaseIcon=h;exports.BaseInput=we;exports.BaseLabel=T;exports.BaseLoader=g;exports.BaseText=Pe;exports.BaseTitle=qe;exports.ButtonIcon=Qe;exports.ButtonLink=Ze;exports.injectSvgSprite=je;
6
+ `;document.body.insertAdjacentHTML("afterbegin",t)}catch(s){console.error("Failed to load SVG sprite:",s)}},De="_title_j3vxq_1",g={title:De,"level-1":"_level-1_j3vxq_8","level-2":"_level-2_j3vxq_14","level-3":"_level-3_j3vxq_20","level-4":"_level-4_j3vxq_26"},Ie=e.defineComponent({__name:"title",props:{level:{},text:{},className:{}},setup(s){const t=s,l=e.computed(()=>[g.title,g[`level-${t.level}`],t.className]),n=e.computed(()=>`h${t.level}`);return(o,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{class:e.normalizeClass(l.value)},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text),1)])]),_:3},8,["class"]))}}),qe="_text_pweht_1",He="_primary_pweht_8",Ue="_medium_pweht_13",Re="_secondary_pweht_18",Oe="_accent_pweht_27",We="_subtitle_pweht_36",h={text:qe,primary:He,medium:Ue,secondary:Re,accent:Oe,subtitle:We},Pe=e.defineComponent({__name:"text",props:{text:{},kind:{default:"primary"},weight:{}},setup(s){const t=s,l=e.computed(()=>[h.text,h[t.kind],t.weight&&h[t.weight]]);return(n,o)=>(e.openBlock(),e.createElementBlock("p",{class:e.normalizeClass(l.value)},[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2))}}),Ae="_s_n8n8w_9",Fe="_xs_n8n8w_14",Ge="_m_n8n8w_19",Ke="_l_n8n8w_24",Je="_button_n8n8w_30",C={s:Ae,xs:Fe,m:Ge,l:Ke,button:Je},Qe=e.defineComponent({__name:"button-icon",props:{icon:{},size:{default:"m"},className:{},type:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},name:{},circle:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},emits:["click"],setup(s){const t=s,l=e.computed(()=>[C.button,C[t.size],t.className]),n=e.computed(()=>{const o=t.size==="xs"?"18":"20";return t.icon.replace(/-?\d*$/,`-${o}`)});return(o,r)=>(e.openBlock(),e.createBlock(e.unref(w),e.mergeProps({class:l.value},t,{"html-type":"button",onClick:r[0]||(r[0]=d=>o.$emit("click"))}),{before:e.withCtx(()=>[e.createVNode(e.unref(v),{type:n.value},null,8,["type"])]),_:1},16,["class"]))}}),Xe="_button_fj122_1",Ye={button:Xe},Ze=e.defineComponent({__name:"button-link",emits:["click"],setup(s){return(t,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(e.unref(Ye).button),type:"button",onClick:l[0]||(l[0]=n=>t.$emit("click"))},[e.createVNode(e.unref(v),{type:"plus-18"}),e.renderSlot(t.$slots,"default")],2))}});exports.BaseButton=w;exports.BaseCheckbox=Me;exports.BaseIcon=v;exports.BaseInput=we;exports.BaseLabel=T;exports.BaseLoader=$;exports.BaseText=Pe;exports.BaseTitle=Ie;exports.ButtonIcon=Qe;exports.ButtonLink=Ze;exports.injectSvgSprite=Le;
package/dist/ui.es.js CHANGED
@@ -1,7 +1,7 @@
1
- (function(){"use strict";var o;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(o=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:o.content,t.appendChild(document.createTextNode('@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._button_1syl2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-button-icon)}._button_1syl2_1:active{background-color:#999}._button_1syl2_1:focus{outline:none}._button_1syl2_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_1syl2_1:is(._disabled_1syl2_1),._button_1syl2_1:is(._disabled_1syl2_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_1syl2_1._loading_1syl2_1{cursor:default}._button_1syl2_1._loading_1syl2_1>*:not(._loader_1syl2_1){visibility:hidden}._button_1syl2_1+._button_1syl2_1{margin-left:var(--hf-gap-button-between)}._content_1syl2_1{display:flex;line-height:inherit}._content_1syl2_1:first-child:last-child{width:100%;text-align:center}._loader_1syl2_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_1syl2_1{margin-left:calc(var(--hf-gap-button-icon) * -1)}._s_1syl2_2{border-radius:var(--hf-radius-button-s);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)}._xs_1syl2_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_1syl2_1._square_1syl2_1{border-radius:var(--hf-radius-button-xs)}._xs_1syl2_1._circle_1syl2_1{border-radius:var(--hf-radius-button-circle)}._m_1syl2_1{border-radius:var(--hf-radius-button-m);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)}._l_1syl2_1{border-radius:var(--hf-radius-button-l);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)}._primary_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_1syl2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_1syl2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_1syl2_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_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_1syl2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_1syl2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_1syl2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_1syl2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_1syl2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_1syl2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_1syl2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_1syl2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._wrapper_6qo53_1{margin-bottom:var(--hf-gap-xs)}._input_6qo53_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-field-border-default);background:var(--hf-color-field-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-right-default);width:100%;box-sizing:border-box;color:var(--hf-color-field-text-default);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)}._input_6qo53_5:active{border-color:var(--hf-color-field-border-focus)}._input_6qo53_5:focus{border-color:var(--hf-color-field-border-focus);outline:solid 3px var(--hf-color-field-border-focus-visible)}._input_6qo53_5:disabled{outline:none;border-color:var(--hf-color-field-text-disable);background:var(--hf-color-field-background-disable);color:var(--hf-color-field-text-disable)}._error_6qo53_35,._error_6qo53_35:active{border-color:var(--hf-color-field-border-error)}._error_6qo53_35:focus{border-color:var(--hf-color-field-border-error);outline:solid 3px var(--hf-color-field-border-error-focus-visible)}._description_6qo53_47{margin-top:var(--hf-gap-xs);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)}._description_6qo53_47 a{text-decoration:underline}._descriptionText_6qo53_58{color:var(--hf-color-field-text-description)}._errorText_6qo53_62{color:var(--hf-color-text-danger)}._label_12r0e_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12r0e_10{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_12r0e_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12r0e_25{display:block;color:var(--hf-color-text-main);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)}._subTitleRow_12r0e_33{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_12r0e_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12r0e_45{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_12r0e_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_12r0e_62{margin-bottom:1px}._label_jcdiv_1{display:flex;align-items:center;gap:8px;height:20px}._label_jcdiv_1._disabled_jcdiv_7{color:gray;cursor:not-allowed}._label_jcdiv_1 span{margin-top:-5px}._input_jcdiv_17[type=checkbox]{vertical-align:-2px;margin:0;border-radius:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;width:16px;height:16px;border:1px solid #25CFE8;transform:translateY(-.075em);display:grid;place-content:center}._input_jcdiv_17._error_jcdiv_30[type=checkbox]{border:1px solid #FF0000}._input_jcdiv_17[type=checkbox]:before{content:"";width:16px;height:16px;clip-path:polygon(0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);transform:scale(0);transform-origin:bottom left;transition:.12s transform ease-in-out;background-color:#25cfe8;border-radius:4px}._input_jcdiv_17[type=checkbox]:checked:before{transform:scale(1)}._input_jcdiv_17[type=checkbox]:focus{outline:2px solid #C4EDFA}._input_jcdiv_17._error_jcdiv_30[type=checkbox]:focus{outline:2px solid #FFD6D6}._input_jcdiv_17[type=checkbox]:disabled{border-color:#00000029;opacity:30%;color:#000;cursor:not-allowed}._text_jcdiv_70{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:15px;line-height:20px}._errorText_jcdiv_76{color:red;font-size:12px}._title_6ila8_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main)}._level-1_6ila8_7{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1);line-height:var(--hf-font-line-height-text-h1)}._level-2_6ila8_13{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2);line-height:var(--hf-font-line-height-text-h2)}._level-3_6ila8_19{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3);line-height:var(--hf-font-line-height-text-h3)}._level-4_6ila8_25{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._text_pweht_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_pweht_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary);line-height:var(--hf-font-line-height-text-primary)}._primary_pweht_8._medium_pweht_13{font-weight:var(--hf-font-weight-text-primary-bold)}._secondary_pweht_18{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary);line-height:var(--hf-font-line-height-text-secondary)}._secondary_pweht_18._medium_pweht_13{font-weight:var(--hf-font-weight-text-secondary-bold)}._accent_pweht_27{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent);line-height:var(--hf-font-line-height-text-accent)}._accent_pweht_27._medium_pweht_13{font-weight:var(--hf-font-weight-text-accent-bold)}._subtitle_pweht_36{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)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_n8n8w_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_n8n8w_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs)}._m_n8n8w_19{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_n8n8w_24{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_n8n8w_30{padding:0}._button_fj122_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-gap-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);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)}._button_fj122_1:hover{color:var(--hf-color-link-hover)}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { defineComponent as b, computed as c, createElementBlock as i, openBlock as a, normalizeClass as n, unref as r, normalizeStyle as O, createElementVNode as N, useSlots as V, createCommentVNode as p, renderSlot as m, createBlock as j, createVNode as I, mergeModels as S, useModel as D, withDirectives as R, withCtx as T, createTextVNode as B, toDisplayString as $, vModelDynamic as W, vModelCheckbox as A, resolveDynamicComponent as F, mergeProps as G } from "vue";
3
- const L = (o, e) => {
4
- const s = e ? o[e] : o.default;
1
+ (function(){"use strict";var o;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(o=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:o.content,t.appendChild(document.createTextNode('@keyframes _loader-animation_t6bg6_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_t6bg6_10{display:block;color:var(--hf-loader-color);flex:0 0 auto}._circle_t6bg6_15{animation-name:_loader-animation_t6bg6_1;animation-iteration-count:infinite;animation-duration:1s;animation-timing-function:linear}._white_t6bg6_22{--hf-loader-color: var(--hf-color-text-invert)}._black_t6bg6_26{--hf-loader-color: var(--hf-color-text-main)}._s_t6bg6_30{width:18px;height:18px}._m_t6bg6_35{width:28px;height:28px}._l_t6bg6_10{width:56px;height:56px}._spinner_t6bg6_45{display:inline-block;border:1px solid var(--hf-loader-color);border-top-color:transparent;border-left-color:transparent;border-radius:50%}._button_1syl2_1{position:relative;display:inline-flex;align-items:center;justify-content:center;border:solid 1px;cursor:pointer;font-family:var(--hf-font-family-body),sans-serif;font-style:normal;min-width:-moz-max-content;min-width:max-content;text-decoration:none;color:inherit;gap:var(--hf-gap-button-icon)}._button_1syl2_1:active{background-color:#999}._button_1syl2_1:focus{outline:none}._button_1syl2_1:focus-visible{outline:solid 3px var(--hf-color-button-disable-default)}._button_1syl2_1:is(._disabled_1syl2_1),._button_1syl2_1:is(._disabled_1syl2_1):hover{background:var(--hf-color-button-disable-default);border-color:transparent;color:var(--hf-color-text-light);box-shadow:none;transform:none;cursor:default}._button_1syl2_1._loading_1syl2_1{cursor:default}._button_1syl2_1._loading_1syl2_1>*:not(._loader_1syl2_1){visibility:hidden}._button_1syl2_1+._button_1syl2_1{margin-left:var(--hf-gap-button-between)}._content_1syl2_1{display:flex;line-height:inherit}._content_1syl2_1:first-child:last-child{width:100%;text-align:center}._loader_1syl2_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}._dropdownIcon_1syl2_1{margin-left:calc(var(--hf-gap-button-icon) * -1)}._s_1syl2_2{border-radius:var(--hf-radius-button-s);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)}._xs_1syl2_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_1syl2_1._square_1syl2_1{border-radius:var(--hf-radius-button-xs)}._xs_1syl2_1._circle_1syl2_1{border-radius:var(--hf-radius-button-circle)}._m_1syl2_1{border-radius:var(--hf-radius-button-m);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)}._l_1syl2_1{border-radius:var(--hf-radius-button-l);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)}._primary_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-primary-default);border-color:var(--hf-color-button-primary-default)}._primary_1syl2_1:hover{background-color:var(--hf-color-button-primary-hover);border-color:var(--hf-color-button-primary-hover)}._primary_1syl2_1:active{background-color:var(--hf-color-button-primary-active);border-color:var(--hf-color-button-primary-active)}._secondary_1syl2_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_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover);border-color:var(--hf-color-button-secondary-fill-hover)}._secondary_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active);border-color:var(--hf-color-button-secondary-fill-active)}._accent_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-accent-default);border-color:var(--hf-color-button-accent-default)}._accent_1syl2_1:hover{background-color:var(--hf-color-button-accent-hover);border-color:var(--hf-color-button-accent-hover)}._accent_1syl2_1:active{background-color:var(--hf-color-button-accent-active);border-color:var(--hf-color-button-accent-active)}._danger_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-default);border-color:var(--hf-color-button-danger-default)}._danger_1syl2_1:hover{background-color:var(--hf-color-button-danger-hover);border-color:var(--hf-color-button-danger-hover)}._danger_1syl2_1:active{background-color:var(--hf-color-button-danger-active);border-color:var(--hf-color-button-danger-active)}._jobsites_1syl2_1{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-jobsite-default);border-color:var(--hf-color-button-jobsite-default)}._jobsites_1syl2_1:hover{background-color:var(--hf-color-button-jobsite-hover);border-color:var(--hf-color-button-jobsite-hover)}._jobsites_1syl2_1:active{background-color:var(--hf-color-button-jobsite-active);border-color:var(--hf-color-button-jobsite-active)}._ghost_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost_1syl2_1:hover{background-color:var(--hf-color-button-secondary-fill-hover)}._ghost_1syl2_1:active{background-color:var(--hf-color-button-secondary-fill-active)}._ghost-danger_1syl2_1{color:var(--hf-color-text-main);background-color:transparent;border-color:transparent}._ghost-danger_1syl2_1:hover{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-hover)}._ghost-danger_1syl2_1:active{color:var(--hf-color-text-invert);background-color:var(--hf-color-button-danger-active)}._icon_1p8iz_2{font-style:normal;display:inline-block;vertical-align:middle}._wrapper_1rgcl_1{margin-bottom:var(--hf-gap-xs)}._input_1rgcl_5{border-radius:var(--hf-radius-input-default);border:var(--hf-border-xs) solid var(--hf-color-input-border-default);background:var(--hf-color-input-background-default);padding:var(--hf-padding-input-top-bottom-default) var(--hf-padding-input-left-right-default);width:100%;box-sizing:border-box;color:var(--hf-color-input-text-default);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)}._input_1rgcl_5:active{border-color:var(--hf-color-input-border-focus)}._input_1rgcl_5:focus{border-color:var(--hf-color-input-border-focus);outline:solid 3px var(--hf-color-input-border-focus-visible)}._input_1rgcl_5:disabled{outline:none;border-color:var(--hf-color-input-text-disable);background:var(--hf-color-input-background-disable);color:var(--hf-color-input-text-disable)}._error_1rgcl_35,._error_1rgcl_35:active{border-color:var(--hf-color-input-border-error)}._error_1rgcl_35:focus{border-color:var(--hf-color-input-border-error);outline:solid 3px var(--hf-color-input-border-error-focus-visible)}._description_1rgcl_47{margin-top:var(--hf-gap-xs);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)}._description_1rgcl_47 a{text-decoration:underline}._descriptionText_1rgcl_58{color:var(--hf-color-input-text-description)}._errorText_1rgcl_62{color:var(--hf-color-text-danger)}._label_12r0e_1{display:flex;flex-direction:row;gap:var(--hf-gap-xs);font-style:normal;flex:1;margin-bottom:var(--hf-gap-xs)}._header_12r0e_10{display:block;color:var(--hf-color-text-main);font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._headerWrapper_12r0e_18{flex-grow:1;gap:var(--hf-gap-xs);display:flex;flex-direction:column}._title_12r0e_25{display:block;color:var(--hf-color-text-main);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)}._subTitleRow_12r0e_33{display:flex;justify-content:space-between;font-size:var(--hf-font-size-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle)}._subTitle_12r0e_33{line-height:var(--hf-font-line-height-label-subtitle)}._link_12r0e_45{overflow:hidden;text-overflow:ellipsis;font-size:var(--hf-font-size-label-title);line-height:var(--hf-font-line-height-label-subtitle);color:var(--hf-color-text-semilight);font-weight:var(--hf-font-weight-label-subtitle);margin-left:auto;align-self:flex-end;height:20px}._link_12r0e_45 a{text-decoration:none;color:var(--hf-color-text-semilight)}._linkUpper_12r0e_62{margin-bottom:1px}._label_jcdiv_1{display:flex;align-items:center;gap:8px;height:20px}._label_jcdiv_1._disabled_jcdiv_7{color:gray;cursor:not-allowed}._label_jcdiv_1 span{margin-top:-5px}._input_jcdiv_17[type=checkbox]{vertical-align:-2px;margin:0;border-radius:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;width:16px;height:16px;border:1px solid #25CFE8;transform:translateY(-.075em);display:grid;place-content:center}._input_jcdiv_17._error_jcdiv_30[type=checkbox]{border:1px solid #FF0000}._input_jcdiv_17[type=checkbox]:before{content:"";width:16px;height:16px;clip-path:polygon(0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%);transform:scale(0);transform-origin:bottom left;transition:.12s transform ease-in-out;background-color:#25cfe8;border-radius:4px}._input_jcdiv_17[type=checkbox]:checked:before{transform:scale(1)}._input_jcdiv_17[type=checkbox]:focus{outline:2px solid #C4EDFA}._input_jcdiv_17._error_jcdiv_30[type=checkbox]:focus{outline:2px solid #FFD6D6}._input_jcdiv_17[type=checkbox]:disabled{border-color:#00000029;opacity:30%;color:#000;cursor:not-allowed}._text_jcdiv_70{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:15px;line-height:20px}._errorText_jcdiv_76{color:red;font-size:12px}._title_j3vxq_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._level-1_j3vxq_8{font-size:var(--hf-font-size-text-h1);font-weight:var(--hf-font-weight-text-h1);line-height:var(--hf-font-line-height-text-h1)}._level-2_j3vxq_14{font-size:var(--hf-font-size-text-h2);font-weight:var(--hf-font-weight-text-h2);line-height:var(--hf-font-line-height-text-h2)}._level-3_j3vxq_20{font-size:var(--hf-font-size-text-h3);font-weight:var(--hf-font-weight-text-h3);line-height:var(--hf-font-line-height-text-h3)}._level-4_j3vxq_26{font-size:var(--hf-font-size-text-h4);font-weight:var(--hf-font-weight-text-h4);line-height:var(--hf-font-line-height-text-h4)}._text_pweht_1{font-family:var(--hf-font-family-body);font-style:normal;color:var(--hf-color-text-main);margin:0}._primary_pweht_8{font-size:var(--hf-font-size-text-primary);font-weight:var(--hf-font-weight-text-primary);line-height:var(--hf-font-line-height-text-primary)}._primary_pweht_8._medium_pweht_13{font-weight:var(--hf-font-weight-text-primary-bold)}._secondary_pweht_18{font-size:var(--hf-font-size-text-secondary);font-weight:var(--hf-font-weight-text-secondary);line-height:var(--hf-font-line-height-text-secondary)}._secondary_pweht_18._medium_pweht_13{font-weight:var(--hf-font-weight-text-secondary-bold)}._accent_pweht_27{font-size:var(--hf-font-size-text-accent);font-weight:var(--hf-font-weight-text-accent);line-height:var(--hf-font-line-height-text-accent)}._accent_pweht_27._medium_pweht_13{font-weight:var(--hf-font-weight-text-accent-bold)}._subtitle_pweht_36{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)}:root{--hf-btn-size-xs: 28px;--hf-btn-size-s: 32px;--hf-btn-size-m: 36px;--hf-btn-size-l: 40px}._s_n8n8w_9{width:var(--hf-btn-size-s);height:var(--hf-btn-size-s)}._xs_n8n8w_14{width:var(--hf-btn-size-xs);height:var(--hf-btn-size-xs)}._m_n8n8w_19{width:var(--hf-btn-size-m);height:var(--hf-btn-size-m)}._l_n8n8w_24{width:var(--hf-btn-size-l);height:var(--hf-btn-size-l)}._button_n8n8w_30{padding:0}._button_fj122_1{padding:0 2px 0 0;border:none;margin:0;cursor:pointer;display:flex;flex-direction:row;gap:var(--hf-gap-button-link-s);align-items:center;background-color:transparent;color:var(--hf-color-link-default);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)}._button_fj122_1:hover{color:var(--hf-color-link-hover)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { defineComponent as b, computed as c, createElementBlock as i, openBlock as a, normalizeClass as o, unref as r, normalizeStyle as O, createElementVNode as L, useSlots as V, createCommentVNode as p, renderSlot as m, createBlock as x, createVNode as S, mergeModels as z, useModel as D, withDirectives as R, withCtx as T, createTextVNode as B, toDisplayString as $, vModelDynamic as W, vModelCheckbox as A, resolveDynamicComponent as F, mergeProps as G } from "vue";
3
+ const j = (n, e) => {
4
+ const s = e ? n[e] : n.default;
5
5
  return (s == null ? void 0 : s().some((l) => {
6
6
  const t = l.children;
7
7
  return t && t.toString().trim() !== "";
@@ -23,17 +23,17 @@ const L = (o, e) => {
23
23
  size: { default: "l" },
24
24
  color: { default: "black" }
25
25
  },
26
- setup(o) {
27
- const e = o, s = c(() => [C.loader, C[e.size], C[e.color], C.circle]);
26
+ setup(n) {
27
+ const e = n, s = c(() => [C.loader, C[e.size], C[e.color], C.circle]);
28
28
  return (l, t) => (a(), i("span", {
29
- class: n([r(C).spinner, s.value])
29
+ class: o([r(C).spinner, s.value])
30
30
  }, null, 2));
31
31
  }
32
- }), se = "_button_1syl2_1", le = "_disabled_1syl2_1", oe = "_loading_1syl2_1", ne = "_loader_1syl2_1", ae = "_content_1syl2_1", re = "_dropdownIcon_1syl2_1", ce = "_s_1syl2_2", ie = "_xs_1syl2_1", de = "_square_1syl2_1", _e = "_circle_1syl2_1", ue = "_m_1syl2_1", pe = "_l_1syl2_1", ye = "_primary_1syl2_1", me = "_secondary_1syl2_1", be = "_accent_1syl2_1", he = "_danger_1syl2_1", ve = "_jobsites_1syl2_1", ke = "_ghost_1syl2_1", y = {
32
+ }), se = "_button_1syl2_1", le = "_disabled_1syl2_1", ne = "_loading_1syl2_1", oe = "_loader_1syl2_1", ae = "_content_1syl2_1", re = "_dropdownIcon_1syl2_1", ce = "_s_1syl2_2", ie = "_xs_1syl2_1", de = "_square_1syl2_1", _e = "_circle_1syl2_1", ue = "_m_1syl2_1", pe = "_l_1syl2_1", ye = "_primary_1syl2_1", me = "_secondary_1syl2_1", be = "_accent_1syl2_1", ve = "_danger_1syl2_1", he = "_jobsites_1syl2_1", ke = "_ghost_1syl2_1", y = {
33
33
  button: se,
34
34
  disabled: le,
35
- loading: oe,
36
- loader: ne,
35
+ loading: ne,
36
+ loader: oe,
37
37
  content: ae,
38
38
  dropdownIcon: re,
39
39
  s: ce,
@@ -45,8 +45,8 @@ const L = (o, e) => {
45
45
  primary: ye,
46
46
  secondary: me,
47
47
  accent: be,
48
- danger: he,
49
- jobsites: ve,
48
+ danger: ve,
49
+ jobsites: he,
50
50
  ghost: ke,
51
51
  "ghost-danger": "_ghost-danger_1syl2_1"
52
52
  }, fe = ["aria-label", "width", "height"], $e = ["xlink:href"], ge = /* @__PURE__ */ b({
@@ -56,8 +56,8 @@ const L = (o, e) => {
56
56
  color: {},
57
57
  block: { type: Boolean }
58
58
  },
59
- setup(o) {
60
- const e = o, s = c(() => {
59
+ setup(n) {
60
+ const e = n, s = c(() => {
61
61
  var d;
62
62
  const t = (d = e == null ? void 0 : e.type) == null ? void 0 : d.match(/(\d+)$/);
63
63
  return t ? parseInt(t[1], 10) : 16;
@@ -66,28 +66,28 @@ const L = (o, e) => {
66
66
  return e.color && (t.color = e.color), e.block && (t.display = "block"), t;
67
67
  });
68
68
  return (t, d) => (a(), i("svg", {
69
- class: n(t.$style.icon),
69
+ class: o(t.$style.icon),
70
70
  "aria-label": t.type,
71
71
  style: O(l.value),
72
72
  role: "img",
73
73
  width: s.value,
74
74
  height: s.value
75
75
  }, [
76
- N("use", {
76
+ L("use", {
77
77
  "xlink:href": `#${t.type}`
78
78
  }, null, 8, $e)
79
79
  ], 14, fe));
80
80
  }
81
81
  }), we = "_icon_1p8iz_2", Te = {
82
82
  icon: we
83
- }, Be = (o, e) => {
84
- const s = o.__vccOpts || o;
83
+ }, Be = (n, e) => {
84
+ const s = n.__vccOpts || n;
85
85
  for (const [l, t] of e)
86
86
  s[l] = t;
87
87
  return s;
88
88
  }, Ce = {
89
89
  $style: Te
90
- }, q = /* @__PURE__ */ Be(ge, [["__cssModules", Ce]]), Le = ["name", "type", "disabled"], Ne = /* @__PURE__ */ b({
90
+ }, I = /* @__PURE__ */ Be(ge, [["__cssModules", Ce]]), je = ["name", "type", "disabled"], Le = /* @__PURE__ */ b({
91
91
  __name: "button",
92
92
  props: {
93
93
  size: { default: "m" },
@@ -103,8 +103,8 @@ const L = (o, e) => {
103
103
  htmlType: {}
104
104
  },
105
105
  emits: ["click"],
106
- setup(o) {
107
- const e = V(), s = o, l = {
106
+ setup(n) {
107
+ const e = V(), s = n, l = {
108
108
  primary: "white",
109
109
  secondary: "black",
110
110
  accent: "white",
@@ -112,7 +112,7 @@ const L = (o, e) => {
112
112
  jobsites: "white",
113
113
  ghost: "black",
114
114
  "ghost-danger": "black"
115
- }, t = c(() => L(e)), d = c(() => [
115
+ }, t = c(() => j(e)), d = c(() => [
116
116
  y.button,
117
117
  y[s.size],
118
118
  y[s.type],
@@ -124,47 +124,47 @@ const L = (o, e) => {
124
124
  [y.bordered]: s.bordered
125
125
  },
126
126
  s.className
127
- ]), h = c(() => l[s.type] || "white");
127
+ ]), v = c(() => l[s.type] || "white");
128
128
  return (_, g) => (a(), i("button", {
129
129
  name: _.name,
130
- class: n(d.value),
130
+ class: o(d.value),
131
131
  type: _.htmlType,
132
132
  disabled: _.disabled || _.loading,
133
- onClick: g[0] || (g[0] = (v) => _.$emit("click"))
133
+ onClick: g[0] || (g[0] = (h) => _.$emit("click"))
134
134
  }, [
135
135
  _.loading ? (a(), i("div", {
136
136
  key: 0,
137
- class: n(r(y).loader)
137
+ class: o(r(y).loader)
138
138
  }, [
139
- I(r(te), {
139
+ S(r(te), {
140
140
  size: "s",
141
- color: h.value
141
+ color: v.value
142
142
  }, null, 8, ["color"])
143
143
  ], 2)) : p("", !0),
144
144
  _.$slots.before ? m(_.$slots, "before", { key: 1 }) : p("", !0),
145
145
  t.value ? (a(), i("span", {
146
146
  key: 2,
147
- class: n(r(y).content)
147
+ class: o(r(y).content)
148
148
  }, [
149
149
  m(_.$slots, "default")
150
150
  ], 2)) : p("", !0),
151
151
  _.$slots.after ? m(_.$slots, "after", { key: 3 }) : p("", !0),
152
- _.dropdown ? (a(), j(q, {
152
+ _.dropdown ? (a(), x(I, {
153
153
  key: 4,
154
- class: n(r(y).dropdownIcon),
154
+ class: o(r(y).dropdownIcon),
155
155
  type: "chevron-down-18"
156
156
  }, null, 8, ["class"])) : p("", !0)
157
- ], 10, Le));
157
+ ], 10, je));
158
158
  }
159
- }), Me = "_wrapper_6qo53_1", je = "_input_6qo53_5", ze = "_error_6qo53_35", Se = "_description_6qo53_47", Ie = "_descriptionText_6qo53_58", qe = "_errorText_6qo53_62", k = {
160
- wrapper: Me,
161
- input: je,
162
- error: ze,
163
- description: Se,
164
- descriptionText: Ie,
165
- errorText: qe
166
- }, xe = "_label_12r0e_1", He = "_header_12r0e_10", Ue = "_headerWrapper_12r0e_18", Ve = "_title_12r0e_25", De = "_subTitleRow_12r0e_33", Re = "_subTitle_12r0e_33", Ee = "_link_12r0e_45", Oe = "_linkUpper_12r0e_62", f = {
167
- label: xe,
159
+ }), Ne = "_wrapper_1rgcl_1", xe = "_input_1rgcl_5", Me = "_error_1rgcl_35", ze = "_description_1rgcl_47", Se = "_descriptionText_1rgcl_58", Ie = "_errorText_1rgcl_62", k = {
160
+ wrapper: Ne,
161
+ input: xe,
162
+ error: Me,
163
+ description: ze,
164
+ descriptionText: Se,
165
+ errorText: Ie
166
+ }, qe = "_label_12r0e_1", He = "_header_12r0e_10", Ue = "_headerWrapper_12r0e_18", Ve = "_title_12r0e_25", De = "_subTitleRow_12r0e_33", Re = "_subTitle_12r0e_33", Ee = "_link_12r0e_45", Oe = "_linkUpper_12r0e_62", f = {
167
+ label: qe,
168
168
  header: He,
169
169
  headerWrapper: Ue,
170
170
  title: Ve,
@@ -175,52 +175,52 @@ const L = (o, e) => {
175
175
  }, We = /* @__PURE__ */ b({
176
176
  __name: "label",
177
177
  emits: ["click"],
178
- setup(o) {
179
- const e = V(), s = c(() => L(e, "header")), l = c(() => L(e)), t = c(() => L(e, "subTitle")), d = c(() => L(e, "link")), h = c(() => s.value || l.value || t.value), _ = c(() => !l.value && !t.value), g = c(
178
+ setup(n) {
179
+ const e = V(), s = c(() => j(e, "header")), l = c(() => j(e)), t = c(() => j(e, "subTitle")), d = c(() => j(e, "link")), v = c(() => s.value || l.value || t.value), _ = c(() => !l.value && !t.value), g = c(
180
180
  () => [f.link, _.value && f.linkUpper].filter(Boolean)
181
181
  );
182
- return (v, M) => (a(), i("label", {
183
- class: n(r(f).label)
182
+ return (h, N) => (a(), i("label", {
183
+ class: o(r(f).label)
184
184
  }, [
185
- h.value ? (a(), i("span", {
185
+ v.value ? (a(), i("span", {
186
186
  key: 0,
187
- class: n(r(f).headerWrapper)
187
+ class: o(r(f).headerWrapper)
188
188
  }, [
189
189
  s.value ? (a(), i("span", {
190
190
  key: 0,
191
- class: n(r(f).header)
191
+ class: o(r(f).header)
192
192
  }, [
193
- m(v.$slots, "header")
193
+ m(h.$slots, "header")
194
194
  ], 2)) : p("", !0),
195
195
  l.value ? (a(), i("span", {
196
196
  key: 1,
197
- class: n(r(f).title)
197
+ class: o(r(f).title)
198
198
  }, [
199
- m(v.$slots, "default")
199
+ m(h.$slots, "default")
200
200
  ], 2)) : p("", !0),
201
201
  t.value ? (a(), i("span", {
202
202
  key: 2,
203
- class: n(r(f).subTitleRow)
203
+ class: o(r(f).subTitleRow)
204
204
  }, [
205
- N("span", {
206
- class: n(r(f).subTitle)
205
+ L("span", {
206
+ class: o(r(f).subTitle)
207
207
  }, [
208
- m(v.$slots, "subTitle")
208
+ m(h.$slots, "subTitle")
209
209
  ], 2)
210
210
  ], 2)) : p("", !0)
211
211
  ], 2)) : p("", !0),
212
212
  d.value ? (a(), i("span", {
213
213
  key: 1,
214
- class: n(g.value),
215
- onClick: M[0] || (M[0] = (u) => v.$emit("click"))
214
+ class: o(g.value),
215
+ onClick: N[0] || (N[0] = (u) => h.$emit("click"))
216
216
  }, [
217
- m(v.$slots, "link")
217
+ m(h.$slots, "link")
218
218
  ], 2)) : p("", !0)
219
219
  ], 2));
220
220
  }
221
221
  }), Ae = ["id", "name", "type", "disabled", "placeholder"], Fe = ["innerHTML"], Ge = ["innerHTML"], bt = /* @__PURE__ */ b({
222
222
  __name: "input",
223
- props: /* @__PURE__ */ S({
223
+ props: /* @__PURE__ */ z({
224
224
  value: {},
225
225
  type: { default: "text" },
226
226
  id: {},
@@ -239,9 +239,9 @@ const L = (o, e) => {
239
239
  value: {},
240
240
  valueModifiers: {}
241
241
  }),
242
- emits: /* @__PURE__ */ S(["update:value", "enter", "click-link"], ["update:value"]),
243
- setup(o, { emit: e }) {
244
- const s = D(o, "value"), l = o, t = e, d = c(() => [
242
+ emits: /* @__PURE__ */ z(["update:value", "enter", "click-link"], ["update:value"]),
243
+ setup(n, { emit: e }) {
244
+ const s = D(n, "value"), l = n, t = e, d = c(() => [
245
245
  k.input,
246
246
  {
247
247
  [k.disabled]: l.disabled,
@@ -249,20 +249,20 @@ const L = (o, e) => {
249
249
  [k.loading]: l.loading
250
250
  },
251
251
  l.className
252
- ]), h = c(() => l.header || l.title || l.subTitle || l.link), _ = c(() => l.description || l.error), g = (u) => {
252
+ ]), v = c(() => l.header || l.title || l.subTitle || l.link), _ = c(() => l.description || l.error), g = (u) => {
253
253
  t("update:value", u.target.value);
254
- }, v = (u) => {
254
+ }, h = (u) => {
255
255
  u.key === "Enter" && t("enter");
256
- }, M = () => {
256
+ }, N = () => {
257
257
  t("click-link");
258
258
  };
259
- return (u, x) => (a(), i("div", {
260
- class: n(r(k).wrapper)
259
+ return (u, q) => (a(), i("div", {
260
+ class: o(r(k).wrapper)
261
261
  }, [
262
- h.value ? (a(), j(r(We), {
262
+ v.value ? (a(), x(r(We), {
263
263
  key: 0,
264
264
  for: u.id,
265
- onClick: M
265
+ onClick: N
266
266
  }, {
267
267
  header: T(() => [
268
268
  B($(l.header), 1)
@@ -278,31 +278,31 @@ const L = (o, e) => {
278
278
  ]),
279
279
  _: 1
280
280
  }, 8, ["for"])) : p("", !0),
281
- R(N("input", {
281
+ R(L("input", {
282
282
  id: u.id,
283
- "onUpdate:modelValue": x[0] || (x[0] = (E) => s.value = E),
283
+ "onUpdate:modelValue": q[0] || (q[0] = (E) => s.value = E),
284
284
  name: u.name,
285
285
  type: u.type,
286
286
  disabled: u.disabled || u.loading,
287
287
  placeholder: u.placeholder,
288
- class: n(d.value),
288
+ class: o(d.value),
289
289
  onInput: g,
290
- onKeydown: v
290
+ onKeydown: h
291
291
  }, null, 42, Ae), [
292
292
  [W, s.value]
293
293
  ]),
294
294
  _.value ? (a(), i("div", {
295
295
  key: 1,
296
- class: n(r(k).description)
296
+ class: o(r(k).description)
297
297
  }, [
298
298
  u.error ? (a(), i("div", {
299
299
  key: 0,
300
- class: n(r(k).errorText),
300
+ class: o(r(k).errorText),
301
301
  innerHTML: u.error
302
302
  }, null, 10, Fe)) : p("", !0),
303
303
  u.description ? (a(), i("div", {
304
304
  key: 1,
305
- class: n(r(k).descriptionText),
305
+ class: o(r(k).descriptionText),
306
306
  innerHTML: u.description
307
307
  }, null, 10, Ge)) : p("", !0)
308
308
  ], 2)) : p("", !0)
@@ -315,9 +315,9 @@ const L = (o, e) => {
315
315
  error: Qe,
316
316
  text: Xe,
317
317
  errorText: Ye
318
- }, Ze = ["for"], et = ["id", "name", "disabled"], ht = /* @__PURE__ */ b({
318
+ }, Ze = ["for"], et = ["id", "name", "disabled"], vt = /* @__PURE__ */ b({
319
319
  __name: "checkbox",
320
- props: /* @__PURE__ */ S({
320
+ props: /* @__PURE__ */ z({
321
321
  id: {},
322
322
  name: {},
323
323
  disabled: { type: Boolean },
@@ -329,8 +329,8 @@ const L = (o, e) => {
329
329
  checkedModifiers: {}
330
330
  }),
331
331
  emits: ["update:checked"],
332
- setup(o) {
333
- const e = D(o, "checked"), s = o, l = c(() => [
332
+ setup(n) {
333
+ const e = D(n, "checked"), s = n, l = c(() => [
334
334
  w.label,
335
335
  {
336
336
  [w.disabled]: s.disabled
@@ -338,34 +338,34 @@ const L = (o, e) => {
338
338
  s.className
339
339
  ]);
340
340
  return (t, d) => (a(), i("div", null, [
341
- N("label", {
341
+ L("label", {
342
342
  for: t.id,
343
- class: n(l.value)
343
+ class: o(l.value)
344
344
  }, [
345
- R(N("input", {
345
+ R(L("input", {
346
346
  id: t.id,
347
- "onUpdate:modelValue": d[0] || (d[0] = (h) => e.value = h),
347
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
348
348
  name: t.name,
349
349
  type: "checkbox",
350
350
  disabled: t.disabled,
351
- class: n([r(w).input, { [r(w).error]: !!s.error }])
351
+ class: o([r(w).input, { [r(w).error]: !!s.error }])
352
352
  }, null, 10, et), [
353
353
  [A, e.value]
354
354
  ]),
355
355
  t.$slots.default ? (a(), i("span", {
356
356
  key: 0,
357
- class: n(r(w).text)
357
+ class: o(r(w).text)
358
358
  }, [
359
359
  m(t.$slots, "default")
360
360
  ], 2)) : p("", !0)
361
361
  ], 10, Ze),
362
362
  t.error ? (a(), i("div", {
363
363
  key: 0,
364
- class: n(r(w).errorText)
364
+ class: o(r(w).errorText)
365
365
  }, $(t.error), 3)) : p("", !0)
366
366
  ]));
367
367
  }
368
- }), vt = async () => {
368
+ }), ht = async () => {
369
369
  if (!(typeof document > "u") && !document.getElementById("__svg-sprite__"))
370
370
  try {
371
371
  const e = `
@@ -374,15 +374,15 @@ const L = (o, e) => {
374
374
  </svg>
375
375
  `;
376
376
  document.body.insertAdjacentHTML("afterbegin", e);
377
- } catch (o) {
378
- console.error("Failed to load SVG sprite:", o);
377
+ } catch (n) {
378
+ console.error("Failed to load SVG sprite:", n);
379
379
  }
380
- }, tt = "_title_6ila8_1", H = {
380
+ }, tt = "_title_j3vxq_1", H = {
381
381
  title: tt,
382
- "level-1": "_level-1_6ila8_7",
383
- "level-2": "_level-2_6ila8_13",
384
- "level-3": "_level-3_6ila8_19",
385
- "level-4": "_level-4_6ila8_25"
382
+ "level-1": "_level-1_j3vxq_8",
383
+ "level-2": "_level-2_j3vxq_14",
384
+ "level-3": "_level-3_j3vxq_20",
385
+ "level-4": "_level-4_j3vxq_26"
386
386
  }, kt = /* @__PURE__ */ b({
387
387
  __name: "title",
388
388
  props: {
@@ -390,10 +390,10 @@ const L = (o, e) => {
390
390
  text: {},
391
391
  className: {}
392
392
  },
393
- setup(o) {
394
- const e = o, s = c(() => [H.title, H[`level-${e.level}`], e.className]), l = c(() => `h${e.level}`);
395
- return (t, d) => (a(), j(F(l.value), {
396
- class: n(s.value)
393
+ setup(n) {
394
+ const e = n, s = c(() => [H.title, H[`level-${e.level}`], e.className]), l = c(() => `h${e.level}`);
395
+ return (t, d) => (a(), x(F(l.value), {
396
+ class: o(s.value)
397
397
  }, {
398
398
  default: T(() => [
399
399
  m(t.$slots, "default", {}, () => [
@@ -403,11 +403,11 @@ const L = (o, e) => {
403
403
  _: 3
404
404
  }, 8, ["class"]));
405
405
  }
406
- }), st = "_text_pweht_1", lt = "_primary_pweht_8", ot = "_medium_pweht_13", nt = "_secondary_pweht_18", at = "_accent_pweht_27", rt = "_subtitle_pweht_36", z = {
406
+ }), st = "_text_pweht_1", lt = "_primary_pweht_8", nt = "_medium_pweht_13", ot = "_secondary_pweht_18", at = "_accent_pweht_27", rt = "_subtitle_pweht_36", M = {
407
407
  text: st,
408
408
  primary: lt,
409
- medium: ot,
410
- secondary: nt,
409
+ medium: nt,
410
+ secondary: ot,
411
411
  accent: at,
412
412
  subtitle: rt
413
413
  }, ft = /* @__PURE__ */ b({
@@ -417,14 +417,14 @@ const L = (o, e) => {
417
417
  kind: { default: "primary" },
418
418
  weight: {}
419
419
  },
420
- setup(o) {
421
- const e = o, s = c(() => [
422
- z.text,
423
- z[e.kind],
424
- e.weight && z[e.weight]
420
+ setup(n) {
421
+ const e = n, s = c(() => [
422
+ M.text,
423
+ M[e.kind],
424
+ e.weight && M[e.weight]
425
425
  ]);
426
426
  return (l, t) => (a(), i("p", {
427
- class: n(s.value)
427
+ class: o(s.value)
428
428
  }, [
429
429
  m(l.$slots, "default", {}, () => [
430
430
  B($(l.text), 1)
@@ -452,17 +452,17 @@ const L = (o, e) => {
452
452
  bordered: { type: Boolean, default: !1 }
453
453
  },
454
454
  emits: ["click"],
455
- setup(o) {
456
- const e = o, s = c(() => [U.button, U[e.size], e.className]), l = c(() => {
455
+ setup(n) {
456
+ const e = n, s = c(() => [U.button, U[e.size], e.className]), l = c(() => {
457
457
  const t = e.size === "xs" ? "18" : "20";
458
458
  return e.icon.replace(/-?\d*$/, `-${t}`);
459
459
  });
460
- return (t, d) => (a(), j(r(Ne), G({ class: s.value }, e, {
460
+ return (t, d) => (a(), x(r(Le), G({ class: s.value }, e, {
461
461
  "html-type": "button",
462
- onClick: d[0] || (d[0] = (h) => t.$emit("click"))
462
+ onClick: d[0] || (d[0] = (v) => t.$emit("click"))
463
463
  }), {
464
464
  before: T(() => [
465
- I(r(q), { type: l.value }, null, 8, ["type"])
465
+ S(r(I), { type: l.value }, null, 8, ["type"])
466
466
  ]),
467
467
  _: 1
468
468
  }, 16, ["class"]));
@@ -472,21 +472,21 @@ const L = (o, e) => {
472
472
  }, gt = /* @__PURE__ */ b({
473
473
  __name: "button-link",
474
474
  emits: ["click"],
475
- setup(o) {
475
+ setup(n) {
476
476
  return (e, s) => (a(), i("button", {
477
- class: n(r(yt).button),
477
+ class: o(r(yt).button),
478
478
  type: "button",
479
479
  onClick: s[0] || (s[0] = (l) => e.$emit("click"))
480
480
  }, [
481
- I(r(q), { type: "plus-18" }),
481
+ S(r(I), { type: "plus-18" }),
482
482
  m(e.$slots, "default")
483
483
  ], 2));
484
484
  }
485
485
  });
486
486
  export {
487
- Ne as BaseButton,
488
- ht as BaseCheckbox,
489
- q as BaseIcon,
487
+ Le as BaseButton,
488
+ vt as BaseCheckbox,
489
+ I as BaseIcon,
490
490
  bt as BaseInput,
491
491
  We as BaseLabel,
492
492
  te as BaseLoader,
@@ -494,5 +494,5 @@ export {
494
494
  kt as BaseTitle,
495
495
  $t as ButtonIcon,
496
496
  gt as ButtonLink,
497
- vt as injectSvgSprite
497
+ ht as injectSvgSprite
498
498
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@huntflow/ui",
3
3
  "description": "HuntFlow UiKit, icons, utils library",
4
4
  "private": false,
5
- "version": "0.0.54",
5
+ "version": "0.0.55",
6
6
  "author": {
7
7
  "name": "HuntFlow Developer",
8
8
  "nickname": "developer",
@@ -47,21 +47,21 @@
47
47
  "vue": "^3.5.13"
48
48
  },
49
49
  "devDependencies": {
50
- "@chromatic-com/storybook": "^3.2.5",
50
+ "@chromatic-com/storybook": "^3.2.6",
51
51
  "@eslint/js": "^9.17.0",
52
- "@storybook/addon-essentials": "^8.6.4",
53
- "@storybook/addon-interactions": "^8.6.4",
54
- "@storybook/addon-links": "^8.6.4",
55
- "@storybook/addon-onboarding": "^8.6.4",
56
- "@storybook/blocks": "^8.6.4",
57
- "@storybook/test": "^8.6.4",
58
- "@storybook/vue3": "^8.6.4",
59
- "@storybook/vue3-vite": "^8.6.4",
52
+ "@storybook/addon-essentials": "^8.6.12",
53
+ "@storybook/addon-interactions": "^8.6.12",
54
+ "@storybook/addon-links": "^8.6.12",
55
+ "@storybook/addon-onboarding": "^8.6.12",
56
+ "@storybook/blocks": "^8.6.12",
57
+ "@storybook/test": "^8.6.12",
58
+ "@storybook/vue3": "^8.6.12",
59
+ "@storybook/vue3-vite": "^8.6.12",
60
60
  "@types/eslint": "^9.6.1",
61
61
  "@types/node": "^22.10.1",
62
62
  "@typescript-eslint/eslint-plugin": "^8.18.1",
63
63
  "@typescript-eslint/parser": "^8.18.1",
64
- "@vitejs/plugin-vue": "^5.1.4",
64
+ "@vitejs/plugin-vue": "^5.2.3",
65
65
  "@vue/eslint-config-typescript": "^14.1.4",
66
66
  "autoprefixer": "^10.4.20",
67
67
  "axios": "1.8.2",
@@ -76,8 +76,8 @@
76
76
  "postcss-loader": "^8.1.1",
77
77
  "postcss-nesting": "^13.0.1",
78
78
  "prettier": "^3.4.2",
79
- "storybook": "^8.6.4",
80
- "storybook-addon-pseudo-states": "^4.0.2",
79
+ "storybook": "^8.6.12",
80
+ "storybook-addon-pseudo-states": "^4.0.3",
81
81
  "stylelint": "^16.12.0",
82
82
  "stylelint-config-recommended": "^14.0.1",
83
83
  "tsx": "^4.19.2",