@cntrl-site/components 1.0.120 → 1.0.121

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.
Files changed (30) hide show
  1. package/dist/{Burger-C8JIQQwm.mjs → Burger-BKeZH3HS.mjs} +1 -1
  2. package/dist/{Burger-C_SjPZWp.js → Burger-DxjmS1t5.js} +1 -1
  3. package/dist/{Chronicles-BNvvaFYY.mjs → Chronicles-BXfNFANB.mjs} +1 -1
  4. package/dist/{Chronicles-Dj1gvNjE.js → Chronicles-mir8oCdq.js} +1 -1
  5. package/dist/{ChroniclesComponent-8lhIeord.mjs → ChroniclesComponent-CH-c7QBm.mjs} +18 -35
  6. package/dist/{ChroniclesComponent-5ZbqHNpi.js → ChroniclesComponent-D425pM5e.js} +1 -1
  7. package/dist/Components/Slider20/Slider20.d.ts +1 -2
  8. package/dist/{LightboxJournal-BDUs6T0B.mjs → LightboxJournal-By2sN-Ix.mjs} +1 -1
  9. package/dist/{LightboxJournal-Bf_rZzmz.js → LightboxJournal-DEQXz8wX.js} +1 -1
  10. package/dist/{LightboxStrip-Cuhb2fIR.mjs → LightboxStrip-GwaY8uLD.mjs} +1 -1
  11. package/dist/{LightboxStrip-RA4ABUC-.js → LightboxStrip-XbD9uQKr.js} +1 -1
  12. package/dist/Slider20-BOmjDRf2.js +272 -0
  13. package/dist/Slider20-DUi6qwnd.mjs +851 -0
  14. package/dist/{components-CBJ6asBX.mjs → components-BN4QKcJm.mjs} +1 -1
  15. package/dist/{components-BHB4G3ma.js → components-QZW1MaQM.js} +1 -1
  16. package/dist/elements.js +1 -1
  17. package/dist/elements.mjs +5 -5
  18. package/dist/elements.node.js +1 -1
  19. package/dist/elements.node.mjs +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/index.mjs +2 -2
  22. package/dist/sources.js +168 -213
  23. package/dist/sources.mjs +167 -212
  24. package/dist/useLightboxScrollLock-CjSZPvqJ.mjs +18 -0
  25. package/dist/useLightboxScrollLock-CmwKl-Vu.js +1 -0
  26. package/package.json +1 -1
  27. package/dist/Slider20-C2o_EB1I.mjs +0 -872
  28. package/dist/Slider20-DzxWCTg-.js +0 -273
  29. package/dist/useLightboxScrollLock-Hf16Eq4g.js +0 -1
  30. package/dist/useLightboxScrollLock-VQ07s7EJ.mjs +0 -18
