import"./IconButtonWrapper.svelte_svelte_type_style_lang-BiUMvbOz.js";const{SvelteComponent:W,append:z,assign:X,attr:a,binding_callbacks:Z,create_slot:x,detach:J,element:p,flush:r,get_all_dirty_from_scope:$,get_slot_changes:ee,get_spread_update:te,init:ie,insert:K,listen:le,noop:ne,safe_not_equal:se,set_dynamic_element_data:G,set_style:d,space:he,svg_element:k,toggle_class:m,transition_in:N,transition_out:O,update_slot_base:re}=window.__gradio__svelte__internal;function I(n){let e,l,s,h,u;return{c(){e=k("svg"),l=k("line"),s=k("line"),a(l,"x1","1"),a(l,"y1","9"),a(l,"x2","9"),a(l,"y2","1"),a(l,"stroke","gray"),a(l,"stroke-width","0.5"),a(s,"x1","5"),a(s,"y1","9"),a(s,"x2","9"),a(s,"y2","5"),a(s,"stroke","gray"),a(s,"stroke-width","0.5"),a(e,"class","resize-handle svelte-11xb1hd"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 10 10")},m(o,f){K(o,e,f),z(e,l),z(e,s),h||(u=le(e,"mousedown",n[22]),h=!0)},p:ne,d(o){o&&J(e),h=!1,u()}}}function fe(n){let e,l,s,h;const u=n[25].default,o=x(u,n,n[24],null);let f=n[18]&&I(n),w=[{"data-testid":n[10]},{id:n[5]},{class:s="block "+n[6].join(" ")+" svelte-11xb1hd"}],g={};for(let i=0;i{if(t!==void 0){if(typeof t=="number")return t+"px";if(typeof t=="string")return t}},R=t=>{let U=t.clientY;const A=F=>{const V=F.clientY-U;U=F.clientY,l(19,c.style.height=`${c.offsetHeight+V}px`,c)},D=()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",D)};window.addEventListener("mousemove",A),window.addEventListener("mouseup",D)};function T(t){Z[t?"unshift":"push"](()=>{c=t,l(19,c)})}return n.$$set=t=>{"height"in t&&l(1,u=t.height),"min_height"in t&&l(2,o=t.min_height),"max_height"in t&&l(3,f=t.max_height),"width"in t&&l(4,w=t.width),"elem_id"in t&&l(5,g=t.elem_id),"elem_classes"in t&&l(6,i=t.elem_classes),"variant"in t&&l(7,_=t.variant),"border_mode"in t&&l(8,E=t.border_mode),"padding"in t&&l(9,L=t.padding),"type"in t&&l(23,b=t.type),"test_id"in t&&l(10,Y=t.test_id),"explicit_call"in t&&l(11,B=t.explicit_call),"container"in t&&l(12,M=t.container),"visible"in t&&l(13,v=t.visible),"allow_overflow"in t&&l(14,j=t.allow_overflow),"overflow_behavior"in t&&l(15,q=t.overflow_behavior),"scale"in t&&l(16,C=t.scale),"min_width"in t&&l(17,H=t.min_width),"flex"in t&&l(0,y=t.flex),"resizeable"in t&&l(18,S=t.resizeable),"$$scope"in t&&l(24,h=t.$$scope)},n.$$.update=()=>{n.$$.dirty&8192&&(v||l(0,y=!1))},[y,u,o,f,w,g,i,_,E,L,Y,B,M,v,j,q,C,H,S,c,P,Q,R,b,h,s,T]}class ae extends W{constructor(e){super(),ie(this,e,oe,_e,se,{height:1,min_height:2,max_height:3,width:4,elem_id:5,elem_classes:6,variant:7,border_mode:8,padding:9,type:23,test_id:10,explicit_call:11,container:12,visible:13,allow_overflow:14,overflow_behavior:15,scale:16,min_width:17,flex:0,resizeable:18})}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),r()}get min_height(){return this.$$.ctx[2]}set min_height(e){this.$$set({min_height:e}),r()}get max_height(){return this.$$.ctx[3]}set max_height(e){this.$$set({max_height:e}),r()}get width(){return this.$$.ctx[4]}set width(e){this.$$set({width:e}),r()}get elem_id(){return this.$$.ctx[5]}set elem_id(e){this.$$set({elem_id:e}),r()}get elem_classes(){return this.$$.ctx[6]}set elem_classes(e){this.$$set({elem_classes:e}),r()}get variant(){return this.$$.ctx[7]}set variant(e){this.$$set({variant:e}),r()}get border_mode(){return this.$$.ctx[8]}set border_mode(e){this.$$set({border_mode:e}),r()}get padding(){return this.$$.ctx[9]}set padding(e){this.$$set({padding:e}),r()}get type(){return this.$$.ctx[23]}set type(e){this.$$set({type:e}),r()}get test_id(){return this.$$.ctx[10]}set test_id(e){this.$$set({test_id:e}),r()}get explicit_call(){return this.$$.ctx[11]}set explicit_call(e){this.$$set({explicit_call:e}),r()}get container(){return this.$$.ctx[12]}set container(e){this.$$set({container:e}),r()}get visible(){return this.$$.ctx[13]}set visible(e){this.$$set({visible:e}),r()}get allow_overflow(){return this.$$.ctx[14]}set allow_overflow(e){this.$$set({allow_overflow:e}),r()}get overflow_behavior(){return this.$$.ctx[15]}set overflow_behavior(e){this.$$set({overflow_behavior:e}),r()}get scale(){return this.$$.ctx[16]}set scale(e){this.$$set({scale:e}),r()}get min_width(){return this.$$.ctx[17]}set min_width(e){this.$$set({min_width:e}),r()}get flex(){return this.$$.ctx[0]}set flex(e){this.$$set({flex:e}),r()}get resizeable(){return this.$$.ctx[18]}set resizeable(e){this.$$set({resizeable:e}),r()}}export{ae as B}; //# sourceMappingURL=Block-CB3nIXHA.js.map