import{K as e,M as t,P as n,b as r,c as i,it as a,l as o,n as s,ot as c,r as l,st as u,t as d}from"../../client.js";import{t as f}from"../../custom-element-forward-events.js";var p=n(`<textarea></textarea>`),m={hash:`svelte-1qbzujl`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-textarea.svelte-1qbzujl {font-family:inherit;transition:box-shadow 200ms ease;background-color:var(--forms-color-background-default, #ffffff);border:var(--border-width-s, 0.0625rem) solid var(--forms-color-border-default, #666666);border-radius:var(--forms-border-radius, 0.25rem);transition:all ease 200ms;color:var(--forms-color-text-default, #000000);display:block;width:100%;font-size:var(--font-size-150, 1rem);line-height:var(--line-height-m, 1.5);min-height:4rem;padding:0.5rem 0.75rem;box-sizing:border-box;}.mc-textarea.svelte-1qbzujl::placeholder {color:var(--forms-color-placeholder, #666666);}.mc-textarea.svelte-1qbzujl: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-textarea.svelte-1qbzujl: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-textarea.svelte-1qbzujl:disabled {background-color:var(--forms-color-background-disabled, #d9d9d9);cursor:not-allowed;border-color:transparent;box-shadow:none;color:var(--forms-color-text-disabled, #737373);}.mc-textarea[readonly].svelte-1qbzujl {border-color:var(--forms-color-border-read-only, #cccccc);pointer-events:none;}.mc-textarea.is-invalid.svelte-1qbzujl {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-textarea.is-invalid.svelte-1qbzujl: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);}`};function h(n,d){u(d,!0),r(n,m);let f=s(d,`id`,7),h=s(d,`name`,7),g=s(d,`value`,15),_=s(d,`placeholder`,7),v=s(d,`isinvalid`,7),y=s(d,`disabled`,7),b=s(d,`rows`,7,2),x=s(d,`minlength`,7),S=s(d,`maxlength`,7),C=s(d,`readonly`,7),w=s(d,`class`,7),T=l(d,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`name`,`value`,`placeholder`,`isinvalid`,`disabled`,`rows`,`minlength`,`maxlength`,`readonly`,`class`]);var E={get id(){return f()},set id(e){f(e),a()},get name(){return h()},set name(e){h(e),a()},get value(){return g()},set value(e){g(e),a()},get placeholder(){return _()},set placeholder(e){_(e),a()},get isinvalid(){return v()},set isinvalid(e){v(e),a()},get disabled(){return y()},set disabled(e){y(e),a()},get rows(){return b()},set rows(e=2){b(e),a()},get minlength(){return x()},set minlength(e){x(e),a()},get maxlength(){return S()},set maxlength(e){S(e),a()},get readonly(){return C()},set readonly(e){C(e),a()},get class(){return w()},set class(e){w(e),a()}},D=p();return e(D),o(D,()=>({class:[`mc-textarea`,v()&&`is-invalid`,w()],"aria-invalid":v(),name:h(),id:f(),placeholder:_(),rows:b(),disabled:y(),minlength:x(),maxlength:S(),readonly:C(),...T}),void 0,void 0,void 0,`svelte-1qbzujl`),i(D,g),t(n,D),c(E)}customElements.define(`m-textarea`,d(h,{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:{},rows:{},minlength:{},maxlength:{},class:{}},[],[],{mode:`open`},f));
//# sourceMappingURL=Textarea.js.map