1import{A as e,At as t,C as n,D as r,F as i,O as a,S as o,St as s,Tt as c,Z as l,b as u,cn as d,ct as f,et as p,gt as m,m as h,pn as g,qt as _,w as v,x as y,z as b,zt as x}from"./ARSLoXLj.js";import{t as S}from"./DyoR8_PW.js";import{F as C,a as w,d as T,g as E,i as D,k as O,l as k,m as A,o as j,y as M}from"./BhiVgi8s.js";import{t as N}from"./Cf3WZc8b.js";import{n as P}from"./Up37rTtl.js";s(),i(),_();var F={class:`flex w-full items-center justify-between`},I={key:0,class:`font-regular text-primary text-sm`},L={class:`bg-primary ws:rounded-b-lg ws:border ws:border-t-0 ws:border-solid ws:border-04 ws:bg-secondary max-h-300 scrollbar-thin overflow-y-auto`},R=Object.assign(e({__name:`ZgBaseSelect`,props:b({label:{default:``},options:{},placeholder:{default:``},disabled:{type:Boolean,default:!1},hasError:{type:Boolean},optional:{type:Boolean,default:!1},name:{default:``},bodyLock:{type:Boolean,default:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=e,s=f(e,`modelValue`),_=t(!1),b=u(()=>s.value?i.options.find(e=>e.value===s.value)?.label:i.placeholder);return(t,u)=>{let f=T,R=M,z=N,B=D,V=E,H=w,U=C,W=A,G=k,K=O,q=j,J=S;return l(),o(J,null,{default:m(()=>[y(`div`,null,[a(x(P),{"model-value":s.value,name:e.name},{default:m(()=>[a(q,{open:x(_),"onUpdate:open":u[0]||=e=>c(_)?_.value=e:null,"model-value":s.value,"onUpdate:modelValue":u[1]||=e=>s.value=e,disabled:e.disabled},{default:m(()=>[a(B,{class:d([`group ws:rounded-lg ws:border ws:border-solid ws:border-04 ws:bg-04 ws:enabled:hover:border-linear-up ws:enabled:hover:bg-gradient-up ws:disabled:bg-primary-inverted-disabled w-full text-left outline-none select-none`,{"ws:enabled:border-linear-up ws:enabled:bg-gradient-up":!!s.value&&!x(_),"ws:border-b-none ws:rounded-b-none":x(_),"ws:bg-radial-up-error ws:hover:bg-radial-up-error":e.hasError&&!x(_),"cursor-not-allowed":e.disabled}])},{default:m(()=>[a(f,{class:`ws:mb-1 ws:px-4 ws:py-2 ws:text-accent-primary inline-block w-full text-start text-lg font-black`},{default:m(()=>[y(`span`,F,[y(`span`,null,g(e.label),1),e.optional?(l(),v(`span`,I,g(t.$t(`common.forms.optional`)),1)):n(``,!0)])]),_:1}),y(`div`,{class:d([`border-primary hover:border-accent-secondary! group-focus-within:border-accent-secondary! ws:border-none ws:border-secondary ws:px-4 ws:py-2 ws:pb-3 ws:pt-1 flex w-full items-center justify-between gap-x-4 border-b border-solid py-1 outline-hidden group-focus-within:border-b-2 group-focus-within:pb-0.75 hover:border-b-2 hover:pb-0.75`,{"border-accent-secondary! ws:border-b-4 zt:!pb-0.75 tl:!pb-0.75 border-b-2!":x(_),"border-secondary ws:border-tertiary":s.value,"bg-primary-inverted-disabled px-2":e.disabled}])},[a(R,{placeholder:x(b),class:d([{"text-tertiary ws:text-primary":i.placeholder&&!s.value},`text-md flex items-center justify-between gap-x-2`])},null,8,[`placeholder`,`class`]),a(z,{class:`text-size-icon text-primary ws:text-accent-primary`,icon:x(_)?`chevron-up`:`chevron-down`},null,8,[`icon`])],2)]),_:1},8,[`class`]),a(K,{"avoid-collisions":!1,position:`popper`,"side-offset":1,"body-lock":e.bodyLock,class:`z-dropdown shadow-m w-(--radix-select-trigger-width)`},{default:m(()=>[y(`div`,L,[a(G,null,{default:m(()=>[a(W,{class:`flex w-full flex-col`},{default:m(()=>[(l(!0),v(h,null,p(e.options,e=>(l(),o(U,{key:`${e.label}-${e.value}`,value:e.value,class:d([`text-md hover:bg-secondary ws:px-4 ws:hover:bg-primary-inverted-disabled flex cursor-pointer p-3 text-left outline-hidden`,{"font-accent text-accent-primary ws:justify-between ws:text-primary zt:font-black items-center gap-x-2":s.value===e.value}])},{default:m(()=>[a(V,{class:`ws:order-2`},{default:m(()=>[a(z,{icon:`check`,class:`text-size-icon text-accent-primary`})]),_:1}
1),a(H,{class:`ws:order-1`},{default:m(()=>[r(g(e.label),1)]),_:2},1024)]),_:2},1032,[`value`,`class`]))),128))]),_:1})]),_:1})])]),_:1},8,[`body-lock`])]),_:1},8,[`open`,`model-value`,`disabled`])]),_:1},8,[`model-value`,`name`])])]),_:1})}}}),{__name:`ZgBaseSelect`});export{R as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.