1import{i as w,r as o,j as t,m as x,R as b,t as h,b as v,h as j}from"./client-B1H94IOQ.js";import{C as g}from"./ClampText-BI7DBBkx.js";import"./installGutenbergHooks-BdFqep2L.js";import{E as y}from"./EditableText-DZwb8G-m.js";const E={some:0,all:1};function I(e,i,{root:n,margin:a,amount:s="some"}={}){const d=w(e),l=new WeakMap,c=u=>{u.forEach(r=>{const f=l.get(r.target);if(r.isIntersecting!==!!f)if(r.isIntersecting){const p=i(r.target,r);typeof p=="function"?l.set(r.target,p):m.unobserve(r.target)}else typeof f=="function"&&(f(r),l.delete(r.target))})},m=new IntersectionObserver(c,{root:n,rootMargin:a,threshold:typeof s=="number"?s:E[s]});return d.forEach(u=>m.observe(u)),()=>m.disconnect()}function N(e,{root:i,margin:n,amount:a,once:s=!1,initial:d=!1}={}){const[l,c]=o.useState(d);return o.useEffect(()=>{if(!e.current||s&&l)return;const m=()=>(c(!0),s?void 0:()=>c(!1)),u={root:i&&i.current||void 0,margin:n,amount:a};return I(e.current,m,u)},[i,e,n,s,a]),l}const V=o.forwardRef(({className:e,...i},n)=>{const a=k({theme:i.theme,className:e});return t.jsx("div",{className:v(a),ref:n,...i,children:i.children})}),O=o.forwardRef(({className:e,admin:i,...n},a)=>{const s=S({admin:!1,className:e});return t.jsx("div",{className:v(s),ref:a,...n,children:n.children})});function R(e){const i={max:!0},n="aspect-[284/228] md:aspect-square",a=o.useRef(null),[s,d]=o.useState(!1);return N(a,{amount:.3,once:!1}),o.useEffect(()=>{const l=a.current?.closest(".swiper-slide");if(!l)return;d(l.classList.contains("swiper-slide-active"));const c=new MutationObserver(()=>{d(l.classList.contains("swiper-slide-active"))});return c.observe(l,{attributes:!0,attributeFilter:["class"]}),()=>c.disconnect()},[]),t.jsx(O,{ref:a,admin:!1,"data-active":s,children:t.jsxs(V,{theme:e.blockTheme,className:"h-full md:w-grid-inner md:mx-auto",children:[t.jsx("div",{className:"w-full md:w-1/2 flex md:items-center md:justify-center md:p-4 mb-[10px] md:mb-0",children:t.jsxs(x.div,{initial:{opacity:0,y:10},animate:s?{opacity:1,y:0}:{opacity:0,y:10},transition:{delay:.3,duration:.5,ease:"easeOut"},className:`relative h-full w-full rounded-sm overflow-hidden ${n}`,children:[e.image&&e.mediaType==="image"&&t.jsx(b,{...e.image,...i}),e.video&&e.mediaType==="video"&&t.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,width:600,height:544,className:"absolute inset-0 w-full h-full max-w-none object-cover object-center bg-warmBlack",children:t.jsx("source",{src:e.video?.mediaItemUrl,type:"video/mp4"})})]})}),t.jsx("div",{className:"w-full md:w-1/2 flex flex-col md:items-start md:justify-center py-5 px-4",children:t.jsxs(g,{size:"slide",className:"flex flex-col gap-y-7 md:gap-y-4 items-start md:justify-center h-fit pb-8 md:pb-0",children:[t.jsx(x.div,{initial:{opacity:0,y:10},animate:s?{opacity:1,y:0}:{opacity:0,y:10},transition:{delay:.3,duration:.5,ease:"easeOut"},children:t.jsx(y,{as:"h2",store:"title",defaultValue:"Enter a title",className:"type-title-xs text-current w-fit text-pretty text-left"})}),t.jsx(x.div,{initial:{opacity:0,y:10},animate:s?{opacity:1,y:0}:{opacity:0,y:10},transition:{delay:.3,duration:.5,ease:"easeOut"},children:t.jsx(y,{as:"p",store:"text",defaultValue:"Enter some text",className:"type-body-m font-medium md:type-body-l text-current w-fit text-pretty text-left"})})]})})]})})}R.displayName="Block(content/info-slide)";const S=h({base:["relative z-10 h-full"],variants:{admin:{true:["w-full py-8"]}}}),k=h({base:["w-full flex flex-col md:flex-row relative rounded-md p-3 md:p-0"],variants:{theme:{...j}},defaultVariants:{theme:"blue"}});export{V as Slide,O as SlideWrapper,R as default,k as slideStyles,S as slideWrapperStyles};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.