@bcc-code/component-library-vue 0.7.9 → 0.7.10

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.
@@ -7343,8 +7343,8 @@ const gC = {
7343
7343
  setup(t) {
7344
7344
  const e = t, n = li(t, "modelValue"), r = Re(() => ({
7345
7345
  current: n.value + 1,
7346
- total: e.steps.length,
7347
- label: e.steps[n.value] ?? ""
7346
+ total: Array.isArray(e.steps) ? e.steps.length : e.steps,
7347
+ label: Array.isArray(e.steps) ? e.steps[n.value] ?? "" : ""
7348
7348
  }));
7349
7349
  return (i, o) => (d(), f("div", {
7350
7350
  class: x(["bcc-step-indicator col gap-2", [{ left: t.left, right: t.right }, `ctx-${t.context}`]])
@@ -243,7 +243,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
243
243
  border-bottom-color: dt('tooltip.background');
244
244
  }
245
245
  `,ix={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},lx=x.extend({name:"tooltip-directive",style:ax,classes:ix}),sx=j.extend({style:lx});function cx(t,e){return fx(t)||px(t,e)||ux(t,e)||dx()}function dx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
246
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ux(t,e){if(t){if(typeof t=="string")return Ul(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ul(t,e):void 0}}function Ul(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function px(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,i,o,l,c=[],s=!0,d=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(s=(a=o.call(n)).done)&&(c.push(a.value),c.length!==e);s=!0);}catch(u){d=!0,i=u}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function fx(t){if(Array.isArray(t))return t}function ql(t,e,n){return(e=mx(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mx(t){var e=hx(t,"string");return bt(e)=="symbol"?e:e+""}function hx(t,e){if(bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(bt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bt(t){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(t)}var fo=sx.extend("tooltip",{beforeMount:function(e,n){var a,i=this.getTarget(e);if(i.$_ptooltipModifiers=this.getModifiers(n),n.value){if(typeof n.value=="string")i.$_ptooltipValue=n.value,i.$_ptooltipDisabled=!1,i.$_ptooltipEscape=!0,i.$_ptooltipClass=null,i.$_ptooltipFitContent=!0,i.$_ptooltipIdAttr=Ge("pv_id")+"_tooltip",i.$_ptooltipShowDelay=0,i.$_ptooltipHideDelay=0,i.$_ptooltipAutoHide=!0;else if(bt(n.value)==="object"&&n.value){if(Y(n.value.value)||n.value.value.trim()==="")return;i.$_ptooltipValue=n.value.value,i.$_ptooltipDisabled=!!n.value.disabled===n.value.disabled?n.value.disabled:!1,i.$_ptooltipEscape=!!n.value.escape===n.value.escape?n.value.escape:!0,i.$_ptooltipClass=n.value.class||"",i.$_ptooltipFitContent=!!n.value.fitContent===n.value.fitContent?n.value.fitContent:!0,i.$_ptooltipIdAttr=n.value.id||Ge("pv_id")+"_tooltip",i.$_ptooltipShowDelay=n.value.showDelay||0,i.$_ptooltipHideDelay=n.value.hideDelay||0,i.$_ptooltipAutoHide=!!n.value.autoHide===n.value.autoHide?n.value.autoHide:!0}}else return;i.$_ptooltipZIndex=(a=n.instance.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.zIndex)===null||a===void 0?void 0:a.tooltip,this.bindEvents(i,n),e.setAttribute("data-pd-tooltip",!0)},updated:function(e,n){var a=this.getTarget(e);if(a.$_ptooltipModifiers=this.getModifiers(n),this.unbindEvents(a),!!n.value){if(typeof n.value=="string")a.$_ptooltipValue=n.value,a.$_ptooltipDisabled=!1,a.$_ptooltipEscape=!0,a.$_ptooltipClass=null,a.$_ptooltipIdAttr=a.$_ptooltipIdAttr||Ge("pv_id")+"_tooltip",a.$_ptooltipShowDelay=0,a.$_ptooltipHideDelay=0,a.$_ptooltipAutoHide=!0,this.bindEvents(a,n);else if(bt(n.value)==="object"&&n.value)if(Y(n.value.value)||n.value.value.trim()===""){this.unbindEvents(a,n);return}else a.$_ptooltipValue=n.value.value,a.$_ptooltipDisabled=!!n.value.disabled===n.value.disabled?n.value.disabled:!1,a.$_ptooltipEscape=!!n.value.escape===n.value.escape?n.value.escape:!0,a.$_ptooltipClass=n.value.class||"",a.$_ptooltipFitContent=!!n.value.fitContent===n.value.fitContent?n.value.fitContent:!0,a.$_ptooltipIdAttr=n.value.id||a.$_ptooltipIdAttr||Ge("pv_id")+"_tooltip",a.$_ptooltipShowDelay=n.value.showDelay||0,a.$_ptooltipHideDelay=n.value.hideDelay||0,a.$_ptooltipAutoHide=!!n.value.autoHide===n.value.autoHide?n.value.autoHide:!0,this.bindEvents(a,n)}},unmounted:function(e,n){var a=this.getTarget(e);this.hide(e,0),this.remove(a),this.unbindEvents(a,n),a.$_ptooltipScrollHandler&&(a.$_ptooltipScrollHandler.destroy(),a.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(e,n){var a=this,i=e.$_ptooltipModifiers;i.focus?(e.$_ptooltipFocusEvent=function(o){return a.onFocus(o,n)},e.$_ptooltipBlurEvent=this.onBlur.bind(this),e.addEventListener("focus",e.$_ptooltipFocusEvent),e.addEventListener("blur",e.$_ptooltipBlurEvent)):(e.$_ptooltipMouseEnterEvent=function(o){return a.onMouseEnter(o,n)},e.$_ptooltipMouseLeaveEvent=this.onMouseLeave.bind(this),e.$_ptooltipClickEvent=this.onClick.bind(this),e.addEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),e.addEventListener("mouseleave",e.$_ptooltipMouseLeaveEvent),e.addEventListener("click",e.$_ptooltipClickEvent)),e.$_ptooltipKeydownEvent=this.onKeydown.bind(this),e.addEventListener("keydown",e.$_ptooltipKeydownEvent),e.$_pWindowResizeEvent=this.onWindowResize.bind(this,e)},unbindEvents:function(e){var n=e.$_ptooltipModifiers;n.focus?(e.removeEventListener("focus",e.$_ptooltipFocusEvent),e.$_ptooltipFocusEvent=null,e.removeEventListener("blur",e.$_ptooltipBlurEvent),e.$_ptooltipBlurEvent=null):(e.removeEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),e.$_ptooltipMouseEnterEvent=null,e.removeEventListener("mouseleave",e.$_ptooltipMouseLeaveEvent),e.$_ptooltipMouseLeaveEvent=null,e.removeEventListener("click",e.$_ptooltipClickEvent),e.$_ptooltipClickEvent=null),e.removeEventListener("keydown",e.$_ptooltipKeydownEvent),window.removeEventListener("resize",e.$_pWindowResizeEvent),e.$_ptooltipId&&this.remove(e)},bindScrollListener:function(e){var n=this;e.$_ptooltipScrollHandler||(e.$_ptooltipScrollHandler=new Ee(e,function(){n.hide(e)})),e.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(e,n){var a=e.currentTarget,i=a.$_ptooltipShowDelay;this.show(a,n,i)},onMouseLeave:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay,i=n.$_ptooltipAutoHide;if(i)this.hide(n,a);else{var o=z(e.target,"data-pc-name")==="tooltip"||z(e.target,"data-pc-section")==="arrow"||z(e.target,"data-pc-section")==="text"||z(e.relatedTarget,"data-pc-name")==="tooltip"||z(e.relatedTarget,"data-pc-section")==="arrow"||z(e.relatedTarget,"data-pc-section")==="text";!o&&this.hide(n,a)}},onFocus:function(e,n){var a=e.currentTarget,i=a.$_ptooltipShowDelay;this.show(a,n,i)},onBlur:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay;this.hide(n,a)},onClick:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay;this.hide(n,a)},onKeydown:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay;e.code==="Escape"&&this.hide(e.currentTarget,a)},onWindowResize:function(e){be()||this.hide(e),window.removeEventListener("resize",e.$_pWindowResizeEvent)},tooltipActions:function(e,n){if(!(e.$_ptooltipDisabled||!Yo(e)||!e.$_ptooltipPendingShow)){e.$_ptooltipPendingShow=!1;var a=this.create(e,n);this.align(e),!this.isUnstyled()&&mf(a,250);var i=this;window.addEventListener("resize",e.$_pWindowResizeEvent),a.addEventListener("mouseleave",function o(){i.hide(e),a.removeEventListener("mouseleave",o),e.removeEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),setTimeout(function(){return e.addEventListener("mouseenter",e.$_ptooltipMouseEnterEvent)},50)}),this.bindScrollListener(e),M.set("tooltip",a,e.$_ptooltipZIndex)}},show:function(e,n,a){var i=this;a!==void 0?(this.timer=setTimeout(function(){return i.tooltipActions(e,n)},a),e.$_ptooltipPendingShow=!0):(this.tooltipActions(e,n),e.$_ptooltipPendingShow=!1)},tooltipRemoval:function(e){this.remove(e),this.unbindScrollListener(e),window.removeEventListener("resize",e.$_pWindowResizeEvent)},hide:function(e,n){var a=this;clearTimeout(this.timer),e.$_ptooltipPendingShow=!1,n!==void 0?setTimeout(function(){return a.tooltipRemoval(e)},n):this.tooltipRemoval(e)},getTooltipElement:function(e){return document.getElementById(e.$_ptooltipId)},getArrowElement:function(e){var n=this.getTooltipElement(e);return E(n,'[data-pc-section="arrow"]')},create:function(e){var n=e.$_ptooltipModifiers,a=ut("div",{class:!this.isUnstyled()&&this.cx("arrow"),"p-bind":this.ptm("arrow",{context:n})}),i=ut("div",{class:!this.isUnstyled()&&this.cx("text"),"p-bind":this.ptm("text",{context:n})});e.$_ptooltipEscape?(i.innerHTML="",i.appendChild(document.createTextNode(e.$_ptooltipValue))):i.innerHTML=e.$_ptooltipValue;var o=ut("div",ql(ql({id:e.$_ptooltipIdAttr,role:"tooltip",style:{display:"inline-block",width:e.$_ptooltipFitContent?"fit-content":void 0,pointerEvents:!this.isUnstyled()&&e.$_ptooltipAutoHide&&"none"},class:[!this.isUnstyled()&&this.cx("root"),e.$_ptooltipClass]},this.$attrSelector,""),"p-bind",this.ptm("root",{context:n})),a,i);return document.body.appendChild(o),e.$_ptooltipId=o.id,this.$el=o,o},remove:function(e){if(e){var n=this.getTooltipElement(e);n&&n.parentElement&&(M.clear(n),document.body.removeChild(n)),e.$_ptooltipId=null}},align:function(e){var n=e.$_ptooltipModifiers;n.top?(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignTop(e))):n.left?(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignLeft(e))))):n.bottom?(this.alignBottom(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&this.alignBottom(e))):(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignRight(e)))))},getHostOffset:function(e){var n=e.getBoundingClientRect(),a=n.left+Go(),i=n.top+eo();return{left:a,top:i}},alignRight:function(e){this.preAlign(e,"right");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=this.getHostOffset(e),o=i.left+N(e),l=i.top+(he(e)-he(n))/2;n.style.left=o+"px",n.style.top=l+"px",a.style.top="50%",a.style.right=null,a.style.bottom=null,a.style.left="0"},alignLeft:function(e){this.preAlign(e,"left");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=this.getHostOffset(e),o=i.left-N(n),l=i.top+(he(e)-he(n))/2;n.style.left=o+"px",n.style.top=l+"px",a.style.top="50%",a.style.right="0",a.style.bottom=null,a.style.left=null},alignTop:function(e){this.preAlign(e,"top");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=N(n),o=N(e),l=ct(),c=l.width,s=this.getHostOffset(e),d=s.left+(o-i)/2,u=s.top-he(n);d<0?d=0:d+i>c&&(d=Math.floor(s.left+o-i)),n.style.left=d+"px",n.style.top=u+"px";var p=s.left-this.getHostOffset(n).left+o/2;a.style.top=null,a.style.right=null,a.style.bottom="0",a.style.left=p+"px"},alignBottom:function(e){this.preAlign(e,"bottom");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=N(n),o=N(e),l=ct(),c=l.width,s=this.getHostOffset(e),d=s.left+(o-i)/2,u=s.top+he(e);d<0?d=0:d+i>c&&(d=Math.floor(s.left+o-i)),n.style.left=d+"px",n.style.top=u+"px";var p=s.left-this.getHostOffset(n).left+o/2;a.style.top="0",a.style.right=null,a.style.bottom=null,a.style.left=p+"px"},preAlign:function(e,n){var a=this.getTooltipElement(e);a.style.left="-999px",a.style.top="-999px",Q(a,"p-tooltip-".concat(a.$_ptooltipPosition)),!this.isUnstyled()&&W(a,"p-tooltip-".concat(n)),a.$_ptooltipPosition=n,a.setAttribute("data-p-position",n)},isOutOfBounds:function(e){var n=this.getTooltipElement(e),a=n.getBoundingClientRect(),i=a.top,o=a.left,l=N(n),c=he(n),s=ct();return o+l>s.width||o<0||i<0||i+c>s.height},getTarget:function(e){var n;return st(e,"p-inputwrapper")&&(n=E(e,"input"))!==null&&n!==void 0?n:e},getModifiers:function(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&bt(e.arg)==="object"?Object.entries(e.arg).reduce(function(n,a){var i=cx(a,2),o=i[0],l=i[1];return(o==="event"||o==="position")&&(n[l]=!0),n},{}):{}}}});function bx(t){t.use(Dl,{theme:{preset:gl,options:{darkModeSelector:".dark",cssLayer:{name:"primevue",order:"theme, base, primevue, tailwind"}}}}),t.use(Kl),t.use(Dw),t.use(Ew),t.directive("tooltip",fo),t.directive("focus-trap",ot)}const gx={key:1},ia=r.defineComponent({__name:"BccBadge",props:{value:{},size:{default:"md"},border:{type:Boolean},bordered:{type:Boolean},squared:{type:Boolean},context:{default:so.neutral.subtle}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-badge",[`ctx-${t.context}`,t.size,{border:t.border,bordered:t.bordered,squared:t.squared,"bcc-badge-text":e.$slots.default||(typeof t.value=="string"||typeof t.value=="number")&&String(t.value).length>2}]])},[r.renderSlot(e.$slots,"default",{},()=>[typeof t.value=="function"||typeof t.value=="object"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.value),{key:0,class:"bcc-badge-icon"})):t.value?(r.openBlock(),r.createElementBlock("span",gx,r.toDisplayString(t.value),1)):r.createCommentVNode("",!0)])],2))}});function la(t,e=0,n=1e3){if(n<=.1)return{value:t};const a=r.ref(e);function i(o,l){const c=Date.now(),s=n,d=l-o,u=()=>{const p=Date.now()-c,f=vx(p,o,d,s);p<s?(a.value=Math.floor(f),window.requestAnimationFrame(u)):a.value=l};u()}return r.watch(t,o=>{i(a.value??e,o)},{immediate:!0}),{value:a}}function vx(t,e,n,a){return t/=a,-n*t*(t-2)+e}const yx=["stroke-dashoffset"],kx=["stroke-dashoffset"],wx=["y","font-size"],xx={key:3,d:"M14.4122 25.1588C13.1109 25.1588 12.017 24.6844 11.1305 23.7354C10.244 22.7864 9.80078 21.6525 9.80078 20.3337C9.80078 19.0287 10.2475 17.9121 11.1409 16.984C12.0343 16.0559 13.1247 15.5918 14.4122 15.5918C14.9358 15.5918 15.4424 15.679 15.9319 15.8533C16.4214 16.0277 16.8557 16.2965 17.2347 16.6597L19.0662 18.417L17.885 19.5628L16.1877 17.9045C15.9538 17.6704 15.6828 17.5015 15.3745 17.3978C15.0663 17.294 14.7475 17.2422 14.4182 17.2422C13.5803 17.2422 12.8763 17.5449 12.3063 18.1504C11.7362 18.756 11.4512 19.4851 11.4512 20.3379C11.4512 21.2047 11.7327 21.9497 12.2957 22.5732C12.8587 23.1967 13.566 23.5085 14.4176 23.5085C14.7413 23.5085 15.0554 23.4567 15.3599 23.3532C15.6644 23.2497 15.9391 23.088 16.1839 22.8681L22.7673 16.6597C23.1462 16.2965 23.5805 16.0277 24.07 15.8533C24.5596 15.679 25.0592 15.5918 25.5689 15.5918C26.8702 15.5918 27.9676 16.0559 28.861 16.984C29.7544 17.9121 30.2012 19.0287 30.2012 20.3337C30.2012 21.6525 29.7544 22.7864 28.861 23.7354C27.9676 24.6844 26.8702 25.1588 25.5689 25.1588C25.0592 25.1588 24.5561 25.0751 24.0596 24.9077C23.5631 24.7403 23.1324 24.475 22.7673 24.1117L20.9892 22.3545L22.1586 21.2087L23.8177 22.8681C24.0383 23.0885 24.3035 23.2503 24.6133 23.3536C24.9231 23.4568 25.2398 23.5085 25.5635 23.5085C26.4151 23.5085 27.1259 23.1961 27.6958 22.5714C28.2658 21.9467 28.5508 21.2021 28.5508 20.3377C28.5508 19.4872 28.2623 18.7586 27.6854 18.152C27.1085 17.5455 26.4012 17.2422 25.5635 17.2422C25.2398 17.2422 24.9257 17.3009 24.6212 17.4183C24.3167 17.5357 24.0489 17.7043 23.818 17.9242L17.2347 24.1326C16.8557 24.4819 16.418 24.7403 15.9215 24.9077C15.425 25.0751 14.9219 25.1588 14.4122 25.1588Z",fill:"currentColor",class:"text"},Cx=r.defineComponent({__name:"BccCapacityIndicator",props:{total:{},used:{default:0},size:{default:"base"},animationDuration:{default:1e3},squared:{type:Boolean,default:!1},colored:{type:Boolean,default:!1}},setup(t){const e=t,{value:n}=la(r.toRef(e,"used"),e.used,e.animationDuration),a=r.computed(()=>e.total===-1?-1:e.used>e.total||e.used===e.total?100:e.total>0?e.used/e.total*100:0),{value:i}=la(a,a.value,e.animationDuration),o=Math.PI*18*2;return(l,c)=>(r.openBlock(),r.createElementBlock("svg",{width:"2em",height:"2em",viewBox:"0 0 40 40",class:r.normalizeClass(["bcc-capacity-indicator",[t.size,t.squared?"rounded":"rounded-full",{colored:t.colored,"is-full":r.unref(i)>=100,"is-warning":r.unref(i)>=50&&r.unref(i)<100}]])},[t.squared?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[c[0]||(c[0]=r.createElementVNode("rect",{width:"36",height:"36",x:"2",y:"2",rx:"4",fill:"none",stroke:"currentColor","stroke-width":"4",class:"circle"},null,-1)),r.unref(i)>0?(r.openBlock(),r.createElementBlock("path",{key:0,d:"M 20 2 h 14 a 4 4 0 0 1 4 4 v 28 a 4 4 0 0 1 -4 4 h -28 a 4 4 0 0 1 -4 -4 v -28 a 4 4 0 0 1 4 -4 h 14 z",fill:"none","stroke-width":"4","stroke-dasharray":137,"stroke-dashoffset":137*((100-r.unref(i))/100),stroke:"currentColor",class:"circle-used"},null,8,yx)):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[c[1]||(c[1]=r.createElementVNode("circle",{cx:"20",cy:"20",r:"18",fill:"none","stroke-width":"3",stroke:"currentColor",class:"circle"},null,-1)),r.unref(i)>0?(r.openBlock(),r.createElementBlock("circle",{key:0,cx:"20",cy:"20",r:"18",fill:"none","stroke-width":"3","stroke-dasharray":o,"stroke-dashoffset":o*((100-r.unref(i))/100),stroke:"currentColor",transform:"rotate(-90 20 20)",class:"circle-used"},null,8,kx)):r.createCommentVNode("",!0)],64)),r.unref(i)>-1?(r.openBlock(),r.createElementBlock("text",{key:2,"text-anchor":"middle",x:"20",y:t.squared||t.size=="xs"?26:25,"font-size":t.size=="xs"?18:t.squared||t.size=="sm"?16:14,"font-weight":"600",fill:"currentColor",class:"text"},r.toDisplayString(r.unref(i)<100?t.total-r.unref(n):0),9,wx)):(r.openBlock(),r.createElementBlock("path",xx))],2))}}),Gl=(t,e)=>{const n=t.__vccOpts||t;for(const[a,i]of e)n[a]=i;return n},Ix={},Sx={fill:"none",viewBox:"0 0 58 58","aria-hidden":"true",class:"size-3"};function Px(t,e){return r.openBlock(),r.createElementBlock("svg",Sx,[...e[0]||(e[0]=[r.createStaticVNode('<g transform="translate(2 1)" stroke="currentColor" stroke-width="1.5"><circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="1;0;0;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;1;0;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;1;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;1;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;1;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;1;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;1;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="5" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;0;1" calcMode="linear" repeatCount="indefinite"></animate></circle></g>',1)])])}const sa=Gl(Ix,[["render",Px]]),Bx={class:"bcc-knob-top-left"},Ox={class:"bcc-knob-top-right"},Tx={class:"bcc-knob-label"},Ex=r.defineComponent({__name:"BccDialKnob",props:r.mergeModels({size:{default:400},arcWidth:{default:20},min:{default:-720},max:{default:720},steps:{default:1},colored:{type:Boolean,default:!1},showHandle:{type:Boolean,default:!1},hideArrows:{type:Boolean,default:!1},duration:{default:1e3},animateRotations:{default:2}},{modelValue:{required:!0},modelModifiers:{}}),emits:r.mergeModels(["drag:start","drag:update","drag:end"],["update:modelValue"]),setup(t,{emit:e}){const n=t,a=e,i={arc:"#EFEFEF",head:"#437571",tail:"#A9BABA",leftHead:"#9B4F44",leftTail:"#DBBEAC",rightHead:"#3E8E75",rightTail:"#B1DECC"},o=r.useModel(t,"modelValue"),l=r.ref(null),c=r.ref(null);let s=null,d=0;const u=r.ref(!1),p=r.ref(0),f=r.ref(0),m=r.ref(0),h=r.computed(()=>n.size/2),b=r.computed(()=>h.value-n.arcWidth),g=r.computed(()=>n.min/60*360),y=r.computed(()=>n.max/60*360),k=r.computed(()=>Math.max(-359.99,Math.min(359.99,Math.max(g.value,Math.min(p.value,y.value)))));r.watch(o,$=>{if(u.value)return;const V=$/(60/n.steps)*360;v(V)},{immediate:!0});function S($,V){return F=>Math.round($+(V-$)*F)}function v($){if(u.value||$===p.value)return;const V=n.animateRotations;if(V>1){let Z=p.value;const ie=Math.round(Math.abs(Z-$)/360);ie>V&&($<Z?Z-=360*(ie-V):Z+=360*(ie-V),p.value=Z)}const F=performance.now(),X=S(p.value,$);function K(Z){const ie=Z-F,Ie=Math.min(ie/n.duration,1);p.value=X(Ie),B(),Ie<1&&requestAnimationFrame(K)}requestAnimationFrame(K)}r.onMounted(()=>{J();const $=c.value;if($){const V=Math.ceil(window.devicePixelRatio);$.width=n.size*V,$.height=n.size*V,s=$.getContext("2d"),s?.setTransform(V,0,0,V,0,0),B(),r.watch(n,B)}});function P($){return($-90)*Math.PI/180}function L($,V=b.value){const F=$*Math.PI/180;return{x:h.value+V*Math.sin(F),y:h.value-V*Math.cos(F)}}function B(){if(!s)return;const $=p.value;if(s.clearRect(0,0,n.size,n.size),s.save(),s.shadowColor="rgba(0,0,0,0.2)",s.shadowBlur=4,s.beginPath(),s.arc(h.value,h.value,b.value,0,2*Math.PI),s.strokeStyle=i.arc,s.lineWidth=n.arcWidth,s.stroke(),s.restore(),!n.hideArrows){s.save(),s.strokeStyle=i.arc,s.lineWidth=3,s.beginPath(),s.arc(h.value,h.value,b.value+30,P(-30),P(-60),!0);const ce=L(-60,b.value+30);s.moveTo(ce.x-4,ce.y-16),s.lineTo(ce.x-1,ce.y+2),s.lineTo(ce.x+16,ce.y-4),s.stroke(),s.beginPath(),s.arc(h.value,h.value,b.value+30,P(30),P(60),!1);const Pe=L(60,b.value+30);s.moveTo(Pe.x-16,Pe.y-4),s.lineTo(Pe.x+1,Pe.y+2),s.lineTo(Pe.x+4,Pe.y-16),s.stroke(),s.restore()}s.strokeStyle=i.arc,s.lineWidth=4;for(let ce=1;ce<=12;ce++){const Pe=ce*30;s.save(),s.translate(h.value,h.value),s.rotate(Pe*Math.PI/180),s.beginPath(),s.moveTo(0,-b.value+n.arcWidth*.8),s.lineTo(0,-b.value+n.arcWidth*2),s.stroke(),s.restore()}if(Math.abs(k.value)>=108){s.beginPath();const ce=k.value<0;s.arc(h.value,h.value,b.value,P(0),P(k.value),ce),n.colored?s.strokeStyle=ce?i.leftTail:i.rightTail:s.strokeStyle=i.tail,s.lineWidth=n.arcWidth,s.stroke()}let V;Math.abs($)<108?V=0:V=$-Math.sign($)*108;const F=$,X=n.arcWidth/2;s.save(),s.beginPath();const K=F<V;s.arc(h.value,h.value,b.value+X,P(V),P(F),K),s.arc(h.value,h.value,b.value-X,P(F),P(V),!K),s.closePath(),s.save(),s.clip();const Z=s.createConicGradient(($-90)*Math.PI/180,h.value,h.value);n.colored?(Z.addColorStop(0,i.leftHead),Z.addColorStop(100/360,i.leftTail),Z.addColorStop(260/360,i.rightTail),Z.addColorStop(1,i.rightHead)):(Z.addColorStop(0,i.head),Z.addColorStop(100/360,i.tail),Z.addColorStop(260/360,i.tail),Z.addColorStop(1,i.head)),s.fillStyle=Z,s.fillRect(0,0,n.size,n.size),s.restore(),s.restore();const ie=L($,b.value),Ie=n.arcWidth*(n.showHandle?.8:.5);s.beginPath(),s.arc(ie.x,ie.y,Ie,0,2*Math.PI),(n.showHandle||o.value)&&(s.fillStyle=o.value?n.colored?K?i.leftHead:i.rightHead:i.head:"#000",s.fill()),n.showHandle&&(s.lineWidth=4,s.strokeStyle="#fff",s.stroke())}function T($){if(!l.value)return 0;const V=l.value.getBoundingClientRect(),F=V.left+h.value,X=V.top+h.value;let K,Z;if("touches"in $&&$.touches.length)K=$.touches[0].clientX-F,Z=$.touches[0].clientY-X;else if("clientX"in $)K=$.clientX-F,Z=$.clientY-X;else return 0;return Math.atan2(K,-Z)*180/Math.PI}function q($){u.value=!0,a("drag:start"),m.value=T($)}function ee($){u.value&&(d&&cancelAnimationFrame(d),d=requestAnimationFrame(()=>{const V=T($);let F=V-m.value;F>180&&(F-=360),F<-180&&(F+=360);const X=Math.round(Math.max(g.value,Math.min(y.value,p.value+F)));if(X!==p.value){p.value=X,Math.abs(p.value)>Math.abs(f.value)&&(f.value=p.value),m.value=V;const K=Math.round(p.value/360*(60/n.steps));K!==o.value&&(o.value=K*n.steps,a("drag:update")),B()}}))}function G(){u.value=!1,a("drag:end")}function J(){if(l.value){const $=getComputedStyle(l.value);i.arc=$.getPropertyValue("--bcc-knob-arc-bg")||i.arc,i.head=$.getPropertyValue("--bcc-knob-head")||i.head,i.tail=$.getPropertyValue("--bcc-knob-tail")||i.tail,i.leftHead=$.getPropertyValue("--bcc-knob-left-head")||i.leftHead,i.leftTail=$.getPropertyValue("--bcc-knob-left-tail")||i.leftTail,i.rightHead=$.getPropertyValue("--bcc-knob-right-head")||i.rightHead,i.rightTail=$.getPropertyValue("--bcc-knob-right-tail")||i.rightTail}}if(typeof window<"u"&&window.matchMedia){const $=window.matchMedia("(prefers-color-scheme: dark)"),V=()=>J();$.addEventListener("change",V),r.onUnmounted(()=>{$.removeEventListener("change",V)})}return($,V)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"knobContainer",ref:l,class:"bcc-knob",onMousedown:q,onTouchstart:q,onMousemove:ee,onTouchmove:ee,onMouseup:G,onTouchend:G,onMouseleave:G},[r.createElementVNode("canvas",{ref_key:"canvasEl",ref:c,class:"object-fit w-full"},null,512),r.createElementVNode("div",Bx,[r.renderSlot($.$slots,"left")]),r.createElementVNode("div",Ox,[r.renderSlot($.$slots,"right")]),r.createElementVNode("div",Tx,[r.renderSlot($.$slots,"default")])],544))}}),Lx=r.defineComponent({__name:"BccFrame",props:{shadow:{type:Boolean},rounded:{type:Boolean},sunken:{type:Boolean},raised:{type:Boolean},overlay:{type:Boolean},center:{type:Boolean},between:{type:Boolean},left:{type:Boolean},right:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},stretch:{type:Boolean}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-frame",{"bcc-frame--shadow":t.shadow,"bcc-frame--rounded":t.rounded,"bcc-frame--raised":t.raised,"bcc-frame--overlay":t.overlay,"bcc-frame--sunken":t.sunken,center:t.center,col:!t.center,between:t.between,left:t.left,right:t.right,top:t.top,bottom:t.bottom,stretch:t.stretch}])},[r.renderSlot(e.$slots,"default")],2))}}),Dx=["src"],$x=["src"],Mx={class:"bcc-graphic-logo bcc-graphic-logo--loading"},zx={key:2,class:"corner top-left"},Ax={key:3,class:"corner top-right"},Vx={key:4,class:"corner bottom-right"},Rx={key:5,class:"corner bottom-left"},ca={ultraWide:"42.85%",wide:"56.25%",landscape:"75%",square:"100%",portrait:"133.33%"},da={none:"",sm:"rounded-sm",base:"rounded",md:"rounded-md",xl:"rounded-xl"};function Fx(t){if(t){if(t in ca)return ca[t];const e=t;if(e.includes("/")){const[n,a]=e.split("/").map(Number);if(n&&a)return`${(a/n*100).toFixed(2)}%`}return e}return ca.wide}const Nx=r.defineComponent({__name:"BccGraphic",props:{bannerSrc:{},logoSrc:{},rounding:{default:"xl"},ratio:{default:"wide"},grayscale:{type:Boolean}},setup(t){const e=t,n=r.ref(!1),a=r.ref(!1),i=r.computed(()=>Fx(e.ratio));return(o,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-graphic",da[t.rounding]]),style:r.normalizeStyle(`padding-bottom: ${i.value}`)},[t.bannerSrc?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.withDirectives(r.createElementVNode("img",{src:t.bannerSrc,defer:"",class:r.normalizeClass(["bcc-graphic-banner",da[t.rounding]]),onLoad:l[0]||(l[0]=c=>n.value=!0)},null,42,Dx),[[r.vShow,n.value]]),r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass(["bcc-graphic-banner bcc-graphic-banner--loading",da[t.rounding]])},null,2),[[r.vShow,!n.value]])],64)):r.createCommentVNode("",!0),t.logoSrc?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.withDirectives(r.createElementVNode("img",{src:t.logoSrc,defer:"",class:"bcc-graphic-logo",onLoad:l[1]||(l[1]=c=>a.value=!0)},null,40,$x),[[r.vShow,a.value]]),r.withDirectives(r.createElementVNode("div",Mx,null,512),[[r.vShow,!a.value]])],64)):r.createCommentVNode("",!0),o.$slots.topLeft?(r.openBlock(),r.createElementBlock("div",zx,[r.renderSlot(o.$slots,"top-left")])):r.createCommentVNode("",!0),o.$slots.topRight?(r.openBlock(),r.createElementBlock("div",Ax,[r.renderSlot(o.$slots,"top-right")])):r.createCommentVNode("",!0),o.$slots.bottomRight?(r.openBlock(),r.createElementBlock("div",Vx,[r.renderSlot(o.$slots,"bottom-right")])):r.createCommentVNode("",!0),o.$slots.bottomLeft?(r.openBlock(),r.createElementBlock("div",Rx,[r.renderSlot(o.$slots,"bottom-left")])):r.createCommentVNode("",!0)],6))}}),Kx={class:"bcc-nps-result-gauge",viewBox:"0 0 180 180",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jx={key:0,class:"bcc-nps-result-labels"},Hx={class:"bcc-nps-result-labels--heading"},Ux={class:"bcc-nps-result-labels--label"},qx=240,mo=-165,Wl=75,Gx=r.defineComponent({__name:"BccNpsResult",props:{score:{},size:{default:"md"},display:{},underline:{},hideText:{type:Boolean,default:!1},animated:{type:Boolean,default:!0}},setup(t){const e=t;function n(o){const c=(o+100)/200*qx+mo;return c>Wl?Wl:c<mo?mo:c}const a=r.ref(!1);setTimeout(()=>{a.value=!0},150);const i=r.computed(()=>{const o=mo;return a.value&&e.score!==void 0?n(e.score):o});return(o,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-nps-result",[t.size,{animated:t.animated}]])},[(r.openBlock(),r.createElementBlock("svg",Kx,[l[0]||(l[0]=r.createStaticVNode('<path d="M12.0577 135C2.5704 118.567 -1.48062 99.5568 0.48344 80.6841C2.4475 61.8114 10.3261 44.0423 22.9937 29.9154L49.7962 53.9492C42.1957 62.4254 37.4685 73.0868 36.2901 84.4105C35.1116 95.7341 37.5422 107.14 43.2346 117L12.0577 135Z" fill="var(--color-background-accent-red-subtler-default)"></path><path d="M89.3717 0.00219296C77.0316 0.0883391 64.8411 2.71131 53.5576 7.70812C42.2741 12.7049 32.1388 19.9688 23.7814 29.0484L50.2688 53.429C55.2833 47.9813 61.3645 43.623 68.1346 40.6249C74.9047 37.6268 82.219 36.053 89.623 36.0013L89.3717 0.00219296Z" fill="var(--color-background-accent-orange-subtler-default)"></path><path d="M90.6283 0.00219328C102.953 0.0882391 115.129 2.70484 126.401 7.68981C137.673 12.6748 147.801 19.9219 156.157 28.9818L129.694 53.3891C124.681 47.9531 118.604 43.6049 111.841 40.6139C105.077 37.6229 97.7719 36.0529 90.377 36.0013L90.6283 0.00219328Z" fill="var(--color-background-accent-yellow-subtler-default)"></path><path d="M167.942 135C177.437 118.555 181.487 99.5278 179.512 80.6415C177.538 61.7551 169.64 43.9772 156.949 29.8515L130.169 53.9109C137.784 62.3863 142.523 73.0531 143.707 84.3849C144.892 95.7167 142.462 107.133 136.765 117L167.942 135Z" fill="var(--color-background-accent-green-subtler-default)"></path><path d="M12.0577 135C2.57553 118.576 -1.47637 99.5772 0.480336 80.714C2.43704 61.8508 10.3023 44.0878 22.9536 29.9601L36.3629 41.9681C26.2419 53.2703 19.9496 67.4807 18.3843 82.5712C16.8189 97.6617 20.0604 112.861 27.6462 126L12.0577 135Z" fill="var(--color-background-accent-red-subtle-default)"></path><path d="M89.3717 0.00219296C77.0341 0.0883218 64.846 2.71026 53.5643 7.70516C42.2827 12.7 32.1485 19.9612 23.7913 29.0376L37.0331 41.2301C43.7188 33.969 51.8262 28.16 60.8515 24.1641C69.8768 20.1682 79.6273 18.0707 89.4974 18.0018L89.3717 0.00219296Z" fill="var(--color-background-accent-orange-subtle-default)"></path><path d="M90.6283 0.00219328C102.954 0.0882432 115.13 2.70509 126.403 7.69052C137.675 12.6759 147.803 19.9237 156.16 28.9844L142.928 41.1875C136.243 33.9389 128.14 28.1408 119.122 24.1524C110.104 20.1641 100.363 18.0706 90.5027 18.0018L90.6283 0.00219328Z" fill="var(--color-background-accent-yellow-subtle-default)"></path><path d="M167.948 134.99C177.439 118.546 181.487 99.522 179.512 80.6389C177.537 61.7558 169.641 43.9809 156.954 29.8566L143.563 41.8853C153.713 53.1847 160.03 67.4046 161.609 82.5111C163.189 97.6176 159.951 112.837 152.359 125.992L167.948 134.99Z" fill="var(--color-background-accent-green-subtle-default)"></path>',8)),r.createElementVNode("path",{d:"M146.5 32L92.4146 83.7224C91.5428 83.4105 90.5855 83.2889 89.604 83.4079C86.2246 83.8174 83.816 86.8938 84.226 90.2769C84.636 93.66 87.7097 96.072 91.089 95.6625C94.4684 95.253 96.877 92.1766 96.4671 88.7934C96.4262 88.4565 96.3578 88.1295 96.2663 87.8141L147.5 33C148.638 31.7164 147.776 30.8506 146.5 32Z",fill:"currentColor",class:"bcc-nps-result-gauge-dial",style:r.normalizeStyle(`transform: rotate(${i.value}deg)`)},null,4)])),!t.hideText&&t.size!=="xs"?(r.openBlock(),r.createElementBlock("div",jx,[r.createElementVNode("h3",Hx,r.toDisplayString(t.display??t.score),1),r.createElementVNode("label",Ux,r.toDisplayString(t.underline),1)])):r.createCommentVNode("",!0)],2))}}),Wx={class:"bcc-nps-score"},Yx={class:"bcc-nps-score--label"},Zx={class:"bcc-nps-score--label text-right"},Xx=["disabled","onClick"],Jx=r.defineComponent({__name:"BccNpsScore",props:r.mergeModels({reverse:{type:Boolean,default:!1},leftLabel:{default:"Not likely"},rightLabel:{default:"Very likely"},labelPosition:{default:"top"},min:{default:0},max:{default:10},disabled:{type:Boolean,default:!1}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t;let a=null;function i(l){n.disabled||(e.value===null&&(e.value=0),a&&clearInterval(a),a=setInterval(()=>{if(e.value===l)return a&&clearInterval(a);e.value<l?++e.value:--e.value},20))}const o=r.computed(()=>{let l=[];for(let c=n.min;c<=n.max;c++)l.push(c);return l});return(l,c)=>(r.openBlock(),r.createElementBlock("div",Wx,[r.createElementVNode("div",{class:r.normalizeClass(["bcc-nps-score--heading",t.labelPosition==="top"?"order-1":t.labelPosition==="bottom"?"order-last":""])},[r.createElementVNode("p",Yx,r.toDisplayString(t.leftLabel),1),r.createElementVNode("p",Zx,r.toDisplayString(t.rightLabel),1)],2),r.createElementVNode("div",{class:r.normalizeClass(["bcc-nps-score--bar order-2",{disabled:t.disabled,reverse:t.reverse}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,s=>(r.openBlock(),r.createElementBlock("button",{key:s,disabled:t.disabled,class:r.normalizeClass(["bcc-nps-score--number",{inactive:e.value===null||isNaN(e.value)||e.value<s,active:e.value===s}]),onClick:d=>i(s)},r.toDisplayString(s),11,Xx))),128))],2)]))}});function Qx(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-440H240q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h200v-200q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v200h200q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H520v200q0 17-11.5 28.5T480-200q-17 0-28.5-11.5T440-240v-200Z"})])}function _x(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q43 0 83 8.5t77 24.5v90q0 32 22.5 54.5T717-680h3v23q0 23 17 40t40 17h85q9 29 13.5 58.5T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-180q58 0 107-28t79-76q6-12-1-24t-21-12H316q-14 0-21 12t-1 24q30 48 79.5 76T480-260ZM340-520q25 0 42.5-17.5T400-580q0-25-17.5-42.5T340-640q-25 0-42.5 17.5T280-580q0 25 17.5 42.5T340-520Zm280 0q25 0 42.5-17.5T680-580q0-25-17.5-42.5T620-640q-25 0-42.5 17.5T560-580q0 25 17.5 42.5T620-520Zm180-240h-40q-17 0-28.5-11.5T720-800q0-17 11.5-28.5T760-840h40v-40q0-17 11.5-28.5T840-920q17 0 28.5 11.5T880-880v40h40q17 0 28.5 11.5T960-800q0 17-11.5 28.5T920-760h-40v40q0 17-11.5 28.5T840-680q-17 0-28.5-11.5T800-720v-40Z"})])}function eC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-480Zm0 400q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q43 0 83 8.5t77 24.5v90q-35-20-75.5-31.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-32-6.5-62T776-600h86q9 29 13.5 58.5T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm320-680h-40q-17 0-28.5-11.5T720-800q0-17 11.5-28.5T760-840h40v-40q0-17 11.5-28.5T840-920q17 0 28.5 11.5T880-880v40h40q17 0 28.5 11.5T960-800q0 17-11.5 28.5T920-760h-40v40q0 17-11.5 28.5T840-680q-17 0-28.5-11.5T800-720v-40ZM620-520q25 0 42.5-17.5T680-580q0-25-17.5-42.5T620-640q-25 0-42.5 17.5T560-580q0 25 17.5 42.5T620-520Zm-280 0q25 0 42.5-17.5T400-580q0-25-17.5-42.5T340-640q-25 0-42.5 17.5T280-580q0 25 17.5 42.5T340-520Zm140 260q58 0 107-28t79-76q6-12-1-24t-21-12H316q-14 0-21 12t-1 24q30 48 79.5 76T480-260Z"})])}function tC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-313v-447q0-17 11.5-28.5T480-800q17 0 28.5 11.5T520-760v447l196-196q12-12 28-11.5t28 12.5q11 12 11.5 28T772-452L508-188q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L188-452q-11-11-11-27.5t11-28.5q12-12 28.5-12t28.5 12l195 195Z"})])}function nC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-647 244-451q-12 12-28 11.5T188-452q-11-12-11.5-28t11.5-28l264-264q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l264 264q11 11 11 27.5T772-452q-12 12-28.5 12T715-452L520-647v447q0 17-11.5 28.5T480-160q-17 0-28.5-11.5T440-200v-447Z"})])}function rC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-54-17.5-104T732-676L284-228q42 33 92 50.5T480-160ZM228-284l448-448q-42-33-92-50.5T480-800q-134 0-227 93t-93 227q0 54 17.5 104t50.5 92Z"})])}function oC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-40q0-17 11.5-28.5T280-880q17 0 28.5 11.5T320-840v40h320v-40q0-17 11.5-28.5T680-880q17 0 28.5 11.5T720-840v40h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"})])}function aC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m480-424 116 116q11 11 28 11t28-11q11-11 11-28t-11-28L536-480l116-116q11-11 11-28t-11-28q-11-11-28-11t-28 11L480-536 364-652q-11-11-28-11t-28 11q-11 11-11 28t11 28l116 116-116 116q-11 11-11 28t11 28q11 11 28 11t28-11l116-116Zm0 344q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})])}function ho(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m382-354 339-339q12-12 28.5-12t28.5 12q12 12 12 28.5T778-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})])}function iC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M280-440q-17 0-28.5-11.5T240-480q0-17 11.5-28.5T280-520h400q17 0 28.5 11.5T720-480q0 17-11.5 28.5T680-440H280Z"})])}function lC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z"})])}function sC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z"})])}function Yl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})])}function cC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm40-83q119-15 199.5-104.5T800-480q0-123-80.5-212.5T520-797v634Z"})])}function dC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M280-120q-33 0-56.5-23.5T200-200v-520q-17 0-28.5-11.5T160-760q0-17 11.5-28.5T200-800h160q0-17 11.5-28.5T400-840h160q17 0 28.5 11.5T600-800h160q17 0 28.5 11.5T800-760q0 17-11.5 28.5T760-720v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"})])}function uC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M200-200h56l345-345-56-56-345 345v56Zm572-403L602-771l56-56q23-23 56.5-23t56.5 23l56 56q23 23 24 55.5T829-660l-57 57ZM160-120q-17 0-28.5-11.5T120-160v-113q0-8 3-15.5t9-13.5l412-412 170 170-412 412q-6 6-13.5 9t-15.5 3H160Zm413-453-28-28 56 56-28-28Z"})])}function pC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})])}function fC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-529 324-373q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-529Z"})])}function mC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-362q-8 0-15-2.5t-13-8.5L268-557q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-373q-6 6-13 8.5t-15 2.5Z"})])}function hC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-160q-17 0-28.5-11.5T400-200v-240L168-736q-15-20-4.5-42t36.5-22h560q26 0 36.5 22t-4.5 42L560-440v240q0 17-11.5 28.5T520-160h-80Z"})])}function bC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-160q-17 0-28.5-11.5T400-200v-240L168-736q-15-20-4.5-42t36.5-22h560q26 0 36.5 22t-4.5 42L560-440v240q0 17-11.5 28.5T520-160h-80Zm40-308 198-252H282l198 252Zm0 0Z"})])}function gC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m592-481-57-57 143-182H353l-80-80h487q25 0 36 22t-4 42L592-481Zm-32 194v87q0 17-11.5 28.5T520-160h-80q-17 0-28.5-11.5T400-200v-247L84-763q-11-11-11-27.5T84-819q12-12 28.5-12t28.5 12l679 679q12 12 11.5 28T819-84q-12 11-28 11.5T763-84L560-287Zm-25-251Z"})])}function ua(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})])}function Zl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"})])}function Xl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z"})])}function vC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z"})])}function yC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z"})])}function kC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m480-313 156-155q11-11 27.5-11.5T692-468q11 11 11 28t-11 28L508-228q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L268-412q-11-11-11.5-27.5T268-468q11-11 28-11t28 11l156 155Zm0-240 156-155q11-11 27.5-11.5T692-708q11 11 11 28t-11 28L508-468q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L268-652q-11-11-11.5-27.5T268-708q11-11 28-11t28 11l156 155Z"})])}function wC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m313-480 155 156q11 11 11.5 27.5T468-268q-11 11-28 11t-28-11L228-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 27.5-11.5T468-692q11 11 11 28t-11 28L313-480Zm264 0 155 156q11 11 11.5 27.5T732-268q-11 11-28 11t-28-11L492-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 27.5-11.5T732-692q11 11 11 28t-11 28L577-480Z"})])}function xC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M383-480 228-636q-11-11-11.5-27.5T228-692q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L284-268q-11 11-27.5 11.5T228-268q-11-11-11-28t11-28l155-156Zm264 0L492-636q-11-11-11.5-27.5T492-692q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L548-268q-11 11-27.5 11.5T492-268q-11-11-11-28t11-28l155-156Z"})])}function CC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-407 324-252q-11 11-27.5 11.5T268-252q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11.5 27.5T692-252q-11 11-28 11t-28-11L480-407Zm0-240L324-492q-11 11-27.5 11.5T268-492q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11.5 27.5T692-492q-11 11-28 11t-28-11L480-647Z"})])}function IC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M160-240q-17 0-28.5-11.5T120-280q0-17 11.5-28.5T160-320h640q17 0 28.5 11.5T840-280q0 17-11.5 28.5T800-240H160Zm0-200q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520h640q17 0 28.5 11.5T840-480q0 17-11.5 28.5T800-440H160Zm0-200q-17 0-28.5-11.5T120-680q0-17 11.5-28.5T160-720h640q17 0 28.5 11.5T840-680q0 17-11.5 28.5T800-640H160Z"})])}function SC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM240-160q-33 0-56.5-23.5T160-240v-32q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v32q0 33-23.5 56.5T720-160H240Z"})])}function PC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-70q0-17 11.5-28.5T760-800q17 0 28.5 11.5T800-760v200q0 17-11.5 28.5T760-520H560q-17 0-28.5-11.5T520-560q0-17 11.5-28.5T560-600h128q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q68 0 124.5-34.5T692-367q8-14 22.5-19.5t29.5-.5q16 5 23 21t-1 30q-41 80-117 128t-169 48Z"})])}function BC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M240-440q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h480q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H240Z"})])}function OC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M380-320q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})])}function TC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-229 314-129q-11 7-23 6t-21-8q-9-7-14-17.5t-2-23.5l44-189-147-127q-10-9-12.5-20.5T140-531q4-11 12-18t22-9l194-17 75-178q5-12 15.5-18t21.5-6q11 0 21.5 6t15.5 18l75 178 194 17q14 2 22 9t12 18q4 11 1.5 22.5T809-488L662-361l44 189q3 13-2 23.5T690-131q-9 7-21 8t-23-6L480-229Z"})])}function EC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m354-247 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143Zm126 18L314-129q-11 7-23 6t-21-8q-9-7-14-17.5t-2-23.5l44-189-147-127q-10-9-12.5-20.5T140-531q4-11 12-18t22-9l194-17 75-178q5-12 15.5-18t21.5-6q11 0 21.5 6t15.5 18l75 178 194 17q14 2 22 9t12 18q4 11 1.5 22.5T809-488L662-361l44 189q3 13-2 23.5T690-131q-9 7-21 8t-23-6L480-229Zm0-201Z"})])}function LC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M320-200q-17 0-28.5-11.5T280-240q0-17 11.5-28.5T320-280h244q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l76 76q11 11 11 28t-11 28q-11 11-28 11t-28-11L188-572q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l144-144q11-11 28-11t28 11q11 11 11 28t-11 28l-76 76h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H320Z"})])}function DC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M240-160q-33 0-56.5-23.5T160-240v-80q0-17 11.5-28.5T200-360q17 0 28.5 11.5T240-320v80h480v-80q0-17 11.5-28.5T760-360q17 0 28.5 11.5T800-320v80q0 33-23.5 56.5T720-160H240Zm200-486-75 75q-12 12-28.5 11.5T308-572q-11-12-11.5-28t11.5-28l144-144q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l144 144q12 12 11.5 28T652-572q-12 12-28.5 12.5T595-571l-75-75v286q0 17-11.5 28.5T480-320q-17 0-28.5-11.5T440-360v-286Z"})])}function $C(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-139 0-254-73.5T52-472q-3-5-4-12.5T47-500q0-8 1-15.5t4-12.5q59-125 174-198.5T480-800q139 0 254 73.5T908-528q3 5 4 12.5t1 15.5q0 8-1 15.5t-4 12.5q-59 125-174 198.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})])}function MC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q143 0 257 75.5T908-528q3 5 4 12.5t1 15.5q0 8-1.5 15.5T908-472q-23 51-57.5 94T772-302Zm-8 218L624-222q-35 11-70.5 16.5T480-200q-143 0-257-75.5T52-472q-3-5-4-12.5T47-500q0-8 1-15t4-12q21-45 50-83t64-70l-83-84q-11-11-11-27.5T84-820q11-11 28-11t28 11l680 680q11 11 11.5 27.5T820-84q-11 11-28 11t-28-11ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})])}function Jl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm69-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Zm0-100Z"})])}function zC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M340-540h-40q-17 0-28.5-11.5T260-580q0-17 11.5-28.5T300-620h40v-40q0-17 11.5-28.5T380-700q17 0 28.5 11.5T420-660v40h40q17 0 28.5 11.5T500-580q0 17-11.5 28.5T460-540h-40v40q0 17-11.5 28.5T380-460q-17 0-28.5-11.5T340-500v-40Zm40 220q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})])}function AC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M320-540q-17 0-28.5-11.5T280-580q0-17 11.5-28.5T320-620h120q17 0 28.5 11.5T480-580q0 17-11.5 28.5T440-540H320Zm60 220q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})])}const VC={key:0,class:"body-sm mx-1"},Ql=r.defineComponent({__name:"BccReactEmoji",props:{id:{},emoji:{},count:{},selected:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.watch(()=>e.count,()=>{n.value=!0,setTimeout(()=>{n.value=!1},1e3)}),(a,i)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["bcc-react-emoji-list-item",{selected:t.selected,"animate-wiggle":n.value}])},[r.createElementVNode("span",null,r.toDisplayString(t.emoji),1),t.count&&t.count>1?(r.openBlock(),r.createElementBlock("span",VC,r.toDisplayString(t.count),1)):r.createCommentVNode("",!0)],2))}}),RC={class:"bcc-react"},FC={key:"list",class:"bcc-react-list"},NC={key:1,class:"bcc-react-empty"},KC={class:"bcc-react-selector-emojis-container"},jC=["onClick"],HC={key:0,class:"bcc-react-selector-more"},UC={class:"bcc-react-dropdown"},qC=["onClick"],pa=7,fa=36,GC=r.defineComponent({__name:"BccReact",props:{emojis:{},top:{type:Boolean,default:!1},placeholder:{default:"Be the first to react 😉"}},emits:["toggle"],setup(t,{emit:e}){const n=t,a=e,i=r.ref(!1),o=r.ref(!1),l=r.ref(null),c=r.ref(null),s=r.ref(null),d=r.ref(!1),u=r.computed(()=>{const y=n.emojis.filter(k=>k.count&&k.count>0);return y.sort((k,S)=>S.count-k.count),y}),p=r.computed(()=>n.emojis.filter(y=>!y.selected)),f=r.computed(()=>p.value.length>pa),m=r.ref([]),h=r.ref([]);function b(y){l.value=y.id,a("toggle",y.id),setTimeout(()=>{i.value=!1,l.value=null},250)}function g(){if(!c.value)return;const y=c.value.getBoundingClientRect(),k=window.innerHeight||document.documentElement.clientHeight;d.value=y.bottom+200>k}return r.watch(i,async y=>{y&&(m.value=p.value.slice(0,pa),h.value=p.value.slice(pa),await r.nextTick(g))}),r.watch(o,async y=>{if(await r.nextTick(g),!c.value)return;const k=c.value;k.style.transition="height 0.3s ease, transform 0.3s ease",y?(k.style.height=`${fa}px`,k.style.transform="translateY(0)",k.offsetHeight,k.style.height=k.scrollHeight+"px",d.value&&(k.style.transform=`translateY(-${k.scrollHeight-fa}px)`)):(k.offsetHeight,k.style.height=k.scrollHeight+"px",k.style.height=`${fa}px`,d.value&&(k.style.transform="translateY(0)"))}),r.onMounted(()=>{function y(k){const S=k.target;!i.value||c.value?.contains(S)||s.value?.contains(S)||(i.value=!1)}document.addEventListener("click",y,!0),r.onUnmounted(()=>{document.removeEventListener("click",y,!0)})}),(y,k)=>(r.openBlock(),r.createElementBlock("div",RC,[r.createVNode(r.TransitionGroup,{name:"bcc-fade"},{default:r.withCtx(()=>[i.value||t.emojis.some(S=>!S.selected)?(r.openBlock(),r.createElementBlock("button",{key:"toggle",ref_key:"toggleButton",ref:s,class:r.normalizeClass(["bcc-react-toggle",[t.top?"rounded-b-full":"rounded-t-full"]]),onClick:k[0]||(k[0]=S=>i.value=!i.value)},[i.value?(r.openBlock(),r.createBlock(r.unref(_x),{key:0,class:"w-6"})):(r.openBlock(),r.createBlock(r.unref(eC),{key:1,class:"w-6"}))],2)):r.createCommentVNode("",!0),r.createElementVNode("div",FC,[u.value.length?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(u.value,S=>(r.openBlock(),r.createBlock(r.KeepAlive,{key:S.id},[r.createVNode(Ql,r.mergeProps({ref_for:!0},S,{onClick:v=>b(S)}),null,16,["onClick"])],1024))),128)):n.placeholder?(r.openBlock(),r.createElementBlock("p",NC,[r.createVNode(r.unref(Xl),{class:"mr-1 w-4"}),r.createTextVNode(" "+r.toDisplayString(n.placeholder),1)])):r.createCommentVNode("",!0)])]),_:1}),r.createVNode(r.Transition,{name:"bcc-scale-fast",onAfterLeave:k[2]||(k[2]=S=>o.value=!1)},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("div",{key:"selector",class:r.normalizeClass(["bcc-react-selector-container",{"bcc-react-selector-container--top":n.top}])},[r.createElementVNode("div",{ref_key:"selector",ref:c,class:"bcc-react-selector"},[r.createElementVNode("div",KC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.value,S=>(r.openBlock(),r.createElementBlock("button",{key:S.id,class:r.normalizeClass(["bcc-react-selector-item",{"bcc-react-selector-item--clicked":l.value===S.id}]),onClick:v=>b(S)},r.toDisplayString(S.emoji),11,jC))),128)),f.value?(r.openBlock(),r.createElementBlock("span",HC,[r.createElementVNode("button",{class:"bcc-react-selector-more-btn",onClick:k[1]||(k[1]=S=>o.value=!o.value)},[r.createVNode(r.unref(Zl),{class:r.normalizeClass(["bcc-react-arrow-down-icon",{open:o.value}])},null,8,["class"])])])):r.createCommentVNode("",!0)]),f.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["bcc-react-dropdown-container",{"bcc-react-dropdown-container--top":n.top}])},[r.createElementVNode("div",UC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,S=>(r.openBlock(),r.createElementBlock("button",{key:S.id,class:r.normalizeClass(["bcc-react-selector-item",{"bcc-react-selector-item--clicked":l.value===S.id}]),onClick:v=>b(S)},r.toDisplayString(S.emoji),11,qC))),128))])],2)):r.createCommentVNode("",!0)],512)],2)):r.createCommentVNode("",!0)]),_:1})]))}}),WC={key:0,class:"flex gap-2"},YC={class:"text-heading-sm text-default"},ZC={key:0,class:"text-body-sm text-text-subtlest"},XC={class:"center gap-2"},JC=["onClick"],QC=r.defineComponent({__name:"BccStepIndicator",props:r.mergeModels({steps:{},hideText:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!0},left:{type:Boolean},right:{type:Boolean},context:{default:so.brand.bolder},headingFn:{type:Function,default:(t,e)=>`Step ${t} of ${e}`},clickable:{type:Boolean}},{modelValue:{default:0,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=r.useModel(t,"modelValue"),a=r.computed(()=>({current:n.value+1,total:e.steps.length,label:e.steps[n.value]??""}));return(i,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-step-indicator col gap-2",[{left:t.left,right:t.right},`ctx-${t.context}`]])},[e.hideText?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",WC,[r.createElementVNode("span",YC,r.toDisplayString(e.headingFn(a.value.current,a.value.total)),1),e.hideLabel?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",ZC,r.toDisplayString(a.value.label),1))])),r.createElementVNode("div",XC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(l,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,class:r.normalizeClass(["bg-ctx h-1.5 rounded-lg duration-300",[c===n.value?"w-6":"w-1.5",{clickable:t.clickable,"ctx-gray-subtle":c>n.value}]]),onClick:s=>t.clickable?n.value=c:null},null,10,JC))),128))])],2))}}),_C=r.defineComponent({__name:"BccTag",props:{size:{},border:{type:Boolean},bordered:{type:Boolean},context:{},icon:{type:[String,Function,Object]},iconRight:{type:[String,Function,Object,Boolean]},rounded:{type:Boolean},clickable:{type:Boolean},text:{}},setup(t){const e=t,n=r.computed(()=>{const{text:a,icon:i,iconRight:o,rounded:l,...c}=e;return c});return(a,i)=>(r.openBlock(),r.createBlock(ia,r.mergeProps({class:["bcc-tag",{clickable:t.clickable}]},n.value,{squared:!t.rounded}),{default:r.withCtx(()=>[t.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{key:0,class:r.normalizeClass(["bcc-badge-icon",{"order-1":t.iconRight===!0}])},null,8,["class"])):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.text),1)]),t.iconRight&&typeof t.iconRight!="boolean"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.iconRight),{key:1,class:"bcc-badge-icon"})):r.createCommentVNode("",!0)]),_:3},16,["class","squared"]))}});function eI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var _l=x.extend({name:"common"});function bn(t){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bn(t)}function tI(t){return ns(t)||nI(t)||ts(t)||es()}function nI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gn(t,e){return ns(t)||rI(t,e)||ts(t,e)||es()}function es(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
246
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ux(t,e){if(t){if(typeof t=="string")return Ul(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ul(t,e):void 0}}function Ul(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function px(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,i,o,l,c=[],s=!0,d=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(s=(a=o.call(n)).done)&&(c.push(a.value),c.length!==e);s=!0);}catch(u){d=!0,i=u}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function fx(t){if(Array.isArray(t))return t}function ql(t,e,n){return(e=mx(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mx(t){var e=hx(t,"string");return bt(e)=="symbol"?e:e+""}function hx(t,e){if(bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(bt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bt(t){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(t)}var fo=sx.extend("tooltip",{beforeMount:function(e,n){var a,i=this.getTarget(e);if(i.$_ptooltipModifiers=this.getModifiers(n),n.value){if(typeof n.value=="string")i.$_ptooltipValue=n.value,i.$_ptooltipDisabled=!1,i.$_ptooltipEscape=!0,i.$_ptooltipClass=null,i.$_ptooltipFitContent=!0,i.$_ptooltipIdAttr=Ge("pv_id")+"_tooltip",i.$_ptooltipShowDelay=0,i.$_ptooltipHideDelay=0,i.$_ptooltipAutoHide=!0;else if(bt(n.value)==="object"&&n.value){if(Y(n.value.value)||n.value.value.trim()==="")return;i.$_ptooltipValue=n.value.value,i.$_ptooltipDisabled=!!n.value.disabled===n.value.disabled?n.value.disabled:!1,i.$_ptooltipEscape=!!n.value.escape===n.value.escape?n.value.escape:!0,i.$_ptooltipClass=n.value.class||"",i.$_ptooltipFitContent=!!n.value.fitContent===n.value.fitContent?n.value.fitContent:!0,i.$_ptooltipIdAttr=n.value.id||Ge("pv_id")+"_tooltip",i.$_ptooltipShowDelay=n.value.showDelay||0,i.$_ptooltipHideDelay=n.value.hideDelay||0,i.$_ptooltipAutoHide=!!n.value.autoHide===n.value.autoHide?n.value.autoHide:!0}}else return;i.$_ptooltipZIndex=(a=n.instance.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.zIndex)===null||a===void 0?void 0:a.tooltip,this.bindEvents(i,n),e.setAttribute("data-pd-tooltip",!0)},updated:function(e,n){var a=this.getTarget(e);if(a.$_ptooltipModifiers=this.getModifiers(n),this.unbindEvents(a),!!n.value){if(typeof n.value=="string")a.$_ptooltipValue=n.value,a.$_ptooltipDisabled=!1,a.$_ptooltipEscape=!0,a.$_ptooltipClass=null,a.$_ptooltipIdAttr=a.$_ptooltipIdAttr||Ge("pv_id")+"_tooltip",a.$_ptooltipShowDelay=0,a.$_ptooltipHideDelay=0,a.$_ptooltipAutoHide=!0,this.bindEvents(a,n);else if(bt(n.value)==="object"&&n.value)if(Y(n.value.value)||n.value.value.trim()===""){this.unbindEvents(a,n);return}else a.$_ptooltipValue=n.value.value,a.$_ptooltipDisabled=!!n.value.disabled===n.value.disabled?n.value.disabled:!1,a.$_ptooltipEscape=!!n.value.escape===n.value.escape?n.value.escape:!0,a.$_ptooltipClass=n.value.class||"",a.$_ptooltipFitContent=!!n.value.fitContent===n.value.fitContent?n.value.fitContent:!0,a.$_ptooltipIdAttr=n.value.id||a.$_ptooltipIdAttr||Ge("pv_id")+"_tooltip",a.$_ptooltipShowDelay=n.value.showDelay||0,a.$_ptooltipHideDelay=n.value.hideDelay||0,a.$_ptooltipAutoHide=!!n.value.autoHide===n.value.autoHide?n.value.autoHide:!0,this.bindEvents(a,n)}},unmounted:function(e,n){var a=this.getTarget(e);this.hide(e,0),this.remove(a),this.unbindEvents(a,n),a.$_ptooltipScrollHandler&&(a.$_ptooltipScrollHandler.destroy(),a.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(e,n){var a=this,i=e.$_ptooltipModifiers;i.focus?(e.$_ptooltipFocusEvent=function(o){return a.onFocus(o,n)},e.$_ptooltipBlurEvent=this.onBlur.bind(this),e.addEventListener("focus",e.$_ptooltipFocusEvent),e.addEventListener("blur",e.$_ptooltipBlurEvent)):(e.$_ptooltipMouseEnterEvent=function(o){return a.onMouseEnter(o,n)},e.$_ptooltipMouseLeaveEvent=this.onMouseLeave.bind(this),e.$_ptooltipClickEvent=this.onClick.bind(this),e.addEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),e.addEventListener("mouseleave",e.$_ptooltipMouseLeaveEvent),e.addEventListener("click",e.$_ptooltipClickEvent)),e.$_ptooltipKeydownEvent=this.onKeydown.bind(this),e.addEventListener("keydown",e.$_ptooltipKeydownEvent),e.$_pWindowResizeEvent=this.onWindowResize.bind(this,e)},unbindEvents:function(e){var n=e.$_ptooltipModifiers;n.focus?(e.removeEventListener("focus",e.$_ptooltipFocusEvent),e.$_ptooltipFocusEvent=null,e.removeEventListener("blur",e.$_ptooltipBlurEvent),e.$_ptooltipBlurEvent=null):(e.removeEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),e.$_ptooltipMouseEnterEvent=null,e.removeEventListener("mouseleave",e.$_ptooltipMouseLeaveEvent),e.$_ptooltipMouseLeaveEvent=null,e.removeEventListener("click",e.$_ptooltipClickEvent),e.$_ptooltipClickEvent=null),e.removeEventListener("keydown",e.$_ptooltipKeydownEvent),window.removeEventListener("resize",e.$_pWindowResizeEvent),e.$_ptooltipId&&this.remove(e)},bindScrollListener:function(e){var n=this;e.$_ptooltipScrollHandler||(e.$_ptooltipScrollHandler=new Ee(e,function(){n.hide(e)})),e.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(e,n){var a=e.currentTarget,i=a.$_ptooltipShowDelay;this.show(a,n,i)},onMouseLeave:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay,i=n.$_ptooltipAutoHide;if(i)this.hide(n,a);else{var o=z(e.target,"data-pc-name")==="tooltip"||z(e.target,"data-pc-section")==="arrow"||z(e.target,"data-pc-section")==="text"||z(e.relatedTarget,"data-pc-name")==="tooltip"||z(e.relatedTarget,"data-pc-section")==="arrow"||z(e.relatedTarget,"data-pc-section")==="text";!o&&this.hide(n,a)}},onFocus:function(e,n){var a=e.currentTarget,i=a.$_ptooltipShowDelay;this.show(a,n,i)},onBlur:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay;this.hide(n,a)},onClick:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay;this.hide(n,a)},onKeydown:function(e){var n=e.currentTarget,a=n.$_ptooltipHideDelay;e.code==="Escape"&&this.hide(e.currentTarget,a)},onWindowResize:function(e){be()||this.hide(e),window.removeEventListener("resize",e.$_pWindowResizeEvent)},tooltipActions:function(e,n){if(!(e.$_ptooltipDisabled||!Yo(e)||!e.$_ptooltipPendingShow)){e.$_ptooltipPendingShow=!1;var a=this.create(e,n);this.align(e),!this.isUnstyled()&&mf(a,250);var i=this;window.addEventListener("resize",e.$_pWindowResizeEvent),a.addEventListener("mouseleave",function o(){i.hide(e),a.removeEventListener("mouseleave",o),e.removeEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),setTimeout(function(){return e.addEventListener("mouseenter",e.$_ptooltipMouseEnterEvent)},50)}),this.bindScrollListener(e),M.set("tooltip",a,e.$_ptooltipZIndex)}},show:function(e,n,a){var i=this;a!==void 0?(this.timer=setTimeout(function(){return i.tooltipActions(e,n)},a),e.$_ptooltipPendingShow=!0):(this.tooltipActions(e,n),e.$_ptooltipPendingShow=!1)},tooltipRemoval:function(e){this.remove(e),this.unbindScrollListener(e),window.removeEventListener("resize",e.$_pWindowResizeEvent)},hide:function(e,n){var a=this;clearTimeout(this.timer),e.$_ptooltipPendingShow=!1,n!==void 0?setTimeout(function(){return a.tooltipRemoval(e)},n):this.tooltipRemoval(e)},getTooltipElement:function(e){return document.getElementById(e.$_ptooltipId)},getArrowElement:function(e){var n=this.getTooltipElement(e);return E(n,'[data-pc-section="arrow"]')},create:function(e){var n=e.$_ptooltipModifiers,a=ut("div",{class:!this.isUnstyled()&&this.cx("arrow"),"p-bind":this.ptm("arrow",{context:n})}),i=ut("div",{class:!this.isUnstyled()&&this.cx("text"),"p-bind":this.ptm("text",{context:n})});e.$_ptooltipEscape?(i.innerHTML="",i.appendChild(document.createTextNode(e.$_ptooltipValue))):i.innerHTML=e.$_ptooltipValue;var o=ut("div",ql(ql({id:e.$_ptooltipIdAttr,role:"tooltip",style:{display:"inline-block",width:e.$_ptooltipFitContent?"fit-content":void 0,pointerEvents:!this.isUnstyled()&&e.$_ptooltipAutoHide&&"none"},class:[!this.isUnstyled()&&this.cx("root"),e.$_ptooltipClass]},this.$attrSelector,""),"p-bind",this.ptm("root",{context:n})),a,i);return document.body.appendChild(o),e.$_ptooltipId=o.id,this.$el=o,o},remove:function(e){if(e){var n=this.getTooltipElement(e);n&&n.parentElement&&(M.clear(n),document.body.removeChild(n)),e.$_ptooltipId=null}},align:function(e){var n=e.$_ptooltipModifiers;n.top?(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignTop(e))):n.left?(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignLeft(e))))):n.bottom?(this.alignBottom(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&this.alignBottom(e))):(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignRight(e)))))},getHostOffset:function(e){var n=e.getBoundingClientRect(),a=n.left+Go(),i=n.top+eo();return{left:a,top:i}},alignRight:function(e){this.preAlign(e,"right");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=this.getHostOffset(e),o=i.left+N(e),l=i.top+(he(e)-he(n))/2;n.style.left=o+"px",n.style.top=l+"px",a.style.top="50%",a.style.right=null,a.style.bottom=null,a.style.left="0"},alignLeft:function(e){this.preAlign(e,"left");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=this.getHostOffset(e),o=i.left-N(n),l=i.top+(he(e)-he(n))/2;n.style.left=o+"px",n.style.top=l+"px",a.style.top="50%",a.style.right="0",a.style.bottom=null,a.style.left=null},alignTop:function(e){this.preAlign(e,"top");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=N(n),o=N(e),l=ct(),c=l.width,s=this.getHostOffset(e),d=s.left+(o-i)/2,u=s.top-he(n);d<0?d=0:d+i>c&&(d=Math.floor(s.left+o-i)),n.style.left=d+"px",n.style.top=u+"px";var p=s.left-this.getHostOffset(n).left+o/2;a.style.top=null,a.style.right=null,a.style.bottom="0",a.style.left=p+"px"},alignBottom:function(e){this.preAlign(e,"bottom");var n=this.getTooltipElement(e),a=this.getArrowElement(e),i=N(n),o=N(e),l=ct(),c=l.width,s=this.getHostOffset(e),d=s.left+(o-i)/2,u=s.top+he(e);d<0?d=0:d+i>c&&(d=Math.floor(s.left+o-i)),n.style.left=d+"px",n.style.top=u+"px";var p=s.left-this.getHostOffset(n).left+o/2;a.style.top="0",a.style.right=null,a.style.bottom=null,a.style.left=p+"px"},preAlign:function(e,n){var a=this.getTooltipElement(e);a.style.left="-999px",a.style.top="-999px",Q(a,"p-tooltip-".concat(a.$_ptooltipPosition)),!this.isUnstyled()&&W(a,"p-tooltip-".concat(n)),a.$_ptooltipPosition=n,a.setAttribute("data-p-position",n)},isOutOfBounds:function(e){var n=this.getTooltipElement(e),a=n.getBoundingClientRect(),i=a.top,o=a.left,l=N(n),c=he(n),s=ct();return o+l>s.width||o<0||i<0||i+c>s.height},getTarget:function(e){var n;return st(e,"p-inputwrapper")&&(n=E(e,"input"))!==null&&n!==void 0?n:e},getModifiers:function(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&bt(e.arg)==="object"?Object.entries(e.arg).reduce(function(n,a){var i=cx(a,2),o=i[0],l=i[1];return(o==="event"||o==="position")&&(n[l]=!0),n},{}):{}}}});function bx(t){t.use(Dl,{theme:{preset:gl,options:{darkModeSelector:".dark",cssLayer:{name:"primevue",order:"theme, base, primevue, tailwind"}}}}),t.use(Kl),t.use(Dw),t.use(Ew),t.directive("tooltip",fo),t.directive("focus-trap",ot)}const gx={key:1},ia=r.defineComponent({__name:"BccBadge",props:{value:{},size:{default:"md"},border:{type:Boolean},bordered:{type:Boolean},squared:{type:Boolean},context:{default:so.neutral.subtle}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-badge",[`ctx-${t.context}`,t.size,{border:t.border,bordered:t.bordered,squared:t.squared,"bcc-badge-text":e.$slots.default||(typeof t.value=="string"||typeof t.value=="number")&&String(t.value).length>2}]])},[r.renderSlot(e.$slots,"default",{},()=>[typeof t.value=="function"||typeof t.value=="object"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.value),{key:0,class:"bcc-badge-icon"})):t.value?(r.openBlock(),r.createElementBlock("span",gx,r.toDisplayString(t.value),1)):r.createCommentVNode("",!0)])],2))}});function la(t,e=0,n=1e3){if(n<=.1)return{value:t};const a=r.ref(e);function i(o,l){const c=Date.now(),s=n,d=l-o,u=()=>{const p=Date.now()-c,f=vx(p,o,d,s);p<s?(a.value=Math.floor(f),window.requestAnimationFrame(u)):a.value=l};u()}return r.watch(t,o=>{i(a.value??e,o)},{immediate:!0}),{value:a}}function vx(t,e,n,a){return t/=a,-n*t*(t-2)+e}const yx=["stroke-dashoffset"],kx=["stroke-dashoffset"],wx=["y","font-size"],xx={key:3,d:"M14.4122 25.1588C13.1109 25.1588 12.017 24.6844 11.1305 23.7354C10.244 22.7864 9.80078 21.6525 9.80078 20.3337C9.80078 19.0287 10.2475 17.9121 11.1409 16.984C12.0343 16.0559 13.1247 15.5918 14.4122 15.5918C14.9358 15.5918 15.4424 15.679 15.9319 15.8533C16.4214 16.0277 16.8557 16.2965 17.2347 16.6597L19.0662 18.417L17.885 19.5628L16.1877 17.9045C15.9538 17.6704 15.6828 17.5015 15.3745 17.3978C15.0663 17.294 14.7475 17.2422 14.4182 17.2422C13.5803 17.2422 12.8763 17.5449 12.3063 18.1504C11.7362 18.756 11.4512 19.4851 11.4512 20.3379C11.4512 21.2047 11.7327 21.9497 12.2957 22.5732C12.8587 23.1967 13.566 23.5085 14.4176 23.5085C14.7413 23.5085 15.0554 23.4567 15.3599 23.3532C15.6644 23.2497 15.9391 23.088 16.1839 22.8681L22.7673 16.6597C23.1462 16.2965 23.5805 16.0277 24.07 15.8533C24.5596 15.679 25.0592 15.5918 25.5689 15.5918C26.8702 15.5918 27.9676 16.0559 28.861 16.984C29.7544 17.9121 30.2012 19.0287 30.2012 20.3337C30.2012 21.6525 29.7544 22.7864 28.861 23.7354C27.9676 24.6844 26.8702 25.1588 25.5689 25.1588C25.0592 25.1588 24.5561 25.0751 24.0596 24.9077C23.5631 24.7403 23.1324 24.475 22.7673 24.1117L20.9892 22.3545L22.1586 21.2087L23.8177 22.8681C24.0383 23.0885 24.3035 23.2503 24.6133 23.3536C24.9231 23.4568 25.2398 23.5085 25.5635 23.5085C26.4151 23.5085 27.1259 23.1961 27.6958 22.5714C28.2658 21.9467 28.5508 21.2021 28.5508 20.3377C28.5508 19.4872 28.2623 18.7586 27.6854 18.152C27.1085 17.5455 26.4012 17.2422 25.5635 17.2422C25.2398 17.2422 24.9257 17.3009 24.6212 17.4183C24.3167 17.5357 24.0489 17.7043 23.818 17.9242L17.2347 24.1326C16.8557 24.4819 16.418 24.7403 15.9215 24.9077C15.425 25.0751 14.9219 25.1588 14.4122 25.1588Z",fill:"currentColor",class:"text"},Cx=r.defineComponent({__name:"BccCapacityIndicator",props:{total:{},used:{default:0},size:{default:"base"},animationDuration:{default:1e3},squared:{type:Boolean,default:!1},colored:{type:Boolean,default:!1}},setup(t){const e=t,{value:n}=la(r.toRef(e,"used"),e.used,e.animationDuration),a=r.computed(()=>e.total===-1?-1:e.used>e.total||e.used===e.total?100:e.total>0?e.used/e.total*100:0),{value:i}=la(a,a.value,e.animationDuration),o=Math.PI*18*2;return(l,c)=>(r.openBlock(),r.createElementBlock("svg",{width:"2em",height:"2em",viewBox:"0 0 40 40",class:r.normalizeClass(["bcc-capacity-indicator",[t.size,t.squared?"rounded":"rounded-full",{colored:t.colored,"is-full":r.unref(i)>=100,"is-warning":r.unref(i)>=50&&r.unref(i)<100}]])},[t.squared?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[c[0]||(c[0]=r.createElementVNode("rect",{width:"36",height:"36",x:"2",y:"2",rx:"4",fill:"none",stroke:"currentColor","stroke-width":"4",class:"circle"},null,-1)),r.unref(i)>0?(r.openBlock(),r.createElementBlock("path",{key:0,d:"M 20 2 h 14 a 4 4 0 0 1 4 4 v 28 a 4 4 0 0 1 -4 4 h -28 a 4 4 0 0 1 -4 -4 v -28 a 4 4 0 0 1 4 -4 h 14 z",fill:"none","stroke-width":"4","stroke-dasharray":137,"stroke-dashoffset":137*((100-r.unref(i))/100),stroke:"currentColor",class:"circle-used"},null,8,yx)):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[c[1]||(c[1]=r.createElementVNode("circle",{cx:"20",cy:"20",r:"18",fill:"none","stroke-width":"3",stroke:"currentColor",class:"circle"},null,-1)),r.unref(i)>0?(r.openBlock(),r.createElementBlock("circle",{key:0,cx:"20",cy:"20",r:"18",fill:"none","stroke-width":"3","stroke-dasharray":o,"stroke-dashoffset":o*((100-r.unref(i))/100),stroke:"currentColor",transform:"rotate(-90 20 20)",class:"circle-used"},null,8,kx)):r.createCommentVNode("",!0)],64)),r.unref(i)>-1?(r.openBlock(),r.createElementBlock("text",{key:2,"text-anchor":"middle",x:"20",y:t.squared||t.size=="xs"?26:25,"font-size":t.size=="xs"?18:t.squared||t.size=="sm"?16:14,"font-weight":"600",fill:"currentColor",class:"text"},r.toDisplayString(r.unref(i)<100?t.total-r.unref(n):0),9,wx)):(r.openBlock(),r.createElementBlock("path",xx))],2))}}),Gl=(t,e)=>{const n=t.__vccOpts||t;for(const[a,i]of e)n[a]=i;return n},Ix={},Sx={fill:"none",viewBox:"0 0 58 58","aria-hidden":"true",class:"size-3"};function Px(t,e){return r.openBlock(),r.createElementBlock("svg",Sx,[...e[0]||(e[0]=[r.createStaticVNode('<g transform="translate(2 1)" stroke="currentColor" stroke-width="1.5"><circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="1;0;0;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;1;0;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;1;0;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;1;0;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;1;0;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;1;0;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;1;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="5" r="5" fill-opacity="0" fill="currentColor"><animate attributeName="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;0;1" calcMode="linear" repeatCount="indefinite"></animate></circle></g>',1)])])}const sa=Gl(Ix,[["render",Px]]),Bx={class:"bcc-knob-top-left"},Ox={class:"bcc-knob-top-right"},Tx={class:"bcc-knob-label"},Ex=r.defineComponent({__name:"BccDialKnob",props:r.mergeModels({size:{default:400},arcWidth:{default:20},min:{default:-720},max:{default:720},steps:{default:1},colored:{type:Boolean,default:!1},showHandle:{type:Boolean,default:!1},hideArrows:{type:Boolean,default:!1},duration:{default:1e3},animateRotations:{default:2}},{modelValue:{required:!0},modelModifiers:{}}),emits:r.mergeModels(["drag:start","drag:update","drag:end"],["update:modelValue"]),setup(t,{emit:e}){const n=t,a=e,i={arc:"#EFEFEF",head:"#437571",tail:"#A9BABA",leftHead:"#9B4F44",leftTail:"#DBBEAC",rightHead:"#3E8E75",rightTail:"#B1DECC"},o=r.useModel(t,"modelValue"),l=r.ref(null),c=r.ref(null);let s=null,d=0;const u=r.ref(!1),p=r.ref(0),f=r.ref(0),m=r.ref(0),h=r.computed(()=>n.size/2),b=r.computed(()=>h.value-n.arcWidth),g=r.computed(()=>n.min/60*360),y=r.computed(()=>n.max/60*360),k=r.computed(()=>Math.max(-359.99,Math.min(359.99,Math.max(g.value,Math.min(p.value,y.value)))));r.watch(o,$=>{if(u.value)return;const V=$/(60/n.steps)*360;v(V)},{immediate:!0});function S($,V){return F=>Math.round($+(V-$)*F)}function v($){if(u.value||$===p.value)return;const V=n.animateRotations;if(V>1){let Z=p.value;const ie=Math.round(Math.abs(Z-$)/360);ie>V&&($<Z?Z-=360*(ie-V):Z+=360*(ie-V),p.value=Z)}const F=performance.now(),X=S(p.value,$);function K(Z){const ie=Z-F,Ie=Math.min(ie/n.duration,1);p.value=X(Ie),B(),Ie<1&&requestAnimationFrame(K)}requestAnimationFrame(K)}r.onMounted(()=>{J();const $=c.value;if($){const V=Math.ceil(window.devicePixelRatio);$.width=n.size*V,$.height=n.size*V,s=$.getContext("2d"),s?.setTransform(V,0,0,V,0,0),B(),r.watch(n,B)}});function P($){return($-90)*Math.PI/180}function L($,V=b.value){const F=$*Math.PI/180;return{x:h.value+V*Math.sin(F),y:h.value-V*Math.cos(F)}}function B(){if(!s)return;const $=p.value;if(s.clearRect(0,0,n.size,n.size),s.save(),s.shadowColor="rgba(0,0,0,0.2)",s.shadowBlur=4,s.beginPath(),s.arc(h.value,h.value,b.value,0,2*Math.PI),s.strokeStyle=i.arc,s.lineWidth=n.arcWidth,s.stroke(),s.restore(),!n.hideArrows){s.save(),s.strokeStyle=i.arc,s.lineWidth=3,s.beginPath(),s.arc(h.value,h.value,b.value+30,P(-30),P(-60),!0);const ce=L(-60,b.value+30);s.moveTo(ce.x-4,ce.y-16),s.lineTo(ce.x-1,ce.y+2),s.lineTo(ce.x+16,ce.y-4),s.stroke(),s.beginPath(),s.arc(h.value,h.value,b.value+30,P(30),P(60),!1);const Pe=L(60,b.value+30);s.moveTo(Pe.x-16,Pe.y-4),s.lineTo(Pe.x+1,Pe.y+2),s.lineTo(Pe.x+4,Pe.y-16),s.stroke(),s.restore()}s.strokeStyle=i.arc,s.lineWidth=4;for(let ce=1;ce<=12;ce++){const Pe=ce*30;s.save(),s.translate(h.value,h.value),s.rotate(Pe*Math.PI/180),s.beginPath(),s.moveTo(0,-b.value+n.arcWidth*.8),s.lineTo(0,-b.value+n.arcWidth*2),s.stroke(),s.restore()}if(Math.abs(k.value)>=108){s.beginPath();const ce=k.value<0;s.arc(h.value,h.value,b.value,P(0),P(k.value),ce),n.colored?s.strokeStyle=ce?i.leftTail:i.rightTail:s.strokeStyle=i.tail,s.lineWidth=n.arcWidth,s.stroke()}let V;Math.abs($)<108?V=0:V=$-Math.sign($)*108;const F=$,X=n.arcWidth/2;s.save(),s.beginPath();const K=F<V;s.arc(h.value,h.value,b.value+X,P(V),P(F),K),s.arc(h.value,h.value,b.value-X,P(F),P(V),!K),s.closePath(),s.save(),s.clip();const Z=s.createConicGradient(($-90)*Math.PI/180,h.value,h.value);n.colored?(Z.addColorStop(0,i.leftHead),Z.addColorStop(100/360,i.leftTail),Z.addColorStop(260/360,i.rightTail),Z.addColorStop(1,i.rightHead)):(Z.addColorStop(0,i.head),Z.addColorStop(100/360,i.tail),Z.addColorStop(260/360,i.tail),Z.addColorStop(1,i.head)),s.fillStyle=Z,s.fillRect(0,0,n.size,n.size),s.restore(),s.restore();const ie=L($,b.value),Ie=n.arcWidth*(n.showHandle?.8:.5);s.beginPath(),s.arc(ie.x,ie.y,Ie,0,2*Math.PI),(n.showHandle||o.value)&&(s.fillStyle=o.value?n.colored?K?i.leftHead:i.rightHead:i.head:"#000",s.fill()),n.showHandle&&(s.lineWidth=4,s.strokeStyle="#fff",s.stroke())}function T($){if(!l.value)return 0;const V=l.value.getBoundingClientRect(),F=V.left+h.value,X=V.top+h.value;let K,Z;if("touches"in $&&$.touches.length)K=$.touches[0].clientX-F,Z=$.touches[0].clientY-X;else if("clientX"in $)K=$.clientX-F,Z=$.clientY-X;else return 0;return Math.atan2(K,-Z)*180/Math.PI}function q($){u.value=!0,a("drag:start"),m.value=T($)}function ee($){u.value&&(d&&cancelAnimationFrame(d),d=requestAnimationFrame(()=>{const V=T($);let F=V-m.value;F>180&&(F-=360),F<-180&&(F+=360);const X=Math.round(Math.max(g.value,Math.min(y.value,p.value+F)));if(X!==p.value){p.value=X,Math.abs(p.value)>Math.abs(f.value)&&(f.value=p.value),m.value=V;const K=Math.round(p.value/360*(60/n.steps));K!==o.value&&(o.value=K*n.steps,a("drag:update")),B()}}))}function G(){u.value=!1,a("drag:end")}function J(){if(l.value){const $=getComputedStyle(l.value);i.arc=$.getPropertyValue("--bcc-knob-arc-bg")||i.arc,i.head=$.getPropertyValue("--bcc-knob-head")||i.head,i.tail=$.getPropertyValue("--bcc-knob-tail")||i.tail,i.leftHead=$.getPropertyValue("--bcc-knob-left-head")||i.leftHead,i.leftTail=$.getPropertyValue("--bcc-knob-left-tail")||i.leftTail,i.rightHead=$.getPropertyValue("--bcc-knob-right-head")||i.rightHead,i.rightTail=$.getPropertyValue("--bcc-knob-right-tail")||i.rightTail}}if(typeof window<"u"&&window.matchMedia){const $=window.matchMedia("(prefers-color-scheme: dark)"),V=()=>J();$.addEventListener("change",V),r.onUnmounted(()=>{$.removeEventListener("change",V)})}return($,V)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"knobContainer",ref:l,class:"bcc-knob",onMousedown:q,onTouchstart:q,onMousemove:ee,onTouchmove:ee,onMouseup:G,onTouchend:G,onMouseleave:G},[r.createElementVNode("canvas",{ref_key:"canvasEl",ref:c,class:"object-fit w-full"},null,512),r.createElementVNode("div",Bx,[r.renderSlot($.$slots,"left")]),r.createElementVNode("div",Ox,[r.renderSlot($.$slots,"right")]),r.createElementVNode("div",Tx,[r.renderSlot($.$slots,"default")])],544))}}),Lx=r.defineComponent({__name:"BccFrame",props:{shadow:{type:Boolean},rounded:{type:Boolean},sunken:{type:Boolean},raised:{type:Boolean},overlay:{type:Boolean},center:{type:Boolean},between:{type:Boolean},left:{type:Boolean},right:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},stretch:{type:Boolean}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-frame",{"bcc-frame--shadow":t.shadow,"bcc-frame--rounded":t.rounded,"bcc-frame--raised":t.raised,"bcc-frame--overlay":t.overlay,"bcc-frame--sunken":t.sunken,center:t.center,col:!t.center,between:t.between,left:t.left,right:t.right,top:t.top,bottom:t.bottom,stretch:t.stretch}])},[r.renderSlot(e.$slots,"default")],2))}}),Dx=["src"],$x=["src"],Mx={class:"bcc-graphic-logo bcc-graphic-logo--loading"},zx={key:2,class:"corner top-left"},Ax={key:3,class:"corner top-right"},Vx={key:4,class:"corner bottom-right"},Rx={key:5,class:"corner bottom-left"},ca={ultraWide:"42.85%",wide:"56.25%",landscape:"75%",square:"100%",portrait:"133.33%"},da={none:"",sm:"rounded-sm",base:"rounded",md:"rounded-md",xl:"rounded-xl"};function Fx(t){if(t){if(t in ca)return ca[t];const e=t;if(e.includes("/")){const[n,a]=e.split("/").map(Number);if(n&&a)return`${(a/n*100).toFixed(2)}%`}return e}return ca.wide}const Nx=r.defineComponent({__name:"BccGraphic",props:{bannerSrc:{},logoSrc:{},rounding:{default:"xl"},ratio:{default:"wide"},grayscale:{type:Boolean}},setup(t){const e=t,n=r.ref(!1),a=r.ref(!1),i=r.computed(()=>Fx(e.ratio));return(o,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-graphic",da[t.rounding]]),style:r.normalizeStyle(`padding-bottom: ${i.value}`)},[t.bannerSrc?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.withDirectives(r.createElementVNode("img",{src:t.bannerSrc,defer:"",class:r.normalizeClass(["bcc-graphic-banner",da[t.rounding]]),onLoad:l[0]||(l[0]=c=>n.value=!0)},null,42,Dx),[[r.vShow,n.value]]),r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass(["bcc-graphic-banner bcc-graphic-banner--loading",da[t.rounding]])},null,2),[[r.vShow,!n.value]])],64)):r.createCommentVNode("",!0),t.logoSrc?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.withDirectives(r.createElementVNode("img",{src:t.logoSrc,defer:"",class:"bcc-graphic-logo",onLoad:l[1]||(l[1]=c=>a.value=!0)},null,40,$x),[[r.vShow,a.value]]),r.withDirectives(r.createElementVNode("div",Mx,null,512),[[r.vShow,!a.value]])],64)):r.createCommentVNode("",!0),o.$slots.topLeft?(r.openBlock(),r.createElementBlock("div",zx,[r.renderSlot(o.$slots,"top-left")])):r.createCommentVNode("",!0),o.$slots.topRight?(r.openBlock(),r.createElementBlock("div",Ax,[r.renderSlot(o.$slots,"top-right")])):r.createCommentVNode("",!0),o.$slots.bottomRight?(r.openBlock(),r.createElementBlock("div",Vx,[r.renderSlot(o.$slots,"bottom-right")])):r.createCommentVNode("",!0),o.$slots.bottomLeft?(r.openBlock(),r.createElementBlock("div",Rx,[r.renderSlot(o.$slots,"bottom-left")])):r.createCommentVNode("",!0)],6))}}),Kx={class:"bcc-nps-result-gauge",viewBox:"0 0 180 180",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jx={key:0,class:"bcc-nps-result-labels"},Hx={class:"bcc-nps-result-labels--heading"},Ux={class:"bcc-nps-result-labels--label"},qx=240,mo=-165,Wl=75,Gx=r.defineComponent({__name:"BccNpsResult",props:{score:{},size:{default:"md"},display:{},underline:{},hideText:{type:Boolean,default:!1},animated:{type:Boolean,default:!0}},setup(t){const e=t;function n(o){const c=(o+100)/200*qx+mo;return c>Wl?Wl:c<mo?mo:c}const a=r.ref(!1);setTimeout(()=>{a.value=!0},150);const i=r.computed(()=>{const o=mo;return a.value&&e.score!==void 0?n(e.score):o});return(o,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-nps-result",[t.size,{animated:t.animated}]])},[(r.openBlock(),r.createElementBlock("svg",Kx,[l[0]||(l[0]=r.createStaticVNode('<path d="M12.0577 135C2.5704 118.567 -1.48062 99.5568 0.48344 80.6841C2.4475 61.8114 10.3261 44.0423 22.9937 29.9154L49.7962 53.9492C42.1957 62.4254 37.4685 73.0868 36.2901 84.4105C35.1116 95.7341 37.5422 107.14 43.2346 117L12.0577 135Z" fill="var(--color-background-accent-red-subtler-default)"></path><path d="M89.3717 0.00219296C77.0316 0.0883391 64.8411 2.71131 53.5576 7.70812C42.2741 12.7049 32.1388 19.9688 23.7814 29.0484L50.2688 53.429C55.2833 47.9813 61.3645 43.623 68.1346 40.6249C74.9047 37.6268 82.219 36.053 89.623 36.0013L89.3717 0.00219296Z" fill="var(--color-background-accent-orange-subtler-default)"></path><path d="M90.6283 0.00219328C102.953 0.0882391 115.129 2.70484 126.401 7.68981C137.673 12.6748 147.801 19.9219 156.157 28.9818L129.694 53.3891C124.681 47.9531 118.604 43.6049 111.841 40.6139C105.077 37.6229 97.7719 36.0529 90.377 36.0013L90.6283 0.00219328Z" fill="var(--color-background-accent-yellow-subtler-default)"></path><path d="M167.942 135C177.437 118.555 181.487 99.5278 179.512 80.6415C177.538 61.7551 169.64 43.9772 156.949 29.8515L130.169 53.9109C137.784 62.3863 142.523 73.0531 143.707 84.3849C144.892 95.7167 142.462 107.133 136.765 117L167.942 135Z" fill="var(--color-background-accent-green-subtler-default)"></path><path d="M12.0577 135C2.57553 118.576 -1.47637 99.5772 0.480336 80.714C2.43704 61.8508 10.3023 44.0878 22.9536 29.9601L36.3629 41.9681C26.2419 53.2703 19.9496 67.4807 18.3843 82.5712C16.8189 97.6617 20.0604 112.861 27.6462 126L12.0577 135Z" fill="var(--color-background-accent-red-subtle-default)"></path><path d="M89.3717 0.00219296C77.0341 0.0883218 64.846 2.71026 53.5643 7.70516C42.2827 12.7 32.1485 19.9612 23.7913 29.0376L37.0331 41.2301C43.7188 33.969 51.8262 28.16 60.8515 24.1641C69.8768 20.1682 79.6273 18.0707 89.4974 18.0018L89.3717 0.00219296Z" fill="var(--color-background-accent-orange-subtle-default)"></path><path d="M90.6283 0.00219328C102.954 0.0882432 115.13 2.70509 126.403 7.69052C137.675 12.6759 147.803 19.9237 156.16 28.9844L142.928 41.1875C136.243 33.9389 128.14 28.1408 119.122 24.1524C110.104 20.1641 100.363 18.0706 90.5027 18.0018L90.6283 0.00219328Z" fill="var(--color-background-accent-yellow-subtle-default)"></path><path d="M167.948 134.99C177.439 118.546 181.487 99.522 179.512 80.6389C177.537 61.7558 169.641 43.9809 156.954 29.8566L143.563 41.8853C153.713 53.1847 160.03 67.4046 161.609 82.5111C163.189 97.6176 159.951 112.837 152.359 125.992L167.948 134.99Z" fill="var(--color-background-accent-green-subtle-default)"></path>',8)),r.createElementVNode("path",{d:"M146.5 32L92.4146 83.7224C91.5428 83.4105 90.5855 83.2889 89.604 83.4079C86.2246 83.8174 83.816 86.8938 84.226 90.2769C84.636 93.66 87.7097 96.072 91.089 95.6625C94.4684 95.253 96.877 92.1766 96.4671 88.7934C96.4262 88.4565 96.3578 88.1295 96.2663 87.8141L147.5 33C148.638 31.7164 147.776 30.8506 146.5 32Z",fill:"currentColor",class:"bcc-nps-result-gauge-dial",style:r.normalizeStyle(`transform: rotate(${i.value}deg)`)},null,4)])),!t.hideText&&t.size!=="xs"?(r.openBlock(),r.createElementBlock("div",jx,[r.createElementVNode("h3",Hx,r.toDisplayString(t.display??t.score),1),r.createElementVNode("label",Ux,r.toDisplayString(t.underline),1)])):r.createCommentVNode("",!0)],2))}}),Wx={class:"bcc-nps-score"},Yx={class:"bcc-nps-score--label"},Zx={class:"bcc-nps-score--label text-right"},Xx=["disabled","onClick"],Jx=r.defineComponent({__name:"BccNpsScore",props:r.mergeModels({reverse:{type:Boolean,default:!1},leftLabel:{default:"Not likely"},rightLabel:{default:"Very likely"},labelPosition:{default:"top"},min:{default:0},max:{default:10},disabled:{type:Boolean,default:!1}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=t;let a=null;function i(l){n.disabled||(e.value===null&&(e.value=0),a&&clearInterval(a),a=setInterval(()=>{if(e.value===l)return a&&clearInterval(a);e.value<l?++e.value:--e.value},20))}const o=r.computed(()=>{let l=[];for(let c=n.min;c<=n.max;c++)l.push(c);return l});return(l,c)=>(r.openBlock(),r.createElementBlock("div",Wx,[r.createElementVNode("div",{class:r.normalizeClass(["bcc-nps-score--heading",t.labelPosition==="top"?"order-1":t.labelPosition==="bottom"?"order-last":""])},[r.createElementVNode("p",Yx,r.toDisplayString(t.leftLabel),1),r.createElementVNode("p",Zx,r.toDisplayString(t.rightLabel),1)],2),r.createElementVNode("div",{class:r.normalizeClass(["bcc-nps-score--bar order-2",{disabled:t.disabled,reverse:t.reverse}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,s=>(r.openBlock(),r.createElementBlock("button",{key:s,disabled:t.disabled,class:r.normalizeClass(["bcc-nps-score--number",{inactive:e.value===null||isNaN(e.value)||e.value<s,active:e.value===s}]),onClick:d=>i(s)},r.toDisplayString(s),11,Xx))),128))],2)]))}});function Qx(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-440H240q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h200v-200q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v200h200q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H520v200q0 17-11.5 28.5T480-200q-17 0-28.5-11.5T440-240v-200Z"})])}function _x(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q43 0 83 8.5t77 24.5v90q0 32 22.5 54.5T717-680h3v23q0 23 17 40t40 17h85q9 29 13.5 58.5T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-180q58 0 107-28t79-76q6-12-1-24t-21-12H316q-14 0-21 12t-1 24q30 48 79.5 76T480-260ZM340-520q25 0 42.5-17.5T400-580q0-25-17.5-42.5T340-640q-25 0-42.5 17.5T280-580q0 25 17.5 42.5T340-520Zm280 0q25 0 42.5-17.5T680-580q0-25-17.5-42.5T620-640q-25 0-42.5 17.5T560-580q0 25 17.5 42.5T620-520Zm180-240h-40q-17 0-28.5-11.5T720-800q0-17 11.5-28.5T760-840h40v-40q0-17 11.5-28.5T840-920q17 0 28.5 11.5T880-880v40h40q17 0 28.5 11.5T960-800q0 17-11.5 28.5T920-760h-40v40q0 17-11.5 28.5T840-680q-17 0-28.5-11.5T800-720v-40Z"})])}function eC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-480Zm0 400q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q43 0 83 8.5t77 24.5v90q-35-20-75.5-31.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-32-6.5-62T776-600h86q9 29 13.5 58.5T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm320-680h-40q-17 0-28.5-11.5T720-800q0-17 11.5-28.5T760-840h40v-40q0-17 11.5-28.5T840-920q17 0 28.5 11.5T880-880v40h40q17 0 28.5 11.5T960-800q0 17-11.5 28.5T920-760h-40v40q0 17-11.5 28.5T840-680q-17 0-28.5-11.5T800-720v-40ZM620-520q25 0 42.5-17.5T680-580q0-25-17.5-42.5T620-640q-25 0-42.5 17.5T560-580q0 25 17.5 42.5T620-520Zm-280 0q25 0 42.5-17.5T400-580q0-25-17.5-42.5T340-640q-25 0-42.5 17.5T280-580q0 25 17.5 42.5T340-520Zm140 260q58 0 107-28t79-76q6-12-1-24t-21-12H316q-14 0-21 12t-1 24q30 48 79.5 76T480-260Z"})])}function tC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-313v-447q0-17 11.5-28.5T480-800q17 0 28.5 11.5T520-760v447l196-196q12-12 28-11.5t28 12.5q11 12 11.5 28T772-452L508-188q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L188-452q-11-11-11-27.5t11-28.5q12-12 28.5-12t28.5 12l195 195Z"})])}function nC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-647 244-451q-12 12-28 11.5T188-452q-11-12-11.5-28t11.5-28l264-264q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l264 264q11 11 11 27.5T772-452q-12 12-28.5 12T715-452L520-647v447q0 17-11.5 28.5T480-160q-17 0-28.5-11.5T440-200v-447Z"})])}function rC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-54-17.5-104T732-676L284-228q42 33 92 50.5T480-160ZM228-284l448-448q-42-33-92-50.5T480-800q-134 0-227 93t-93 227q0 54 17.5 104t50.5 92Z"})])}function oC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-40q0-17 11.5-28.5T280-880q17 0 28.5 11.5T320-840v40h320v-40q0-17 11.5-28.5T680-880q17 0 28.5 11.5T720-840v40h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"})])}function aC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m480-424 116 116q11 11 28 11t28-11q11-11 11-28t-11-28L536-480l116-116q11-11 11-28t-11-28q-11-11-28-11t-28 11L480-536 364-652q-11-11-28-11t-28 11q-11 11-11 28t11 28l116 116-116 116q-11 11-11 28t11 28q11 11 28 11t28-11l116-116Zm0 344q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})])}function ho(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m382-354 339-339q12-12 28.5-12t28.5 12q12 12 12 28.5T778-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"})])}function iC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M280-440q-17 0-28.5-11.5T240-480q0-17 11.5-28.5T280-520h400q17 0 28.5 11.5T720-480q0 17-11.5 28.5T680-440H280Z"})])}function lC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z"})])}function sC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z"})])}function Yl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})])}function cC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm40-83q119-15 199.5-104.5T800-480q0-123-80.5-212.5T520-797v634Z"})])}function dC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M280-120q-33 0-56.5-23.5T200-200v-520q-17 0-28.5-11.5T160-760q0-17 11.5-28.5T200-800h160q0-17 11.5-28.5T400-840h160q17 0 28.5 11.5T600-800h160q17 0 28.5 11.5T800-760q0 17-11.5 28.5T760-720v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"})])}function uC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M200-200h56l345-345-56-56-345 345v56Zm572-403L602-771l56-56q23-23 56.5-23t56.5 23l56 56q23 23 24 55.5T829-660l-57 57ZM160-120q-17 0-28.5-11.5T120-160v-113q0-8 3-15.5t9-13.5l412-412 170 170-412 412q-6 6-13.5 9t-15.5 3H160Zm413-453-28-28 56 56-28-28Z"})])}function pC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})])}function fC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-529 324-373q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-529Z"})])}function mC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-362q-8 0-15-2.5t-13-8.5L268-557q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-373q-6 6-13 8.5t-15 2.5Z"})])}function hC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-160q-17 0-28.5-11.5T400-200v-240L168-736q-15-20-4.5-42t36.5-22h560q26 0 36.5 22t-4.5 42L560-440v240q0 17-11.5 28.5T520-160h-80Z"})])}function bC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M440-160q-17 0-28.5-11.5T400-200v-240L168-736q-15-20-4.5-42t36.5-22h560q26 0 36.5 22t-4.5 42L560-440v240q0 17-11.5 28.5T520-160h-80Zm40-308 198-252H282l198 252Zm0 0Z"})])}function gC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m592-481-57-57 143-182H353l-80-80h487q25 0 36 22t-4 42L592-481Zm-32 194v87q0 17-11.5 28.5T520-160h-80q-17 0-28.5-11.5T400-200v-247L84-763q-11-11-11-27.5T84-819q12-12 28.5-12t28.5 12l679 679q12 12 11.5 28T819-84q-12 11-28 11.5T763-84L560-287Zm-25-251Z"})])}function ua(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})])}function Zl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"})])}function Xl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z"})])}function vC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z"})])}function yC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z"})])}function kC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m480-313 156-155q11-11 27.5-11.5T692-468q11 11 11 28t-11 28L508-228q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L268-412q-11-11-11.5-27.5T268-468q11-11 28-11t28 11l156 155Zm0-240 156-155q11-11 27.5-11.5T692-708q11 11 11 28t-11 28L508-468q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L268-652q-11-11-11.5-27.5T268-708q11-11 28-11t28 11l156 155Z"})])}function wC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m313-480 155 156q11 11 11.5 27.5T468-268q-11 11-28 11t-28-11L228-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 27.5-11.5T468-692q11 11 11 28t-11 28L313-480Zm264 0 155 156q11 11 11.5 27.5T732-268q-11 11-28 11t-28-11L492-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 27.5-11.5T732-692q11 11 11 28t-11 28L577-480Z"})])}function xC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M383-480 228-636q-11-11-11.5-27.5T228-692q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L284-268q-11 11-27.5 11.5T228-268q-11-11-11-28t11-28l155-156Zm264 0L492-636q-11-11-11.5-27.5T492-692q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L548-268q-11 11-27.5 11.5T492-268q-11-11-11-28t11-28l155-156Z"})])}function CC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-407 324-252q-11 11-27.5 11.5T268-252q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11.5 27.5T692-252q-11 11-28 11t-28-11L480-407Zm0-240L324-492q-11 11-27.5 11.5T268-492q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11.5 27.5T692-492q-11 11-28 11t-28-11L480-647Z"})])}function IC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M160-240q-17 0-28.5-11.5T120-280q0-17 11.5-28.5T160-320h640q17 0 28.5 11.5T840-280q0 17-11.5 28.5T800-240H160Zm0-200q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520h640q17 0 28.5 11.5T840-480q0 17-11.5 28.5T800-440H160Zm0-200q-17 0-28.5-11.5T120-680q0-17 11.5-28.5T160-720h640q17 0 28.5 11.5T840-680q0 17-11.5 28.5T800-640H160Z"})])}function SC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM240-160q-33 0-56.5-23.5T160-240v-32q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v32q0 33-23.5 56.5T720-160H240Z"})])}function PC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-70q0-17 11.5-28.5T760-800q17 0 28.5 11.5T800-760v200q0 17-11.5 28.5T760-520H560q-17 0-28.5-11.5T520-560q0-17 11.5-28.5T560-600h128q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q68 0 124.5-34.5T692-367q8-14 22.5-19.5t29.5-.5q16 5 23 21t-1 30q-41 80-117 128t-169 48Z"})])}function BC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M240-440q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h480q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H240Z"})])}function OC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M380-320q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})])}function TC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-229 314-129q-11 7-23 6t-21-8q-9-7-14-17.5t-2-23.5l44-189-147-127q-10-9-12.5-20.5T140-531q4-11 12-18t22-9l194-17 75-178q5-12 15.5-18t21.5-6q11 0 21.5 6t15.5 18l75 178 194 17q14 2 22 9t12 18q4 11 1.5 22.5T809-488L662-361l44 189q3 13-2 23.5T690-131q-9 7-21 8t-23-6L480-229Z"})])}function EC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m354-247 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143Zm126 18L314-129q-11 7-23 6t-21-8q-9-7-14-17.5t-2-23.5l44-189-147-127q-10-9-12.5-20.5T140-531q4-11 12-18t22-9l194-17 75-178q5-12 15.5-18t21.5-6q11 0 21.5 6t15.5 18l75 178 194 17q14 2 22 9t12 18q4 11 1.5 22.5T809-488L662-361l44 189q3 13-2 23.5T690-131q-9 7-21 8t-23-6L480-229Zm0-201Z"})])}function LC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M320-200q-17 0-28.5-11.5T280-240q0-17 11.5-28.5T320-280h244q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l76 76q11 11 11 28t-11 28q-11 11-28 11t-28-11L188-572q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l144-144q11-11 28-11t28 11q11 11 11 28t-11 28l-76 76h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H320Z"})])}function DC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M240-160q-33 0-56.5-23.5T160-240v-80q0-17 11.5-28.5T200-360q17 0 28.5 11.5T240-320v80h480v-80q0-17 11.5-28.5T760-360q17 0 28.5 11.5T800-320v80q0 33-23.5 56.5T720-160H240Zm200-486-75 75q-12 12-28.5 11.5T308-572q-11-12-11.5-28t11.5-28l144-144q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l144 144q12 12 11.5 28T652-572q-12 12-28.5 12.5T595-571l-75-75v286q0 17-11.5 28.5T480-320q-17 0-28.5-11.5T440-360v-286Z"})])}function $C(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-139 0-254-73.5T52-472q-3-5-4-12.5T47-500q0-8 1-15.5t4-12.5q59-125 174-198.5T480-800q139 0 254 73.5T908-528q3 5 4 12.5t1 15.5q0 8-1 15.5t-4 12.5q-59 125-174 198.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})])}function MC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q143 0 257 75.5T908-528q3 5 4 12.5t1 15.5q0 8-1.5 15.5T908-472q-23 51-57.5 94T772-302Zm-8 218L624-222q-35 11-70.5 16.5T480-200q-143 0-257-75.5T52-472q-3-5-4-12.5T47-500q0-8 1-15t4-12q21-45 50-83t64-70l-83-84q-11-11-11-27.5T84-820q11-11 28-11t28 11l680 680q11 11 11.5 27.5T820-84q-11 11-28 11t-28-11ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})])}function Jl(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm69-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Zm0-100Z"})])}function zC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M340-540h-40q-17 0-28.5-11.5T260-580q0-17 11.5-28.5T300-620h40v-40q0-17 11.5-28.5T380-700q17 0 28.5 11.5T420-660v40h40q17 0 28.5 11.5T500-580q0 17-11.5 28.5T460-540h-40v40q0 17-11.5 28.5T380-460q-17 0-28.5-11.5T340-500v-40Zm40 220q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})])}function AC(t,e){return r.openBlock(),r.createElementBlock("svg",{"aria-hidden":"true",viewBox:"0 -960 960 960",fill:"currentColor"},[r.createElementVNode("path",{d:"M320-540q-17 0-28.5-11.5T280-580q0-17 11.5-28.5T320-620h120q17 0 28.5 11.5T480-580q0 17-11.5 28.5T440-540H320Zm60 220q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l224 224q11 11 11 28t-11 28q-11 11-28 11t-28-11L532-372q-30 24-69 38t-83 14Zm0-80q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})])}const VC={key:0,class:"body-sm mx-1"},Ql=r.defineComponent({__name:"BccReactEmoji",props:{id:{},emoji:{},count:{},selected:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.watch(()=>e.count,()=>{n.value=!0,setTimeout(()=>{n.value=!1},1e3)}),(a,i)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["bcc-react-emoji-list-item",{selected:t.selected,"animate-wiggle":n.value}])},[r.createElementVNode("span",null,r.toDisplayString(t.emoji),1),t.count&&t.count>1?(r.openBlock(),r.createElementBlock("span",VC,r.toDisplayString(t.count),1)):r.createCommentVNode("",!0)],2))}}),RC={class:"bcc-react"},FC={key:"list",class:"bcc-react-list"},NC={key:1,class:"bcc-react-empty"},KC={class:"bcc-react-selector-emojis-container"},jC=["onClick"],HC={key:0,class:"bcc-react-selector-more"},UC={class:"bcc-react-dropdown"},qC=["onClick"],pa=7,fa=36,GC=r.defineComponent({__name:"BccReact",props:{emojis:{},top:{type:Boolean,default:!1},placeholder:{default:"Be the first to react 😉"}},emits:["toggle"],setup(t,{emit:e}){const n=t,a=e,i=r.ref(!1),o=r.ref(!1),l=r.ref(null),c=r.ref(null),s=r.ref(null),d=r.ref(!1),u=r.computed(()=>{const y=n.emojis.filter(k=>k.count&&k.count>0);return y.sort((k,S)=>S.count-k.count),y}),p=r.computed(()=>n.emojis.filter(y=>!y.selected)),f=r.computed(()=>p.value.length>pa),m=r.ref([]),h=r.ref([]);function b(y){l.value=y.id,a("toggle",y.id),setTimeout(()=>{i.value=!1,l.value=null},250)}function g(){if(!c.value)return;const y=c.value.getBoundingClientRect(),k=window.innerHeight||document.documentElement.clientHeight;d.value=y.bottom+200>k}return r.watch(i,async y=>{y&&(m.value=p.value.slice(0,pa),h.value=p.value.slice(pa),await r.nextTick(g))}),r.watch(o,async y=>{if(await r.nextTick(g),!c.value)return;const k=c.value;k.style.transition="height 0.3s ease, transform 0.3s ease",y?(k.style.height=`${fa}px`,k.style.transform="translateY(0)",k.offsetHeight,k.style.height=k.scrollHeight+"px",d.value&&(k.style.transform=`translateY(-${k.scrollHeight-fa}px)`)):(k.offsetHeight,k.style.height=k.scrollHeight+"px",k.style.height=`${fa}px`,d.value&&(k.style.transform="translateY(0)"))}),r.onMounted(()=>{function y(k){const S=k.target;!i.value||c.value?.contains(S)||s.value?.contains(S)||(i.value=!1)}document.addEventListener("click",y,!0),r.onUnmounted(()=>{document.removeEventListener("click",y,!0)})}),(y,k)=>(r.openBlock(),r.createElementBlock("div",RC,[r.createVNode(r.TransitionGroup,{name:"bcc-fade"},{default:r.withCtx(()=>[i.value||t.emojis.some(S=>!S.selected)?(r.openBlock(),r.createElementBlock("button",{key:"toggle",ref_key:"toggleButton",ref:s,class:r.normalizeClass(["bcc-react-toggle",[t.top?"rounded-b-full":"rounded-t-full"]]),onClick:k[0]||(k[0]=S=>i.value=!i.value)},[i.value?(r.openBlock(),r.createBlock(r.unref(_x),{key:0,class:"w-6"})):(r.openBlock(),r.createBlock(r.unref(eC),{key:1,class:"w-6"}))],2)):r.createCommentVNode("",!0),r.createElementVNode("div",FC,[u.value.length?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(u.value,S=>(r.openBlock(),r.createBlock(r.KeepAlive,{key:S.id},[r.createVNode(Ql,r.mergeProps({ref_for:!0},S,{onClick:v=>b(S)}),null,16,["onClick"])],1024))),128)):n.placeholder?(r.openBlock(),r.createElementBlock("p",NC,[r.createVNode(r.unref(Xl),{class:"mr-1 w-4"}),r.createTextVNode(" "+r.toDisplayString(n.placeholder),1)])):r.createCommentVNode("",!0)])]),_:1}),r.createVNode(r.Transition,{name:"bcc-scale-fast",onAfterLeave:k[2]||(k[2]=S=>o.value=!1)},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("div",{key:"selector",class:r.normalizeClass(["bcc-react-selector-container",{"bcc-react-selector-container--top":n.top}])},[r.createElementVNode("div",{ref_key:"selector",ref:c,class:"bcc-react-selector"},[r.createElementVNode("div",KC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.value,S=>(r.openBlock(),r.createElementBlock("button",{key:S.id,class:r.normalizeClass(["bcc-react-selector-item",{"bcc-react-selector-item--clicked":l.value===S.id}]),onClick:v=>b(S)},r.toDisplayString(S.emoji),11,jC))),128)),f.value?(r.openBlock(),r.createElementBlock("span",HC,[r.createElementVNode("button",{class:"bcc-react-selector-more-btn",onClick:k[1]||(k[1]=S=>o.value=!o.value)},[r.createVNode(r.unref(Zl),{class:r.normalizeClass(["bcc-react-arrow-down-icon",{open:o.value}])},null,8,["class"])])])):r.createCommentVNode("",!0)]),f.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["bcc-react-dropdown-container",{"bcc-react-dropdown-container--top":n.top}])},[r.createElementVNode("div",UC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,S=>(r.openBlock(),r.createElementBlock("button",{key:S.id,class:r.normalizeClass(["bcc-react-selector-item",{"bcc-react-selector-item--clicked":l.value===S.id}]),onClick:v=>b(S)},r.toDisplayString(S.emoji),11,qC))),128))])],2)):r.createCommentVNode("",!0)],512)],2)):r.createCommentVNode("",!0)]),_:1})]))}}),WC={key:0,class:"flex gap-2"},YC={class:"text-heading-sm text-default"},ZC={key:0,class:"text-body-sm text-text-subtlest"},XC={class:"center gap-2"},JC=["onClick"],QC=r.defineComponent({__name:"BccStepIndicator",props:r.mergeModels({steps:{},hideText:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!0},left:{type:Boolean},right:{type:Boolean},context:{default:so.brand.bolder},headingFn:{type:Function,default:(t,e)=>`Step ${t} of ${e}`},clickable:{type:Boolean}},{modelValue:{default:0,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=r.useModel(t,"modelValue"),a=r.computed(()=>({current:n.value+1,total:Array.isArray(e.steps)?e.steps.length:e.steps,label:Array.isArray(e.steps)?e.steps[n.value]??"":""}));return(i,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["bcc-step-indicator col gap-2",[{left:t.left,right:t.right},`ctx-${t.context}`]])},[e.hideText?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",WC,[r.createElementVNode("span",YC,r.toDisplayString(e.headingFn(a.value.current,a.value.total)),1),e.hideLabel?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",ZC,r.toDisplayString(a.value.label),1))])),r.createElementVNode("div",XC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(l,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,class:r.normalizeClass(["bg-ctx h-1.5 rounded-lg duration-300",[c===n.value?"w-6":"w-1.5",{clickable:t.clickable,"ctx-gray-subtle":c>n.value}]]),onClick:s=>t.clickable?n.value=c:null},null,10,JC))),128))])],2))}}),_C=r.defineComponent({__name:"BccTag",props:{size:{},border:{type:Boolean},bordered:{type:Boolean},context:{},icon:{type:[String,Function,Object]},iconRight:{type:[String,Function,Object,Boolean]},rounded:{type:Boolean},clickable:{type:Boolean},text:{}},setup(t){const e=t,n=r.computed(()=>{const{text:a,icon:i,iconRight:o,rounded:l,...c}=e;return c});return(a,i)=>(r.openBlock(),r.createBlock(ia,r.mergeProps({class:["bcc-tag",{clickable:t.clickable}]},n.value,{squared:!t.rounded}),{default:r.withCtx(()=>[t.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{key:0,class:r.normalizeClass(["bcc-badge-icon",{"order-1":t.iconRight===!0}])},null,8,["class"])):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.text),1)]),t.iconRight&&typeof t.iconRight!="boolean"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.iconRight),{key:1,class:"bcc-badge-icon"})):r.createCommentVNode("",!0)]),_:3},16,["class","squared"]))}});function eI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var _l=x.extend({name:"common"});function bn(t){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bn(t)}function tI(t){return ns(t)||nI(t)||ts(t)||es()}function nI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gn(t,e){return ns(t)||rI(t,e)||ts(t,e)||es()}function es(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
247
247
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ts(t,e){if(t){if(typeof t=="string")return ma(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(t,e):void 0}}function ma(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function rI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,i,o,l,c=[],s=!0,d=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=o.call(n)).done)&&(c.push(a.value),c.length!==e);s=!0);}catch(u){d=!0,i=u}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function ns(t){if(Array.isArray(t))return t}function rs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,a)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rs(Object(n),!0).forEach(function(a){vn(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function vn(t,e,n){return(e=oI(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oI(t){var e=aI(t,"string");return bn(e)=="symbol"?e:e+""}function aI(t,e){if(bn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(bn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var C={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){xe.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var a=this;xe.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return a._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,a,i,o,l,c,s,d,u,p,f=(e=this.pt)===null||e===void 0?void 0:e._usept,m=f?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,h=f?(a=this.pt)===null||a===void 0||(a=a.value)===null||a===void 0?void 0:a[this.$.type.name]:this.pt;(i=h||m)===null||i===void 0||(i=i.hooks)===null||i===void 0||(o=i.onBeforeCreate)===null||o===void 0||o.call(i);var b=(l=this.$primevueConfig)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l._usept,g=b?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,y=b?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=y||g)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(p=u.onBeforeCreate)===null||p===void 0||p.call(u),this.$attrSelector=eI(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=E(Ue(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=_({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),a=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n?.(),a?.()}},_mergeProps:function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return rn(e)?e.apply(void 0,a):r.mergeProps.apply(void 0,a)},_load:function(){ht.isStyleNameLoaded("base")||(x.loadCSS(this.$styleOptions),this._loadGlobalStyles(),ht.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!ht.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(_l.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ht.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);I(e)&&x.load(e,_({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!ne.isStyleNameLoaded("common")){var a,i,o=((a=this.$style)===null||a===void 0||(i=a.getCommonTheme)===null||i===void 0?void 0:i.call(a))||{},l=o.primitive,c=o.semantic,s=o.global,d=o.style;x.load(l?.css,_({name:"primitive-variables"},this.$styleOptions)),x.load(c?.css,_({name:"semantic-variables"},this.$styleOptions)),x.load(s?.css,_({name:"global-variables"},this.$styleOptions)),x.loadStyle(_({name:"global-style"},this.$styleOptions),d),ne.setLoadedStyleName("common")}if(!ne.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,p,f,m,h=((u=this.$style)===null||u===void 0||(p=u.getComponentTheme)===null||p===void 0?void 0:p.call(u))||{},b=h.css,g=h.style;(f=this.$style)===null||f===void 0||f.load(b,_({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadStyle(_({name:"".concat(this.$style.name,"-style")},this.$styleOptions),g),ne.setLoadedStyleName(this.$style.name)}if(!ne.isStyleNameLoaded("layer-order")){var y,k,S=(y=this.$style)===null||y===void 0||(k=y.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(y);x.load(S,_({name:"layer-order",first:!0},this.$styleOptions)),ne.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,a,i,o=((n=this.$style)===null||n===void 0||(a=n.getPresetTheme)===null||a===void 0?void 0:a.call(n,e,"[".concat(this.$attrSelector,"]")))||{},l=o.css,c=(i=this.$style)===null||i===void 0?void 0:i.load(l,_({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ht.clearLoadedStyleNames(),xe.on("theme:change",e)},_removeThemeListeners:function(){xe.off("theme:change",this._loadCoreStyles),xe.off("theme:change",this._load),xe.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return jo(e,n,a)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=/./g.test(a)&&!!i[a.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=c.mergeSections,d=s===void 0?!0:s,u=c.mergeProps,p=u===void 0?!1:u,f=o?l?this._useGlobalPT(this._getPTClassValue,a,i):this._useDefaultPT(this._getPTClassValue,a,i):void 0,m=l?void 0:this._getPTSelf(n,this._getPTClassValue,a,_(_({},i),{},{global:f||{}})),h=this._getPTDatasets(a);return d||!d&&m?p?this._mergeProps(p,f,m,h):_(_(_({},f),m),h):_(_({},m),h)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return r.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(a)),this._usePT.apply(this,[this.$_attrsPT].concat(a)))},_getPTDatasets:function(){var e,n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i="data-pc-",o=a==="root"&&I((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return a!=="transition"&&_(_({},a==="root"&&_(_(vn({},"".concat(i,"name"),Je(o?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),o&&vn({},"".concat(i,"extend"),Je(this.$.type.name))),{},vn({},"".concat(this.$attrSelector),""))),{},vn({},"".concat(i,"section"),Je(a)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Be(e)||Ho(e)?{class:e}:e},_getPT:function(e){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=function(c){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=i?i(c):c,p=Je(a),f=Je(n.$name);return(s=d?p!==f?u?.[p]:void 0:u?.[p])!==null&&s!==void 0?s:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)},_usePT:function(e,n,a,i){var o=function(b){return n(b,a,i)};if(e!=null&&e.hasOwnProperty("_usept")){var l,c=e._usept||((l=this.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},s=c.mergeSections,d=s===void 0?!0:s,u=c.mergeProps,p=u===void 0?!1:u,f=o(e.originalValue),m=o(e.value);return f===void 0&&m===void 0?void 0:Be(m)?m:Be(f)?f:d||!d&&m?p?this._mergeProps(p,f,m):_(_({},f),m):m}return o(e)},_useGlobalPT:function(e,n,a){return this._usePT(this.globalPT,e,n,a)},_useDefaultPT:function(e,n,a){return this._usePT(this.defaultPT,e,n,a)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,_(_({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,a));return i?.hasOwnProperty("id")&&((e=i.id)!==null&&e!==void 0||(i.id=this.$id)),i},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,_({instance:this},a),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,_(_({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var i=this._getOptionValue(this.$style.inlineStyles,e,_(_({},this.$params),a)),o=this._getOptionValue(_l.inlineStyles,e,_(_({},this.$params),a));return[o,i]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(a){return ae(a,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(a){return n._getOptionValue(a,n.$name,_({},n.$params))||ae(a,_({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(a){var i=gn(a,1),o=i[0];return n?.includes(o)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return _(_({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),a=n[0];return a?.startsWith("pt:")}).reduce(function(e,n){var a=gn(n,2),i=a[0],o=a[1],l=i.split(":"),c=tI(l),s=ma(c).slice(1);return s?.reduce(function(d,u,p,f){return!d[u]&&(d[u]=p===f.length-1?o:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),a=n[0];return!(a!=null&&a.startsWith("pt:"))}).reduce(function(e,n){var a=gn(n,2),i=a[0],o=a[1];return e[i]=o,e},{})}}},iI=`
248
248
  .p-avatar {
249
249
  display: inline-flex;
@@ -1,6 +1,6 @@
1
1
  import { type BCC_CONTEXT } from '@/contexts';
2
2
  export type StepIndicatorProps = {
3
- steps: string[];
3
+ steps: string[] | number;
4
4
  hideText?: boolean;
5
5
  hideLabel?: boolean;
6
6
  left?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/component-library-vue",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "type": "module",
5
5
  "description": "Extended Vue component library based on PrimeVue and BCC design tokens",
6
6
  "repository": "https://github.com/bcc-code/bcc-design.git",