import{S as k,i as y,s as I,d,Z as $,v as S,Y as g,P as X,Q as q,J as w,h as E,k as z,b as j,c as O,e as R,f as B,m as F,g as D,w as L,t as v,_ as A,$ as J,a0 as P,D as b,E as h,B as Y,C as G,F as H}from"./index.b07d149c.js";import{a as C}from"./CarouselItem.svelte_svelte_type_style_lang.9cf2f304.js";const Q="Users/aliabid/projects/gradio/ui/packages/carousel/src/CarouselItem.svelte";function m(a){let e,r;const o={c:function(){e=E("div"),r=z(a[0]),j(e,"class","absolute left-0 top-0 py-1 px-2 rounded-br-lg shadow-sm text-xs text-gray-500 flex items-center pointer-events-none bg-white z-20 dark:bg-gray-800 s-666OXAkDZJQx"),O(e,Q,14,2,447)},m:function(s,t){R(s,e,t),B(e,r)},p:function(s,t){t&1&&F(r,s[0])},d:function(s){s&&D(e)}};return d("SvelteRegisterBlock",{block:o,id:m.name,type:"if",source:"(14:1) {#if label}",ctx:a}),o}function p(a){let e,r,o,n=a[0]&&m(a);const s=a[5].default,t=$(s,a,a[4],null),c={c:function(){e=E("div"),n&&n.c(),r=L(),t&&t.c(),j(e,"class","carousel-item hidden component min-h-[200px] border rounded-lg overflow-hidden relative s-666OXAkDZJQx"),v(e,"!block",a[1]===a[3]),O(e,Q,9,0,296)},l:function(l){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(l,u){R(l,e,u),n&&n.m(e,null),B(e,r),t&&t.m(e,null),o=!0},p:function(l,[u]){l[0]?n?n.p(l,u):(n=m(l),n.c(),n.m(e,r)):n&&(n.d(1),n=null),t&&t.p&&(!o||u&16)&&A(t,s,l,l[4],o?P(s,l[4],u,null):J(l[4]),null),u&10&&v(e,"!block",l[1]===l[3])},i:function(l){o||(b(t,l),o=!0)},o:function(l){h(t,l),o=!1},d:function(l){l&&D(e),n&&n.d(),t&&t.d(l)}};return d("SvelteRegisterBlock",{block:c,id:p.name,type:"component",source:"",ctx:a}),c}function K(a,e,r){let o,{$$slots:n={},$$scope:s}=e;S("CarouselItem",n,["default"]);let{label:t=void 0}=e;const{register:c,unregister:f,current:l}=g(C);X(l,"current"),q(a,l,i=>r(1,o=i));let u=c();w(()=>f(u));const U=["label"];return Object.keys(e).forEach(i=>{!~U.indexOf(i)&&i.slice(0,2)!=="$$"&&i!=="slot"&&console.warn(`<CarouselItem> was created with unknown prop '${i}'`)}),a.$$set=i=>{"label"in i&&r(0,t=i.label),"$$scope"in i&&r(4,s=i.$$scope)},a.$capture_state=()=>({onDestroy:w,getContext:g,CAROUSEL:C,label:t,register:c,unregister:f,current:l,id:u,$current:o}),a.$inject_state=i=>{"label"in i&&r(0,t=i.label),"id"in i&&r(3,u=i.id)},e&&"$$inject"in e&&a.$inject_state(e.$$inject),[t,o,l,u,s,n]}class Z extends k{constructor(e){super(e),y(this,e,K,p,I,{label:0}),d("SvelteRegisterComponent",{component:this,tagName:"CarouselItem",options:e,id:p.name})}get label(){throw new Error("<CarouselItem>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set label(e){throw new Error("<CarouselItem>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function N(a){let e;const r=a[0].default,o=$(r,a,a[1],null),n={c:function(){o&&o.c()},m:function(t,c){o&&o.m(t,c),e=!0},p:function(t,c){o&&o.p&&(!e||c&2)&&A(o,r,t,t[1],e?P(r,t[1],c,null):J(t[1]),null)},i:function(t){e||(b(o,t),e=!0)},o:function(t){h(o,t),e=!1},d:function(t){o&&o.d(t)}};return d("SvelteRegisterBlock",{block:n,id:N.name,type:"slot",source:"(4:0) <CarouselItem>",ctx:a}),n}function _(a){let e,r;e=new Z({props:{$$slots:{default:[N]},$$scope:{ctx:a}},$$inline:!0});const o={c:function(){Y(e.$$.fragment)},l:function(s){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(s,t){G(e,s,t),r=!0},p:function(s,[t]){const c={};t&2&&(c.$$scope={dirty:t,ctx:s}),e.$set(c)},i:function(s){r||(b(e.$$.fragment,s),r=!0)},o:function(s){h(e.$$.fragment,s),r=!1},d:function(s){H(e,s)}};return d("SvelteRegisterBlock",{block:o,id:_.name,type:"component",source:"",ctx:a}),o}function M(a,e,r){let{$$slots:o={},$$scope:n}=e;S("CarouselItem",o,["default"]);const s=[];return Object.keys(e).forEach(t=>{!~s.indexOf(t)&&t.slice(0,2)!=="$$"&&t!=="slot"&&console.warn(`<CarouselItem> was created with unknown prop '${t}'`)}),a.$$set=t=>{"$$scope"in t&&r(1,n=t.$$scope)},a.$capture_state=()=>({CarouselItem:Z}),[o,n]}class T extends k{constructor(e){super(e),y(this,e,M,_,I,{}),d("SvelteRegisterComponent",{component:this,tagName:"CarouselItem_1",options:e,id:_.name})}}var x=T;const ee=["static"];export{x as Component,ee as modes};
