efficient-web-builder 75.0.0 → 75.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use client";import{jsx as n,jsxs as $}from"react/jsx-runtime";import{HideTaker as qe}from"./ViewHideRoot.js";import{useCallback as v,useEffect as k,useId as Fe,useRef as u,useState as y}from"react";import{markOverlayPortal as se}from"../../format/lib/document/overlay-portal.js";import Ke from"./Ticker.js";import{HeroSlideStyleContext as Je}from"./HeroSlide.js";import{heroPhoneFrame as Qe}from"../lib/hero-poster-sizes.js";import Ue from"./HeroArrows.js";import We from"./Reel.js";import{TICKER_PART_ATTR as Ze}from"./PreviewTickerContext.js";import{useReducedMotion as et}from"./useReducedMotion.js";import{heroHeightBox as tt,heroStoresRatio as rt}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as ot}from"../lib/document/header-clearance.js";import{nextReel as nt,normaliseHeroReelShape as st,reelShown as ct}from"../../format/lib/reel.js";import{arrowsShown as at,arrowStep as lt}from"../../format/lib/hero-arrows.js";import{swipeEnabled as it,swipeStep as ut}from"../../format/lib/hero-swipe.js";import{videoControlShown as mt,videoHeld as dt}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as B}from"efficient-easel/draw";import{say as ce}from"../../format/lib/editor-words.js";import{markedChildren as ae}from"../../format/lib/marked-children.js";import{legacyTickerDrawn as ft,TICKER_MOTION_PART as le}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as ht}from"../../format/lib/content/ink.js";import{HeroPartBox as pt,heroPartScroll as vt}from"./HeroPictures.js";import{entranceDrawn as bt}from"../lib/animation/entrance.js";import{readPartMotion as xt}from"../lib/animation/part-motion.js";import{scrim as ie}from"../../format/lib/content/scrim.js";import{partAttr as b}from"../../format/lib/content/part-names.js";const wt="Play video",kt="Hold video",yt="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",Et=()=>ce("item"),ue=new Map;function gt(d,l){const m=d?.ownerDocument?.defaultView;if(m)return m.addEventListener(B,l),()=>m.removeEventListener(B,l)}function _t({slides:d,strip:l,alignment:m,textureOpacity:T,showTexture:S,textureColor:O,textureShape:me,phoneUpDown:de,phoneSideways:fe,phoneWordsTop:he,phoneWordsBottom:pe,phoneBoxGap:ve,wordsTop:be,wordsBottom:xe,wordsTopTablet:we,wordsBottomTablet:ke,autoplay:z,autoplayInterval:H,showTicker:ye,tickerItems:X,heightDesktop:Ee,heightTablet:ge,heightMobile:G,heightFixed:_e,heightFixedTablet:Re,heightFixedMobile:Y,showPicker:Te,pickerShape:Se,pickerPlacement:Oe,showArrows:He,arrowsShape:Ne,arrowsPlacement:Ae,editing:s,partMotion:j}){const q=tt({heightDesktop:Ee,heightTablet:ge,heightMobile:G,heightFixed:_e,heightFixedTablet:Re,heightFixedMobile:Y}),{className:Le,style:Pe}=q,N=rt(q),F=(l?.blockCount??0)>0,Me=!F&&ft({showTicker:ye,tickerItems:X}),K=(X??[]).map(e=>e?.text?.trim()?e.text:s?Et():"").filter(Boolean),Ce=bt(xt({_partMotion:j},le)),De=vt(j,le),f=u(null),J=u(null),Q=u(null),A=u(null),U=Fe(),L=u(U),[E,Ie]=y([]),[Ve,W]=y(0),x=u(0),[Z,ee]=y(!1),[$e,te]=y(null),[g,Be]=y(!1),P=et(),_=v(()=>f.current?.querySelector(".hero-track")??null,[]),i=v((e,t=!1)=>{W(e),te(o=>o===e?o:null),x.current=e,ue.set(L.current,e);const r=f.current?.querySelector(".hero-track");if(r)if(t){const o=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=o}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`},[]);k(()=>{const e=f.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||U;L.current=t;const r=ue.get(t);typeof r=="number"&&(W(r),x.current=r)},[]),k(()=>{const e=_();if(!e)return;const t=()=>{Ie(o=>nt(o,ae(e,"data-slide-name")))};t();const r=new MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{r.disconnect()}},[_]),k(()=>{if(!s)return;const e=t=>{const r=t.detail;if(!r||typeof r.index!="number")return;const o=f.current,p=o?.getAttribute("data-easel-block")||o?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||L.current;r.id&&r.id!==p||i(r.index,!0)};return gt(f.current,e)},[s,i]);const c=E.length,a=Math.min(Math.max(Ve,0),Math.max(0,c-1)),M=$e===a,C=ct({shown:Te,count:c}),re=at({shown:He,count:c}),oe=mt({editing:s,shown:a,slides:E}),ze=dt({editing:s,playing:g,controlShown:oe}),R=it({count:c,editing:s}),h=u(null),w=u(null),Xe=v(e=>{if(h.current=null,w.current=null,!R||e.touches.length!==1)return;const t=e.touches[0];h.current={x:t.clientX,y:t.clientY},w.current={x:t.clientX,y:t.clientY}},[R]),Ge=v(e=>{if(!h.current)return;if(e.touches.length!==1){h.current=null;return}const t=e.touches[0];w.current={x:t.clientX,y:t.clientY}},[]),Ye=v(()=>{const e=h.current,t=w.current;if(h.current=null,w.current=null,!R||!e||!t)return;const r=ut(t.x-e.x,t.y-e.y,x.current,c);r!==x.current&&i(r)},[R,c,i]);k(()=>{if(s||!z||Z||M||P||c<=1)return;const t=Math.max(1,typeof H=="number"?H:6)*1e3,r=window.setTimeout(()=>i((a+1)%c),t);return()=>window.clearTimeout(r)},[s,z,H,Z,M,P,c,a,i]),k(()=>{const e=[J.current,Q.current,A.current].filter(Boolean),t=e.map(o=>se(o)),r=o=>{const p=o.target,D=p.closest("[data-hero-nav]");if(D&&!A.current?.contains(D))return;const I=D,ne=I??p.closest("[data-idx]");if(!ne)return;o.stopPropagation(),o.preventDefault();const V=I?lt(I.dataset.heroNav,x.current,c):Number(ne.dataset.idx);Number.isNaN(V)||(i(V,s),ae(_(),"data-slide-name")[V]?.click())};return e.forEach(o=>o.addEventListener("click",r,{capture:!0})),()=>{t.forEach(o=>o?.()),e.forEach(o=>o.removeEventListener("click",r,{capture:!0}))}},[c,i,_,s]);const je=v(e=>{if(!e)return;const t=se(e),r=o=>{o.stopPropagation(),o.preventDefault(),Be(p=>!p)};return e.addEventListener("click",r,{capture:!0}),()=>{t?.(),e.removeEventListener("click",r,{capture:!0})}},[]);return n(Je.Provider,{value:{alignment:m,textureOpacity:T,textureOn:S,textureColor:O,textureShape:me,quietVideo:ze,phoneUpDown:de,phoneSideways:fe,phoneWordsTop:he,phoneWordsBottom:pe,phoneBoxGap:ve,wordsTop:be,wordsBottom:xe,wordsTopTablet:we,wordsBottomTablet:ke,holdReel:()=>te(a),reelHeld:M,shownSlide:a,ratioMin:N,posterPhoneFrame:Qe(G,Y)},children:$(qe,{ref:f,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Le} max-w-[var(--sf-hero-cap,none)] ${N?"overflow-clip":"overflow-hidden"}`,style:Pe,onMouseEnter:()=>ee(!0),onMouseLeave:()=>ee(!1),onTouchStart:Xe,onTouchMove:Ge,onTouchEnd:Ye,...b("hero"),children:[n(d,{className:N?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${a*100}%)`,transition:P?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),oe&&n("div",{ref:je,"data-hero-video-control":g?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${ot} + 16px)`},children:$("button",{type:"button",className:yt,children:[n("span",{"aria-hidden":"true",children:g?"❚❚":"▶"}),ce(g?kt:wt)]})}),(C||re)&&$("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[C&&n(We,{ref:J,slides:E,active:a,shape:st(Se),placement:Oe}),re&&n(Ue,{ref:A,shape:Ne,placement:Ae,part:b("arrows"),buttonPart:b("arrow")})]}),C&&n("div",{ref:Q,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",...b("dots"),children:E.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===a?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`,...b("dot")},t))}),F&&l&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:ie(.55),...ht},...b("strip"),children:n(l,{})}),Me&&K.length>0&&n(Rt,{editing:!!s,entrance:Ce,scroll:De,children:n(Ke,{items:K,backdrop:"dark-media"})})]})})}function Rt({editing:d,entrance:l,scroll:m,children:T}){const S="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",O=d?{[Ze]:""}:void 0;return n(pt,{entrance:l,scroll:m,editing:d,className:S,attrs:O,style:{background:ie(.55)},children:T})}export{B as HERO_SLIDER_GOTO_EVENT,kt as HERO_VIDEO_HOLD_LABEL,wt as HERO_VIDEO_PLAY_LABEL,_t as default,gt as subscribeSliderGoto};
1
+ "use client";import{jsx as n,jsxs as C,Fragment as ot}from"react/jsx-runtime";import{HideTaker as de}from"./ViewHideRoot.js";import{useCallback as y,useEffect as g,useId as nt,useRef as i,useState as T}from"react";import{markOverlayPortal as me}from"../../format/lib/document/overlay-portal.js";import st from"./Ticker.js";import{HeroSlideStyleContext as ct}from"./HeroSlide.js";import{heroPhoneFrame as at}from"../lib/hero-poster-sizes.js";import it from"./HeroArrows.js";import lt from"./Reel.js";import{TICKER_PART_ATTR as ut}from"./PreviewTickerContext.js";import{useReducedMotion as dt}from"./useReducedMotion.js";import{heroHeightBox as mt,heroStoresRatio as ft}from"../../format/lib/content/section-height.js";import{HEADER_HEIGHT_CSS as ht}from"../lib/document/header-clearance.js";import{nextReel as pt,normaliseHeroReelShape as vt,reelShown as wt}from"../../format/lib/reel.js";import{arrowsShown as bt,arrowStep as xt}from"../../format/lib/hero-arrows.js";import{swipeEnabled as kt,swipeStep as Et}from"../../format/lib/hero-swipe.js";import{videoControlShown as yt,videoHeld as gt}from"../../format/lib/hero-video-control.js";import{HERO_SLIDER_GOTO_EVENT as G}from"efficient-easel/draw";import{say as fe}from"../../format/lib/editor-words.js";import{markedChildren as H}from"../../format/lib/marked-children.js";import{scrollPerSlideOf as Rt,scrollSlideIndex as St,slideChangeOf as _t,slideEffectOf as Ot}from"../../format/lib/hero-slide-change.js";import{stackSlides as Tt,wipeSlides as Ht}from"../../format/lib/hero-wipe.js";import{legacyTickerDrawn as At,TICKER_MOTION_PART as he}from"../../format/lib/hero-ticker.js";import{ON_MEDIA_INK_STYLE as Lt}from"../../format/lib/content/ink.js";import{HeroPartBox as Nt,heroPartScroll as Ct}from"./HeroPictures.js";import{entranceDrawn as Pt}from"../lib/animation/entrance.js";import{readPartMotion as Mt}from"../lib/animation/part-motion.js";import{scrim as pe}from"../../format/lib/content/scrim.js";import{partAttr as R}from"../../format/lib/content/part-names.js";const Dt="Play video",It="Hold video",$t="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",Vt=()=>fe("item"),ve=new Map;function zt(d,l){const m=d?.ownerDocument?.defaultView;if(m)return m.addEventListener(G,l),()=>m.removeEventListener(G,l)}function Bt({slides:d,strip:l,alignment:m,textureOpacity:S,showTexture:w,textureColor:P,textureShape:we,phoneUpDown:be,phoneSideways:xe,phoneWordsTop:ke,phoneWordsBottom:Ee,phoneBoxGap:ye,wordsTop:ge,wordsBottom:Re,wordsTopTablet:Se,wordsBottomTablet:_e,autoplay:Oe,autoplayInterval:M,slideChange:Te,scrollPerSlide:He,slideEffect:Ae,showTicker:Le,tickerItems:K,heightDesktop:Ne,heightTablet:Ce,heightMobile:Y,heightFixed:Pe,heightFixedTablet:Me,heightFixedMobile:j,showPicker:De,pickerShape:Ie,pickerPlacement:$e,showArrows:Ve,arrowsShape:ze,arrowsPlacement:Be,editing:c,partMotion:q}){const J=mt({heightDesktop:Ne,heightTablet:Ce,heightMobile:Y,heightFixed:Pe,heightFixedTablet:Me,heightFixedMobile:j}),{className:Fe,style:Xe}=J,D=ft(J),Q=(l?.blockCount??0)>0,Ge=!Q&&At({showTicker:Le,tickerItems:K}),U=(K??[]).map(e=>e?.text?.trim()?e.text:c?Vt():"").filter(Boolean),Ke=Pt(Mt({_partMotion:q},he)),Ye=Ct(q,he),b=i(null),W=i(null),Z=i(null),I=i(null),ee=nt(),$=i(ee),[A,je]=T([]),[qe,te]=T(0),p=i(0),[re,oe]=T(!1),[Je,ne]=T(null),[L,Qe]=T(!1),_=dt(),V=_t({slideChange:Te,autoplay:Oe}),f=V==="scroll"&&!c,Ue=Ot(Ae),z=Rt(He),se=i(null),ce=i(f);ce.current=f;const ae=i(_);ae.current=_;const v=y(()=>b.current?.querySelector(".hero-track")??null,[]),u=y((e,t=!1)=>{const o=p.current;te(e),ne(s=>s===e?s:null),p.current=e,ve.set($.current,e);const r=b.current?.querySelector(".hero-track");if(r){if(ce.current){Ht(H(r,"data-slide-name"),o,e,t||ae.current);return}if(t){const s=r.style.transition;r.style.transition="none",r.style.transform=`translateX(-${Math.max(0,e)*100}%)`,r.offsetHeight,r.style.transition=s}else r.style.transform=`translateX(-${Math.max(0,e)*100}%)`}},[]);g(()=>{const e=b.current,t=e?.getAttribute("data-easel-block")||e?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||ee;$.current=t;const o=ve.get(t);typeof o=="number"&&(te(o),p.current=o)},[]),g(()=>{const e=v();if(!e)return;const t=()=>{je(r=>pt(r,H(e,"data-slide-name")))};t();const o=new MutationObserver(t);return o.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{o.disconnect()}},[v]),g(()=>{if(!c)return;const e=t=>{const o=t.detail;if(!o||typeof o.index!="number")return;const r=b.current,s=r?.getAttribute("data-easel-block")||r?.closest("[data-easel-block]")?.getAttribute("data-easel-block")||$.current;o.id&&o.id!==s||u(o.index,!0)};return zt(b.current,e)},[c,u]);const a=A.length,h=Math.min(Math.max(qe,0),Math.max(0,a-1)),B=Je===h,F=wt({shown:De,count:a}),ie=bt({shown:Ve,count:a}),le=yt({editing:c,shown:h,slides:A}),We=gt({editing:c,playing:L,controlShown:le}),N=kt({count:a,editing:c}),x=i(null),O=i(null),Ze=y(e=>{if(x.current=null,O.current=null,!N||e.touches.length!==1)return;const t=e.touches[0];x.current={x:t.clientX,y:t.clientY},O.current={x:t.clientX,y:t.clientY}},[N]),et=y(e=>{if(!x.current)return;if(e.touches.length!==1){x.current=null;return}const t=e.touches[0];O.current={x:t.clientX,y:t.clientY}},[]),tt=y(()=>{const e=x.current,t=O.current;if(x.current=null,O.current=null,!N||!e||!t)return;const o=Et(t.x-e.x,t.y-e.y,p.current,a);o!==p.current&&u(o)},[N,a,u]);g(()=>{if(c||V!=="timer"||re||B||_||a<=1)return;const t=Math.max(1,typeof M=="number"?M:6)*1e3,o=window.setTimeout(()=>u((h+1)%a),t);return()=>window.clearTimeout(o)},[c,V,M,re,B,_,a,h,u]),g(()=>{if(!f)return;const e=v();e&&Tt(H(e,"data-slide-name"),p.current,null);let t=0;const o=()=>{t=0;const s=se.current,k=v()?H(v(),"data-slide-name").length:0;if(!s||k===0)return;const E=St(-s.getBoundingClientRect().top,z/100*window.innerHeight,k);E!==p.current&&u(E)},r=()=>{t||(t=window.requestAnimationFrame(o))};return o(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{t&&window.cancelAnimationFrame(t),window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[f,z,u,v]),g(()=>{const e=[W.current,Z.current,I.current].filter(Boolean),t=e.map(r=>me(r)),o=r=>{const s=r.target,k=s.closest("[data-hero-nav]");if(k&&!I.current?.contains(k))return;const E=k,ue=E??s.closest("[data-idx]");if(!ue)return;r.stopPropagation(),r.preventDefault();const X=E?xt(E.dataset.heroNav,p.current,a):Number(ue.dataset.idx);Number.isNaN(X)||(u(X,c),H(v(),"data-slide-name")[X]?.click())};return e.forEach(r=>r.addEventListener("click",o,{capture:!0})),()=>{t.forEach(r=>r?.()),e.forEach(r=>r.removeEventListener("click",o,{capture:!0}))}},[a,u,v,c]);const rt=y(e=>{if(!e)return;const t=me(e),o=r=>{r.stopPropagation(),r.preventDefault(),Qe(s=>!s)};return e.addEventListener("click",o,{capture:!0}),()=>{t?.(),e.removeEventListener("click",o,{capture:!0})}},[]);return n(ct.Provider,{value:{alignment:m,textureOpacity:S,textureOn:w,textureColor:P,textureShape:we,quietVideo:We,phoneUpDown:be,phoneSideways:xe,phoneWordsTop:ke,phoneWordsBottom:Ee,phoneBoxGap:ye,wordsTop:ge,wordsBottom:Re,wordsTopTablet:Se,wordsBottomTablet:_e,holdReel:()=>ne(h),reelHeld:B,shownSlide:h,ratioMin:D,posterPhoneFrame:at(Y,j)},children:n(Gt,{on:f,pinRef:se,height:(d?.blockCount||a)*z,effect:Ue,children:C(de,{ref:b,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${Fe} max-w-[var(--sf-hero-cap,none)] ${D?"overflow-clip":"overflow-hidden"}${f?" sticky top-0":""}`,style:Xe,onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),onTouchStart:Ze,onTouchMove:et,onTouchEnd:tt,...R("hero"),children:[n(d,{className:f?Xt:D?"hero-track flex min-h-full [&>*]:min-h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full":"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:f?void 0:`translateX(-${h*100}%)`,transition:f||_?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),le&&n("div",{ref:rt,"data-hero-video-control":L?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${ht} + 16px)`},children:C("button",{type:"button",className:$t,children:[n("span",{"aria-hidden":"true",children:L?"❚❚":"▶"}),fe(L?It:Dt)]})}),(F||ie)&&C("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[F&&n(lt,{ref:W,slides:A,active:h,shape:vt(Ie),placement:$e}),ie&&n(it,{ref:I,shape:ze,placement:Be,part:R("arrows"),buttonPart:R("arrow")})]}),F&&n("div",{ref:Z,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",...R("dots"),children:A.map((e,t)=>n("button",{type:"button","data-idx":t,"aria-label":`Go to slide ${t+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${t===h?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`,...R("dot")},t))}),Q&&l&&n("div",{className:"sf-hero-strip absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10",style:{background:pe(.55),...Lt},...R("strip"),children:n(l,{})}),Ge&&U.length>0&&n(Ft,{editing:!!c,entrance:Ke,scroll:Ye,children:n(st,{items:U,backdrop:"dark-media"})})]})})})}function Ft({editing:d,entrance:l,scroll:m,children:S}){const w="sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5",P=d?{[ut]:""}:void 0;return n(Nt,{entrance:l,scroll:m,editing:d,className:w,attrs:P,style:{background:pe(.55)},children:S})}const Xt="hero-track grid h-full [&>*]:h-full [&>*]:min-w-full [&>*]:[grid-area:1/1] [&>*:not(:first-child)]:invisible";function Gt({on:d,pinRef:l,height:m,effect:S,children:w}){return d?C(de,{ref:l,className:"relative","data-hero-scroll":"","data-hero-effect":S,children:[w,n("div",{"aria-hidden":"true",style:{height:`${m}vh`}})]}):n(ot,{children:w})}export{G as HERO_SLIDER_GOTO_EVENT,It as HERO_VIDEO_HOLD_LABEL,Dt as HERO_VIDEO_PLAY_LABEL,Bt as default,zt as subscribeSliderGoto};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{phoneKey as o,tabletKey as i}from"efficient-easel/draw";import{sectionFillsHeight as n}from"../../../../../../format/lib/content/section-min-height.js";import{sectionRootPad as m}from"../../../../content/section-own-pads.js";import a from"../../../../../components/Grid.js";import{GridMeta as l}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const h={...l,render:t=>e(a,{columns:t.columns,mobileColumns:t.mobileColumns,gap:t.gap,gapPhone:t[o("gap")],gapTablet:t[i("gap")],contained:t.contained,fillHeight:n(t),content:t.content,pad:m("Grid",t)})};export{h as GridRender};
1
+ import{jsx as o}from"react/jsx-runtime";import{phoneKey as t,tabletKey as i}from"efficient-easel/draw";import{sectionFillsHeight as l}from"../../../../../../format/lib/content/section-min-height.js";import{sectionRootPad as n}from"../../../../content/section-own-pads.js";import a from"../../../../../components/Grid.js";import{GridMeta as m}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const h={...m,render:e=>o(a,{columns:e.columns,mobileColumns:e.mobileColumns,gap:e.gap,gapPhone:e[t("gap")],gapTablet:e[i("gap")],contained:e.contained,fillHeight:l(e),content:e.content,pad:n("Grid",e),layout:e.layout,carouselTile:e.carouselTile,carouselTilePhone:e.carouselTilePhone})};export{h as GridRender};
@@ -1 +1 @@
1
- import{jsx as A}from"react/jsx-runtime";import C from"../../../../../components/HeroSection.js";import{HeroMeta as E}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const U={...E,render:({slides:e,strip:o,alignment:t,textureOpacity:r,showTexture:i,textureColor:p,textureShape:h,phoneUpDown:s,phoneSideways:a,phoneWordsTop:n,phoneWordsBottom:d,phoneBoxGap:l,wordsTop:m,wordsBottom:w,wordsTopTablet:x,wordsBottomTablet:c,autoplay:g,autoplayInterval:T,showTicker:b,tickerItems:k,heightDesktop:u,heightTablet:S,heightMobile:y,heightFixed:B,heightFixedTablet:M,heightFixedMobile:f,showPicker:F,pickerShape:H,pickerPlacement:P,showArrows:j,arrowsShape:D,arrowsPlacement:I,_partMotion:W,editor:v})=>A(C,{slides:e,strip:o,alignment:t,textureOpacity:r,showTexture:i,textureColor:p,textureShape:h,phoneUpDown:s,phoneSideways:a,phoneWordsTop:n,phoneWordsBottom:d,phoneBoxGap:l,wordsTop:m,wordsBottom:w,wordsTopTablet:x,wordsBottomTablet:c,autoplay:g,autoplayInterval:T,showTicker:b,tickerItems:k,heightDesktop:u,heightTablet:S,heightMobile:y,heightFixed:B,heightFixedTablet:M,heightFixedMobile:f,showPicker:F,pickerShape:H,pickerPlacement:P,showArrows:j,arrowsShape:D,arrowsPlacement:I,editing:v?.isEditing,partMotion:W})};export{U as HeroRender};
1
+ import{jsx as G}from"react/jsx-runtime";import O from"../../../../../components/HeroSection.js";import{HeroMeta as R}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const z={...R,render:({slides:e,strip:o,alignment:t,textureOpacity:r,showTexture:i,textureColor:s,textureShape:h,phoneUpDown:p,phoneSideways:a,phoneWordsTop:l,phoneWordsBottom:n,phoneBoxGap:d,wordsTop:m,wordsBottom:w,wordsTopTablet:c,wordsBottomTablet:x,autoplay:g,autoplayInterval:T,slideChange:b,scrollPerSlide:k,slideEffect:u,showTicker:S,tickerItems:f,heightDesktop:y,heightTablet:B,heightMobile:M,heightFixed:P,heightFixedTablet:F,heightFixedMobile:H,showPicker:j,pickerShape:C,pickerPlacement:D,showArrows:E,arrowsShape:I,arrowsPlacement:W,_partMotion:v,editor:A})=>G(O,{slides:e,strip:o,alignment:t,textureOpacity:r,showTexture:i,textureColor:s,textureShape:h,phoneUpDown:p,phoneSideways:a,phoneWordsTop:l,phoneWordsBottom:n,phoneBoxGap:d,wordsTop:m,wordsBottom:w,wordsTopTablet:c,wordsBottomTablet:x,autoplay:g,autoplayInterval:T,slideChange:b,scrollPerSlide:k,slideEffect:u,showTicker:S,tickerItems:f,heightDesktop:y,heightTablet:B,heightMobile:M,heightFixed:P,heightFixedTablet:F,heightFixedMobile:H,showPicker:j,pickerShape:C,pickerPlacement:D,showArrows:E,arrowsShape:I,arrowsPlacement:W,editing:A?.isEditing,partMotion:v})};export{z as HeroRender};