import{S as z,i as A,s as B,e as E,U as w,d as u,f as C,u as L,q as O,r as P,R,j as q,k as K,n as N,A as U,V,p as Y,P as D}from"./index.3a2fd726.js";import{g as k}from"./styles.ed3b21b5.js";function y(s){let t,i,f,e;const a=s[15].default,d=Y(a,s,s[14],null);let r=[{"data-testid":s[4]},{id:s[0]},{class:i="gr-block gr-box relative w-full overflow-hidden "+s[8][s[1]]+" "+s[8][s[2]]+" "+s[7]},{style:f=s[6]||null}],o={};for(let l=0;l<r.length;l+=1)o=D(o,r[l]);return{c(){t=E(s[9]),d&&d.c(),w(t,o),u(t,"!hidden",s[5]===!1),u(t,"gr-padded",s[3])},m(l,_){C(l,t,_),d&&d.m(t,null),e=!0},p(l,_){d&&d.p&&(!e||_&16384)&&L(d,a,l,l[14],e?P(a,l[14],_,null):O(l[14]),null),w(t,o=R(r,[(!e||_&16)&&{"data-testid":l[4]},(!e||_&1)&&{id:l[0]},(!e||_&134&&i!==(i="gr-block gr-box relative w-full overflow-hidden "+l[8][l[1]]+" "+l[8][l[2]]+" "+l[7]))&&{class:i},(!e||_&64&&f!==(f=l[6]||null))&&{style:f}])),u(t,"!hidden",l[5]===!1),u(t,"gr-padded",l[3])},i(l){e||(q(d,l),e=!0)},o(l){K(d,l),e=!1},d(l){l&&N(t),d&&d.d(l)}}}function F(s){let t=s[9],i,f,e=s[9]&&y(s);return{c(){e&&e.c(),i=U()},m(a,d){e&&e.m(a,d),C(a,i,d),f=!0},p(a,[d]){a[9]?t?B(t,a[9])?(e.d(1),e=y(a),e.c(),e.m(i.parentNode,i)):e.p(a,d):(e=y(a),e.c(),e.m(i.parentNode,i)):t&&(e.d(1),e=null),t=a[9]},i(a){f||(q(e),f=!0)},o(a){K(e),f=!1},d(a){a&&N(i),e&&e.d(a)}}}function G(s,t,i){let f,e,{$$slots:a={},$$scope:d}=t,{style:r={}}=t,{elem_id:o=""}=t,{variant:l="solid"}=t,{color:_="grey"}=t,{padding:c=!0}=t,{type:m="normal"}=t,{test_id:h=void 0}=t,{disable:g=!1}=t,{explicit_call:b=!1}=t,{visible:v=!0}=t;const S={dashed:"border-dashed border border-gray-300",solid:"border-solid border",grey:"border-gray-200",green:"border-green-400",none:"!border-0"};let j=m==="fieldset"?"fieldset":"div";return V("BLOCK_KEY"),s.$$set=n=>{"style"in n&&i(10,r=n.style),"elem_id"in n&&i(0,o=n.elem_id),"variant"in n&&i(1,l=n.variant),"color"in n&&i(2,_=n.color),"padding"in n&&i(3,c=n.padding),"type"in n&&i(11,m=n.type),"test_id"in n&&i(4,h=n.test_id),"disable"in n&&i(12,g=n.disable),"explicit_call"in n&&i(13,b=n.explicit_call),"visible"in n&&i(5,v=n.visible),"$$scope"in n&&i(14,d=n.$$scope)},s.$$.update=()=>{s.$$.dirty&13312&&i(7,{classes:f}=b?k(r,[]):g?k({container:!1},["container"]):{classes:""},f),s.$$.dirty&1024&&i(6,e=(typeof r.height=="number"?`height: ${r.height}px; `:"")+(typeof r.width=="number"?`width: ${r.width}px;`:""))},[o,l,_,c,h,v,e,f,S,j,r,m,g,b,d,a]}class J extends z{constructor(t){super(),A(this,t,G,F,B,{style:10,elem_id:0,variant:1,color:2,padding:3,type:11,test_id:4,disable:12,explicit_call:13,visible:5})}}export{J as B};
