import{D as e,M as t,P as n,W as r,Y as i,_ as a,b as o,d as s,ft as c,it as l,j as u,l as d,n as f,ot as p,q as m,r as h,st as g,t as _,v,w as y}from"../../client.js";import b from"../loader/Loader.js";var x=n(`<span class="mc-field__requirement svelte-19i2lwv" aria-hidden="true"> </span>`),S=n(`<span class="mc-field__help svelte-19i2lwv"> </span>`),C=n(`<span><!> </span>`),w=n(`<div><label class="mc-field__label svelte-19i2lwv"> <!></label> <!> <div class="mc-field__content svelte-19i2lwv"><!></div> <!></div>`),T={hash:`svelte-19i2lwv`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */
/* stylelint-disable string-no-newline */.mc-field__label.svelte-19i2lwv, .mc-field__legend.svelte-19i2lwv {font-size:var(--font-size-100, 0.875rem);line-height:var(--line-height-s, 1.3);font-weight:var(--font-weight-regular, 400);color:var(--field-color-label, #000000);}.mc-field__legend.svelte-19i2lwv {padding-inline:0;}.mc-field__requirement.svelte-19i2lwv, .mc-field__help.svelte-19i2lwv {font-size:var(--font-size-50, 0.75rem);line-height:var(--line-height-m, 1.5);font-weight:var(--font-weight-regular, 400);vertical-align:top;color:var(--field-color-requirement, #666666);}.mc-field__help.svelte-19i2lwv {display:block;margin-top:0.125rem;}.mc-field__content.svelte-19i2lwv {margin-top:0.5rem;}.mc-field__validation-message.svelte-19i2lwv {font-size:var(--font-size-100, 0.875rem);line-height:var(--line-height-m, 1.5);display:inline-flex;gap:0.25rem;margin-top:0.25rem;}.mc-field__validation-message.is-valid.svelte-19i2lwv::before, .mc-field__validation-message.is-invalid.svelte-19i2lwv::before {content:"";height:1.25rem;width:1.25rem;}.mc-field__validation-message.is-valid.svelte-19i2lwv {color:var(--field-color-validation-valid, #117f03);}.mc-field__validation-message.is-valid.svelte-19i2lwv::before {background-color:var(--field-color-validation-valid, #117f03);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M3.25 10c0-3.72792 3.02208-6.75 6.75-6.75 3.7279 0 6.75 3.02208 6.75 6.75 0 3.7279-3.0221 6.75-6.75 6.75-3.72792 0-6.75-3.0221-6.75-6.75ZM10 1.75c-4.55635 0-8.25 3.69365-8.25 8.25 0 4.5563 3.69365 8.25 8.25 8.25 4.5563 0 8.25-3.6937 8.25-8.25 0-4.55635-3.6937-8.25-8.25-8.25Zm4.2803 6.697c.2929-.2929.2929-.76777 0-1.06066-.2929-.2929-.7677-.2929-1.0606 0L9.16667 11.4393 7.197 9.46967c-.2929-.29289-.76777-.29289-1.06066 0-.2929.29289-.2929.76773 0 1.06063l2.5 2.5c.29289.2929.76776.2929 1.06066 0l4.5833-4.5833Z'/%3E%3C/svg%3E") no-repeat center/contain;}.mc-field__validation-message.is-invalid.svelte-19i2lwv {color:var(--field-color-validation-invalid, #c61112);}.mc-field__validation-message.is-invalid.svelte-19i2lwv::before {background-color:var(--field-color-validation-invalid, #c61112);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1.25rem' width='1.25rem' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 3.25c-3.72792 0-6.75 3.02208-6.75 6.75 0 3.7279 3.02208 6.75 6.75 6.75 3.7279 0 6.75-3.0221 6.75-6.75 0-3.72792-3.0221-6.75-6.75-6.75ZM1.75 10c0-4.55635 3.69365-8.25 8.25-8.25 4.5563 0 8.25 3.69365 8.25 8.25 0 4.5563-3.6937 8.25-8.25 8.25-4.55635 0-8.25-3.6937-8.25-8.25ZM10 5.91667c.4142 0 .75.33578.75.75v4.16663c0 .4142-.3358.75-.75.75-.41421 0-.75-.3358-.75-.75V6.66667c0-.41422.33579-.75.75-.75Zm0 8.25003c.4602 0 .8333-.3731.8333-.8334 0-.4602-.3731-.8333-.8333-.8333-.46024 0-.83333.3731-.83333.8333 0 .4603.37309.8334.83333.8334Z'/%3E%3C/svg%3E") no-repeat center/contain;}.mc-field__validation-message.is-loading.svelte-19i2lwv {color:var(--field-color-validation-loading, #666666);}.mc-field--group.svelte-19i2lwv {border-width:0;margin-inline:0;padding:0;}.mc-field--group.svelte-19i2lwv .mc-field__content:where(.svelte-19i2lwv) {display:flex;flex-direction:column;flex-shrink:0;gap:0.25rem;}

/* stylelint-enable string-no-newline */`};function E(n,_){g(_,!0),o(n,T);let E=f(_,`id`,7),D=f(_,`label`,7),O=f(_,`requirementtext`,7),k=f(_,`helpid`,7),A=f(_,`helptext`,7),j=f(_,`messageid`,7),M=f(_,`message`,7),N=f(_,`isinvalid`,7),P=f(_,`isvalid`,7),F=f(_,`isloading`,7),I=f(_,`class`,7),L=h(_,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`label`,`requirementtext`,`helpid`,`helptext`,`messageid`,`message`,`isinvalid`,`isvalid`,`isloading`,`class`]);var R={get id(){return E()},set id(e){E(e),l()},get label(){return D()},set label(e){D(e),l()},get requirementtext(){return O()},set requirementtext(e){O(e),l()},get helpid(){return k()},set helpid(e){k(e),l()},get helptext(){return A()},set helptext(e){A(e),l()},get messageid(){return j()},set messageid(e){j(e),l()},get message(){return M()},set message(e){M(e),l()},get isinvalid(){return N()},set isinvalid(e){N(e),l()},get isvalid(){return P()},set isvalid(e){P(e),l()},get isloading(){return F()},set isloading(e){F(e),l()},get class(){return I()},set class(e){I(e),l()}},z=w();d(z,()=>({class:[`mc-field`,I()],...L}),void 0,void 0,void 0,`svelte-19i2lwv`);var B=m(z),V=m(B),H=i(V),U=e=>{var n=x(),i=m(n);c(n),r(()=>u(i,`(${O()??``})`)),t(e,n)};e(H,e=>{O()&&e(U)}),c(B);var W=i(B,2),G=e=>{var n=S(),i=m(n,!0);c(n),r(()=>{s(n,`id`,k()),u(i,A())}),t(e,n)};e(W,e=>{k()&&A()&&e(G)});var K=i(W,2);y(m(K),_,`default`,{},null),c(K);var q=i(K,2),J=n=>{var o=C(),l=m(o),d=e=>{b(e,{size:`xs`})};e(l,e=>{F()&&e(d)});var f=i(l);c(o),r(()=>{s(o,`id`,j()),a(o,1,v([`mc-field__validation-message`,P()&&`is-valid`,N()&&`is-invalid`]),`svelte-19i2lwv`),u(f,` ${M()??``}`)}),t(n,o)};return e(q,e=>{(N()||P()||F())&&e(J)}),c(z),r(()=>{s(B,`for`,E()),u(V,`${D()??``} `)}),t(n,z),p(R)}customElements.define(`m-field`,_(E,{isinvalid:{attribute:`isinvalid`,reflect:!0,type:`Boolean`},isvalid:{attribute:`isvalid`,reflect:!0,type:`Boolean`},isloading:{attribute:`isloading`,reflect:!0,type:`Boolean`},id:{},label:{},requirementtext:{},helpid:{},helptext:{},messageid:{},message:{},class:{}},[`default`],[],{mode:`open`}));
//# sourceMappingURL=Field.js.map