@@ -1,273 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("react"),w=require("classnames"),ft=require("./RichTextRenderer-DEFXh5o6.js"),x=require("./scalingValue-CSHYgTZl.js"),He=require("./SvgImage-DFlmxAoL.js"),mt=require("./textStylesToCss-CNN3zZTV.js"),ht=require("./useScopedStyles-Bf6yohVQ.js"),vt=500,$t=1,be="cubic-bezier(0.25, 1, 0.5, 1)",yt=300,xt=40,wt=5,bt=.15,St=.4,gt=100,z=100,We={color:"#000000",hover:"#cccccc"},G={offset:{x:0,y:0},colors:{pagination:"#cccccc",inactive:"#cccccc",background:"#000000"}},It={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}},ye={offset:{x:0,y:0},linkColor:"#cccccc"},Ee={sizeType:"drag",value:3},Tt="left";function Ct(e,c){var b,y;const a={fontSettings:{fontFamily:(e==null?void 0:e.titleFontFamily)??"Arial",fontWeight:((b=e==null?void 0:e.titleFontSettings)==null?void 0:b.fontWeight)??400,fontStyle:((y=e==null?void 0:e.titleFontSettings)==null?void 0:y.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:Tt,color:(e==null?void 0:e.titleColor)??"#000000"};return mt.textStylesToCss(a,c)}function _(e,c,a){return`${e}: ${x.scalingValue(c/1440,a)};`}function q(e,c){return c<=0?0:(e%c+c)%c}const kt=3;function xe(e,c,a){return a?`translate3d(calc(${-e*100}% + ${c}px), 0, 0)`:`translate3d(0, calc(${-e*100}% + ${c}px), 0)`}function we(e,c){return(Math.floor(e/c)-1)*c}function Ge(e,c){const a=window.getComputedStyle(e);return parseFloat(c?a.width:a.height)||0}function At(e,c){const a=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);return c?a.m41:a.m42}function Rt(e,c){const a=document.createElement("div");a.className=c,a.setAttribute("aria-hidden","true"),e.appendChild(a);const b=(O,K)=>{a.style.transform=`translate(${O}px, ${K}px)`;const F=a.getBoundingClientRect();return{x:F.left,y:F.top}},y=b(0,0),r=b(z,0),B=b(0,z);e.removeChild(a);const g={x:(r.x-y.x)/z,y:(r.y-y.y)/z},l={x:(B.x-y.x)/z,y:(B.y-y.y)/z},U=g.x*l.y-l.x*g.y;return{ex:g,ey:l,det:U}}function Mt(e,c,a){const{ex:b,ey:y,det:r}=e;return{x:(c*y.y-a*y.x)/r,y:(b.x*a-b.y*c)/r}}function Nt(e){const c=Math.min(Math.max(e,0),2);return Math.round(vt*Math.pow(4,1-c))}function jt(e,c,a){return`
2
- .${e}-wrapper {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- overflow: visible;
7
- }
8
- .${e}-wrapper:hover .${e}-hover-arrow {
9
- opacity: 1 !important;
10
- }
11
- .${e}-slider-inner {
12
- position: relative;
13
- width: 100%;
14
- height: 100%;
15
- }
16
- .${e}-track {
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- width: 100%;
21
- height: 100%;
22
- overflow: hidden;
23
- }
24
- .${e}-axis-probe {
25
- position: absolute;
26
- top: 0;
27
- left: 0;
28
- width: 0;
29
- height: 0;
30
- pointer-events: none;
31
- visibility: hidden;
32
- }
33
- .${e}-track-draggable {
34
- touch-action: pan-y;
35
- }
36
- .${e}-track-draggable-vertical {
37
- touch-action: pan-x;
38
- }
39
- .${e}-track-draggable .${e}-list {
40
- user-select: none;
41
- -webkit-user-select: none;
42
- }
43
- .${e}-track-draggable .${e}-slider-image {
44
- -webkit-user-drag: none;
45
- }
46
- .${e}-list {
47
- position: relative;
48
- width: 100%;
49
- height: 100%;
50
- }
51
- .${e}-list-slide {
52
- display: flex;
53
- flex-direction: row;
54
- will-change: transform;
55
- }
56
- .${e}-list-slide-vertical {
57
- flex-direction: column;
58
- }
59
- .${e}-list-fade {
60
- display: block;
61
- /* Keeps the transition layers' z-index below the arrows, dots and click overlay. */
62
- isolation: isolate;
63
- }
64
- .${e}-slide {
65
- position: relative;
66
- flex: 0 0 100%;
67
- width: 100%;
68
- height: 100%;
69
- }
70
- .${e}-list-fade .${e}-slide {
71
- position: absolute;
72
- top: 0;
73
- left: 0;
74
- opacity: 0;
75
- }
76
- .${e}-list-fade .${e}-slide.${e}-is-layer {
77
- opacity: 1;
78
- }
79
- .${e}-slider-item {
80
- width: 100%;
81
- height: 100%;
82
- display: flex;
83
- position: relative;
84
- }
85
- .${e}-slider-image {
86
- width: 100%;
87
- height: 100%;
88
- object-fit: cover;
89
- }
90
- .${e}-arrow {
91
- position: absolute;
92
- display: flex;
93
- align-items: center;
94
- justify-content: center;
95
- border: none;
96
- background-color: transparent;
97
- top: 50%;
98
- z-index: 3;
99
- padding: 0;
100
- ${_("width",30,a)}
101
- ${_("height",30,a)}
102
- transition: opacity 0.15s ease-in-out;
103
- }
104
- .${e}-arrow-prev {
105
- ${_("left",-20,a)}
106
- transform: translate3d(-50%, -50%, 0);
107
- }
108
- .${e}-arrow-next {
109
- left: unset;
110
- ${_("right",-20,a)}
111
- transform: translate3d(50%, -50%, 0);
112
- }
113
- .${e}-arrow-prev-vertical {
114
- left: 50%;
115
- ${_("top",-20,a)}
116
- transform: translate3d(-50%, -50%, 0);
117
- }
118
- .${e}-arrow-next-vertical {
119
- left: 50%;
120
- right: unset;
121
- top: unset;
122
- ${_("bottom",-20,a)}
123
- transform: translate3d(-50%, 50%, 0);
124
- }
125
- .${e}-arrow-hidden {
126
- opacity: 0;
127
- pointer-events: none;
128
- }
129
- .${e}-hover-arrow {
130
- opacity: 0;
131
- transition: opacity 0.15s ease-in-out;
132
- }
133
- .${e}-hover-arrow:hover {
134
- opacity: 1;
135
- }
136
- .${e}-arrow-inner {
137
- all: unset;
138
- cursor: pointer;
139
- width: 100%;
140
- height: 100%;
141
- }
142
- .${e}-arrow-inner:hover .${e}-arrow-icon path {
143
- fill: var(--arrow-hover-color) !important;
144
- }
145
- .${e}-arrow-img {
146
- position: absolute;
147
- top: 50%;
148
- left: 50%;
149
- transform: translate(-50%, -50%);
150
- }
151
- .${e}-arrow-icon {
152
- width: 100%;
153
- height: 100%;
154
- overflow: visible;
155
- }
156
- .${e}-arrow-icon path {
157
- transition: fill 0.15s ease-in-out;
158
- }
159
- .${e}-mirror {
160
- transform: translate(-50%, -50%) scaleX(-1) !important;
161
- }
162
- .${e}-pagination {
163
- position: absolute;
164
- z-index: 3;
165
- border-radius: 50%;
166
- }
167
- .${e}-pagination-inner {
168
- display: flex;
169
- align-items: center;
170
- box-sizing: border-box;
171
- }
172
- .${e}-pagination-vertical {
173
- flex-direction: column;
174
- }
175
- .${e}-pagination-item {
176
- all: unset;
177
- flex-shrink: 0;
178
- position: relative;
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
- cursor: pointer;
183
- aspect-ratio: 1;
184
- height: auto;
185
- }
186
- .${e}-dot {
187
- border-radius: 50%;
188
- aspect-ratio: 1;
189
- height: auto;
190
- transition: background-color 0.3s ease-in-out;
191
- }
192
- .${e}-animate-dots .${e}-dot {
193
- transition: background-color 0.3s ease-in-out, width 0.3s ease-in-out;
194
- }
195
- .${e}-pagination-inside-bottom {
196
- left: 50%;
197
- transform: translate3d(-50%, 0, 0);
198
- }
199
- .${e}-pagination-inside-left {
200
- top: 50%;
201
- transform: translate3d(0, -50%, 0);
202
- }
203
- .${e}-img-wrapper {
204
- width: 100%;
205
- height: 100%;
206
- }
207
- .${e}-control {
208
- position: relative;
209
- z-index: 2;
210
- width: 100%;
211
- }
212
- .${e}-caption-block {
213
- pointer-events: none;
214
- position: absolute;
215
- top: 100%;
216
- left: 0;
217
- right: 0;
218
- z-index: 1;
219
- }
220
- .${e}-caption-text-wrapper {
221
- position: relative;
222
- width: 100%;
223
- }
224
- .${e}-caption-text {
225
- pointer-events: none;
226
- max-width: 100%;
227
- transition-property: opacity;
228
- transition-timing-function: ease-in-out;
229
- position: absolute;
230
- top: 0;
231
- left: 0;
232
- display: inline-block;
233
- white-space: pre-wrap;
234
- overflow-wrap: break-word;
235
- opacity: 0;
236
- }
237
- .${e}-caption-text.${e}-active {
238
- opacity: 1;
239
- }
240
- .${e}-with-pointer-events {
241
- pointer-events: auto;
242
- }
243
- .${e}-click-overlay {
244
- position: absolute;
245
- top: 0;
246
- left: 0;
247
- width: 100%;
248
- height: 100%;
249
- cursor: pointer;
250
- z-index: 2;
251
- }
252
- .${e}-transition-fade .${e}-slide.${e}-is-animated .${e}-slider-image {
253
- animation: ${e}-fade-in ${c}ms ${be};
254
- }
255
- .${e}-transition-reveal .${e}-slide.${e}-is-animated .${e}-slider-image {
256
- animation: ${e}-reveal-horizontal ${c}ms ease;
257
- }
258
- .${e}-transition-reveal-vertical .${e}-slide.${e}-is-animated .${e}-slider-image {
259
- animation: ${e}-reveal-vertical ${c}ms ease;
260
- }
261
- @keyframes ${e}-fade-in {
262
- from { opacity: 0; }
263
- to { opacity: 1; }
264
- }
265
- @keyframes ${e}-reveal-horizontal {
266
- from { clip-path: inset(0 100% 0 0); }
267
- to { clip-path: inset(0 0 0 0); }
268
- }
269
- @keyframes ${e}-reveal-vertical {
270
- from { clip-path: inset(100% 0 0 0); }
271
- to { clip-path: inset(0 0 0 0); }
272
- }
273
- `}function Lt({settings:e,content:c,isEditor:a,isPreviewMode:b,isEditMode:y}){const{prefix:r}=ht.useScopedStyles(),B=Ct(e,a),g=c??[],l=g.length,U=(e==null?void 0:e.trigger)??Ee,O=U.sizeType??"drag",K=U.value??Ee.value,F=(e==null?void 0:e.direction)??"horizontal",se=(e==null?void 0:e.transition)??"slide",Be=typeof(e==null?void 0:e.transitionSpeed)=="number"?e.transitionSpeed:$t,I=Nt(Be),Ue=(e==null?void 0:e.nav)??"classic",Se=(e==null?void 0:e.navSize)??"m",f=It[Se],Ke=typeof(e==null?void 0:e.navUnit)=="number"?e.navUnit:1/1440,h=t=>x.scalingValue(t*Ke,a),ge=(e==null?void 0:e.show)??"always",N=(e==null?void 0:e.controls)??null,Ie=typeof(e==null?void 0:e.controlsMaxWidth)=="number"?e.controlsMaxWidth:65/1440,Te=typeof(e==null?void 0:e.paddingX)=="number"?e.paddingX:0,Ce=typeof(e==null?void 0:e.paddingY)=="number"?e.paddingY:0,j=(e==null?void 0:e.controlsColor)??We.color,Z=(e==null?void 0:e.controlsHoverColor)??We.hover,Ze=(e==null?void 0:e.navColor)??G.colors.inactive,Je=(e==null?void 0:e.navPaginationColor)??G.colors.pagination,Qe=(e==null?void 0:e.navBackgroundColor)??G.colors.background,ke=(e==null?void 0:e.linkColor)??ye.linkColor,Pe=typeof(e==null?void 0:e.captionMarginTop)=="number"?e.captionMarginTop:0,Ae=typeof(e==null?void 0:e.imageCorners)=="number"?e.imageCorners:0,et=Ae>0?{borderRadius:x.scalingValue(Ae,a),isolation:"isolate"}:void 0,d=F==="horizontal",tt=O==="click",de=O==="drag",Re=O==="auto"&&(!a||!!b),Me=!a,v=se==="slide",J=se==="reveal",Ne=!v,ot=Ue==="classic",rt=ge!=="never"&&Ie>0,je=ge==="on hover",ue=x.scalingValue(Ie,a),Q={width:ue,height:ue,maxWidth:ue},T=v&&l>1,[$,P]=i.useState(0),[k,Le]=i.useState([{index:$,key:0,isAnimated:!1}]),De=k[k.length-1];if(Ne&&De.index!==$){const t=k.length>=xt?[k[0],...k.slice(2)]:k;Le([...t,{index:$,key:De.key+1,isAnimated:!0}])}const at=t=>{Le(o=>{const s=o.findIndex(p=>p.key===t);return s>0?o.slice(s):o})},ze=t=>t&&n.jsx("div",{className:`${r}-slider-item`,children:n.jsx("div",{className:`${r}-img-wrapper`,children:n.jsx("img",{className:`${r}-slider-image`,src:t.image.assetId,alt:t.image.name??"",draggable:!1})})}),[L,ee]=i.useState(T?l:0),[_e,nt]=i.useState(!1),[pe,V]=i.useState(!1),[it,fe]=i.useState(!1),[ct,A]=i.useState(0),[me,he]=i.useState(!1),[Oe,Fe]=i.useState(!1),ve=i.useRef(!1),Y=i.useRef(L);Y.current=L;const te=i.useRef(null),oe=i.useRef(null),D=i.useRef(null),R=i.useRef(null),re=i.useRef($);re.current=$;const X=i.useRef($),H=i.useRef(null),M=i.useCallback(t=>{ve.current=t,nt(t)},[]),ae=i.useCallback(t=>{if(!J){P(u=>q(t(u),l));return}const o=H.current!==null,s=o?X.current:re.current;if(X.current=q(t(s),l),o)return;const p=u=>{re.current=u,P(u),H.current=window.setTimeout(()=>{H.current=null,X.current!==re.current&&p(X.current)},I/2)};p(X.current)},[l,J,I]);i.useEffect(()=>()=>{H.current!==null&&window.clearTimeout(H.current)},[]);const $e=i.useCallback(()=>{const t=oe.current,o=t?Ge(t,d):0;return!t||o<=0?Y.current:Math.round(-At(t,d)/o*1e3)/1e3},[d]),ne=i.useCallback(t=>{const o=$e(),s=we(o,l),p=t(o-s,s),u=oe.current;if(s!==0&&u){const m=u.style.transition;u.style.transition="none",u.style.transform=xe(o-s,0,d),u.offsetWidth,u.style.transition=m&&m!=="none"?m:`transform ${I}ms ${be}`,u.style.transform=xe(p,0,d)}Y.current=p,P(q(p,l)),V(!1),ee(p)},[l,d,$e,I]),ie=i.useCallback(t=>{if(!(l<2||t===0)){if(he(!0),M(!0),!v){ae(o=>o+t);return}ne((o,s)=>{const p=Y.current-s,u=Math.abs(p-o)<l?p:Math.round(o),m=l-1;return Math.min(Math.max(u+t,Math.ceil(o-m)),Math.floor(o+m))})}},[ae,l,v,ne,M]),W=i.useCallback(t=>{ie(t)},[ie]),lt=i.useCallback(t=>{if(l<2)return;const o=q(t,l);if(!(o===$&&!ve.current)){if(he(!0),M(!0),!v){ae(()=>o);return}ne(()=>l+o)}},[$,ae,l,v,ne,M]);i.useEffect(()=>{if(!_e)return;const t=window.setTimeout(()=>{if(M(!1),!T)return;const o=we(L,l);o!==0&&(V(!0),ee(L-o))},I);return()=>window.clearTimeout(t)},[l,T,_e,M,L,I]),i.useEffect(()=>{if(!pe)return;let t=0;const o=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>V(!1))});return()=>{cancelAnimationFrame(o),cancelAnimationFrame(t)}},[pe]);const ce=`${T}:${l}`,Ve=i.useRef(ce);i.useEffect(()=>{if(Ve.current===ce)return;Ve.current=ce;const t=l>0?Math.min($,l-1):0;D.current=null,R.current=null,fe(!1),A(0),P(t),V(!0),ee(t+(T?l:0))},[$,l,T,ce]),i.useEffect(()=>{if(!me)return;const t=window.setTimeout(()=>he(!1),yt);return()=>window.clearTimeout(t)},[me,$]),i.useEffect(()=>{if(!Re||l<2)return;const t=Math.max(K,.1)*1e3,o=window.setInterval(()=>{Me&&Oe||W(1)},t);return()=>window.clearInterval(o)},[K,l,W,Re,Oe,Me]);const E=i.useCallback(t=>{const o=D.current;if(!o||o.pointerId!==t.pointerId)return;D.current=null,R.current=null;const s=te.current;if(s!=null&&s.hasPointerCapture(t.pointerId)&&s.releasePointerCapture(t.pointerId),!o.isActive){v&&A(0);return}const u=!(t.timeStamp-o.lastTime>gt)&&Math.abs(o.velocity)>St,m=o.size>0&&Math.abs(o.offset-o.baseOffset)>o.size*bt;if(fe(!1),!u&&!m){A(0);return}const C=m?o.offset-o.baseOffset:o.velocity;let S=1;m&&o.size>0&&(S=Math.max(1,Math.round(Math.abs(C)/o.size))),A(0),ie(C<0?S:-S)},[ie,v]);i.useEffect(()=>{const t=o=>{R.current===null||o.pointerId!==R.current||E(o)};return window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[E]);const st=t=>{const o=te.current;if(!de||l<2||!o||t.pointerType==="mouse"&&t.button!==0)return;ve.current&&M(!1);let s=0;const p=oe.current;if(v&&p){const u=Ge(p,d);if(u>0){const m=$e(),C=T?m-we(m,l):m,S=Math.round(C);s=(S-C)*u,Y.current=S,V(!0),ee(S),A(s)}}o.setPointerCapture(t.pointerId),R.current=t.pointerId,D.current={pointerId:t.pointerId,startClientX:t.clientX,startClientY:t.clientY,axes:Rt(o,`${r}-axis-probe`),size:d?o.offsetWidth:o.offsetHeight,isActive:!1,baseOffset:s,offset:s,lastTime:t.timeStamp,velocity:0}},dt=t=>{const o=D.current;if(!o||o.pointerId!==t.pointerId)return;if(t.pointerType==="mouse"&&t.buttons===0){E(t);return}const s=t.clientX-o.startClientX,p=t.clientY-o.startClientY,u=o.axes?Mt(o.axes,s,p):{x:s,y:p},m=d?u.x:u.y,C=d?u.y:u.x,S=o.baseOffset+m;if(!o.isActive){if(Math.max(Math.abs(m),Math.abs(C))<wt)return;if(Math.abs(C)>Math.abs(m)){const le=te.current;le!=null&&le.hasPointerCapture(o.pointerId)&&le.releasePointerCapture(o.pointerId),D.current=null,R.current=null,v&&A(0);return}o.isActive=!0,fe(!0)}const Xe=t.timeStamp-o.lastTime;Xe>0&&(o.velocity=(S-o.offset)/Xe,o.lastTime=t.timeStamp),o.offset=S,v&&A(S)},Ye=t=>{E(t)},ut=xe(L,ct,d),pt=T?Array.from({length:kt},()=>g).flat():g;return n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:jt(r,I,a)}}),n.jsxs("div",{className:w(`${r}-wrapper`,{[`${r}-transition-fade`]:se==="fade in",[`${r}-transition-reveal`]:J,[`${r}-transition-reveal-vertical`]:J&&!d}),"data-active-index":$,onMouseEnter:()=>Fe(!0),onMouseLeave:()=>Fe(!1),children:[n.jsxs("div",{className:`${r}-slider-inner`,style:{backgroundColor:"transparent"},children:[n.jsxs("div",{ref:te,className:w(`${r}-track`,{[`${r}-track-draggable`]:de,[`${r}-track-draggable-vertical`]:de&&!d}),style:et,onPointerDown:st,onPointerMove:dt,onPointerUp:Ye,onPointerCancel:Ye,onLostPointerCapture:t=>{R.current===t.pointerId&&E(t)},children:[n.jsxs("div",{ref:oe,className:w(`${r}-list`,{[`${r}-list-slide`]:v,[`${r}-list-slide-vertical`]:v&&!d,[`${r}-list-fade`]:!v}),style:v?{transform:ut,transition:it||pe?"none":`transform ${I}ms ${be}`}:void 0,children:[pt.map((t,o)=>{const s=q(o,l),p=`slide-${Math.floor(o/l)}-${s}`;return n.jsx("div",{className:`${r}-slide`,children:ze(t)},p)}),Ne&&k.map((t,o)=>n.jsx("div",{className:w(`${r}-slide`,`${r}-is-layer`,{[`${r}-is-animated`]:t.isAnimated}),style:{zIndex:o+1},onAnimationEnd:()=>at(t.key),children:ze(g[t.index])},`layer-${t.key}`))]}),tt&&n.jsx("div",{className:`${r}-click-overlay`,onClick:()=>W(1)})]}),rt&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:w(`${r}-arrow`,{[`${r}-arrow-prev`]:d,[`${r}-arrow-prev-vertical`]:!d,[`${r}-hover-arrow`]:je}),style:{color:j,"--arrow-hover-color":Z,...Q},children:n.jsxs("button",{onClick:t=>{t.stopPropagation(),W(-1)},className:`${r}-arrow-inner`,style:{transform:`translate(${x.scalingValue(Te,a)}, ${x.scalingValue(Ce*(d?1:-1),a)}) rotate(${d?"0deg":"90deg"})`},children:[N&&n.jsx(He.SvgImage,{url:N,fill:j,hoverFill:Z,className:w(`${r}-arrow-img`,`${r}-mirror`),style:Q}),!N&&n.jsx(qe,{color:j,className:w(`${r}-arrow-icon`,`${r}-arrow-img`,`${r}-mirror`)})]})}),n.jsx("div",{className:w(`${r}-arrow`,{[`${r}-arrow-next`]:d,[`${r}-arrow-next-vertical`]:!d,[`${r}-hover-arrow`]:je}),style:{color:j,"--arrow-hover-color":Z,...Q},children:n.jsxs("button",{className:`${r}-arrow-inner`,onClick:t=>{t.stopPropagation(),W(1)},style:{transform:`translate(${x.scalingValue(Te*(d?-1:1),a)}, ${x.scalingValue(Ce,a)}) rotate(${d?"0deg":"90deg"})`},children:[N&&n.jsx(He.SvgImage,{url:N,fill:j,hoverFill:Z,className:`${r}-arrow-img`,style:Q}),!N&&n.jsx(qe,{color:j,className:w(`${r}-arrow-icon`,`${r}-arrow-img`)})]})})]}),ot&&n.jsx("div",{className:w(`${r}-pagination`,{[`${r}-pagination-inside-bottom`]:d,[`${r}-pagination-inside-left`]:!d}),style:d?{bottom:h(f.inset)}:{left:h(f.inset)},children:n.jsx("div",{className:w(`${r}-pagination-inner`,{[`${r}-pagination-vertical`]:!d,[`${r}-animate-dots`]:me}),style:{backgroundColor:Qe,gap:h(f.gapInactive-f.activeDot+f.dot),...d?{height:h(f.activeDot+f.paddingY*2),paddingTop:h(f.paddingY),paddingBottom:h(f.paddingY),paddingLeft:h(f.paddingActive),paddingRight:h(f.paddingActive)}:{width:h(f.activeDot+f.paddingY*2),paddingLeft:h(f.paddingY),paddingRight:h(f.paddingY),paddingTop:h(f.paddingActive),paddingBottom:h(f.paddingActive)},borderRadius:h(f.borderRadius),transform:`translate(${x.scalingValue(G.offset.x,a)}, ${x.scalingValue(G.offset.y,a)})`},children:g.map((t,o)=>{const s=o===$,p=s?f.activeDot:f.dot;return n.jsx("button",{onClick:()=>lt(o),className:`${r}-pagination-item`,style:{width:h(f.activeDot)},children:n.jsx("div",{className:`${r}-dot`,style:{backgroundColor:s?Je:Ze,width:h(p)}})},o)})},`${Se}-${F}`)})]}),n.jsxs("div",{className:`${r}-caption-block`,children:[n.jsx("div",{"data-controls":y?"captionMarginTop":void 0,className:y?`${r}-control`:void 0,style:{height:x.scalingValue(Pe,a)}}),n.jsx("div",{className:`${r}-caption-text-wrapper`,children:g.map((t,o)=>n.jsx("div",{className:w(`${r}-caption-text`,{[`${r}-with-pointer-events`]:o===$&&a,[`${r}-active`]:o===$}),style:{...B,width:"max-content",transitionDuration:`${Math.round(I/2)}ms`},children:n.jsx("div",{className:`${r}-caption-text-inner`,style:{"--link-color":ke,"--link-hover-color":ke,position:"relative",top:x.scalingValue(ye.offset.y,a),left:x.scalingValue(ye.offset.x,a)},children:n.jsx(ft.RichTextRenderer,{content:t.imageCaption})})},o))})]})]})]})}function qe({color:e,className:c}){return n.jsx("svg",{viewBox:"0 0 10 18",className:c,children:n.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:n.jsx("path",{d:"M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z",id:"Shape-Copy",fill:e,transform:"translate(5, 9) rotate(-90) translate(-5, -9)"})})})}exports.Slider20=Lt;
@@ -1 +0,0 @@
1
- "use strict";const u=require("react"),y="[data-lightbox-scrollable]",m=(o=!0)=>{u.useEffect(()=>{if(!o)return;const t=window.scrollY,d=document.body.style.overflow,s=document.body.style.position,c=document.body.style.top,i=document.body.style.width,r=document.documentElement.style.overflow;document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${t}px`,document.body.style.width="100%",document.documentElement.style.overflow="hidden";const e=n=>{const l=n.target;l instanceof Element&&l.closest(y)||n.preventDefault()};return document.addEventListener("touchmove",e,{passive:!1}),()=>{document.removeEventListener("touchmove",e),document.body.style.overflow=d,document.body.style.position=s,document.body.style.top=c,document.body.style.width=i,document.documentElement.style.overflow=r,window.scrollTo({top:t,left:0,behavior:"instant"})}},[o])};exports.useLightboxScrollLock=m;
@@ -1,18 +0,0 @@
1
- import { useEffect as y } from "react";
2
- const m = "[data-lightbox-scrollable]", f = (o = !0) => {
3
- y(() => {
4
- if (!o) return;
5
- const t = window.scrollY, d = document.body.style.overflow, s = document.body.style.position, c = document.body.style.top, i = document.body.style.width, r = document.documentElement.style.overflow;
6
- document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.top = `-${t}px`, document.body.style.width = "100%", document.documentElement.style.overflow = "hidden";
7
- const e = (n) => {
8
- const l = n.target;
9
- l instanceof Element && l.closest(m) || n.preventDefault();
10
- };
11
- return document.addEventListener("touchmove", e, { passive: !1 }), () => {
12
- document.removeEventListener("touchmove", e), document.body.style.overflow = d, document.body.style.position = s, document.body.style.top = c, document.body.style.width = i, document.documentElement.style.overflow = r, window.scrollTo({ top: t, left: 0, behavior: "instant" });
13
- };
14
- }, [o]);
15
- };
16
- export {
17
- f as u
18
- };