import{D as e,E as t,M as n,P as r,T as i,V as a,W as o,Y as s,_ as c,b as l,ft as u,h as d,it as f,j as p,l as m,n as h,ot as g,q as _,r as v,st as y,t as b,v as x}from"../../client.js";import{t as S}from"../../custom-element-forward-events.js";var C=r(`<option disabled="" selected=""> </option>`),w=r(`<option> </option>`),T=r(`<div><select><!><!></select></div>`),E={hash:`svelte-6nznl5`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */
/* stylelint-disable string-no-newline */.mc-select.svelte-6nznl5 {position:relative;display:block;width:100%;}.mc-select.svelte-6nznl5::after {content:"";pointer-events:none;position:absolute;top:50%;right:1rem;transform:translateY(-50%);width:1rem;height:1rem;background-color:var(--forms-color-icon-interactive, #000000);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1rem' width='1rem' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E") no-repeat center/contain;}.mc-select__control.svelte-6nznl5 {appearance:none;font-family:inherit;transition:box-shadow 200ms ease;font-size:var(--font-size-150, 1rem);line-height:var(--line-height-s, 1.3);height:3rem;padding:0 3rem 0 0.75rem;background-position:right 1rem center;border:var(--border-width-s, 0.0625rem) solid var(--forms-color-border-default, #666666);display:block;width:100%;color:var(--forms-color-text-default, #000000);background-color:var(--forms-color-background-default, #ffffff);text-overflow:ellipsis;border-radius:var(--border-radius-s, 0.25rem);}.mc-select__control.svelte-6nznl5:hover {border-color:var(--forms-color-border-hover, #4d4d4d);box-shadow:0 0 0 var(--border-width-s, 0.0625rem) var(--forms-color-border-hover, #4d4d4d);}.mc-select__control.svelte-6nznl5:focus {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-select__control.svelte-6nznl5:disabled {background-color:var(--forms-color-background-disabled, #d9d9d9);border-color:transparent;cursor:not-allowed;box-shadow:none;color:var(--forms-color-text-disabled, #737373);}.mc-select__control--readonly.svelte-6nznl5 {border-color:var(--forms-color-border-read-only, #cccccc);pointer-events:none;}.mc-select__control.is-invalid.svelte-6nznl5 {border-color:var(--forms-color-border-invalid, #ea302d);box-shadow:0 0 0 var(--border-width-s, 0.0625rem) var(--forms-color-border-invalid, #ea302d);}.mc-select__control.is-invalid.svelte-6nznl5:hover {border-color:var(--forms-color-border-invalid-hover, #c61112);box-shadow:0 0 0 var(--border-width-s, 0.0625rem) var(--forms-color-border-invalid-hover, #c61112);}.mc-select--s.svelte-6nznl5 .mc-select__control:where(.svelte-6nznl5) {font-size:var(--font-size-100, 0.875rem);line-height:var(--line-height-s, 1.3);height:2rem;padding:0 2rem 0 0.5rem;background-position:right 0.5rem center;}

/* stylelint-enable string-no-newline */`};function D(r,b){y(b,!0),l(r,E);let S=h(b,`id`,7),D=h(b,`name`,7),O=h(b,`value`,15),k=h(b,`placeholder`,7),A=h(b,`size`,7,`m`),j=h(b,`isinvalid`,7),M=h(b,`disabled`,7),N=h(b,`readonly`,7),P=h(b,`options`,7),F=h(b,`class`,7),I=v(b,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`name`,`value`,`placeholder`,`size`,`isinvalid`,`disabled`,`readonly`,`options`,`class`]);var L={get id(){return S()},set id(e){S(e),f()},get name(){return D()},set name(e){D(e),f()},get value(){return O()},set value(e){O(e),f()},get placeholder(){return k()},set placeholder(e){k(e),f()},get size(){return A()},set size(e=`m`){A(e),f()},get isinvalid(){return j()},set isinvalid(e){j(e),f()},get disabled(){return M()},set disabled(e){M(e),f()},get readonly(){return N()},set readonly(e){N(e),f()},get options(){return P()},set options(e){P(e),f()},get class(){return F()},set class(e){F(e),f()}},R=T(),z=_(R);m(z,()=>({id:S(),class:[`mc-select__control`,N()&&`mc-select__control--readonly`,j()&&`is-invalid`],name:D(),disabled:M(),...I}),void 0,void 0,void 0,`svelte-6nznl5`);var B=_(z),V=e=>{var t=C(),r=_(t);u(t),t.value=t.__value=``,o(()=>p(r,`-- ${k()??``} --`)),n(e,t)};return e(B,e=>{k()&&e(V)}),i(s(B),17,P,t,(e,t)=>{var r=w(),i=_(r,!0);u(r);var s={};o(()=>{r.disabled=a(t).disabled,p(i,a(t).text),s!==(s=a(t).value)&&(r.value=(r.__value=a(t).value)??``)}),n(e,r)}),u(z),u(R),o(()=>c(R,1,x([`mc-select`,`mc-select--${A()}`,F()]),`svelte-6nznl5`)),d(z,O),n(r,R),g(L)}customElements.define(`m-select`,b(D,{options:{attribute:`options`,type:`Array`},isinvalid:{attribute:`isinvalid`,reflect:!0,type:`Boolean`},disabled:{attribute:`disabled`,reflect:!0,type:`Boolean`},readonly:{attribute:`readonly`,reflect:!0,type:`Boolean`},id:{},name:{},value:{},placeholder:{},size:{},class:{}},[],[],{mode:`open`},S));
//# sourceMappingURL=Select.js.map