@cntrl-site/components 1.0.111-alpha.1 → 1.0.111
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.
- package/dist/{Burger-DyORh_vF.mjs → Burger-BkVgNMGU.mjs} +1 -1
- package/dist/{Burger-B4kXX9aY.js → Burger-C3yVbQcq.js} +1 -1
- package/dist/{ChroniclesComponent-B6L-8Gn2.js → ChroniclesComponent-FFenN7yL.js} +1 -1
- package/dist/{ChroniclesComponent-adaAqTy8.mjs → ChroniclesComponent-cZLqN307.mjs} +12 -12
- package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
- package/dist/{ControlSlider-DB4nbVLT.js → ControlSlider-C8ckUIDm.js} +1 -1
- package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-DqKfaKMG.mjs} +1 -1
- package/dist/{FAQ-BjLLn81l.mjs → FAQ-BS-vO0l-.mjs} +1 -1
- package/dist/{FAQ-C5evIqbl.js → FAQ-Ct0YfqX1.js} +1 -1
- package/dist/{Grid-BXUT_Hn6.js → Grid-CU1dsdoO.js} +1 -1
- package/dist/{Grid-Dn44dvgx.mjs → Grid-qbqchSLi.mjs} +1 -1
- package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
- package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
- package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
- package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
- package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
- package/dist/{LightboxJournal-C_q7_s-B.mjs → LightboxJournal-D59ex6wH.mjs} +1 -1
- package/dist/{LightboxJournal-BFF5aKRz.js → LightboxJournal-DAEZOPDi.js} +1 -1
- package/dist/{LightboxStrip-CC2e0_9A.js → LightboxStrip-BDjI1jyH.js} +1 -1
- package/dist/{LightboxStrip-BrNj7ipX.mjs → LightboxStrip-YspzBP8N.mjs} +1 -1
- package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
- package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
- package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
- package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
- package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
- package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
- package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
- package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
- package/dist/SvgImage-B5mR9y6q.mjs +51 -0
- package/dist/SvgImage-DFlmxAoL.js +1 -0
- package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
- package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
- package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
- package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
- package/dist/{components-CpgSVhiu.mjs → components-DtO0Ti47.mjs} +29 -605
- package/dist/components-f82884Bk.js +1 -0
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +22 -23
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +27 -44
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
- package/dist/sources.js +1 -1
- package/dist/sources.mjs +1 -1
- package/dist/types/SchemaV1.d.ts +0 -2
- package/package.json +1 -1
- package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -57
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -587
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -140
- package/dist/PopupMenu-DRn2Hrwz.mjs +0 -929
- package/dist/PopupMenu-_jzggiOn.js +0 -348
- package/dist/SvgImage-CwRq9-ec.mjs +0 -56
- package/dist/SvgImage-_QN8ngad.js +0 -1
- package/dist/components-BY4b1gFL.js +0 -1
- package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
- package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),a=require("react"),jn=require("react-dom"),Mn=require("./useScopedStyles-Bf6yohVQ.js"),J=require("./useLightboxSwipeDismiss-Br9uE5G0.js"),Rt=require("./scalingValue-CSHYgTZl.js"),kn=require("./SvgImage-_QN8ngad.js"),_n=require("./useLightboxScrollLock-Hf16Eq4g.js"),En=require("./textStylesToCss-CNN3zZTV.js"),Nn=(e,o,u,f)=>{const l=Math.min(Math.abs(e)/Math.max(f,1),1);return o+(u-o)*l},On=e=>{e.style.transition="",e.style.transform="",e.style.willChange=""},zn=e=>{const o=getComputedStyle(e).transform;return o==="none"?0:new DOMMatrixReadOnly(o).m41},Fn=(e,o,u,{duration:f,easing:l,onComplete:m})=>{const p=e.scrollLeft,w=u-p,I=p-u,F=(E,Q)=>{On(o),e.scrollLeft=E,Q&&(m==null||m())};if(Math.abs(w)<.5)return F(u,!0),()=>{};let j=!1,K=0;const L=()=>{o.removeEventListener("transitionend",G),clearTimeout(K)},G=E=>{E.target!==o||E.propertyName!=="transform"||j||(j=!0,L(),F(u,!0))};return o.addEventListener("transitionend",G),o.style.willChange="transform",o.style.transition="none",o.style.transform="translate3d(0, 0, 0)",o.offsetHeight,o.style.transition=`transform ${f}ms ${l}`,o.style.transform=`translate3d(${I}px, 0, 0)`,K=window.setTimeout(()=>{j||(j=!0,L(),F(u,!0))},f+64),()=>{j||(j=!0,L(),F(p-zn(o),!1))}},gt=300,Kn=900,Bn=1500,Dn="cubic-bezier(0.16, 1, 0.3, 1)",Hn=3e3,Xn=2,Gn=16,Vn=.05,Yn=1,It=.3,qn=50,Un=20,at=.004,Oe=["title1","title2","title3"],ze={title1:"1",title2:"2",title3:"3"},Zn={title1:"title1Color",title2:"title2Color",title3:"title3Color"},Jn={title1:.02,title2:.02,title3:.02},Wt=e=>`max(${e}, ${Un}px)`,Fe=e=>{if(!Array.isArray(e)||e.length===0)return{};const o=e.find(l=>(l==null?void 0:l.type)==="paragraph")??e[0],u=o==null?void 0:o.children;if(!Array.isArray(u))return{};const f=u.map(l=>typeof(l==null?void 0:l.text)=="string"?l.text.trim():"").filter(Boolean);return{title1:f[0],title2:f[1],title3:f[2]}},Ke=e=>{if(!e)return{title1:"",title2:"",title3:""};if(e.title1||e.title2||e.title3)return{title1:e.title1??"",title2:e.title2??"",title3:e.title3??""};const o=Fe(e.text);return{title1:o.title1??"",title2:o.title2??"",title3:o.title3??""}},_=(e,o)=>`${e}${o.charAt(0).toUpperCase()}${o.slice(1)}`,Be=e=>[_(e,"fontFamily"),_(e,"fontSettings"),{type:"row",items:[_(e,"fontSize"),_(e,"lineHeight"),_(e,"letterSpacing"),_(e,"wordSpacing")]},_(e,"textAlign"),_(e,"textAppearance")],Qn=()=>({type:"tab",id:"stripTextStyle",tabs:Object.fromEntries(Oe.map(e=>[ze[e],Be(e)]))}),ee=(e,o)=>{if(e<=0)return[];const u=o.slice(0,e),f=u.reduce((m,p)=>m+p,0);if(f<=1)return u;const{widths:l}=[...u].reverse().reduce(({overflow:m,widths:p},w)=>{if(m<=0||w<=0)return{overflow:m,widths:[w,...p]};const I=Math.min(m,w);return{overflow:m-I,widths:[w-I,...p]}},{overflow:f-1,widths:[]});return l},De=(e,o)=>ee(e,o),At=(e,o)=>{const u=o.filter((f,l)=>l!==e).reduce((f,l)=>f+l,0);return Math.max(1-u,0)},Ne=(e,o)=>{const u=e.map(f=>o[f.widthKey]??0);return{resolved:ee(e.length,u),effective:De(e.length,u)}},Pn=(e,o,u,f,l,m,p)=>{const w=[];return o&&w.push({prefix:"title1",widthKey:"title1Width",className:`${e}-title1`,style:l,text:o}),u&&w.push({prefix:"title2",widthKey:"title2Width",marginLeftKey:"title2MarginLeft",className:`${e}-title2`,style:m,text:u}),f&&w.push({prefix:"title3",widthKey:"title3Width",marginLeftKey:"title3MarginLeft",className:`${e}-title3`,style:p,text:f}),w},Pt=(e,o)=>{const u=f=>{const l=_(o,f);return e[l]};return{fontFamily:u("fontFamily")??"Arial",fontSettings:u("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:u("fontSize"),lineHeight:u("lineHeight"),letterSpacing:u("letterSpacing")??0,wordSpacing:u("wordSpacing")??0,textAlign:u("textAlign")??"left",textAppearance:u("textAppearance"),color:e[Zn[o]]}},tr=(e,o,u,f)=>e.slice(0,f).reduce((l,m,p)=>l+(m!=null&&m.marginLeftKey?u[m.marginLeftKey]??0:0)+(o[p]??0),0),te=(e,o,u)=>{var l,m;const f={fontSettings:{fontFamily:o.fontFamily,fontWeight:((l=o.fontSettings)==null?void 0:l.fontWeight)??400,fontStyle:((m=o.fontSettings)==null?void 0:m.fontStyle)??"normal"},fontSize:o.fontSize??Jn[e],lineHeight:o.lineHeight,letterSpacing:o.letterSpacing,wordSpacing:o.wordSpacing,textAlign:o.textAlign,textAppearance:o.textAppearance,color:o.color??"#ffffff"};return En.textStylesToCss(f,u)},er=({prefix:e,images:o,settings:u,isEditor:f,isEditMode:l,isPreviewMode:m,onClose:p})=>{const{backgroundColor:w,thumbnailSize:I,thumbnailGap:F,thumbnailMarginBottom:j,imageGap:K,closeIcon:L,closeIconMaxWidth:G,closeIconColor:E,closeIconHoverColor:Q,thumbnailTrigger:ne,thumbnailVisibility:Ct,thumbnailObjectFit:xt,thumbnailActive:He,thumbnailActiveColor:Xe,title1Width:jt,title2Width:re,title3Width:oe,title1MarginLeft:W=0,title2MarginLeft:ie=0,title3MarginLeft:se=0,titleRowMarginBottom:le=0,titleHeaderLayout:ae="desktop",contentMarginTop:Ge,iconMarginLeft:Ve}=u,P=t=>Rt.scalingValue(t,f??!1),Ye=I??u.thumnailSize??.03,ce=P(Ye),Mt=P(F),kt=P(j??.02),ct=P(K??0),ue=P(Ge??0),qe=Wt(ue),fe=P(Ve??0),[tt,_t]=a.useState(0),A=a.useRef(tt);A.current=tt;const Ue=o[tt],{title1:Et,title2:Nt,title3:Ot}=Ke(Ue),he=te("title1",Pt(u,"title1"),f),de=te("title2",Pt(u,"title2"),f),me=te("title3",Pt(u,"title3"),f),C=ae==="mobile",V=!l&&(!f||m),ut=V,ft=V,Ze=V,pe=J.isImageRatioCover(xt),Je=pe?{"--image-aspect-ratio":J.getAspectRatio(xt)}:void 0,ge=!!(Et||Nt||Ot),x=a.useMemo(()=>Pn(e,Et,Nt,Ot,he,de,me),[e,tt,Et,Nt,Ot,he,de,me]),et=a.useMemo(()=>({title1Width:jt,title2Width:re,title3Width:oe}),[jt,re,oe]),bt=a.useMemo(()=>x.map(t=>et[t.widthKey]),[x,et]),N=a.useMemo(()=>ee(x.length,bt),[x.length,bt]),xe=a.useMemo(()=>De(x.length,bt),[x.length,bt]),vt=a.useMemo(()=>x.filter(t=>t.prefix==="title1"),[x]),M=a.useMemo(()=>x.filter(t=>t.prefix==="title2"||t.prefix==="title3"),[x]),yt=a.useMemo(()=>Ne(vt,et),[vt,et]),B=a.useMemo(()=>Ne(M,et),[M,et]),zt=a.useCallback((t,n)=>{const r=x.indexOf(t);if(!C||n==="single-row")return{effectiveWidth:xe[r]??0,resolvedWidth:N[r]??0,maxWidth:At(r,N)};if(n==="two-row-top"){const s=vt.indexOf(t);return{effectiveWidth:yt.effective[s]??0,resolvedWidth:yt.resolved[s]??0,maxWidth:At(s,yt.resolved)}}const i=M.indexOf(t);return{effectiveWidth:B.effective[i]??0,resolvedWidth:B.resolved[i]??0,maxWidth:At(i,B.resolved)}},[M,B,xe,N,x,vt,yt,C]),y=a.useCallback(t=>Rt.scalingValue(t,f??!1),[f]),Qe=y(le??0),k=a.useMemo(()=>({title1MarginLeft:W,title2MarginLeft:ie,title3MarginLeft:se}),[W,ie,se]),Pe=a.useCallback(t=>x.slice(0,t+1).reduce((n,r,i)=>n+(r!=null&&r.marginLeftKey?k[r.marginLeftKey]??0:0)+(N[i]??0),0)+(C?0:W??0),[x,k,N,C,W]),tn=a.useCallback(()=>C?0:W??0,[C,W]),Ft=a.useCallback(t=>M.slice(0,t).reduce((n,r,i)=>n+(r.marginLeftKey?k[r.marginLeftKey]??0:0)+(B.resolved[i]??0),0),[M,B.resolved,k]),en=a.useCallback(t=>{const n=M[t];return Ft(t)+(n.marginLeftKey?k[n.marginLeftKey]??0:0)+(B.resolved[t]??0)},[M,B.resolved,Ft,k]),Kt=(t,n)=>{const r=t.marginLeftKey?k[t.marginLeftKey]??0:0,{effectiveWidth:i,resolvedWidth:s,maxWidth:h}=zt(t,n),d=l&&n==="two-row-top";return c.jsxs("div",{className:`${e}-title-cell`,"data-title":t.prefix,style:{...n==="single-row"?{gridArea:t.prefix}:{},width:y(i),...r>0?{marginLeft:y(r)}:{}},children:[c.jsx("p",{className:t.className,style:t.style,children:t.text}),d&&t.marginLeftKey&&c.jsx("div",{"data-controls":t.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(s),style:{position:"absolute",top:0,left:y(-r),width:`max(${y(r)}, 10px)`,height:"100%",pointerEvents:"auto"}}),d&&c.jsx("div",{"data-controls":t.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(h),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,right:y(-at/2),width:y(at),height:"100%",pointerEvents:"auto"}})]},t.className)},nn=()=>{const t=C?-1:x.findIndex(i=>i.prefix==="title1"),n=!C&&(l||(W??0)>0)?(()=>{const i=W??0,s=t>=0?N[t]:jt??0;return c.jsx("div",{"data-controls":"title1MarginLeft","data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(s),style:{position:"absolute",top:0,left:0,width:`max(${y(i)}, 10px)`,height:"100%",pointerEvents:"auto"}},"title1MarginLeft")})():null,r=x.flatMap((i,s)=>{if(!i.marginLeftKey)return[];const h=k[i.marginLeftKey]??0,d=tr(x,N,k,s)+tn();return c.jsx("div",{"data-controls":i.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(N[s]),style:{position:"absolute",top:0,left:y(d),width:`max(${y(h)}, 10px)`,height:"100%",pointerEvents:"auto"}},i.marginLeftKey)});return n?[n,...r]:r},rn=()=>x.map((t,n)=>{const r=At(n,N),s=Pe(n)-at/2;return c.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:c.jsx("div",{"data-controls":t.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(r),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:y(s),width:y(at),height:"100%",pointerEvents:"auto"}})},`${t.widthKey}-junction`)}),on=()=>M.flatMap((t,n)=>{if(!t.marginLeftKey)return[];const r=k[t.marginLeftKey]??0,i=Ft(n),{resolvedWidth:s}=zt(t,"two-row-bottom");return c.jsx("div",{"data-controls":t.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(s),style:{position:"absolute",top:0,left:y(i),width:`max(${y(r)}, 10px)`,height:"100%",pointerEvents:"auto"}},t.marginLeftKey)}),sn=()=>M.map((t,n)=>{const{maxWidth:r}=zt(t,"two-row-bottom"),s=en(n)-at/2;return c.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:c.jsx("div",{"data-controls":t.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(r),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:y(s),width:y(at),height:"100%",pointerEvents:"auto"}})},`${t.widthKey}-junction`)}),ln=a.useRef(null),b=a.useRef(null),Bt=a.useRef(null),be=a.useRef(null),wt=a.useRef([]),S=a.useRef([]),nt=a.useRef(0),St=a.useRef(null),v=a.useRef({isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1}),ht=a.useRef(null),rt=a.useRef(null),Dt=a.useRef(0),Ht=a.useRef("forward"),D=a.useRef(0),H=a.useRef(null),Y=a.useRef(!1),$=o.length>1&&(!l||!!m),Xt=$?3:1,an=a.useMemo(()=>Array.from({length:Xt},()=>o).flat(),[o,Xt]),[cn,ve]=a.useState(!1),[ye,we]=a.useState(!1),[un,Gt]=a.useState(!0),q=a.useRef(null),ot=a.useRef(null),Vt=a.useRef(!1),Se=a.useRef(!1),Yt=a.useRef(null),U=a.useRef(null),Le=ut&&!un,O=a.useCallback(()=>{ut&&(Gt(!0),U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{v.current.isActive||Gt(!1)},Hn))},[ut]),dt=a.useCallback(()=>{l||Se.current||(Se.current=!0,we(!1),Yt.current=setTimeout(()=>{p()},gt))},[l,p]),$e=()=>c.jsxs("div",{className:`${e}-close-icon`,"data-overlay-content-hidden":Le?"true":"false",style:{width:Rt.scalingValue(G??0,f),height:Rt.scalingValue(G??0,f),marginRight:fe,"--close-icon-hover-color":Q},children:[c.jsx("button",{type:"button",className:`${e}-close-icon-inner`,onClick:dt,"aria-label":"Close",children:c.jsx(kn.SvgImage,{url:L,fill:E,hoverFill:f&&!m?E:Q,className:`${e}-close-icon-img`})}),l&&c.jsx("div",{"data-controls":"iconMarginLeft","data-controls-axis":"x","data-controls-reverse":"",className:`${e}-control`,style:{position:"absolute",top:0,left:"100%",width:fe,height:"100%",pointerEvents:"auto"}})]}),Te=(t="two-row")=>c.jsx("div",{...t==="two-row"&&l?{"data-controls":"title1MarginLeft","data-controls-axis":"x"}:{},style:{width:y(W??0),flexShrink:0,...t==="single-row"?{gridArea:"margin"}:{alignSelf:"stretch"},...t==="two-row"&&l?{pointerEvents:"auto"}:{}}}),fn=()=>{const t=x.find(i=>i.prefix==="title1"),n=x.filter(i=>i.prefix==="title2"||i.prefix==="title3"),r=n.length>0||l||(le??0)>0;return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`${e}-header-row-top`,children:[(W??0)>0||l?Te():null,t&&Kt(t,"two-row-top"),L&&$e()]}),r?c.jsxs("div",{className:`${e}-header-row-bottom-wrap`,children:[n.length>0?c.jsxs("div",{className:`${e}-header-row-bottom`,children:[n.map(i=>Kt(i,"two-row-bottom")),l&&c.jsxs(c.Fragment,{children:[on(),sn()]})]}):null,c.jsx("div",{"data-controls":l?"titleRowMarginBottom":void 0,"data-controls-axis":l?"y":void 0,"data-controls-reverse":l?"":void 0,className:l?`${e}-control`:void 0,style:{height:Qe,width:"100%",flexShrink:0,pointerEvents:l?"auto":"none"}})]}):null]})},hn=()=>c.jsxs(c.Fragment,{children:[(W??0)>0||l?Te("single-row"):null,x.map(t=>Kt(t,"single-row")),l?c.jsxs(c.Fragment,{children:[nn(),rn()]}):null,L?$e():null]}),qt=a.useCallback(t=>!!(t.closest("[data-controls]")||t.closest(`.${e}-thumbnails`)||t.closest(`.${e}-close-icon`)),[e]),{isSwipeDragging:dn,backdropStyle:mn,mediaAreaStyle:pn,overlayContentStyle:gn,swipeHandlers:xn,dismissAreaStyle:bn}=J.useLightboxSwipeDismiss({enabled:V??!1,onClose:dt,animMs:gt,isBlockedTarget:qt}),Ut=()=>{if(!$||o.length===0)return nt.current=0,0;const t=S.current[0],n=S.current[o.length];if(!t||!n)return nt.current;const r=n.offsetLeft-t.offsetLeft;return r>0&&(nt.current=r),nt.current},Z=(t=!1)=>{if(!$)return;const n=b.current,r=Ut();!n||r<=0||r<n.clientWidth*.25||(n.scrollLeft<=0?(n.scrollLeft+=r,t&&(v.current.scrollLeft+=r),Y.current&&(D.current+=r)):n.scrollLeft>=r*2&&(n.scrollLeft-=r,t&&(v.current.scrollLeft-=r),Y.current&&(D.current-=r)))},Re=(t,n=(r=>(r=b.current)==null?void 0:r.scrollLeft)()??0)=>{if(!$)return t;let i=o.length+t,s=1/0;for(let h=0;h<Xt;h++){const d=h*o.length+t,g=S.current[d];if(!g)continue;const T=Math.abs(g.offsetLeft-n);T<s&&(s=T,i=d)}return i},Ie=t=>{const n=b.current;return!t||!n?!1:t.offsetWidth>n.clientWidth+1},Zt=t=>{const n=b.current;if(!t||!n||!Ie(t))return!1;const r=t.offsetLeft,i=r+t.offsetWidth;return n.scrollLeft>=r-1&&n.scrollLeft+n.clientWidth<=i+1},it=(t=(n=>(n=b.current)==null?void 0:n.scrollLeft)()??0)=>{for(let i=0;i<S.current.length;i+=1){const s=S.current[i];if(s&&Zt(s))return i}let r={flatIndex:0,distance:1/0};return S.current.forEach((i,s)=>{if(!i)return;const h=Math.abs(i.offsetLeft-t);h<r.distance&&(r={flatIndex:s,distance:h})}),r.flatIndex},We=t=>{b.current&&S.current.forEach(n=>{n&&(n.style.scrollSnapAlign=Ie(n)&&t==="backward"?"end":"start")})},vn=(t,n,r)=>{const i=t-n,s=it(n),h=S.current[s];if(Zt(h))return it(t)%o.length;const d=S.current[s+1],g=h?d?d.offsetLeft-h.offsetLeft:h.offsetWidth:0,T=g>0?i>g*It?1:i<-g*It?-1:0:0;return T===0?r:$?(r+T+o.length)%o.length:Math.max(0,Math.min(o.length-1,r+T))},Ae=a.useCallback((t=!1)=>{if(Ct!=="on"||l)return;const n=be.current,r=A.current,i=wt.current[r];if(!n||!i||n.scrollWidth<=n.clientWidth)return;const s=n.scrollLeft,h=s+n.clientWidth,d=i.offsetLeft,g=d+i.offsetWidth;if(d>=s&&g<=h)return;const T=n.scrollWidth-n.clientWidth;let R=s;if(!t&&q.current===null){const lt=wt.current[r-1],pt=wt.current[r+1],Tt=lt?i.offsetLeft-lt.offsetLeft:pt?pt.offsetLeft-i.offsetLeft:i.offsetWidth;g>h?R+=Tt:d<s&&(R-=Tt)}else g>h?R=g-n.clientWidth:R=d;n.scrollLeft=Math.max(0,Math.min(T,R))},[l,Ct]),Jt=a.useCallback((t=!1)=>{t&&(Vt.current=!0),ot.current===null&&(ot.current=requestAnimationFrame(()=>{ot.current=null;const n=Vt.current;Vt.current=!1,Ae(n)}))},[Ae]),yn=a.useCallback(t=>{if(t===A.current)return;const n=A.current;A.current=t;const r=Math.abs(t-n)>1,i=$&&o.length>1&&(n===o.length-1&&t===0||n===0&&t===o.length-1);_t(t),Jt(r||i)},[o.length,$,Jt]),z=()=>{if(!b.current||o.length===0||q.current!==null||v.current.isActive&&v.current.hasMoved)return;const t=b.current.scrollLeft,n=it(t)%o.length;n!==A.current&&yn(n)},wn=()=>{q.current=null},X=t=>{const n=b.current;n&&(n.style.scrollSnapType=t?"":"none")},mt=()=>{var t;(t=rt.current)==null||t.call(rt),rt.current=null},Lt=()=>{H.current!==null&&(cancelAnimationFrame(H.current),H.current=null),Y.current=!1},Ce=()=>{const t=b.current;if(!t){H.current=null,Y.current=!1;return}const n=D.current-t.scrollLeft;if(Math.abs(n)<.5){t.scrollLeft=D.current,Z(),z(),H.current=null,Y.current=!1;return}t.scrollLeft+=n*Vn,Z(),z(),O(),H.current=requestAnimationFrame(Ce)},je=()=>{const t=Bt.current;t&&(t.style.transition="",t.style.transform="",t.style.willChange="")},Me=(t,n,r,i)=>{je(),t.scrollLeft=n,Dt.current=t.scrollLeft,Z(),r!==void 0?(A.current=r,_t(r)):z(),X(!0),i==null||i()},ke=(t,{behavior:n="smooth",activeIndex:r,onComplete:i}={})=>{const s=b.current,h=Bt.current;if(!s||!h)return;if(Lt(),mt(),X(!1),n==="auto"){Me(s,t,r,i);return}const d=Math.abs(t-s.scrollLeft),g=Nn(d,Kn,Bn,s.clientWidth*.55);rt.current=Fn(s,h,t,{duration:g,easing:Dn,onComplete:()=>{rt.current=null,Me(s,t,r,i)}})},Sn=(t="smooth")=>{const n=b.current;if(!n||o.length===0)return;const r=it()%o.length,i=Re(r,n.scrollLeft),s=S.current[i];s&&ke(s.offsetLeft,{behavior:t,activeIndex:r})},Ln=(t,n="smooth",r,i)=>{const s=b.current;if(!s||o.length===0)return;const h=(i??s.scrollLeft)-t,d=it(t),g=S.current[d];if(Zt(g)){X(!0),z();return}const T=S.current[d+1],R=g?T?T.offsetLeft-g.offsetLeft:g.offsetWidth:0;if((R>0?h>R*It?1:h<-R*It?-1:0:0)!==0){const An=r??d%o.length,Cn=vn(i??s.scrollLeft,t,An);st(Cn,n);return}const pt=i??s.scrollLeft,Tt=it(pt),Ee=S.current[Tt];if(Ee&&Math.abs(Ee.offsetLeft-pt)<1){X(!0),z();return}Sn("auto")},st=(t,n="smooth")=>{const r=b.current;if(!r||o.length===0)return;const i=Re(t,r.scrollLeft),s=S.current[i];s&&(n==="smooth"?q.current=t:q.current=null,A.current=t,_t(t),Jt(!0),ke(s.offsetLeft,{behavior:n,activeIndex:t,onComplete:n==="smooth"?wn:void 0}))},Qt=()=>{ht.current&&(window.removeEventListener("pointerup",ht.current),window.removeEventListener("pointercancel",ht.current),ht.current=null)},$n=(t,n,r,i,s)=>{const h=r-t,d=i-n,g=Math.abs(h),T=Math.abs(d);if(g<qn||g<=T)return!1;const R=h<0?1:-1,lt=$?(s+R+o.length)%o.length:Math.max(0,Math.min(o.length-1,s+R));return lt===s?!1:(st(lt),!0)},$t=t=>{if(!v.current.isActive)return;Qt();const n=b.current;if(!n)return;const{scrollLeft:r,startActiveIndex:i,hasMoved:s}=v.current,h=n.scrollLeft;Z(!0),v.current={isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1},ve(!1),t!==void 0&&n.hasPointerCapture(t)&&n.releasePointerCapture(t),s?Ln(r,"smooth",i,h):(X(!0),z()),O()},Tn=(t,n)=>{const r=St.current;St.current=null,r&&($n(r.startX,r.startY,t,n,r.startActiveIndex),O())},Rn=t=>{if(!ft)return;if(t.pointerType==="touch"){if(Lt(),X(!0),qt(t.target))return;St.current={startX:t.clientX,startY:t.clientY,startActiveIndex:A.current};return}if(t.pointerType!=="mouse"||t.button!==0||qt(t.target))return;const n=b.current;if(!n)return;Lt(),mt(),je(),q.current=null,v.current={isActive:!0,startX:t.clientX,scrollLeft:n.scrollLeft,startActiveIndex:A.current,hasMoved:!1},X(!1),O(),n.setPointerCapture(t.pointerId),Qt();const r=i=>{i.pointerType==="mouse"&&$t(i.pointerId)};ht.current=r,window.addEventListener("pointerup",r),window.addEventListener("pointercancel",r)},In=t=>{if(!ft||t.pointerType!=="mouse")return;const n=b.current;if(!n||!v.current.isActive)return;if(t.buttons===0){$t(t.pointerId);return}const r=t.clientX-v.current.startX;Math.abs(r)>Yn&&(v.current.hasMoved=!0,ve(!0)),v.current.hasMoved&&(t.preventDefault(),n.scrollLeft=v.current.scrollLeft-r,Z(!0),z(),O())},_e=t=>{if(ft){if(t.pointerType==="touch"){t.type==="pointerup"?Tn(t.clientX,t.clientY):St.current=null;return}t.pointerType==="mouse"&&$t(t.pointerId)}},Wn=t=>{!ft||t.pointerType!=="mouse"||$t(t.pointerId)};return _n.useLightboxScrollLock(),a.useEffect(()=>{const t=requestAnimationFrame(()=>we(!0));return()=>{cancelAnimationFrame(t),mt(),Qt(),ot.current!==null&&(cancelAnimationFrame(ot.current),ot.current=null),Yt.current&&clearTimeout(Yt.current),U.current&&clearTimeout(U.current)}},[]),a.useEffect(()=>{if(!ut){Gt(!0);return}O();const t=()=>O();return document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerdown",t,{passive:!0}),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),U.current&&clearTimeout(U.current)}},[ut,O]),a.useEffect(()=>{const t=n=>{n.key==="Escape"&&dt()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[dt]),a.useLayoutEffect(()=>{Ut()},[ct,o.length,$]),a.useLayoutEffect(()=>{l||st(A.current,"auto")},[ct,l]),a.useLayoutEffect(()=>{st(0,"auto")},[o.length,$]),a.useEffect(()=>{const t=b.current;if(!t||l||!V)return;const n=r=>{if(r.preventDefault(),Math.abs(r.deltaY)<=Math.abs(r.deltaX))return;const i=r.deltaMode===1?Gn:r.deltaMode===2?t.clientHeight:1,s=r.deltaY*i*Xn;if(s!==0){if(mt(),Y.current||(Y.current=!0,D.current=t.scrollLeft,q.current=null,X(!1)),D.current+=s,!$){const h=t.scrollWidth-t.clientWidth;D.current=Math.max(0,Math.min(h,D.current))}O(),H.current===null&&(H.current=requestAnimationFrame(Ce))}};return t.addEventListener("wheel",n,{passive:!1}),()=>{t.removeEventListener("wheel",n),Lt()}},[l,V,$]),a.useEffect(()=>{const t=b.current;if(!t)return;const n=()=>{Z(v.current.isActive);const i=t.scrollLeft,s=i-Dt.current;Dt.current=i;const h=nt.current>0?nt.current*.5:1/0;if(s!==0&&Math.abs(s)<h){const d=s>0?"forward":"backward";d!==Ht.current&&(Ht.current=d,We(d))}v.current.isActive&&v.current.hasMoved||z()};t.addEventListener("scroll",n,{passive:!0});const r=new ResizeObserver(()=>{Ut(),Z(v.current.isActive),We(Ht.current),z()});return r.observe(t),()=>{mt(),t.removeEventListener("scroll",n),r.disconnect()}},[o.length,$]),c.jsxs("div",{"data-selection":"none",className:`${e}-lightbox${f?` ${e}-lightbox-editor`:""}${l?` ${e}-lightbox-edit-mode`:""}`,onClick:()=>{dn||dt()},role:"dialog","aria-modal":"true","aria-label":"Image gallery",style:{opacity:ye?1:0,transition:`opacity ${gt}ms ease`,pointerEvents:ye?"auto":"none"},children:[c.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:w,...mn}}),c.jsxs("div",{ref:ln,className:`${e}-lightbox-dismiss-area`,style:bn,...xn,children:[c.jsx("div",{className:`${e}-lightbox-content`,style:pn,onClick:t=>t.stopPropagation(),children:c.jsx("div",{ref:b,className:`${e}-lightbox-strip`,"data-lightbox-scrollable":"","data-mouse-draggable":ft&&o.length>0?"true":"false","data-mouse-dragging":cn?"true":"false",onPointerDown:Rn,onPointerMove:In,onPointerUp:_e,onPointerCancel:_e,onLostPointerCapture:Wn,children:c.jsx("div",{ref:Bt,className:`${e}-lightbox-strip-track`,style:{gap:ct},children:an.map((t,n)=>{const r=t.image.objectFit??"contain",i=n%o.length,s=Math.floor(n/o.length),h=Wt(ct),d=`calc(-0.5 * (${h} + ${ct}))`;return c.jsxs("div",{ref:g=>S.current[n]=g,className:`${e}-strip-item`,style:{height:ae==="mobile"?"calc(0.75 * var(--cntrl-viewport-height, 100vh))":"100%"},children:[c.jsx("img",{src:t.image.assetId,draggable:!1,style:{display:"block",maxWidth:"100%",height:"100%",objectFit:r}}),l&&i<o.length-1&&s===0&&c.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:d,width:h,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${s}-${t.image.assetId}-${i}`)})})})}),c.jsxs("div",{className:`${e}-lightbox-content-inner`,"data-overlay-content-hidden":Le?"true":"false",style:gn,children:[c.jsx("div",{style:{position:"relative",width:"100%",height:ue,flexShrink:0,pointerEvents:"none"},children:l&&c.jsx("div",{"data-controls":"contentMarginTop","data-controls-axis":"y","data-controls-handle-left-fraction":"0.05",style:{position:"absolute",left:0,right:0,top:0,height:qe,pointerEvents:"auto",zIndex:3}})}),c.jsx("div",{style:{display:"flex",flexDirection:"row",width:"100%",flex:1,minHeight:0,pointerEvents:"none"},children:c.jsx("div",{className:`${e}-lightbox-content-area${C?` ${e}-lightbox-content-area-stacked`:""}`,children:(ge||L)&&c.jsx("div",{className:`${e}-header ${C?`${e}-header-two-row`:`${e}-header-single-row`}`,children:C?fn():ge||L?hn():null})})})]}),o.length>1&&Ct==="on"&&(()=>{const t=Wt(kt),n=`calc(-0.5 * (${kt} + ${t}))`;return c.jsx("div",{className:`${e}-thumbnails-wrap`,style:{bottom:kt},children:c.jsx("div",{ref:be,className:`${e}-thumbnails`,"data-lightbox-scrollable":"",onClick:r=>r.stopPropagation(),children:c.jsxs("div",{className:`${e}-thumbnails-track`,"data-thumbnail-active":He,style:{gap:Mt,"--thumbnail-active-color":Xe},children:[o.map((r,i)=>{const s=Wt(Mt),h=`calc(-0.5 * (${s} + ${Mt}))`;return c.jsxs("div",{ref:d=>{wt.current[i]=d},style:{position:"relative",flex:"0 0 auto"},children:[c.jsx("button",{type:"button",className:`${e}-thumb`,"data-active":tt===i?"true":"false",onClick:()=>V&&ne==="click"&&st(i),onMouseEnter:()=>Ze&&ne==="hover"&&st(i),"aria-label":r.image.name?`View ${r.image.name}`:`View image ${i+1}`,"aria-current":tt===i?"true":void 0,children:c.jsx("img",{className:`${e}-thumb-image${pe?` ${e}-thumb-image-cover`:""}`,src:r.image.assetId,alt:"",draggable:!1,style:{...Je,maxWidth:ce,maxHeight:ce,width:xt.display==="cover"?"auto":"100%",height:"auto",objectFit:xt.display==="cover"?"cover":"contain"}})}),l&&i<o.length-1&&c.jsx("div",{"data-controls":"thumbnailGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:h,width:s,height:"100%",pointerEvents:"auto",zIndex:3}})]},`thumb-${r.image.assetId}-${i}`)}),l&&c.jsx("div",{"data-controls":"thumbnailMarginBottom","data-controls-axis":"y","data-controls-reverse":l?"":void 0,style:{position:"absolute",left:0,right:0,bottom:n,height:t,pointerEvents:"auto",zIndex:3}})]})})})})()]})]})};function nr(e){return`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),a=require("react"),jn=require("react-dom"),Mn=require("./useScopedStyles-Bf6yohVQ.js"),J=require("./useLightboxSwipeDismiss-Br9uE5G0.js"),Rt=require("./scalingValue-CSHYgTZl.js"),kn=require("./SvgImage-DFlmxAoL.js"),_n=require("./useLightboxScrollLock-Hf16Eq4g.js"),En=require("./textStylesToCss-CNN3zZTV.js"),Nn=(e,o,u,f)=>{const l=Math.min(Math.abs(e)/Math.max(f,1),1);return o+(u-o)*l},On=e=>{e.style.transition="",e.style.transform="",e.style.willChange=""},zn=e=>{const o=getComputedStyle(e).transform;return o==="none"?0:new DOMMatrixReadOnly(o).m41},Fn=(e,o,u,{duration:f,easing:l,onComplete:m})=>{const p=e.scrollLeft,w=u-p,I=p-u,F=(E,Q)=>{On(o),e.scrollLeft=E,Q&&(m==null||m())};if(Math.abs(w)<.5)return F(u,!0),()=>{};let j=!1,K=0;const L=()=>{o.removeEventListener("transitionend",G),clearTimeout(K)},G=E=>{E.target!==o||E.propertyName!=="transform"||j||(j=!0,L(),F(u,!0))};return o.addEventListener("transitionend",G),o.style.willChange="transform",o.style.transition="none",o.style.transform="translate3d(0, 0, 0)",o.offsetHeight,o.style.transition=`transform ${f}ms ${l}`,o.style.transform=`translate3d(${I}px, 0, 0)`,K=window.setTimeout(()=>{j||(j=!0,L(),F(u,!0))},f+64),()=>{j||(j=!0,L(),F(p-zn(o),!1))}},gt=300,Kn=900,Bn=1500,Dn="cubic-bezier(0.16, 1, 0.3, 1)",Hn=3e3,Xn=2,Gn=16,Vn=.05,Yn=1,It=.3,qn=50,Un=20,at=.004,Oe=["title1","title2","title3"],ze={title1:"1",title2:"2",title3:"3"},Zn={title1:"title1Color",title2:"title2Color",title3:"title3Color"},Jn={title1:.02,title2:.02,title3:.02},Wt=e=>`max(${e}, ${Un}px)`,Fe=e=>{if(!Array.isArray(e)||e.length===0)return{};const o=e.find(l=>(l==null?void 0:l.type)==="paragraph")??e[0],u=o==null?void 0:o.children;if(!Array.isArray(u))return{};const f=u.map(l=>typeof(l==null?void 0:l.text)=="string"?l.text.trim():"").filter(Boolean);return{title1:f[0],title2:f[1],title3:f[2]}},Ke=e=>{if(!e)return{title1:"",title2:"",title3:""};if(e.title1||e.title2||e.title3)return{title1:e.title1??"",title2:e.title2??"",title3:e.title3??""};const o=Fe(e.text);return{title1:o.title1??"",title2:o.title2??"",title3:o.title3??""}},_=(e,o)=>`${e}${o.charAt(0).toUpperCase()}${o.slice(1)}`,Be=e=>[_(e,"fontFamily"),_(e,"fontSettings"),{type:"row",items:[_(e,"fontSize"),_(e,"lineHeight"),_(e,"letterSpacing"),_(e,"wordSpacing")]},_(e,"textAlign"),_(e,"textAppearance")],Qn=()=>({type:"tab",id:"stripTextStyle",tabs:Object.fromEntries(Oe.map(e=>[ze[e],Be(e)]))}),ee=(e,o)=>{if(e<=0)return[];const u=o.slice(0,e),f=u.reduce((m,p)=>m+p,0);if(f<=1)return u;const{widths:l}=[...u].reverse().reduce(({overflow:m,widths:p},w)=>{if(m<=0||w<=0)return{overflow:m,widths:[w,...p]};const I=Math.min(m,w);return{overflow:m-I,widths:[w-I,...p]}},{overflow:f-1,widths:[]});return l},De=(e,o)=>ee(e,o),At=(e,o)=>{const u=o.filter((f,l)=>l!==e).reduce((f,l)=>f+l,0);return Math.max(1-u,0)},Ne=(e,o)=>{const u=e.map(f=>o[f.widthKey]??0);return{resolved:ee(e.length,u),effective:De(e.length,u)}},Pn=(e,o,u,f,l,m,p)=>{const w=[];return o&&w.push({prefix:"title1",widthKey:"title1Width",className:`${e}-title1`,style:l,text:o}),u&&w.push({prefix:"title2",widthKey:"title2Width",marginLeftKey:"title2MarginLeft",className:`${e}-title2`,style:m,text:u}),f&&w.push({prefix:"title3",widthKey:"title3Width",marginLeftKey:"title3MarginLeft",className:`${e}-title3`,style:p,text:f}),w},Pt=(e,o)=>{const u=f=>{const l=_(o,f);return e[l]};return{fontFamily:u("fontFamily")??"Arial",fontSettings:u("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:u("fontSize"),lineHeight:u("lineHeight"),letterSpacing:u("letterSpacing")??0,wordSpacing:u("wordSpacing")??0,textAlign:u("textAlign")??"left",textAppearance:u("textAppearance"),color:e[Zn[o]]}},tr=(e,o,u,f)=>e.slice(0,f).reduce((l,m,p)=>l+(m!=null&&m.marginLeftKey?u[m.marginLeftKey]??0:0)+(o[p]??0),0),te=(e,o,u)=>{var l,m;const f={fontSettings:{fontFamily:o.fontFamily,fontWeight:((l=o.fontSettings)==null?void 0:l.fontWeight)??400,fontStyle:((m=o.fontSettings)==null?void 0:m.fontStyle)??"normal"},fontSize:o.fontSize??Jn[e],lineHeight:o.lineHeight,letterSpacing:o.letterSpacing,wordSpacing:o.wordSpacing,textAlign:o.textAlign,textAppearance:o.textAppearance,color:o.color??"#ffffff"};return En.textStylesToCss(f,u)},er=({prefix:e,images:o,settings:u,isEditor:f,isEditMode:l,isPreviewMode:m,onClose:p})=>{const{backgroundColor:w,thumbnailSize:I,thumbnailGap:F,thumbnailMarginBottom:j,imageGap:K,closeIcon:L,closeIconMaxWidth:G,closeIconColor:E,closeIconHoverColor:Q,thumbnailTrigger:ne,thumbnailVisibility:Ct,thumbnailObjectFit:xt,thumbnailActive:He,thumbnailActiveColor:Xe,title1Width:jt,title2Width:re,title3Width:oe,title1MarginLeft:W=0,title2MarginLeft:ie=0,title3MarginLeft:se=0,titleRowMarginBottom:le=0,titleHeaderLayout:ae="desktop",contentMarginTop:Ge,iconMarginLeft:Ve}=u,P=t=>Rt.scalingValue(t,f??!1),Ye=I??u.thumnailSize??.03,ce=P(Ye),Mt=P(F),kt=P(j??.02),ct=P(K??0),ue=P(Ge??0),qe=Wt(ue),fe=P(Ve??0),[tt,_t]=a.useState(0),A=a.useRef(tt);A.current=tt;const Ue=o[tt],{title1:Et,title2:Nt,title3:Ot}=Ke(Ue),he=te("title1",Pt(u,"title1"),f),de=te("title2",Pt(u,"title2"),f),me=te("title3",Pt(u,"title3"),f),C=ae==="mobile",V=!l&&(!f||m),ut=V,ft=V,Ze=V,pe=J.isImageRatioCover(xt),Je=pe?{"--image-aspect-ratio":J.getAspectRatio(xt)}:void 0,ge=!!(Et||Nt||Ot),x=a.useMemo(()=>Pn(e,Et,Nt,Ot,he,de,me),[e,tt,Et,Nt,Ot,he,de,me]),et=a.useMemo(()=>({title1Width:jt,title2Width:re,title3Width:oe}),[jt,re,oe]),bt=a.useMemo(()=>x.map(t=>et[t.widthKey]),[x,et]),N=a.useMemo(()=>ee(x.length,bt),[x.length,bt]),xe=a.useMemo(()=>De(x.length,bt),[x.length,bt]),vt=a.useMemo(()=>x.filter(t=>t.prefix==="title1"),[x]),M=a.useMemo(()=>x.filter(t=>t.prefix==="title2"||t.prefix==="title3"),[x]),yt=a.useMemo(()=>Ne(vt,et),[vt,et]),B=a.useMemo(()=>Ne(M,et),[M,et]),zt=a.useCallback((t,n)=>{const r=x.indexOf(t);if(!C||n==="single-row")return{effectiveWidth:xe[r]??0,resolvedWidth:N[r]??0,maxWidth:At(r,N)};if(n==="two-row-top"){const s=vt.indexOf(t);return{effectiveWidth:yt.effective[s]??0,resolvedWidth:yt.resolved[s]??0,maxWidth:At(s,yt.resolved)}}const i=M.indexOf(t);return{effectiveWidth:B.effective[i]??0,resolvedWidth:B.resolved[i]??0,maxWidth:At(i,B.resolved)}},[M,B,xe,N,x,vt,yt,C]),y=a.useCallback(t=>Rt.scalingValue(t,f??!1),[f]),Qe=y(le??0),k=a.useMemo(()=>({title1MarginLeft:W,title2MarginLeft:ie,title3MarginLeft:se}),[W,ie,se]),Pe=a.useCallback(t=>x.slice(0,t+1).reduce((n,r,i)=>n+(r!=null&&r.marginLeftKey?k[r.marginLeftKey]??0:0)+(N[i]??0),0)+(C?0:W??0),[x,k,N,C,W]),tn=a.useCallback(()=>C?0:W??0,[C,W]),Ft=a.useCallback(t=>M.slice(0,t).reduce((n,r,i)=>n+(r.marginLeftKey?k[r.marginLeftKey]??0:0)+(B.resolved[i]??0),0),[M,B.resolved,k]),en=a.useCallback(t=>{const n=M[t];return Ft(t)+(n.marginLeftKey?k[n.marginLeftKey]??0:0)+(B.resolved[t]??0)},[M,B.resolved,Ft,k]),Kt=(t,n)=>{const r=t.marginLeftKey?k[t.marginLeftKey]??0:0,{effectiveWidth:i,resolvedWidth:s,maxWidth:h}=zt(t,n),d=l&&n==="two-row-top";return c.jsxs("div",{className:`${e}-title-cell`,"data-title":t.prefix,style:{...n==="single-row"?{gridArea:t.prefix}:{},width:y(i),...r>0?{marginLeft:y(r)}:{}},children:[c.jsx("p",{className:t.className,style:t.style,children:t.text}),d&&t.marginLeftKey&&c.jsx("div",{"data-controls":t.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(s),style:{position:"absolute",top:0,left:y(-r),width:`max(${y(r)}, 10px)`,height:"100%",pointerEvents:"auto"}}),d&&c.jsx("div",{"data-controls":t.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(h),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,right:y(-at/2),width:y(at),height:"100%",pointerEvents:"auto"}})]},t.className)},nn=()=>{const t=C?-1:x.findIndex(i=>i.prefix==="title1"),n=!C&&(l||(W??0)>0)?(()=>{const i=W??0,s=t>=0?N[t]:jt??0;return c.jsx("div",{"data-controls":"title1MarginLeft","data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(s),style:{position:"absolute",top:0,left:0,width:`max(${y(i)}, 10px)`,height:"100%",pointerEvents:"auto"}},"title1MarginLeft")})():null,r=x.flatMap((i,s)=>{if(!i.marginLeftKey)return[];const h=k[i.marginLeftKey]??0,d=tr(x,N,k,s)+tn();return c.jsx("div",{"data-controls":i.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(N[s]),style:{position:"absolute",top:0,left:y(d),width:`max(${y(h)}, 10px)`,height:"100%",pointerEvents:"auto"}},i.marginLeftKey)});return n?[n,...r]:r},rn=()=>x.map((t,n)=>{const r=At(n,N),s=Pe(n)-at/2;return c.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:c.jsx("div",{"data-controls":t.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(r),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:y(s),width:y(at),height:"100%",pointerEvents:"auto"}})},`${t.widthKey}-junction`)}),on=()=>M.flatMap((t,n)=>{if(!t.marginLeftKey)return[];const r=k[t.marginLeftKey]??0,i=Ft(n),{resolvedWidth:s}=zt(t,"two-row-bottom");return c.jsx("div",{"data-controls":t.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(s),style:{position:"absolute",top:0,left:y(i),width:`max(${y(r)}, 10px)`,height:"100%",pointerEvents:"auto"}},t.marginLeftKey)}),sn=()=>M.map((t,n)=>{const{maxWidth:r}=zt(t,"two-row-bottom"),s=en(n)-at/2;return c.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:c.jsx("div",{"data-controls":t.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(r),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:y(s),width:y(at),height:"100%",pointerEvents:"auto"}})},`${t.widthKey}-junction`)}),ln=a.useRef(null),b=a.useRef(null),Bt=a.useRef(null),be=a.useRef(null),wt=a.useRef([]),S=a.useRef([]),nt=a.useRef(0),St=a.useRef(null),v=a.useRef({isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1}),ht=a.useRef(null),rt=a.useRef(null),Dt=a.useRef(0),Ht=a.useRef("forward"),D=a.useRef(0),H=a.useRef(null),Y=a.useRef(!1),$=o.length>1&&(!l||!!m),Xt=$?3:1,an=a.useMemo(()=>Array.from({length:Xt},()=>o).flat(),[o,Xt]),[cn,ve]=a.useState(!1),[ye,we]=a.useState(!1),[un,Gt]=a.useState(!0),q=a.useRef(null),ot=a.useRef(null),Vt=a.useRef(!1),Se=a.useRef(!1),Yt=a.useRef(null),U=a.useRef(null),Le=ut&&!un,O=a.useCallback(()=>{ut&&(Gt(!0),U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{v.current.isActive||Gt(!1)},Hn))},[ut]),dt=a.useCallback(()=>{l||Se.current||(Se.current=!0,we(!1),Yt.current=setTimeout(()=>{p()},gt))},[l,p]),$e=()=>c.jsxs("div",{className:`${e}-close-icon`,"data-overlay-content-hidden":Le?"true":"false",style:{width:Rt.scalingValue(G??0,f),height:Rt.scalingValue(G??0,f),marginRight:fe,"--close-icon-hover-color":Q},children:[c.jsx("button",{type:"button",className:`${e}-close-icon-inner`,onClick:dt,"aria-label":"Close",children:c.jsx(kn.SvgImage,{url:L,fill:E,hoverFill:f&&!m?E:Q,className:`${e}-close-icon-img`})}),l&&c.jsx("div",{"data-controls":"iconMarginLeft","data-controls-axis":"x","data-controls-reverse":"",className:`${e}-control`,style:{position:"absolute",top:0,left:"100%",width:fe,height:"100%",pointerEvents:"auto"}})]}),Te=(t="two-row")=>c.jsx("div",{...t==="two-row"&&l?{"data-controls":"title1MarginLeft","data-controls-axis":"x"}:{},style:{width:y(W??0),flexShrink:0,...t==="single-row"?{gridArea:"margin"}:{alignSelf:"stretch"},...t==="two-row"&&l?{pointerEvents:"auto"}:{}}}),fn=()=>{const t=x.find(i=>i.prefix==="title1"),n=x.filter(i=>i.prefix==="title2"||i.prefix==="title3"),r=n.length>0||l||(le??0)>0;return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`${e}-header-row-top`,children:[(W??0)>0||l?Te():null,t&&Kt(t,"two-row-top"),L&&$e()]}),r?c.jsxs("div",{className:`${e}-header-row-bottom-wrap`,children:[n.length>0?c.jsxs("div",{className:`${e}-header-row-bottom`,children:[n.map(i=>Kt(i,"two-row-bottom")),l&&c.jsxs(c.Fragment,{children:[on(),sn()]})]}):null,c.jsx("div",{"data-controls":l?"titleRowMarginBottom":void 0,"data-controls-axis":l?"y":void 0,"data-controls-reverse":l?"":void 0,className:l?`${e}-control`:void 0,style:{height:Qe,width:"100%",flexShrink:0,pointerEvents:l?"auto":"none"}})]}):null]})},hn=()=>c.jsxs(c.Fragment,{children:[(W??0)>0||l?Te("single-row"):null,x.map(t=>Kt(t,"single-row")),l?c.jsxs(c.Fragment,{children:[nn(),rn()]}):null,L?$e():null]}),qt=a.useCallback(t=>!!(t.closest("[data-controls]")||t.closest(`.${e}-thumbnails`)||t.closest(`.${e}-close-icon`)),[e]),{isSwipeDragging:dn,backdropStyle:mn,mediaAreaStyle:pn,overlayContentStyle:gn,swipeHandlers:xn,dismissAreaStyle:bn}=J.useLightboxSwipeDismiss({enabled:V??!1,onClose:dt,animMs:gt,isBlockedTarget:qt}),Ut=()=>{if(!$||o.length===0)return nt.current=0,0;const t=S.current[0],n=S.current[o.length];if(!t||!n)return nt.current;const r=n.offsetLeft-t.offsetLeft;return r>0&&(nt.current=r),nt.current},Z=(t=!1)=>{if(!$)return;const n=b.current,r=Ut();!n||r<=0||r<n.clientWidth*.25||(n.scrollLeft<=0?(n.scrollLeft+=r,t&&(v.current.scrollLeft+=r),Y.current&&(D.current+=r)):n.scrollLeft>=r*2&&(n.scrollLeft-=r,t&&(v.current.scrollLeft-=r),Y.current&&(D.current-=r)))},Re=(t,n=(r=>(r=b.current)==null?void 0:r.scrollLeft)()??0)=>{if(!$)return t;let i=o.length+t,s=1/0;for(let h=0;h<Xt;h++){const d=h*o.length+t,g=S.current[d];if(!g)continue;const T=Math.abs(g.offsetLeft-n);T<s&&(s=T,i=d)}return i},Ie=t=>{const n=b.current;return!t||!n?!1:t.offsetWidth>n.clientWidth+1},Zt=t=>{const n=b.current;if(!t||!n||!Ie(t))return!1;const r=t.offsetLeft,i=r+t.offsetWidth;return n.scrollLeft>=r-1&&n.scrollLeft+n.clientWidth<=i+1},it=(t=(n=>(n=b.current)==null?void 0:n.scrollLeft)()??0)=>{for(let i=0;i<S.current.length;i+=1){const s=S.current[i];if(s&&Zt(s))return i}let r={flatIndex:0,distance:1/0};return S.current.forEach((i,s)=>{if(!i)return;const h=Math.abs(i.offsetLeft-t);h<r.distance&&(r={flatIndex:s,distance:h})}),r.flatIndex},We=t=>{b.current&&S.current.forEach(n=>{n&&(n.style.scrollSnapAlign=Ie(n)&&t==="backward"?"end":"start")})},vn=(t,n,r)=>{const i=t-n,s=it(n),h=S.current[s];if(Zt(h))return it(t)%o.length;const d=S.current[s+1],g=h?d?d.offsetLeft-h.offsetLeft:h.offsetWidth:0,T=g>0?i>g*It?1:i<-g*It?-1:0:0;return T===0?r:$?(r+T+o.length)%o.length:Math.max(0,Math.min(o.length-1,r+T))},Ae=a.useCallback((t=!1)=>{if(Ct!=="on"||l)return;const n=be.current,r=A.current,i=wt.current[r];if(!n||!i||n.scrollWidth<=n.clientWidth)return;const s=n.scrollLeft,h=s+n.clientWidth,d=i.offsetLeft,g=d+i.offsetWidth;if(d>=s&&g<=h)return;const T=n.scrollWidth-n.clientWidth;let R=s;if(!t&&q.current===null){const lt=wt.current[r-1],pt=wt.current[r+1],Tt=lt?i.offsetLeft-lt.offsetLeft:pt?pt.offsetLeft-i.offsetLeft:i.offsetWidth;g>h?R+=Tt:d<s&&(R-=Tt)}else g>h?R=g-n.clientWidth:R=d;n.scrollLeft=Math.max(0,Math.min(T,R))},[l,Ct]),Jt=a.useCallback((t=!1)=>{t&&(Vt.current=!0),ot.current===null&&(ot.current=requestAnimationFrame(()=>{ot.current=null;const n=Vt.current;Vt.current=!1,Ae(n)}))},[Ae]),yn=a.useCallback(t=>{if(t===A.current)return;const n=A.current;A.current=t;const r=Math.abs(t-n)>1,i=$&&o.length>1&&(n===o.length-1&&t===0||n===0&&t===o.length-1);_t(t),Jt(r||i)},[o.length,$,Jt]),z=()=>{if(!b.current||o.length===0||q.current!==null||v.current.isActive&&v.current.hasMoved)return;const t=b.current.scrollLeft,n=it(t)%o.length;n!==A.current&&yn(n)},wn=()=>{q.current=null},X=t=>{const n=b.current;n&&(n.style.scrollSnapType=t?"":"none")},mt=()=>{var t;(t=rt.current)==null||t.call(rt),rt.current=null},Lt=()=>{H.current!==null&&(cancelAnimationFrame(H.current),H.current=null),Y.current=!1},Ce=()=>{const t=b.current;if(!t){H.current=null,Y.current=!1;return}const n=D.current-t.scrollLeft;if(Math.abs(n)<.5){t.scrollLeft=D.current,Z(),z(),H.current=null,Y.current=!1;return}t.scrollLeft+=n*Vn,Z(),z(),O(),H.current=requestAnimationFrame(Ce)},je=()=>{const t=Bt.current;t&&(t.style.transition="",t.style.transform="",t.style.willChange="")},Me=(t,n,r,i)=>{je(),t.scrollLeft=n,Dt.current=t.scrollLeft,Z(),r!==void 0?(A.current=r,_t(r)):z(),X(!0),i==null||i()},ke=(t,{behavior:n="smooth",activeIndex:r,onComplete:i}={})=>{const s=b.current,h=Bt.current;if(!s||!h)return;if(Lt(),mt(),X(!1),n==="auto"){Me(s,t,r,i);return}const d=Math.abs(t-s.scrollLeft),g=Nn(d,Kn,Bn,s.clientWidth*.55);rt.current=Fn(s,h,t,{duration:g,easing:Dn,onComplete:()=>{rt.current=null,Me(s,t,r,i)}})},Sn=(t="smooth")=>{const n=b.current;if(!n||o.length===0)return;const r=it()%o.length,i=Re(r,n.scrollLeft),s=S.current[i];s&&ke(s.offsetLeft,{behavior:t,activeIndex:r})},Ln=(t,n="smooth",r,i)=>{const s=b.current;if(!s||o.length===0)return;const h=(i??s.scrollLeft)-t,d=it(t),g=S.current[d];if(Zt(g)){X(!0),z();return}const T=S.current[d+1],R=g?T?T.offsetLeft-g.offsetLeft:g.offsetWidth:0;if((R>0?h>R*It?1:h<-R*It?-1:0:0)!==0){const An=r??d%o.length,Cn=vn(i??s.scrollLeft,t,An);st(Cn,n);return}const pt=i??s.scrollLeft,Tt=it(pt),Ee=S.current[Tt];if(Ee&&Math.abs(Ee.offsetLeft-pt)<1){X(!0),z();return}Sn("auto")},st=(t,n="smooth")=>{const r=b.current;if(!r||o.length===0)return;const i=Re(t,r.scrollLeft),s=S.current[i];s&&(n==="smooth"?q.current=t:q.current=null,A.current=t,_t(t),Jt(!0),ke(s.offsetLeft,{behavior:n,activeIndex:t,onComplete:n==="smooth"?wn:void 0}))},Qt=()=>{ht.current&&(window.removeEventListener("pointerup",ht.current),window.removeEventListener("pointercancel",ht.current),ht.current=null)},$n=(t,n,r,i,s)=>{const h=r-t,d=i-n,g=Math.abs(h),T=Math.abs(d);if(g<qn||g<=T)return!1;const R=h<0?1:-1,lt=$?(s+R+o.length)%o.length:Math.max(0,Math.min(o.length-1,s+R));return lt===s?!1:(st(lt),!0)},$t=t=>{if(!v.current.isActive)return;Qt();const n=b.current;if(!n)return;const{scrollLeft:r,startActiveIndex:i,hasMoved:s}=v.current,h=n.scrollLeft;Z(!0),v.current={isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1},ve(!1),t!==void 0&&n.hasPointerCapture(t)&&n.releasePointerCapture(t),s?Ln(r,"smooth",i,h):(X(!0),z()),O()},Tn=(t,n)=>{const r=St.current;St.current=null,r&&($n(r.startX,r.startY,t,n,r.startActiveIndex),O())},Rn=t=>{if(!ft)return;if(t.pointerType==="touch"){if(Lt(),X(!0),qt(t.target))return;St.current={startX:t.clientX,startY:t.clientY,startActiveIndex:A.current};return}if(t.pointerType!=="mouse"||t.button!==0||qt(t.target))return;const n=b.current;if(!n)return;Lt(),mt(),je(),q.current=null,v.current={isActive:!0,startX:t.clientX,scrollLeft:n.scrollLeft,startActiveIndex:A.current,hasMoved:!1},X(!1),O(),n.setPointerCapture(t.pointerId),Qt();const r=i=>{i.pointerType==="mouse"&&$t(i.pointerId)};ht.current=r,window.addEventListener("pointerup",r),window.addEventListener("pointercancel",r)},In=t=>{if(!ft||t.pointerType!=="mouse")return;const n=b.current;if(!n||!v.current.isActive)return;if(t.buttons===0){$t(t.pointerId);return}const r=t.clientX-v.current.startX;Math.abs(r)>Yn&&(v.current.hasMoved=!0,ve(!0)),v.current.hasMoved&&(t.preventDefault(),n.scrollLeft=v.current.scrollLeft-r,Z(!0),z(),O())},_e=t=>{if(ft){if(t.pointerType==="touch"){t.type==="pointerup"?Tn(t.clientX,t.clientY):St.current=null;return}t.pointerType==="mouse"&&$t(t.pointerId)}},Wn=t=>{!ft||t.pointerType!=="mouse"||$t(t.pointerId)};return _n.useLightboxScrollLock(),a.useEffect(()=>{const t=requestAnimationFrame(()=>we(!0));return()=>{cancelAnimationFrame(t),mt(),Qt(),ot.current!==null&&(cancelAnimationFrame(ot.current),ot.current=null),Yt.current&&clearTimeout(Yt.current),U.current&&clearTimeout(U.current)}},[]),a.useEffect(()=>{if(!ut){Gt(!0);return}O();const t=()=>O();return document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerdown",t,{passive:!0}),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),U.current&&clearTimeout(U.current)}},[ut,O]),a.useEffect(()=>{const t=n=>{n.key==="Escape"&&dt()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[dt]),a.useLayoutEffect(()=>{Ut()},[ct,o.length,$]),a.useLayoutEffect(()=>{l||st(A.current,"auto")},[ct,l]),a.useLayoutEffect(()=>{st(0,"auto")},[o.length,$]),a.useEffect(()=>{const t=b.current;if(!t||l||!V)return;const n=r=>{if(r.preventDefault(),Math.abs(r.deltaY)<=Math.abs(r.deltaX))return;const i=r.deltaMode===1?Gn:r.deltaMode===2?t.clientHeight:1,s=r.deltaY*i*Xn;if(s!==0){if(mt(),Y.current||(Y.current=!0,D.current=t.scrollLeft,q.current=null,X(!1)),D.current+=s,!$){const h=t.scrollWidth-t.clientWidth;D.current=Math.max(0,Math.min(h,D.current))}O(),H.current===null&&(H.current=requestAnimationFrame(Ce))}};return t.addEventListener("wheel",n,{passive:!1}),()=>{t.removeEventListener("wheel",n),Lt()}},[l,V,$]),a.useEffect(()=>{const t=b.current;if(!t)return;const n=()=>{Z(v.current.isActive);const i=t.scrollLeft,s=i-Dt.current;Dt.current=i;const h=nt.current>0?nt.current*.5:1/0;if(s!==0&&Math.abs(s)<h){const d=s>0?"forward":"backward";d!==Ht.current&&(Ht.current=d,We(d))}v.current.isActive&&v.current.hasMoved||z()};t.addEventListener("scroll",n,{passive:!0});const r=new ResizeObserver(()=>{Ut(),Z(v.current.isActive),We(Ht.current),z()});return r.observe(t),()=>{mt(),t.removeEventListener("scroll",n),r.disconnect()}},[o.length,$]),c.jsxs("div",{"data-selection":"none",className:`${e}-lightbox${f?` ${e}-lightbox-editor`:""}${l?` ${e}-lightbox-edit-mode`:""}`,onClick:()=>{dn||dt()},role:"dialog","aria-modal":"true","aria-label":"Image gallery",style:{opacity:ye?1:0,transition:`opacity ${gt}ms ease`,pointerEvents:ye?"auto":"none"},children:[c.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:w,...mn}}),c.jsxs("div",{ref:ln,className:`${e}-lightbox-dismiss-area`,style:bn,...xn,children:[c.jsx("div",{className:`${e}-lightbox-content`,style:pn,onClick:t=>t.stopPropagation(),children:c.jsx("div",{ref:b,className:`${e}-lightbox-strip`,"data-lightbox-scrollable":"","data-mouse-draggable":ft&&o.length>0?"true":"false","data-mouse-dragging":cn?"true":"false",onPointerDown:Rn,onPointerMove:In,onPointerUp:_e,onPointerCancel:_e,onLostPointerCapture:Wn,children:c.jsx("div",{ref:Bt,className:`${e}-lightbox-strip-track`,style:{gap:ct},children:an.map((t,n)=>{const r=t.image.objectFit??"contain",i=n%o.length,s=Math.floor(n/o.length),h=Wt(ct),d=`calc(-0.5 * (${h} + ${ct}))`;return c.jsxs("div",{ref:g=>S.current[n]=g,className:`${e}-strip-item`,style:{height:ae==="mobile"?"calc(0.75 * var(--cntrl-viewport-height, 100vh))":"100%"},children:[c.jsx("img",{src:t.image.assetId,draggable:!1,style:{display:"block",maxWidth:"100%",height:"100%",objectFit:r}}),l&&i<o.length-1&&s===0&&c.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:d,width:h,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${s}-${t.image.assetId}-${i}`)})})})}),c.jsxs("div",{className:`${e}-lightbox-content-inner`,"data-overlay-content-hidden":Le?"true":"false",style:gn,children:[c.jsx("div",{style:{position:"relative",width:"100%",height:ue,flexShrink:0,pointerEvents:"none"},children:l&&c.jsx("div",{"data-controls":"contentMarginTop","data-controls-axis":"y","data-controls-handle-left-fraction":"0.05",style:{position:"absolute",left:0,right:0,top:0,height:qe,pointerEvents:"auto",zIndex:3}})}),c.jsx("div",{style:{display:"flex",flexDirection:"row",width:"100%",flex:1,minHeight:0,pointerEvents:"none"},children:c.jsx("div",{className:`${e}-lightbox-content-area${C?` ${e}-lightbox-content-area-stacked`:""}`,children:(ge||L)&&c.jsx("div",{className:`${e}-header ${C?`${e}-header-two-row`:`${e}-header-single-row`}`,children:C?fn():ge||L?hn():null})})})]}),o.length>1&&Ct==="on"&&(()=>{const t=Wt(kt),n=`calc(-0.5 * (${kt} + ${t}))`;return c.jsx("div",{className:`${e}-thumbnails-wrap`,style:{bottom:kt},children:c.jsx("div",{ref:be,className:`${e}-thumbnails`,"data-lightbox-scrollable":"",onClick:r=>r.stopPropagation(),children:c.jsxs("div",{className:`${e}-thumbnails-track`,"data-thumbnail-active":He,style:{gap:Mt,"--thumbnail-active-color":Xe},children:[o.map((r,i)=>{const s=Wt(Mt),h=`calc(-0.5 * (${s} + ${Mt}))`;return c.jsxs("div",{ref:d=>{wt.current[i]=d},style:{position:"relative",flex:"0 0 auto"},children:[c.jsx("button",{type:"button",className:`${e}-thumb`,"data-active":tt===i?"true":"false",onClick:()=>V&&ne==="click"&&st(i),onMouseEnter:()=>Ze&&ne==="hover"&&st(i),"aria-label":r.image.name?`View ${r.image.name}`:`View image ${i+1}`,"aria-current":tt===i?"true":void 0,children:c.jsx("img",{className:`${e}-thumb-image${pe?` ${e}-thumb-image-cover`:""}`,src:r.image.assetId,alt:"",draggable:!1,style:{...Je,maxWidth:ce,maxHeight:ce,width:xt.display==="cover"?"auto":"100%",height:"auto",objectFit:xt.display==="cover"?"cover":"contain"}})}),l&&i<o.length-1&&c.jsx("div",{"data-controls":"thumbnailGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:h,width:s,height:"100%",pointerEvents:"auto",zIndex:3}})]},`thumb-${r.image.assetId}-${i}`)}),l&&c.jsx("div",{"data-controls":"thumbnailMarginBottom","data-controls-axis":"y","data-controls-reverse":l?"":void 0,style:{position:"absolute",left:0,right:0,bottom:n,height:t,pointerEvents:"auto",zIndex:3}})]})})})})()]})]})};function nr(e){return`
|
|
2
2
|
.${e}-wrapper {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
@@ -4,7 +4,7 @@ import { createPortal as kn } from "react-dom";
|
|
|
4
4
|
import { u as On } from "./useScopedStyles-DhBG3557.mjs";
|
|
5
5
|
import { i as Ot, g as je, u as zn } from "./useLightboxSwipeDismiss-SGv6Ra33.mjs";
|
|
6
6
|
import { s as Mt } from "./scalingValue-C9JH5L6O.mjs";
|
|
7
|
-
import { S as En } from "./SvgImage-
|
|
7
|
+
import { S as En } from "./SvgImage-B5mR9y6q.mjs";
|
|
8
8
|
import { u as Kn } from "./useLightboxScrollLock-VQ07s7EJ.mjs";
|
|
9
9
|
import { t as Fn } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
10
10
|
const Bn = (e, o, a, c) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),_e=require("react-dom"),lt=require("./scalingValue-CSHYgTZl.js"),Be=require("./buildColorVars-CE2D5cQV.js"),Ge=require("./useScopedStyles-Bf6yohVQ.js"),gt=require("./EmbedMediaFrame-DsOTKE4i.js"),bt=require("./textStylesToCss-CNN3zZTV.js"),qe=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),_e=require("react-dom"),lt=require("./scalingValue-CSHYgTZl.js"),Be=require("./buildColorVars-CE2D5cQV.js"),Ge=require("./useScopedStyles-Bf6yohVQ.js"),gt=require("./EmbedMediaFrame-DsOTKE4i.js"),bt=require("./textStylesToCss-CNN3zZTV.js"),qe=require("./SvgImage-DFlmxAoL.js"),Ke=require("./LazyVideo-imbU18js.js"),wt=300/1440,Ue=8/1440,rt=.004;function Xe(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Pt(t,e,o,r){return e!==void 0&&e<(t??.01)?`${o} ${r}`:o}function te(t,e,o,r,l="title-leading-gap"){const c=t??.01;return e===void 0||e>=c?{}:{[`--${o}-${l}`]:lt.scalingValue((c-e)/2,r)}}function Ye(t){return`
|
|
2
2
|
.${t}-wrapper {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
display: flex;
|
|
@@ -6,7 +6,7 @@ import { b as Qe } from "./buildColorVars-CLyWQm5K.mjs";
|
|
|
6
6
|
import { u as Pe } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
7
|
import { i as ae, E as Ae, g as tn, a as en } from "./EmbedMediaFrame-DwHeOAy5.mjs";
|
|
8
8
|
import { o as ne, t as oe } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
9
|
-
import { S as nn } from "./SvgImage-
|
|
9
|
+
import { S as nn } from "./SvgImage-B5mR9y6q.mjs";
|
|
10
10
|
import { L as on } from "./LazyVideo-CdAWymKO.mjs";
|
|
11
11
|
const Tt = 300 / 1440, rn = 8 / 1440, ct = 4e-3;
|
|
12
12
|
function ln(t) {
|
|
@@ -5,7 +5,7 @@ import { b as Lo } from "./buildColorVars-CLyWQm5K.mjs";
|
|
|
5
5
|
import { g as D } from "./formFieldValidation-DvihFrq5.mjs";
|
|
6
6
|
import { u as Mo } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
7
|
import { o as A, t as L } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
-
import { S as No } from "./SvgImage-
|
|
8
|
+
import { S as No } from "./SvgImage-B5mR9y6q.mjs";
|
|
9
9
|
function k(o) {
|
|
10
10
|
return `calc(var(--cntrl-article-width, 100vw) * ${o / 1440})`;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),C=require("react"),l=require("./scalingValue-CSHYgTZl.js"),Vo=require("./buildColorVars-CE2D5cQV.js"),U=require("./formFieldValidation-DZl2KVaF.js"),Wo=require("./useScopedStyles-Bf6yohVQ.js"),m=require("./textStylesToCss-CNN3zZTV.js"),jo=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),C=require("react"),l=require("./scalingValue-CSHYgTZl.js"),Vo=require("./buildColorVars-CE2D5cQV.js"),U=require("./formFieldValidation-DZl2KVaF.js"),Wo=require("./useScopedStyles-Bf6yohVQ.js"),m=require("./textStylesToCss-CNN3zZTV.js"),jo=require("./SvgImage-DFlmxAoL.js");function k(o){return`calc(var(--cntrl-article-width, 100vw) * ${o/1440})`}function zo(o){return`
|
|
2
2
|
.${o}-wrapper {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as x, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as po } from "react";
|
|
3
|
-
import { S as uo } from "./SvgImage-
|
|
3
|
+
import { S as uo } from "./SvgImage-B5mR9y6q.mjs";
|
|
4
4
|
import { s as t } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
5
|
import { b as mo } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
6
|
import { u as xo } from "./useScopedStyles-DhBG3557.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),bo=require("react"),uo=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),bo=require("react"),uo=require("./SvgImage-DFlmxAoL.js"),t=require("./scalingValue-CSHYgTZl.js"),po=require("./buildColorVars-CE2D5cQV.js"),xo=require("./useScopedStyles-Bf6yohVQ.js"),Y=require("./textStylesToCss-CNN3zZTV.js"),go={backgroundColor:"background-color",textColor:"text-color",borderColor:"border-color",iconColor:"icon-color",boxShadowColor:"box-shadow-color",innerBoxShadowColor:"inner-box-shadow-color"},mo=["hover","active"],N={left:"flex-start",center:"center",right:"flex-end"};function wo(o,e){const a=o.currentTarget,l=a.getBoundingClientRect(),c=o.clientY-l.top>l.height/2;a.classList.toggle(`${e}-reveal-from-bottom`,c)}function yo(o,e){const a=o.currentTarget,l=a.getBoundingClientRect(),c=o.clientY<l.top+l.height/2;a.classList.toggle(`${e}-reveal-from-bottom`,c)}function ko(o){const e=`var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-box-shadow-color, transparent)`,a=`inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-inner-box-shadow-color, transparent)`,l=`${e}, ${a}`,c=`var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-hover-box-shadow-color, var(--${o}-box-shadow-color, transparent))`,r=`inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-hover-inner-box-shadow-color, var(--${o}-inner-box-shadow-color, transparent))`,$=`${c}, ${r}`,s=`var(--${o}-box-shadow-x, 0) var(--${o}-box-shadow-y, 0) var(--${o}-box-shadow-blur, 0) var(--${o}-box-shadow-spread, 0) var(--${o}-active-box-shadow-color, var(--${o}-box-shadow-color, transparent))`,h=`inset var(--${o}-inner-box-shadow-x, 0) var(--${o}-inner-box-shadow-y, 0) var(--${o}-inner-box-shadow-blur, 0) var(--${o}-inner-box-shadow-spread, 0) var(--${o}-active-inner-box-shadow-color, var(--${o}-inner-box-shadow-color, transparent))`,p=`${s}, ${h}`,g=`0 4px 12px rgba(0, 0, 0, 0.15), ${a}`,C=`.${o}-button:focus-visible, a:focus-visible .${o}-button`,V=`.${o}-button:hover, ${C}`,v=f=>`.${o}-hover-effect-${f}:hover, .${o}-hover-effect-${f}:focus-visible, a:focus-visible .${o}-hover-effect-${f}`;return`
|
|
2
2
|
.${o}-root {
|
|
3
3
|
line-height: 0;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),g=require("classnames"),Ze=require("./RichTextRenderer-DEFXh5o6.js"),S=require("./scalingValue-CSHYgTZl.js"),Re=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),g=require("classnames"),Ze=require("./RichTextRenderer-DEFXh5o6.js"),S=require("./scalingValue-CSHYgTZl.js"),Re=require("./SvgImage-DFlmxAoL.js"),Je=require("./textStylesToCss-CNN3zZTV.js"),Qe=require("./useScopedStyles-Bf6yohVQ.js"),H=500,De="cubic-bezier(0.25, 1, 0.5, 1)",Pe=300,et=5,tt=.15,ot=.4,rt=100,Y=100,Ne={color:"#000000",hover:"#cccccc"},U={offset:{x:0,y:0},colors:{pagination:"#cccccc",inactive:"#cccccc",background:"#000000"}},nt={s:{paddingY:5,paddingActive:5,borderRadius:9,dot:4,activeDot:8,gapInactive:9,inset:5},m:{paddingY:7,paddingActive:7,borderRadius:17,dot:8,activeDot:20,gapInactive:22,inset:7},l:{paddingY:10,paddingActive:10,borderRadius:29,dot:20,activeDot:38,gapInactive:26,inset:10}},pe={offset:{x:0,y:0},linkColor:"#cccccc"},je={sizeType:"drag",value:3},at="left";function it(e,i){var b,f;const n={fontSettings:{fontFamily:(e==null?void 0:e.titleFontFamily)??"Arial",fontWeight:((b=e==null?void 0:e.titleFontSettings)==null?void 0:b.fontWeight)??400,fontStyle:((f=e==null?void 0:e.titleFontSettings)==null?void 0:f.fontStyle)??"normal"},fontSize:(e==null?void 0:e.titleFontSize)??.02,lineHeight:(e==null?void 0:e.titleLineHeight)??.02,letterSpacing:(e==null?void 0:e.titleLetterSpacing)??0,wordSpacing:(e==null?void 0:e.titleWordSpacing)??0,textAppearance:e==null?void 0:e.titleTextAppearance,textAlign:at,color:(e==null?void 0:e.titleColor)??"#000000"};return Je.textStylesToCss(n,i)}function V(e,i,n){return`${e}: ${S.scalingValue(i/1440,n)};`}function E(e,i){return i<=0?0:(e%i+i)%i}function ct(e,i,n,b){if(!b)return{position:E(e+i,n),hitBoundary:!1};const f=e+i;return f>=0&&f<=n+1?{position:f,hitBoundary:!1}:{position:i>0?n+1:0,hitBoundary:!0}}function lt(e,i){const n=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);return i?n.m41:n.m42}function st(e,i){const n=document.createElement("div");n.className=i,n.setAttribute("aria-hidden","true"),e.appendChild(n);const b=(X,J)=>{n.style.transform=`translate(${X}px, ${J}px)`;const B=n.getBoundingClientRect();return{x:B.left,y:B.top}},f=b(0,0),r=b(Y,0),K=b(0,Y);e.removeChild(n);const C={x:(r.x-f.x)/Y,y:(r.y-f.y)/Y},s={x:(K.x-f.x)/Y,y:(K.y-f.y)/Y},Z=C.x*s.y-s.x*C.y;return{ex:C,ey:s,det:Z}}function dt(e,i,n){const{ex:b,ey:f,det:r}=e;return{x:(i*f.y-n*f.x)/r,y:(b.x*n-b.y*i)/r}}function ut(e,i){return`
|
|
2
2
|
.${e}-wrapper {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
@@ -3,7 +3,7 @@ import { useState as D, useRef as k, useCallback as E, useEffect as B } from "re
|
|
|
3
3
|
import x from "classnames";
|
|
4
4
|
import { R as te } from "./RichTextRenderer-D52Xto59.mjs";
|
|
5
5
|
import { s as C } from "./scalingValue-C9JH5L6O.mjs";
|
|
6
|
-
import { S as Oo } from "./SvgImage-
|
|
6
|
+
import { S as Oo } from "./SvgImage-B5mR9y6q.mjs";
|
|
7
7
|
import { t as re } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
8
|
import { u as ne } from "./useScopedStyles-DhBG3557.mjs";
|
|
9
9
|
const j = 500, Ho = "cubic-bezier(0.25, 1, 0.5, 1)", ae = 300, ie = 5, ce = 0.15, le = 0.4, se = 100, W = 100, _o = {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as u } from "react";
|
|
3
|
+
import g from "classnames";
|
|
4
|
+
import { i as p, l as k } from "./loadSvgMaskUrl-xHgGYgPe.mjs";
|
|
5
|
+
const v = "SvgImage-module__svg___q3xE-", C = "SvgImage-module__img___VsTm-", c = {
|
|
6
|
+
svg: v,
|
|
7
|
+
img: C
|
|
8
|
+
}, w = (s) => {
|
|
9
|
+
const e = s.trim().toLowerCase();
|
|
10
|
+
return !!(e.startsWith("data:image/svg+xml") || e.includes("image/svg+xml") || e.includes(".svg") || e.startsWith("blob:"));
|
|
11
|
+
}, _ = (s) => `url("${s.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, x = ({ url: s, fill: e = "#000000", hoverFill: f = "#CCCCCC", className: a = "", style: i }) => {
|
|
12
|
+
const [n, d] = l(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")')), [o, r] = l(() => p(s) ? s : null);
|
|
13
|
+
return u(() => {
|
|
14
|
+
if (typeof window < "u" && window.CSS) {
|
|
15
|
+
const t = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
16
|
+
d(t);
|
|
17
|
+
}
|
|
18
|
+
}, []), u(() => {
|
|
19
|
+
if (!w(s)) {
|
|
20
|
+
r(null);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (p(s)) {
|
|
24
|
+
r(s);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let t = !1;
|
|
28
|
+
return k(s).then((S) => {
|
|
29
|
+
t || r(S);
|
|
30
|
+
}).catch(() => {
|
|
31
|
+
t || r(null);
|
|
32
|
+
}), () => {
|
|
33
|
+
t = !0;
|
|
34
|
+
};
|
|
35
|
+
}, [s]), !o || !n ? /* @__PURE__ */ m("img", { src: s, alt: "", className: g(c.img, a), style: i }) : /* @__PURE__ */ m(
|
|
36
|
+
"span",
|
|
37
|
+
{
|
|
38
|
+
"data-supports-mask": n,
|
|
39
|
+
className: g(c.svg, a),
|
|
40
|
+
style: {
|
|
41
|
+
"--svg": _(o),
|
|
42
|
+
"--fill": e,
|
|
43
|
+
"--hover-fill": f,
|
|
44
|
+
...i ?? {}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
x as S
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("react/jsx-runtime"),a=require("react"),c=require("classnames"),n=require("./loadSvgMaskUrl-DfF7ay6h.js"),d="SvgImage-module__svg___q3xE-",k="SvgImage-module__img___VsTm-",m={svg:d,img:k},v=e=>{const s=e.trim().toLowerCase();return!!(s.startsWith("data:image/svg+xml")||s.includes("image/svg+xml")||s.includes(".svg")||s.startsWith("blob:"))},C=e=>`url("${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`,w=({url:e,fill:s="#000000",hoverFill:f="#CCCCCC",className:i="",style:u})=>{const[l,p]=a.useState(()=>typeof window>"u"?!0:CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")')),[o,r]=a.useState(()=>n.isInlineMaskUrl(e)?e:null);return a.useEffect(()=>{if(typeof window<"u"&&window.CSS){const t=CSS.supports("mask-image",'url("")')||CSS.supports("-webkit-mask-image",'url("")');p(t)}},[]),a.useEffect(()=>{if(!v(e)){r(null);return}if(n.isInlineMaskUrl(e)){r(e);return}let t=!1;return n.loadSvgMaskUrl(e).then(S=>{t||r(S)}).catch(()=>{t||r(null)}),()=>{t=!0}},[e]),!o||!l?g.jsx("img",{src:e,alt:"",className:c(m.img,i),style:u}):g.jsx("span",{"data-supports-mask":l,className:c(m.svg,i),style:{"--svg":C(o),"--fill":s,"--hover-fill":f,...u??{}}})};exports.SvgImage=w;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),j=require("classnames"),o=require("react"),E=require("./RichTextRenderer-DEFXh5o6.js"),u=require("./scalingValue-CSHYgTZl.js"),X=require("./SvgImage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),j=require("classnames"),o=require("react"),E=require("./RichTextRenderer-DEFXh5o6.js"),u=require("./scalingValue-CSHYgTZl.js"),X=require("./SvgImage-DFlmxAoL.js"),ue=require("./useScopedStyles-Bf6yohVQ.js"),de=require("./readTestimonialTextMeasure-CEPaB4Sy.js"),G=require("./textStylesToCss-CNN3zZTV.js");function he(e){return`
|
|
2
2
|
.${e}-container {
|
|
3
3
|
position: relative;
|
|
4
4
|
overflow-x: clip;
|
|
@@ -3,7 +3,7 @@ import b from "classnames";
|
|
|
3
3
|
import { useState as w, useRef as U, useMemo as Y, useEffect as R, useCallback as N, useLayoutEffect as pe } from "react";
|
|
4
4
|
import { R as Z } from "./RichTextRenderer-D52Xto59.mjs";
|
|
5
5
|
import { s } from "./scalingValue-C9JH5L6O.mjs";
|
|
6
|
-
import { S as E } from "./SvgImage-
|
|
6
|
+
import { S as E } from "./SvgImage-B5mR9y6q.mjs";
|
|
7
7
|
import { u as ve } from "./useScopedStyles-DhBG3557.mjs";
|
|
8
8
|
import { r as we } from "./readTestimonialTextMeasure-BIXpGFEt.mjs";
|
|
9
9
|
import { t as P } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
@@ -8,7 +8,7 @@ import { g as dn, a as hn } from "./getImageRect-CBMhFNHM.mjs";
|
|
|
8
8
|
import { L as pn } from "./LazyVideo-CdAWymKO.mjs";
|
|
9
9
|
import { t as gn } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
10
10
|
import { u as mn } from "./useLazyVideos-CxXyEjRQ.mjs";
|
|
11
|
-
import { H as wn } from "./HiveLightboxTitles-
|
|
11
|
+
import { H as wn } from "./HiveLightboxTitles-DhEeFKWs.mjs";
|
|
12
12
|
function vn(t) {
|
|
13
13
|
return `
|
|
14
14
|
.${t}-titles-row {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react"),tn=require("react-dom"),Qe=require("./scalingValue-CSHYgTZl.js"),nn=require("./useScopedStyles-Bf6yohVQ.js"),_=require("./EmbedMediaFrame-DsOTKE4i.js"),zt=require("./getImageRect-BQhQXvT8.js"),rn=require("./LazyVideo-imbU18js.js"),on=require("./textStylesToCss-CNN3zZTV.js"),an=require("./useLazyVideos-CdCbc2j0.js"),ln=require("./HiveLightboxTitles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react"),tn=require("react-dom"),Qe=require("./scalingValue-CSHYgTZl.js"),nn=require("./useScopedStyles-Bf6yohVQ.js"),_=require("./EmbedMediaFrame-DsOTKE4i.js"),zt=require("./getImageRect-BQhQXvT8.js"),rn=require("./LazyVideo-imbU18js.js"),on=require("./textStylesToCss-CNN3zZTV.js"),an=require("./useLazyVideos-CdCbc2j0.js"),ln=require("./HiveLightboxTitles-DlyptAaK.js");function sn(e){return`
|
|
2
2
|
.${e}-titles-row {
|
|
3
3
|
position: relative;
|
|
4
4
|
flex: 0 1 auto;
|