iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommerceDB.com/_nuxt/C61MVnuK.js
import{I as V,_ as g}from"./BzhbCKP8.js";import{u as T}from"./Ym6uCvCk.js";import{d as I,D as B,r as C,z as N,o as s,G as i,f as o,O as r,t as b,C as u,c as S,w as f,e as c,n as k,v as D,P as L,U as F,q as G,V as M,W as P}from"./llFuKhWI.js";const q={key:0,class:"simpleSelect__labelWrapper"},z=["id"],H=["aria-labelledby","aria-label","disabled","data-gtm"],O=["value","innerHTML"],$=I({__name:"SimpleSelect",props:{modelValue:{},options:{default:()=>[]},label:{default:""},ariaLabel:{default:void 0},showLabel:{type:Boolean,default:!1},isDirty:{type:Boolean,default:!1},tooltipText:{default:""},dataGtm:{default:void 0},disabled:{type:Boolean,default:!1},isFullwidth:{type:Boolean,default:!1}},emits:["update:modelValue","closed"],setup(_,{emit:y}){const m=y,e=_,p=T("$Ng2bOmpdIP"),{isNuxtReady:v}=B(),d=C(e.modelValue),h=l=>{const t=parseInt(l);return isNaN(t)?l:t},w=l=>{m("update:modelValue",typeof e.modelValue=="number"?h(l):l),m("closed")};return N(()=>e.modelValue,l=>{d.value=l}),(l,t)=>{const x=g;return s(),i("div",null,[e.label||e.tooltipText?(s(),i("div",q,[e.label?(s(),i("label",{key:0,id:o(p),class:r(["simpleSelect__label",{"simpleSelect__label--withTooltip":e.tooltipText}])},b(e.label),11,z)):u("",!0),e.tooltipText?(s(),S(x,{key:1},{default:f(()=>[c("span",null,[k(o(V),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400 tw-ml-1","aria-label":"Additional information",width:"16",height:"16"})])]),content:f(()=>[D(b(e.tooltipText),1)]),_:1})):u("",!0)])):u("",!0),c("div",{class:r(["select is-x-small is-relative",{"is-fullwidth":e.isFullwidth,"select--dirty":e.isDirty,"is-disabled":e.disabled}])},[L(c("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>G(d)?d.value=a:null),class:r(["is-x-small",{"simpleSelect__select--dirty":e.isDirty,"is-fullwidth is-ellipsis":e.isFullwidth}]),"aria-labelledby":e.label?o(p):void 0,"aria-label":e.label?void 0:e.ariaLabel,disabled:!o(v)||e.disabled,"data-gtm":e.dataGtm,onChange:t[1]||(t[1]=a=>{var n;return w((n=a.target)==null?void 0:n.value)})},[(s(!0),i(M,null,P(e.options,(a,n)=>(s(),i("option",{key:n,value:a.value,innerHTML:a.label||a.value},null,8,O))),128))],42,H),[[F,o(d)]])],2)])}}});export{$ as _};