@useinsider/ab-components 0.0.139-beta.68 → 0.0.139-beta.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ab-components.cjs.js +1 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.css +1 -1
- package/dist/ab-components.es.js +1 -1
- package/dist/ab-components.iife.js +1 -1
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +1 -1
- package/dist/ab-components.umd.js.map +1 -1
- package/dist/{index-CnDF2dw6.js → index-BTm9x_CK.js} +7 -7
- package/dist/index-BTm9x_CK.js.map +1 -0
- package/dist/{liquid-CsLb_xz3.js → liquid-DoBC7RgF.js} +2 -2
- package/dist/{liquid-CsLb_xz3.js.map → liquid-DoBC7RgF.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CnDF2dw6.js.map +0 -1
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<path d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3ZM12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12C11 11.4477 11.4477 11 12 11ZM12 7C12.5523 7 13 7.44772 13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8C11 7.44772 11.4477 7 12 7Z" fill="currentColor"/>`},"agent-launcher-badge":{viewBox:"12 8 48 48",content:`
|
|
62
62
|
<rect x="12" y="8" width="48" height="48" fill="#D3B6FD"/> <g id="Vector 5" opacity="0.8" filter="url(#filter1_f_agent_launcher)"> <path class="preserve-fill" d="M85.3861 48.5961C96.7211 67.7724 118.282 60.7462 127.645 54.836L152.479 23.1593L24.297 -90.0577C12.8025 -75.318 -10.1532 -44.63 -10.0206 -39.7955C-9.85477 -33.7524 -8.45126 -24.2254 1.79004 -1.25409C9.98308 17.1229 35.5667 23.1947 47.3344 23.9334C55.2954 24.1642 74.051 29.4198 85.3861 48.5961Z" fill="#CB2867"/> </g> <g id="Vector 6" opacity="0.8" filter="url(#filter2_f_agent_launcher)"> <path class="preserve-fill" d="M21.8449 13.124C21.2183 -9.14301 -1.0473 -13.4408 -12.1018 -12.8063L-49.172 2.87526L8.11935 164.016C25.3154 156.689 60.264 140.963 62.4899 136.669C65.2723 131.302 68.6597 122.288 70.8283 97.2309C72.5631 77.1852 53.1231 59.4799 43.1863 53.133C36.3336 49.0746 22.4715 35.3911 21.8449 13.124Z" fill="#4B1291"/> </g> <g id="Vector 7" opacity="0.8" filter="url(#filter3_f_agent_launcher)"> <path class="preserve-fill" d="M-35.1505 103.559C-56.7539 108.991 -56.1297 131.659 -53.1171 142.314L-29.7824 175.11L115.135 84.2935C104.259 69.0912 81.34 38.3758 76.6663 37.1322C70.8243 35.5776 61.2903 34.2221 36.3579 37.5293C16.412 40.1751 3.33497 62.987 -0.710289 74.0622C-3.18896 81.631 -13.5471 98.1266 -35.1505 103.559Z" fill="#38036D"/> <defs> <filter id="filter1_f_agent_launcher" x="-40.021" y="-120.058" width="222.5" height="211.183" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="15" result="effect1_foregroundBlur_agent_launcher"/> </filter> <filter id="filter2_f_agent_launcher" x="-79.1719" y="-42.8645" width="180.109" height="236.88" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="15" result="effect1_foregroundBlur_agent_launcher"/> </filter> <filter id="filter3_f_agent_launcher" x="-84.6519" y="5.49047" width="229.787" height="199.62" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="15" result="effect1_foregroundBlur_agent_launcher"/> </filter> </defs>`},"agent-launcher-glyph":{viewBox:"0 0 28 28",content:`
|
|
63
63
|
<path d="M20.5161 15.538C20.6493 15.0433 21.3506 15.0433 21.4838 15.538L21.7221 16.4238C21.7686 16.5963 21.9041 16.7308 22.0766 16.7773L22.9623 17.0156C23.4569 17.1489 23.4568 17.851 22.9623 17.9843L22.0766 18.2226C21.9041 18.269 21.7686 18.4037 21.7221 18.5761L21.4838 19.4619C21.3506 19.9566 20.6493 19.9566 20.5161 19.4619L20.2768 18.5761C20.2302 18.4038 20.0957 18.269 19.9233 18.2226L19.0375 17.9843C18.5428 17.8511 18.5428 17.1488 19.0375 17.0156L19.9233 16.7773C20.0957 16.7309 20.2303 16.5962 20.2768 16.4238L20.5161 15.538ZM19.2036 3.98237C19.3771 3.33926 20.2899 3.33916 20.4633 3.98237L21.1196 6.41987C21.18 6.64436 21.355 6.82035 21.5795 6.88081L24.017 7.53706C24.6607 7.71038 24.6607 8.62352 24.017 8.79682L21.5795 9.45307C21.3552 9.51354 21.1801 9.68868 21.1196 9.91303L20.4633 12.3505C20.29 12.9942 19.3769 12.9942 19.2036 12.3505L18.5473 9.91303C18.4868 9.68856 18.3109 9.51351 18.0864 9.45307L15.6489 8.79682C15.0056 8.62337 15.0057 7.71061 15.6489 7.53706L18.0864 6.88081C18.3109 6.82036 18.4869 6.64437 18.5473 6.41987L19.2036 3.98237ZM10.0161 5.03803C10.1493 4.54332 10.8506 4.54332 10.9838 5.03803L11.2221 5.92378C11.2686 6.09628 11.4041 6.23084 11.5766 6.27729L12.4623 6.51557C12.9569 6.64885 12.9568 7.35102 12.4623 7.48432L11.5766 7.7226C11.4041 7.76904 11.2686 7.90368 11.2221 8.07612L10.9838 8.96186C10.8506 9.45658 10.1493 9.45658 10.0161 8.96186L9.7768 8.07612C9.73023 7.90377 9.59569 7.76903 9.42328 7.7226L8.53754 7.48432C8.04282 7.35112 8.04282 6.64877 8.53754 6.51557L9.42328 6.27729C9.59574 6.23086 9.73027 6.09619 9.7768 5.92378L10.0161 5.03803Z" fill="white"/>
|
|
64
|
-
<path d="M7.92788 14.3501C8.51431 14.3502 9.03935 14.7135 9.24624 15.2622L12.2238 23.1646C12.4661 23.8077 11.9901 24.4946 11.3029 24.4946C10.8798 24.4945 10.5042 24.2241 10.3703 23.8228L9.86343 22.3032H5.99819L5.41323 23.856C5.26818 24.2404 4.90025 24.4944 4.4894 24.4946C3.79582 24.4946 3.31803 23.799 3.56753 23.1519L6.61245 15.2524C6.82207 14.7087 7.34516 14.3501 7.92788 14.3501ZM14.466 14.3501C15.0263 14.3501 15.4806 14.8045 15.4806 15.3647V23.481C15.4804 24.0411 15.0261 24.4946 14.466 24.4946C13.906 24.4944 13.4525 24.0409 13.4523 23.481V15.3647C13.4523 14.8046 13.9058 14.3503 14.466 14.3501ZM6.63393 20.4448H9.22866L7.93569 16.9897L6.63393 20.4448Z" fill="white"/>`}};function Qb(n){if(!n)return{color:"currentColor"};const e=n.match(/^#([0-9a-fA-F]{8})$/);if(e){const r=e[1],a=parseInt(r.substring(6,8),16)/255;return{color:`#${r.substring(0,6)}`,opacity:a}}const t=n.match(/^rgba?\(([^)]+)\)$/);if(t){const r=t[1].split(",").map(a=>a.trim());if(r.length===4){const a=parseFloat(r[3]);return{color:`rgb(${r[0]}, ${r[1]}, ${r[2]})`,opacity:a}}else if(r.length===3)return{color:n}}return{color:n}}const e_=["fill","height","width"],t_=["xlink:href"],n_=["fill","height","viewBox","width","innerHTML"],r_=i.defineComponent({__name:"Icon",props:{name:{},size:{default:16},color:{},fillOpacity:{}},setup(n){const e=n,t=i.computed(()=>typeof e.size=="number"?`${e.size}px`:e.size),r=i.computed(()=>e.name in X6),a=i.computed(()=>r.value?X6[e.name]:null),o=i.computed(()=>Qb(e.color)),u=i.computed(()=>o.value.color||"currentColor"),s=i.computed(()=>{if(r.value)return e.fillOpacity!==void 0?typeof e.fillOpacity=="number"?e.fillOpacity:parseFloat(e.fillOpacity):o.value.opacity});return(d,p)=>{var f,m;return r.value?(i.openBlock(),i.createElementBlock("svg",{key:1,class:"icon icon-custom",fill:d.color||"currentColor",height:t.value,style:i.normalizeStyle({"--icon-color":u.value,...s.value!==void 0&&s.value!==null?{"--icon-fill-opacity":String(s.value)}:{}}),viewBox:(f=a.value)==null?void 0:f.viewBox,width:t.value,innerHTML:(m=a.value)==null?void 0:m.content},null,12,n_)):(i.openBlock(),i.createElementBlock("svg",{key:0,class:"icon",fill:u.value,height:t.value,style:i.normalizeStyle({color:u.value}),width:t.value},[i.createElementVNode("use",{"xlink:href":`#${d.name}`},null,8,t_)],12,e_))}}}),mt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,a]of e)t[r]=a;return t},Fe=mt(r_,[["__scopeId","data-v-66f113ea"]]),Cn={"in-info-box__heading":"_in-info-box__heading_1waqv_1","in-info-box__heading-details":"_in-info-box__heading-details_1waqv_8","in-info-box":"_in-info-box_1waqv_1","in-info-box__size-small":"_in-info-box__size-small_1waqv_55","in-info-box__size-medium":"_in-info-box__size-medium_1waqv_58","in-info-box__size-large":"_in-info-box__size-large_1waqv_61","in-info-box__information":"_in-info-box__information_1waqv_64","in-info-box__warning":"_in-info-box__warning_1waqv_67","in-info-box__smart":"_in-info-box__smart_1waqv_70","in-info-box__neutral":"_in-info-box__neutral_1waqv_73","in-info-box__alert":"_in-info-box__alert_1waqv_76","in-info-box__container":"_in-info-box__container_1waqv_79","in-info-box__container-full-width":"_in-info-box__container-full-width_1waqv_82","in-info-box__content":"_in-info-box__content_1waqv_85","in-info-box__background-default":"_in-info-box__background-default_1waqv_88","in-info-box__background-inverse":"_in-info-box__background-inverse_1waqv_91","in-info-box__heading-wrapper":"_in-info-box__heading-wrapper_1waqv_94","in-info-box__heading-wrapper-full-width":"_in-info-box__heading-wrapper-full-width_1waqv_97","in-info-box__heading-inverse":"_in-info-box__heading-inverse_1waqv_103","in-info-box__heading-details-inverse":"_in-info-box__heading-details-inverse_1waqv_110","in-info-box__divider":"_in-info-box__divider_1waqv_113","in-info-box__divider-default":"_in-info-box__divider-default_1waqv_119","in-info-box__divider-inverse":"_in-info-box__divider-inverse_1waqv_122"},i_=["innerHTML"],a_=["innerHTML"],J6=i.defineComponent({__name:"InInfoBox",props:{id:{},theme:{default:"light"},variant:{default:"information"},titleStatus:{type:Boolean,default:!0},titleText:{default:""},descriptionStatus:{type:Boolean,default:!0},descriptionText:{default:""},size:{default:"medium"},fullWidthContentStatus:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},setup(n){const e=n,t=i.computed(()=>e.theme==="dark"),r=i.computed(()=>`in-info-box__${e.variant}`),a=i.computed(()=>e.autoSize?"":`in-info-box__size-${e.size}`),o=i.computed(()=>t.value?"inverse":"default");return(u,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(Cn)["in-info-box"],t.value?i.unref(Cn)["in-info-box__background-inverse"]:i.unref(Cn)["in-info-box__background-default"],i.unref(Cn)[a.value],i.unref(Cn)[r.value]])},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(Cn)["in-info-box__container"],{[i.unref(Cn)["in-info-box__container-full-width"]]:u.fullWidthContentStatus}])},[u.titleStatus?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(Cn)["in-info-box__heading-wrapper"],{[i.unref(Cn)["in-info-box__heading-wrapper-full-width"]]:u.fullWidthContentStatus}])},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(Cn)["in-info-box__heading"],i.unref(Cn)[`in-info-box__heading-${o.value}`],{[i.unref(Cn)["in-info-box__heading-full-width"]]:u.fullWidthContentStatus}]),innerHTML:u.titleText},null,10,i_),u.titleStatus&&u.descriptionStatus?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(Cn)["in-info-box__heading-details"],i.unref(Cn)[`in-info-box__heading-details-${o.value}`]]),innerHTML:u.descriptionText},null,10,a_)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Cn)["in-info-box__content"])},[i.renderSlot(u.$slots,"default")],2)],2),u.$slots.footer?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(Cn)["in-info-box__divider"],i.unref(Cn)[`in-info-box__divider-${t.value?"inverse":"default"}`]])},[i.renderSlot(u.$slots,"footer")],2)):i.createCommentVNode("",!0)],2))}}),wa=Math.min,ar=Math.max,d2=Math.round,f2=Math.floor,Ci=n=>({x:n,y:n}),s_={left:"right",right:"left",bottom:"top",top:"bottom"},o_={start:"end",end:"start"};function u3(n,e,t){return ar(n,wa(e,t))}function Hs(n,e){return typeof n=="function"?n(e):n}function Ca(n){return n.split("-")[0]}function Ws(n){return n.split("-")[1]}function Q6(n){return n==="x"?"y":"x"}function c3(n){return n==="y"?"height":"width"}const l_=new Set(["top","bottom"]);function Ui(n){return l_.has(Ca(n))?"y":"x"}function d3(n){return Q6(Ui(n))}function u_(n,e,t){t===void 0&&(t=!1);const r=Ws(n),a=d3(n),o=c3(a);let u=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(u=p2(u)),[u,p2(u)]}function c_(n){const e=p2(n);return[f3(n),e,f3(e)]}function f3(n){return n.replace(/start|end/g,e=>o_[e])}const e7=["left","right"],t7=["right","left"],d_=["top","bottom"],f_=["bottom","top"];function p_(n,e,t){switch(n){case"top":case"bottom":return t?e?t7:e7:e?e7:t7;case"left":case"right":return e?d_:f_;default:return[]}}function h_(n,e,t,r){const a=Ws(n);let o=p_(Ca(n),t==="start",r);return a&&(o=o.map(u=>u+"-"+a),e&&(o=o.concat(o.map(f3)))),o}function p2(n){return n.replace(/left|right|bottom|top/g,e=>s_[e])}function m_(n){return{top:0,right:0,bottom:0,left:0,...n}}function n7(n){return typeof n!="number"?m_(n):{top:n,right:n,bottom:n,left:n}}function h2(n){const{x:e,y:t,width:r,height:a}=n;return{width:r,height:a,top:t,left:e,right:e+r,bottom:t+a,x:e,y:t}}function r7(n,e,t){let{reference:r,floating:a}=n;const o=Ui(e),u=d3(e),s=c3(u),d=Ca(e),p=o==="y",f=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,y=r[s]/2-a[s]/2;let C;switch(d){case"top":C={x:f,y:r.y-a.height};break;case"bottom":C={x:f,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:m};break;case"left":C={x:r.x-a.width,y:m};break;default:C={x:r.x,y:r.y}}switch(Ws(e)){case"start":C[u]-=y*(t&&p?-1:1);break;case"end":C[u]+=y*(t&&p?-1:1);break}return C}const g_=async(n,e,t)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:u}=t,s=o.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(e));let p=await u.getElementRects({reference:n,floating:e,strategy:a}),{x:f,y:m}=r7(p,r,d),y=r,C={},S=0;for(let v=0;v<s.length;v++){const{name:_,fn:g}=s[v],{x:b,y:E,data:w,reset:k}=await g({x:f,y:m,initialPlacement:r,placement:y,strategy:a,middlewareData:C,rects:p,platform:u,elements:{reference:n,floating:e}});f=b??f,m=E??m,C={...C,[_]:{...C[_],...w}},k&&S<=50&&(S++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(p=k.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:a}):k.rects),{x:f,y:m}=r7(p,y,d)),v=-1)}return{x:f,y:m,placement:y,strategy:a,middlewareData:C}};async function p3(n,e){var t;e===void 0&&(e={});const{x:r,y:a,platform:o,rects:u,elements:s,strategy:d}=n,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:y=!1,padding:C=0}=Hs(e,n),S=n7(C),_=s[y?m==="floating"?"reference":"floating":m],g=h2(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(_)))==null||t?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:p,rootBoundary:f,strategy:d})),b=m==="floating"?{x:r,y:a,width:u.floating.width,height:u.floating.height}:u.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),w=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},k=h2(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:E,strategy:d}):b);return{top:(g.top-k.top+S.top)/w.y,bottom:(k.bottom-g.bottom+S.bottom)/w.y,left:(g.left-k.left+S.left)/w.x,right:(k.right-g.right+S.right)/w.x}}const y_=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:a,rects:o,platform:u,elements:s,middlewareData:d}=e,{element:p,padding:f=0}=Hs(n,e)||{};if(p==null)return{};const m=n7(f),y={x:t,y:r},C=d3(a),S=c3(C),v=await u.getDimensions(p),_=C==="y",g=_?"top":"left",b=_?"bottom":"right",E=_?"clientHeight":"clientWidth",w=o.reference[S]+o.reference[C]-y[C]-o.floating[S],k=y[C]-o.reference[C],A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let $=A?A[E]:0;(!$||!await(u.isElement==null?void 0:u.isElement(A)))&&($=s.floating[E]||o.floating[S]);const M=w/2-k/2,Z=$/2-v[S]/2-1,J=wa(m[g],Z),oe=wa(m[b],Z),U=J,te=$-v[S]-oe,P=$/2-v[S]/2+M,N=u3(U,P,te),ee=!d.arrow&&Ws(a)!=null&&P!==N&&o.reference[S]/2-(P<U?J:oe)-v[S]/2<0,Q=ee?P<U?P-U:P-te:0;return{[C]:y[C]+Q,data:{[C]:N,centerOffset:P-N-Q,...ee&&{alignmentOffset:Q}},reset:ee}}}),b_=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:a,middlewareData:o,rects:u,initialPlacement:s,platform:d,elements:p}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,..._}=Hs(n,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const g=Ca(a),b=Ui(s),E=Ca(s)===s,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),k=y||(E||!v?[p2(s)]:c_(s)),A=S!=="none";!y&&A&&k.push(...h_(s,v,S,w));const $=[s,...k],M=await p3(e,_),Z=[];let J=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&Z.push(M[g]),m){const P=u_(a,u,w);Z.push(M[P[0]],M[P[1]])}if(J=[...J,{placement:a,overflows:Z}],!Z.every(P=>P<=0)){var oe,U;const P=(((oe=o.flip)==null?void 0:oe.index)||0)+1,N=$[P];if(N&&(!(m==="alignment"?b!==Ui(N):!1)||J.every(ne=>Ui(ne.placement)===b?ne.overflows[0]>0:!0)))return{data:{index:P,overflows:J},reset:{placement:N}};let ee=(U=J.filter(Q=>Q.overflows[0]<=0).sort((Q,ne)=>Q.overflows[1]-ne.overflows[1])[0])==null?void 0:U.placement;if(!ee)switch(C){case"bestFit":{var te;const Q=(te=J.filter(ne=>{if(A){const ue=Ui(ne.placement);return ue===b||ue==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(ue=>ue>0).reduce((ue,F)=>ue+F,0)]).sort((ne,ue)=>ne[1]-ue[1])[0])==null?void 0:te[0];Q&&(ee=Q);break}case"initialPlacement":ee=s;break}if(a!==ee)return{reset:{placement:ee}}}return{}}}},__=new Set(["left","top"]);async function w_(n,e){const{placement:t,platform:r,elements:a}=n,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),u=Ca(t),s=Ws(t),d=Ui(t)==="y",p=__.has(u)?-1:1,f=o&&d?-1:1,m=Hs(e,n);let{mainAxis:y,crossAxis:C,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof S=="number"&&(C=s==="end"?S*-1:S),d?{x:C*f,y:y*p}:{x:y*p,y:C*f}}const C_=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,r;const{x:a,y:o,placement:u,middlewareData:s}=e,d=await w_(e,n);return u===((t=s.offset)==null?void 0:t.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:o+d.y,data:{...d,placement:u}}}}},E_=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:a}=e,{mainAxis:o=!0,crossAxis:u=!1,limiter:s={fn:_=>{let{x:g,y:b}=_;return{x:g,y:b}}},...d}=Hs(n,e),p={x:t,y:r},f=await p3(e,d),m=Ui(Ca(a)),y=Q6(m);let C=p[y],S=p[m];if(o){const _=y==="y"?"top":"left",g=y==="y"?"bottom":"right",b=C+f[_],E=C-f[g];C=u3(b,C,E)}if(u){const _=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=S+f[_],E=S-f[g];S=u3(b,S,E)}const v=s.fn({...e,[y]:C,[m]:S});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[y]:o,[m]:u}}}}}},v_=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){var t,r;const{placement:a,rects:o,platform:u,elements:s}=e,{apply:d=()=>{},...p}=Hs(n,e),f=await p3(e,p),m=Ca(a),y=Ws(a),C=Ui(a)==="y",{width:S,height:v}=o.floating;let _,g;m==="top"||m==="bottom"?(_=m,g=y===(await(u.isRTL==null?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(g=m,_=y==="end"?"top":"bottom");const b=v-f.top-f.bottom,E=S-f.left-f.right,w=wa(v-f[_],b),k=wa(S-f[g],E),A=!e.middlewareData.shift;let $=w,M=k;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(M=E),(r=e.middlewareData.shift)!=null&&r.enabled.y&&($=b),A&&!y){const J=ar(f.left,0),oe=ar(f.right,0),U=ar(f.top,0),te=ar(f.bottom,0);C?M=S-2*(J!==0||oe!==0?J+oe:ar(f.left,f.right)):$=v-2*(U!==0||te!==0?U+te:ar(f.top,f.bottom))}await d({...e,availableWidth:M,availableHeight:$});const Z=await u.getDimensions(s.floating);return S!==Z.width||v!==Z.height?{reset:{rects:!0}}:{}}}};function m2(){return typeof window<"u"}function is(n){return h3(n)?(n.nodeName||"").toLowerCase():"#document"}function sr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Ei(n){var e;return(e=(h3(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function h3(n){return m2()?n instanceof Node||n instanceof sr(n).Node:!1}function Wr(n){return m2()?n instanceof Element||n instanceof sr(n).Element:!1}function vi(n){return m2()?n instanceof HTMLElement||n instanceof sr(n).HTMLElement:!1}function i7(n){return!m2()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof sr(n).ShadowRoot}const k_=new Set(["inline","contents"]);function Jo(n){const{overflow:e,overflowX:t,overflowY:r,display:a}=Gr(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!k_.has(a)}const A_=new Set(["table","td","th"]);function S_(n){return A_.has(is(n))}const D_=[":popover-open",":modal"];function g2(n){return D_.some(e=>{try{return n.matches(e)}catch{return!1}})}const x_=["transform","translate","scale","rotate","perspective"],T_=["transform","translate","scale","rotate","perspective","filter"],$_=["paint","layout","strict","content"];function m3(n){const e=g3(),t=Wr(n)?Gr(n):n;return x_.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||T_.some(r=>(t.willChange||"").includes(r))||$_.some(r=>(t.contain||"").includes(r))}function B_(n){let e=Ea(n);for(;vi(e)&&!Gs(e);){if(m3(e))return e;if(g2(e))return null;e=Ea(e)}return null}function g3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const R_=new Set(["html","body","#document"]);function Gs(n){return R_.has(is(n))}function Gr(n){return sr(n).getComputedStyle(n)}function y2(n){return Wr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ea(n){if(is(n)==="html")return n;const e=n.assignedSlot||n.parentNode||i7(n)&&n.host||Ei(n);return i7(e)?e.host:e}function a7(n){const e=Ea(n);return Gs(e)?n.ownerDocument?n.ownerDocument.body:n.body:vi(e)&&Jo(e)?e:a7(e)}function Qo(n,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const a=a7(n),o=a===((r=n.ownerDocument)==null?void 0:r.body),u=sr(a);if(o){const s=y3(u);return e.concat(u,u.visualViewport||[],Jo(a)?a:[],s&&t?Qo(s):[])}return e.concat(a,Qo(a,[],t))}function y3(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function s7(n){const e=Gr(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=vi(n),o=a?n.offsetWidth:t,u=a?n.offsetHeight:r,s=d2(t)!==o||d2(r)!==u;return s&&(t=o,r=u),{width:t,height:r,$:s}}function b3(n){return Wr(n)?n:n.contextElement}function Zs(n){const e=b3(n);if(!vi(e))return Ci(1);const t=e.getBoundingClientRect(),{width:r,height:a,$:o}=s7(e);let u=(o?d2(t.width):t.width)/r,s=(o?d2(t.height):t.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!s||!Number.isFinite(s))&&(s=1),{x:u,y:s}}const L_=Ci(0);function o7(n){const e=sr(n);return!g3()||!e.visualViewport?L_:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function F_(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==sr(n)?!1:e}function as(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const a=n.getBoundingClientRect(),o=b3(n);let u=Ci(1);e&&(r?Wr(r)&&(u=Zs(r)):u=Zs(n));const s=F_(o,t,r)?o7(o):Ci(0);let d=(a.left+s.x)/u.x,p=(a.top+s.y)/u.y,f=a.width/u.x,m=a.height/u.y;if(o){const y=sr(o),C=r&&Wr(r)?sr(r):r;let S=y,v=y3(S);for(;v&&r&&C!==S;){const _=Zs(v),g=v.getBoundingClientRect(),b=Gr(v),E=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*_.x,w=g.top+(v.clientTop+parseFloat(b.paddingTop))*_.y;d*=_.x,p*=_.y,f*=_.x,m*=_.y,d+=E,p+=w,S=sr(v),v=y3(S)}}return h2({width:f,height:m,x:d,y:p})}function b2(n,e){const t=y2(n).scrollLeft;return e?e.left+t:as(Ei(n)).left+t}function l7(n,e){const t=n.getBoundingClientRect(),r=t.left+e.scrollLeft-b2(n,t),a=t.top+e.scrollTop;return{x:r,y:a}}function O_(n){let{elements:e,rect:t,offsetParent:r,strategy:a}=n;const o=a==="fixed",u=Ei(r),s=e?g2(e.floating):!1;if(r===u||s&&o)return t;let d={scrollLeft:0,scrollTop:0},p=Ci(1);const f=Ci(0),m=vi(r);if((m||!m&&!o)&&((is(r)!=="body"||Jo(u))&&(d=y2(r)),vi(r))){const C=as(r);p=Zs(r),f.x=C.x+r.clientLeft,f.y=C.y+r.clientTop}const y=u&&!m&&!o?l7(u,d):Ci(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-d.scrollLeft*p.x+f.x+y.x,y:t.y*p.y-d.scrollTop*p.y+f.y+y.y}}function N_(n){return Array.from(n.getClientRects())}function I_(n){const e=Ei(n),t=y2(n),r=n.ownerDocument.body,a=ar(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=ar(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let u=-t.scrollLeft+b2(n);const s=-t.scrollTop;return Gr(r).direction==="rtl"&&(u+=ar(e.clientWidth,r.clientWidth)-a),{width:a,height:o,x:u,y:s}}const u7=25;function P_(n,e){const t=sr(n),r=Ei(n),a=t.visualViewport;let o=r.clientWidth,u=r.clientHeight,s=0,d=0;if(a){o=a.width,u=a.height;const f=g3();(!f||f&&e==="fixed")&&(s=a.offsetLeft,d=a.offsetTop)}const p=b2(r);if(p<=0){const f=r.ownerDocument,m=f.body,y=getComputedStyle(m),C=f.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,S=Math.abs(r.clientWidth-m.clientWidth-C);S<=u7&&(o-=S)}else p<=u7&&(o+=p);return{width:o,height:u,x:s,y:d}}const M_=new Set(["absolute","fixed"]);function V_(n,e){const t=as(n,!0,e==="fixed"),r=t.top+n.clientTop,a=t.left+n.clientLeft,o=vi(n)?Zs(n):Ci(1),u=n.clientWidth*o.x,s=n.clientHeight*o.y,d=a*o.x,p=r*o.y;return{width:u,height:s,x:d,y:p}}function c7(n,e,t){let r;if(e==="viewport")r=P_(n,t);else if(e==="document")r=I_(Ei(n));else if(Wr(e))r=V_(e,t);else{const a=o7(n);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return h2(r)}function d7(n,e){const t=Ea(n);return t===e||!Wr(t)||Gs(t)?!1:Gr(t).position==="fixed"||d7(t,e)}function q_(n,e){const t=e.get(n);if(t)return t;let r=Qo(n,[],!1).filter(s=>Wr(s)&&is(s)!=="body"),a=null;const o=Gr(n).position==="fixed";let u=o?Ea(n):n;for(;Wr(u)&&!Gs(u);){const s=Gr(u),d=m3(u);!d&&s.position==="fixed"&&(a=null),(o?!d&&!a:!d&&s.position==="static"&&!!a&&M_.has(a.position)||Jo(u)&&!d&&d7(n,u))?r=r.filter(f=>f!==u):a=s,u=Ea(u)}return e.set(n,r),r}function z_(n){let{element:e,boundary:t,rootBoundary:r,strategy:a}=n;const u=[...t==="clippingAncestors"?g2(e)?[]:q_(e,this._c):[].concat(t),r],s=u[0],d=u.reduce((p,f)=>{const m=c7(e,f,a);return p.top=ar(m.top,p.top),p.right=wa(m.right,p.right),p.bottom=wa(m.bottom,p.bottom),p.left=ar(m.left,p.left),p},c7(e,s,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function j_(n){const{width:e,height:t}=s7(n);return{width:e,height:t}}function U_(n,e,t){const r=vi(e),a=Ei(e),o=t==="fixed",u=as(n,!0,o,e);let s={scrollLeft:0,scrollTop:0};const d=Ci(0);function p(){d.x=b2(a)}if(r||!r&&!o)if((is(e)!=="body"||Jo(a))&&(s=y2(e)),r){const C=as(e,!0,o,e);d.x=C.x+e.clientLeft,d.y=C.y+e.clientTop}else a&&p();o&&!r&&a&&p();const f=a&&!r&&!o?l7(a,s):Ci(0),m=u.left+s.scrollLeft-d.x-f.x,y=u.top+s.scrollTop-d.y-f.y;return{x:m,y,width:u.width,height:u.height}}function _3(n){return Gr(n).position==="static"}function f7(n,e){if(!vi(n)||Gr(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return Ei(n)===t&&(t=t.ownerDocument.body),t}function p7(n,e){const t=sr(n);if(g2(n))return t;if(!vi(n)){let a=Ea(n);for(;a&&!Gs(a);){if(Wr(a)&&!_3(a))return a;a=Ea(a)}return t}let r=f7(n,e);for(;r&&S_(r)&&_3(r);)r=f7(r,e);return r&&Gs(r)&&_3(r)&&!m3(r)?t:r||B_(n)||t}const H_=async function(n){const e=this.getOffsetParent||p7,t=this.getDimensions,r=await t(n.floating);return{reference:U_(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W_(n){return Gr(n).direction==="rtl"}const G_={convertOffsetParentRelativeRectToViewportRelativeRect:O_,getDocumentElement:Ei,getClippingRect:z_,getOffsetParent:p7,getElementRects:H_,getClientRects:N_,getDimensions:j_,getScale:Zs,isElement:Wr,isRTL:W_};function h7(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function Z_(n,e){let t=null,r;const a=Ei(n);function o(){var s;clearTimeout(r),(s=t)==null||s.disconnect(),t=null}function u(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),o();const p=n.getBoundingClientRect(),{left:f,top:m,width:y,height:C}=p;if(s||e(),!y||!C)return;const S=f2(m),v=f2(a.clientWidth-(f+y)),_=f2(a.clientHeight-(m+C)),g=f2(f),E={rootMargin:-S+"px "+-v+"px "+-_+"px "+-g+"px",threshold:ar(0,wa(1,d))||1};let w=!0;function k(A){const $=A[0].intersectionRatio;if($!==d){if(!w)return u();$?u(!1,$):r=setTimeout(()=>{u(!1,1e-7)},1e3)}$===1&&!h7(p,n.getBoundingClientRect())&&u(),w=!1}try{t=new IntersectionObserver(k,{...E,root:a.ownerDocument})}catch{t=new IntersectionObserver(k,E)}t.observe(n)}return u(!0),o}function e1(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=b3(n),f=a||o?[...p?Qo(p):[],...Qo(e)]:[];f.forEach(g=>{a&&g.addEventListener("scroll",t,{passive:!0}),o&&g.addEventListener("resize",t)});const m=p&&s?Z_(p,t):null;let y=-1,C=null;u&&(C=new ResizeObserver(g=>{let[b]=g;b&&b.target===p&&C&&(C.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var E;(E=C)==null||E.observe(e)})),t()}),p&&!d&&C.observe(p),C.observe(e));let S,v=d?as(n):null;d&&_();function _(){const g=as(n);v&&!h7(v,g)&&t(),v=g,S=requestAnimationFrame(_)}return t(),()=>{var g;f.forEach(b=>{a&&b.removeEventListener("scroll",t),o&&b.removeEventListener("resize",t)}),m==null||m(),(g=C)==null||g.disconnect(),C=null,d&&cancelAnimationFrame(S)}}const t1=C_,n1=E_,r1=b_,Y_=v_,K_=y_,X_=(n,e,t)=>{const r=new Map,a={platform:G_,...t},o={...a.platform,_c:r};return g_(n,e,{...a,platform:o})};function J_(n){return n!=null&&typeof n=="object"&&"$el"in n}function w3(n){if(J_(n)){const e=n.$el;return h3(e)&&is(e)==="#comment"?null:e}return n}function Ys(n){return typeof n=="function"?n():i.unref(n)}function m7(n){return{name:"arrow",options:n,fn(e){const t=w3(Ys(n.element));return t==null?{}:K_({element:t,padding:n.padding}).fn(e)}}}function g7(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function y7(n,e){const t=g7(n);return Math.round(e*t)/t}function i1(n,e,t){t===void 0&&(t={});const r=t.whileElementsMounted,a=i.computed(()=>{var $;return($=Ys(t.open))!=null?$:!0}),o=i.computed(()=>Ys(t.middleware)),u=i.computed(()=>{var $;return($=Ys(t.placement))!=null?$:"bottom"}),s=i.computed(()=>{var $;return($=Ys(t.strategy))!=null?$:"absolute"}),d=i.computed(()=>{var $;return($=Ys(t.transform))!=null?$:!0}),p=i.computed(()=>w3(n.value)),f=i.computed(()=>w3(e.value)),m=i.ref(0),y=i.ref(0),C=i.ref(s.value),S=i.ref(u.value),v=i.shallowRef({}),_=i.ref(!1),g=i.computed(()=>{const $={position:C.value,left:"0",top:"0"};if(!f.value)return $;const M=y7(f.value,m.value),Z=y7(f.value,y.value);return d.value?{...$,transform:"translate("+M+"px, "+Z+"px)",...g7(f.value)>=1.5&&{willChange:"transform"}}:{position:C.value,left:M+"px",top:Z+"px"}});let b;function E(){if(p.value==null||f.value==null)return;const $=a.value;X_(p.value,f.value,{middleware:o.value,placement:u.value,strategy:s.value}).then(M=>{m.value=M.x,y.value=M.y,C.value=M.strategy,S.value=M.placement,v.value=M.middlewareData,_.value=$!==!1})}function w(){typeof b=="function"&&(b(),b=void 0)}function k(){if(w(),r===void 0){E();return}if(p.value!=null&&f.value!=null){b=r(p.value,f.value,E);return}}function A(){a.value||(_.value=!1)}return i.watch([o,u,s,a],E,{flush:"sync"}),i.watch([p,f],k,{flush:"sync"}),i.watch(a,A,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(w),{x:i.shallowReadonly(m),y:i.shallowReadonly(y),strategy:i.shallowReadonly(C),placement:i.shallowReadonly(S),middlewareData:i.shallowReadonly(v),isPositioned:i.shallowReadonly(_),floatingStyles:g,update:E}}let b7=!1;const _7=()=>{if(b7)return;b7=!0;let n;Object.defineProperty(window,"wasTooltipShown",{get(){return clearTimeout(window.wasTooltipTimeout),window.wasTooltipTimeout=setTimeout(()=>{n=!1},2e3),n},set(e){n=e,clearTimeout(window.wasTooltipTimeout),e&&(window.wasTooltipTimeout=setTimeout(()=>{n=!1},2e3))},configurable:!0})};function w7(n=""){return typeof n=="string"?n.replace(/<\/style>/gi,"").replace(/<(.*?) on(.*?)=['"](.*?)>/gi,"").replace(/(<meta |<style|<\/*script)(.*?)>/gi,"").replace(/(<([^>]+)>)/ig,"").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi,""):n}const Ks={bubble:"_bubble_1vvyq_1",trigger:"_trigger_1vvyq_43",trigger__icon:"_trigger__icon_1vvyq_51",arrow:"_arrow_1vvyq_57",bubble_slotted:"_bubble_slotted_1vvyq_78",bubble__content:"_bubble__content_1vvyq_81"},Q_=["id"],ew=["innerHTML"],tw=1e3,C7=20,C3=8,Xs=i.defineComponent({inheritAttrs:!1,__name:"OnsiteTooltip",props:{id:{},text:{default:""},placement:{},arrowPlacement:{},status:{type:Boolean},preventXss:{type:Boolean,default:!0},iconName:{},hideDelay:{},showDelay:{}},setup(n){const e={top:"bottom",right:"left",bottom:"top",left:"right"},t=i.ref(null),r=i.ref(null),a=i.ref(!1);typeof window<"u"&&window.wasTooltipShown===void 0&&(window.wasTooltipShown=!1);const o=n,u=i.ref(null),s=i.ref(null),d=i.ref(null),p=i.ref(!1),f=i.computed(()=>o.preventXss?w7(o.text):o.text),{floatingStyles:m,update:y,middlewareData:C,placement:S}=i1(s,u,{placement:i.computed(()=>o.placement||"bottom"),strategy:"fixed",whileElementsMounted:e1,middleware:[t1(10),r1(),n1(),m7({element:d,padding:C3})]}),v=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const te=o.showDelay??tw;window.wasTooltipShown||te<=0?p.value=!0:t.value=setTimeout(()=>{if(!a.value){t.value=null;return}p.value=!0,window.wasTooltipShown=!0,t.value=null},te)},_=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const te=o.hideDelay??0;te>0?r.value=setTimeout(()=>{a.value&&(p.value=!1),r.value=null},te):p.value=!1},g=()=>{v()},b=()=>{_()},E=te=>{var P,N;return te instanceof Node?!!((P=s.value)!=null&&P.contains(te))||!!((N=u.value)!=null&&N.contains(te)):!1},w=()=>{v()},k=te=>{E(te.relatedTarget)||_()},A=te=>{te.key==="Escape"&&_()},$=()=>{a.value&&s.value&&u.value&&y()};i.watch(()=>o.placement,()=>{a.value&&s.value&&u.value&&y()}),i.onBeforeMount(_7),i.onMounted(()=>{a.value=!0,i.nextTick(()=>{a.value&&s.value&&y()}),typeof window<"u"&&window.addEventListener("resize",$)}),i.onBeforeUnmount(()=>{a.value=!1,typeof window<"u"&&window.removeEventListener("resize",$),t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null),p.value=!1,u.value=null,s.value=null,d.value=null});const M=i.computed(()=>o.status||p.value),Z=i.computed(()=>({...m.value,display:M.value?"inline-block":"none"})),J=i.computed(()=>{const[te]=S.value.split("-");return{[e[te]]:"-4px"}}),oe=i.computed(()=>{if(!o.arrowPlacement)return{};const[te]=S.value.split("-"),P=te==="top"||te==="bottom"?"left":"top";switch(o.arrowPlacement){case"start":return{[P]:`${C3}px`};case"center":return{[P]:`calc(50% - ${C7/2}px)`};case"end":return{[P]:`calc(100% - ${C7+C3}px)`};default:return{}}}),U=i.computed(()=>{var te,P;return d.value?{left:((te=C.value.arrow)==null?void 0:te.x)!=null?`${C.value.arrow.x}px`:"",top:((P=C.value.arrow)==null?void 0:P.y)!=null?`${C.value.arrow.y}px`:"",right:"",bottom:"",...J.value,...oe.value}:{}});return(te,P)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:te.id,ref_key:"triggerRef",ref:s,class:i.normalizeClass(i.unref(Ks).trigger),onFocusin:w,onFocusout:k,onKeydown:A,onMouseenter:g,onMouseleave:b},[te.iconName?(i.openBlock(),i.createBlock(i.unref(Fe),{key:0,color:i.unref(Ks).trigger__icon,name:te.iconName},null,8,["color","name"])):i.renderSlot(te.$slots,"default",{key:1})],42,Q_),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{ref_key:"tooltipRef",ref:u,class:i.normalizeClass(["qa-tooltip ab-onsite-tooltip",[i.unref(Ks).bubble,te.$slots.contentSlot?i.unref(Ks).bubble_slotted:null]]),style:i.normalizeStyle(Z.value),onFocusin:w,onFocusout:k,onKeydown:A,onMouseenter:g,onMouseleave:b},[te.$slots.contentSlot?i.renderSlot(te.$slots,"contentSlot",{key:0}):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(Ks).bubble__content)},[i.createElementVNode("div",{innerHTML:f.value},null,8,ew)],2)),te.$slots.contentSlot?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"floatingArrowRef",ref:d,class:i.normalizeClass(i.unref(Ks).arrow),style:i.normalizeStyle(U.value)},null,6))],38)]))],64))}}),Js={"line-shapes-add":{d:"M9.14258 13C10.1683 13 11 13.8318 11 14.8574V19.1426C11 20.1683 10.1683 21 9.14258 21H4.85742C3.83175 21 3 20.1683 3 19.1426V14.8574C3 13.8318 3.83175 13 4.85742 13H9.14258ZM17 13C17.5523 13 18 13.4477 18 14V16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H18V20C18 20.5523 17.5523 21 17 21C16.4477 21 16 20.5523 16 20V18H14C13.4477 18 13 17.5523 13 17C13 16.4477 13.4477 16 14 16H16V14C16 13.4477 16.4477 13 17 13ZM5 19H9V15H5V19ZM12 3C14.2091 3 16 4.79086 16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3ZM12 5C10.8954 5 10 5.89543 10 7C10 8.10457 10.8954 9 12 9C13.1046 9 14 8.10457 14 7C14 5.89543 13.1046 5 12 5Z"},"line-show-on":{evenOdd:!0,d:"M12 6C7.40438 6 4.42985 9.14257 3.26827 11.0483C2.91058 11.6352 2.91058 12.3648 3.26827 12.9517C4.42985 14.8574 7.40438 18 12 18C16.5956 18 19.5702 14.8574 20.7317 12.9517C21.0894 12.3648 21.0894 11.6352 20.7317 11.0483C19.5702 9.14257 16.5956 6 12 6ZM12 16C8.46046 16 6.05644 13.5954 5.05419 12C6.05644 10.4046 8.46046 8 12 8C15.5395 8 17.9436 10.4046 18.9458 12C17.9436 13.5954 15.5395 16 12 16ZM12.0003 14C13.1197 14 14.0272 13.1046 14.0272 12C14.0272 10.8954 13.1197 10 12.0003 10C10.8808 10 9.97337 10.8954 9.97337 12C9.97337 13.1046 10.8808 14 12.0003 14Z"},"line-show-off":{evenOdd:!0,d:"M5.29246 18.7075C4.90251 18.3176 4.90251 17.6854 5.29246 17.2954L6.37643 16.2115C4.89724 15.1839 3.85303 13.9111 3.26827 12.9517C2.91058 12.3648 2.91058 11.6352 3.26827 11.0483C4.42985 9.14257 7.40438 6 12 6C13.4281 6 14.6996 6.30347 15.8089 6.77898L17.2954 5.29246C17.6854 4.90251 18.3176 4.90251 18.7075 5.29246C19.0975 5.6824 19.0975 6.31463 18.7075 6.70457L6.70457 18.7075C6.31463 19.0975 5.6824 19.0975 5.29246 18.7075ZM14.2486 8.33931C13.5607 8.12595 12.8101 8 12 8C8.46046 8 6.05644 10.4046 5.05419 12C5.5903 12.8534 6.52748 13.9383 7.825 14.7629L10.0481 12.5398C9.99939 12.3681 9.97337 12.187 9.97337 12C9.97337 10.8954 10.8808 10 12.0003 10C12.1804 10 12.355 10.0232 12.5212 10.0667L14.2486 8.33931ZM12 18C11.4319 18 10.8886 17.952 10.3704 17.8642L12.2382 15.9964C15.6475 15.8917 17.9662 13.5594 18.9458 12C18.6572 11.5405 18.2523 11.014 17.7375 10.4971L19.1596 9.07492C19.8501 9.76486 20.3759 10.4646 20.7317 11.0483C21.0894 11.6352 21.0894 12.3648 20.7317 12.9517C19.5702 14.8574 16.5956 18 12 18Z"},"line-info-circle":{evenOdd:!0,d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12ZM12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7Z"},"filled-dropdown-up":{evenOdd:!0,d:"M8.04381 15H8.04582H15.9552H16C16.5523 15 17 14.5523 17 14L16.9998 13.9778C17.0057 13.7029 16.9037 13.4261 16.694 13.2164L12.7836 9.30602C12.5682 9.09061 12.2821 8.98892 12 9.00096C11.7179 8.98892 11.4318 9.09061 11.2164 9.30602L7.30602 13.2164C7.09626 13.4261 6.99434 13.7029 7.00024 13.9778L7 14C7 14.5523 7.44772 15 8 15H8.04381Z"}};function E7(n){return n&&n in Js?Js[n]:void 0}const nw=["id"],rw={class:"ab-onsite-activity-card__content"},iw={key:0,"aria-hidden":"true",class:"icon ab-onsite-activity-card__icon",fill:"currentColor",height:"24px",viewBox:"0 0 24 24",width:"24px"},aw=["clip-rule","d","fill-rule"],sw={class:"ab-onsite-activity-card__main"},ow={class:"ab-onsite-activity-card__heading"},lw={class:"ab-onsite-activity-card__title"},uw={class:"ab-onsite-activity-card__title-strong"},cw=["aria-label"],dw={key:0,"aria-hidden":"true",class:"icon",fill:"currentColor",height:"24px",viewBox:"0 0 24 24",width:"24px"},fw=["clip-rule","d","fill-rule"],pw={key:0,class:"ab-onsite-activity-card__summary"},hw={class:"ab-onsite-activity-card__actions"},mw={class:"ab-onsite-activity-card__footer"},gw=["id"],yw=300,bw=mt(i.defineComponent({__name:"OnsiteActivityCard",props:{id:{},icon:{default:void 0},title:{},summary:{default:""},description:{default:""},state:{default:"default"},showDetails:{type:Boolean,default:!1},showOnSiteDisabled:{type:Boolean,default:!1},indicator:{default:void 0},labels:{}},emits:["show-on-site","toggle-visibility","delete","toggle-details","indicator-action"],setup(n,{emit:e}){const t=n,r=e,a={information:"line-info-circle",warning:"line-caution-triangle"},o={information:"medium",warning:"large"},u={"&":"&","<":"<",">":">",'"':""","'":"'"};function s(ee){return ee.replace(/[&<>"']/g,Q=>u[Q])}const d=i.computed(()=>E7(t.icon)),p=i.computed(()=>E7(t.indicator&&a[t.indicator.variant])),f=i.computed(()=>{var ee;return s(((ee=t.indicator)==null?void 0:ee.title)??"")}),m=i.computed(()=>{var ee;return s(((ee=t.indicator)==null?void 0:ee.text)??"")}),y=i.computed(()=>/^(\S+)([\s\S]*)$/.exec(t.title.trim())),C=i.computed(()=>{var ee;return((ee=y.value)==null?void 0:ee[1])??""}),S=i.computed(()=>{var ee;return((ee=y.value)==null?void 0:ee[2])??""}),v=i.computed(()=>t.summary.trim().length>0),_=i.computed(()=>t.description.trim().length>0),g=i.computed(()=>_.value&&t.showDetails),b=i.computed(()=>t.state==="hidden"),E=i.computed(()=>t.state==="showing"),w=i.computed(()=>`${t.id}-details`),k=i.computed(()=>b.value?"line-show-off":"line-show-on"),A=i.computed(()=>b.value?t.labels.show:t.labels.hide),$=i.computed(()=>E.value?t.labels.showingOnSite:t.labels.showOnSite),M=i.computed(()=>t.showOnSiteDisabled||E.value),Z=i.computed(()=>g.value?t.labels.hideDetails:t.labels.showDetails);function J(ee){const Q=Js[ee],ue=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path${Q.evenOdd?' fill-rule="evenodd" clip-rule="evenodd"':""} d="${Q.d}"/></svg>`;return{"--ab-activity-card-glyph":`url("data:image/svg+xml,${encodeURIComponent(ue)}")`}}const oe=i.computed(()=>["ab-onsite-activity-card",`ab-onsite-activity-card--${t.state}`,{"ab-onsite-activity-card--indicator":!!t.indicator,"ab-onsite-activity-card--details-open":g.value}]);function U(){r("show-on-site",t.id)}function te(){r("toggle-visibility",t.id)}function P(){r("delete",t.id)}function N(){r("toggle-details",t.id,!g.value)}return(ee,Q)=>(i.openBlock(),i.createElementBlock("div",{id:ee.id,class:i.normalizeClass(oe.value)},[i.createElementVNode("div",rw,[d.value?(i.openBlock(),i.createElementBlock("svg",iw,[i.createElementVNode("path",{"clip-rule":d.value.evenOdd?"evenodd":void 0,d:d.value.d,"fill-rule":d.value.evenOdd?"evenodd":void 0},null,8,aw)])):ee.icon?(i.openBlock(),i.createBlock(Fe,{key:1,class:"ab-onsite-activity-card__icon",name:ee.icon,size:24},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("div",sw,[i.createElementVNode("div",ow,[i.createElementVNode("p",lw,[i.renderSlot(ee.$slots,"title",{},()=>[i.createElementVNode("strong",uw,i.toDisplayString(C.value),1),i.createTextVNode(i.toDisplayString(S.value),1)],!0)]),ee.indicator?(i.openBlock(),i.createBlock(Xs,{key:0,id:`${ee.id}-indicator-tooltip`,"hide-delay":yw,placement:"left-start"},{contentSlot:i.withCtx(()=>[i.createVNode(J6,{id:`${ee.id}-indicator`,size:o[ee.indicator.variant],"description-text":m.value,"title-text":f.value,variant:ee.indicator.variant},i.createSlots({_:2},[ee.indicator.actionLabel?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("button",{class:"ab-onsite-activity-card__indicator-action",type:"button",onClick:Q[0]||(Q[0]=ne=>r("indicator-action",ee.id))},[i.createVNode(Fe,{name:"line-open-website",size:24}),i.createElementVNode("span",null,i.toDisplayString(ee.indicator.actionLabel),1)])]),key:"0"}:void 0]),1032,["id","size","description-text","title-text","variant"])]),default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["ab-onsite-activity-card__indicator",`ab-onsite-activity-card__indicator--${ee.indicator.variant}`]),role:"img",tabindex:"0","aria-label":ee.indicator.title},[p.value?(i.openBlock(),i.createElementBlock("svg",dw,[i.createElementVNode("path",{"clip-rule":p.value.evenOdd?"evenodd":void 0,d:p.value.d,"fill-rule":p.value.evenOdd?"evenodd":void 0},null,8,fw)])):(i.openBlock(),i.createBlock(Fe,{key:1,name:a[ee.indicator.variant],size:24},null,8,["name"]))],10,cw)]),_:1},8,["id"])):i.createCommentVNode("",!0)]),v.value?(i.openBlock(),i.createElementBlock("p",pw,i.toDisplayString(ee.summary),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",hw,[ee.indicator?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Xs,{key:0,id:`${ee.id}-visibility-tooltip`,"prevent-xss":"",placement:"top",text:A.value},{default:i.withCtx(()=>[i.createVNode(Bt,{class:"ab-onsite-activity-card__action ab-onsite-activity-card__visibility ab-onsite-activity-card__glyph-before",color:"secondary",size:"small",type:"button",variant:"ghost","aria-label":A.value,"data-glyph":k.value,style:i.normalizeStyle(J(k.value)),onClick:te},null,8,["aria-label","data-glyph","style"])]),_:1},8,["id","text"])),i.createVNode(Xs,{id:`${ee.id}-delete-tooltip`,"prevent-xss":"",placement:"top",text:ee.labels.delete},{default:i.withCtx(()=>[i.createVNode(Bt,{class:"ab-onsite-activity-card__action ab-onsite-activity-card__delete",color:"secondary","left-icon-name":"line-delete",size:"small",type:"button",variant:"ghost","aria-label":ee.labels.delete,"icon-size":24,onClick:P},null,8,["aria-label"])]),_:1},8,["id","text"])])]),i.createElementVNode("div",mw,[i.createVNode(Bt,{class:"ab-onsite-activity-card__link ab-onsite-activity-card__show-on-site",color:"primary",type:"button",variant:"text",disabled:M.value,label:$.value,onClick:U},null,8,["disabled","label"]),_.value?(i.openBlock(),i.createBlock(Bt,{key:0,class:i.normalizeClass(["ab-onsite-activity-card__link ab-onsite-activity-card__details-toggle",{"ab-onsite-activity-card__glyph-after":g.value}]),color:"secondary",type:"button",variant:"text","aria-controls":w.value,"aria-expanded":g.value?"true":"false","data-glyph":g.value?"filled-dropdown-up":void 0,"icon-size":24,label:Z.value,"right-icon-name":g.value?void 0:"dropdown-down-icon",style:i.normalizeStyle(g.value?J("filled-dropdown-up"):void 0),onClick:N},null,8,["aria-controls","aria-expanded","class","data-glyph","label","right-icon-name","style"])):i.createCommentVNode("",!0)]),g.value?(i.openBlock(),i.createElementBlock("p",{key:0,id:w.value,class:"ab-onsite-activity-card__details"},i.toDisplayString(ee.description),9,gw)):i.createCommentVNode("",!0)],10,nw))}}),[["__scopeId","data-v-d25f3b72"]]),Zr={modalWrapper:"_modalWrapper_fnpgl_36",medium:"_medium_fnpgl_45",small:"_small_fnpgl_52",compact:"_compact_fnpgl_58",section:"_section_fnpgl_64",description:"_description_fnpgl_76",modal:"_modal_fnpgl_36",close:"_close_fnpgl_96",header:"_header_fnpgl_115",footer:"_footer_fnpgl_141",footerActions:"_footerActions_fnpgl_150",modalOverlay:"_modalOverlay_fnpgl_156"},_w=["aria-label"],ww=mt(i.defineComponent({__name:"OnsiteActionModal",props:{title:{},isOpen:{type:Boolean},size:{},width:{default:560},description:{default:void 0},cancelText:{},submitText:{},hasOverlay:{type:Boolean,default:!0},submitColor:{default:"primary"},extraText:{default:void 0},closable:{type:Boolean,default:!0},closeAriaLabel:{default:"Close"}},emits:["close","submit","extra"],setup(n,{emit:e}){const t=n,r=e,a=i.computed(()=>t.size==="compact"?{"--onsite-action-modal-width":`${t.width}px`}:void 0);function o(){r("close")}function u(){t.closable&&o()}function s(p){t.isOpen&&p.key==="Escape"&&u()}let d=!1;return i.onMounted(async()=>{await i.nextTick(),d||window.addEventListener("keydown",s)}),i.onBeforeUnmount(()=>{d=!0,window.removeEventListener("keydown",s)}),(p,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.hasOverlay&&p.isOpen?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(Zr).modalOverlay),onClick:u},null,2)):i.createCommentVNode("",!0),i.createVNode(i.Transition,{name:"onsite-action-modal-transition"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass([i.unref(Zr).modalWrapper,i.unref(Zr)[p.size]]),style:i.normalizeStyle(a.value)},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(Zr).modal,i.unref(Zr)[p.size]])},[p.closable?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button","aria-label":p.closeAriaLabel,class:i.normalizeClass(i.unref(Zr).close),onClick:o},[i.createVNode(Fe,{name:"line-close-netural",size:24})],10,_w)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Zr).header)},[i.createElementVNode("p",null,i.toDisplayString(p.title),1)],2),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Zr).section)},[p.description?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(["ab-onsite-action-modal__description",i.unref(Zr).description])},i.toDisplayString(p.description),3)):i.createCommentVNode("",!0),i.renderSlot(p.$slots,"section",{},void 0,!0)],2),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Zr).footer)},[p.cancelText!==""?(i.openBlock(),i.createBlock(Bt,{key:0,color:"secondary",variant:"text",label:p.cancelText,onClick:o},null,8,["label"])):i.createCommentVNode("",!0),p.extraText?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(Zr).footerActions)},[i.createVNode(Bt,{color:"secondary",variant:"solid",label:p.extraText,onClick:f[0]||(f[0]=m=>r("extra"))},null,8,["label"]),i.createVNode(Bt,{variant:"solid",color:p.submitColor,label:p.submitText,onClick:f[1]||(f[1]=m=>r("submit"))},null,8,["color","label"])],2)):(i.openBlock(),i.createBlock(Bt,{key:2,variant:"solid",color:p.submitColor,label:p.submitText,onClick:f[2]||(f[2]=m=>r("submit"))},null,8,["color","label"]))],2)],2)],6),[[i.vShow,p.isOpen]])]),_:3})],64))}}),[["__scopeId","data-v-8565d097"]]),Cw={key:0,"aria-hidden":"true",class:"icon ab-onsite-action-toast__icon",fill:"currentColor",height:"24px",viewBox:"0 0 24 24",width:"24px"},Ew={key:2,class:"ab-onsite-action-toast__content"},vw={class:"ab-onsite-action-toast__text"},kw={class:"ab-onsite-action-toast__actions"},Aw={key:3,class:"ab-onsite-action-toast__text"},Sw=["aria-label"],Dw="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM10.3092 14.7185L8.28015 12.6796C7.90662 12.3043 7.90662 11.6957 8.28015 11.3204C8.65368 10.945 9.25929 10.945 9.63282 11.3204L10.9855 12.6796L14.3672 9.28151C14.7407 8.90616 15.3463 8.90616 15.7199 9.28151C16.0934 9.65685 16.0934 10.2654 15.7199 10.6408L11.6618 14.7185C11.2883 15.0938 10.6827 15.0938 10.3092 14.7185Z",xw=mt(i.defineComponent({__name:"OnsiteActionToast",props:{modelValue:{type:Boolean},text:{},variant:{default:"info"},size:{default:"default"},duration:{default:4e3},icon:{default:void 0},closeAriaLabel:{default:"Close notification"},actionText:{default:void 0}},emits:["update:modelValue","dismiss","action"],setup(n,{emit:e}){const t=n,r=e,a={info:"filled-info-circle",error:"filled-error-box",warning:"filled-caution-triangle-colored"},o=i.computed(()=>!t.icon&&t.variant==="success"),u=i.computed(()=>t.icon??a[t.variant==="success"?"info":t.variant]);let s=null;function d(){s&&(clearTimeout(s),s=null)}function p(){d(),r("update:modelValue",!1),r("dismiss")}function f(){d(),!(t.duration<=0)&&(s=setTimeout(p,t.duration))}return i.watch(()=>t.modelValue,m=>{m?f():d()},{immediate:!0}),i.onBeforeUnmount(d),(m,y)=>(i.openBlock(),i.createBlock(i.Transition,{name:"ab-onsite-action-toast"},{default:i.withCtx(()=>[m.modelValue?(i.openBlock(),i.createElementBlock("div",{key:0,"aria-live":"polite",class:i.normalizeClass(["ab-onsite-action-toast",[`ab-onsite-action-toast--${m.variant}`,{"ab-onsite-action-toast--wide":m.size==="wide"}]]),role:"status"},[o.value?(i.openBlock(),i.createElementBlock("svg",Cw,[i.createElementVNode("path",{"clip-rule":"evenodd","fill-rule":"evenodd",d:Dw})])):(i.openBlock(),i.createBlock(Fe,{key:1,class:"ab-onsite-action-toast__icon",name:u.value,size:24},null,8,["name"])),m.actionText?(i.openBlock(),i.createElementBlock("div",Ew,[i.createElementVNode("span",vw,i.toDisplayString(m.text),1),i.createElementVNode("div",kw,[i.createVNode(Bt,{color:"primary",size:"small",variant:"ghost",label:m.actionText,onClick:y[0]||(y[0]=C=>r("action"))},null,8,["label"])])])):(i.openBlock(),i.createElementBlock("span",Aw,i.toDisplayString(m.text),1)),i.createElementVNode("button",{class:"ab-onsite-action-toast__close",type:"button","aria-label":m.closeAriaLabel,onClick:p},[i.createVNode(Fe,{name:"line-close-netural",size:24})],8,Sw)],2)):i.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-147b7145"]]),Tw=["for"],$w=["innerHTML"],Bw={class:"in-basic-text-input-wrapper__input-field"},Rw={key:0,class:"in-basic-text-input-wrapper__slot-left"},Lw=["id","autocomplete","disabled","max","maxlength","min","name","placeholder","readonly","type","value"],Fw={key:2,class:"in-basic-text-input-wrapper__suffix-text"},Ow={key:4,class:"in-basic-text-input-wrapper__slot-right"},Nw={key:1,class:"in-basic-text-input-wrapper__helper-container"},Iw={key:0,class:"in-basic-text-input-wrapper__helper-message"},Pw={key:0,class:"in-basic-text-input-wrapper__helper-text"},Mw={key:1,class:"in-basic-text-input-wrapper__helper-text"},va=mt(i.defineComponent({__name:"InBasicTextInput",props:{id:{},name:{},theme:{default:"grey"},modelValue:{default:""},labelStatus:{type:Boolean,default:!0},labelText:{default:""},type:{default:"text"},states:{default:"default"},placeholderText:{},disabledStatus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},leftIconStatus:{type:Boolean,default:!1},leftIconName:{default:void 0},rightIconStatus:{type:Boolean,default:!1},rightIconName:{default:void 0},suffixTextStatus:{type:Boolean,default:!1},suffixText:{default:""},autoComplete:{default:"off"},maxCharacterLength:{default:""},minValue:{default:0},maxValue:{default:""},autoFocus:{type:Boolean,default:!1},allowDecimal:{type:Boolean,default:!1},allowComma:{type:Boolean,default:!0},preventXss:{type:Boolean,default:!0},helperMessageStatus:{type:Boolean,default:!0},helperMessage:{default:""},stateMessage:{default:""}},emits:["update:modelValue","input","change","focus","blur","keyup","keypress","click","paste","leftIconClick","rightIconClick"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(""),o=i.computed(()=>t.preventXss?String(t.labelText).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):t.labelText),u=i.computed(()=>t.states==="default"),s=i.computed(()=>t.states==="warning"||t.states==="error"),d=i.computed(()=>t.helperMessageStatus||s.value),p=i.computed(()=>t.type==="number"),f=i.computed(()=>{const P=["e","E","+","\\"],N=typeof t.minValue=="number"?t.minValue:Number(t.minValue);return!Number.isNaN(N)&&N>=0&&P.push("-"),t.allowDecimal||P.push("."),t.allowComma||P.push(","),P}),m=P=>f.value.includes(P),y=P=>{var N;if(t.preventXss&&(P!=null&&P.target)){const ee=String(P.target.value).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");P.target.value!==ee&&(P.target.value=ee)}return a.value=((N=P==null?void 0:P.target)==null?void 0:N.value)||"",P},C=()=>{let P="";return t.allowDecimal&&(P+="."),t.allowComma&&(P+=","),new RegExp(`[${P}]`,"g")},S=()=>{let P="0-9";return t.allowDecimal&&(P+="\\."),t.allowComma&&(P+=","),new RegExp(`[^${P}]+`,"g")},v=P=>{if(!(P!=null&&P.target))return;const N=P.target,{selectionStart:ee}=N;if(ee===null)return;const Q=ee-1,{value:ne}=P.target,ue=S(),F=[...ne.matchAll(ue)].map(K=>K.index);P.target.value=ne.replace(ue,""),F.length>0&&Q>=0&&N.setSelectionRange(Q,Q)},_=P=>{if(!(P!=null&&P.target))return;const{value:N}=P.target,ee=P.target,{selectionStart:Q}=ee;if(Q===null)return;const ne=Q-1,ue=C(),F=[...N.matchAll(ue)].map(O=>O.index),K=N.split("");F.length>1&&ne>=0&&(K[ne]=""),P.target.value=K.join(""),F.length>1&&ne>=0&&ee.setSelectionRange(ne,ne)},g=P=>{r("keyup",P)},b=P=>{P.key==="Enter"&&r("keypress",P),p.value&&m(P.key)&&P.preventDefault()},E=P=>{r("focus",P)},w=P=>{r("blur",P)},k=P=>{r("click",P)},A=P=>{var Q;const N=P;p.value&&(v(N),_(N)),y(N);const ee=((Q=N==null?void 0:N.target)==null?void 0:Q.value)||"";a.value=ee,r("input",ee),r("update:modelValue",ee)},$=P=>{var Q;const N=P;p.value&&(v(N),_(N)),y(N);const ee=((Q=N==null?void 0:N.target)==null?void 0:Q.value)||"";a.value=ee,r("change",ee),r("update:modelValue",ee)},M=P=>{var he,be;if(t.maxCharacterLength&&typeof t.maxCharacterLength=="number"){const H=P.target,se=H.selectionStart,fe=H.selectionEnd;if(se===null||fe===null)return;const{value:Ce}=H,Ee=((he=P.clipboardData)==null?void 0:he.getData("text/plain"))||"",Ne=Ce.length,Ue=fe-se,Ze=t.maxCharacterLength-Ne+Ue;if(Ze<=0){P.preventDefault();return}const ge=Ee.slice(0,Ze);if(ge!==Ee){P.preventDefault();const tt=Ce.slice(0,se)+ge+Ce.slice(fe);H.value=tt;const Ve=se+ge.length;H.setSelectionRange(Ve,Ve),a.value=tt,r("input",tt),r("update:modelValue",tt);return}}if(!p.value)return;P.preventDefault();const N=P.target,ee=N.selectionStart,Q=N.selectionEnd;if(ee===null||Q===null)return;const{value:ne}=N,ue=ne.includes(".")||ne.includes(","),F=((be=P.clipboardData)==null?void 0:be.getData("text/plain"))||"",K=C(),O=S();let V=F.replace(O,"");const L=[...V.matchAll(K)],z=[];L.forEach(H=>{H.index!==void 0&&z.push(H.index)});const ie=V.split("");ue||z.shift(),z.forEach(H=>{ie[H]=""}),V=ie.join("");const ae=ee+V.length,q=ne.slice(0,ee)+V+ne.slice(Q);N.value=q,N.setSelectionRange(ae,ae),a.value=q,r("input",q),r("update:modelValue",q)},Z=P=>{r("leftIconClick",P)},J=P=>{r("rightIconClick",P)},oe=i.ref(null),U=i.ref(null),te=()=>{i.nextTick(()=>{var P;(P=oe.value)==null||P.focus()})};return i.watch(()=>t.modelValue,P=>{a.value=P},{immediate:!0}),i.watch(()=>t.autoFocus,P=>{P&&te()}),i.onMounted(()=>{t.autoFocus&&te()}),(P,N)=>(i.openBlock(),i.createElementBlock("fieldset",{ref_key:"componentRoot",ref:U,class:i.normalizeClass(["in-basic-text-input-wrapper qa-text-input",[`in-basic-text-input-wrapper__${P.states}`,`in-basic-text-input-wrapper__${P.theme}`,{"in-basic-text-input-wrapper__disable":P.disabledStatus}]])},[P.labelStatus?(i.openBlock(),i.createElementBlock("label",{key:0,class:"in-basic-text-input-wrapper__label",for:P.id},[i.createElementVNode("span",{innerHTML:o.value},null,8,$w)],8,Tw)):i.createCommentVNode("",!0),i.createElementVNode("div",Bw,[P.$slots.leftSlot?(i.openBlock(),i.createElementBlock("div",Rw,[i.renderSlot(P.$slots,"leftSlot",{},void 0,!0)])):i.createCommentVNode("",!0),P.leftIconStatus?(i.openBlock(),i.createBlock(i.unref(Fe),{key:1,class:"in-basic-text-input-wrapper__icon-left",name:P.leftIconName,size:24,onClick:Z},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:P.id,ref_key:"textInput",ref:oe,class:"in-basic-text-input-wrapper__input",autocomplete:P.autoComplete,disabled:P.disabledStatus,max:typeof P.maxValue=="number"?P.maxValue:void 0,maxlength:typeof P.maxCharacterLength=="number"?P.maxCharacterLength:void 0,min:typeof P.minValue=="number"?P.minValue:void 0,name:P.name,placeholder:P.placeholderText,readonly:P.readonly,type:P.type,value:a.value,onBlur:w,onChange:$,onClick:k,onFocus:E,onInput:A,onKeypress:b,onKeyup:g,onPaste:M},null,40,Lw),P.suffixTextStatus&&P.suffixText?(i.openBlock(),i.createElementBlock("span",Fw,i.toDisplayString(P.suffixText),1)):i.createCommentVNode("",!0),P.rightIconStatus?(i.openBlock(),i.createBlock(i.unref(Fe),{key:3,class:"in-basic-text-input-wrapper__icon-right",name:P.rightIconName,size:24,onClick:J},null,8,["name"])):i.createCommentVNode("",!0),P.$slots.rightSlot?(i.openBlock(),i.createElementBlock("div",Ow,[i.renderSlot(P.$slots,"rightSlot",{},void 0,!0)])):i.createCommentVNode("",!0)]),d.value?(i.openBlock(),i.createElementBlock("div",Nw,[P.helperMessageStatus||s.value?(i.openBlock(),i.createElementBlock("div",Iw,[u.value?(i.openBlock(),i.createElementBlock("p",Pw,i.toDisplayString(P.helperMessage),1)):i.createCommentVNode("",!0),s.value&&!P.disabledStatus?(i.openBlock(),i.createElementBlock("p",Mw,i.toDisplayString(P.stateMessage),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-92d939e1"]]),v7=mt(i.defineComponent({__name:"InBox",props:{border:{default:""},borderRadius:{default:""},borderTriangle:{type:Boolean,default:!1},borderTrianglePosition:{default:""},borderTriangleAlign:{default:""}},setup(n){const e=n,t=i.computed(()=>{const r=[];return e.border&&r.push(e.border),e.borderRadius&&r.push(e.borderRadius),e.borderTriangle&&e.borderTrianglePosition&&e.borderTriangleAlign&&r.push(`in-box_${e.borderTrianglePosition}-${e.borderTriangleAlign}`),r.join(" ")});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["in-box",t.value])},[i.renderSlot(r.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-d7d84bbc"]]),E3={mounted(n,e){n.clickOutsideOptions=e.value,n.clickOutsideEvent=r=>{const a=n.clickOutsideOptions;if(!a)return;const o=(a.exclude||[]).filter(p=>p.value).map(p=>p.value),u=r.target,s=[n,...o].some(p=>p&&(p===u||p.contains(u))),d=(a.excludeSelectors||[]).some(p=>{if(!(u instanceof Element))return!1;try{return u.closest(p)!==null}catch{return!1}});s||d||a.handler()};const t=e.value.capture??!1;n.clickOutsideCapture=t,document.addEventListener("click",n.clickOutsideEvent,t)},updated(n,e){n.clickOutsideOptions=e.value;const t=e.value.capture??!1;!n.clickOutsideEvent||t===n.clickOutsideCapture||(document.removeEventListener("click",n.clickOutsideEvent,n.clickOutsideCapture??!1),n.clickOutsideCapture=t,document.addEventListener("click",n.clickOutsideEvent,t))},unmounted(n){if(n.clickOutsideEvent){const e=n.clickOutsideCapture??!1;document.removeEventListener("click",n.clickOutsideEvent,e)}n.clickOutsideOptions=void 0}},Vw=4,qw=8,k7=mt(i.defineComponent({__name:"Popover",props:{modelValue:{type:Boolean,default:!1},align:{default:"left"},position:{default:"bottom"},width:{},positionStrategy:{default:"fixed"},closeOnClickOutside:{type:Boolean,default:!1},ignoreOutsideSelectors:{default:void 0},elevated:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},gap:{default:Vw},anchorSelector:{default:void 0}},emits:["update:modelValue","open","close"],setup(n,{expose:e,emit:t}){const r=E3,a=n,o=t,u=i.ref(null),s=i.ref(null),d=i.ref(null),p=i.ref(a.modelValue);function f(){const w=u.value;if(!w)return null;const k=w.firstElementChild??w;return a.anchorSelector?k.querySelector(a.anchorSelector)??k:k}const m=i.computed(()=>{if(a.align==="left-side")return"left-end";if(a.align==="right-side")return"right-end";if(a.align==="left-side-top")return"left-start";if(a.align==="right-side-top")return"right-start";const w=a.position==="top"?"top":"bottom";return a.align==="center"?w:a.align==="right"?`${w}-end`:`${w}-start`}),y=i.computed(()=>a.positionStrategy==="fixed"?"fixed":"absolute"),C=i.computed(()=>[t1(a.gap),r1(),n1({padding:qw})]),{floatingStyles:S,isPositioned:v}=i1(d,s,{placement:m,strategy:y,middleware:C,whileElementsMounted:e1}),_=i.computed(()=>{const w={};return a.positionStrategy==="absolute"&&!a.fitContent&&(w.width="100%"),a.width&&(w.width=`${a.width}px`,w.minWidth=`${a.width}px`),w});i.onMounted(()=>{d.value=f()}),i.watch(()=>a.modelValue,w=>{p.value=w,w&&i.nextTick(()=>{d.value=f()})});const g=()=>{p.value=!p.value,o("update:modelValue",p.value),p.value?(o("open"),i.nextTick(()=>{d.value=f()})):o("close")},b=()=>{p.value=!1,o("update:modelValue",!1),o("close")},E=i.computed(()=>({handler:b,exclude:[u,s],excludeSelectors:a.ignoreOutsideSelectors,capture:a.closeOnClickOutside}));return e({isOpen:p,toggle:g,close:b}),(w,k)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"popoverRef",ref:u,class:"popover"},[i.renderSlot(w.$slots,"trigger",{isOpen:p.value,toggle:g},void 0,!0),p.value?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"contentRef",ref:s,class:i.normalizeClass(["popover__content",{"popover__content--visible":i.unref(v),"popover__content--elevated":w.elevated}]),style:i.normalizeStyle([i.unref(S),_.value]),onClick:k[0]||(k[0]=i.withModifiers(()=>{},["prevent"]))},[i.createVNode(i.unref(v7),null,{default:i.withCtx(()=>[i.renderSlot(w.$slots,"default",{},void 0,!0)]),_:3})],6)),[[i.unref(r),E.value]]):i.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-768c3a9d"]]),zw=(n,e)=>{var r;let t=0;for(const a of n)if(a.toLowerCase()===((r=e[t])==null?void 0:r.toLowerCase())&&t++,t===e.length)return!0;return!1},_2=(n,e,t)=>{if(!t.trim())return n;const r=t.toLowerCase();return n.filter(a=>{const o=String(a[e]);return zw(o.toLowerCase(),r)}).sort((a,o)=>{const u=String(a[e]).toLowerCase(),s=String(o[e]).toLowerCase();return u===r?-1:s===r?1:u.startsWith(r)&&!s.startsWith(r)?-1:!u.startsWith(r)&&s.startsWith(r)?1:u.length-s.length})},jw={key:0,class:"in-dropdown-menu__search-container"},Uw={key:2,class:"in-dropdown-menu__item-container"},Hw=["onClick"],w2=mt(i.defineComponent({__name:"InDropdownMenu",props:{modelValue:{default:""},items:{},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search"},addable:{type:Boolean,default:!1},addButtonText:{default:"Add"},validateAddItem:{type:Function,default:()=>null},showSelectedIcon:{type:Boolean,default:!1},rotateArrow:{type:Boolean,default:!1},menuHeight:{default:154},width:{},mode:{default:"primary"},anchorSelector:{default:void 0},position:{default:"bottom"}},emits:["update:modelValue","add-error","item-added","select-item"],setup(n,{expose:e,emit:t}){i.useCssVars(b=>({ef6a2086:`${r.menuHeight}px`}));const r=n,a=t,o=i.ref(!1),u=i.ref(null),s=i.ref(""),d=i.ref(null),p=i.ref([...r.items]),f=i.ref([...r.items]),m=()=>{o.value=!o.value},y=()=>{d.value=null,s.value="",p.value=[...f.value]};i.watch(()=>o.value,b=>{b||y()});const C=()=>{o.value=!1,y()},S=b=>{u.value=b,a("select-item",b),a("update:modelValue",b.value),C()},v=()=>{const b=s.value.trim(),E=r.validateAddItem(b,f.value);if(E){d.value=E,a("add-error",E);return}const w={text:b,value:b};f.value.push(w),y(),a("item-added",w)},_=b=>{s.value=String(b);const E=_2(f.value,"text",s.value);p.value=E},g=()=>{d.value=null};return i.onMounted(()=>{if(r.modelValue){const b=f.value.find(E=>E.value===r.modelValue);b&&(u.value=b)}}),i.watch(()=>r.modelValue,b=>{var E;if(((E=u.value)==null?void 0:E.value)!==b){const w=f.value.find(k=>k.value===b);w?u.value=w:u.value=null}}),i.watch(()=>r.items,b=>{f.value=[...b],p.value=[...b]},{deep:!0}),e({isOpen:o,toggleMenu:m,closeMenu:C,selectedItem:u}),(b,E)=>(i.openBlock(),i.createBlock(i.unref(k7),{class:i.normalizeClass(["in-dropdown-menu",{"in-dropdown-menu--open":o.value,"in-dropdown-menu--rotate-arrow":r.rotateArrow,[`in-dropdown-menu--${r.mode}`]:!0}]),"position-strategy":"absolute","anchor-selector":b.anchorSelector,position:r.position,width:r.width,modelValue:o.value,"onUpdate:modelValue":E[2]||(E[2]=w=>o.value=w)},{trigger:i.withCtx(({isOpen:w})=>[i.renderSlot(b.$slots,"trigger",{isOpen:w,toggle:m},void 0,!0)]),default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["in-dropdown-menu__menu",[`in-dropdown-menu__menu--${r.mode}`]]),onClick:E[1]||(E[1]=i.withModifiers(()=>{},["prevent"]))},[b.searchable?(i.openBlock(),i.createElementBlock("div",jw,[i.createVNode(va,{id:"dropdown-search-input","right-icon-status":"",name:"dropdown-search-input","right-icon-name":"line-search","helper-message-status":!1,"label-status":!1,"placeholder-text":b.searchPlaceholder,"state-message":d.value||"",states:d.value?"error":"default",modelValue:s.value,"onUpdate:modelValue":E[0]||(E[0]=w=>s.value=w),onFocus:g,onInput:_},null,8,["placeholder-text","state-message","states","modelValue"]),b.addable?(i.openBlock(),i.createBlock(i.unref(Bt),{key:0,color:"primary","left-icon-name":"line-plus-netural",size:"small",variant:"text",label:b.addButtonText,onClick:v},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),p.value.length===0&&b.searchable?i.renderSlot(b.$slots,"no-results",{key:1},void 0,!0):(i.openBlock(),i.createElementBlock("ul",Uw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(w,k)=>{var A,$;return i.openBlock(),i.createElementBlock("li",{key:`${w.value}-${k}`,class:"in-dropdown-menu__item"},[b.$slots.item?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["in-dropdown-menu__item-content",[{"in-dropdown-menu__item--active":u.value&&w.value===u.value.value}]]),onClick:M=>S(w)},[i.renderSlot(b.$slots,"item",{isSelected:((A=u.value)==null?void 0:A.value)===w.value,item:w},void 0,!0)],10,Hw)):(i.openBlock(),i.createBlock(i.unref(Bt),{key:1,fill:"",class:i.normalizeClass(["in-dropdown-menu__item-button",[{"in-dropdown-menu__item-button--active":u.value&&w.value===u.value.value}]]),color:"secondary",size:"small",variant:"ghost",label:w.text,"right-icon-name":r.showSelectedIcon&&(($=u.value)==null?void 0:$.value)===w.value?"line-check-natural":void 0,onClick:M=>S(w)},null,8,["class","label","right-icon-name","onClick"]))])}),128))]))],2)]),_:3},8,["anchor-selector","class","position","width","modelValue"]))}}),[["__scopeId","data-v-7e9c92f8"]]),Ww=4,Gw=i.defineComponent({__name:"OnsiteAutoPositionDropdownMenu",props:{items:{},modelValue:{default:""},menuHeight:{default:154},width:{default:void 0},mode:{default:"primary"},anchorSelector:{default:void 0},rotateArrow:{type:Boolean,default:!1},showSelectedIcon:{type:Boolean,default:!1}},emits:["update:modelValue","select-item"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(null),o=i.ref("bottom");function u(){var S;const d=(S=a.value)==null?void 0:S.$el;if(!(d!=null&&d.getBoundingClientRect))return;const f=((t.anchorSelector?d.querySelector(t.anchorSelector):null)??d.firstElementChild??d).getBoundingClientRect(),m=Number(t.menuHeight)+Ww,y=window.innerHeight-f.bottom,C=f.top;y>=m?o.value="bottom":C>=m?o.value="top":o.value=y>=C?"bottom":"top"}function s(d,p){p||u(),d()}return(d,p)=>(i.openBlock(),i.createBlock(w2,{ref_key:"menu",ref:a,"anchor-selector":d.anchorSelector,items:d.items,"menu-height":Number(d.menuHeight),mode:d.mode,"model-value":d.modelValue,position:o.value,"rotate-arrow":d.rotateArrow,"show-selected-icon":d.showSelectedIcon,width:d.width,onSelectItem:p[0]||(p[0]=f=>r("select-item",f)),"onUpdate:modelValue":p[1]||(p[1]=f=>r("update:modelValue",f))},i.createSlots({trigger:i.withCtx(({isOpen:f,toggle:m})=>[i.renderSlot(d.$slots,"trigger",{isOpen:f,toggle:()=>s(m,f)})]),_:2},[d.$slots.item?{name:"item",fn:i.withCtx(f=>[i.renderSlot(d.$slots,"item",i.normalizeProps(i.guardReactiveProps(f)))]),key:"0"}:void 0]),1032,["anchor-selector","items","menu-height","mode","model-value","position","rotate-arrow","show-selected-icon","width"]))}}),a1={bubble:"_bubble_6zub9_1",trigger:"_trigger_6zub9_43",trigger__icon:"_trigger__icon_6zub9_51",arrow:"_arrow_6zub9_57",bubble__content:"_bubble__content_6zub9_78"},Zw=["id"],Yw=["innerHTML"],Kw=1e3,A7=20,v3=8,ki=i.defineComponent({inheritAttrs:!1,__name:"Tooltip",props:{id:{},text:{default:""},placement:{},arrowPlacement:{},status:{type:Boolean},preventXss:{type:Boolean},iconName:{},hideDelay:{},showDelay:{}},setup(n){const e={top:"bottom",right:"left",bottom:"top",left:"right"},t=i.ref(null),r=i.ref(null),a=i.ref(!1);typeof window<"u"&&window.wasTooltipShown===void 0&&(window.wasTooltipShown=!1);const o=n,u=i.ref(null),s=i.ref(null),d=i.ref(null),p=i.ref(!1),f=i.computed(()=>o.preventXss?w7(o.text):o.text),{floatingStyles:m,update:y,middlewareData:C,placement:S}=i1(s,u,{placement:i.computed(()=>o.placement||"bottom"),strategy:"fixed",whileElementsMounted:e1,middleware:[t1(10),r1(),n1(),m7({element:d,padding:v3})]}),v=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const Z=o.showDelay??Kw;window.wasTooltipShown||Z<=0?p.value=!0:t.value=setTimeout(()=>{if(!a.value){t.value=null;return}p.value=!0,window.wasTooltipShown=!0,t.value=null},Z)},_=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const Z=o.hideDelay??0;Z>0?r.value=setTimeout(()=>{a.value&&(p.value=!1),r.value=null},Z):p.value=!1},g=()=>{v()},b=()=>{_()},E=()=>{a.value&&s.value&&u.value&&y()};i.watch(()=>o.placement,()=>{a.value&&s.value&&u.value&&y()}),i.onBeforeMount(_7),i.onMounted(()=>{a.value=!0,i.nextTick(()=>{a.value&&s.value&&y()}),typeof window<"u"&&window.addEventListener("resize",E)}),i.onBeforeUnmount(()=>{a.value=!1,typeof window<"u"&&window.removeEventListener("resize",E),t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null),p.value=!1,u.value=null,s.value=null,d.value=null});const w=i.computed(()=>o.status||p.value),k=i.computed(()=>({...m.value,display:w.value?"inline-block":"none"})),A=i.computed(()=>{const[Z]=S.value.split("-");return{[e[Z]]:"-4px"}}),$=i.computed(()=>{if(!o.arrowPlacement)return{};const[Z]=S.value.split("-"),J=Z==="top"||Z==="bottom"?"left":"top";switch(o.arrowPlacement){case"start":return{[J]:`${v3}px`};case"center":return{[J]:`calc(50% - ${A7/2}px)`};case"end":return{[J]:`calc(100% - ${A7+v3}px)`};default:return{}}}),M=i.computed(()=>{var Z,J;return d.value?{left:((Z=C.value.arrow)==null?void 0:Z.x)!=null?`${C.value.arrow.x}px`:"",top:((J=C.value.arrow)==null?void 0:J.y)!=null?`${C.value.arrow.y}px`:"",right:"",bottom:"",...A.value,...$.value}:{}});return(Z,J)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:Z.id,ref_key:"triggerRef",ref:s,class:i.normalizeClass(i.unref(a1).trigger),onMouseenter:g,onMouseleave:b},[Z.iconName?(i.openBlock(),i.createBlock(i.unref(Fe),{key:0,color:i.unref(a1).trigger__icon,name:Z.iconName},null,8,["color","name"])):i.renderSlot(Z.$slots,"default",{key:1})],42,Zw),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{ref_key:"tooltipRef",ref:u,class:i.normalizeClass(["qa-tooltip",i.unref(a1).bubble]),style:i.normalizeStyle(k.value),onMouseenter:g,onMouseleave:b},[Z.$slots.contentSlot?i.renderSlot(Z.$slots,"contentSlot",{key:0}):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(a1).bubble__content)},[i.createElementVNode("div",{innerHTML:f.value},null,8,Yw)],2)),Z.$slots.contentSlot?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"floatingArrowRef",ref:d,class:i.normalizeClass(i.unref(a1).arrow),style:i.normalizeStyle(M.value)},null,6))],38)]))],64))}}),Xw=["value","placeholder","aria-label"],Jw={class:"ab-calendar__header"},Qw=["aria-label"],eC={class:"ab-calendar__month"},tC=["aria-label"],nC={class:"ab-calendar__weekdays"},rC={class:"ab-calendar__grid"},iC=["data-date","aria-label"],aC=["data-disabled","data-date","aria-label","aria-pressed","disabled","onClick"],sC={class:"ab-calendar__footer"},oC=mt(i.defineComponent({__name:"Calendar",props:{modelValue:{default:""},min:{default:""},max:{default:""},format:{default:"YYYY-MM-DD"},disabledDateTooltip:{default:""},firstDayOfWeek:{default:1},locale:{default:"en"},placeholder:{default:""},applyLabel:{default:"Apply"},cancelLabel:{default:"Cancel"},width:{default:252},inputAriaLabel:{default:""},prevMonthLabel:{default:"Previous month"},nextMonthLabel:{default:"Next month"}},emits:["update:modelValue","apply","cancel"],setup(n,{emit:e}){const t=n,r=e,a={"YYYY-MM-DD":["y","m","d"],"DD/MM/YYYY":["d","m","y"],"MM/DD/YYYY":["m","d","y"],"DD.MM.YYYY":["d","m","y"]},o={"YYYY-MM-DD":"-","DD/MM/YYYY":"/","MM/DD/YYYY":"/","DD.MM.YYYY":"."},u={d:2,m:2,y:4};function s(N,ee){return String(N).padStart(ee,"0")}function d(N,ee,Q){if(!Number.isInteger(N)||!Number.isInteger(ee)||!Number.isInteger(Q))return null;const ne=new Date(N,ee-1,Q);return ne.getFullYear()!==N||ne.getMonth()!==ee-1||ne.getDate()!==Q?null:ne}function p(N,ee){const Q={d:s(N.getDate(),2),m:s(N.getMonth()+1,2),y:String(N.getFullYear())};return a[ee].map(ne=>Q[ne]).join(o[ee])}function f(N,ee){const Q=(N??"").split(o[ee]);if(Q.length!==3)return null;const ne={d:NaN,m:NaN,y:NaN};return a[ee].forEach((ue,F)=>{ne[ue]=Number(Q[F])}),d(ne.y,ne.m,ne.d)}function m(N){return new Date(N.getFullYear(),N.getMonth(),N.getDate()).getTime()}const y=i.ref(""),C=i.computed(()=>f(t.min,t.format)),S=i.computed(()=>f(t.max,t.format));function v(N){const ee=m(N),Q=C.value?m(C.value):null,ne=S.value?m(S.value):null;return(Q===null||ee>=Q)&&(ne===null||ee<=ne)}const _=i.computed(()=>f(y.value,t.format)),g=i.computed(()=>_.value!==null&&v(_.value));function b(){const N=f(t.modelValue,t.format);y.value=N?p(N,t.format):""}b();function E(){const N=_.value??new Date;return{year:N.getFullYear(),month:N.getMonth()}}const w=i.ref(E());i.watch(()=>t.modelValue,b),i.watch(_,N=>{N&&(w.value={year:N.getFullYear(),month:N.getMonth()})});const k=i.computed(()=>new Intl.DateTimeFormat(t.locale,{month:"short",year:"numeric"}).format(new Date(w.value.year,w.value.month,1))),A=i.computed(()=>{const N=new Intl.DateTimeFormat(t.locale,{weekday:"short"}),ee=[];for(let Q=0;Q<7;Q++){const ne=(t.firstDayOfWeek+Q)%7;ee.push(N.format(new Date(2024,0,7+ne)).slice(0,2))}return ee}),$=i.computed(()=>{const{year:N,month:ee}=w.value,ne=(new Date(N,ee,1).getDay()-t.firstDayOfWeek+7)%7,ue=_.value?m(_.value):null,F=[];for(let K=0;K<42;K++){const O=new Date(N,ee,1-ne+K);F.push({key:p(O,"YYYY-MM-DD"),label:O.getDate(),display:p(O,t.format),inCurrentMonth:O.getMonth()===ee,disabled:!v(O),selected:ue!==null&&m(O)===ue})}return F});function M(){const N=w.value.month-1;w.value=N<0?{year:w.value.year-1,month:11}:{year:w.value.year,month:N}}function Z(){const N=w.value.month+1;w.value=N>11?{year:w.value.year+1,month:0}:{year:w.value.year,month:N}}function J(N){N.disabled||(y.value=N.display)}function oe(N){const ee=t.format,Q=a[ee],ne=o[ee],ue=Q.map(ae=>u[ae]),F=ue.reduce((ae,q)=>ae+q,0),K=N.split(ne);for(let ae=0;ae<K.length-1;ae++)ue[ae]===2&&/^\d$/.test(K[ae])&&(K[ae]=`0${K[ae]}`);const O=K.join("").replace(/\D/g,"").slice(0,F),V=[];let L=0;for(const ae of ue)V.push(O.slice(L,L+ae)),L+=ae;const z=N.endsWith(ne);let ie=V[0];for(let ae=1;ae<V.length;ae++)if(V[ae])ie+=ne+V[ae];else if(z&&V[ae-1].length===ue[ae-1]){ie+=ne;break}else break;return ie}function U(N){y.value=oe(N.target.value)}function te(){!g.value||_.value===null||(r("update:modelValue",p(_.value,t.format)),r("apply"))}function P(){b(),r("cancel")}return(N,ee)=>(i.openBlock(),i.createElementBlock("div",{class:"ab-calendar","data-testid":"calendar",style:i.normalizeStyle({width:`${N.width}px`})},[i.createElementVNode("input",{value:y.value,type:"text",class:"ab-calendar__input","data-testid":"calendar-input",placeholder:N.placeholder,"aria-label":N.inputAriaLabel||N.placeholder||void 0,inputmode:"numeric",maxlength:"10",autocomplete:"off",onInput:U},null,40,Xw),i.createElementVNode("div",Jw,[i.createElementVNode("button",{type:"button",class:"ab-calendar__nav","data-testid":"calendar-prev","aria-label":N.prevMonthLabel,onClick:M},[i.createVNode(Fe,{class:"ab-calendar__nav-icon",name:"line-chevron-left",size:14})],8,Qw),i.createElementVNode("span",eC,i.toDisplayString(k.value),1),i.createElementVNode("button",{type:"button",class:"ab-calendar__nav","data-testid":"calendar-next","aria-label":N.nextMonthLabel,onClick:Z},[i.createVNode(Fe,{class:"ab-calendar__nav-icon",name:"line-chevron-right",size:14})],8,tC)]),i.createElementVNode("div",nC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,Q=>(i.openBlock(),i.createElementBlock("span",{key:Q,class:"ab-calendar__weekday"},i.toDisplayString(Q),1))),128))]),i.createElementVNode("div",rC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList($.value,Q=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Q.key},[Q.disabled&&N.disabledDateTooltip?(i.openBlock(),i.createBlock(ki,{key:0,id:`calendar-disabled-${Q.key}`,text:N.disabledDateTooltip,placement:"top"},{default:i.withCtx(()=>[i.createElementVNode("button",{type:"button",class:i.normalizeClass(["ab-calendar__day ab-calendar__day--disabled",{"ab-calendar__day--muted":!Q.inCurrentMonth}]),"data-testid":"calendar-day","data-disabled":"true","data-date":Q.key,"aria-label":Q.display,"aria-disabled":"true",disabled:""},i.toDisplayString(Q.label),11,iC)]),_:2},1032,["id","text"])):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:i.normalizeClass(["ab-calendar__day",{"ab-calendar__day--muted":!Q.inCurrentMonth,"ab-calendar__day--selected":Q.selected,"ab-calendar__day--disabled":Q.disabled}]),"data-testid":"calendar-day","data-disabled":Q.disabled?"true":"false","data-date":Q.key,"aria-label":Q.display,"aria-pressed":Q.selected,disabled:Q.disabled,onClick:ne=>J(Q)},i.toDisplayString(Q.label),11,aC))],64))),128))]),i.createElementVNode("div",sC,[i.createVNode(Bt,{variant:"ghost",color:"secondary",size:"default","custom-class":"ab-calendar__btn ab-calendar__btn--cancel","data-testid":"calendar-cancel",label:N.cancelLabel,onClick:P},null,8,["label"]),i.createVNode(Bt,{variant:"solid",color:"primary",size:"default","custom-class":"ab-calendar__btn ab-calendar__btn--apply","data-testid":"calendar-apply",label:N.applyLabel,disabled:!g.value,onClick:te},null,8,["label","disabled"])])],4))}}),[["__scopeId","data-v-5a5c1e69"]]),ka={chip__label:"_chip__label_1hm91_1",chip:"_chip_1hm91_1",chip__remove:"_chip__remove_1hm91_54","chip--clickable":"_chip--clickable_1hm91_58","chip--default":"_chip--default_1hm91_61",chip__icon:"_chip__icon_1hm91_71",chip__thumbnail:"_chip__thumbnail_1hm91_80",chip__thumbnailImage:"_chip__thumbnailImage_1hm91_89"},lC=["alt","src"],uC=i.defineComponent({__name:"Chip",props:{label:{},thumbnailUrl:{},thumbnailAlt:{},iconName:{},removable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},variant:{default:"default"}},emits:["remove","click"],setup(n,{emit:e}){const t=n,r=e,a=i.computed(()=>[ka.chip,ka[`chip--${t.variant}`],{[ka["chip--clickable"]]:t.clickable}]);function o(){t.clickable&&r("click")}function u(s){s.stopPropagation(),r("remove")}return(s,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.value),onClick:o},[s.thumbnailUrl||s.iconName?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(ka).chip__thumbnail)},[s.thumbnailUrl?(i.openBlock(),i.createElementBlock("img",{key:0,alt:s.thumbnailAlt||s.label,class:i.normalizeClass(i.unref(ka).chip__thumbnailImage),src:s.thumbnailUrl},null,10,lC)):s.iconName?(i.openBlock(),i.createBlock(i.unref(Fe),{key:1,class:i.normalizeClass(i.unref(ka).chip__icon),name:s.iconName,size:24},null,8,["class","name"])):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass(i.unref(ka).chip__label)},i.toDisplayString(s.label),3),s.removable?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:i.normalizeClass(i.unref(ka).chip__remove),onClick:u},[i.createVNode(i.unref(Fe),{name:"chip-close",size:4})],2)):i.createCommentVNode("",!0)],2))}}),ss={checkbox__label:"_checkbox__label_13m13_1",checkbox:"_checkbox_13m13_1",checkbox__input:"_checkbox__input_13m13_57",checkbox__box:"_checkbox__box_13m13_65",checkbox__disabled:"_checkbox__disabled_13m13_87",checkbox__checked:"_checkbox__checked_13m13_87",checkbox__error:"_checkbox__error_13m13_87"},cC=["for"],dC=["id","aria-invalid","checked","disabled","name","value"],fC=i.defineComponent({__name:"Checkbox",props:{id:{},name:{default:""},label:{default:""},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{default:""},modelValue:{type:Boolean,default:void 0}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,a=i.computed(()=>t.modelValue!==void 0?t.modelValue:t.checked),o=i.computed(()=>t.error&&!t.disabled);function u(s){if(t.disabled){s.preventDefault();return}const p=s.target.checked;r("update:modelValue",p),r("change",p)}return(s,d)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass([i.unref(ss).checkbox,{[i.unref(ss).checkbox__checked]:a.value,[i.unref(ss).checkbox__disabled]:s.disabled,[i.unref(ss).checkbox__error]:o.value}]),for:s.id},[i.createElementVNode("input",{id:s.id,type:"checkbox","aria-invalid":o.value||void 0,checked:a.value,class:i.normalizeClass(i.unref(ss).checkbox__input),disabled:s.disabled,name:s.name,value:s.value,onChange:u},null,42,dC),i.createElementVNode("span",{class:i.normalizeClass(i.unref(ss).checkbox__box)},[a.value?(i.openBlock(),i.createBlock(i.unref(Fe),{key:0,name:"line-check-netural",size:16})):i.createCommentVNode("",!0)],2),s.label?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(ss).checkbox__label)},i.toDisplayString(s.label),3)):i.createCommentVNode("",!0),i.renderSlot(s.$slots,"default")],10,cC))}}),C2={colorPreview:"_colorPreview_16zoj_36","colorPreview--default":"_colorPreview--default_16zoj_42","colorPreview--medium":"_colorPreview--medium_16zoj_46","colorPreview--small":"_colorPreview--small_16zoj_50",colorPreview__container:"_colorPreview__container_16zoj_55",colorPreview__swatch:"_colorPreview__swatch_16zoj_61"},pC=i.defineComponent({__name:"ColorPreview",props:{colors:{},size:{default:"default"}},setup(n){const e=n,t=i.computed(()=>[C2.colorPreview,C2[`colorPreview--${e.size}`]]);return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.value)},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(C2).colorPreview__container)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.colors,(o,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,class:i.normalizeClass(i.unref(C2).colorPreview__swatch),style:i.normalizeStyle({backgroundColor:o})},null,6))),128))],2)],2))}}),hC={key:0,class:"color-swatch__transparent"},S7=mt(i.defineComponent({__name:"ColorSwatch",props:{color:{},isTransparent:{type:Boolean}},emits:["click"],setup(n){const e=n,t=i.computed(()=>{if(e.color.startsWith("#")&&e.color.length===9)return!0;if(e.color.startsWith("rgba")){const r=e.color.match(/[\d.]+\)$/);if(r)return parseFloat(r[0])<1}return!1});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:"color-swatch",onClick:a[0]||(a[0]=o=>r.$emit("click"))},[r.isTransparent||t.value?(i.openBlock(),i.createElementBlock("div",hC,[a[1]||(a[1]=i.createElementVNode("div",{class:"color-swatch__checkerboard"},null,-1)),t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"color-swatch__color-overlay",style:i.normalizeStyle({background:r.color})},null,4)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",{key:1,class:"color-swatch__color",style:i.normalizeStyle({background:r.color})},null,4))]))}}),[["__scopeId","data-v-a04ae8bf"]]),mC={class:"color-picker"},gC={class:"color-picker__header-wrapper"},yC={class:"color-picker__header"},bC={class:"color-picker__title"},_C={key:0,class:"color-picker__tabs"},wC={class:"color-picker__content-wrapper"},CC={class:"color-picker__gradient-wrapper"},EC={class:"color-picker__color-area"},vC={class:"color-picker__hue-wrapper"},kC={class:"color-picker__opacity-wrapper"},AC={class:"color-picker__hex-input-wrapper"},SC={key:0,class:"color-picker__preset-row"},DC={key:1,class:"color-picker__preset-row"},xC={key:2,class:"color-picker__preset-row"},D7="Save current color",TC=mt(i.defineComponent({__name:"ColorPicker",props:{color:{default:"#666666"},title:{default:"Text Color"},showSaveButton:{type:Boolean,default:!1},presetColors:{default:()=>["transparent","#000000","#333333","#666666","#999999","#CCCCCC","#FFFFFF","#F43736","#FF9800","#FFC207","#FFEB3B","#CDDC39","#8BC44A","#4CAF51","#009688","#07BCD4","#05AAF4","#3F52B5"]},firstRowCount:{default:10},showOpacityInHex:{type:Boolean,default:!0}},emits:["color-change","close"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(0),o=i.ref(0),u=i.ref(.4),s=i.ref(1),d=i.ref("666666"),p=i.ref([]),f=i.ref(!1),m=i.ref(null),y=i.ref(null),C=i.ref(null),S=i.computed(()=>{const N=t.presetColors||[],ee=[],Q=11,ne=t.firstRowCount;if(N.length===0)return ee;ee.push(N.slice(0,ne));for(let ue=ne;ue<N.length;ue+=Q)ee.push(N.slice(ue,ue+Q));return ee}),v=i.computed(()=>{const N=a.value,ee=1-Math.abs(N*6%2-1);let Q=0,ne=0,ue=0;return N<1/6?(Q=1,ne=ee):N<2/6?(Q=ee,ne=1):N<3/6?(ne=1,ue=ee):N<4/6?(ne=ee,ue=1):N<5/6?(Q=ee,ue=1):(Q=1,ue=ee),`rgb(${Math.round(Q*255)}, ${Math.round(ne*255)}, ${Math.round(ue*255)})`}),_=i.computed(()=>{const N=a.value,ee=o.value,Q=u.value,ne=Q*ee,ue=ne*(1-Math.abs(N*6%2-1)),F=Q-ne;let K=0,O=0,V=0;return N<1/6?(K=ne,O=ue):N<2/6?(K=ue,O=ne):N<3/6?(O=ne,V=ue):N<4/6?(O=ue,V=ne):N<5/6?(K=ue,V=ne):(K=ne,V=ue),K=Math.round((K+F)*255),O=Math.round((O+F)*255),V=Math.round((V+F)*255),`rgb(${K}, ${O}, ${V})`}),g=i.computed(()=>{const N=_.value.match(/\d+/g);return N?s.value<1?`rgba(${N[0]}, ${N[1]}, ${N[2]}, ${s.value})`:`rgb(${N[0]}, ${N[1]}, ${N[2]})`:_.value});function b(){if(s.value===0){d.value="";return}const N=_.value.match(/\d+/g);if(!N)return;const ee=N.map(Q=>parseInt(Q).toString(16).padStart(2,"0")).join("").toUpperCase();if(t.showOpacityInHex){const Q=Math.round(s.value*255).toString(16).padStart(2,"0").toUpperCase();d.value=ee+Q}else d.value=ee}function E(N){s.value===0&&(s.value=1);const ee=ue=>{if(!m.value)return;const F=m.value.getBoundingClientRect(),K=Math.max(0,Math.min(1,(ue.clientX-F.left)/F.width)),O=Math.max(0,Math.min(1,(ue.clientY-F.top)/F.height));o.value=K,u.value=1-O};ee(N);const Q=ue=>{ee(ue)},ne=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne)}function w(N){s.value===0&&(s.value=1);const ee=ue=>{if(!y.value)return;const F=y.value.getBoundingClientRect(),K=Math.max(0,Math.min(1,(ue.clientY-F.top)/F.height));a.value=K};ee(N);const Q=ue=>{ee(ue)},ne=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne)}function k(N){const ee=ue=>{if(!C.value)return;const F=C.value.getBoundingClientRect(),K=Math.max(0,Math.min(1,(ue.clientX-F.left)/F.width));s.value=1-K};ee(N);const Q=ue=>{ee(ue)},ne=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne)}function A(N){const ee=N.startsWith("#")?N.slice(1):N,Q=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(ee),ne=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(ee),ue=ne||Q;if(!ue){const be=/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/.exec(N);if(be){const H=parseInt(be[1])/255,se=parseInt(be[2])/255,fe=parseInt(be[3])/255,Ce=be[4]?parseFloat(be[4]):1,Ee=Math.max(H,se,fe),Ne=Math.min(H,se,fe),Ue=Ee-Ne;let Ze=0;Ue!==0&&(Ee===H?Ze=((se-fe)/Ue+(se<fe?6:0))/6:Ee===se?Ze=((fe-H)/Ue+2)/6:Ze=((H-se)/Ue+4)/6);const ge=Ee===0?0:Ue/Ee,tt=Ee;a.value=Ze,o.value=ge,u.value=tt,s.value=Ce,b();return}return}const F=parseInt(ue[1],16)/255,K=parseInt(ue[2],16)/255,O=parseInt(ue[3],16)/255;ne&&ue[4]?s.value=parseInt(ue[4],16)/255:s.value=1;const V=Math.max(F,K,O),L=Math.min(F,K,O),z=V-L;let ie=0;z!==0&&(V===F?ie=((K-O)/z+(K<O?6:0))/6:V===K?ie=((O-F)/z+2)/6:ie=((F-K)/z+4)/6);const ae=V===0?0:z/V,q=V;a.value=ie,o.value=ae,u.value=q;const he=N.replace(/^#/,"");d.value=he.slice(0,6).toUpperCase()}function $(N){const ee=t.showOpacityInHex?8:6,Q=String(N).replace(/[^0-9A-Fa-f]/g,"").slice(0,ee).toUpperCase();d.value=Q,t.showOpacityInHex?(Q.length===6||Q.length===8)&&A(Q):Q.length===6&&A(Q)}function M(N){var ue;const ee=((ue=N.clipboardData)==null?void 0:ue.getData("text"))||"",Q=t.showOpacityInHex?8:6,ne=ee.replace(/^#/,"").replace(/[^0-9A-Fa-f]/g,"").slice(0,Q).toUpperCase();t.showOpacityInHex?ne.length===6||ne.length===8?(d.value=ne,A(ne),N.preventDefault()):ne.length>0&&(d.value=ne,N.preventDefault()):ne.length===6?(d.value=ne,A(ne),N.preventDefault()):ne.length>0&&(d.value=ne,N.preventDefault())}function Z(){const N=t.showOpacityInHex?8:6;d.value.length!==N&&b()}function J(N){s.value=N}function oe(){const N=_.value.match(/\d+/g);if(!N)return"ffffff";const ee=N.map(ne=>parseInt(ne).toString(16).padStart(2,"0")).join("").toUpperCase(),Q=Math.round(s.value*255).toString(16).padStart(2,"0").toUpperCase();return`#${ee}${Q}`}function U(){const N=oe();p.value.includes(N)||p.value.push(N)}function te(N){A(N)}function P(){d.value="",s.value=0,a.value=0,o.value=0,u.value=.4,r("color-change","transparent")}return i.watch([a,o,u,s],()=>{b(),f.value||r("color-change",g.value)}),i.watch(()=>t.color,N=>{N&&(f.value=!0,N.toLowerCase()==="transparent"?P():A(N),setTimeout(()=>{f.value=!1},0))},{immediate:!0}),(N,ee)=>(i.openBlock(),i.createElementBlock("div",mC,[i.createElementVNode("div",gC,[i.createElementVNode("div",yC,[i.createElementVNode("h3",bC,i.toDisplayString(N.title),1)]),N.$slots.tabs?(i.openBlock(),i.createElementBlock("div",_C,[i.renderSlot(N.$slots,"tabs",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",wC,[i.createElementVNode("div",CC,[i.createElementVNode("div",EC,[i.createElementVNode("div",{ref_key:"colorPickerRef",ref:m,class:"color-picker__color-canvas",style:i.normalizeStyle({background:`linear-gradient(to bottom, transparent, black),
|
|
64
|
+
<path d="M7.92788 14.3501C8.51431 14.3502 9.03935 14.7135 9.24624 15.2622L12.2238 23.1646C12.4661 23.8077 11.9901 24.4946 11.3029 24.4946C10.8798 24.4945 10.5042 24.2241 10.3703 23.8228L9.86343 22.3032H5.99819L5.41323 23.856C5.26818 24.2404 4.90025 24.4944 4.4894 24.4946C3.79582 24.4946 3.31803 23.799 3.56753 23.1519L6.61245 15.2524C6.82207 14.7087 7.34516 14.3501 7.92788 14.3501ZM14.466 14.3501C15.0263 14.3501 15.4806 14.8045 15.4806 15.3647V23.481C15.4804 24.0411 15.0261 24.4946 14.466 24.4946C13.906 24.4944 13.4525 24.0409 13.4523 23.481V15.3647C13.4523 14.8046 13.9058 14.3503 14.466 14.3501ZM6.63393 20.4448H9.22866L7.93569 16.9897L6.63393 20.4448Z" fill="white"/>`}};function Qb(n){if(!n)return{color:"currentColor"};const e=n.match(/^#([0-9a-fA-F]{8})$/);if(e){const r=e[1],a=parseInt(r.substring(6,8),16)/255;return{color:`#${r.substring(0,6)}`,opacity:a}}const t=n.match(/^rgba?\(([^)]+)\)$/);if(t){const r=t[1].split(",").map(a=>a.trim());if(r.length===4){const a=parseFloat(r[3]);return{color:`rgb(${r[0]}, ${r[1]}, ${r[2]})`,opacity:a}}else if(r.length===3)return{color:n}}return{color:n}}const e_=["fill","height","width"],t_=["xlink:href"],n_=["fill","height","viewBox","width","innerHTML"],r_=i.defineComponent({__name:"Icon",props:{name:{},size:{default:16},color:{},fillOpacity:{}},setup(n){const e=n,t=i.computed(()=>typeof e.size=="number"?`${e.size}px`:e.size),r=i.computed(()=>e.name in X6),a=i.computed(()=>r.value?X6[e.name]:null),o=i.computed(()=>Qb(e.color)),u=i.computed(()=>o.value.color||"currentColor"),s=i.computed(()=>{if(r.value)return e.fillOpacity!==void 0?typeof e.fillOpacity=="number"?e.fillOpacity:parseFloat(e.fillOpacity):o.value.opacity});return(d,p)=>{var f,m;return r.value?(i.openBlock(),i.createElementBlock("svg",{key:1,class:"icon icon-custom",fill:d.color||"currentColor",height:t.value,style:i.normalizeStyle({"--icon-color":u.value,...s.value!==void 0&&s.value!==null?{"--icon-fill-opacity":String(s.value)}:{}}),viewBox:(f=a.value)==null?void 0:f.viewBox,width:t.value,innerHTML:(m=a.value)==null?void 0:m.content},null,12,n_)):(i.openBlock(),i.createElementBlock("svg",{key:0,class:"icon",fill:u.value,height:t.value,style:i.normalizeStyle({color:u.value}),width:t.value},[i.createElementVNode("use",{"xlink:href":`#${d.name}`},null,8,t_)],12,e_))}}}),mt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,a]of e)t[r]=a;return t},Fe=mt(r_,[["__scopeId","data-v-66f113ea"]]),Cn={"in-info-box__heading":"_in-info-box__heading_1waqv_1","in-info-box__heading-details":"_in-info-box__heading-details_1waqv_8","in-info-box":"_in-info-box_1waqv_1","in-info-box__size-small":"_in-info-box__size-small_1waqv_55","in-info-box__size-medium":"_in-info-box__size-medium_1waqv_58","in-info-box__size-large":"_in-info-box__size-large_1waqv_61","in-info-box__information":"_in-info-box__information_1waqv_64","in-info-box__warning":"_in-info-box__warning_1waqv_67","in-info-box__smart":"_in-info-box__smart_1waqv_70","in-info-box__neutral":"_in-info-box__neutral_1waqv_73","in-info-box__alert":"_in-info-box__alert_1waqv_76","in-info-box__container":"_in-info-box__container_1waqv_79","in-info-box__container-full-width":"_in-info-box__container-full-width_1waqv_82","in-info-box__content":"_in-info-box__content_1waqv_85","in-info-box__background-default":"_in-info-box__background-default_1waqv_88","in-info-box__background-inverse":"_in-info-box__background-inverse_1waqv_91","in-info-box__heading-wrapper":"_in-info-box__heading-wrapper_1waqv_94","in-info-box__heading-wrapper-full-width":"_in-info-box__heading-wrapper-full-width_1waqv_97","in-info-box__heading-inverse":"_in-info-box__heading-inverse_1waqv_103","in-info-box__heading-details-inverse":"_in-info-box__heading-details-inverse_1waqv_110","in-info-box__divider":"_in-info-box__divider_1waqv_113","in-info-box__divider-default":"_in-info-box__divider-default_1waqv_119","in-info-box__divider-inverse":"_in-info-box__divider-inverse_1waqv_122"},i_=["innerHTML"],a_=["innerHTML"],J6=i.defineComponent({__name:"InInfoBox",props:{id:{},theme:{default:"light"},variant:{default:"information"},titleStatus:{type:Boolean,default:!0},titleText:{default:""},descriptionStatus:{type:Boolean,default:!0},descriptionText:{default:""},size:{default:"medium"},fullWidthContentStatus:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},setup(n){const e=n,t=i.computed(()=>e.theme==="dark"),r=i.computed(()=>`in-info-box__${e.variant}`),a=i.computed(()=>e.autoSize?"":`in-info-box__size-${e.size}`),o=i.computed(()=>t.value?"inverse":"default");return(u,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(Cn)["in-info-box"],t.value?i.unref(Cn)["in-info-box__background-inverse"]:i.unref(Cn)["in-info-box__background-default"],i.unref(Cn)[a.value],i.unref(Cn)[r.value]])},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(Cn)["in-info-box__container"],{[i.unref(Cn)["in-info-box__container-full-width"]]:u.fullWidthContentStatus}])},[u.titleStatus?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(Cn)["in-info-box__heading-wrapper"],{[i.unref(Cn)["in-info-box__heading-wrapper-full-width"]]:u.fullWidthContentStatus}])},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(Cn)["in-info-box__heading"],i.unref(Cn)[`in-info-box__heading-${o.value}`],{[i.unref(Cn)["in-info-box__heading-full-width"]]:u.fullWidthContentStatus}]),innerHTML:u.titleText},null,10,i_),u.titleStatus&&u.descriptionStatus?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(Cn)["in-info-box__heading-details"],i.unref(Cn)[`in-info-box__heading-details-${o.value}`]]),innerHTML:u.descriptionText},null,10,a_)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Cn)["in-info-box__content"])},[i.renderSlot(u.$slots,"default")],2)],2),u.$slots.footer?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass([i.unref(Cn)["in-info-box__divider"],i.unref(Cn)[`in-info-box__divider-${t.value?"inverse":"default"}`]])},[i.renderSlot(u.$slots,"footer")],2)):i.createCommentVNode("",!0)],2))}}),wa=Math.min,ar=Math.max,d2=Math.round,f2=Math.floor,Ci=n=>({x:n,y:n}),s_={left:"right",right:"left",bottom:"top",top:"bottom"},o_={start:"end",end:"start"};function u3(n,e,t){return ar(n,wa(e,t))}function Hs(n,e){return typeof n=="function"?n(e):n}function Ca(n){return n.split("-")[0]}function Ws(n){return n.split("-")[1]}function Q6(n){return n==="x"?"y":"x"}function c3(n){return n==="y"?"height":"width"}const l_=new Set(["top","bottom"]);function Ui(n){return l_.has(Ca(n))?"y":"x"}function d3(n){return Q6(Ui(n))}function u_(n,e,t){t===void 0&&(t=!1);const r=Ws(n),a=d3(n),o=c3(a);let u=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(u=p2(u)),[u,p2(u)]}function c_(n){const e=p2(n);return[f3(n),e,f3(e)]}function f3(n){return n.replace(/start|end/g,e=>o_[e])}const e7=["left","right"],t7=["right","left"],d_=["top","bottom"],f_=["bottom","top"];function p_(n,e,t){switch(n){case"top":case"bottom":return t?e?t7:e7:e?e7:t7;case"left":case"right":return e?d_:f_;default:return[]}}function h_(n,e,t,r){const a=Ws(n);let o=p_(Ca(n),t==="start",r);return a&&(o=o.map(u=>u+"-"+a),e&&(o=o.concat(o.map(f3)))),o}function p2(n){return n.replace(/left|right|bottom|top/g,e=>s_[e])}function m_(n){return{top:0,right:0,bottom:0,left:0,...n}}function n7(n){return typeof n!="number"?m_(n):{top:n,right:n,bottom:n,left:n}}function h2(n){const{x:e,y:t,width:r,height:a}=n;return{width:r,height:a,top:t,left:e,right:e+r,bottom:t+a,x:e,y:t}}function r7(n,e,t){let{reference:r,floating:a}=n;const o=Ui(e),u=d3(e),s=c3(u),d=Ca(e),p=o==="y",f=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,y=r[s]/2-a[s]/2;let C;switch(d){case"top":C={x:f,y:r.y-a.height};break;case"bottom":C={x:f,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:m};break;case"left":C={x:r.x-a.width,y:m};break;default:C={x:r.x,y:r.y}}switch(Ws(e)){case"start":C[u]-=y*(t&&p?-1:1);break;case"end":C[u]+=y*(t&&p?-1:1);break}return C}const g_=async(n,e,t)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:u}=t,s=o.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(e));let p=await u.getElementRects({reference:n,floating:e,strategy:a}),{x:f,y:m}=r7(p,r,d),y=r,C={},S=0;for(let v=0;v<s.length;v++){const{name:_,fn:g}=s[v],{x:b,y:E,data:w,reset:k}=await g({x:f,y:m,initialPlacement:r,placement:y,strategy:a,middlewareData:C,rects:p,platform:u,elements:{reference:n,floating:e}});f=b??f,m=E??m,C={...C,[_]:{...C[_],...w}},k&&S<=50&&(S++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(p=k.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:a}):k.rects),{x:f,y:m}=r7(p,y,d)),v=-1)}return{x:f,y:m,placement:y,strategy:a,middlewareData:C}};async function p3(n,e){var t;e===void 0&&(e={});const{x:r,y:a,platform:o,rects:u,elements:s,strategy:d}=n,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:y=!1,padding:C=0}=Hs(e,n),S=n7(C),_=s[y?m==="floating"?"reference":"floating":m],g=h2(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(_)))==null||t?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:p,rootBoundary:f,strategy:d})),b=m==="floating"?{x:r,y:a,width:u.floating.width,height:u.floating.height}:u.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),w=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},k=h2(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:E,strategy:d}):b);return{top:(g.top-k.top+S.top)/w.y,bottom:(k.bottom-g.bottom+S.bottom)/w.y,left:(g.left-k.left+S.left)/w.x,right:(k.right-g.right+S.right)/w.x}}const y_=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:a,rects:o,platform:u,elements:s,middlewareData:d}=e,{element:p,padding:f=0}=Hs(n,e)||{};if(p==null)return{};const m=n7(f),y={x:t,y:r},C=d3(a),S=c3(C),v=await u.getDimensions(p),_=C==="y",g=_?"top":"left",b=_?"bottom":"right",E=_?"clientHeight":"clientWidth",w=o.reference[S]+o.reference[C]-y[C]-o.floating[S],k=y[C]-o.reference[C],A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let $=A?A[E]:0;(!$||!await(u.isElement==null?void 0:u.isElement(A)))&&($=s.floating[E]||o.floating[S]);const M=w/2-k/2,Z=$/2-v[S]/2-1,J=wa(m[g],Z),oe=wa(m[b],Z),U=J,te=$-v[S]-oe,P=$/2-v[S]/2+M,N=u3(U,P,te),ee=!d.arrow&&Ws(a)!=null&&P!==N&&o.reference[S]/2-(P<U?J:oe)-v[S]/2<0,Q=ee?P<U?P-U:P-te:0;return{[C]:y[C]+Q,data:{[C]:N,centerOffset:P-N-Q,...ee&&{alignmentOffset:Q}},reset:ee}}}),b_=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:a,middlewareData:o,rects:u,initialPlacement:s,platform:d,elements:p}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,..._}=Hs(n,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const g=Ca(a),b=Ui(s),E=Ca(s)===s,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),k=y||(E||!v?[p2(s)]:c_(s)),A=S!=="none";!y&&A&&k.push(...h_(s,v,S,w));const $=[s,...k],M=await p3(e,_),Z=[];let J=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&Z.push(M[g]),m){const P=u_(a,u,w);Z.push(M[P[0]],M[P[1]])}if(J=[...J,{placement:a,overflows:Z}],!Z.every(P=>P<=0)){var oe,U;const P=(((oe=o.flip)==null?void 0:oe.index)||0)+1,N=$[P];if(N&&(!(m==="alignment"?b!==Ui(N):!1)||J.every(ne=>Ui(ne.placement)===b?ne.overflows[0]>0:!0)))return{data:{index:P,overflows:J},reset:{placement:N}};let ee=(U=J.filter(Q=>Q.overflows[0]<=0).sort((Q,ne)=>Q.overflows[1]-ne.overflows[1])[0])==null?void 0:U.placement;if(!ee)switch(C){case"bestFit":{var te;const Q=(te=J.filter(ne=>{if(A){const ue=Ui(ne.placement);return ue===b||ue==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(ue=>ue>0).reduce((ue,F)=>ue+F,0)]).sort((ne,ue)=>ne[1]-ue[1])[0])==null?void 0:te[0];Q&&(ee=Q);break}case"initialPlacement":ee=s;break}if(a!==ee)return{reset:{placement:ee}}}return{}}}},__=new Set(["left","top"]);async function w_(n,e){const{placement:t,platform:r,elements:a}=n,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),u=Ca(t),s=Ws(t),d=Ui(t)==="y",p=__.has(u)?-1:1,f=o&&d?-1:1,m=Hs(e,n);let{mainAxis:y,crossAxis:C,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof S=="number"&&(C=s==="end"?S*-1:S),d?{x:C*f,y:y*p}:{x:y*p,y:C*f}}const C_=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,r;const{x:a,y:o,placement:u,middlewareData:s}=e,d=await w_(e,n);return u===((t=s.offset)==null?void 0:t.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:o+d.y,data:{...d,placement:u}}}}},E_=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:a}=e,{mainAxis:o=!0,crossAxis:u=!1,limiter:s={fn:_=>{let{x:g,y:b}=_;return{x:g,y:b}}},...d}=Hs(n,e),p={x:t,y:r},f=await p3(e,d),m=Ui(Ca(a)),y=Q6(m);let C=p[y],S=p[m];if(o){const _=y==="y"?"top":"left",g=y==="y"?"bottom":"right",b=C+f[_],E=C-f[g];C=u3(b,C,E)}if(u){const _=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=S+f[_],E=S-f[g];S=u3(b,S,E)}const v=s.fn({...e,[y]:C,[m]:S});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[y]:o,[m]:u}}}}}},v_=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){var t,r;const{placement:a,rects:o,platform:u,elements:s}=e,{apply:d=()=>{},...p}=Hs(n,e),f=await p3(e,p),m=Ca(a),y=Ws(a),C=Ui(a)==="y",{width:S,height:v}=o.floating;let _,g;m==="top"||m==="bottom"?(_=m,g=y===(await(u.isRTL==null?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(g=m,_=y==="end"?"top":"bottom");const b=v-f.top-f.bottom,E=S-f.left-f.right,w=wa(v-f[_],b),k=wa(S-f[g],E),A=!e.middlewareData.shift;let $=w,M=k;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(M=E),(r=e.middlewareData.shift)!=null&&r.enabled.y&&($=b),A&&!y){const J=ar(f.left,0),oe=ar(f.right,0),U=ar(f.top,0),te=ar(f.bottom,0);C?M=S-2*(J!==0||oe!==0?J+oe:ar(f.left,f.right)):$=v-2*(U!==0||te!==0?U+te:ar(f.top,f.bottom))}await d({...e,availableWidth:M,availableHeight:$});const Z=await u.getDimensions(s.floating);return S!==Z.width||v!==Z.height?{reset:{rects:!0}}:{}}}};function m2(){return typeof window<"u"}function is(n){return h3(n)?(n.nodeName||"").toLowerCase():"#document"}function sr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Ei(n){var e;return(e=(h3(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function h3(n){return m2()?n instanceof Node||n instanceof sr(n).Node:!1}function Wr(n){return m2()?n instanceof Element||n instanceof sr(n).Element:!1}function vi(n){return m2()?n instanceof HTMLElement||n instanceof sr(n).HTMLElement:!1}function i7(n){return!m2()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof sr(n).ShadowRoot}const k_=new Set(["inline","contents"]);function Jo(n){const{overflow:e,overflowX:t,overflowY:r,display:a}=Gr(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!k_.has(a)}const A_=new Set(["table","td","th"]);function S_(n){return A_.has(is(n))}const D_=[":popover-open",":modal"];function g2(n){return D_.some(e=>{try{return n.matches(e)}catch{return!1}})}const x_=["transform","translate","scale","rotate","perspective"],T_=["transform","translate","scale","rotate","perspective","filter"],$_=["paint","layout","strict","content"];function m3(n){const e=g3(),t=Wr(n)?Gr(n):n;return x_.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||T_.some(r=>(t.willChange||"").includes(r))||$_.some(r=>(t.contain||"").includes(r))}function B_(n){let e=Ea(n);for(;vi(e)&&!Gs(e);){if(m3(e))return e;if(g2(e))return null;e=Ea(e)}return null}function g3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const R_=new Set(["html","body","#document"]);function Gs(n){return R_.has(is(n))}function Gr(n){return sr(n).getComputedStyle(n)}function y2(n){return Wr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ea(n){if(is(n)==="html")return n;const e=n.assignedSlot||n.parentNode||i7(n)&&n.host||Ei(n);return i7(e)?e.host:e}function a7(n){const e=Ea(n);return Gs(e)?n.ownerDocument?n.ownerDocument.body:n.body:vi(e)&&Jo(e)?e:a7(e)}function Qo(n,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const a=a7(n),o=a===((r=n.ownerDocument)==null?void 0:r.body),u=sr(a);if(o){const s=y3(u);return e.concat(u,u.visualViewport||[],Jo(a)?a:[],s&&t?Qo(s):[])}return e.concat(a,Qo(a,[],t))}function y3(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function s7(n){const e=Gr(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=vi(n),o=a?n.offsetWidth:t,u=a?n.offsetHeight:r,s=d2(t)!==o||d2(r)!==u;return s&&(t=o,r=u),{width:t,height:r,$:s}}function b3(n){return Wr(n)?n:n.contextElement}function Zs(n){const e=b3(n);if(!vi(e))return Ci(1);const t=e.getBoundingClientRect(),{width:r,height:a,$:o}=s7(e);let u=(o?d2(t.width):t.width)/r,s=(o?d2(t.height):t.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!s||!Number.isFinite(s))&&(s=1),{x:u,y:s}}const L_=Ci(0);function o7(n){const e=sr(n);return!g3()||!e.visualViewport?L_:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function F_(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==sr(n)?!1:e}function as(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const a=n.getBoundingClientRect(),o=b3(n);let u=Ci(1);e&&(r?Wr(r)&&(u=Zs(r)):u=Zs(n));const s=F_(o,t,r)?o7(o):Ci(0);let d=(a.left+s.x)/u.x,p=(a.top+s.y)/u.y,f=a.width/u.x,m=a.height/u.y;if(o){const y=sr(o),C=r&&Wr(r)?sr(r):r;let S=y,v=y3(S);for(;v&&r&&C!==S;){const _=Zs(v),g=v.getBoundingClientRect(),b=Gr(v),E=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*_.x,w=g.top+(v.clientTop+parseFloat(b.paddingTop))*_.y;d*=_.x,p*=_.y,f*=_.x,m*=_.y,d+=E,p+=w,S=sr(v),v=y3(S)}}return h2({width:f,height:m,x:d,y:p})}function b2(n,e){const t=y2(n).scrollLeft;return e?e.left+t:as(Ei(n)).left+t}function l7(n,e){const t=n.getBoundingClientRect(),r=t.left+e.scrollLeft-b2(n,t),a=t.top+e.scrollTop;return{x:r,y:a}}function O_(n){let{elements:e,rect:t,offsetParent:r,strategy:a}=n;const o=a==="fixed",u=Ei(r),s=e?g2(e.floating):!1;if(r===u||s&&o)return t;let d={scrollLeft:0,scrollTop:0},p=Ci(1);const f=Ci(0),m=vi(r);if((m||!m&&!o)&&((is(r)!=="body"||Jo(u))&&(d=y2(r)),vi(r))){const C=as(r);p=Zs(r),f.x=C.x+r.clientLeft,f.y=C.y+r.clientTop}const y=u&&!m&&!o?l7(u,d):Ci(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-d.scrollLeft*p.x+f.x+y.x,y:t.y*p.y-d.scrollTop*p.y+f.y+y.y}}function N_(n){return Array.from(n.getClientRects())}function I_(n){const e=Ei(n),t=y2(n),r=n.ownerDocument.body,a=ar(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=ar(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let u=-t.scrollLeft+b2(n);const s=-t.scrollTop;return Gr(r).direction==="rtl"&&(u+=ar(e.clientWidth,r.clientWidth)-a),{width:a,height:o,x:u,y:s}}const u7=25;function P_(n,e){const t=sr(n),r=Ei(n),a=t.visualViewport;let o=r.clientWidth,u=r.clientHeight,s=0,d=0;if(a){o=a.width,u=a.height;const f=g3();(!f||f&&e==="fixed")&&(s=a.offsetLeft,d=a.offsetTop)}const p=b2(r);if(p<=0){const f=r.ownerDocument,m=f.body,y=getComputedStyle(m),C=f.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,S=Math.abs(r.clientWidth-m.clientWidth-C);S<=u7&&(o-=S)}else p<=u7&&(o+=p);return{width:o,height:u,x:s,y:d}}const M_=new Set(["absolute","fixed"]);function V_(n,e){const t=as(n,!0,e==="fixed"),r=t.top+n.clientTop,a=t.left+n.clientLeft,o=vi(n)?Zs(n):Ci(1),u=n.clientWidth*o.x,s=n.clientHeight*o.y,d=a*o.x,p=r*o.y;return{width:u,height:s,x:d,y:p}}function c7(n,e,t){let r;if(e==="viewport")r=P_(n,t);else if(e==="document")r=I_(Ei(n));else if(Wr(e))r=V_(e,t);else{const a=o7(n);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return h2(r)}function d7(n,e){const t=Ea(n);return t===e||!Wr(t)||Gs(t)?!1:Gr(t).position==="fixed"||d7(t,e)}function q_(n,e){const t=e.get(n);if(t)return t;let r=Qo(n,[],!1).filter(s=>Wr(s)&&is(s)!=="body"),a=null;const o=Gr(n).position==="fixed";let u=o?Ea(n):n;for(;Wr(u)&&!Gs(u);){const s=Gr(u),d=m3(u);!d&&s.position==="fixed"&&(a=null),(o?!d&&!a:!d&&s.position==="static"&&!!a&&M_.has(a.position)||Jo(u)&&!d&&d7(n,u))?r=r.filter(f=>f!==u):a=s,u=Ea(u)}return e.set(n,r),r}function z_(n){let{element:e,boundary:t,rootBoundary:r,strategy:a}=n;const u=[...t==="clippingAncestors"?g2(e)?[]:q_(e,this._c):[].concat(t),r],s=u[0],d=u.reduce((p,f)=>{const m=c7(e,f,a);return p.top=ar(m.top,p.top),p.right=wa(m.right,p.right),p.bottom=wa(m.bottom,p.bottom),p.left=ar(m.left,p.left),p},c7(e,s,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function j_(n){const{width:e,height:t}=s7(n);return{width:e,height:t}}function U_(n,e,t){const r=vi(e),a=Ei(e),o=t==="fixed",u=as(n,!0,o,e);let s={scrollLeft:0,scrollTop:0};const d=Ci(0);function p(){d.x=b2(a)}if(r||!r&&!o)if((is(e)!=="body"||Jo(a))&&(s=y2(e)),r){const C=as(e,!0,o,e);d.x=C.x+e.clientLeft,d.y=C.y+e.clientTop}else a&&p();o&&!r&&a&&p();const f=a&&!r&&!o?l7(a,s):Ci(0),m=u.left+s.scrollLeft-d.x-f.x,y=u.top+s.scrollTop-d.y-f.y;return{x:m,y,width:u.width,height:u.height}}function _3(n){return Gr(n).position==="static"}function f7(n,e){if(!vi(n)||Gr(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return Ei(n)===t&&(t=t.ownerDocument.body),t}function p7(n,e){const t=sr(n);if(g2(n))return t;if(!vi(n)){let a=Ea(n);for(;a&&!Gs(a);){if(Wr(a)&&!_3(a))return a;a=Ea(a)}return t}let r=f7(n,e);for(;r&&S_(r)&&_3(r);)r=f7(r,e);return r&&Gs(r)&&_3(r)&&!m3(r)?t:r||B_(n)||t}const H_=async function(n){const e=this.getOffsetParent||p7,t=this.getDimensions,r=await t(n.floating);return{reference:U_(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W_(n){return Gr(n).direction==="rtl"}const G_={convertOffsetParentRelativeRectToViewportRelativeRect:O_,getDocumentElement:Ei,getClippingRect:z_,getOffsetParent:p7,getElementRects:H_,getClientRects:N_,getDimensions:j_,getScale:Zs,isElement:Wr,isRTL:W_};function h7(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function Z_(n,e){let t=null,r;const a=Ei(n);function o(){var s;clearTimeout(r),(s=t)==null||s.disconnect(),t=null}function u(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),o();const p=n.getBoundingClientRect(),{left:f,top:m,width:y,height:C}=p;if(s||e(),!y||!C)return;const S=f2(m),v=f2(a.clientWidth-(f+y)),_=f2(a.clientHeight-(m+C)),g=f2(f),E={rootMargin:-S+"px "+-v+"px "+-_+"px "+-g+"px",threshold:ar(0,wa(1,d))||1};let w=!0;function k(A){const $=A[0].intersectionRatio;if($!==d){if(!w)return u();$?u(!1,$):r=setTimeout(()=>{u(!1,1e-7)},1e3)}$===1&&!h7(p,n.getBoundingClientRect())&&u(),w=!1}try{t=new IntersectionObserver(k,{...E,root:a.ownerDocument})}catch{t=new IntersectionObserver(k,E)}t.observe(n)}return u(!0),o}function e1(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=b3(n),f=a||o?[...p?Qo(p):[],...Qo(e)]:[];f.forEach(g=>{a&&g.addEventListener("scroll",t,{passive:!0}),o&&g.addEventListener("resize",t)});const m=p&&s?Z_(p,t):null;let y=-1,C=null;u&&(C=new ResizeObserver(g=>{let[b]=g;b&&b.target===p&&C&&(C.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var E;(E=C)==null||E.observe(e)})),t()}),p&&!d&&C.observe(p),C.observe(e));let S,v=d?as(n):null;d&&_();function _(){const g=as(n);v&&!h7(v,g)&&t(),v=g,S=requestAnimationFrame(_)}return t(),()=>{var g;f.forEach(b=>{a&&b.removeEventListener("scroll",t),o&&b.removeEventListener("resize",t)}),m==null||m(),(g=C)==null||g.disconnect(),C=null,d&&cancelAnimationFrame(S)}}const t1=C_,n1=E_,r1=b_,Y_=v_,K_=y_,X_=(n,e,t)=>{const r=new Map,a={platform:G_,...t},o={...a.platform,_c:r};return g_(n,e,{...a,platform:o})};function J_(n){return n!=null&&typeof n=="object"&&"$el"in n}function w3(n){if(J_(n)){const e=n.$el;return h3(e)&&is(e)==="#comment"?null:e}return n}function Ys(n){return typeof n=="function"?n():i.unref(n)}function m7(n){return{name:"arrow",options:n,fn(e){const t=w3(Ys(n.element));return t==null?{}:K_({element:t,padding:n.padding}).fn(e)}}}function g7(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function y7(n,e){const t=g7(n);return Math.round(e*t)/t}function i1(n,e,t){t===void 0&&(t={});const r=t.whileElementsMounted,a=i.computed(()=>{var $;return($=Ys(t.open))!=null?$:!0}),o=i.computed(()=>Ys(t.middleware)),u=i.computed(()=>{var $;return($=Ys(t.placement))!=null?$:"bottom"}),s=i.computed(()=>{var $;return($=Ys(t.strategy))!=null?$:"absolute"}),d=i.computed(()=>{var $;return($=Ys(t.transform))!=null?$:!0}),p=i.computed(()=>w3(n.value)),f=i.computed(()=>w3(e.value)),m=i.ref(0),y=i.ref(0),C=i.ref(s.value),S=i.ref(u.value),v=i.shallowRef({}),_=i.ref(!1),g=i.computed(()=>{const $={position:C.value,left:"0",top:"0"};if(!f.value)return $;const M=y7(f.value,m.value),Z=y7(f.value,y.value);return d.value?{...$,transform:"translate("+M+"px, "+Z+"px)",...g7(f.value)>=1.5&&{willChange:"transform"}}:{position:C.value,left:M+"px",top:Z+"px"}});let b;function E(){if(p.value==null||f.value==null)return;const $=a.value;X_(p.value,f.value,{middleware:o.value,placement:u.value,strategy:s.value}).then(M=>{m.value=M.x,y.value=M.y,C.value=M.strategy,S.value=M.placement,v.value=M.middlewareData,_.value=$!==!1})}function w(){typeof b=="function"&&(b(),b=void 0)}function k(){if(w(),r===void 0){E();return}if(p.value!=null&&f.value!=null){b=r(p.value,f.value,E);return}}function A(){a.value||(_.value=!1)}return i.watch([o,u,s,a],E,{flush:"sync"}),i.watch([p,f],k,{flush:"sync"}),i.watch(a,A,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(w),{x:i.shallowReadonly(m),y:i.shallowReadonly(y),strategy:i.shallowReadonly(C),placement:i.shallowReadonly(S),middlewareData:i.shallowReadonly(v),isPositioned:i.shallowReadonly(_),floatingStyles:g,update:E}}let b7=!1;const _7=()=>{if(b7)return;b7=!0;let n;Object.defineProperty(window,"wasTooltipShown",{get(){return clearTimeout(window.wasTooltipTimeout),window.wasTooltipTimeout=setTimeout(()=>{n=!1},2e3),n},set(e){n=e,clearTimeout(window.wasTooltipTimeout),e&&(window.wasTooltipTimeout=setTimeout(()=>{n=!1},2e3))},configurable:!0})};function w7(n=""){return typeof n=="string"?n.replace(/<\/style>/gi,"").replace(/<(.*?) on(.*?)=['"](.*?)>/gi,"").replace(/(<meta |<style|<\/*script)(.*?)>/gi,"").replace(/(<([^>]+)>)/ig,"").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi,""):n}const Ks={bubble:"_bubble_1vvyq_1",trigger:"_trigger_1vvyq_43",trigger__icon:"_trigger__icon_1vvyq_51",arrow:"_arrow_1vvyq_57",bubble_slotted:"_bubble_slotted_1vvyq_78",bubble__content:"_bubble__content_1vvyq_81"},Q_=["id"],ew=["innerHTML"],tw=1e3,C7=20,C3=8,Xs=i.defineComponent({inheritAttrs:!1,__name:"OnsiteTooltip",props:{id:{},text:{default:""},placement:{},arrowPlacement:{},status:{type:Boolean},preventXss:{type:Boolean,default:!0},iconName:{},hideDelay:{},showDelay:{}},setup(n){const e={top:"bottom",right:"left",bottom:"top",left:"right"},t=i.ref(null),r=i.ref(null),a=i.ref(!1);typeof window<"u"&&window.wasTooltipShown===void 0&&(window.wasTooltipShown=!1);const o=n,u=i.ref(null),s=i.ref(null),d=i.ref(null),p=i.ref(!1),f=i.computed(()=>o.preventXss?w7(o.text):o.text),{floatingStyles:m,update:y,middlewareData:C,placement:S}=i1(s,u,{placement:i.computed(()=>o.placement||"bottom"),strategy:"fixed",whileElementsMounted:e1,middleware:[t1(10),r1(),n1(),m7({element:d,padding:C3})]}),v=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const te=o.showDelay??tw;window.wasTooltipShown||te<=0?p.value=!0:t.value=setTimeout(()=>{if(!a.value){t.value=null;return}p.value=!0,window.wasTooltipShown=!0,t.value=null},te)},_=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const te=o.hideDelay??0;te>0?r.value=setTimeout(()=>{a.value&&(p.value=!1),r.value=null},te):p.value=!1},g=()=>{v()},b=()=>{_()},E=te=>{var P,N;return te instanceof Node?!!((P=s.value)!=null&&P.contains(te))||!!((N=u.value)!=null&&N.contains(te)):!1},w=()=>{v()},k=te=>{E(te.relatedTarget)||_()},A=te=>{te.key==="Escape"&&_()},$=()=>{a.value&&s.value&&u.value&&y()};i.watch(()=>o.placement,()=>{a.value&&s.value&&u.value&&y()}),i.onBeforeMount(_7),i.onMounted(()=>{a.value=!0,i.nextTick(()=>{a.value&&s.value&&y()}),typeof window<"u"&&window.addEventListener("resize",$)}),i.onBeforeUnmount(()=>{a.value=!1,typeof window<"u"&&window.removeEventListener("resize",$),t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null),p.value=!1,u.value=null,s.value=null,d.value=null});const M=i.computed(()=>o.status||p.value),Z=i.computed(()=>({...m.value,display:M.value?"inline-block":"none"})),J=i.computed(()=>{const[te]=S.value.split("-");return{[e[te]]:"-4px"}}),oe=i.computed(()=>{if(!o.arrowPlacement)return{};const[te]=S.value.split("-"),P=te==="top"||te==="bottom"?"left":"top";switch(o.arrowPlacement){case"start":return{[P]:`${C3}px`};case"center":return{[P]:`calc(50% - ${C7/2}px)`};case"end":return{[P]:`calc(100% - ${C7+C3}px)`};default:return{}}}),U=i.computed(()=>{var te,P;return d.value?{left:((te=C.value.arrow)==null?void 0:te.x)!=null?`${C.value.arrow.x}px`:"",top:((P=C.value.arrow)==null?void 0:P.y)!=null?`${C.value.arrow.y}px`:"",right:"",bottom:"",...J.value,...oe.value}:{}});return(te,P)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:te.id,ref_key:"triggerRef",ref:s,class:i.normalizeClass(i.unref(Ks).trigger),onFocusin:w,onFocusout:k,onKeydown:A,onMouseenter:g,onMouseleave:b},[te.iconName?(i.openBlock(),i.createBlock(i.unref(Fe),{key:0,color:i.unref(Ks).trigger__icon,name:te.iconName},null,8,["color","name"])):i.renderSlot(te.$slots,"default",{key:1})],42,Q_),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{ref_key:"tooltipRef",ref:u,class:i.normalizeClass(["qa-tooltip ab-onsite-tooltip",[i.unref(Ks).bubble,te.$slots.contentSlot?i.unref(Ks).bubble_slotted:null]]),style:i.normalizeStyle(Z.value),onFocusin:w,onFocusout:k,onKeydown:A,onMouseenter:g,onMouseleave:b},[te.$slots.contentSlot?i.renderSlot(te.$slots,"contentSlot",{key:0}):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(Ks).bubble__content)},[i.createElementVNode("div",{innerHTML:f.value},null,8,ew)],2)),te.$slots.contentSlot?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"floatingArrowRef",ref:d,class:i.normalizeClass(i.unref(Ks).arrow),style:i.normalizeStyle(U.value)},null,6))],38)]))],64))}}),Js={"line-shapes-add":{d:"M9.14258 13C10.1683 13 11 13.8318 11 14.8574V19.1426C11 20.1683 10.1683 21 9.14258 21H4.85742C3.83175 21 3 20.1683 3 19.1426V14.8574C3 13.8318 3.83175 13 4.85742 13H9.14258ZM17 13C17.5523 13 18 13.4477 18 14V16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H18V20C18 20.5523 17.5523 21 17 21C16.4477 21 16 20.5523 16 20V18H14C13.4477 18 13 17.5523 13 17C13 16.4477 13.4477 16 14 16H16V14C16 13.4477 16.4477 13 17 13ZM5 19H9V15H5V19ZM12 3C14.2091 3 16 4.79086 16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3ZM12 5C10.8954 5 10 5.89543 10 7C10 8.10457 10.8954 9 12 9C13.1046 9 14 8.10457 14 7C14 5.89543 13.1046 5 12 5Z"},"line-show-on":{evenOdd:!0,d:"M12 6C7.40438 6 4.42985 9.14257 3.26827 11.0483C2.91058 11.6352 2.91058 12.3648 3.26827 12.9517C4.42985 14.8574 7.40438 18 12 18C16.5956 18 19.5702 14.8574 20.7317 12.9517C21.0894 12.3648 21.0894 11.6352 20.7317 11.0483C19.5702 9.14257 16.5956 6 12 6ZM12 16C8.46046 16 6.05644 13.5954 5.05419 12C6.05644 10.4046 8.46046 8 12 8C15.5395 8 17.9436 10.4046 18.9458 12C17.9436 13.5954 15.5395 16 12 16ZM12.0003 14C13.1197 14 14.0272 13.1046 14.0272 12C14.0272 10.8954 13.1197 10 12.0003 10C10.8808 10 9.97337 10.8954 9.97337 12C9.97337 13.1046 10.8808 14 12.0003 14Z"},"line-show-off":{evenOdd:!0,d:"M5.29246 18.7075C4.90251 18.3176 4.90251 17.6854 5.29246 17.2954L6.37643 16.2115C4.89724 15.1839 3.85303 13.9111 3.26827 12.9517C2.91058 12.3648 2.91058 11.6352 3.26827 11.0483C4.42985 9.14257 7.40438 6 12 6C13.4281 6 14.6996 6.30347 15.8089 6.77898L17.2954 5.29246C17.6854 4.90251 18.3176 4.90251 18.7075 5.29246C19.0975 5.6824 19.0975 6.31463 18.7075 6.70457L6.70457 18.7075C6.31463 19.0975 5.6824 19.0975 5.29246 18.7075ZM14.2486 8.33931C13.5607 8.12595 12.8101 8 12 8C8.46046 8 6.05644 10.4046 5.05419 12C5.5903 12.8534 6.52748 13.9383 7.825 14.7629L10.0481 12.5398C9.99939 12.3681 9.97337 12.187 9.97337 12C9.97337 10.8954 10.8808 10 12.0003 10C12.1804 10 12.355 10.0232 12.5212 10.0667L14.2486 8.33931ZM12 18C11.4319 18 10.8886 17.952 10.3704 17.8642L12.2382 15.9964C15.6475 15.8917 17.9662 13.5594 18.9458 12C18.6572 11.5405 18.2523 11.014 17.7375 10.4971L19.1596 9.07492C19.8501 9.76486 20.3759 10.4646 20.7317 11.0483C21.0894 11.6352 21.0894 12.3648 20.7317 12.9517C19.5702 14.8574 16.5956 18 12 18Z"},"line-info-circle":{evenOdd:!0,d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12ZM12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7Z"},"filled-dropdown-up":{evenOdd:!0,d:"M8.04381 15H8.04582H15.9552H16C16.5523 15 17 14.5523 17 14L16.9998 13.9778C17.0057 13.7029 16.9037 13.4261 16.694 13.2164L12.7836 9.30602C12.5682 9.09061 12.2821 8.98892 12 9.00096C11.7179 8.98892 11.4318 9.09061 11.2164 9.30602L7.30602 13.2164C7.09626 13.4261 6.99434 13.7029 7.00024 13.9778L7 14C7 14.5523 7.44772 15 8 15H8.04381Z"}};function E7(n){return n&&n in Js?Js[n]:void 0}const nw=["id"],rw={class:"ab-onsite-activity-card__content"},iw={key:0,"aria-hidden":"true",class:"icon ab-onsite-activity-card__icon",fill:"currentColor",height:"24px",viewBox:"0 0 24 24",width:"24px"},aw=["clip-rule","d","fill-rule"],sw={class:"ab-onsite-activity-card__main"},ow={class:"ab-onsite-activity-card__heading"},lw={class:"ab-onsite-activity-card__title"},uw={class:"ab-onsite-activity-card__title-strong"},cw=["aria-label"],dw={key:0,"aria-hidden":"true",class:"icon",fill:"currentColor",height:"24px",viewBox:"0 0 24 24",width:"24px"},fw=["clip-rule","d","fill-rule"],pw={key:0,class:"ab-onsite-activity-card__summary"},hw={class:"ab-onsite-activity-card__actions"},mw={class:"ab-onsite-activity-card__footer"},gw=["id"],yw=300,bw=mt(i.defineComponent({__name:"OnsiteActivityCard",props:{id:{},icon:{default:void 0},title:{},summary:{default:""},description:{default:""},state:{default:"default"},showDetails:{type:Boolean,default:!1},showOnSiteDisabled:{type:Boolean,default:!1},indicator:{default:void 0},labels:{}},emits:["show-on-site","toggle-visibility","delete","toggle-details","indicator-action"],setup(n,{emit:e}){const t=n,r=e,a={information:"line-info-circle",warning:"line-caution-triangle"},o={information:"medium",warning:"large"},u={"&":"&","<":"<",">":">",'"':""","'":"'"};function s(ee){return ee.replace(/[&<>"']/g,Q=>u[Q])}const d=i.computed(()=>E7(t.icon)),p=i.computed(()=>E7(t.indicator&&a[t.indicator.variant])),f=i.computed(()=>{var ee;return s(((ee=t.indicator)==null?void 0:ee.title)??"")}),m=i.computed(()=>{var ee;return s(((ee=t.indicator)==null?void 0:ee.text)??"")}),y=i.computed(()=>/^(\S+)([\s\S]*)$/.exec(t.title.trim())),C=i.computed(()=>{var ee;return((ee=y.value)==null?void 0:ee[1])??""}),S=i.computed(()=>{var ee;return((ee=y.value)==null?void 0:ee[2])??""}),v=i.computed(()=>t.summary.trim().length>0),_=i.computed(()=>t.description.trim().length>0),g=i.computed(()=>_.value&&t.showDetails),b=i.computed(()=>t.state==="hidden"),E=i.computed(()=>t.state==="showing"),w=i.computed(()=>`${t.id}-details`),k=i.computed(()=>b.value?"line-show-off":"line-show-on"),A=i.computed(()=>b.value?t.labels.show:t.labels.hide),$=i.computed(()=>E.value?t.labels.showingOnSite:t.labels.showOnSite),M=i.computed(()=>t.showOnSiteDisabled||E.value),Z=i.computed(()=>g.value?t.labels.hideDetails:t.labels.showDetails);function J(ee){const Q=Js[ee],ue=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path${Q.evenOdd?' fill-rule="evenodd" clip-rule="evenodd"':""} d="${Q.d}"/></svg>`;return{"--ab-activity-card-glyph":`url("data:image/svg+xml,${encodeURIComponent(ue)}")`}}const oe=i.computed(()=>["ab-onsite-activity-card",`ab-onsite-activity-card--${t.state}`,{"ab-onsite-activity-card--indicator":!!t.indicator,"ab-onsite-activity-card--details-open":g.value}]);function U(){r("show-on-site",t.id)}function te(){r("toggle-visibility",t.id)}function P(){r("delete",t.id)}function N(){r("toggle-details",t.id,!g.value)}return(ee,Q)=>(i.openBlock(),i.createElementBlock("div",{id:ee.id,class:i.normalizeClass(oe.value)},[i.createElementVNode("div",rw,[d.value?(i.openBlock(),i.createElementBlock("svg",iw,[i.createElementVNode("path",{"clip-rule":d.value.evenOdd?"evenodd":void 0,d:d.value.d,"fill-rule":d.value.evenOdd?"evenodd":void 0},null,8,aw)])):ee.icon?(i.openBlock(),i.createBlock(Fe,{key:1,class:"ab-onsite-activity-card__icon",name:ee.icon,size:24},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("div",sw,[i.createElementVNode("div",ow,[i.createElementVNode("p",lw,[i.renderSlot(ee.$slots,"title",{},()=>[i.createElementVNode("strong",uw,i.toDisplayString(C.value),1),i.createTextVNode(i.toDisplayString(S.value),1)],!0)]),ee.indicator?(i.openBlock(),i.createBlock(Xs,{key:0,id:`${ee.id}-indicator-tooltip`,placement:"left-start","hide-delay":yw},{contentSlot:i.withCtx(()=>[i.createVNode(J6,{id:`${ee.id}-indicator`,"description-text":m.value,size:o[ee.indicator.variant],"title-text":f.value,variant:ee.indicator.variant},i.createSlots({_:2},[ee.indicator.actionLabel?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("button",{class:"ab-onsite-activity-card__indicator-action",type:"button",onClick:Q[0]||(Q[0]=ne=>r("indicator-action",ee.id))},[i.createVNode(Fe,{name:"line-open-website",size:24}),i.createElementVNode("span",null,i.toDisplayString(ee.indicator.actionLabel),1)])]),key:"0"}:void 0]),1032,["id","description-text","size","title-text","variant"])]),default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["ab-onsite-activity-card__indicator",`ab-onsite-activity-card__indicator--${ee.indicator.variant}`]),role:"img",tabindex:"0","aria-label":ee.indicator.title},[p.value?(i.openBlock(),i.createElementBlock("svg",dw,[i.createElementVNode("path",{"clip-rule":p.value.evenOdd?"evenodd":void 0,d:p.value.d,"fill-rule":p.value.evenOdd?"evenodd":void 0},null,8,fw)])):(i.openBlock(),i.createBlock(Fe,{key:1,name:a[ee.indicator.variant],size:24},null,8,["name"]))],10,cw)]),_:1},8,["id"])):i.createCommentVNode("",!0)]),v.value?(i.openBlock(),i.createElementBlock("p",pw,i.toDisplayString(ee.summary),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",hw,[ee.indicator?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Xs,{key:0,id:`${ee.id}-visibility-tooltip`,"prevent-xss":"",placement:"top",text:A.value},{default:i.withCtx(()=>[i.createVNode(Bt,{class:"ab-onsite-activity-card__action ab-onsite-activity-card__visibility ab-onsite-activity-card__glyph-before",color:"secondary",size:"small",type:"button",variant:"ghost","aria-label":A.value,"data-glyph":k.value,style:i.normalizeStyle(J(k.value)),onClick:te},null,8,["aria-label","data-glyph","style"])]),_:1},8,["id","text"])),i.createVNode(Xs,{id:`${ee.id}-delete-tooltip`,"prevent-xss":"",placement:"top",text:ee.labels.delete},{default:i.withCtx(()=>[i.createVNode(Bt,{class:"ab-onsite-activity-card__action ab-onsite-activity-card__delete",color:"secondary","left-icon-name":"line-delete",size:"small",type:"button",variant:"ghost","aria-label":ee.labels.delete,"icon-size":24,onClick:P},null,8,["aria-label"])]),_:1},8,["id","text"])])]),i.createElementVNode("div",mw,[i.createVNode(Bt,{class:"ab-onsite-activity-card__link ab-onsite-activity-card__show-on-site",color:"primary",type:"button",variant:"text",disabled:M.value,label:$.value,onClick:U},null,8,["disabled","label"]),_.value?(i.openBlock(),i.createBlock(Bt,{key:0,class:i.normalizeClass(["ab-onsite-activity-card__link ab-onsite-activity-card__details-toggle",{"ab-onsite-activity-card__glyph-after":g.value}]),color:"secondary",type:"button",variant:"text","aria-controls":w.value,"aria-expanded":g.value?"true":"false","data-glyph":g.value?"filled-dropdown-up":void 0,"icon-size":24,label:Z.value,"right-icon-name":g.value?void 0:"dropdown-down-icon",style:i.normalizeStyle(g.value?J("filled-dropdown-up"):void 0),onClick:N},null,8,["aria-controls","aria-expanded","class","data-glyph","label","right-icon-name","style"])):i.createCommentVNode("",!0)]),g.value?(i.openBlock(),i.createElementBlock("p",{key:0,id:w.value,class:"ab-onsite-activity-card__details"},i.toDisplayString(ee.description),9,gw)):i.createCommentVNode("",!0)],10,nw))}}),[["__scopeId","data-v-f8090c6b"]]),Zr={modalWrapper:"_modalWrapper_fnpgl_36",medium:"_medium_fnpgl_45",small:"_small_fnpgl_52",compact:"_compact_fnpgl_58",section:"_section_fnpgl_64",description:"_description_fnpgl_76",modal:"_modal_fnpgl_36",close:"_close_fnpgl_96",header:"_header_fnpgl_115",footer:"_footer_fnpgl_141",footerActions:"_footerActions_fnpgl_150",modalOverlay:"_modalOverlay_fnpgl_156"},_w=["aria-label"],ww=mt(i.defineComponent({__name:"OnsiteActionModal",props:{title:{},isOpen:{type:Boolean},size:{},width:{default:560},description:{default:void 0},cancelText:{},submitText:{},hasOverlay:{type:Boolean,default:!0},submitColor:{default:"primary"},extraText:{default:void 0},closable:{type:Boolean,default:!0},closeAriaLabel:{default:"Close"}},emits:["close","submit","extra"],setup(n,{emit:e}){const t=n,r=e,a=i.computed(()=>t.size==="compact"?{"--onsite-action-modal-width":`${t.width}px`}:void 0);function o(){r("close")}function u(){t.closable&&o()}function s(p){t.isOpen&&p.key==="Escape"&&u()}let d=!1;return i.onMounted(async()=>{await i.nextTick(),d||window.addEventListener("keydown",s)}),i.onBeforeUnmount(()=>{d=!0,window.removeEventListener("keydown",s)}),(p,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.hasOverlay&&p.isOpen?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(Zr).modalOverlay),onClick:u},null,2)):i.createCommentVNode("",!0),i.createVNode(i.Transition,{name:"onsite-action-modal-transition"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass([i.unref(Zr).modalWrapper,i.unref(Zr)[p.size]]),style:i.normalizeStyle(a.value)},[i.createElementVNode("div",{class:i.normalizeClass([i.unref(Zr).modal,i.unref(Zr)[p.size]])},[p.closable?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button","aria-label":p.closeAriaLabel,class:i.normalizeClass(i.unref(Zr).close),onClick:o},[i.createVNode(Fe,{name:"line-close-netural",size:24})],10,_w)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Zr).header)},[i.createElementVNode("p",null,i.toDisplayString(p.title),1)],2),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Zr).section)},[p.description?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(["ab-onsite-action-modal__description",i.unref(Zr).description])},i.toDisplayString(p.description),3)):i.createCommentVNode("",!0),i.renderSlot(p.$slots,"section",{},void 0,!0)],2),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Zr).footer)},[p.cancelText!==""?(i.openBlock(),i.createBlock(Bt,{key:0,color:"secondary",variant:"text",label:p.cancelText,onClick:o},null,8,["label"])):i.createCommentVNode("",!0),p.extraText?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(Zr).footerActions)},[i.createVNode(Bt,{color:"secondary",variant:"solid",label:p.extraText,onClick:f[0]||(f[0]=m=>r("extra"))},null,8,["label"]),i.createVNode(Bt,{variant:"solid",color:p.submitColor,label:p.submitText,onClick:f[1]||(f[1]=m=>r("submit"))},null,8,["color","label"])],2)):(i.openBlock(),i.createBlock(Bt,{key:2,variant:"solid",color:p.submitColor,label:p.submitText,onClick:f[2]||(f[2]=m=>r("submit"))},null,8,["color","label"]))],2)],2)],6),[[i.vShow,p.isOpen]])]),_:3})],64))}}),[["__scopeId","data-v-8565d097"]]),Cw={key:0,"aria-hidden":"true",class:"icon ab-onsite-action-toast__icon",fill:"currentColor",height:"24px",viewBox:"0 0 24 24",width:"24px"},Ew={key:2,class:"ab-onsite-action-toast__content"},vw={class:"ab-onsite-action-toast__text"},kw={class:"ab-onsite-action-toast__actions"},Aw={key:3,class:"ab-onsite-action-toast__text"},Sw=["aria-label"],Dw="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM10.3092 14.7185L8.28015 12.6796C7.90662 12.3043 7.90662 11.6957 8.28015 11.3204C8.65368 10.945 9.25929 10.945 9.63282 11.3204L10.9855 12.6796L14.3672 9.28151C14.7407 8.90616 15.3463 8.90616 15.7199 9.28151C16.0934 9.65685 16.0934 10.2654 15.7199 10.6408L11.6618 14.7185C11.2883 15.0938 10.6827 15.0938 10.3092 14.7185Z",xw=mt(i.defineComponent({__name:"OnsiteActionToast",props:{modelValue:{type:Boolean},text:{},variant:{default:"info"},size:{default:"default"},duration:{default:4e3},icon:{default:void 0},closeAriaLabel:{default:"Close notification"},actionText:{default:void 0}},emits:["update:modelValue","dismiss","action"],setup(n,{emit:e}){const t=n,r=e,a={info:"filled-info-circle",error:"filled-error-box",warning:"filled-caution-triangle-colored"},o=i.computed(()=>!t.icon&&t.variant==="success"),u=i.computed(()=>t.icon??a[t.variant==="success"?"info":t.variant]);let s=null;function d(){s&&(clearTimeout(s),s=null)}function p(){d(),r("update:modelValue",!1),r("dismiss")}function f(){d(),!(t.duration<=0)&&(s=setTimeout(p,t.duration))}return i.watch(()=>t.modelValue,m=>{m?f():d()},{immediate:!0}),i.onBeforeUnmount(d),(m,y)=>(i.openBlock(),i.createBlock(i.Transition,{name:"ab-onsite-action-toast"},{default:i.withCtx(()=>[m.modelValue?(i.openBlock(),i.createElementBlock("div",{key:0,"aria-live":"polite",class:i.normalizeClass(["ab-onsite-action-toast",[`ab-onsite-action-toast--${m.variant}`,{"ab-onsite-action-toast--wide":m.size==="wide"}]]),role:"status"},[o.value?(i.openBlock(),i.createElementBlock("svg",Cw,[i.createElementVNode("path",{"clip-rule":"evenodd","fill-rule":"evenodd",d:Dw})])):(i.openBlock(),i.createBlock(Fe,{key:1,class:"ab-onsite-action-toast__icon",name:u.value,size:24},null,8,["name"])),m.actionText?(i.openBlock(),i.createElementBlock("div",Ew,[i.createElementVNode("span",vw,i.toDisplayString(m.text),1),i.createElementVNode("div",kw,[i.createVNode(Bt,{color:"primary",size:"small",variant:"ghost",label:m.actionText,onClick:y[0]||(y[0]=C=>r("action"))},null,8,["label"])])])):(i.openBlock(),i.createElementBlock("span",Aw,i.toDisplayString(m.text),1)),i.createElementVNode("button",{class:"ab-onsite-action-toast__close",type:"button","aria-label":m.closeAriaLabel,onClick:p},[i.createVNode(Fe,{name:"line-close-netural",size:24})],8,Sw)],2)):i.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-147b7145"]]),Tw=["for"],$w=["innerHTML"],Bw={class:"in-basic-text-input-wrapper__input-field"},Rw={key:0,class:"in-basic-text-input-wrapper__slot-left"},Lw=["id","autocomplete","disabled","max","maxlength","min","name","placeholder","readonly","type","value"],Fw={key:2,class:"in-basic-text-input-wrapper__suffix-text"},Ow={key:4,class:"in-basic-text-input-wrapper__slot-right"},Nw={key:1,class:"in-basic-text-input-wrapper__helper-container"},Iw={key:0,class:"in-basic-text-input-wrapper__helper-message"},Pw={key:0,class:"in-basic-text-input-wrapper__helper-text"},Mw={key:1,class:"in-basic-text-input-wrapper__helper-text"},va=mt(i.defineComponent({__name:"InBasicTextInput",props:{id:{},name:{},theme:{default:"grey"},modelValue:{default:""},labelStatus:{type:Boolean,default:!0},labelText:{default:""},type:{default:"text"},states:{default:"default"},placeholderText:{},disabledStatus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},leftIconStatus:{type:Boolean,default:!1},leftIconName:{default:void 0},rightIconStatus:{type:Boolean,default:!1},rightIconName:{default:void 0},suffixTextStatus:{type:Boolean,default:!1},suffixText:{default:""},autoComplete:{default:"off"},maxCharacterLength:{default:""},minValue:{default:0},maxValue:{default:""},autoFocus:{type:Boolean,default:!1},allowDecimal:{type:Boolean,default:!1},allowComma:{type:Boolean,default:!0},preventXss:{type:Boolean,default:!0},helperMessageStatus:{type:Boolean,default:!0},helperMessage:{default:""},stateMessage:{default:""}},emits:["update:modelValue","input","change","focus","blur","keyup","keypress","click","paste","leftIconClick","rightIconClick"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(""),o=i.computed(()=>t.preventXss?String(t.labelText).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):t.labelText),u=i.computed(()=>t.states==="default"),s=i.computed(()=>t.states==="warning"||t.states==="error"),d=i.computed(()=>t.helperMessageStatus||s.value),p=i.computed(()=>t.type==="number"),f=i.computed(()=>{const P=["e","E","+","\\"],N=typeof t.minValue=="number"?t.minValue:Number(t.minValue);return!Number.isNaN(N)&&N>=0&&P.push("-"),t.allowDecimal||P.push("."),t.allowComma||P.push(","),P}),m=P=>f.value.includes(P),y=P=>{var N;if(t.preventXss&&(P!=null&&P.target)){const ee=String(P.target.value).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");P.target.value!==ee&&(P.target.value=ee)}return a.value=((N=P==null?void 0:P.target)==null?void 0:N.value)||"",P},C=()=>{let P="";return t.allowDecimal&&(P+="."),t.allowComma&&(P+=","),new RegExp(`[${P}]`,"g")},S=()=>{let P="0-9";return t.allowDecimal&&(P+="\\."),t.allowComma&&(P+=","),new RegExp(`[^${P}]+`,"g")},v=P=>{if(!(P!=null&&P.target))return;const N=P.target,{selectionStart:ee}=N;if(ee===null)return;const Q=ee-1,{value:ne}=P.target,ue=S(),F=[...ne.matchAll(ue)].map(K=>K.index);P.target.value=ne.replace(ue,""),F.length>0&&Q>=0&&N.setSelectionRange(Q,Q)},_=P=>{if(!(P!=null&&P.target))return;const{value:N}=P.target,ee=P.target,{selectionStart:Q}=ee;if(Q===null)return;const ne=Q-1,ue=C(),F=[...N.matchAll(ue)].map(O=>O.index),K=N.split("");F.length>1&&ne>=0&&(K[ne]=""),P.target.value=K.join(""),F.length>1&&ne>=0&&ee.setSelectionRange(ne,ne)},g=P=>{r("keyup",P)},b=P=>{P.key==="Enter"&&r("keypress",P),p.value&&m(P.key)&&P.preventDefault()},E=P=>{r("focus",P)},w=P=>{r("blur",P)},k=P=>{r("click",P)},A=P=>{var Q;const N=P;p.value&&(v(N),_(N)),y(N);const ee=((Q=N==null?void 0:N.target)==null?void 0:Q.value)||"";a.value=ee,r("input",ee),r("update:modelValue",ee)},$=P=>{var Q;const N=P;p.value&&(v(N),_(N)),y(N);const ee=((Q=N==null?void 0:N.target)==null?void 0:Q.value)||"";a.value=ee,r("change",ee),r("update:modelValue",ee)},M=P=>{var he,be;if(t.maxCharacterLength&&typeof t.maxCharacterLength=="number"){const H=P.target,se=H.selectionStart,fe=H.selectionEnd;if(se===null||fe===null)return;const{value:Ce}=H,Ee=((he=P.clipboardData)==null?void 0:he.getData("text/plain"))||"",Ne=Ce.length,Ue=fe-se,Ze=t.maxCharacterLength-Ne+Ue;if(Ze<=0){P.preventDefault();return}const ge=Ee.slice(0,Ze);if(ge!==Ee){P.preventDefault();const tt=Ce.slice(0,se)+ge+Ce.slice(fe);H.value=tt;const Ve=se+ge.length;H.setSelectionRange(Ve,Ve),a.value=tt,r("input",tt),r("update:modelValue",tt);return}}if(!p.value)return;P.preventDefault();const N=P.target,ee=N.selectionStart,Q=N.selectionEnd;if(ee===null||Q===null)return;const{value:ne}=N,ue=ne.includes(".")||ne.includes(","),F=((be=P.clipboardData)==null?void 0:be.getData("text/plain"))||"",K=C(),O=S();let V=F.replace(O,"");const L=[...V.matchAll(K)],z=[];L.forEach(H=>{H.index!==void 0&&z.push(H.index)});const ie=V.split("");ue||z.shift(),z.forEach(H=>{ie[H]=""}),V=ie.join("");const ae=ee+V.length,q=ne.slice(0,ee)+V+ne.slice(Q);N.value=q,N.setSelectionRange(ae,ae),a.value=q,r("input",q),r("update:modelValue",q)},Z=P=>{r("leftIconClick",P)},J=P=>{r("rightIconClick",P)},oe=i.ref(null),U=i.ref(null),te=()=>{i.nextTick(()=>{var P;(P=oe.value)==null||P.focus()})};return i.watch(()=>t.modelValue,P=>{a.value=P},{immediate:!0}),i.watch(()=>t.autoFocus,P=>{P&&te()}),i.onMounted(()=>{t.autoFocus&&te()}),(P,N)=>(i.openBlock(),i.createElementBlock("fieldset",{ref_key:"componentRoot",ref:U,class:i.normalizeClass(["in-basic-text-input-wrapper qa-text-input",[`in-basic-text-input-wrapper__${P.states}`,`in-basic-text-input-wrapper__${P.theme}`,{"in-basic-text-input-wrapper__disable":P.disabledStatus}]])},[P.labelStatus?(i.openBlock(),i.createElementBlock("label",{key:0,class:"in-basic-text-input-wrapper__label",for:P.id},[i.createElementVNode("span",{innerHTML:o.value},null,8,$w)],8,Tw)):i.createCommentVNode("",!0),i.createElementVNode("div",Bw,[P.$slots.leftSlot?(i.openBlock(),i.createElementBlock("div",Rw,[i.renderSlot(P.$slots,"leftSlot",{},void 0,!0)])):i.createCommentVNode("",!0),P.leftIconStatus?(i.openBlock(),i.createBlock(i.unref(Fe),{key:1,class:"in-basic-text-input-wrapper__icon-left",name:P.leftIconName,size:24,onClick:Z},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:P.id,ref_key:"textInput",ref:oe,class:"in-basic-text-input-wrapper__input",autocomplete:P.autoComplete,disabled:P.disabledStatus,max:typeof P.maxValue=="number"?P.maxValue:void 0,maxlength:typeof P.maxCharacterLength=="number"?P.maxCharacterLength:void 0,min:typeof P.minValue=="number"?P.minValue:void 0,name:P.name,placeholder:P.placeholderText,readonly:P.readonly,type:P.type,value:a.value,onBlur:w,onChange:$,onClick:k,onFocus:E,onInput:A,onKeypress:b,onKeyup:g,onPaste:M},null,40,Lw),P.suffixTextStatus&&P.suffixText?(i.openBlock(),i.createElementBlock("span",Fw,i.toDisplayString(P.suffixText),1)):i.createCommentVNode("",!0),P.rightIconStatus?(i.openBlock(),i.createBlock(i.unref(Fe),{key:3,class:"in-basic-text-input-wrapper__icon-right",name:P.rightIconName,size:24,onClick:J},null,8,["name"])):i.createCommentVNode("",!0),P.$slots.rightSlot?(i.openBlock(),i.createElementBlock("div",Ow,[i.renderSlot(P.$slots,"rightSlot",{},void 0,!0)])):i.createCommentVNode("",!0)]),d.value?(i.openBlock(),i.createElementBlock("div",Nw,[P.helperMessageStatus||s.value?(i.openBlock(),i.createElementBlock("div",Iw,[u.value?(i.openBlock(),i.createElementBlock("p",Pw,i.toDisplayString(P.helperMessage),1)):i.createCommentVNode("",!0),s.value&&!P.disabledStatus?(i.openBlock(),i.createElementBlock("p",Mw,i.toDisplayString(P.stateMessage),1)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-92d939e1"]]),v7=mt(i.defineComponent({__name:"InBox",props:{border:{default:""},borderRadius:{default:""},borderTriangle:{type:Boolean,default:!1},borderTrianglePosition:{default:""},borderTriangleAlign:{default:""}},setup(n){const e=n,t=i.computed(()=>{const r=[];return e.border&&r.push(e.border),e.borderRadius&&r.push(e.borderRadius),e.borderTriangle&&e.borderTrianglePosition&&e.borderTriangleAlign&&r.push(`in-box_${e.borderTrianglePosition}-${e.borderTriangleAlign}`),r.join(" ")});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["in-box",t.value])},[i.renderSlot(r.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-d7d84bbc"]]),E3={mounted(n,e){n.clickOutsideOptions=e.value,n.clickOutsideEvent=r=>{const a=n.clickOutsideOptions;if(!a)return;const o=(a.exclude||[]).filter(p=>p.value).map(p=>p.value),u=r.target,s=[n,...o].some(p=>p&&(p===u||p.contains(u))),d=(a.excludeSelectors||[]).some(p=>{if(!(u instanceof Element))return!1;try{return u.closest(p)!==null}catch{return!1}});s||d||a.handler()};const t=e.value.capture??!1;n.clickOutsideCapture=t,document.addEventListener("click",n.clickOutsideEvent,t)},updated(n,e){n.clickOutsideOptions=e.value;const t=e.value.capture??!1;!n.clickOutsideEvent||t===n.clickOutsideCapture||(document.removeEventListener("click",n.clickOutsideEvent,n.clickOutsideCapture??!1),n.clickOutsideCapture=t,document.addEventListener("click",n.clickOutsideEvent,t))},unmounted(n){if(n.clickOutsideEvent){const e=n.clickOutsideCapture??!1;document.removeEventListener("click",n.clickOutsideEvent,e)}n.clickOutsideOptions=void 0}},Vw=4,qw=8,k7=mt(i.defineComponent({__name:"Popover",props:{modelValue:{type:Boolean,default:!1},align:{default:"left"},position:{default:"bottom"},width:{},positionStrategy:{default:"fixed"},closeOnClickOutside:{type:Boolean,default:!1},ignoreOutsideSelectors:{default:void 0},elevated:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},gap:{default:Vw},anchorSelector:{default:void 0}},emits:["update:modelValue","open","close"],setup(n,{expose:e,emit:t}){const r=E3,a=n,o=t,u=i.ref(null),s=i.ref(null),d=i.ref(null),p=i.ref(a.modelValue);function f(){const w=u.value;if(!w)return null;const k=w.firstElementChild??w;return a.anchorSelector?k.querySelector(a.anchorSelector)??k:k}const m=i.computed(()=>{if(a.align==="left-side")return"left-end";if(a.align==="right-side")return"right-end";if(a.align==="left-side-top")return"left-start";if(a.align==="right-side-top")return"right-start";const w=a.position==="top"?"top":"bottom";return a.align==="center"?w:a.align==="right"?`${w}-end`:`${w}-start`}),y=i.computed(()=>a.positionStrategy==="fixed"?"fixed":"absolute"),C=i.computed(()=>[t1(a.gap),r1(),n1({padding:qw})]),{floatingStyles:S,isPositioned:v}=i1(d,s,{placement:m,strategy:y,middleware:C,whileElementsMounted:e1}),_=i.computed(()=>{const w={};return a.positionStrategy==="absolute"&&!a.fitContent&&(w.width="100%"),a.width&&(w.width=`${a.width}px`,w.minWidth=`${a.width}px`),w});i.onMounted(()=>{d.value=f()}),i.watch(()=>a.modelValue,w=>{p.value=w,w&&i.nextTick(()=>{d.value=f()})});const g=()=>{p.value=!p.value,o("update:modelValue",p.value),p.value?(o("open"),i.nextTick(()=>{d.value=f()})):o("close")},b=()=>{p.value=!1,o("update:modelValue",!1),o("close")},E=i.computed(()=>({handler:b,exclude:[u,s],excludeSelectors:a.ignoreOutsideSelectors,capture:a.closeOnClickOutside}));return e({isOpen:p,toggle:g,close:b}),(w,k)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"popoverRef",ref:u,class:"popover"},[i.renderSlot(w.$slots,"trigger",{isOpen:p.value,toggle:g},void 0,!0),p.value?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"contentRef",ref:s,class:i.normalizeClass(["popover__content",{"popover__content--visible":i.unref(v),"popover__content--elevated":w.elevated}]),style:i.normalizeStyle([i.unref(S),_.value]),onClick:k[0]||(k[0]=i.withModifiers(()=>{},["prevent"]))},[i.createVNode(i.unref(v7),null,{default:i.withCtx(()=>[i.renderSlot(w.$slots,"default",{},void 0,!0)]),_:3})],6)),[[i.unref(r),E.value]]):i.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-768c3a9d"]]),zw=(n,e)=>{var r;let t=0;for(const a of n)if(a.toLowerCase()===((r=e[t])==null?void 0:r.toLowerCase())&&t++,t===e.length)return!0;return!1},_2=(n,e,t)=>{if(!t.trim())return n;const r=t.toLowerCase();return n.filter(a=>{const o=String(a[e]);return zw(o.toLowerCase(),r)}).sort((a,o)=>{const u=String(a[e]).toLowerCase(),s=String(o[e]).toLowerCase();return u===r?-1:s===r?1:u.startsWith(r)&&!s.startsWith(r)?-1:!u.startsWith(r)&&s.startsWith(r)?1:u.length-s.length})},jw={key:0,class:"in-dropdown-menu__search-container"},Uw={key:2,class:"in-dropdown-menu__item-container"},Hw=["onClick"],w2=mt(i.defineComponent({__name:"InDropdownMenu",props:{modelValue:{default:""},items:{},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search"},addable:{type:Boolean,default:!1},addButtonText:{default:"Add"},validateAddItem:{type:Function,default:()=>null},showSelectedIcon:{type:Boolean,default:!1},rotateArrow:{type:Boolean,default:!1},menuHeight:{default:154},width:{},mode:{default:"primary"},anchorSelector:{default:void 0},position:{default:"bottom"}},emits:["update:modelValue","add-error","item-added","select-item"],setup(n,{expose:e,emit:t}){i.useCssVars(b=>({ef6a2086:`${r.menuHeight}px`}));const r=n,a=t,o=i.ref(!1),u=i.ref(null),s=i.ref(""),d=i.ref(null),p=i.ref([...r.items]),f=i.ref([...r.items]),m=()=>{o.value=!o.value},y=()=>{d.value=null,s.value="",p.value=[...f.value]};i.watch(()=>o.value,b=>{b||y()});const C=()=>{o.value=!1,y()},S=b=>{u.value=b,a("select-item",b),a("update:modelValue",b.value),C()},v=()=>{const b=s.value.trim(),E=r.validateAddItem(b,f.value);if(E){d.value=E,a("add-error",E);return}const w={text:b,value:b};f.value.push(w),y(),a("item-added",w)},_=b=>{s.value=String(b);const E=_2(f.value,"text",s.value);p.value=E},g=()=>{d.value=null};return i.onMounted(()=>{if(r.modelValue){const b=f.value.find(E=>E.value===r.modelValue);b&&(u.value=b)}}),i.watch(()=>r.modelValue,b=>{var E;if(((E=u.value)==null?void 0:E.value)!==b){const w=f.value.find(k=>k.value===b);w?u.value=w:u.value=null}}),i.watch(()=>r.items,b=>{f.value=[...b],p.value=[...b]},{deep:!0}),e({isOpen:o,toggleMenu:m,closeMenu:C,selectedItem:u}),(b,E)=>(i.openBlock(),i.createBlock(i.unref(k7),{class:i.normalizeClass(["in-dropdown-menu",{"in-dropdown-menu--open":o.value,"in-dropdown-menu--rotate-arrow":r.rotateArrow,[`in-dropdown-menu--${r.mode}`]:!0}]),"position-strategy":"absolute","anchor-selector":b.anchorSelector,position:r.position,width:r.width,modelValue:o.value,"onUpdate:modelValue":E[2]||(E[2]=w=>o.value=w)},{trigger:i.withCtx(({isOpen:w})=>[i.renderSlot(b.$slots,"trigger",{isOpen:w,toggle:m},void 0,!0)]),default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["in-dropdown-menu__menu",[`in-dropdown-menu__menu--${r.mode}`]]),onClick:E[1]||(E[1]=i.withModifiers(()=>{},["prevent"]))},[b.searchable?(i.openBlock(),i.createElementBlock("div",jw,[i.createVNode(va,{id:"dropdown-search-input","right-icon-status":"",name:"dropdown-search-input","right-icon-name":"line-search","helper-message-status":!1,"label-status":!1,"placeholder-text":b.searchPlaceholder,"state-message":d.value||"",states:d.value?"error":"default",modelValue:s.value,"onUpdate:modelValue":E[0]||(E[0]=w=>s.value=w),onFocus:g,onInput:_},null,8,["placeholder-text","state-message","states","modelValue"]),b.addable?(i.openBlock(),i.createBlock(i.unref(Bt),{key:0,color:"primary","left-icon-name":"line-plus-netural",size:"small",variant:"text",label:b.addButtonText,onClick:v},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),p.value.length===0&&b.searchable?i.renderSlot(b.$slots,"no-results",{key:1},void 0,!0):(i.openBlock(),i.createElementBlock("ul",Uw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(w,k)=>{var A,$;return i.openBlock(),i.createElementBlock("li",{key:`${w.value}-${k}`,class:"in-dropdown-menu__item"},[b.$slots.item?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["in-dropdown-menu__item-content",[{"in-dropdown-menu__item--active":u.value&&w.value===u.value.value}]]),onClick:M=>S(w)},[i.renderSlot(b.$slots,"item",{isSelected:((A=u.value)==null?void 0:A.value)===w.value,item:w},void 0,!0)],10,Hw)):(i.openBlock(),i.createBlock(i.unref(Bt),{key:1,fill:"",class:i.normalizeClass(["in-dropdown-menu__item-button",[{"in-dropdown-menu__item-button--active":u.value&&w.value===u.value.value}]]),color:"secondary",size:"small",variant:"ghost",label:w.text,"right-icon-name":r.showSelectedIcon&&(($=u.value)==null?void 0:$.value)===w.value?"line-check-natural":void 0,onClick:M=>S(w)},null,8,["class","label","right-icon-name","onClick"]))])}),128))]))],2)]),_:3},8,["anchor-selector","class","position","width","modelValue"]))}}),[["__scopeId","data-v-7e9c92f8"]]),Ww=4,Gw=i.defineComponent({__name:"OnsiteAutoPositionDropdownMenu",props:{items:{},modelValue:{default:""},menuHeight:{default:154},width:{default:void 0},mode:{default:"primary"},anchorSelector:{default:void 0},rotateArrow:{type:Boolean,default:!1},showSelectedIcon:{type:Boolean,default:!1}},emits:["update:modelValue","select-item"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(null),o=i.ref("bottom");function u(){var S;const d=(S=a.value)==null?void 0:S.$el;if(!(d!=null&&d.getBoundingClientRect))return;const f=((t.anchorSelector?d.querySelector(t.anchorSelector):null)??d.firstElementChild??d).getBoundingClientRect(),m=Number(t.menuHeight)+Ww,y=window.innerHeight-f.bottom,C=f.top;y>=m?o.value="bottom":C>=m?o.value="top":o.value=y>=C?"bottom":"top"}function s(d,p){p||u(),d()}return(d,p)=>(i.openBlock(),i.createBlock(w2,{ref_key:"menu",ref:a,"anchor-selector":d.anchorSelector,items:d.items,"menu-height":Number(d.menuHeight),mode:d.mode,"model-value":d.modelValue,position:o.value,"rotate-arrow":d.rotateArrow,"show-selected-icon":d.showSelectedIcon,width:d.width,onSelectItem:p[0]||(p[0]=f=>r("select-item",f)),"onUpdate:modelValue":p[1]||(p[1]=f=>r("update:modelValue",f))},i.createSlots({trigger:i.withCtx(({isOpen:f,toggle:m})=>[i.renderSlot(d.$slots,"trigger",{isOpen:f,toggle:()=>s(m,f)})]),_:2},[d.$slots.item?{name:"item",fn:i.withCtx(f=>[i.renderSlot(d.$slots,"item",i.normalizeProps(i.guardReactiveProps(f)))]),key:"0"}:void 0]),1032,["anchor-selector","items","menu-height","mode","model-value","position","rotate-arrow","show-selected-icon","width"]))}}),a1={bubble:"_bubble_6zub9_1",trigger:"_trigger_6zub9_43",trigger__icon:"_trigger__icon_6zub9_51",arrow:"_arrow_6zub9_57",bubble__content:"_bubble__content_6zub9_78"},Zw=["id"],Yw=["innerHTML"],Kw=1e3,A7=20,v3=8,ki=i.defineComponent({inheritAttrs:!1,__name:"Tooltip",props:{id:{},text:{default:""},placement:{},arrowPlacement:{},status:{type:Boolean},preventXss:{type:Boolean},iconName:{},hideDelay:{},showDelay:{}},setup(n){const e={top:"bottom",right:"left",bottom:"top",left:"right"},t=i.ref(null),r=i.ref(null),a=i.ref(!1);typeof window<"u"&&window.wasTooltipShown===void 0&&(window.wasTooltipShown=!1);const o=n,u=i.ref(null),s=i.ref(null),d=i.ref(null),p=i.ref(!1),f=i.computed(()=>o.preventXss?w7(o.text):o.text),{floatingStyles:m,update:y,middlewareData:C,placement:S}=i1(s,u,{placement:i.computed(()=>o.placement||"bottom"),strategy:"fixed",whileElementsMounted:e1,middleware:[t1(10),r1(),n1(),m7({element:d,padding:v3})]}),v=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const Z=o.showDelay??Kw;window.wasTooltipShown||Z<=0?p.value=!0:t.value=setTimeout(()=>{if(!a.value){t.value=null;return}p.value=!0,window.wasTooltipShown=!0,t.value=null},Z)},_=()=>{t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null);const Z=o.hideDelay??0;Z>0?r.value=setTimeout(()=>{a.value&&(p.value=!1),r.value=null},Z):p.value=!1},g=()=>{v()},b=()=>{_()},E=()=>{a.value&&s.value&&u.value&&y()};i.watch(()=>o.placement,()=>{a.value&&s.value&&u.value&&y()}),i.onBeforeMount(_7),i.onMounted(()=>{a.value=!0,i.nextTick(()=>{a.value&&s.value&&y()}),typeof window<"u"&&window.addEventListener("resize",E)}),i.onBeforeUnmount(()=>{a.value=!1,typeof window<"u"&&window.removeEventListener("resize",E),t.value&&(clearTimeout(t.value),t.value=null),r.value&&(clearTimeout(r.value),r.value=null),p.value=!1,u.value=null,s.value=null,d.value=null});const w=i.computed(()=>o.status||p.value),k=i.computed(()=>({...m.value,display:w.value?"inline-block":"none"})),A=i.computed(()=>{const[Z]=S.value.split("-");return{[e[Z]]:"-4px"}}),$=i.computed(()=>{if(!o.arrowPlacement)return{};const[Z]=S.value.split("-"),J=Z==="top"||Z==="bottom"?"left":"top";switch(o.arrowPlacement){case"start":return{[J]:`${v3}px`};case"center":return{[J]:`calc(50% - ${A7/2}px)`};case"end":return{[J]:`calc(100% - ${A7+v3}px)`};default:return{}}}),M=i.computed(()=>{var Z,J;return d.value?{left:((Z=C.value.arrow)==null?void 0:Z.x)!=null?`${C.value.arrow.x}px`:"",top:((J=C.value.arrow)==null?void 0:J.y)!=null?`${C.value.arrow.y}px`:"",right:"",bottom:"",...A.value,...$.value}:{}});return(Z,J)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:Z.id,ref_key:"triggerRef",ref:s,class:i.normalizeClass(i.unref(a1).trigger),onMouseenter:g,onMouseleave:b},[Z.iconName?(i.openBlock(),i.createBlock(i.unref(Fe),{key:0,color:i.unref(a1).trigger__icon,name:Z.iconName},null,8,["color","name"])):i.renderSlot(Z.$slots,"default",{key:1})],42,Zw),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{ref_key:"tooltipRef",ref:u,class:i.normalizeClass(["qa-tooltip",i.unref(a1).bubble]),style:i.normalizeStyle(k.value),onMouseenter:g,onMouseleave:b},[Z.$slots.contentSlot?i.renderSlot(Z.$slots,"contentSlot",{key:0}):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(i.unref(a1).bubble__content)},[i.createElementVNode("div",{innerHTML:f.value},null,8,Yw)],2)),Z.$slots.contentSlot?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"floatingArrowRef",ref:d,class:i.normalizeClass(i.unref(a1).arrow),style:i.normalizeStyle(M.value)},null,6))],38)]))],64))}}),Xw=["value","placeholder","aria-label"],Jw={class:"ab-calendar__header"},Qw=["aria-label"],eC={class:"ab-calendar__month"},tC=["aria-label"],nC={class:"ab-calendar__weekdays"},rC={class:"ab-calendar__grid"},iC=["data-date","aria-label"],aC=["data-disabled","data-date","aria-label","aria-pressed","disabled","onClick"],sC={class:"ab-calendar__footer"},oC=mt(i.defineComponent({__name:"Calendar",props:{modelValue:{default:""},min:{default:""},max:{default:""},format:{default:"YYYY-MM-DD"},disabledDateTooltip:{default:""},firstDayOfWeek:{default:1},locale:{default:"en"},placeholder:{default:""},applyLabel:{default:"Apply"},cancelLabel:{default:"Cancel"},width:{default:252},inputAriaLabel:{default:""},prevMonthLabel:{default:"Previous month"},nextMonthLabel:{default:"Next month"}},emits:["update:modelValue","apply","cancel"],setup(n,{emit:e}){const t=n,r=e,a={"YYYY-MM-DD":["y","m","d"],"DD/MM/YYYY":["d","m","y"],"MM/DD/YYYY":["m","d","y"],"DD.MM.YYYY":["d","m","y"]},o={"YYYY-MM-DD":"-","DD/MM/YYYY":"/","MM/DD/YYYY":"/","DD.MM.YYYY":"."},u={d:2,m:2,y:4};function s(N,ee){return String(N).padStart(ee,"0")}function d(N,ee,Q){if(!Number.isInteger(N)||!Number.isInteger(ee)||!Number.isInteger(Q))return null;const ne=new Date(N,ee-1,Q);return ne.getFullYear()!==N||ne.getMonth()!==ee-1||ne.getDate()!==Q?null:ne}function p(N,ee){const Q={d:s(N.getDate(),2),m:s(N.getMonth()+1,2),y:String(N.getFullYear())};return a[ee].map(ne=>Q[ne]).join(o[ee])}function f(N,ee){const Q=(N??"").split(o[ee]);if(Q.length!==3)return null;const ne={d:NaN,m:NaN,y:NaN};return a[ee].forEach((ue,F)=>{ne[ue]=Number(Q[F])}),d(ne.y,ne.m,ne.d)}function m(N){return new Date(N.getFullYear(),N.getMonth(),N.getDate()).getTime()}const y=i.ref(""),C=i.computed(()=>f(t.min,t.format)),S=i.computed(()=>f(t.max,t.format));function v(N){const ee=m(N),Q=C.value?m(C.value):null,ne=S.value?m(S.value):null;return(Q===null||ee>=Q)&&(ne===null||ee<=ne)}const _=i.computed(()=>f(y.value,t.format)),g=i.computed(()=>_.value!==null&&v(_.value));function b(){const N=f(t.modelValue,t.format);y.value=N?p(N,t.format):""}b();function E(){const N=_.value??new Date;return{year:N.getFullYear(),month:N.getMonth()}}const w=i.ref(E());i.watch(()=>t.modelValue,b),i.watch(_,N=>{N&&(w.value={year:N.getFullYear(),month:N.getMonth()})});const k=i.computed(()=>new Intl.DateTimeFormat(t.locale,{month:"short",year:"numeric"}).format(new Date(w.value.year,w.value.month,1))),A=i.computed(()=>{const N=new Intl.DateTimeFormat(t.locale,{weekday:"short"}),ee=[];for(let Q=0;Q<7;Q++){const ne=(t.firstDayOfWeek+Q)%7;ee.push(N.format(new Date(2024,0,7+ne)).slice(0,2))}return ee}),$=i.computed(()=>{const{year:N,month:ee}=w.value,ne=(new Date(N,ee,1).getDay()-t.firstDayOfWeek+7)%7,ue=_.value?m(_.value):null,F=[];for(let K=0;K<42;K++){const O=new Date(N,ee,1-ne+K);F.push({key:p(O,"YYYY-MM-DD"),label:O.getDate(),display:p(O,t.format),inCurrentMonth:O.getMonth()===ee,disabled:!v(O),selected:ue!==null&&m(O)===ue})}return F});function M(){const N=w.value.month-1;w.value=N<0?{year:w.value.year-1,month:11}:{year:w.value.year,month:N}}function Z(){const N=w.value.month+1;w.value=N>11?{year:w.value.year+1,month:0}:{year:w.value.year,month:N}}function J(N){N.disabled||(y.value=N.display)}function oe(N){const ee=t.format,Q=a[ee],ne=o[ee],ue=Q.map(ae=>u[ae]),F=ue.reduce((ae,q)=>ae+q,0),K=N.split(ne);for(let ae=0;ae<K.length-1;ae++)ue[ae]===2&&/^\d$/.test(K[ae])&&(K[ae]=`0${K[ae]}`);const O=K.join("").replace(/\D/g,"").slice(0,F),V=[];let L=0;for(const ae of ue)V.push(O.slice(L,L+ae)),L+=ae;const z=N.endsWith(ne);let ie=V[0];for(let ae=1;ae<V.length;ae++)if(V[ae])ie+=ne+V[ae];else if(z&&V[ae-1].length===ue[ae-1]){ie+=ne;break}else break;return ie}function U(N){y.value=oe(N.target.value)}function te(){!g.value||_.value===null||(r("update:modelValue",p(_.value,t.format)),r("apply"))}function P(){b(),r("cancel")}return(N,ee)=>(i.openBlock(),i.createElementBlock("div",{class:"ab-calendar","data-testid":"calendar",style:i.normalizeStyle({width:`${N.width}px`})},[i.createElementVNode("input",{value:y.value,type:"text",class:"ab-calendar__input","data-testid":"calendar-input",placeholder:N.placeholder,"aria-label":N.inputAriaLabel||N.placeholder||void 0,inputmode:"numeric",maxlength:"10",autocomplete:"off",onInput:U},null,40,Xw),i.createElementVNode("div",Jw,[i.createElementVNode("button",{type:"button",class:"ab-calendar__nav","data-testid":"calendar-prev","aria-label":N.prevMonthLabel,onClick:M},[i.createVNode(Fe,{class:"ab-calendar__nav-icon",name:"line-chevron-left",size:14})],8,Qw),i.createElementVNode("span",eC,i.toDisplayString(k.value),1),i.createElementVNode("button",{type:"button",class:"ab-calendar__nav","data-testid":"calendar-next","aria-label":N.nextMonthLabel,onClick:Z},[i.createVNode(Fe,{class:"ab-calendar__nav-icon",name:"line-chevron-right",size:14})],8,tC)]),i.createElementVNode("div",nC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.value,Q=>(i.openBlock(),i.createElementBlock("span",{key:Q,class:"ab-calendar__weekday"},i.toDisplayString(Q),1))),128))]),i.createElementVNode("div",rC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList($.value,Q=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Q.key},[Q.disabled&&N.disabledDateTooltip?(i.openBlock(),i.createBlock(ki,{key:0,id:`calendar-disabled-${Q.key}`,text:N.disabledDateTooltip,placement:"top"},{default:i.withCtx(()=>[i.createElementVNode("button",{type:"button",class:i.normalizeClass(["ab-calendar__day ab-calendar__day--disabled",{"ab-calendar__day--muted":!Q.inCurrentMonth}]),"data-testid":"calendar-day","data-disabled":"true","data-date":Q.key,"aria-label":Q.display,"aria-disabled":"true",disabled:""},i.toDisplayString(Q.label),11,iC)]),_:2},1032,["id","text"])):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:i.normalizeClass(["ab-calendar__day",{"ab-calendar__day--muted":!Q.inCurrentMonth,"ab-calendar__day--selected":Q.selected,"ab-calendar__day--disabled":Q.disabled}]),"data-testid":"calendar-day","data-disabled":Q.disabled?"true":"false","data-date":Q.key,"aria-label":Q.display,"aria-pressed":Q.selected,disabled:Q.disabled,onClick:ne=>J(Q)},i.toDisplayString(Q.label),11,aC))],64))),128))]),i.createElementVNode("div",sC,[i.createVNode(Bt,{variant:"ghost",color:"secondary",size:"default","custom-class":"ab-calendar__btn ab-calendar__btn--cancel","data-testid":"calendar-cancel",label:N.cancelLabel,onClick:P},null,8,["label"]),i.createVNode(Bt,{variant:"solid",color:"primary",size:"default","custom-class":"ab-calendar__btn ab-calendar__btn--apply","data-testid":"calendar-apply",label:N.applyLabel,disabled:!g.value,onClick:te},null,8,["label","disabled"])])],4))}}),[["__scopeId","data-v-5a5c1e69"]]),ka={chip__label:"_chip__label_1hm91_1",chip:"_chip_1hm91_1",chip__remove:"_chip__remove_1hm91_54","chip--clickable":"_chip--clickable_1hm91_58","chip--default":"_chip--default_1hm91_61",chip__icon:"_chip__icon_1hm91_71",chip__thumbnail:"_chip__thumbnail_1hm91_80",chip__thumbnailImage:"_chip__thumbnailImage_1hm91_89"},lC=["alt","src"],uC=i.defineComponent({__name:"Chip",props:{label:{},thumbnailUrl:{},thumbnailAlt:{},iconName:{},removable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},variant:{default:"default"}},emits:["remove","click"],setup(n,{emit:e}){const t=n,r=e,a=i.computed(()=>[ka.chip,ka[`chip--${t.variant}`],{[ka["chip--clickable"]]:t.clickable}]);function o(){t.clickable&&r("click")}function u(s){s.stopPropagation(),r("remove")}return(s,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(a.value),onClick:o},[s.thumbnailUrl||s.iconName?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(ka).chip__thumbnail)},[s.thumbnailUrl?(i.openBlock(),i.createElementBlock("img",{key:0,alt:s.thumbnailAlt||s.label,class:i.normalizeClass(i.unref(ka).chip__thumbnailImage),src:s.thumbnailUrl},null,10,lC)):s.iconName?(i.openBlock(),i.createBlock(i.unref(Fe),{key:1,class:i.normalizeClass(i.unref(ka).chip__icon),name:s.iconName,size:24},null,8,["class","name"])):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass(i.unref(ka).chip__label)},i.toDisplayString(s.label),3),s.removable?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:i.normalizeClass(i.unref(ka).chip__remove),onClick:u},[i.createVNode(i.unref(Fe),{name:"chip-close",size:4})],2)):i.createCommentVNode("",!0)],2))}}),ss={checkbox__label:"_checkbox__label_13m13_1",checkbox:"_checkbox_13m13_1",checkbox__input:"_checkbox__input_13m13_57",checkbox__box:"_checkbox__box_13m13_65",checkbox__disabled:"_checkbox__disabled_13m13_87",checkbox__checked:"_checkbox__checked_13m13_87",checkbox__error:"_checkbox__error_13m13_87"},cC=["for"],dC=["id","aria-invalid","checked","disabled","name","value"],fC=i.defineComponent({__name:"Checkbox",props:{id:{},name:{default:""},label:{default:""},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{default:""},modelValue:{type:Boolean,default:void 0}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,a=i.computed(()=>t.modelValue!==void 0?t.modelValue:t.checked),o=i.computed(()=>t.error&&!t.disabled);function u(s){if(t.disabled){s.preventDefault();return}const p=s.target.checked;r("update:modelValue",p),r("change",p)}return(s,d)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass([i.unref(ss).checkbox,{[i.unref(ss).checkbox__checked]:a.value,[i.unref(ss).checkbox__disabled]:s.disabled,[i.unref(ss).checkbox__error]:o.value}]),for:s.id},[i.createElementVNode("input",{id:s.id,type:"checkbox","aria-invalid":o.value||void 0,checked:a.value,class:i.normalizeClass(i.unref(ss).checkbox__input),disabled:s.disabled,name:s.name,value:s.value,onChange:u},null,42,dC),i.createElementVNode("span",{class:i.normalizeClass(i.unref(ss).checkbox__box)},[a.value?(i.openBlock(),i.createBlock(i.unref(Fe),{key:0,name:"line-check-netural",size:16})):i.createCommentVNode("",!0)],2),s.label?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(ss).checkbox__label)},i.toDisplayString(s.label),3)):i.createCommentVNode("",!0),i.renderSlot(s.$slots,"default")],10,cC))}}),C2={colorPreview:"_colorPreview_16zoj_36","colorPreview--default":"_colorPreview--default_16zoj_42","colorPreview--medium":"_colorPreview--medium_16zoj_46","colorPreview--small":"_colorPreview--small_16zoj_50",colorPreview__container:"_colorPreview__container_16zoj_55",colorPreview__swatch:"_colorPreview__swatch_16zoj_61"},pC=i.defineComponent({__name:"ColorPreview",props:{colors:{},size:{default:"default"}},setup(n){const e=n,t=i.computed(()=>[C2.colorPreview,C2[`colorPreview--${e.size}`]]);return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(t.value)},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(C2).colorPreview__container)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.colors,(o,u)=>(i.openBlock(),i.createElementBlock("div",{key:u,class:i.normalizeClass(i.unref(C2).colorPreview__swatch),style:i.normalizeStyle({backgroundColor:o})},null,6))),128))],2)],2))}}),hC={key:0,class:"color-swatch__transparent"},S7=mt(i.defineComponent({__name:"ColorSwatch",props:{color:{},isTransparent:{type:Boolean}},emits:["click"],setup(n){const e=n,t=i.computed(()=>{if(e.color.startsWith("#")&&e.color.length===9)return!0;if(e.color.startsWith("rgba")){const r=e.color.match(/[\d.]+\)$/);if(r)return parseFloat(r[0])<1}return!1});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:"color-swatch",onClick:a[0]||(a[0]=o=>r.$emit("click"))},[r.isTransparent||t.value?(i.openBlock(),i.createElementBlock("div",hC,[a[1]||(a[1]=i.createElementVNode("div",{class:"color-swatch__checkerboard"},null,-1)),t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"color-swatch__color-overlay",style:i.normalizeStyle({background:r.color})},null,4)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",{key:1,class:"color-swatch__color",style:i.normalizeStyle({background:r.color})},null,4))]))}}),[["__scopeId","data-v-a04ae8bf"]]),mC={class:"color-picker"},gC={class:"color-picker__header-wrapper"},yC={class:"color-picker__header"},bC={class:"color-picker__title"},_C={key:0,class:"color-picker__tabs"},wC={class:"color-picker__content-wrapper"},CC={class:"color-picker__gradient-wrapper"},EC={class:"color-picker__color-area"},vC={class:"color-picker__hue-wrapper"},kC={class:"color-picker__opacity-wrapper"},AC={class:"color-picker__hex-input-wrapper"},SC={key:0,class:"color-picker__preset-row"},DC={key:1,class:"color-picker__preset-row"},xC={key:2,class:"color-picker__preset-row"},D7="Save current color",TC=mt(i.defineComponent({__name:"ColorPicker",props:{color:{default:"#666666"},title:{default:"Text Color"},showSaveButton:{type:Boolean,default:!1},presetColors:{default:()=>["transparent","#000000","#333333","#666666","#999999","#CCCCCC","#FFFFFF","#F43736","#FF9800","#FFC207","#FFEB3B","#CDDC39","#8BC44A","#4CAF51","#009688","#07BCD4","#05AAF4","#3F52B5"]},firstRowCount:{default:10},showOpacityInHex:{type:Boolean,default:!0}},emits:["color-change","close"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(0),o=i.ref(0),u=i.ref(.4),s=i.ref(1),d=i.ref("666666"),p=i.ref([]),f=i.ref(!1),m=i.ref(null),y=i.ref(null),C=i.ref(null),S=i.computed(()=>{const N=t.presetColors||[],ee=[],Q=11,ne=t.firstRowCount;if(N.length===0)return ee;ee.push(N.slice(0,ne));for(let ue=ne;ue<N.length;ue+=Q)ee.push(N.slice(ue,ue+Q));return ee}),v=i.computed(()=>{const N=a.value,ee=1-Math.abs(N*6%2-1);let Q=0,ne=0,ue=0;return N<1/6?(Q=1,ne=ee):N<2/6?(Q=ee,ne=1):N<3/6?(ne=1,ue=ee):N<4/6?(ne=ee,ue=1):N<5/6?(Q=ee,ue=1):(Q=1,ue=ee),`rgb(${Math.round(Q*255)}, ${Math.round(ne*255)}, ${Math.round(ue*255)})`}),_=i.computed(()=>{const N=a.value,ee=o.value,Q=u.value,ne=Q*ee,ue=ne*(1-Math.abs(N*6%2-1)),F=Q-ne;let K=0,O=0,V=0;return N<1/6?(K=ne,O=ue):N<2/6?(K=ue,O=ne):N<3/6?(O=ne,V=ue):N<4/6?(O=ue,V=ne):N<5/6?(K=ue,V=ne):(K=ne,V=ue),K=Math.round((K+F)*255),O=Math.round((O+F)*255),V=Math.round((V+F)*255),`rgb(${K}, ${O}, ${V})`}),g=i.computed(()=>{const N=_.value.match(/\d+/g);return N?s.value<1?`rgba(${N[0]}, ${N[1]}, ${N[2]}, ${s.value})`:`rgb(${N[0]}, ${N[1]}, ${N[2]})`:_.value});function b(){if(s.value===0){d.value="";return}const N=_.value.match(/\d+/g);if(!N)return;const ee=N.map(Q=>parseInt(Q).toString(16).padStart(2,"0")).join("").toUpperCase();if(t.showOpacityInHex){const Q=Math.round(s.value*255).toString(16).padStart(2,"0").toUpperCase();d.value=ee+Q}else d.value=ee}function E(N){s.value===0&&(s.value=1);const ee=ue=>{if(!m.value)return;const F=m.value.getBoundingClientRect(),K=Math.max(0,Math.min(1,(ue.clientX-F.left)/F.width)),O=Math.max(0,Math.min(1,(ue.clientY-F.top)/F.height));o.value=K,u.value=1-O};ee(N);const Q=ue=>{ee(ue)},ne=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne)}function w(N){s.value===0&&(s.value=1);const ee=ue=>{if(!y.value)return;const F=y.value.getBoundingClientRect(),K=Math.max(0,Math.min(1,(ue.clientY-F.top)/F.height));a.value=K};ee(N);const Q=ue=>{ee(ue)},ne=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne)}function k(N){const ee=ue=>{if(!C.value)return;const F=C.value.getBoundingClientRect(),K=Math.max(0,Math.min(1,(ue.clientX-F.left)/F.width));s.value=1-K};ee(N);const Q=ue=>{ee(ue)},ne=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne)}function A(N){const ee=N.startsWith("#")?N.slice(1):N,Q=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(ee),ne=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(ee),ue=ne||Q;if(!ue){const be=/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/.exec(N);if(be){const H=parseInt(be[1])/255,se=parseInt(be[2])/255,fe=parseInt(be[3])/255,Ce=be[4]?parseFloat(be[4]):1,Ee=Math.max(H,se,fe),Ne=Math.min(H,se,fe),Ue=Ee-Ne;let Ze=0;Ue!==0&&(Ee===H?Ze=((se-fe)/Ue+(se<fe?6:0))/6:Ee===se?Ze=((fe-H)/Ue+2)/6:Ze=((H-se)/Ue+4)/6);const ge=Ee===0?0:Ue/Ee,tt=Ee;a.value=Ze,o.value=ge,u.value=tt,s.value=Ce,b();return}return}const F=parseInt(ue[1],16)/255,K=parseInt(ue[2],16)/255,O=parseInt(ue[3],16)/255;ne&&ue[4]?s.value=parseInt(ue[4],16)/255:s.value=1;const V=Math.max(F,K,O),L=Math.min(F,K,O),z=V-L;let ie=0;z!==0&&(V===F?ie=((K-O)/z+(K<O?6:0))/6:V===K?ie=((O-F)/z+2)/6:ie=((F-K)/z+4)/6);const ae=V===0?0:z/V,q=V;a.value=ie,o.value=ae,u.value=q;const he=N.replace(/^#/,"");d.value=he.slice(0,6).toUpperCase()}function $(N){const ee=t.showOpacityInHex?8:6,Q=String(N).replace(/[^0-9A-Fa-f]/g,"").slice(0,ee).toUpperCase();d.value=Q,t.showOpacityInHex?(Q.length===6||Q.length===8)&&A(Q):Q.length===6&&A(Q)}function M(N){var ue;const ee=((ue=N.clipboardData)==null?void 0:ue.getData("text"))||"",Q=t.showOpacityInHex?8:6,ne=ee.replace(/^#/,"").replace(/[^0-9A-Fa-f]/g,"").slice(0,Q).toUpperCase();t.showOpacityInHex?ne.length===6||ne.length===8?(d.value=ne,A(ne),N.preventDefault()):ne.length>0&&(d.value=ne,N.preventDefault()):ne.length===6?(d.value=ne,A(ne),N.preventDefault()):ne.length>0&&(d.value=ne,N.preventDefault())}function Z(){const N=t.showOpacityInHex?8:6;d.value.length!==N&&b()}function J(N){s.value=N}function oe(){const N=_.value.match(/\d+/g);if(!N)return"ffffff";const ee=N.map(ne=>parseInt(ne).toString(16).padStart(2,"0")).join("").toUpperCase(),Q=Math.round(s.value*255).toString(16).padStart(2,"0").toUpperCase();return`#${ee}${Q}`}function U(){const N=oe();p.value.includes(N)||p.value.push(N)}function te(N){A(N)}function P(){d.value="",s.value=0,a.value=0,o.value=0,u.value=.4,r("color-change","transparent")}return i.watch([a,o,u,s],()=>{b(),f.value||r("color-change",g.value)}),i.watch(()=>t.color,N=>{N&&(f.value=!0,N.toLowerCase()==="transparent"?P():A(N),setTimeout(()=>{f.value=!1},0))},{immediate:!0}),(N,ee)=>(i.openBlock(),i.createElementBlock("div",mC,[i.createElementVNode("div",gC,[i.createElementVNode("div",yC,[i.createElementVNode("h3",bC,i.toDisplayString(N.title),1)]),N.$slots.tabs?(i.openBlock(),i.createElementBlock("div",_C,[i.renderSlot(N.$slots,"tabs",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",wC,[i.createElementVNode("div",CC,[i.createElementVNode("div",EC,[i.createElementVNode("div",{ref_key:"colorPickerRef",ref:m,class:"color-picker__color-canvas",style:i.normalizeStyle({background:`linear-gradient(to bottom, transparent, black),
|
|
65
65
|
linear-gradient(to right, white, ${v.value})`}),onMousedown:E},[i.createElementVNode("div",{class:"color-picker__color-indicator",style:i.normalizeStyle({left:`${o.value*100}%`,top:`${(1-u.value)*100}%`})},null,4)],36)]),i.createElementVNode("div",vC,[i.createElementVNode("div",{ref_key:"hueSliderRef",ref:y,class:"color-picker__hue-slider",onMousedown:w},[i.createElementVNode("div",{class:"color-picker__hue-indicator",style:i.normalizeStyle({top:`${a.value*100}%`})},null,4)],544)])]),i.createElementVNode("div",kC,[i.createElementVNode("div",{ref_key:"opacitySliderRef",ref:C,class:"color-picker__opacity-slider",onMousedown:k},[ee[1]||(ee[1]=i.createElementVNode("div",{class:"color-picker__opacity-checkerboard"},null,-1)),i.createElementVNode("div",{class:"color-picker__opacity-gradient",style:i.normalizeStyle({background:`linear-gradient(to right, ${_.value}, transparent)`})},null,4),i.createElementVNode("div",{class:"color-picker__opacity-handle",style:i.normalizeStyle({left:`${(1-s.value)*100}%`})},null,4)],544)]),i.createElementVNode("div",AC,[i.createVNode(va,{id:"color-picker-hex-input",name:"hex-input","placeholder-text":"",type:"text","helper-message-status":!1,"label-status":!1,modelValue:d.value,"onUpdate:modelValue":ee[0]||(ee[0]=Q=>d.value=Q),onBlur:Z,onInput:$,onPaste:M},null,8,["modelValue"])]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(S.value,(Q,ne)=>(i.openBlock(),i.createElementBlock("div",{key:`preset-row-${ne}`,class:"color-picker__preset-row"},[ne===0?(i.openBlock(),i.createElementBlock("div",{key:0,class:"color-picker__no-color",onClick:P},[i.createVNode(i.unref(Fe),{name:"no-color",size:14})])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Q,(ue,F)=>(i.openBlock(),i.createBlock(S7,{key:`preset-${ne}-${F}`,color:ue,"is-transparent":ue==="transparent",onClick:K=>ue==="transparent"?J(0):A(ue)},null,8,["color","is-transparent","onClick"]))),128))]))),128)),S.value.length===0?(i.openBlock(),i.createElementBlock("div",SC,[i.createElementVNode("div",{class:"color-picker__no-color",onClick:P},[i.createVNode(i.unref(Fe),{name:"no-color",size:14})])])):i.createCommentVNode("",!0),N.showSaveButton&&p.value.length>0?(i.openBlock(),i.createElementBlock("div",DC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.value,(Q,ne)=>(i.openBlock(),i.createBlock(S7,{key:`saved-${ne}`,color:Q,onClick:ue=>te(Q)},null,8,["color","onClick"]))),128)),i.createElementVNode("button",{class:"color-picker__save-button",title:D7,onClick:U})])):N.showSaveButton?(i.openBlock(),i.createElementBlock("div",xC,[i.createElementVNode("button",{class:"color-picker__save-button",title:D7,onClick:U})])):i.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-2e67a401"]]),$C=["id","aria-orientation"],E2=mt(i.defineComponent({__name:"OnsiteDivider",props:{orientation:{default:"horizontal"},id:{default:void 0},length:{default:void 0}},setup(n){const e=n,t=i.computed(()=>e.length!==void 0),r=i.computed(()=>[`ab-onsite-divider--${e.orientation}`,{"ab-onsite-divider--fixed-length":t.value}]),a=i.computed(()=>{if(!t.value)return;const o=`${e.length}px`;return e.orientation==="vertical"?{height:o,minHeight:o}:{width:o,minWidth:o}});return(o,u)=>(i.openBlock(),i.createElementBlock("div",{id:o.id,class:i.normalizeClass(["ab-onsite-divider",r.value]),role:"separator","aria-orientation":o.orientation,style:i.normalizeStyle(a.value)},null,14,$C))}}),[["__scopeId","data-v-f2e71348"]]);function s1(n="ui"){return`${n}-${Math.random().toString(36).slice(2,10)}`}const BC=["id","aria-labelledby"],RC={class:"ab-onsite-drawer__header"},LC=["aria-label"],FC={class:"ab-onsite-drawer__titles"},OC=["id"],NC={key:0,class:"ab-onsite-drawer__subtitle"},IC={class:"ab-onsite-drawer__actions"},PC=["aria-label"],MC={key:0,class:"ab-onsite-drawer__footer"},VC=mt(i.defineComponent({__name:"OnsiteDrawer",props:{modelValue:{type:Boolean},title:{},subtitle:{default:void 0},width:{default:560},bodyMaxHeight:{default:void 0},showBack:{type:Boolean,default:!1},closeOnEsc:{type:Boolean,default:!1},id:{default:void 0},closeAriaLabel:{default:"Close"},backAriaLabel:{default:"Back"}},emits:["update:modelValue","close","back"],setup(n,{emit:e}){const t=n,r=e,a=s1("ab-onsite-drawer-title"),o=i.computed(()=>({width:`${t.width}px`})),u=i.computed(()=>t.bodyMaxHeight===void 0?{}:{maxHeight:`${t.bodyMaxHeight}px`});function s(){r("update:modelValue",!1),r("close")}function d(){r("back")}function p(m){m.key==="Escape"&&s()}function f(){document.removeEventListener("keydown",p)}return i.watch(()=>t.modelValue&&t.closeOnEsc,m=>{f(),m&&document.addEventListener("keydown",p)},{immediate:!0}),i.onBeforeUnmount(f),(m,y)=>m.modelValue?(i.openBlock(),i.createElementBlock("div",{key:0,id:m.id,"aria-modal":"false",class:"ab-onsite-drawer",role:"dialog","aria-labelledby":i.unref(a),style:i.normalizeStyle(o.value)},[i.createElementVNode("header",RC,[m.showBack?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ab-onsite-drawer__icon-button ab-onsite-drawer__back",type:"button","aria-label":m.backAriaLabel,onClick:d},[i.createVNode(Fe,{name:"line-arrow-left",size:24})],8,LC)):i.createCommentVNode("",!0),i.createElementVNode("div",FC,[i.createElementVNode("h2",{id:i.unref(a),class:"ab-onsite-drawer__title"},i.toDisplayString(m.title),9,OC),m.subtitle?(i.openBlock(),i.createElementBlock("p",NC,i.toDisplayString(m.subtitle),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",IC,[i.renderSlot(m.$slots,"header-actions",{},void 0,!0),i.createElementVNode("button",{class:"ab-onsite-drawer__icon-button ab-onsite-drawer__close",type:"button","aria-label":m.closeAriaLabel,onClick:s},[i.createVNode(Fe,{name:"line-close-netural",size:24})],8,PC)])]),i.createElementVNode("div",{class:i.normalizeClass(["ab-onsite-drawer__body",{"ab-onsite-drawer__body--empty":m.$slots.empty}]),style:i.normalizeStyle(u.value)},[m.$slots.empty?i.renderSlot(m.$slots,"empty",{key:0},void 0,!0):i.renderSlot(m.$slots,"default",{key:1},void 0,!0)],6),m.$slots.footer?(i.openBlock(),i.createElementBlock("footer",MC,[i.renderSlot(m.$slots,"footer",{},void 0,!0)])):i.createCommentVNode("",!0)],12,BC)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a0fff7db"]]),qC={class:"ab-onsite-drawer-actions"},zC={class:"ab-onsite-drawer-actions__buttons"},jC=mt(i.defineComponent({__name:"OnsiteDrawerActions",props:{cancelText:{},submitText:{},submitDisabled:{type:Boolean,default:!1},submitColor:{default:"primary"},cancelAttrs:{default:()=>({})},submitAttrs:{default:()=>({})}},emits:["cancel","submit"],setup(n,{emit:e}){const t=n,r=e;function a(){r("cancel")}function o(){t.submitDisabled||r("submit")}return(u,s)=>(i.openBlock(),i.createElementBlock("div",qC,[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createElementVNode("div",zC,[i.createVNode(Bt,i.mergeProps(u.cancelAttrs,{color:"secondary",variant:"text",label:u.cancelText,onClick:a}),null,16,["label"]),i.createVNode(Bt,i.mergeProps(u.submitAttrs,{variant:"solid",color:u.submitColor,disabled:u.submitDisabled,label:u.submitText,onClick:o}),null,16,["color","disabled","label"])])]))}}),[["__scopeId","data-v-ff714f70"]]),En={menu:"_menu_1sfnf_1",dropdown:"_dropdown_1sfnf_1",dropdown__valueContent:"_dropdown__valueContent_1sfnf_50","dropdown__valueContent--open":"_dropdown__valueContent--open_1sfnf_58",dropdown__label:"_dropdown__label_1sfnf_61",dropdown__value:"_dropdown__value_1sfnf_50",dropdown__placeholder:"_dropdown__placeholder_1sfnf_69",dropdown__arrowIcon:"_dropdown__arrowIcon_1sfnf_77",menu__searchContainer:"_menu__searchContainer_1sfnf_92",menu__searchInputWrap:"_menu__searchInputWrap_1sfnf_96",menu__searchInput:"_menu__searchInput_1sfnf_96","menu__searchInput--error":"_menu__searchInput--error_1sfnf_112",menu__errorMessage:"_menu__errorMessage_1sfnf_115",menu__addButton:"_menu__addButton_1sfnf_122",menu__itemContainer:"_menu__itemContainer_1sfnf_130",menu__item:"_menu__item_1sfnf_130","menu__item--active":"_menu__item--active_1sfnf_169"},UC=["for"],HC=["placeholder"],WC=["onClick"],GC=i.defineComponent({__name:"DropdownMenu",props:{id:{},label:{},modelValue:{default:""},menuHeight:{default:154},placeholder:{},addable:{type:Boolean,default:!1},addButtonText:{},searchable:{type:Boolean,default:!1},searchPlaceHolder:{},items:{},validateAddItem:{type:Function,default:()=>null}},emits:["update:modelValue","add-error","item-added","select-item"],setup(n,{emit:e}){const t=E3,r=n,a=e,o=i.ref(),u=i.ref(),s=i.ref(!1),d=i.ref(null),p=i.ref(""),f=i.ref(null),m=i.ref({x:0,y:0,width:0,shouldOpenUp:!1,height:r.menuHeight}),y=i.reactive([...r.items]),C=i.reactive([...r.items]),S=()=>{if(!o.value)return;const{offsetTop:Z,offsetLeft:J,offsetWidth:oe}=o.value,U=window.innerHeight,te=Z+o.value.offsetHeight,P=te+r.menuHeight>U;m.value={x:J+window.scrollX,y:P?Z+window.scrollY:te+window.scrollY,width:oe,shouldOpenUp:P,height:r.menuHeight}},v=()=>{S(),s.value=!s.value},_=()=>{f.value=null,p.value="",y.splice(0,y.length,...C)},g=()=>{s.value=!1,_()},b=Z=>{d.value=Z,a("select-item",Z),a("update:modelValue",Z.value),g()},E=()=>{const Z=p.value.trim(),J=r.validateAddItem(Z,C);if(J){f.value=J,a("add-error",J);return}const oe={text:Z,value:Z};C.push(oe),_(),a("item-added",oe)},w=()=>{const Z=_2(C,"text",p.value);y.splice(0,y.length,...Z)},k=()=>{f.value=""},A=i.computed(()=>({top:m.value.shouldOpenUp?`${m.value.y-10}px`:`${m.value.y}px`,left:`${m.value.x}px`,width:`${m.value.width}px`,height:`${r.menuHeight}px`}));i.onMounted(()=>{if(S(),r.modelValue){const Z=C.find(J=>J.value===r.modelValue);Z&&(d.value=Z)}});const $=i.computed(()=>d.value?d.value.text:"");i.watch(()=>r.modelValue,Z=>{var J;if(((J=d.value)==null?void 0:J.value)!==Z){const oe=C.find(U=>U.value===Z);oe&&(d.value=oe)}}),i.watch(()=>r.items,Z=>{C.splice(0,C.length,...Z),y.splice(0,y.length,...Z)},{deep:!0});const M=i.ref({handler:g,exclude:[o,u]});return(Z,J)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref_key:"dropdownRef",ref:o,class:i.normalizeClass(i.unref(En).dropdown)},[Z.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:i.normalizeClass(i.unref(En).dropdown__label),for:Z.id},i.toDisplayString(Z.label),11,UC)):i.createCommentVNode("",!0),i.createElementVNode("button",{class:i.normalizeClass([i.unref(En).dropdown__valueContent,{[i.unref(En)["dropdown__valueContent--open"]]:s.value}]),onClick:v},[i.createElementVNode("span",{class:i.normalizeClass(i.unref(En).dropdown__value)},i.toDisplayString($.value),3),Z.placeholder&&!$.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(En).dropdown__placeholder)},i.toDisplayString(Z.placeholder),3)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{fill:"none",height:"17",viewBox:"0 0 16 17",width:"16",xmlns:"http://www.w3.org/2000/svg",class:i.normalizeClass(i.unref(En).dropdown__arrowIcon)},J[2]||(J[2]=[i.createElementVNode("path",{d:"M8 11.2021L4.5359 6.70215L11.4641 6.70215L8 11.2021Z",fill:"#91949F"},null,-1)]),2))],2)],2),i.withDirectives((i.openBlock(),i.createElementBlock("div",{ref_key:"menuRef",ref:u,class:i.normalizeClass(i.unref(En).menu),style:i.normalizeStyle(A.value),onClick:J[1]||(J[1]=i.withModifiers(()=>{},["prevent"]))},[r.searchable?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(En).menu__searchContainer)},[i.createElementVNode("div",{class:i.normalizeClass(i.unref(En).menu__searchInputWrap)},[i.withDirectives(i.createElementVNode("input",{type:"text",class:i.normalizeClass([i.unref(En).menu__searchInput,{[i.unref(En)["menu__searchInput--error"]]:f.value}]),placeholder:Z.searchPlaceHolder,"onUpdate:modelValue":J[0]||(J[0]=oe=>p.value=oe),onFocus:k,onInput:w},null,42,HC),[[i.vModelText,p.value]]),f.value?(i.openBlock(),i.createElementBlock("p",{key:0,class:i.normalizeClass(i.unref(En).menu__errorMessage)},i.toDisplayString(f.value),3)):i.createCommentVNode("",!0)],2),r.addable?(i.openBlock(),i.createElementBlock("button",{key:0,class:i.normalizeClass(i.unref(En).menu__addButton),onClick:E},i.toDisplayString(Z.addButtonText),3)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass(i.unref(En).menu__itemContainer)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y,(oe,U)=>(i.openBlock(),i.createElementBlock("li",{key:`${oe.value}-${U}`,class:i.normalizeClass([i.unref(En).menu__item,{[i.unref(En)["menu__item--active"]]:d.value&&oe.value===d.value.value}]),onClick:te=>b(oe)},i.toDisplayString(oe.text),11,WC))),128))],2)],6)),[[i.vShow,s.value],[i.unref(t),M.value]])],64))}}),ZC=["aria-current","title"],YC={class:"ab-onsite-element-tree-item__label"},o1=mt(i.defineComponent({__name:"OnsiteElementTreeItem",props:{label:{},title:{default:void 0},state:{default:"default"}},emits:["select","hover","leave"],setup(n,{emit:e}){const t=e;return(r,a)=>(i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["ab-onsite-element-tree-item",`ab-onsite-element-tree-item--${r.state}`]),type:"button","aria-current":r.state==="selected"?"true":void 0,title:r.title,onClick:a[0]||(a[0]=o=>t("select",o)),onMouseenter:a[1]||(a[1]=o=>t("hover",o)),onMouseleave:a[2]||(a[2]=o=>t("leave",o))},[i.createElementVNode("span",YC,i.toDisplayString(r.label),1)],42,ZC))}}),[["__scopeId","data-v-2ef16229"]]),KC={key:0,class:"ab-onsite-element-tree__empty"},XC={class:"ab-onsite-element-tree__empty-text"},JC={class:"ab-onsite-element-tree__inline"},QC=["title","onMouseenter","onMouseleave"],eE=220,tE=240,nE=mt(i.defineComponent({__name:"OnsiteElementTree",props:{items:{},children:{default:()=>[]},selectedKey:{default:void 0},emptyText:{},moreLabel:{}},emits:["select","hover","leave"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(null),o=i.ref(null),u=i.ref(null),s=i.computed(()=>t.items.length===0),d=i.computed(()=>u.value===null?t.items:t.items.slice(0,u.value)),p=i.computed(()=>u.value===null?[]:t.items.slice(u.value)),f=i.computed(()=>[...p.value,...t.children]),m=i.computed(()=>f.value.length>0),y=i.computed(()=>f.value.map(J=>({text:J.label,value:String(J.key)}))),C=i.computed(()=>new Map(f.value.map(J=>[String(J.key),J]))),S=i.computed(()=>t.selectedKey===void 0?"":String(t.selectedKey));function v(J){return t.selectedKey!==void 0&&J.key===t.selectedKey}function _(J){return C.value.get(J)}function g(J){const oe=_(J.value);oe&&r("select",oe)}function b(J){const oe=_(J.value);oe&&r("hover",oe)}function E(J){const oe=_(J.value);oe&&r("leave",oe)}function w(J){return J.offsetWidth??Math.ceil(J.getBoundingClientRect().width)}function k(J){var U;const oe=(U=o.value)==null?void 0:U.querySelector(J);return oe?w(oe):0}function A(){const J=a.value,oe=o.value;if(!J||!oe)return;const U=J.clientWidth;if(U<=0){u.value=null;return}const te=Array.from(oe.querySelectorAll(".ab-onsite-element-tree__measure-item"),ue=>ue.offsetWidth),P=k(".ab-onsite-element-tree__measure-separator"),N=k(".ab-onsite-element-tree__measure-more"),ee=(ue,F)=>{const K=ue+(F?1:0);return te.slice(0,ue).reduce((V,L)=>V+L,0)+(F?N:0)+Math.max(K-1,0)*P},Q=t.children.length>0;if(ee(te.length,Q)<=U){u.value=te.length;return}let ne=te.length-1;for(;ne>0&&ee(ne,!0)>U;)ne--;u.value=ne}let $=null;function M(){$==null||$.disconnect(),!(typeof ResizeObserver>"u")&&($=new ResizeObserver(()=>A()),a.value&&$.observe(a.value),o.value&&$.observe(o.value))}function Z(){M(),A()}return i.onMounted(Z),i.watch(()=>[t.items,t.children,t.moreLabel],()=>{u.value=null,i.nextTick(Z)},{deep:!0}),i.onBeforeUnmount(()=>{$==null||$.disconnect(),$=null}),(J,oe)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ab-onsite-element-tree",{"ab-onsite-element-tree--empty":s.value}])},[s.value?(i.openBlock(),i.createElementBlock("div",KC,[i.createVNode(Fe,{class:"ab-onsite-element-tree__empty-icon",name:"filled-info-circle",size:24}),i.createElementVNode("span",XC,i.toDisplayString(J.emptyText),1)])):(i.openBlock(),i.createElementBlock("nav",{key:1,ref_key:"listRef",ref:a,class:"ab-onsite-element-tree__list"},[i.createElementVNode("div",JC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(U,te)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:U.key},[te>0?(i.openBlock(),i.createBlock(Fe,{key:0,"aria-hidden":"true",class:"ab-onsite-element-tree__separator",name:"list-item-arrow-right",size:24})):i.createCommentVNode("",!0),i.createVNode(o1,{class:"ab-onsite-element-tree__item",label:U.label,state:v(U)?"selected":"default",title:U.title,onHover:P=>r("hover",U),onLeave:P=>r("leave",U),onSelect:P=>r("select",U)},null,8,["label","state","title","onHover","onLeave","onSelect"])],64))),128)),i.createElementVNode("div",{ref_key:"measureRef",ref:o,inert:"","aria-hidden":"true",class:"ab-onsite-element-tree__measure"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(J.items,U=>(i.openBlock(),i.createBlock(o1,{key:U.key,class:"ab-onsite-element-tree__measure-item",tabindex:"-1",label:U.label},null,8,["label"]))),128)),i.createVNode(Fe,{class:"ab-onsite-element-tree__measure-separator",name:"list-item-arrow-right",size:24}),i.createVNode(o1,{class:"ab-onsite-element-tree__measure-more",tabindex:"-1",label:J.moreLabel},null,8,["label"])],512)]),m.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[d.value.length>0?(i.openBlock(),i.createBlock(Fe,{key:0,"aria-hidden":"true",class:"ab-onsite-element-tree__separator",name:"list-item-arrow-right",size:24})):i.createCommentVNode("",!0),i.createVNode(w2,{class:"ab-onsite-element-tree__more",items:y.value,"menu-height":tE,"model-value":S.value,width:eE,onSelectItem:g},{trigger:i.withCtx(({isOpen:U,toggle:te})=>[i.createVNode(o1,{"aria-haspopup":"menu",class:"ab-onsite-element-tree__more-trigger","aria-expanded":U?"true":"false","aria-label":J.moreLabel,label:J.moreLabel,state:U?"hover":"default",onSelect:te},null,8,["aria-expanded","aria-label","label","state","onSelect"])]),item:i.withCtx(({item:U})=>{var te;return[i.createElementVNode("span",{class:"ab-onsite-element-tree__menu-item",title:(te=_(U.value))==null?void 0:te.title,onMouseenter:P=>b(U),onMouseleave:P=>E(U)},i.toDisplayString(U.text),41,QC)]}),_:1},8,["items","model-value"])],64)):i.createCommentVNode("",!0)],512))],2))}}),[["__scopeId","data-v-9b43262b"]]),rE=["id"],iE={class:"ab-onsite-field-message__text"},aE=mt(i.defineComponent({__name:"OnsiteFieldMessage",props:{text:{},status:{default:"error"},id:{default:void 0}},setup(n){return(e,t)=>e.text?(i.openBlock(),i.createElementBlock("p",{key:0,id:e.id,class:i.normalizeClass(["ab-onsite-field-message",`ab-onsite-field-message--${e.status}`]),role:"alert"},[i.createVNode(Fe,{class:"ab-onsite-field-message__icon",name:e.status==="error"?"filled-error-box-colored":"filled-caution-triangle-colored",size:16},null,8,["name"]),i.createElementVNode("span",iE,i.toDisplayString(e.text),1)],10,rE)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-3672a7d7"]]),sE=["data-testid"],oE={key:0,class:"in-cascading-menu__search"},lE={key:0,class:"in-cascading-menu__state in-cascading-menu__state--loading"},uE={key:0,class:"in-cascading-menu__state-text"},cE={key:0,class:"in-cascading-menu__state in-cascading-menu__state--empty"},dE={class:"in-cascading-menu__state-text"},fE={key:1,class:"in-cascading-menu__flat"},pE={class:"in-cascading-menu__group-header"},hE=["data-testid","disabled","onClick"],mE={class:"in-cascading-menu__list-item-content"},gE={class:"in-cascading-menu__list-item-label"},yE={key:0,class:"in-cascading-menu__list-item-subtitle"},bE={key:0,class:"in-cascading-menu__list-item-meta"},_E={key:0,class:"in-cascading-menu__group-header"},wE=["data-item-id","data-testid","onClick","onFocus","onMouseenter"],CE={class:"in-cascading-menu__item-label"},EE=["data-testid"],vE={key:0,class:"in-cascading-menu__search"},kE={class:"in-cascading-list__body"},AE={key:0,class:"in-cascading-menu__state in-cascading-menu__state--loading"},SE={key:0,class:"in-cascading-menu__state-text"},DE={key:1,class:"in-cascading-menu__state in-cascading-menu__state--error"},xE={class:"in-cascading-menu__state-text in-cascading-menu__state-text--error"},TE={key:2,class:"in-cascading-menu__state in-cascading-menu__state--empty"},$E={class:"in-cascading-menu__state-text"},BE={key:3,class:"in-cascading-menu__state in-cascading-menu__state--empty"},RE={key:0,class:"in-cascading-menu__state-text"},LE={key:4,class:"in-cascading-list__items",role:"listbox"},FE=["data-testid","onClick"],OE={class:"in-cascading-menu__list-item-content"},NE={class:"in-cascading-menu__list-item-label"},IE={key:0,class:"in-cascading-menu__list-item-subtitle"},PE={key:0,class:"in-cascading-menu__list-item-meta"},ME=mt(i.defineComponent({__name:"CascadingMenu",props:{open:{type:Boolean},anchor:{},items:{},width:{default:220},listWidth:{default:240},listMaxHeight:{default:400},menuMaxHeight:{default:void 0},loadingText:{default:""},menuStyle:{default:()=>({})},listStyle:{default:()=>({})},teleportTarget:{default:"body"},submenuPlacement:{default:"right"},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search"},emptySearchText:{default:"No Search Result"},loading:{type:Boolean,default:!1},selectedItemId:{default:null},selectedSubItemId:{default:null},menuTestId:{default:void 0},listTestId:{default:void 0},searchInputId:{default:void 0}},emits:["update:open","item-click","item-expand","select","update:search-query"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(null),o=i.ref(null),u=i.ref(null),s=i.ref(""),d=i.ref(""),p=new Map,f=`in-cascading-menu-search-${Math.random().toString(36).slice(2,9)}`,m=i.computed(()=>t.searchInputId??f),y=i.computed(()=>`${m.value}-child`),C=i.computed(()=>t.items.flatMap(ae=>"kind"in ae&&ae.kind==="group"?[{type:"group-header",label:ae.label},...ae.items.map(q=>({type:"item",item:q}))]:[{type:"item",item:ae}])),S=i.computed(()=>C.value.filter(ae=>ae.type==="item").map(ae=>ae.item)),v=i.computed(()=>t.searchable),_=i.computed(()=>v.value&&d.value.trim().length>0),g=i.computed(()=>{const ae={width:`${t.width}px`,maxWidth:`${t.width}px`};return t.menuMaxHeight&&(ae.maxHeight=`${t.menuMaxHeight}px`),ae}),b=i.computed(()=>({width:`${t.listWidth}px`})),E=i.computed(()=>u.value?S.value.find(ae=>ae.id===u.value)??null:null),w=i.computed(()=>{var ae;return((ae=E.value)==null?void 0:ae.subList)??null}),k=i.computed(()=>u.value?p.get(u.value)??null:null),A=i.computed(()=>t.open&&!_.value&&w.value!==null),$=i.computed(()=>t.anchor),{floatingStyles:M}=i1($,a,{placement:"bottom-start",strategy:"fixed",whileElementsMounted:e1,middleware:[t1(3),r1(),n1({padding:8})]}),Z=i.computed(()=>t.submenuPlacement==="left"),J=i.computed(()=>Z.value?"left-start":"right-start"),oe=i.computed(()=>Z.value?["right-start"]:["left-start"]),U=i.computed(()=>[t1({mainAxis:0,crossAxis:-8}),r1({fallbackPlacements:oe.value}),n1({padding:8}),Y_({apply({availableHeight:ae,elements:q}){Object.assign(q.floating.style,{maxHeight:`${Math.min(ae-8,t.listMaxHeight)}px`})}})]),{floatingStyles:te}=i1(k,o,{placement:J,strategy:"fixed",whileElementsMounted:e1,middleware:U}),P=i.computed(()=>w.value?w.value.searchable?_2(w.value.items,"label",s.value):w.value.items:[]),N=i.computed(()=>{if(!_.value)return[];const ae=d.value,q=he=>{if(!he.subList)return null;const be=_2(he.subList.items,"label",ae);return be.length===0?null:{parentId:he.id,parentLabel:he.label,items:be}};return t.items.flatMap(he=>"kind"in he&&he.kind==="group"?he.items.map(q):[q(he)]).filter(he=>he!==null)}),ee=i.computed(()=>_.value&&N.value.length===0);function Q(ae,q){q instanceof HTMLElement?p.set(ae,q):p.delete(ae)}function ne(ae){if(_.value)return;const q=u.value===ae.id;u.value=ae.id,s.value="",ae.subList&&!q&&r("item-expand",ae.id)}function ue(ae){if(ae.subList){u.value=ae.id;return}r("item-click",ae.id)}function F(ae,q){q.disabled||r("select",{itemId:ae,subItemId:q.id})}function K(ae){E.value&&F(E.value.id,ae)}function O(ae){const q=String(ae);d.value=q,u.value=null,s.value="",r("update:search-query",q)}function V(ae){s.value=String(ae)}function L(ae){var he,be;if(!ae)return!1;if((he=a.value)!=null&&he.contains(ae)||(be=o.value)!=null&&be.contains(ae))return!0;const{anchor:q}=t;return q&&"contains"in q&&typeof q.contains=="function"?q.contains(ae):!1}function z(ae){t.open&&(L(ae.target)||r("update:open",!1))}function ie(ae){if(!(!t.open||ae.key!=="Escape")){if(d.value||s.value){ae.stopPropagation(),d.value="",s.value="",u.value=null;return}r("update:open",!1)}}return i.watch(()=>t.open,ae=>{ae?(document.addEventListener("pointerdown",z,!0),window.addEventListener("keydown",ie)):(document.removeEventListener("pointerdown",z,!0),window.removeEventListener("keydown",ie),u.value=null,s.value="",d.value="",p.clear())},{immediate:!0}),i.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",z,!0),window.removeEventListener("keydown",ie)}),(ae,q)=>(i.openBlock(),i.createBlock(i.Teleport,{to:ae.teleportTarget},[ae.open?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"menuRef",ref:a,class:"in-cascading-menu",role:"menu","data-testid":ae.menuTestId,style:i.normalizeStyle([i.unref(M),g.value,ae.menuStyle])},[ae.searchable?(i.openBlock(),i.createElementBlock("div",oE,[i.createVNode(va,{id:m.value,"right-icon-status":"",name:"cascading-menu-search","right-icon-name":"line-search",type:"text","helper-message-status":!1,"label-status":!1,"model-value":d.value,"placeholder-text":ae.searchPlaceholder,"onUpdate:modelValue":O},null,8,["id","model-value","placeholder-text"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["in-cascading-menu__body",{"is-flat-search":_.value}])},[ae.loading?(i.openBlock(),i.createElementBlock("div",lE,[i.createVNode(Fe,{class:"in-cascading-menu__spinner-icon",name:"line-spinner",size:24}),ae.loadingText?(i.openBlock(),i.createElementBlock("span",uE,i.toDisplayString(ae.loadingText),1)):i.createCommentVNode("",!0)])):_.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[ee.value?(i.openBlock(),i.createElementBlock("div",cE,[i.createVNode(Fe,{name:"line-no-search-result",size:40}),i.createElementVNode("span",dE,i.toDisplayString(ae.emptySearchText),1)])):(i.openBlock(),i.createElementBlock("div",fE,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(N.value,he=>(i.openBlock(),i.createElementBlock("section",{key:he.parentId,class:"in-cascading-menu__flat-group"},[i.createElementVNode("h4",pE,i.toDisplayString(he.parentLabel),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(he.items,be=>(i.openBlock(),i.createElementBlock("button",{key:`${he.parentId}-${be.id}`,class:i.normalizeClass(["in-cascading-menu__list-item",{"is-disabled":be.disabled,"is-selected":ae.selectedSubItemId===be.id}]),role:"menuitem",type:"button","data-testid":be.testId,disabled:be.disabled,onClick:H=>F(he.parentId,be)},[i.createElementVNode("span",mE,[i.createElementVNode("span",gE,i.toDisplayString(be.label),1),be.subtitle?(i.openBlock(),i.createElementBlock("span",yE,i.toDisplayString(be.subtitle),1)):i.createCommentVNode("",!0)]),be.meta?(i.openBlock(),i.createElementBlock("span",bE,i.toDisplayString(be.meta),1)):i.createCommentVNode("",!0)],10,hE))),128))]))),128))]))],64)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(C.value,(he,be)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`e-${be}`},[he.type==="group-header"?(i.openBlock(),i.createElementBlock("h4",_E,i.toDisplayString(he.label),1)):(i.openBlock(),i.createElementBlock("button",{key:1,ref_for:!0,ref:H=>Q(he.item.id,H),class:i.normalizeClass(["in-cascading-menu__item",{"is-active":u.value===he.item.id,"is-selected":ae.selectedItemId===he.item.id}]),role:"menuitem",type:"button","data-item-id":he.item.id,"data-testid":he.item.testId,onClick:H=>ue(he.item),onFocus:H=>ne(he.item),onMouseenter:H=>ne(he.item)},[i.createElementVNode("span",CE,i.toDisplayString(he.item.label),1),he.item.hasChildren||he.item.subList?(i.openBlock(),i.createBlock(Fe,{key:0,class:"in-cascading-menu__item-chevron",name:"line-chevron-small-down",size:24})):i.createCommentVNode("",!0)],42,wE))],64))),128))],2)],12,sE)):i.createCommentVNode("",!0),A.value&&w.value?(i.openBlock(),i.createElementBlock("div",{key:1,ref_key:"listRef",ref:o,class:"in-cascading-list",role:"dialog","data-testid":ae.listTestId??w.value.testId,style:i.normalizeStyle([i.unref(te),b.value,ae.listStyle])},[w.value.searchable?(i.openBlock(),i.createElementBlock("div",vE,[i.createVNode(va,{id:y.value,"right-icon-status":"",name:"cascading-menu-child-search","right-icon-name":"line-search",type:"text","helper-message-status":!1,"label-status":!1,"model-value":s.value,"placeholder-text":w.value.searchPlaceholder||"Search","onUpdate:modelValue":V},null,8,["id","model-value","placeholder-text"])])):i.createCommentVNode("",!0),i.createElementVNode("div",kE,[w.value.loading?(i.openBlock(),i.createElementBlock("div",AE,[i.createVNode(Fe,{class:"in-cascading-menu__spinner-icon",name:"line-spinner",size:24}),ae.loadingText?(i.openBlock(),i.createElementBlock("span",SE,i.toDisplayString(ae.loadingText),1)):i.createCommentVNode("",!0)])):w.value.error?(i.openBlock(),i.createElementBlock("div",DE,[i.createElementVNode("span",xE,i.toDisplayString(w.value.error),1)])):P.value.length===0&&s.value?(i.openBlock(),i.createElementBlock("div",TE,[i.createVNode(Fe,{name:"line-no-search-result",size:40}),i.createElementVNode("span",$E,i.toDisplayString(w.value.noResultText||"No Search Result"),1)])):P.value.length===0?(i.openBlock(),i.createElementBlock("div",BE,[i.createVNode(Fe,{name:"line-empty-box",size:40}),w.value.emptyText?(i.openBlock(),i.createElementBlock("span",RE,i.toDisplayString(w.value.emptyText),1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("ul",LE,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(P.value,he=>(i.openBlock(),i.createElementBlock("li",{key:he.id,class:i.normalizeClass(["in-cascading-menu__list-item",{"is-disabled":he.disabled,"is-selected":ae.selectedSubItemId===he.id}]),role:"option","data-testid":he.testId,onClick:be=>K(he),onMousedown:q[0]||(q[0]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("span",OE,[i.createElementVNode("span",NE,i.toDisplayString(he.label),1),he.subtitle?(i.openBlock(),i.createElementBlock("span",IE,i.toDisplayString(he.subtitle),1)):i.createCommentVNode("",!0)]),he.meta?(i.openBlock(),i.createElementBlock("span",PE,i.toDisplayString(he.meta),1)):i.createCommentVNode("",!0)],42,FE))),128))]))])],12,EE)):i.createCommentVNode("",!0)],8,["to"]))}}),[["__scopeId","data-v-7359826f"]]),x7={root:"_root_avx14_36",sizeMedium:"_sizeMedium_avx14_44"},VE="line-close-netural",qE=i.defineComponent({__name:"SearchInput",props:{modelValue:{default:""},placeholder:{default:"Search"},size:{default:"small"},clearable:{type:Boolean,default:!0},id:{default:""},name:{default:""}},emits:["update:modelValue","escape","clear"],setup(n,{expose:e,emit:t}){const r=n,a=t,o=s1("search"),u=i.computed(()=>r.id||o),s=i.computed(()=>r.name||u.value),d=i.ref(null),p=i.computed(()=>r.modelValue.length>0),f=i.computed(()=>r.clearable&&p.value?VE:"line-search");function m(v){a("update:modelValue",String(v))}function y(v){if(v.key==="Escape"){if(v.stopPropagation(),r.modelValue){a("update:modelValue",""),a("clear");return}a("escape")}}function C(){!r.clearable||!p.value||(a("update:modelValue",""),a("clear"))}function S(){var _,g;const v=(g=(_=d.value)==null?void 0:_.$el)==null?void 0:g.querySelector("input");v==null||v.focus()}return e({focus:S}),(v,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([i.unref(x7).root,v.size==="medium"&&i.unref(x7).sizeMedium]),onKeydown:y},[i.createVNode(va,{id:u.value,ref_key:"inputRef",ref:d,"right-icon-status":"","helper-message-status":!1,"label-status":!1,"model-value":v.modelValue,name:s.value,"placeholder-text":v.placeholder,"right-icon-name":f.value,onRightIconClick:C,"onUpdate:modelValue":m},null,8,["id","model-value","name","placeholder-text","right-icon-name"])],34))}}),Yr={root:"_root_z81dw_37",heading:"_heading_z81dw_45",title:"_title_z81dw_53",body:"_body_z81dw_61",bodyDefault:"_bodyDefault_z81dw_69",bodyMuted:"_bodyMuted_z81dw_77",label:"_label_z81dw_85",detail:"_detail_z81dw_93",detailMuted:"_detailMuted_z81dw_101",detailDanger:"_detailDanger_z81dw_109",section:"_section_z81dw_117"},Qs=i.defineComponent({__name:"Typography",props:{variant:{default:"body"},as:{default:"span"}},setup(n){const e={heading:Yr.heading,title:Yr.title,body:Yr.body,"body-default":Yr.bodyDefault,"body-muted":Yr.bodyMuted,label:Yr.label,detail:Yr.detail,"detail-muted":Yr.detailMuted,"detail-danger":Yr.detailDanger,section:Yr.section};return(t,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.as),{class:i.normalizeClass([i.unref(Yr).root,e[t.variant]])},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),Ai={root:"_root_fc4mr_36",trigger:"_trigger_fc4mr_46",isOpen:"_isOpen_fc4mr_64",hasError:"_hasError_fc4mr_69",isDisabled:"_isDisabled_fc4mr_79",triggerText:"_triggerText_fc4mr_86",chevron:"_chevron_fc4mr_98",message:"_message_fc4mr_106"},zE=["id","aria-expanded","aria-invalid","disabled"],jE=i.defineComponent({__name:"SelectField",props:{label:{default:""},placeholder:{default:""},value:{default:""},isOpen:{type:Boolean,default:!1},error:{default:""},helperText:{default:""},disabled:{type:Boolean,default:!1}},emits:["toggle"],setup(n,{expose:e,emit:t}){const r=n,a=t,o=s1("select-field"),u=i.ref(null),s=i.computed(()=>!!r.error),d=i.computed(()=>!r.value),p=i.computed(()=>r.value||r.placeholder);function f(){r.disabled||a("toggle")}return e({triggerRef:u}),(m,y)=>(i.openBlock(),i.createElementBlock("fieldset",{class:i.normalizeClass(i.unref(Ai).root)},[m.label?(i.openBlock(),i.createBlock(i.unref(Qs),{key:0,as:"label",variant:"label",for:`${i.unref(o)}-trigger`},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.label),1)]),_:1},8,["for"])):i.createCommentVNode("",!0),i.createElementVNode("button",{id:`${i.unref(o)}-trigger`,ref_key:"triggerRef",ref:u,type:"button","aria-expanded":m.isOpen,"aria-haspopup":!0,"aria-invalid":s.value,class:i.normalizeClass([i.unref(Ai).trigger,{[i.unref(Ai).isOpen]:m.isOpen,[i.unref(Ai).hasError]:s.value,[i.unref(Ai).isDisabled]:m.disabled}]),disabled:m.disabled,onClick:f},[i.createVNode(i.unref(Qs),{class:i.normalizeClass(i.unref(Ai).triggerText),variant:d.value?"body-muted":"body-default"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.value),1)]),_:1},8,["class","variant"]),i.createElementVNode("span",{class:i.normalizeClass([i.unref(Ai).chevron,{[i.unref(Ai).isOpen]:m.isOpen}])},[i.createVNode(Fe,{color:"#666666",name:"dropdown-arrow",size:24})],2)],10,zE),s.value?(i.openBlock(),i.createElementBlock("div",{key:1,role:"alert",class:i.normalizeClass(i.unref(Ai).message)},[i.createVNode(Fe,{name:"filled-error-box-colored",size:16}),i.createVNode(i.unref(Qs),{variant:"label"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.error),1)]),_:1})],2)):m.helperText?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(i.unref(Ai).message)},[i.createVNode(i.unref(Qs),{variant:"detail"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.helperText),1)]),_:1})],2)):i.createCommentVNode("",!0)],2))}}),UE=["id","checked","disabled","name"],HE=["for"],WE="line-check-netural",GE="line-close-netural",T7=mt(i.defineComponent({__name:"InToggle",props:{id:{},name:{},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(null),o=i.computed(()=>t.checked?WE:GE),u=d=>{if(t.disabled){d.preventDefault();return}const f=d.target.checked;r("click",f),r("update:modelValue",f)},s=d=>{if(t.disabled){d.preventDefault();return}a.value&&!a.value.disabled&&(a.value.checked=!a.value.checked,a.value.dispatchEvent(new Event("change",{bubbles:!0})))};return(d,p)=>(i.openBlock(),i.createElementBlock("fieldset",{class:i.normalizeClass(["in-form-item in-toggle-wrapper",[{"in-toggle-wrapper_disable":d.disabled,"in-toggle-wrapper_checked":d.checked}]])},[i.createElementVNode("input",{id:d.id,ref_key:"inputRef",ref:a,class:"in-toggle-wrapper__input",type:"checkbox",checked:d.checked,disabled:d.disabled,name:d.name,onChange:u},null,40,UE),i.createElementVNode("label",{class:"in-toggle-wrapper__label",for:d.id,onClick:s},[i.createVNode(i.unref(Fe),{name:o.value,size:28},null,8,["name"])],8,HE)],2))}}),[["__scopeId","data-v-9725f77b"]]),ZE={class:"ab-onsite-settings-section__header"},YE={class:"ab-onsite-settings-section__title"},KE={key:0,class:"ab-onsite-settings-section__content"},XE=mt(i.defineComponent({__name:"OnsiteSettingsSection",props:{title:{},toggleable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,a=s1("ab-onsite-settings-section-toggle"),o=i.computed(()=>!t.toggleable||t.modelValue),u=s=>{r("update:modelValue",s)};return(s,d)=>(i.openBlock(),i.createElementBlock("section",{class:i.normalizeClass(["ab-onsite-settings-section",{"ab-onsite-settings-section--toggleable":s.toggleable,"ab-onsite-settings-section--on":o.value}])},[i.createElementVNode("div",ZE,[i.createElementVNode("span",YE,i.toDisplayString(s.title),1),s.toggleable?(i.openBlock(),i.createBlock(T7,{key:0,id:i.unref(a),class:"ab-onsite-settings-section__toggle","aria-label":s.title,checked:s.modelValue,name:i.unref(a),"onUpdate:modelValue":u},null,8,["id","aria-label","checked","name"])):i.createCommentVNode("",!0)]),o.value&&s.$slots.default?(i.openBlock(),i.createElementBlock("div",KE,[i.renderSlot(s.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-c4556302"]]),JE={class:"in-tabs"},QE=["data-value","disabled","onClick"],ev=mt(i.defineComponent({__name:"InTabs",props:{tabs:{},modelValue:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(t.modelValue||(t.tabs.length>0?t.tabs[0].value:"")),o=u=>{t.disabled||u.disabled||(a.value=u.value,r("update:modelValue",u.value),r("change",u.value))};return i.watch(()=>t.modelValue,u=>{u!==void 0&&u!==a.value&&(a.value=u)}),i.watch(()=>t.tabs,u=>{u.length>0&&!u.some(s=>s.value===a.value)&&(a.value=u[0].value,r("update:modelValue",u[0].value))},{deep:!0}),(u,s)=>(i.openBlock(),i.createElementBlock("div",JE,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.tabs,(d,p)=>(i.openBlock(),i.createElementBlock("button",{key:`${d.value}-${p}`,class:i.normalizeClass(["in-tabs__tab",[{"in-tabs__tab--active":a.value===d.value}]]),"data-value":d.value,disabled:u.disabled||d.disabled,onClick:f=>o(d)},i.toDisplayString(d.label),11,QE))),128))]))}}),[["__scopeId","data-v-87c70348"]]),Kr={"in-textarea-wrapper__textarea":"_in-textarea-wrapper__textarea_7vr22_1","in-textarea-wrapper__error-message":"_in-textarea-wrapper__error-message_7vr22_8","in-textarea-wrapper__label":"_in-textarea-wrapper__label_7vr22_8","in-form-item":"_in-form-item_7vr22_50","in-textarea-wrapper__label_disable":"_in-textarea-wrapper__label_disable_7vr22_69","in-textarea-wrapper__textarea_white":"_in-textarea-wrapper__textarea_white_7vr22_97","in-textarea-wrapper__textarea_smart":"_in-textarea-wrapper__textarea_smart_7vr22_100","in-textarea-wrapper__textarea_borderless":"_in-textarea-wrapper__textarea_borderless_7vr22_111","in-textarea-wrapper__textarea_disable":"_in-textarea-wrapper__textarea_disable_7vr22_122","in-form-item_invalid":"_in-form-item_invalid_7vr22_136"},tv=["for"],nv=["id","disabled","maxlength","name","placeholder","rows","value"],rv=i.defineComponent({__name:"InTextArea",props:{id:{},name:{},modelValue:{},label:{default:""},withLabel:{type:Boolean,default:!0},placeholder:{},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},invalidMessage:{default:""},theme:{default:"grey"},type:{default:"default"},rowLength:{default:2},preventXss:{type:Boolean,default:!0},maxLength:{},width:{},height:{},padding:{},resize:{},borderless:{type:Boolean,default:!1}},emits:["update:modelValue","keyup","keypress","click","cut","paste","blur"],setup(n,{expose:e,emit:t}){const r=n,a=i.computed(()=>{const g={};return r.width&&(g.width=r.width),r.height&&(g.height=r.height),r.padding&&(g.padding=r.padding),r.resize&&(g.resize=r.resize),g}),o=t,u=i.ref(),s=(g="")=>typeof g=="string"?g.replace(/<\/style>/gi,"").replace(/<(.*?) on(.*?)=['"](.*?)>/gi,"").replace(/(<meta |<style|<\/*script)(.*?)>/gi,"").replace(/(<([^>]+)>)/ig,"").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi,""):g,d=i.computed(()=>r.preventXss?s(r.modelValue):r.modelValue),p=()=>{r.preventXss&&u.value&&(u.value.value=s(u.value.value))},f=g=>{p(),o("keyup",g)},m=g=>{p(),o("keypress",g)},y=g=>{p(),o("click",g)},C=g=>{const b=g.target;p(),o("update:modelValue",b.value)},S=g=>{p(),o("cut",g)},v=g=>{p(),o("paste",g)},_=g=>{p(),o("blur",g)};return e({textareaRef:u}),(g,b)=>(i.openBlock(),i.createElementBlock("fieldset",{class:i.normalizeClass([i.unref(Kr)["in-form-item"],i.unref(Kr)["in-textarea-wrapper"],{[i.unref(Kr)["in-form-item_invalid"]]:g.invalid}])},[g.withLabel?(i.openBlock(),i.createElementBlock("label",{key:0,class:i.normalizeClass([i.unref(Kr)["in-textarea-wrapper__label"],{[i.unref(Kr)["in-textarea-wrapper__label_disable"]]:g.disabled}]),for:g.id},i.toDisplayString(g.label),11,tv)):i.createCommentVNode("",!0),i.createElementVNode("textarea",{id:g.id,ref_key:"textareaRef",ref:u,class:i.normalizeClass([i.unref(Kr)["in-textarea-wrapper__textarea"],{[i.unref(Kr)["in-textarea-wrapper__textarea_disable"]]:g.disabled,[i.unref(Kr)["in-textarea-wrapper__textarea_smart"]]:g.type==="smart",[i.unref(Kr)["in-textarea-wrapper__textarea_borderless"]]:g.borderless},i.unref(Kr)[`in-textarea-wrapper__textarea_${g.theme}`]]),disabled:g.disabled,maxlength:g.maxLength,name:g.name,placeholder:g.placeholder,rows:g.rowLength,style:i.normalizeStyle(a.value),value:d.value,onBlur:_,onClick:y,onCut:S,onInput:C,onKeypress:m,onKeyup:f,onPaste:v},null,46,nv),g.invalid?(i.openBlock(),i.createElementBlock("p",{key:1,class:i.normalizeClass([i.unref(Kr)["in-textarea-wrapper__error-message"]])},i.toDisplayString(g.invalidMessage),3)):i.createCommentVNode("",!0)],2))}}),iv={class:"in-form-item in-radio-button-wrapper"},av=["id","checked","disabled","name","value"],sv=["for"],ov=mt(i.defineComponent({__name:"InRadioButton",props:{id:{},name:{},value:{type:[String,Number,Boolean]},selected:{type:[String,Number,Boolean]},label:{default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const t=n,r=e,a=()=>{t.disabled||r("click",t.value)};return(o,u)=>(i.openBlock(),i.createElementBlock("fieldset",iv,[i.createElementVNode("input",{id:o.id,class:"in-radio-button-wrapper__input",type:"radio",checked:o.value===o.selected,disabled:o.disabled,name:o.name,value:o.value,onClick:a},null,8,av),i.createElementVNode("label",{class:i.normalizeClass(["in-radio-button-wrapper__label",{"in-radio-button-wrapper__label_disable":o.disabled}]),for:o.id},i.toDisplayString(o.label),11,sv)]))}}),[["__scopeId","data-v-605c8009"]]),eo={wrapper:"_wrapper_1xr6s_36","wrapper--disabled":"_wrapper--disabled_1xr6s_40",cell:"_cell_1xr6s_45",cell__icon:"_cell__icon_1xr6s_59","cell--selected":"_cell--selected_1xr6s_65","cell--disabled":"_cell--disabled_1xr6s_65"},lv=["aria-disabled","aria-label"],uv=["aria-checked","aria-label","data-position","disabled","tabindex","onClick","onKeydown"],cv=i.defineComponent({__name:"InPositionPicker",props:{modelValue:{},options:{},disabled:{type:Boolean,default:!1},ariaLabel:{default:"Position"}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t={"top-left":"position-top-left","top-right":"position-top-right","bottom-left":"position-bottom-left","bottom-right":"position-bottom-right"},r=[{value:"bottom-left",label:"Bottom left"},{value:"top-left",label:"Top left"},{value:"top-right",label:"Top right"},{value:"bottom-right",label:"Bottom right"}],a=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"],u=n,s=e,d=i.computed(()=>u.options??r),p=i.ref(null),f=i.computed(()=>{var _;return(_=d.value.find(g=>g.value===u.modelValue&&!g.disabled)??d.value.find(g=>!g.disabled))==null?void 0:_.value}),m=v=>{u.disabled||v.disabled||v.value===u.modelValue||(s("update:modelValue",v.value),s("change",v.value))},y=(v,_)=>{const g=d.value.length;for(let b=1;b<=g;b+=1){const E=((v+_*b)%g+g)%g;if(!d.value[E].disabled)return E}return-1},C=v=>{var g,b;const _=d.value[v];_&&((b=(g=p.value)==null?void 0:g.querySelector(`[data-position="${_.value}"]`))==null||b.focus(),m(_))},S=(v,_)=>{u.disabled||(a.includes(v.key)?(v.preventDefault(),C(y(_,1))):o.includes(v.key)?(v.preventDefault(),C(y(_,-1))):v.key==="Home"?(v.preventDefault(),C(y(-1,1))):v.key==="End"&&(v.preventDefault(),C(y(d.value.length,-1))))};return(v,_)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"root",ref:p,role:"radiogroup","aria-disabled":v.disabled||void 0,"aria-label":v.ariaLabel,class:i.normalizeClass([i.unref(eo).wrapper,{[i.unref(eo)["wrapper--disabled"]]:v.disabled}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(g,b)=>(i.openBlock(),i.createElementBlock("button",{key:g.value,role:"radio",type:"button","aria-checked":g.value===v.modelValue,"aria-label":g.label??g.value,class:i.normalizeClass([i.unref(eo).cell,{[i.unref(eo)["cell--selected"]]:g.value===v.modelValue,[i.unref(eo)["cell--disabled"]]:v.disabled||g.disabled}]),"data-position":g.value,disabled:v.disabled||g.disabled,tabindex:g.value===f.value?0:-1,onClick:E=>m(g),onKeydown:E=>S(E,b)},[i.createVNode(i.unref(Fe),{class:i.normalizeClass(i.unref(eo).cell__icon),name:t[g.value],size:24},null,8,["class","name"])],42,uv))),128))],10,lv))}}),dv="M6.23242 12.3064C6.63682 11.8984 7.29286 11.8984 7.69727 12.3064C8.10133 12.7144 8.10154 13.376 7.69727 13.7839L6.49121 14.9998H15C15.5522 14.9998 15.9998 15.4476 16 15.9998C16 16.552 15.5523 16.9998 15 16.9998H6.49121L7.69727 18.2166C8.10138 18.6245 8.10145 19.2861 7.69727 19.6941C7.29287 20.1021 6.63683 20.1021 6.23242 19.6941L3.30371 16.739C2.92459 16.3565 2.9007 15.751 3.23242 15.3406L3.30371 15.2615L6.23242 12.3064ZM16.3037 4.3064C16.7081 3.89839 17.3632 3.89843 17.7676 4.3064L20.6973 7.26147L20.7676 7.34058C21.0995 7.75093 21.0764 8.35641 20.6973 8.73901L17.7676 11.6941C17.3632 12.1018 16.708 12.1019 16.3037 11.6941C15.8993 11.2861 15.8993 10.6246 16.3037 10.2166L17.5088 8.99976H9C8.44782 8.99963 8 8.55196 8 7.99976C8.00015 7.44768 8.44792 6.99988 9 6.99976H17.5088L16.3037 5.78394C15.8993 5.37594 15.8994 4.71443 16.3037 4.3064Z",fv=["id","accept","aria-describedby","aria-invalid","disabled"],pv={key:0,class:"ab-onsite-upload__file ab-onsite-upload__file--uploading"},hv=["alt","src"],mv={class:"ab-onsite-upload__file-body ab-onsite-upload__file-body--uploading"},gv={class:"ab-onsite-upload__progress"},yv=["aria-valuenow"],bv={class:"ab-onsite-upload__progress-value"},_v={key:1,class:"ab-onsite-upload__file"},wv=["alt","src"],Cv={class:"ab-onsite-upload__file-body"},Ev={class:"ab-onsite-upload__file-name"},vv={class:"ab-onsite-upload__actions"},kv=["for"],Av={"aria-hidden":"true",class:"icon ab-onsite-upload__action-icon",height:"24px",viewBox:"0 0 24 24",width:"24px"},Sv=["d"],Dv=["disabled"],xv=["disabled"],Tv={class:"ab-onsite-upload__error",role:"alert"},$v=["for"],Bv={class:"ab-onsite-upload__label"},Rv=["id"],Lv={key:1,class:"ab-onsite-upload__helper"},Fv=mt(i.defineComponent({__name:"OnsiteUpload",props:{id:{},label:{default:"Upload Image"},helperText:{default:""},accept:{default:"image/*"},disabled:{type:Boolean,default:!1},fileName:{default:""},previewUrl:{default:""},changeLabel:{default:"Change"},removeLabel:{default:"Remove"},error:{default:""},retryLabel:{default:"Retry"},dragLabel:{default:"Drop files to upload"},progressValue:{default:void 0},validationError:{default:""}},emits:["select","remove","retry"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(!1);let o=0;const u=i.computed(()=>t.progressValue!==void 0&&t.progressValue<100),s=i.computed(()=>!!t.validationError&&!t.fileName&&!t.error&&!u.value),d=i.computed(()=>Math.min(100,Math.max(0,Math.round(t.progressValue??0)))),p=i.computed(()=>a.value?t.dragLabel:t.label),f=i.computed(()=>a.value?"line-duplicate":"line-plus-netural");function m(g){const b=t.accept.split(",").map(k=>k.trim().toLowerCase()).filter(Boolean);if(!b.length||b.includes("*")||b.includes("*/*"))return!0;const E=g.type.toLowerCase(),w=g.name.toLowerCase();return b.some(k=>k.startsWith(".")?w.endsWith(k):k.endsWith("/*")?E.startsWith(k.slice(0,-1)):E===k)}function y(g){const b=g==null?void 0:g[0];t.disabled||!b||!m(b)||r("select",b)}function C(g){const b=g.target;y(b.files),b.value=""}function S(){t.disabled||(o+=1,a.value=!0)}function v(){o=Math.max(0,o-1),a.value=o>0}function _(g){var b;o=0,a.value=!1,y((b=g.dataTransfer)==null?void 0:b.files)}return(g,b)=>(i.openBlock(),i.createElementBlock("div",{class:"ab-onsite-upload",onDragenter:i.withModifiers(S,["prevent"]),onDragleave:v,onDragover:b[2]||(b[2]=i.withModifiers(()=>{},["prevent"])),onDrop:i.withModifiers(_,["prevent"])},[i.createElementVNode("input",{id:g.id,class:"ab-onsite-upload__input",type:"file",accept:g.accept,"aria-describedby":s.value?`${g.id}-error`:void 0,"aria-invalid":s.value?"true":void 0,disabled:g.disabled,onChange:C},null,40,fv),u.value?(i.openBlock(),i.createElementBlock("div",pv,[g.previewUrl?(i.openBlock(),i.createElementBlock("img",{key:0,class:"ab-onsite-upload__thumbnail",alt:g.fileName,src:g.previewUrl},null,8,hv)):i.createCommentVNode("",!0),i.createElementVNode("div",mv,[i.createElementVNode("div",gv,[i.createElementVNode("div",{class:"ab-onsite-upload__progress-track",role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":d.value},[i.createElementVNode("div",{class:"ab-onsite-upload__progress-bar",style:i.normalizeStyle({width:`${d.value}%`})},null,4)],8,yv),i.createElementVNode("span",bv,i.toDisplayString(d.value)+"%",1)])])])):g.fileName?(i.openBlock(),i.createElementBlock("div",_v,[g.previewUrl?(i.openBlock(),i.createElementBlock("img",{key:0,class:"ab-onsite-upload__thumbnail",alt:g.fileName,src:g.previewUrl},null,8,wv)):i.createCommentVNode("",!0),i.createElementVNode("div",Cv,[i.createElementVNode("span",Ev,i.toDisplayString(g.fileName),1),i.createElementVNode("div",vv,[i.createElementVNode("label",{class:i.normalizeClass(["ab-onsite-upload__action ab-onsite-upload__change",{"ab-onsite-upload__action--disabled":g.disabled}]),for:g.id},[(i.openBlock(),i.createElementBlock("svg",Av,[i.createElementVNode("path",{d:i.unref(dv)},null,8,Sv)])),i.createTextVNode(" "+i.toDisplayString(g.changeLabel),1)],10,kv),i.createElementVNode("button",{class:"ab-onsite-upload__action ab-onsite-upload__remove",type:"button",disabled:g.disabled,onClick:b[0]||(b[0]=E=>r("remove"))},[i.createVNode(Fe,{class:"ab-onsite-upload__action-icon",name:"line-delete",size:24}),i.createTextVNode(" "+i.toDisplayString(g.removeLabel),1)],8,Dv)])])])):g.error?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("button",{class:"ab-onsite-upload__retry",type:"button",disabled:g.disabled,onClick:b[1]||(b[1]=E=>r("retry"))},[i.createVNode(Fe,{class:"ab-onsite-upload__retry-icon",name:"line-refresh",size:24}),i.createElementVNode("span",null,i.toDisplayString(g.retryLabel),1)],8,xv),i.createElementVNode("p",Tv,i.toDisplayString(g.error),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createElementVNode("label",{class:i.normalizeClass(["ab-onsite-upload__area",{"ab-onsite-upload__area--dragover":a.value,"ab-onsite-upload__area--disabled":g.disabled,"ab-onsite-upload__area--invalid":g.validationError}]),for:g.id},[i.createVNode(Fe,{class:"ab-onsite-upload__icon",name:f.value,size:24},null,8,["name"]),i.createElementVNode("span",Bv,i.toDisplayString(p.value),1)],10,$v),g.validationError?(i.openBlock(),i.createElementBlock("p",{key:0,id:`${g.id}-error`,class:"ab-onsite-upload__error",role:"alert"},i.toDisplayString(g.validationError),9,Rv)):g.helperText?(i.openBlock(),i.createElementBlock("p",Lv,i.toDisplayString(g.helperText),1)):i.createCommentVNode("",!0)],64))],32))}}),[["__scopeId","data-v-56ef2421"]]),Ov={class:"ab-onsite-preview-panel"},Nv={class:"ab-onsite-preview-panel__title"},Iv={key:0,class:"ab-onsite-preview-panel__footer"},$7=mt(i.defineComponent({__name:"OnsitePreviewPanel",props:{title:{default:"Preview"}},setup(n){return(e,t)=>(i.openBlock(),i.createElementBlock("section",Ov,[i.createElementVNode("h3",Nv,i.toDisplayString(e.title),1),i.createElementVNode("div",{class:i.normalizeClass(["ab-onsite-preview-panel__body",{"ab-onsite-preview-panel__body--fill":!e.$slots.footer}])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",Iv,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-817293fe"]]),Pv={key:0,class:"ab-onsite-image-preview__empty"},Mv=["alt","src"],Vv={key:0,class:"ab-onsite-image-preview__details"},qv={class:"ab-onsite-image-preview__label"},zv={class:"ab-onsite-image-preview__warning"},jv={class:"ab-onsite-image-preview__detail"},Uv=["href","title"],Hv=["title"],Wv=mt(i.defineComponent({__name:"OnsiteImagePreview",props:{title:{default:"Preview"},emptyText:{default:""},imageUrl:{default:""},imageAlt:{default:""},details:{default:()=>[]}},setup(n){const e=s1("ab-onsite-image-preview");return(t,r)=>(i.openBlock(),i.createBlock($7,{class:"ab-onsite-image-preview",title:t.title},{default:i.withCtx(()=>[t.imageUrl?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(t.$slots,"placement",{},void 0,!0),i.createElementVNode("img",{class:"ab-onsite-image-preview__image",alt:t.imageAlt,src:t.imageUrl},null,8,Mv),t.details.length?(i.openBlock(),i.createElementBlock("dl",Vv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.details,(a,o)=>(i.openBlock(),i.createElementBlock("div",{key:`${o}-${a.label}`,class:"ab-onsite-image-preview__row"},[i.createElementVNode("dt",qv,i.toDisplayString(a.label),1),r[0]||(r[0]=i.createElementVNode("span",{"aria-hidden":"true",class:"ab-onsite-image-preview__leader"},null,-1)),a.warning?(i.openBlock(),i.createBlock(Xs,{key:0,id:`${i.unref(e)}-warning-${o}`,"prevent-xss":"",placement:"bottom",text:a.warning},{default:i.withCtx(()=>[i.createElementVNode("span",zv,[i.createVNode(Fe,{name:"filled-caution-triangle-colored",size:16})])]),_:2},1032,["id","text"])):i.createCommentVNode("",!0),i.createElementVNode("dd",jv,[a.href?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ab-onsite-image-preview__value",rel:"noopener noreferrer",target:"_blank",href:a.href,title:a.value},i.toDisplayString(a.value),9,Uv)):(i.openBlock(),i.createElementBlock("span",{key:1,class:"ab-onsite-image-preview__value",title:a.value},i.toDisplayString(a.value),9,Hv))])]))),128))])):i.createCommentVNode("",!0)],64)):(i.openBlock(),i.createElementBlock("p",Pv,i.toDisplayString(t.emptyText),1))]),_:3},8,["title"]))}}),[["__scopeId","data-v-4a771f24"]]),Gv=["aria-label","aria-pressed"],Zv=["alt","src"],Yv=["aria-label"],Kv=mt(i.defineComponent({__name:"OnsiteLibraryImage",props:{src:{},alt:{default:""},selected:{type:Boolean,default:!1},deletable:{type:Boolean,default:!0},deleteLabel:{default:"Delete"}},emits:["select","delete"],setup(n,{emit:e}){const t=e;return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ab-onsite-library-image",{"ab-onsite-library-image--selected":r.selected}])},[i.createElementVNode("button",{class:"ab-onsite-library-image__select",type:"button","aria-label":r.alt||void 0,"aria-pressed":r.selected?"true":"false",onClick:a[0]||(a[0]=o=>t("select"))},[i.createElementVNode("img",{class:"ab-onsite-library-image__image",alt:r.alt,src:r.src},null,8,Zv)],8,Gv),r.deletable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ab-onsite-library-image__delete",type:"button","aria-label":r.deleteLabel,onClick:a[1]||(a[1]=i.withModifiers(o=>t("delete"),["stop"]))},[i.createVNode(Fe,{name:"line-delete",size:24})],8,Yv)):i.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-11572f8d"]]),Xv={class:"ab-onsite-line-tabs",role:"tablist"},Jv=["aria-selected","data-value","disabled","onClick"],Qv=mt(i.defineComponent({__name:"OnsiteLineTabs",props:{tabs:{},modelValue:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,a=i.ref(t.modelValue||(t.tabs.length>0?t.tabs[0].value:""));function o(u){t.disabled||u.disabled||(a.value=u.value,r("update:modelValue",u.value),r("change",u.value))}return i.watch(()=>t.modelValue,u=>{u&&u!==a.value&&(a.value=u)}),i.watch(()=>t.tabs,u=>{u.length>0&&!u.some(s=>s.value===a.value)&&(a.value=u[0].value,r("update:modelValue",u[0].value))},{deep:!0}),(u,s)=>(i.openBlock(),i.createElementBlock("div",Xv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.tabs,(d,p)=>(i.openBlock(),i.createElementBlock("button",{key:`${d.value}-${p}`,class:i.normalizeClass(["ab-onsite-line-tabs__tab",{"ab-onsite-line-tabs__tab--active":a.value===d.value}]),role:"tab",type:"button","aria-selected":a.value===d.value?"true":"false","data-value":d.value,disabled:u.disabled||d.disabled,onClick:f=>o(d)},i.toDisplayString(d.label),11,Jv))),128))]))}}),[["__scopeId","data-v-42c8d4ba"]]),ek={class:"ab-onsite-page-message__text"},tk=mt(i.defineComponent({__name:"OnsitePageMessage",props:{text:{},variant:{default:"warning"}},setup(n){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ab-onsite-page-message",`ab-onsite-page-message--${e.variant}`]),role:"status"},[i.createVNode(Fe,{class:"ab-onsite-page-message__icon",name:"filled-caution-triangle",size:24}),i.createElementVNode("span",ek,i.toDisplayString(e.text),1)],2))}}),[["__scopeId","data-v-c99ec977"]]),nk=`<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg" data-token-name="no-data">
|
|
66
66
|
<g clip-path="url(#ab-no-data-clip0)">
|
|
67
67
|
<path opacity="0.6" d="M194.016 159.872C185.583 161.33 164.507 166.943 155.023 169.567C124.609 178.148 107.288 211.636 69.5117 195.08C39.2907 181.835 44.9874 135.851 54.5552 117.104C68.6941 88.2634 124.755 36.3362 172.871 51.6637C239.817 72.9895 229.619 121.082 225.651 135.829C221.684 150.575 204.558 158.05 194.016 159.872Z" fill="#DCDEE6"/>
|