import{M as e,P as t,W as n,Y as r,b as i,d as a,ft as o,it as s,j as c,l,n as u,ot as d,q as f,r as p,st as m,t as h}from"../../client.js";import{t as g}from"../../custom-element-forward-events.js";var _=t(`<div class="mc-radio svelte-1bwbq3n"><input/> <label class="mc-radio__label svelte-1bwbq3n"> </label></div>`),v={hash:`svelte-1bwbq3n`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-radio.svelte-1bwbq3n {align-items:center;display:flex;gap:0.5rem;padding:0.375rem;}.mc-radio__label.svelte-1bwbq3n {font-size:var(--font-size-150, 1rem);line-height:var(--line-height-s, 1.3);color:var(--forms-color-text-default, #000000);cursor:pointer;}.mc-radio__input.svelte-1bwbq3n {appearance:none;margin:0;cursor:pointer;flex-shrink:0;transition:box-shadow 200ms ease;background-color:var(--forms-color-background-default, #ffffff);border:var(--border-width-m, 0.125rem) solid var(--forms-color-border-default, #666666);border-radius:100%;transition:all ease 200ms;height:1.25rem;width:1.25rem;position:relative;}.mc-radio__input.svelte-1bwbq3n::before {border-radius:var(--border-radius-full, 100%);content:"";display:block;height:0.5rem;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:0.5rem;}.mc-radio__input.svelte-1bwbq3n:hover {border-color:var(--forms-color-border-hover, #4d4d4d);}.mc-radio__input.svelte-1bwbq3n:focus-visible {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-radio__input.svelte-1bwbq3n:checked {background-color:var(--forms-color-background-checked, #117f03);}.mc-radio__input.svelte-1bwbq3n:checked::before {background-color:var(--forms-color-background-default, #ffffff);}.mc-radio__input.svelte-1bwbq3n:checked, .mc-radio__input.svelte-1bwbq3n:disabled {border-color:transparent;}.mc-radio__input.svelte-1bwbq3n:disabled {background-color:var(--forms-color-background-disabled, #d9d9d9);cursor:not-allowed;}.mc-radio__input.svelte-1bwbq3n:disabled:checked::before {background-color:var(--forms-color-icon-disabled, #737373);}.mc-radio__input.svelte-1bwbq3n:disabled + .mc-radio__label:where(.svelte-1bwbq3n) {color:var(--forms-color-text-disabled, #737373);cursor:not-allowed;}.mc-radio__input.svelte-1bwbq3n:not(:disabled):checked:hover {background-color:var(--forms-color-background-checked-hover, #006902);}.mc-radio__input.is-invalid.svelte-1bwbq3n:not(:checked) {border-color:var(--forms-color-border-invalid, #ea302d);}.mc-radio__input.is-invalid.svelte-1bwbq3n:not(:checked):hover {border-color:var(--forms-color-border-invalid-hover, #c61112);}`};function y(t,h){m(h,!0),i(t,v);let g=u(h,`id`,7),y=u(h,`name`,7),b=u(h,`label`,7),x=u(h,`checked`,15,!1),S=u(h,`disabled`,7),C=u(h,`isinvalid`,7),w=u(h,`class`,7),T=p(h,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`name`,`label`,`checked`,`disabled`,`isinvalid`,`class`]);var E={get id(){return g()},set id(e){g(e),s()},get name(){return y()},set name(e){y(e),s()},get label(){return b()},set label(e){b(e),s()},get checked(){return x()},set checked(e=!1){x(e),s()},get disabled(){return S()},set disabled(e){S(e),s()},get isinvalid(){return C()},set isinvalid(e){C(e),s()},get class(){return w()},set class(e){w(e),s()}},D=_(),O=f(D);l(O,()=>({id:g(),type:`radio`,class:[`mc-radio__input`,C()&&`is-invalid`,w()],name:y(),disabled:S(),checked:x(),...T}),void 0,void 0,void 0,`svelte-1bwbq3n`,!0);var k=r(O,2),A=f(k,!0);return o(k),o(D),n(()=>{a(k,`for`,g()),c(A,b())}),e(t,D),d(E)}customElements.define(`m-radio`,h(y,{checked:{attribute:`checked`,reflect:!0,type:`Boolean`},isinvalid:{attribute:`isinvalid`,reflect:!0,type:`Boolean`},disabled:{attribute:`disabled`,reflect:!0,type:`Boolean`},id:{},name:{},label:{},class:{}},[],[],{mode:`open`},g));export{y as default};
//# sourceMappingURL=Radio.js.map