import{c as x,e as w,a as y,p as o,b as z,d as p,f as j,l as q,m as a,z as _}from"../../custom-element.js";import{a as k}from"../../attributes.js";import{c as B}from"../../input.js";import{c as E}from"../../custom-element-forward-events.js";var D=j("<textarea></textarea>");const F={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 S(f,r){w(r,!0),y(f,F);let d=o(r,"id",7),s=o(r,"name",7),i=o(r,"value",15),n=o(r,"placeholder",7),t=o(r,"isinvalid",7),m=o(r,"disabled",7),c=o(r,"rows",7,2),v=o(r,"minlength",7),u=o(r,"maxlength",7),b=o(r,"readonly",7),h=q(r,["$$slots","$$events","$$legacy","$$host","id","name","value","placeholder","isinvalid","disabled","rows","minlength","maxlength","readonly"]);var g={get id(){return d()},set id(e){d(e),a()},get name(){return s()},set name(e){s(e),a()},get value(){return i()},set value(e){i(e),a()},get placeholder(){return n()},set placeholder(e){n(e),a()},get isinvalid(){return t()},set isinvalid(e){t(e),a()},get disabled(){return m()},set disabled(e){m(e),a()},get rows(){return c()},set rows(e=2){c(e),a()},get minlength(){return v()},set minlength(e){v(e),a()},get maxlength(){return u()},set maxlength(e){u(e),a()},get readonly(){return b()},set readonly(e){b(e),a()}},l=D();return _(l),k(l,()=>({class:["mc-textarea",t()&&"is-invalid"],"aria-invalid":t(),name:s(),id:d(),placeholder:n(),rows:c(),disabled:m(),minlength:v(),maxlength:u(),readonly:b(),...h}),void 0,void 0,void 0,"svelte-1qbzujl"),B(l,i),z(f,l),p(g)}customElements.define("m-textarea",x(S,{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:{}},[],[],{mode:"open"},E));
//# sourceMappingURL=Textarea.js.map
