@cntrl-site/components 1.0.101 → 1.0.102

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 (130) hide show
  1. package/README.md +25 -1
  2. package/dist/Burger-C6jI6C1c.js +661 -0
  3. package/dist/Burger-EMSn7TPB.mjs +1807 -0
  4. package/dist/ClickGallerie-D_O1XhAO.mjs +270 -0
  5. package/dist/ClickGallerie-M9xdGR1G.js +36 -0
  6. package/dist/Components/Burger/BurgerComponent.d.ts +0 -1
  7. package/dist/Components/ClickGallerie/ClickGallerieComponent.d.ts +0 -1
  8. package/dist/Components/FAQ/FAQComponent.d.ts +0 -1
  9. package/dist/Components/Form/FormComponent.d.ts +0 -1
  10. package/dist/Components/Grid/GridComponent.d.ts +0 -1
  11. package/dist/Components/Helix/HelixComponent.d.ts +0 -1
  12. package/dist/Components/Hive/HiveComponent.d.ts +0 -1
  13. package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +0 -1
  14. package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +0 -1
  15. package/dist/Components/List/ListComponent.d.ts +0 -1
  16. package/dist/Components/Marquee/MarqueeComponent.d.ts +0 -1
  17. package/dist/Components/MarqueeText/MarqueeTextComponent.d.ts +0 -1
  18. package/dist/Components/Mercury/MercuryComponent.d.ts +0 -1
  19. package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +0 -1
  20. package/dist/Components/Pretext/PretextComponent.d.ts +0 -1
  21. package/dist/Components/Scale/ScaleComponent.d.ts +0 -1
  22. package/dist/Components/SimpleButton/SimpleButtonComponent.d.ts +0 -1
  23. package/dist/Components/Slider20/Slider20Component.d.ts +0 -1
  24. package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +0 -1
  25. package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +0 -1
  26. package/dist/Components/Waterfall/WaterfallComponent.d.ts +0 -1
  27. package/dist/ControlSlider-SiOt22l_.js +1 -0
  28. package/dist/ControlSlider-pZv7H6BU.mjs +334 -0
  29. package/dist/FAQ-C7823fyi.js +166 -0
  30. package/dist/FAQ-CZ39u4m8.mjs +588 -0
  31. package/dist/Form-BX5_41nb.mjs +472 -0
  32. package/dist/Form-Dn-6A1He.js +153 -0
  33. package/dist/Grid-CemGhf3F.js +374 -0
  34. package/dist/Grid-cfQsXW3b.mjs +1553 -0
  35. package/dist/Helix-2Vr-9WBa.js +43 -0
  36. package/dist/Helix-BmkAKT1G.mjs +315 -0
  37. package/dist/Hive-BC6zQBsv.js +321 -0
  38. package/dist/Hive-BGMWinrW.mjs +1425 -0
  39. package/dist/HiveLightboxTitles-DhEeFKWs.mjs +507 -0
  40. package/dist/HiveLightboxTitles-DlyptAaK.js +1 -0
  41. package/dist/ImageRevealSlider-BBWtFjUF.js +1 -0
  42. package/dist/ImageRevealSlider-BdFGyVEP.mjs +184 -0
  43. package/dist/Lightbox-CIss_nOG.js +1 -0
  44. package/dist/Lightbox-eP9qAZzL.mjs +665 -0
  45. package/dist/LightboxJournal-D59ex6wH.mjs +1613 -0
  46. package/dist/LightboxJournal-DAEZOPDi.js +523 -0
  47. package/dist/LightboxStrip-BDjI1jyH.js +386 -0
  48. package/dist/LightboxStrip-YspzBP8N.mjs +1574 -0
  49. package/dist/List-C32WImI3.js +377 -0
  50. package/dist/List-DW7fyJbf.mjs +1891 -0
  51. package/dist/Marquee-BYClHHws.mjs +551 -0
  52. package/dist/Marquee-vmHaTGIP.js +133 -0
  53. package/dist/MarqueeText-4Rip_sQX.mjs +515 -0
  54. package/dist/MarqueeText-E6OubMOG.js +132 -0
  55. package/dist/Mercury-BwF_XW2w.js +267 -0
  56. package/dist/Mercury-DuKJQ1Zo.mjs +1701 -0
  57. package/dist/OnelinerForm-BEu7_sho.mjs +434 -0
  58. package/dist/OnelinerForm-C2Y_XMCY.js +194 -0
  59. package/dist/Pretext-10CcyP1E.mjs +2762 -0
  60. package/dist/Pretext-DvQ3xsni.js +231 -0
  61. package/dist/PretextComponent-C3YFICy8.js +1 -0
  62. package/dist/PretextComponent-Ct0newmn.mjs +11624 -0
  63. package/dist/RichTextRenderer-B6WtTYlR.mjs +32 -0
  64. package/dist/RichTextRenderer-CIy6yI8U.js +1 -0
  65. package/dist/Scale-976sjO8e.js +111 -0
  66. package/dist/Scale-rLNT4KAk.mjs +345 -0
  67. package/dist/SimpleButton-C-o2W9bS.mjs +451 -0
  68. package/dist/SimpleButton-nGEcO2gB.js +243 -0
  69. package/dist/Slider20-C9o2REDl.js +272 -0
  70. package/dist/Slider20-Dm8BeCli.mjs +851 -0
  71. package/dist/SvgImage-B5mR9y6q.mjs +51 -0
  72. package/dist/SvgImage-DFlmxAoL.js +1 -0
  73. package/dist/TestimonialGrid-CPu4qQ6B.mjs +492 -0
  74. package/dist/TestimonialGrid-D4ieiz9e.js +90 -0
  75. package/dist/TestimonialSingle-CVu15ZtV.js +125 -0
  76. package/dist/TestimonialSingle-DLdnAVF7.mjs +391 -0
  77. package/dist/Waterfall-A0FjM2my.mjs +1400 -0
  78. package/dist/Waterfall-DnPDHbCL.js +287 -0
  79. package/dist/buildColorVars-CE2D5cQV.js +1 -0
  80. package/dist/buildColorVars-CLyWQm5K.mjs +21 -0
  81. package/dist/components-OE3ac1dr.js +1 -0
  82. package/dist/components-w-jHX-2U.mjs +2053 -0
  83. package/dist/components.css +1 -1
  84. package/dist/elements.d.ts +7 -0
  85. package/dist/elements.js +1 -0
  86. package/dist/elements.mjs +63 -0
  87. package/dist/elements.node.d.ts +6 -0
  88. package/dist/elements.node.js +1 -0
  89. package/dist/elements.node.mjs +21 -0
  90. package/dist/forking.d.ts +1 -0
  91. package/dist/formFieldValidation-DZl2KVaF.js +1 -0
  92. package/dist/formFieldValidation-DvihFrq5.mjs +21 -0
  93. package/dist/getColorAlpha-BVBY0N5x.mjs +39 -0
  94. package/dist/getColorAlpha-CoSseoCn.js +1 -0
  95. package/dist/getImageRect-BQhQXvT8.js +1 -0
  96. package/dist/getImageRect-CBMhFNHM.mjs +109 -0
  97. package/dist/index.d.ts +1 -0
  98. package/dist/index.js +1 -28862
  99. package/dist/index.mjs +16 -62473
  100. package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
  101. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
  102. package/dist/panelAvailability-D179wwJx.mjs +27 -0
  103. package/dist/panelAvailability-DnOe0rQ4.js +1 -0
  104. package/dist/react-splide.esm-CabaEmHi.js +6 -0
  105. package/dist/react-splide.esm-DQqds4PL.mjs +1750 -0
  106. package/dist/readTestimonialTextMeasure-BIXpGFEt.mjs +13 -0
  107. package/dist/readTestimonialTextMeasure-CEPaB4Sy.js +1 -0
  108. package/dist/scalingValue-C9JH5L6O.mjs +6 -0
  109. package/dist/scalingValue-CSHYgTZl.js +1 -0
  110. package/dist/sources.d.ts +1 -0
  111. package/dist/sources.js +23753 -0
  112. package/dist/sources.mjs +23779 -0
  113. package/dist/textStylesToCss-05Mn6I_2.mjs +32 -0
  114. package/dist/textStylesToCss-CNN3zZTV.js +1 -0
  115. package/dist/types/Component.d.ts +0 -1
  116. package/dist/useLightboxScrollLock-Hf16Eq4g.js +1 -0
  117. package/dist/useLightboxScrollLock-VQ07s7EJ.mjs +18 -0
  118. package/dist/useLightboxSwipeDismiss-Br9uE5G0.js +1 -0
  119. package/dist/useLightboxSwipeDismiss-SGv6Ra33.mjs +95 -0
  120. package/dist/useScopedStyles-Bf6yohVQ.js +1 -0
  121. package/dist/useScopedStyles-DhBG3557.mjs +11 -0
  122. package/dist/utils-033j3qNL.js +1 -0
  123. package/dist/utils-FxC9rcxw.mjs +247 -0
  124. package/dist/utils.js +1 -1
  125. package/dist/utils.mjs +17 -11
  126. package/package.json +31 -2
  127. package/dist/index-2JTNRDR1.js +0 -1
  128. package/dist/index-DA8t6EZ4.mjs +0 -255
  129. package/dist/panelAvailability-CgSic84c.mjs +0 -126
  130. package/dist/panelAvailability-D8c7cdbu.js +0 -1
