@cntrl-site/components 1.0.120-alpha.1 → 1.0.120-alpha.2

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.
@@ -0,0 +1,272 @@
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
+ .${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
+ }
62
+ .${e}-slide {
63
+ position: relative;
64
+ flex: 0 0 100%;
65
+ width: 100%;
66
+ height: 100%;
67
+ }
68
+ .${e}-list-fade .${e}-slide {
69
+ position: absolute;
70
+ top: 0;
71
+ left: 0;
72
+ opacity: 0;
73
+ transition: opacity ${H}ms ${De};
74
+ }
75
+ .${e}-list-fade .${e}-slide.${e}-is-active {
76
+ opacity: 1;
77
+ z-index: 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
+ ${V("width",30,i)}
101
+ ${V("height",30,i)}
102
+ transition: opacity 0.15s ease-in-out;
103
+ }
104
+ .${e}-arrow-prev {
105
+ ${V("left",-20,i)}
106
+ transform: translate3d(-50%, -50%, 0);
107
+ }
108
+ .${e}-arrow-next {
109
+ left: unset;
110
+ ${V("right",-20,i)}
111
+ transform: translate3d(50%, -50%, 0);
112
+ }
113
+ .${e}-arrow-prev-vertical {
114
+ left: 50%;
115
+ ${V("top",-20,i)}
116
+ transform: translate3d(-50%, -50%, 0);
117
+ }
118
+ .${e}-arrow-next-vertical {
119
+ left: 50%;
120
+ right: unset;
121
+ top: unset;
122
+ ${V("bottom",-20,i)}
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}-contain {
253
+ object-fit: contain;
254
+ }
255
+ .${e}-cover {
256
+ object-fit: cover;
257
+ }
258
+ .${e}-transition-reveal .${e}-slide.${e}-is-active .${e}-slider-image {
259
+ animation: ${e}-reveal-horizontal ${H}ms ease;
260
+ }
261
+ .${e}-transition-reveal-vertical .${e}-slide.${e}-is-active .${e}-slider-image {
262
+ animation: ${e}-reveal-vertical ${H}ms ease;
263
+ }
264
+ @keyframes ${e}-reveal-horizontal {
265
+ from { clip-path: inset(0 100% 0 0); }
266
+ to { clip-path: inset(0 0 0 0); }
267
+ }
268
+ @keyframes ${e}-reveal-vertical {
269
+ from { clip-path: inset(100% 0 0 0); }
270
+ to { clip-path: inset(0 0 0 0); }
271
+ }
272
+ `}function pt({settings:e,content:i,isEditor:n,isPreviewMode:b,isEditMode:f}){const{prefix:r}=Qe.useScopedStyles(),K=it(e,n),C=i??[],s=C.length,Z=(e==null?void 0:e.trigger)??je,X=Z.sizeType??"drag",J=Z.value??je.value,B=(e==null?void 0:e.direction)??"horizontal",ne=(e==null?void 0:e.transition)??"slide",Le=(e==null?void 0:e.nav)??"classic",fe=(e==null?void 0:e.navSize)??"m",p=nt[fe],Oe=typeof(e==null?void 0:e.navUnit)=="number"?e.navUnit:1/1440,v=t=>S.scalingValue(t*Oe,n),he=(e==null?void 0:e.show)??"always",L=(e==null?void 0:e.controls)??null,ve=typeof(e==null?void 0:e.controlsMaxWidth)=="number"?e.controlsMaxWidth:65/1440,me=typeof(e==null?void 0:e.paddingX)=="number"?e.paddingX:0,$e=typeof(e==null?void 0:e.paddingY)=="number"?e.paddingY:0,O=(e==null?void 0:e.controlsColor)??Ne.color,Q=(e==null?void 0:e.controlsHoverColor)??Ne.hover,ze=(e==null?void 0:e.navColor)??U.colors.inactive,_e=(e==null?void 0:e.navPaginationColor)??U.colors.pagination,Fe=(e==null?void 0:e.navBackgroundColor)??U.colors.background,xe=(e==null?void 0:e.linkColor)??pe.linkColor,Ye=typeof(e==null?void 0:e.captionMarginTop)=="number"?e.captionMarginTop:0,u=B==="horizontal",Ve=X==="click",ae=X==="drag",we=X==="auto"&&(!n||!!b),ye=!n,m=ne==="slide",He=Le==="classic",Xe=he!=="never"&&ve>0,be=he==="on hover",ie=S.scalingValue(ve,n),P={width:ie,height:ie,maxWidth:ie},$=m&&s>1,[x,ee]=l.useState(0),[j,A]=l.useState($?1:0),[ge,Be]=l.useState(!1),[ce,R]=l.useState(!1),[We,le]=l.useState(!1),[Se,M]=l.useState(0),[se,de]=l.useState(!1),[Ce,Ie]=l.useState(!1),ue=l.useRef(!1),N=l.useRef(j);N.current=j;const z=l.useRef(null),W=l.useRef(0),te=l.useRef(null),Te=l.useRef(null),_=l.useRef(null),D=l.useRef(null),T=l.useCallback(t=>{ue.current=t,Be(t)},[]),F=l.useCallback(t=>{if(s<2||t===0)return;const o=t>0?1:-1,c=Math.abs(t);if(de(!0),T(!0),!m){ee(k=>E(k+t,s));return}let d=N.current;const w=$&&(d===0||d===s+1),y=w?x+1:null;w&&(d=x+1);let h=c;for(;h>0;){const k=ct(d,o,s,$);if(d=k.position,h-=1,k.hitBoundary){W.current=h*o;break}}const I=c-h;if(I>0&&ee(k=>E(k+I*o,s)),N.current=d,y!==null){if(N.current=y,d===y){R(!0),A(d);return}z.current=d,R(!0),A(y);return}R(!1),A(d)},[x,s,$,m,T]),G=l.useCallback(t=>{F(t)},[F]),Ge=l.useCallback(t=>{if(s<2)return;const o=E(t,s);if(!(o===x&&!ue.current)&&(de(!0),T(!0),ee(o),m)){const c=o+($?1:0);z.current=null,W.current=0,N.current=c,R(!1),A(c)}},[x,s,$,m,T]);l.useEffect(()=>{if(!ge)return;const t=window.setTimeout(()=>{if($&&(j===0||j===s+1)){z.current=null,R(!0),A(x+1);return}T(!1)},H);return()=>window.clearTimeout(t)},[x,s,$,ge,T,j]),l.useEffect(()=>{if(!ce)return;let t=0;const o=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>{const c=z.current;z.current=null;const d=W.current;if(W.current=0,R(!1),c!==null){N.current=c,A(c);return}if(d!==0){F(d);return}T(!1)})});return()=>{cancelAnimationFrame(o),cancelAnimationFrame(t)}},[F,T,ce]);const oe=`${$}:${s}`,ke=l.useRef(oe);l.useEffect(()=>{if(ke.current===oe)return;ke.current=oe;const t=s>0?Math.min(x,s-1):0;_.current=null,D.current=null,le(!1),M(0),ee(t),R(!0),A(t+($?1:0))},[x,s,$,oe]),l.useEffect(()=>{if(!se)return;const t=window.setTimeout(()=>de(!1),Pe);return()=>window.clearTimeout(t)},[se,x]),l.useEffect(()=>{if(!we||s<2)return;const t=Math.max(J,.1)*1e3,o=window.setInterval(()=>{ye&&Ce||G(1)},t);return()=>window.clearInterval(o)},[J,s,G,we,Ce,ye]);const q=l.useCallback(t=>{const o=_.current;if(!o||o.pointerId!==t.pointerId)return;_.current=null,D.current=null;const c=te.current;if(c!=null&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId),!o.isActive){m&&M(0);return}const w=!(t.timeStamp-o.lastTime>rt)&&Math.abs(o.velocity)>ot,y=o.size>0&&Math.abs(o.offset-o.baseOffset)>o.size*tt;if(le(!1),!w&&!y){M(0);return}const h=y?o.offset-o.baseOffset:o.velocity;let I=1;y&&o.size>0&&(I=Math.max(1,Math.round(Math.abs(h)/o.size))),M(0),F(h<0?I:-I)},[F,m]);l.useEffect(()=>{const t=o=>{D.current===null||o.pointerId!==D.current||q(o)};return window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[q]);const qe=t=>{const o=te.current;if(!ae||s<2||!o||t.pointerType==="mouse"&&t.button!==0)return;z.current=null,W.current=0,ue.current&&T(!1);let c=0;const d=Te.current;if(m&&d){const w=u?d.offsetWidth:d.offsetHeight;if(w>0){const y=lt(d,u);let h=N.current;$&&(h===0||h===s+1)?(h=x+1,N.current=h,R(!0),A(h),c=0):c=y+h*w,M(c)}}o.setPointerCapture(t.pointerId),D.current=t.pointerId,_.current={pointerId:t.pointerId,startClientX:t.clientX,startClientY:t.clientY,axes:st(o,`${r}-axis-probe`),size:u?o.offsetWidth:o.offsetHeight,isActive:!1,baseOffset:c,offset:c,lastTime:t.timeStamp,velocity:0}},Ue=t=>{const o=_.current;if(!o||o.pointerId!==t.pointerId)return;if(t.pointerType==="mouse"&&t.buttons===0){q(t);return}const c=t.clientX-o.startClientX,d=t.clientY-o.startClientY,w=o.axes?dt(o.axes,c,d):{x:c,y:d},y=u?w.x:w.y,h=u?w.y:w.x,I=o.baseOffset+y;if(!o.isActive){if(Math.max(Math.abs(y),Math.abs(h))<et)return;if(Math.abs(h)>Math.abs(y)){const re=te.current;re!=null&&re.hasPointerCapture(o.pointerId)&&re.releasePointerCapture(o.pointerId),_.current=null,D.current=null,m&&M(0);return}o.isActive=!0,le(!0)}const k=t.timeStamp-o.lastTime;k>0&&(o.velocity=(I-o.offset)/k,o.lastTime=t.timeStamp),o.offset=I,m&&M(I)},Ae=t=>{q(t)},Ee=u?`translate3d(calc(${-j*100}% + ${Se}px), 0, 0)`:`translate3d(0, calc(${-j*100}% + ${Se}px), 0)`,Ke=$?[C[s-1],...C,C[0]]:C;return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:ut(r,n)}}),a.jsxs("div",{className:g(`${r}-wrapper`,{[`${r}-transition-reveal`]:ne==="reveal",[`${r}-transition-reveal-vertical`]:ne==="reveal"&&!u}),onMouseEnter:()=>Ie(!0),onMouseLeave:()=>Ie(!1),children:[a.jsxs("div",{className:`${r}-slider-inner`,style:{backgroundColor:"transparent"},children:[a.jsxs("div",{ref:te,className:g(`${r}-track`,{[`${r}-track-draggable`]:ae,[`${r}-track-draggable-vertical`]:ae&&!u}),onPointerDown:qe,onPointerMove:Ue,onPointerUp:Ae,onPointerCancel:Ae,onLostPointerCapture:t=>{D.current===t.pointerId&&q(t)},children:[a.jsx("div",{ref:Te,className:g(`${r}-list`,{[`${r}-list-slide`]:m,[`${r}-list-slide-vertical`]:m&&!u,[`${r}-list-fade`]:!m}),style:m?{transform:Ee,transition:We||ce?"none":`transform ${H}ms ${De}`}:void 0,children:Ke.map((t,o)=>{const c=$?E(o-1,s):o,w=$&&(o===0||o===s+1)?`clone-${o===0?"start":"end"}`:`slide-${c}`;return a.jsx("div",{className:g(`${r}-slide`,{[`${r}-is-active`]:!m&&c===x}),children:a.jsx("div",{className:`${r}-slider-item`,children:a.jsx("div",{className:`${r}-img-wrapper`,children:a.jsx("img",{className:g(`${r}-slider-image`,{[`${r}-contain`]:t.image.objectFit==="contain",[`${r}-cover`]:t.image.objectFit==="cover"}),src:t.image.assetId,alt:t.image.name??"",draggable:!1})})})},w)})}),Ve&&a.jsx("div",{className:`${r}-click-overlay`,onClick:()=>G(1)})]}),Xe&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:g(`${r}-arrow`,{[`${r}-arrow-prev`]:u,[`${r}-arrow-prev-vertical`]:!u,[`${r}-hover-arrow`]:be}),style:{color:O,"--arrow-hover-color":Q,...P},children:a.jsxs("button",{onClick:t=>{t.stopPropagation(),G(-1)},className:`${r}-arrow-inner`,style:{transform:`translate(${S.scalingValue(me,n)}, ${S.scalingValue($e*(u?1:-1),n)}) rotate(${u?"0deg":"90deg"})`},children:[L&&a.jsx(Re.SvgImage,{url:L,fill:O,hoverFill:Q,className:g(`${r}-arrow-img`,`${r}-mirror`),style:P}),!L&&a.jsx(Me,{color:O,className:g(`${r}-arrow-icon`,`${r}-arrow-img`,`${r}-mirror`)})]})}),a.jsx("div",{className:g(`${r}-arrow`,{[`${r}-arrow-next`]:u,[`${r}-arrow-next-vertical`]:!u,[`${r}-hover-arrow`]:be}),style:{color:O,"--arrow-hover-color":Q,...P},children:a.jsxs("button",{className:`${r}-arrow-inner`,onClick:t=>{t.stopPropagation(),G(1)},style:{transform:`translate(${S.scalingValue(me*(u?-1:1),n)}, ${S.scalingValue($e,n)}) rotate(${u?"0deg":"90deg"})`},children:[L&&a.jsx(Re.SvgImage,{url:L,fill:O,hoverFill:Q,className:`${r}-arrow-img`,style:P}),!L&&a.jsx(Me,{color:O,className:g(`${r}-arrow-icon`,`${r}-arrow-img`)})]})})]}),He&&a.jsx("div",{className:g(`${r}-pagination`,{[`${r}-pagination-inside-bottom`]:u,[`${r}-pagination-inside-left`]:!u}),style:u?{bottom:v(p.inset)}:{left:v(p.inset)},children:a.jsx("div",{className:g(`${r}-pagination-inner`,{[`${r}-pagination-vertical`]:!u,[`${r}-animate-dots`]:se}),style:{backgroundColor:Fe,gap:v(p.gapInactive-p.activeDot+p.dot),...u?{height:v(p.activeDot+p.paddingY*2),paddingTop:v(p.paddingY),paddingBottom:v(p.paddingY),paddingLeft:v(p.paddingActive),paddingRight:v(p.paddingActive)}:{width:v(p.activeDot+p.paddingY*2),paddingLeft:v(p.paddingY),paddingRight:v(p.paddingY),paddingTop:v(p.paddingActive),paddingBottom:v(p.paddingActive)},borderRadius:v(p.borderRadius),transform:`translate(${S.scalingValue(U.offset.x,n)}, ${S.scalingValue(U.offset.y,n)})`},children:C.map((t,o)=>{const c=o===x,d=c?p.activeDot:p.dot;return a.jsx("button",{onClick:()=>Ge(o),className:`${r}-pagination-item`,style:{width:v(p.activeDot)},children:a.jsx("div",{className:`${r}-dot`,style:{backgroundColor:c?_e:ze,width:v(d)}})},o)})},`${fe}-${B}`)})]}),a.jsxs("div",{className:`${r}-caption-block`,children:[a.jsx("div",{"data-controls":f?"captionMarginTop":void 0,className:f?`${r}-control`:void 0,style:{height:S.scalingValue(Ye,n)}}),a.jsx("div",{className:`${r}-caption-text-wrapper`,children:C.map((t,o)=>a.jsx("div",{className:g(`${r}-caption-text`,{[`${r}-with-pointer-events`]:o===x&&n,[`${r}-active`]:o===x}),style:{...K,width:"max-content",transitionDuration:`${Math.round(H/2)}ms`},children:a.jsx("div",{className:`${r}-caption-text-inner`,style:{"--link-color":xe,"--link-hover-color":xe,position:"relative",top:S.scalingValue(pe.offset.y,n),left:S.scalingValue(pe.offset.x,n)},children:a.jsx(Ze.RichTextRenderer,{content:t.imageCaption})})},o))})]})]})]})}function Me({color:e,className:i}){return a.jsx("svg",{viewBox:"0 0 10 18",className:i,children:a.jsx("g",{id:"Symbols",stroke:"none",strokeWidth:"1",fillRule:"evenodd",children:a.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=pt;