@@ -0,0 +1,243 @@
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
+ .${o}-root {
3
+ line-height: 0;
4
+ }
5
+ .${o}-wrapper {
6
+ display: inline-flex;
7
+ vertical-align: top;
8
+ pointer-events: none;
9
+ }
10
+ .${o}-button {
11
+ display: inline-flex;
12
+ align-items: center;
13
+ box-sizing: border-box;
14
+ border-style: solid;
15
+ border-color: var(--${o}-border-color);
16
+ background-color: var(--${o}-background-color);
17
+ color: var(--${o}-text-color);
18
+ -webkit-backdrop-filter: var(--${o}-backdrop-blur, none);
19
+ backdrop-filter: var(--${o}-backdrop-blur, none);
20
+ cursor: pointer;
21
+ font: inherit;
22
+ white-space: pre-wrap;
23
+ overflow-wrap: anywhere;
24
+ word-break: break-word;
25
+ user-select: none;
26
+ pointer-events: auto;
27
+ transition: color 250ms, background-color 250ms, border-color 250ms, transform 250ms, box-shadow 250ms, backdrop-filter 250ms;
28
+ box-shadow: ${l};
29
+ }
30
+ .${o}-wrapper.${o}-editing .${o}-button {
31
+ transition: color 250ms, background-color 250ms, border-color 250ms, transform 250ms;
32
+ }
33
+ ${v("scale-up")},
34
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-scale-up {
35
+ transform: scale(1.05);
36
+ }
37
+ ${v("lift")},
38
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-lift {
39
+ transform: translateY(-2px);
40
+ box-shadow: ${g};
41
+ }
42
+ .${o}-hover-effect-reveal,
43
+ .${o}-hover-effect-swipe {
44
+ position: relative;
45
+ overflow: hidden;
46
+ }
47
+ .${o}-hover-effect-reveal .${o}-button-inner,
48
+ .${o}-hover-effect-reveal .${o}-text,
49
+ .${o}-hover-effect-reveal .${o}-icon,
50
+ .${o}-hover-effect-swipe .${o}-button-inner,
51
+ .${o}-hover-effect-swipe .${o}-text,
52
+ .${o}-hover-effect-swipe .${o}-icon {
53
+ position: relative;
54
+ z-index: 1;
55
+ }
56
+ .${o}-hover-effect-reveal::before {
57
+ content: '';
58
+ position: absolute;
59
+ inset: 0;
60
+ background-color: var(--${o}-hover-background-color, var(--${o}-background-color));
61
+ pointer-events: none;
62
+ z-index: 0;
63
+ transform: scaleY(0);
64
+ transform-origin: bottom center;
65
+ transition: transform 120ms;
66
+ }
67
+ .${o}-hover-effect-reveal:hover::before,
68
+ .${o}-hover-effect-reveal:focus-visible::before,
69
+ a:focus-visible .${o}-hover-effect-reveal::before,
70
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-reveal::before {
71
+ transform: scaleY(1);
72
+ transform-origin: top center;
73
+ }
74
+ .${o}-hover-effect-reveal.${o}-reveal-from-bottom::before {
75
+ transform-origin: top center;
76
+ }
77
+ .${o}-hover-effect-reveal.${o}-reveal-from-bottom:hover::before,
78
+ .${o}-hover-effect-reveal.${o}-reveal-from-bottom:focus-visible::before,
79
+ a:focus-visible .${o}-hover-effect-reveal.${o}-reveal-from-bottom::before,
80
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-reveal.${o}-reveal-from-bottom::before {
81
+ transform-origin: bottom center;
82
+ }
83
+ .${o}-hover-effect-swipe::before {
84
+ content: '';
85
+ position: absolute;
86
+ inset: 0;
87
+ background-color: var(--${o}-hover-background-color, var(--${o}-background-color));
88
+ pointer-events: none;
89
+ z-index: 0;
90
+ transform: translateX(-100%);
91
+ transition: transform 250ms;
92
+ }
93
+ .${o}-hover-effect-swipe:hover::before,
94
+ .${o}-hover-effect-swipe:focus-visible::before,
95
+ a:focus-visible .${o}-hover-effect-swipe::before,
96
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-swipe::before {
97
+ transform: translateX(0);
98
+ }
99
+ ${v("reveal")},
100
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-reveal,
101
+ ${v("swipe")},
102
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-swipe {
103
+ background-color: var(--${o}-background-color);
104
+ }
105
+ .${o}-hover-effect-content-roll {
106
+ position: relative;
107
+ overflow: hidden;
108
+ align-items: stretch;
109
+ }
110
+ .${o}-content-roll-wrap {
111
+ position: relative;
112
+ align-self: stretch;
113
+ min-width: 0;
114
+ }
115
+ .${o}-content-roll-wrap.${o}-icon-text-roll {
116
+ flex: 1;
117
+ width: 100%;
118
+ }
119
+ .${o}-content-roll-wrap.${o}-icon-roll,
120
+ .${o}-content-roll-wrap.${o}-label-roll {
121
+ display: inline-block;
122
+ flex: 1;
123
+ }
124
+ .${o}-content-roll-spacer {
125
+ visibility: hidden;
126
+ pointer-events: none;
127
+ }
128
+ .${o}-content-roll-viewport {
129
+ position: absolute;
130
+ inset: 0;
131
+ pointer-events: none;
132
+ }
133
+ .${o}-content-roll-layer {
134
+ position: absolute;
135
+ left: 0;
136
+ right: 0;
137
+ top: 50%;
138
+ transform: translateY(-50%);
139
+ transition: transform 250ms ease, opacity 250ms ease, top 250ms ease;
140
+ opacity: 1;
141
+ pointer-events: none;
142
+ }
143
+ .${o}-content-roll-layer-hover {
144
+ top: 0;
145
+ transform: translateY(-100%);
146
+ opacity: 0;
147
+ }
148
+ .${o}-hover-effect-content-roll:hover .${o}-content-roll-layer:not(.${o}-content-roll-layer-hover),
149
+ .${o}-hover-effect-content-roll:focus-visible .${o}-content-roll-layer:not(.${o}-content-roll-layer-hover),
150
+ a:focus-visible .${o}-hover-effect-content-roll .${o}-content-roll-layer:not(.${o}-content-roll-layer-hover),
151
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-content-roll .${o}-content-roll-layer:not(.${o}-content-roll-layer-hover) {
152
+ top: 100%;
153
+ transform: translateY(0);
154
+ opacity: 0;
155
+ }
156
+ .${o}-hover-effect-content-roll:hover .${o}-content-roll-layer-hover,
157
+ .${o}-hover-effect-content-roll:focus-visible .${o}-content-roll-layer-hover,
158
+ a:focus-visible .${o}-hover-effect-content-roll .${o}-content-roll-layer-hover,
159
+ .${o}-wrapper.${o}-state-hover .${o}-hover-effect-content-roll .${o}-content-roll-layer-hover {
160
+ top: 50%;
161
+ transform: translateY(-50%);
162
+ opacity: 1;
163
+ }
164
+ ${V} {
165
+ background-color: var(--${o}-hover-background-color, var(--${o}-background-color));
166
+ color: var(--${o}-hover-text-color, var(--${o}-text-color));
167
+ border-color: var(--${o}-hover-border-color, var(--${o}-border-color));
168
+ box-shadow: ${$};
169
+ }
170
+ .${o}-wrapper.${o}-state-hover .${o}-button {
171
+ background-color: var(--${o}-hover-background-color, var(--${o}-background-color));
172
+ color: var(--${o}-hover-text-color, var(--${o}-text-color));
173
+ border-color: var(--${o}-hover-border-color, var(--${o}-border-color));
174
+ box-shadow: ${$};
175
+ }
176
+ .${o}-button:focus,
177
+ .${o}-button:focus-visible,
178
+ a:focus:has(.${o}-button),
179
+ a:focus-visible:has(.${o}-button) {
180
+ outline: none;
181
+ }
182
+ .${o}-button:active,
183
+ a:active .${o}-button {
184
+ background-color: var(--${o}-active-background-color, var(--${o}-background-color));
185
+ color: var(--${o}-active-text-color, var(--${o}-text-color));
186
+ border-color: var(--${o}-active-border-color, var(--${o}-border-color));
187
+ box-shadow: ${p};
188
+ }
189
+ .${o}-wrapper.${o}-state-active .${o}-button {
190
+ background-color: var(--${o}-active-background-color, var(--${o}-background-color));
191
+ color: var(--${o}-active-text-color, var(--${o}-text-color));
192
+ border-color: var(--${o}-active-border-color, var(--${o}-border-color));
193
+ box-shadow: ${p};
194
+ }
195
+ .${o}-text {
196
+ display: block;
197
+ flex: 1;
198
+ min-width: 0;
199
+ }
200
+ .${o}-icon {
201
+ display: block;
202
+ flex-shrink: 0;
203
+ position: relative;
204
+ }
205
+ .${o}-icon-image {
206
+ transition: background-color 250ms;
207
+ }
208
+ .${o}-button:hover .${o}-icon-image,
209
+ .${o}-button:focus-visible .${o}-icon-image,
210
+ a:focus-visible .${o}-button .${o}-icon-image,
211
+ .${o}-wrapper.${o}-state-hover .${o}-icon-image {
212
+ --fill: var(--${o}-hover-icon-color, var(--${o}-icon-color)) !important;
213
+ --hover-fill: var(--${o}-hover-icon-color, var(--${o}-icon-color)) !important;
214
+ }
215
+ .${o}-button:active .${o}-icon-image,
216
+ a:active .${o}-button .${o}-icon-image,
217
+ .${o}-wrapper.${o}-state-active .${o}-icon-image {
218
+ --fill: var(--${o}-active-icon-color, var(--${o}-icon-color)) !important;
219
+ --hover-fill: var(--${o}-active-icon-color, var(--${o}-icon-color)) !important;
220
+ }
221
+ .${o}-icon .${o}-icon-image {
222
+ width: 100%;
223
+ height: 100%;
224
+ }
225
+ .${o}-icon-fill {
226
+ max-width: 100%;
227
+ width: 100%;
228
+ height: auto;
229
+ }
230
+ .${o}-icon-fill .${o}-icon-image {
231
+ position: relative;
232
+ top: auto;
233
+ left: auto;
234
+ transform: none;
235
+ width: 100%;
236
+ height: auto;
237
+ }
238
+ .${o}-icon-inline {
239
+ display: inline-block;
240
+ height: calc(1em * var(--${o}-icon-scale, 1));
241
+ width: calc(1em * var(--${o}-icon-scale, 1));
242
+ }
243
+ `}function T(o,e,a="",l,c){const r=e();return n.jsxs("span",{className:`${o}-content-roll-wrap ${a}`.trim(),style:l,children:[n.jsx("span",{className:`${o}-content-roll-spacer`,"aria-hidden":"true",style:c,children:r}),n.jsxs("span",{className:`${o}-content-roll-viewport`,children:[n.jsx("span",{className:`${o}-content-roll-layer`,style:c,children:e()}),n.jsx("span",{className:`${o}-content-roll-layer ${o}-content-roll-layer-hover`,"aria-hidden":"true",style:c,children:e()})]})]})}function M(o,e,a="fill",l=100,c=0,r){if(!e)return null;const $=n.jsx(uo.SvgImage,{url:e,fill:`var(--${o}-icon-color)`,hoverFill:`var(--${o}-icon-color)`,className:`${o}-icon-image`});if(a==="inline")return n.jsx("span",{className:`${o}-icon ${o}-icon-inline`,style:{[`--${o}-icon-scale`]:l/100},"aria-hidden":"true",children:$});if(a==="fixed"&&c>0){const s=t.scalingValue(c,r);return n.jsx("span",{className:`${o}-icon`,style:{width:s,height:s},"aria-hidden":"true",children:$})}return n.jsx("span",{className:`${o}-icon ${o}-icon-fill`,"aria-hidden":"true",children:$})}function So({settings:o,isEditor:e,isPreviewMode:a,activeEvent:l,hasLink:c}){const{prefix:r}=xo.useScopedStyles(),$=bo.useMemo(()=>ko(r),[r]),{type:s="a",label:h="Button",icon:p,alignment:g="center",alignA:C,order:V="text-icon",gap:v=0,iconSize:f=0,iconWidthC:R=0,dimensions:O=!1,padding:m={top:0,right:0,bottom:0,left:0},cornerRadius:q=0,boxShadow:w={top:0,left:0,right:0,bottom:0},boxShadowColor:z="rgba(0, 0, 0, 0)",innerBoxShadow:y={top:0,left:0,right:0,bottom:0},innerBoxShadowColor:H="rgba(0, 0, 0, 0)",stroke:W=0,blur:A=0,backgroundColor:_="#000000",textColor:B="#ffffff",borderColor:D="#ffffff",iconColor:X="#ffffff",hoverEffect:b="none",fontFamily:G,fontSettings:d,fontSize:K,lineHeight:J,letterSpacing:Q=0,wordSpacing:U=0,textAppearance:Z,stateOverrides:E,minWidth:P=0,minHeight:oo=0,width:eo=0,height:ro=0}=o,to=po.buildColorVars(r,{backgroundColor:_,textColor:B,borderColor:D,iconColor:X,boxShadowColor:z,innerBoxShadowColor:H},go,mo,E),no=l&&l!=="default"?`${r}-state-${l}`:"",ao=e&&!a?`${r}-editing`:"",lo=b!=="none"&&(!e||a||l==="hover")?`${r}-hover-effect-${b}`:"",co=b==="reveal"||b==="swipe",k=b==="content-roll",I=b==="reveal"&&(!e||a),so=O===!0,u=s==="a"?C??g:g,x=s==="c",io=s!=="b",$o={fontSettings:{fontFamily:G,fontWeight:(d==null?void 0:d.fontWeight)??400,fontStyle:(d==null?void 0:d.fontStyle)??"normal"},fontSize:K??.01,lineHeight:J,letterSpacing:Q,wordSpacing:U,textAppearance:Z,color:B},vo={...io?Y.omitTextColors(Y.textStylesToCss($o,e)):{},[`--${r}-box-shadow-x`]:t.scalingValue(w.left,e),[`--${r}-box-shadow-y`]:t.scalingValue(w.top,e),[`--${r}-box-shadow-blur`]:t.scalingValue(w.right,e),[`--${r}-box-shadow-spread`]:t.scalingValue(w.bottom,e),[`--${r}-inner-box-shadow-x`]:t.scalingValue(y.left,e),[`--${r}-inner-box-shadow-y`]:t.scalingValue(y.top,e),[`--${r}-inner-box-shadow-blur`]:t.scalingValue(y.right,e),[`--${r}-inner-box-shadow-spread`]:t.scalingValue(y.bottom,e),[`--${r}-backdrop-blur`]:A>0?`blur(${t.scalingValue(A,e)})`:void 0,paddingTop:t.scalingValue(m.top,e),paddingRight:t.scalingValue(m.right,e),paddingBottom:t.scalingValue(m.bottom,e),paddingLeft:t.scalingValue(m.left,e),borderRadius:t.scalingValue(q,e),borderWidth:t.scalingValue(W,e),...x?{}:{justifyContent:N[u],textAlign:u},...x&&!k?{gap:t.scalingValue(v,e)}:{},...so?{width:t.scalingValue(eo,e),height:t.scalingValue(ro,e)}:{minWidth:t.scalingValue(P,e),minHeight:t.scalingValue(oo,e),...x?{width:"100%"}:{}}};let S;const j={display:"inline-flex",alignItems:"center",justifyContent:x?N[u]:N[s==="a"?u:"center"],gap:x?t.scalingValue(v,e):void 0,width:"100%",height:"100%",...s==="a"?{textAlign:u}:{}};if(s==="b"){const i=()=>M(r,p,f>0?"fixed":"fill",100,f,e);S=k?T(r,i,`${r}-icon-roll`,void 0,j):i()}else if(s==="c"){const i=()=>{const L=n.jsx("span",{className:`${r}-text`,style:{textAlign:u},children:h}),F=M(r,p,R>0?"fixed":"fill",100,R,e);return V==="icon-text"?n.jsxs(n.Fragment,{children:[F,L]}):n.jsxs(n.Fragment,{children:[L,F]})};S=k?T(r,i,`${r}-icon-text-roll`,void 0,j):i()}else S=k?T(r,()=>h,`${r}-label-roll`,void 0,j):co?n.jsx("span",{className:`${r}-button-inner`,children:h}):h;const ho=I?i=>wo(i,r):void 0,fo=I?i=>yo(i,r):void 0;return n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),n.jsx("div",{className:`${r}-root`,style:to,children:n.jsx("div",{className:`${r}-wrapper ${no} ${ao}`.trim(),children:n.jsx("div",{className:`${r}-button ${lo}`.trim(),style:vo,onMouseEnter:ho,onMouseLeave:fo,role:"button",tabIndex:c||e&&!a?void 0:0,children:S})})})]})}exports.SimpleButton=So;
@@ -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-CIy6yI8U.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;