@hanzo/ui 5.3.35 → 5.3.36

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 (254) hide show
  1. package/bin/create-registry.js +0 -0
  2. package/bin/npx-registry-mcp.js +0 -0
  3. package/bin/registry-mcp-wrapper.sh +0 -0
  4. package/bin/registry-mcp.js +0 -0
  5. package/bin/start-mcp-server.sh +0 -0
  6. package/bin/test-mcp.sh +0 -0
  7. package/dist/3d/button.js +1 -297
  8. package/dist/3d/button.mjs +1 -272
  9. package/dist/3d/card.js +1 -233
  10. package/dist/3d/card.mjs +1 -206
  11. package/dist/3d/carousel.js +1 -370
  12. package/dist/3d/carousel.mjs +1 -343
  13. package/dist/3d/grid.js +1 -361
  14. package/dist/3d/grid.mjs +1 -336
  15. package/dist/3d/index.js +1 -1517
  16. package/dist/3d/index.mjs +1 -1471
  17. package/dist/3d/marquee.js +1 -351
  18. package/dist/3d/marquee.mjs +1 -326
  19. package/dist/3d/pin.js +1 -45
  20. package/dist/3d/pin.mjs +1 -23
  21. package/dist/accordion.js +1 -79
  22. package/dist/accordion.mjs +1 -54
  23. package/dist/alert-dialog.js +1 -224
  24. package/dist/alert-dialog.mjs +1 -191
  25. package/dist/alert.js +1 -97
  26. package/dist/alert.mjs +1 -91
  27. package/dist/animation/animated-background.js +1 -423
  28. package/dist/animation/animated-background.mjs +1 -417
  29. package/dist/animation/animated-beam.js +1 -118
  30. package/dist/animation/animated-beam.mjs +1 -96
  31. package/dist/animation/animated-cursor.js +1 -274
  32. package/dist/animation/animated-cursor.mjs +1 -269
  33. package/dist/animation/animated-icon.js +2 -356
  34. package/dist/animation/animated-icon.mjs +2 -350
  35. package/dist/animation/animated-list.js +1 -338
  36. package/dist/animation/animated-list.mjs +1 -332
  37. package/dist/animation/animated-number.js +1 -282
  38. package/dist/animation/animated-number.mjs +1 -276
  39. package/dist/animation/animated-testimonials.js +1 -96
  40. package/dist/animation/animated-testimonials.mjs +1 -74
  41. package/dist/animation/animated-tooltip.js +1 -66
  42. package/dist/animation/animated-tooltip.mjs +1 -44
  43. package/dist/animation/apple-cards-carousel.js +1 -307
  44. package/dist/animation/apple-cards-carousel.mjs +1 -284
  45. package/dist/animation/apple-hello-effect.js +1 -59
  46. package/dist/animation/apple-hello-effect.mjs +1 -37
  47. package/dist/animation/index.js +2 -1951
  48. package/dist/animation/index.mjs +2 -1920
  49. package/dist/avatar.js +1 -70
  50. package/dist/avatar.mjs +1 -46
  51. package/dist/badge.js +1 -60
  52. package/dist/badge.mjs +1 -54
  53. package/dist/blocks/index.js +2 -1684
  54. package/dist/blocks/index.mjs +2 -1645
  55. package/dist/breadcrumb.js +1 -106
  56. package/dist/breadcrumb.mjs +1 -98
  57. package/dist/calendar-ext/index.js +1 -207
  58. package/dist/calendar-ext/index.mjs +1 -169
  59. package/dist/calendar.js +1 -193
  60. package/dist/calendar.mjs +1 -168
  61. package/dist/carousel.js +1 -282
  62. package/dist/carousel.mjs +1 -253
  63. package/dist/charts/index.js +6 -5840
  64. package/dist/charts/index.mjs +6 -5749
  65. package/dist/checkbox.js +1 -59
  66. package/dist/checkbox.mjs +1 -34
  67. package/dist/code/block.js +2 -225
  68. package/dist/code/block.mjs +2 -202
  69. package/dist/code/compare.js +5 -444
  70. package/dist/code/compare.mjs +5 -421
  71. package/dist/code/diff.js +12 -429
  72. package/dist/code/diff.mjs +11 -405
  73. package/dist/code/editor.js +1 -242
  74. package/dist/code/editor.mjs +1 -217
  75. package/dist/code/explorer.js +1 -290
  76. package/dist/code/explorer.mjs +1 -267
  77. package/dist/code/index.js +26 -2514
  78. package/dist/code/index.mjs +24 -2471
  79. package/dist/code/preview.js +6 -363
  80. package/dist/code/preview.mjs +6 -340
  81. package/dist/code/snippet.js +2 -273
  82. package/dist/code/snippet.mjs +2 -249
  83. package/dist/code/tabs.js +1 -74
  84. package/dist/code/tabs.mjs +1 -52
  85. package/dist/code/terminal.js +3 -436
  86. package/dist/code/terminal.mjs +3 -413
  87. package/dist/collapsible.js +1 -32
  88. package/dist/collapsible.mjs +1 -8
  89. package/dist/command.js +1 -282
  90. package/dist/command.mjs +1 -251
  91. package/dist/context-menu.js +1 -206
  92. package/dist/context-menu.mjs +1 -170
  93. package/dist/desktop/hooks.js +1 -223
  94. package/dist/desktop/hooks.mjs +1 -198
  95. package/dist/desktop/index.js +1 -685
  96. package/dist/desktop/index.mjs +1 -657
  97. package/dist/desktop/spotlight.js +1 -260
  98. package/dist/desktop/spotlight.mjs +1 -235
  99. package/dist/desktop/window.js +1 -273
  100. package/dist/desktop/window.mjs +1 -247
  101. package/dist/device/index.js +1 -2
  102. package/dist/device/index.mjs +0 -1
  103. package/dist/dialog.js +1 -245
  104. package/dist/dialog.mjs +1 -213
  105. package/dist/dock/basic.js +1 -173
  106. package/dist/dock/basic.mjs +1 -150
  107. package/dist/dock/index.js +1 -647
  108. package/dist/dock/index.mjs +1 -620
  109. package/dist/dock/limelight-nav.js +1 -314
  110. package/dist/dock/limelight-nav.mjs +1 -293
  111. package/dist/dock/macos.js +1 -140
  112. package/dist/dock/macos.mjs +1 -117
  113. package/dist/dock/menu.js +1 -69
  114. package/dist/dock/menu.mjs +1 -47
  115. package/dist/dock/message.js +1 -148
  116. package/dist/dock/message.mjs +1 -126
  117. package/dist/drawer.js +1 -114
  118. package/dist/drawer.mjs +1 -102
  119. package/dist/dropdown-menu.js +1 -201
  120. package/dist/dropdown-menu.mjs +1 -165
  121. package/dist/finance/AdvancedChart.js +2 -47
  122. package/dist/finance/AdvancedChart.mjs +2 -45
  123. package/dist/finance/CompanyProfile.js +2 -47
  124. package/dist/finance/CompanyProfile.mjs +2 -45
  125. package/dist/finance/CryptoScreener.js +2 -44
  126. package/dist/finance/CryptoScreener.mjs +2 -42
  127. package/dist/finance/Financials.js +2 -51
  128. package/dist/finance/Financials.mjs +2 -49
  129. package/dist/finance/ForexScreener.js +2 -45
  130. package/dist/finance/ForexScreener.mjs +2 -43
  131. package/dist/finance/MarketOverview.js +2 -103
  132. package/dist/finance/MarketOverview.mjs +2 -101
  133. package/dist/finance/NewsTimeline.js +2 -43
  134. package/dist/finance/NewsTimeline.mjs +2 -41
  135. package/dist/finance/OrderEntry.js +1 -130
  136. package/dist/finance/OrderEntry.mjs +1 -128
  137. package/dist/finance/OrdersHistory.js +1 -63
  138. package/dist/finance/OrdersHistory.mjs +1 -61
  139. package/dist/finance/PositionsList.js +1 -79
  140. package/dist/finance/PositionsList.mjs +1 -77
  141. package/dist/finance/StockScreener.js +2 -45
  142. package/dist/finance/StockScreener.mjs +2 -43
  143. package/dist/finance/SymbolInfo.js +2 -45
  144. package/dist/finance/SymbolInfo.mjs +2 -43
  145. package/dist/finance/TechnicalAnalysis.js +2 -53
  146. package/dist/finance/TechnicalAnalysis.mjs +2 -51
  147. package/dist/finance/TickerTape.js +2 -55
  148. package/dist/finance/TickerTape.mjs +2 -53
  149. package/dist/finance/TradingPanel.js +1 -190
  150. package/dist/finance/TradingPanel.mjs +1 -188
  151. package/dist/finance/index.js +2 -929
  152. package/dist/finance/index.mjs +2 -913
  153. package/dist/form/index.js +1 -153
  154. package/dist/form/index.mjs +1 -123
  155. package/dist/form.js +1 -171
  156. package/dist/form.mjs +1 -141
  157. package/dist/hover-card.js +1 -57
  158. package/dist/hover-card.mjs +1 -33
  159. package/dist/index.js +192 -9618
  160. package/dist/index.mjs +192 -9202
  161. package/dist/input-otp.js +1 -78
  162. package/dist/input-otp.mjs +1 -53
  163. package/dist/kanban/index.js +1 -593
  164. package/dist/kanban/index.mjs +1 -571
  165. package/dist/lib/utils.js +1 -28
  166. package/dist/lib/utils.mjs +1 -24
  167. package/dist/mermaid/index.js +1 -280
  168. package/dist/mermaid/index.mjs +1 -253
  169. package/dist/navigation/index.js +1 -97
  170. package/dist/navigation/index.mjs +1 -78
  171. package/dist/navigation-menu.js +1 -148
  172. package/dist/navigation-menu.mjs +1 -115
  173. package/dist/pattern/grid-pattern.js +3 -325
  174. package/dist/pattern/grid-pattern.mjs +3 -302
  175. package/dist/pattern/index.js +3 -325
  176. package/dist/pattern/index.mjs +3 -302
  177. package/dist/popover.js +1 -62
  178. package/dist/popover.mjs +1 -36
  179. package/dist/progress.js +1 -61
  180. package/dist/progress.mjs +1 -36
  181. package/dist/project/gantt.js +1 -64
  182. package/dist/project/gantt.mjs +1 -42
  183. package/dist/project/index.js +1 -635
  184. package/dist/project/index.mjs +1 -610
  185. package/dist/project/kanban.js +1 -596
  186. package/dist/project/kanban.mjs +1 -571
  187. package/dist/project/list.js +1 -34
  188. package/dist/project/list.mjs +1 -11
  189. package/dist/radio-group.js +1 -67
  190. package/dist/radio-group.mjs +1 -44
  191. package/dist/resizable.js +1 -71
  192. package/dist/resizable.mjs +1 -47
  193. package/dist/scroll-area.js +1 -88
  194. package/dist/scroll-area.mjs +1 -65
  195. package/dist/select.js +1 -139
  196. package/dist/select.mjs +1 -110
  197. package/dist/separator.js +1 -58
  198. package/dist/separator.mjs +1 -33
  199. package/dist/sheet.js +1 -147
  200. package/dist/sheet.mjs +1 -116
  201. package/dist/skeleton.js +1 -31
  202. package/dist/skeleton.mjs +1 -26
  203. package/dist/slider.js +1 -98
  204. package/dist/slider.mjs +1 -72
  205. package/dist/sonner.js +1 -33
  206. package/dist/sonner.mjs +1 -28
  207. package/dist/spline/index.js +1 -210
  208. package/dist/spline/index.mjs +1 -201
  209. package/dist/spline/media-stack.js +1 -192
  210. package/dist/spline/media-stack.mjs +1 -184
  211. package/dist/spline/player.js +1 -36
  212. package/dist/spline/player.mjs +1 -30
  213. package/dist/switch.js +1 -61
  214. package/dist/switch.mjs +1 -36
  215. package/dist/table.js +1 -109
  216. package/dist/table.mjs +1 -100
  217. package/dist/tabs.js +1 -127
  218. package/dist/tabs.mjs +1 -101
  219. package/dist/tailwind/index.mjs +1 -2011
  220. package/dist/textarea.js +1 -77
  221. package/dist/textarea.mjs +1 -55
  222. package/dist/toggle-group.js +1 -117
  223. package/dist/toggle-group.mjs +1 -92
  224. package/dist/toggle.js +1 -70
  225. package/dist/toggle.mjs +1 -47
  226. package/dist/tooltip.js +1 -66
  227. package/dist/tooltip.mjs +1 -39
  228. package/dist/types/index.mjs +1 -51
  229. package/dist/ui/announcement.js +1 -133
  230. package/dist/ui/announcement.mjs +1 -111
  231. package/dist/ui/avatar-group.js +1 -87
  232. package/dist/ui/avatar-group.mjs +1 -64
  233. package/dist/ui/banner.js +1 -84
  234. package/dist/ui/banner.mjs +1 -61
  235. package/dist/ui/cursor.js +1 -77
  236. package/dist/ui/cursor.mjs +1 -55
  237. package/dist/ui/index.js +1 -494
  238. package/dist/ui/index.mjs +1 -461
  239. package/dist/ui/marquee.js +1 -73
  240. package/dist/ui/marquee.mjs +1 -51
  241. package/dist/ui/pill.js +1 -84
  242. package/dist/ui/pill.mjs +1 -61
  243. package/dist/ui/spinner.js +1 -27
  244. package/dist/ui/spinner.mjs +1 -25
  245. package/dist/ui/tags.js +1 -116
  246. package/dist/ui/tags.mjs +1 -94
  247. package/dist/ui/ticker.js +1 -72
  248. package/dist/ui/ticker.mjs +1 -50
  249. package/dist/util/index.mjs +1 -404
  250. package/package.json +28 -27
  251. package/dist/primitives/index.js +0 -9619
  252. package/dist/primitives/index.mjs +0 -9203
  253. package/dist/primitives-export.js +0 -9619
  254. package/dist/primitives-export.mjs +0 -9203
@@ -1,1685 +1,3 @@
1
1
  "use client";
2
- 'use strict';
3
-
4
- var AccordionPrimitive = require('@radix-ui/react-accordion');
5
- var lucideReact = require('lucide-react');
6
- var clsx = require('clsx');
7
- var tailwindMerge = require('tailwind-merge');
8
- var jsxRuntime = require('react/jsx-runtime');
9
- var React4 = require('react');
10
- var Image2 = require('next/image');
11
- var reactSlot = require('@radix-ui/react-slot');
12
- var classVarianceAuthority = require('class-variance-authority');
13
- var Link = require('next/link');
14
- var reactIntersectionObserver = require('react-intersection-observer');
15
-
16
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
17
-
18
- function _interopNamespace(e) {
19
- if (e && e.__esModule) return e;
20
- var n = Object.create(null);
21
- if (e) {
22
- Object.keys(e).forEach(function (k) {
23
- if (k !== 'default') {
24
- var d = Object.getOwnPropertyDescriptor(e, k);
25
- Object.defineProperty(n, k, d.get ? d : {
26
- enumerable: true,
27
- get: function () { return e[k]; }
28
- });
29
- }
30
- });
31
- }
32
- n.default = e;
33
- return Object.freeze(n);
34
- }
35
-
36
- var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
37
- var React4__namespace = /*#__PURE__*/_interopNamespace(React4);
38
- var Image2__default = /*#__PURE__*/_interopDefault(Image2);
39
- var Link__default = /*#__PURE__*/_interopDefault(Link);
40
-
41
- var __defProp = Object.defineProperty;
42
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
43
- var __export = (target, all) => {
44
- for (var name in all)
45
- __defProp(target, name, { get: all[name], enumerable: true });
46
- };
47
-
48
- // blocks/def/space-block.ts
49
- var SPACE_DEFAULTS = {
50
- xs: 2,
51
- sm: 4,
52
- md: 5,
53
- lg: 6,
54
- xl: 8
55
- };
56
- function cn(...inputs) {
57
- return tailwindMerge.twMerge(clsx.clsx(inputs));
58
- }
59
- __name(cn, "cn");
60
- var Accordion = AccordionPrimitive__namespace.Root;
61
- var AccordionItem = /* @__PURE__ */ __name(({ className, ref, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Item, { className: cn("", className), ref, ...props }), "AccordionItem");
62
- AccordionItem.displayName = "AccordionItem";
63
- var AccordionTrigger = /* @__PURE__ */ __name(({
64
- className,
65
- children,
66
- hideArrow = false,
67
- ref,
68
- ...props
69
- }) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
70
- AccordionPrimitive__namespace.Trigger,
71
- {
72
- className: cn(
73
- "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
74
- className
75
- ),
76
- ref,
77
- ...props,
78
- children: [
79
- children,
80
- hideArrow ? null : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
81
- ]
82
- }
83
- ) }), "AccordionTrigger");
84
- AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
85
- var AccordionContent = /* @__PURE__ */ __name(({
86
- className,
87
- children,
88
- ref,
89
- ...props
90
- }) => /* @__PURE__ */ jsxRuntime.jsx(
91
- AccordionPrimitive__namespace.Content,
92
- {
93
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down w-full overflow-hidden text-sm transition-all",
94
- ref,
95
- ...props,
96
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pt-0 pb-4", className), children })
97
- }
98
- ), "AccordionContent");
99
- AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
100
- function Card({ className, ...props }) {
101
- return /* @__PURE__ */ jsxRuntime.jsx(
102
- "div",
103
- {
104
- "data-slot": "card",
105
- className: cn(
106
- "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
107
- className
108
- ),
109
- ...props
110
- }
111
- );
112
- }
113
- __name(Card, "Card");
114
- function CardHeader({ className, ...props }) {
115
- return /* @__PURE__ */ jsxRuntime.jsx(
116
- "div",
117
- {
118
- "data-slot": "card-header",
119
- className: cn(
120
- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
121
- className
122
- ),
123
- ...props
124
- }
125
- );
126
- }
127
- __name(CardHeader, "CardHeader");
128
- function CardTitle({ className, ...props }) {
129
- return /* @__PURE__ */ jsxRuntime.jsx(
130
- "div",
131
- {
132
- "data-slot": "card-title",
133
- className: cn("leading-none font-semibold", className),
134
- ...props
135
- }
136
- );
137
- }
138
- __name(CardTitle, "CardTitle");
139
- function CardDescription({ className, ...props }) {
140
- return /* @__PURE__ */ jsxRuntime.jsx(
141
- "div",
142
- {
143
- "data-slot": "card-description",
144
- className: cn("text-muted-foreground text-sm", className),
145
- ...props
146
- }
147
- );
148
- }
149
- __name(CardDescription, "CardDescription");
150
- function CardContent({ className, ...props }) {
151
- return /* @__PURE__ */ jsxRuntime.jsx(
152
- "div",
153
- {
154
- "data-slot": "card-content",
155
- className: cn("px-6", className),
156
- ...props
157
- }
158
- );
159
- }
160
- __name(CardContent, "CardContent");
161
- function CardFooter({ className, ...props }) {
162
- return /* @__PURE__ */ jsxRuntime.jsx(
163
- "div",
164
- {
165
- "data-slot": "card-footer",
166
- className: cn("flex items-center px-6 [.border-t]:pt-6", className),
167
- ...props
168
- }
169
- );
170
- }
171
- __name(CardFooter, "CardFooter");
172
-
173
- // util/specifier.ts
174
- var getPrimaryStartingWith = /* @__PURE__ */ __name((s, toFind) => {
175
- const tokenArray = s.split(" ");
176
- return tokenArray.find((tok) => tok.startsWith(`${toFind}-`));
177
- }, "getPrimaryStartingWith");
178
- function getSpecifierData(main, getPrimary, getData, def) {
179
- const primary = getPrimary(main);
180
- if (primary) {
181
- return getData(primary) ?? def;
182
- }
183
- return def ?? void 0;
184
- }
185
- __name(getSpecifierData, "getSpecifierData");
186
-
187
- // util/index.ts
188
- function constrain(value, minOrConstrainTo, max) {
189
- if (typeof value === "number" && typeof minOrConstrainTo === "number" && typeof max === "number") {
190
- return Math.min(Math.max(value, minOrConstrainTo), max);
191
- }
192
- if (typeof value === "object" && typeof minOrConstrainTo === "object") {
193
- const dim = value;
194
- const constrainTo = minOrConstrainTo;
195
- const aspectRatio = dim.w / dim.h;
196
- const constrainAspectRatio = constrainTo.w / constrainTo.h;
197
- if (aspectRatio > constrainAspectRatio) {
198
- return {
199
- w: constrainTo.w,
200
- h: constrainTo.w / aspectRatio
201
- };
202
- } else {
203
- return {
204
- w: constrainTo.h * aspectRatio,
205
- h: constrainTo.h
206
- };
207
- }
208
- }
209
- throw new Error("Invalid parameters for constrain function");
210
- }
211
- __name(constrain, "constrain");
212
- function containsToken(text, token) {
213
- if (!text) return false;
214
- return text.toLowerCase().includes(token.toLowerCase());
215
- }
216
- __name(containsToken, "containsToken");
217
- function ldMerge(...objects) {
218
- const result = {};
219
- for (const obj of objects) {
220
- if (obj && typeof obj === "object") {
221
- Object.assign(result, obj);
222
- }
223
- }
224
- return result;
225
- }
226
- __name(ldMerge, "ldMerge");
227
- var ApplyTypography = /* @__PURE__ */ __name(({
228
- children,
229
- className = "",
230
- asTag = "div",
231
- size = "responsive",
232
- ...rest
233
- }) => {
234
- let typoClasses = "typography gap-3 xs:typography-sm sm:typography sm:gap-4 lg:typography-lg lg:gap-5 xl:typography-xl xl:gap-6 typography-headings:font-heading ";
235
- switch (size) {
236
- case "sm":
237
- {
238
- typoClasses = "typography typography-sm gap-3 typography-headings:font-heading typography-p:text-sm ";
239
- }
240
- break;
241
- case "base":
242
- {
243
- typoClasses = "typography gap-4 typography-headings:font-heading ";
244
- }
245
- break;
246
- case "lg":
247
- {
248
- typoClasses = "typography typography-lg gap-5 typography-headings:font-heading typography-p:text-lg ";
249
- }
250
- break;
251
- case "xl":
252
- {
253
- typoClasses = "typography typography-xl gap-6 typography-headings:font-heading typography-p:text-lg ";
254
- }
255
- break;
256
- }
257
- const Tag = asTag;
258
- return /* @__PURE__ */ jsxRuntime.jsx(Tag, { ...rest, className: cn(typoClasses, className), children });
259
- }, "ApplyTypography");
260
- var VideoPlayer = React4__namespace.default.forwardRef(
261
- ({
262
- sources,
263
- ...rest
264
- }, ref) => {
265
- return /* @__PURE__ */ jsxRuntime.jsx("video", { ref, ...rest, children: sources.map((source, index) => /* @__PURE__ */ jsxRuntime.jsx("source", { src: source }, index)) });
266
- }
267
- );
268
- var video_player_default = VideoPlayer;
269
- var AccordianBlockComponent = /* @__PURE__ */ __name(({
270
- block,
271
- className = ""
272
- }) => {
273
- if (block.blockType !== "accordian") {
274
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "accordian block required" });
275
- }
276
- const accordian = block;
277
- return /* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "single", collapsible: true, className: cn("w-full border rounded-xl overflow-hidden", className), children: accordian.items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { className: "border-b last:border-0 overflow-hidden", value: `value-${index}`, children: [
278
- /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "px-3 md:px-4 lg:px-6 hover:no-underline hover:bg-level-3", children: /* @__PURE__ */ jsxRuntime.jsx(ApplyTypography, { children: /* @__PURE__ */ jsxRuntime.jsx("h6", { className: "leading-[1.2] text-[1.05rem] font-semibold ", children: item.trigger }) }) }),
279
- /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "p-4 border-t bg-level-1", children: /* @__PURE__ */ jsxRuntime.jsx(ApplyTypography, { className: "flex flex-col justify-start items-start ", children: typeof item.content === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { children: item.content }) : item.content }) })
280
- ] }, index)) });
281
- }, "AccordianBlockComponent");
282
- var accordian_block_default = AccordianBlockComponent;
283
- var InlineIcon = /* @__PURE__ */ __name(({
284
- icon,
285
- size,
286
- agent,
287
- className = ""
288
- }) => {
289
- if (!icon) return null;
290
- const phone = agent === "phone";
291
- if (typeof icon === "string") {
292
- const _size = phone && size ? size * 0.75 : size;
293
- return /* @__PURE__ */ jsxRuntime.jsx(Image2__default.default, { src: icon, width: _size, height: _size, alt: "icon", className });
294
- }
295
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: icon });
296
- }, "InlineIcon");
297
- var inline_icon_default = InlineIcon;
298
-
299
- // blocks/components/grid-block/table-borders.mutator.ts
300
- var getCellClx = /* @__PURE__ */ __name((cellIndex, cellCount, colCount) => {
301
- const isFirstRow = /* @__PURE__ */ __name(() => cellIndex < colCount, "isFirstRow");
302
- const isFirstColumn = /* @__PURE__ */ __name(() => cellIndex % colCount === 0, "isFirstColumn");
303
- const isTLCorner = /* @__PURE__ */ __name(() => cellIndex === 0, "isTLCorner");
304
- const isTRCorner = /* @__PURE__ */ __name(() => cellIndex === colCount - 1, "isTRCorner");
305
- const isBLCorner = /* @__PURE__ */ __name(() => cellIndex === cellCount - colCount, "isBLCorner");
306
- const isBRCorner = /* @__PURE__ */ __name(() => cellIndex === cellCount - 1, "isBRCorner");
307
- let clx = "border-b md:border-r p-4 md:p-8 lg:p-12 ";
308
- if (isFirstRow()) {
309
- clx += "border-t ";
310
- }
311
- if (isFirstColumn()) {
312
- clx += "md:border-l ";
313
- }
314
- if (isTLCorner()) {
315
- clx += "border-t md:rounded-tl-lg ";
316
- } else if (isTRCorner()) {
317
- clx += "md:rounded-tr-lg ";
318
- } else if (isBLCorner()) {
319
- clx += "md:rounded-bl-lg ";
320
- } else if (isBRCorner()) {
321
- clx += "md:rounded-br-lg ";
322
- }
323
- return clx;
324
- }, "getCellClx");
325
- var gapClx = "gap-0 md:gap-0 xl:gap-0";
326
- var table_borders_mutator_default = {
327
- getCellClx,
328
- gapClx
329
- };
330
-
331
- // blocks/components/grid-block/mutator-registry.ts
332
- var map = /* @__PURE__ */ new Map();
333
- map.set("style-table-borders", table_borders_mutator_default);
334
- var mutator_registry_default = /* @__PURE__ */ __name((key) => map.get(key), "default");
335
- var gridClx = /* @__PURE__ */ __name((d, prefix) => typeof d === "number" ? `${prefix ?? ""}grid-cols-${d} ` : `${prefix ?? ""}grid-cols-${d.columns} ${prefix ?? ""}gap-${d.gap} `, "gridClx");
336
- var GridBlockComponent = /* @__PURE__ */ __name(({
337
- block,
338
- className = "",
339
- agent,
340
- children
341
- }) => {
342
- if (block.blockType !== "grid") {
343
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "grid block required" });
344
- }
345
- const { cells, grid, specifiers } = block;
346
- const specified = /* @__PURE__ */ __name((s) => containsToken(specifiers, s), "specified");
347
- const mutator = specified("style-table-borders") ? mutator_registry_default("style-table-borders") : void 0;
348
- let clx = "grid ";
349
- if (agent === "phone") {
350
- const d = grid.mobile ? grid.mobile : grid.at.xs ? grid.at.xs : grid.at.sm ?? 1;
351
- clx += gridClx(d);
352
- } else {
353
- let defaultSet = false;
354
- for (const [key, value] of Object.entries(grid.at)) {
355
- if (!defaultSet) {
356
- clx += gridClx(value);
357
- defaultSet = true;
358
- } else {
359
- clx += gridClx(value, `${key}:`);
360
- }
361
- }
362
- }
363
- let getMutatorCellClx = /* @__PURE__ */ __name((ignore) => "", "getMutatorCellClx");
364
- if (mutator?.getCellClx) {
365
- const colCount = typeof grid.at.md === "number" ? grid.at.md : grid.at.md.columns;
366
- const cellCount = cells?.length;
367
- if (!colCount || !cellCount) {
368
- throw new Error("GridBlockComponent: using mutator, but colCount and / or cellCount is invalid!");
369
- }
370
- getMutatorCellClx = /* @__PURE__ */ __name((cellIndex) => mutator.getCellClx(cellIndex, cellCount, colCount), "getMutatorCellClx");
371
- }
372
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("grid gap-2 md:gap-4 xl:gap-6", clx, mutator?.gapClx ?? "", className), children: React4__namespace.default.Children.count(children) > 0 ? children : cells?.map((cell, index) => /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks: cell, agent, className: getMutatorCellClx(index) }, `cell-${index}`)) });
373
- }, "GridBlockComponent");
374
- var grid_block_default = GridBlockComponent;
375
- var BulletCardsBlockComponent = /* @__PURE__ */ __name(({
376
- block,
377
- className = "",
378
- agent
379
- }) => {
380
- if (block.blockType !== "bullet-cards") {
381
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "bullet cards block required" });
382
- }
383
- const b = block;
384
- const specified = /* @__PURE__ */ __name((s) => containsToken(b.specifiers, s), "specified");
385
- const noBorder = specified("no-card-border") ? "border-0" : "md:border";
386
- const mobileTextXs = specified("mobile-small-text") ? "text-xs" : "text-sm";
387
- const borderclx = specified("border-muted-3") ? "md:border-muted-3" : specified("border-muted-1") ? "md:border-muted-1" : "md:border-muted-2";
388
- return /* @__PURE__ */ jsxRuntime.jsx(grid_block_default, { block: { blockType: "grid", grid: b.grid }, className, agent, children: b.cards.map((card, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
389
- "px-0 sm:px-4 py-1 md:py-4 rounded-lg flex flex-row justify-start items-center not-typography text-foreground",
390
- noBorder,
391
- borderclx
392
- ), children: [
393
- /* @__PURE__ */ jsxRuntime.jsx(inline_icon_default, { icon: card.icon, size: b.iconSize ?? 28, agent, className: "shrink-0 mr-2 md:mr-4 " }),
394
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("m-0 sm:text-base", mobileTextXs), children: card.text })
395
- ] }, index)) });
396
- }, "BulletCardsBlockComponent");
397
- var bullet_cards_block_default = BulletCardsBlockComponent;
398
- var buttonVariants = classVarianceAuthority.cva(
399
- 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
400
- {
401
- variants: {
402
- variant: {
403
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
404
- destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
405
- outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
406
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
407
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
408
- link: "text-primary underline-offset-4 hover:underline",
409
- // Keep the additional Hanzo variants for backward compatibility
410
- primary: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
411
- linkFG: "text-primary underline-offset-4 hover:underline",
412
- linkMuted: "text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"
413
- },
414
- size: {
415
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
416
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
417
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
418
- icon: "size-9",
419
- "icon-sm": "size-8",
420
- "icon-lg": "size-10"
421
- }
422
- },
423
- defaultVariants: {
424
- variant: "default",
425
- size: "default"
426
- }
427
- }
428
- );
429
- var Button = React4__namespace.forwardRef(
430
- ({ className, variant = "default", size = "default", asChild = false, isLoading = false, children, ...props }, ref) => {
431
- const Comp = asChild ? reactSlot.Slot : "button";
432
- return /* @__PURE__ */ jsxRuntime.jsxs(
433
- Comp,
434
- {
435
- "data-slot": "button",
436
- "data-variant": variant,
437
- "data-size": size,
438
- className: cn(buttonVariants({ variant, size, className })),
439
- ref,
440
- ...props,
441
- children: [
442
- isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
443
- lucideReact.Loader2,
444
- {
445
- className: cn("h-4 w-4 animate-spin", size !== "icon" && size !== "icon-sm" && size !== "icon-lg" && "mr-2")
446
- }
447
- ) : null,
448
- isLoading && (size === "icon" || size === "icon-sm" || size === "icon-lg") ? null : children
449
- ]
450
- }
451
- );
452
- }
453
- );
454
- Button.displayName = "Button";
455
- var DialogVideoController = /* @__PURE__ */ __name(({
456
- children
457
- }) => {
458
- const [open, setOpen] = React4.useState(false);
459
- const onOpenChange = /* @__PURE__ */ __name((b) => {
460
- setOpen(b);
461
- const videos = document.getElementsByTagName("video");
462
- const videoArray = Array.from(videos);
463
- videoArray.forEach((v) => {
464
- if (b) {
465
- v.pause();
466
- } else {
467
- v.play();
468
- }
469
- });
470
- }, "onOpenChange");
471
- const updatedChildren = React4__namespace.default.Children.map(
472
- children,
473
- (child) => React4__namespace.default.cloneElement(
474
- child,
475
- { open, onOpenChange }
476
- )
477
- );
478
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: updatedChildren });
479
- }, "DialogVideoController");
480
- var dialog_video_controller_default = DialogVideoController;
481
- var ActionButton = /* @__PURE__ */ __name(({
482
- def,
483
- className = "",
484
- ...rest
485
- }) => {
486
- if (def.action.type === "modal") {
487
- const m = def.action.def;
488
- const Modal = m.Comp;
489
- return /* @__PURE__ */ jsxRuntime.jsx(dialog_video_controller_default, { children: /* @__PURE__ */ jsxRuntime.jsx(
490
- Modal,
491
- {
492
- title: m.title,
493
- byline: m.byline,
494
- buttonText: def.text,
495
- buttonProps: { ...def.props, ...rest, className: cn(def.props?.className ?? "", className) },
496
- action: m.action,
497
- actionEnclosure: m.actionEnclosure,
498
- ...m.props
499
- }
500
- ) });
501
- }
502
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
503
- }, "ActionButton");
504
- var action_button_default = ActionButton;
505
-
506
- // primitives/icons/index.ts
507
- var icons_exports = {};
508
- __export(icons_exports, {
509
- burger: () => lucideReact.Menu,
510
- gitHub: () => github_default,
511
- linkOut: () => lucideReact.ArrowUpRight,
512
- moon: () => lucideReact.Moon,
513
- sun: () => lucideReact.SunMedium,
514
- youtube: () => youtube_logo_default
515
- });
516
- var YouTubeLogo = /* @__PURE__ */ __name((props) => /* @__PURE__ */ jsxRuntime.jsx(
517
- "svg",
518
- {
519
- viewBox: "0 0 256 256",
520
- xmlns: "http://www.w3.org/2000/svg",
521
- ...props,
522
- children: /* @__PURE__ */ jsxRuntime.jsxs(
523
- "g",
524
- {
525
- style: {
526
- stroke: "none",
527
- strokeWidth: 0,
528
- strokeDasharray: "none",
529
- strokeLinecap: "butt",
530
- strokeLinejoin: "miter",
531
- strokeMiterlimit: 10,
532
- fill: "none",
533
- fillRule: "nonzero",
534
- opacity: 1
535
- },
536
- transform: "translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",
537
- children: [
538
- /* @__PURE__ */ jsxRuntime.jsx(
539
- "path",
540
- {
541
- d: "M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z",
542
- style: {
543
- stroke: "none",
544
- strokeWidth: 1,
545
- strokeDasharray: "none",
546
- strokeLinecap: "butt",
547
- strokeLinejoin: "miter",
548
- strokeMiterlimit: 10,
549
- fill: "red",
550
- fillRule: "nonzero",
551
- opacity: 1
552
- },
553
- transform: " matrix(1 0 0 1 0 0) ",
554
- strokeLinecap: "round"
555
- }
556
- ),
557
- /* @__PURE__ */ jsxRuntime.jsx(
558
- "polygon",
559
- {
560
- points: "36,58.5 59.38,45 36,31.5 ",
561
- style: {
562
- stroke: "none",
563
- strokeWidth: 1,
564
- strokeDasharray: "none",
565
- strokeLinecap: "butt",
566
- strokeLinejoin: "miter",
567
- strokeMiterlimit: 10,
568
- fill: "white",
569
- fillRule: "nonzero",
570
- opacity: 1
571
- },
572
- transform: "matrix(1 0 0 1 0 0)"
573
- }
574
- )
575
- ]
576
- }
577
- )
578
- }
579
- ), "YouTubeLogo");
580
- var youtube_logo_default = YouTubeLogo;
581
- var GitHub = /* @__PURE__ */ __name((props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 438.549 438.549", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
582
- "path",
583
- {
584
- fill: "currentColor",
585
- d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
586
- }
587
- ) }), "GitHub");
588
- var github_default = GitHub;
589
- var LinkElement = /* @__PURE__ */ __name(({
590
- def,
591
- // DO NOT provide a default to any of the props that also appear in def!
592
- onClick,
593
- size,
594
- variant,
595
- icon,
596
- iconAfter,
597
- className = "",
598
- children
599
- }) => {
600
- const {
601
- href,
602
- newTab,
603
- variant: defVariant,
604
- size: defSize,
605
- title
606
- } = def;
607
- const linkProps = {};
608
- if (href.startsWith("http") || href.startsWith("mailto")) {
609
- linkProps.rel = "noreferrer noopener";
610
- if (newTab ?? true) {
611
- linkProps.target = "_blank";
612
- }
613
- } else if (newTab) {
614
- linkProps.target = "_blank";
615
- }
616
- const toSpread = {
617
- href,
618
- ...onClick ? { onClick } : {},
619
- ...linkProps
620
- };
621
- const Contents = /* @__PURE__ */ __name(() => {
622
- if (React4__namespace.default.Children.count(children) > 0) return children;
623
- const _icon = icon ? icon : def.icon ? def.icon : void 0;
624
- const _iconAfter = iconAfter ? iconAfter : def.iconAfter ? def.iconAfter : false;
625
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
626
- _icon && !_iconAfter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pr-1", children: _icon }),
627
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { children: title }),
628
- _icon && _iconAfter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pl-1", children: _icon })
629
- ] });
630
- }, "Contents");
631
- return /* @__PURE__ */ jsxRuntime.jsx(
632
- Link__default.default,
633
- {
634
- className: cn(
635
- buttonVariants({
636
- variant: variant ? variant : defVariant ? defVariant : "link",
637
- size: size ? size : defSize || "default"
638
- }),
639
- // This is a "label only" LinkDef. cf: footer"
640
- href.length > 0 || onClick ? "" : "pointer-events-none",
641
- className
642
- ),
643
- ...toSpread,
644
- children: /* @__PURE__ */ jsxRuntime.jsx(Contents, {})
645
- }
646
- );
647
- }, "LinkElement");
648
- var link_element_default = LinkElement;
649
- var CtaBlockComponent = /* @__PURE__ */ __name(({
650
- block,
651
- className = "",
652
- // assigned to each item
653
- itemClasses = "",
654
- itemSize,
655
- // do not provide default. this is an override to the def
656
- renderLink,
657
- renderButton,
658
- agent
659
- }) => {
660
- if (block.blockType !== "cta") {
661
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "cta block required" });
662
- }
663
- const { elements, specifiers } = block;
664
- let wrapperClasses = "";
665
- let itemclx = "";
666
- if (containsToken(specifiers, "fill")) {
667
- wrapperClasses += "w-full ";
668
- itemclx += "grow shrink !min-w-0";
669
- } else if (containsToken(specifiers, "left")) {
670
- wrapperClasses += "md:justify-start ";
671
- } else if (containsToken(specifiers, "right")) {
672
- wrapperClasses += "md:justify-end ";
673
- } else {
674
- wrapperClasses += "md:justify-center ";
675
- }
676
- const mobile2Columns = containsToken(specifiers, "mobile-2-columns");
677
- const fillEvenly = !containsToken(specifiers, "desktop-dont-fill");
678
- const mobileCenterFirstIfOdd = containsToken(specifiers, "mobile-center-first-if-odd");
679
- const mobileOddFullWidth = containsToken(specifiers, "mobile-odd-full-width");
680
- let layoutclx = void 0;
681
- if (elements.length > 1) {
682
- let resetMinWidth = false;
683
- if (mobile2Columns) {
684
- layoutclx = "grid grid-cols-2 gap-2 self-stretch ";
685
- resetMinWidth = true;
686
- }
687
- if (fillEvenly) {
688
- layoutclx = layoutclx ?? "grid grid-cols-2 gap-2 self-stretch";
689
- resetMinWidth = true;
690
- } else {
691
- layoutclx = layoutclx ? layoutclx + "md:flex md:flex-row md:justify-center " : "flex flex-row justify-center ";
692
- }
693
- itemclx += resetMinWidth ? "!min-w-0 " : "";
694
- }
695
- layoutclx = layoutclx ?? "flex flex-col items-stretch gap-2 self-stretch md:flex-row sm:justify-center ";
696
- const getMobileColSpanClx = /* @__PURE__ */ __name((index, total) => {
697
- const indexToCenter = total % 2 === 0 ? -1 : mobileCenterFirstIfOdd ? 0 : total - 1;
698
- const widthclx = mobileOddFullWidth ? "w-full " : "w-3/5 mx-auto ";
699
- return agent === "phone" && mobile2Columns && index === indexToCenter ? "col-span-2 " + widthclx : "";
700
- }, "getMobileColSpanClx");
701
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
702
- layoutclx,
703
- wrapperClasses,
704
- className
705
- ), children: elements.map((element, index) => {
706
- const twoColClx = getMobileColSpanClx(index, elements.length);
707
- if (element.title) {
708
- const def = element;
709
- return renderLink ? renderLink(def, index) : /* @__PURE__ */ jsxRuntime.jsx(
710
- link_element_default,
711
- {
712
- def,
713
- size: itemSize,
714
- className: cn(itemclx, itemClasses, twoColClx)
715
- },
716
- index
717
- );
718
- } else {
719
- const def = element;
720
- return renderButton ? renderButton(def, index) : /* @__PURE__ */ jsxRuntime.jsx(
721
- action_button_default,
722
- {
723
- def,
724
- size: itemSize,
725
- className: cn(itemclx, itemClasses, twoColClx)
726
- },
727
- index
728
- );
729
- }
730
- }) });
731
- }, "CtaBlockComponent");
732
- var cta_block_default = CtaBlockComponent;
733
- var ImageBlockComponent = /* @__PURE__ */ __name(({
734
- block,
735
- className = "",
736
- agent,
737
- constraintTo
738
- }) => {
739
- if (block.blockType !== "image") {
740
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "image block required" });
741
- }
742
- const {
743
- src,
744
- alt,
745
- dim,
746
- props,
747
- sizes,
748
- fullWidthOnMobile,
749
- svgFillClass,
750
- specifiers
751
- } = block;
752
- const specified = /* @__PURE__ */ __name((s) => containsToken(specifiers, s), "specified");
753
- const toSpread = {};
754
- if (props?.fill === void 0) {
755
- const resolved = constraintTo ? constrain(dim, constraintTo) : dim;
756
- toSpread.width = resolved.w;
757
- toSpread.height = resolved.h;
758
- }
759
- let _alt;
760
- if (alt) {
761
- _alt = alt;
762
- } else {
763
- const tokens = src.split("/");
764
- _alt = tokens.length > 0 ? tokens[tokens.length] : src;
765
- }
766
- const _svgFillClass = svgFillClass ?? "";
767
- if (agent === "phone") {
768
- if (specified("mobile-full-width") || fullWidthOnMobile) {
769
- const toSpread2 = {
770
- style: {
771
- width: "100%",
772
- height: "auto",
773
- maxWidth: "420px"
774
- },
775
- sizes: "100vw"
776
- };
777
- toSpread2.width = dim.w;
778
- toSpread2.height = dim.h;
779
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col items-center w-full", children: /* @__PURE__ */ jsxRuntime.jsx(Image2__default.default, { src, alt: _alt, ...toSpread2, className: cn(_svgFillClass, className) }) });
780
- } else if (!specified("mobile-no-scale")) {
781
- if (props?.style?.width === "auto" && typeof props.style.height === "number") {
782
- props.style.height = props.style.height * 0.75;
783
- } else if (props?.style?.height === "auto" && typeof props?.style?.width === "number") {
784
- props.style.width = props.style.width * 0.75;
785
- } else if (props?.style && !props?.style.width) {
786
- toSpread.width = dim.w * 0.75;
787
- toSpread.height = dim.h * 0.75;
788
- }
789
- }
790
- }
791
- if (sizes) {
792
- toSpread.sizes = sizes;
793
- }
794
- const right = containsToken(specifiers, "right");
795
- const center = containsToken(specifiers, "center");
796
- const alignSelfClx = right ? "self-end" : center ? "self-center" : "self-start";
797
- return props?.fill ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full h-full", children: /* @__PURE__ */ jsxRuntime.jsx(Image2__default.default, { src, alt: _alt, ...toSpread, ...props, className: cn(_svgFillClass, "max-w-[70vw] mx-auto", className) }) }) : /* @__PURE__ */ jsxRuntime.jsx(Image2__default.default, { src, alt: _alt, ...toSpread, ...props, className: cn(alignSelfClx, _svgFillClass, "max-w-[70vw] mx-auto", className) });
798
- }, "ImageBlockComponent");
799
- var image_block_default = ImageBlockComponent;
800
- var VideoBlockComponent = /* @__PURE__ */ __name(({
801
- block,
802
- className = "",
803
- agent,
804
- usePoster = false,
805
- size = "md",
806
- constrainTo
807
- }) => {
808
- const [_dim, setDim] = React4.useState(void 0);
809
- const onResize = /* @__PURE__ */ __name(() => {
810
- setDim({
811
- w: window.innerWidth,
812
- h: window.innerHeight
813
- });
814
- }, "onResize");
815
- const windowDefined = typeof window !== "undefined";
816
- React4.useEffect(() => {
817
- if (window && agent === "desktop") {
818
- window.addEventListener("resize", onResize);
819
- return () => window.removeEventListener("resize", onResize);
820
- }
821
- }, [windowDefined]);
822
- React4.useLayoutEffect(() => {
823
- onResize();
824
- }, []);
825
- if (block.blockType !== "video") {
826
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "video block required" });
827
- }
828
- const b = block;
829
- const ar = b.dim.md.w / b.dim.md.h;
830
- if (agent === "phone") {
831
- if (b.sizing?.mobile?.vw) {
832
- if (!_dim) {
833
- const width = `${b.sizing.mobile.vw}vw`;
834
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dummy-div", style: {
835
- maxWidth: "100%",
836
- maxHeight: "100%",
837
- width,
838
- height: `calc(${width}/${ar})`,
839
- backgroundImage: `url(${b.poster})`,
840
- backgroundSize: "contain",
841
- backgroundRepeat: "no-repeat"
842
- } });
843
- } else {
844
- const width = b.sizing.mobile.vw / 100 * _dim.w;
845
- const dim2 = {
846
- h: width / ar,
847
- w: width
848
- };
849
- return /* @__PURE__ */ jsxRuntime.jsx(
850
- video_player_default,
851
- {
852
- className: cn("mx-auto", className),
853
- sources: b.sources,
854
- width: dim2.w,
855
- height: dim2.h,
856
- ...b.videoProps
857
- }
858
- );
859
- }
860
- }
861
- } else if (b.sizing?.vh) {
862
- if (!_dim) {
863
- const height = `${b.sizing.vh}vh`;
864
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dummy-div", style: {
865
- maxWidth: "100%",
866
- maxHeight: "100%",
867
- height,
868
- width: `calc(${height}*${ar})`,
869
- backgroundImage: `url(${b.poster})`,
870
- backgroundSize: "contain",
871
- backgroundRepeat: "no-repeat"
872
- } });
873
- } else {
874
- const height = b.sizing.vh / 100 * _dim.h;
875
- const dim2 = {
876
- h: height,
877
- w: height * ar
878
- };
879
- return /* @__PURE__ */ jsxRuntime.jsx(
880
- video_player_default,
881
- {
882
- className: cn("mx-auto", className),
883
- sources: b.sources,
884
- width: dim2.w,
885
- height: dim2.h,
886
- ...b.videoProps
887
- }
888
- );
889
- }
890
- }
891
- const videoDims = b.dim;
892
- const dim = size && size in videoDims ? videoDims[size] : videoDims.md;
893
- const conDim = constrainTo ? constrain(dim, constrainTo) : dim;
894
- return usePoster ? /* @__PURE__ */ jsxRuntime.jsx(Image2__default.default, { src: b.poster, alt: "image", width: conDim.w, height: conDim.h, className }) : /* @__PURE__ */ jsxRuntime.jsx(
895
- video_player_default,
896
- {
897
- className: cn("mx-auto", className),
898
- sources: b.sources,
899
- width: conDim.w,
900
- height: conDim.h,
901
- ...b.videoProps
902
- }
903
- );
904
- }, "VideoBlockComponent");
905
- var video_block_default = VideoBlockComponent;
906
-
907
- // blocks/components/card-block/util.ts
908
- var getTypographySize = /* @__PURE__ */ __name((s) => getSpecifierData(
909
- s,
910
- (s2) => getPrimaryStartingWith(s2, "typography"),
911
- (s2) => {
912
- const subTokenArray = s2.split("-");
913
- return subTokenArray[subTokenArray.length - 1];
914
- },
915
- "responsive"
916
- ), "getTypographySize");
917
- var ArrowLinkElement = /* @__PURE__ */ __name(({
918
- def
919
- }) => /* @__PURE__ */ jsxRuntime.jsx(
920
- link_element_default,
921
- {
922
- def,
923
- className: "justify-between",
924
- variant: "link",
925
- icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.linkOut, { className: "w-[18px] h-[18px]" }),
926
- iconAfter: true
927
- }
928
- ), "ArrowLinkElement");
929
- var link_out_button_default = ArrowLinkElement;
930
- var CardBlockComponent = /* @__PURE__ */ __name(({
931
- block,
932
- className = "",
933
- contentClassName = ""
934
- }) => {
935
- if (block.blockType !== "card") {
936
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "card block required" });
937
- }
938
- const card = block;
939
- const has = /* @__PURE__ */ __name((s) => card.specifiers?.includes(s), "has");
940
- const ghost = has("ghost");
941
- const contentclx = (has("content-left") ? "items-start " : " items-center ") + (has("content-top") ? "!justify-start" : "") + contentClassName;
942
- const disabledBorder = has("appear-disabled") ? " border-muted-4" : " border-muted-3";
943
- const outerBorder = has("no-outer-border") || ghost ? " border-0" : "";
944
- const innerBorder = ghost ? " border-0" : "";
945
- const paddingclx = ghost ? " px-0 py-0" : " px-6 py-3";
946
- const mainGap = ghost ? " gap-2" : "";
947
- const disabledText = has("appear-disabled") ? " text-muted-2" : "";
948
- const disabledTypoText = has("appear-disabled") ? " typography-p:text-muted-2" : "";
949
- const bgclx = has("bg-card") ? " bg-level-1" : "";
950
- const titleclx = (has("heading-style-title") ? " font-heading text-base leading-tight" : "") + (ghost ? " text-left md:text-xl" : "");
951
- const typoSize = card.specifiers ? getTypographySize(card.specifiers) : "responsive";
952
- const typoclx = typoSize === "sm" ? "typography-sm typography-p:text-sm " : typoSize === "lg" ? "typography-lg " : "";
953
- const contentBefore = has("content-before");
954
- const iconInline = has("icon-inline");
955
- const contentOnHover = has("reveal-content-on-hover");
956
- const Header2 = /* @__PURE__ */ __name(({
957
- inContent = false,
958
- className: className2 = ""
959
- }) => card.title || card.byline || card.icon ? /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: "not-typography text-accent" + disabledText + paddingclx + innerBorder + className2, children: [
960
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: iconInline || inContent ? "flex flex-row justify-start items-end my-3" : "", children: [
961
- card.icon && !card.iconAfter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: iconInline ? "mr-1" : "mb-2", children: card.icon }),
962
- card.title && /* @__PURE__ */ jsxRuntime.jsx(CardTitle, { className: "text-center text-lg font-medium" + titleclx + (iconInline ? " md:text-xl/none" : ""), children: card.title }),
963
- card.icon && card.iconAfter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: iconInline ? "ml-1" : "my-1", children: card.icon })
964
- ] }),
965
- card.byline && /* @__PURE__ */ jsxRuntime.jsx(CardDescription, { children: card.byline })
966
- ] }) : null, "Header");
967
- const MediaAndContent = /* @__PURE__ */ __name(({
968
- className: className2 = ""
969
- }) => has("media-left") ? (
970
- // media left layout
971
- /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: "flex flex-row justify-start items-stretch p-0 grow " + disabledBorder + bgclx + contentclx + className2, children: [
972
- card.media && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "box-content grow-0 not-typography" + paddingclx, style: {
973
- // If this layout has been specified, assume media is video, and that the 'sm' dim exists.
974
- width: card.media.dim.sm.w
975
- }, children: /* @__PURE__ */ jsxRuntime.jsx(
976
- video_block_default,
977
- {
978
- block: card.media,
979
- usePoster: has("video-use-poster"),
980
- size: "sm",
981
- className: has("appear-disabled") ? "opacity-[0.6]" : ""
982
- }
983
- ) }),
984
- card.content && /* @__PURE__ */ jsxRuntime.jsx(ApplyTypography, { className: "grow border-l flex flex-col justify-center " + disabledTypoText + paddingclx + disabledBorder + contentclx, size: typoSize, children: typeof card.content === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { children: card.content }) : card.content })
985
- ] })
986
- ) : (
987
- // default layout
988
- /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: "grow typography flex flex-col justify-center " + typoclx + disabledTypoText + bgclx + paddingclx + contentclx + (has("full-width") ? " p-0 " : " ") + className2, children: [
989
- contentOnHover && /* @__PURE__ */ jsxRuntime.jsx(Header2, { inContent: true }),
990
- card.content && contentBefore && (typeof card.content === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { children: card.content }) : card.content),
991
- card.media && (card.media.blockType === "image" ? /* @__PURE__ */ jsxRuntime.jsx(image_block_default, { block: card.media }) : /* @__PURE__ */ jsxRuntime.jsx(video_block_default, { block: card.media })),
992
- card.content && !contentBefore && (typeof card.content === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { children: card.content }) : card.content)
993
- ] })
994
- ), "MediaAndContent");
995
- const Footer = /* @__PURE__ */ __name(() => !card.cta ? null : has("links-w-arrow") ? (
996
- // links w arrow
997
- /* @__PURE__ */ jsxRuntime.jsx(CardFooter, { className: "typography typography-a:text-muted-2 typography-a:hover:text-muted-1 typography-a:text-xs typography-a:no-underline typography-a:hover:underline flex flex-col justify-start items-stretch " + paddingclx, children: /* @__PURE__ */ jsxRuntime.jsx(
998
- cta_block_default,
999
- {
1000
- block: card.cta,
1001
- renderLink: (def, key) => /* @__PURE__ */ jsxRuntime.jsx(link_out_button_default, { def }, key)
1002
- }
1003
- ) })
1004
- ) : (
1005
- // default
1006
- /* @__PURE__ */ jsxRuntime.jsx(CardFooter, { className: "grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center " + paddingclx, children: /* @__PURE__ */ jsxRuntime.jsx(cta_block_default, { block: card.cta }) })
1007
- ), "Footer");
1008
- return /* @__PURE__ */ jsxRuntime.jsxs(Card, { className: cn(
1009
- "flex flex-col self-stretch " + (contentOnHover ? "group relative" : "") + disabledBorder + outerBorder + bgclx + mainGap,
1010
- className
1011
- ), children: [
1012
- /* @__PURE__ */ jsxRuntime.jsx(Header2, { className: contentOnHover ? " absolute top-[0px] left-[0px] w-full hidden " : "" }),
1013
- /* @__PURE__ */ jsxRuntime.jsx(MediaAndContent, { className: contentOnHover ? " bg-gradient-to-t from-secondary to-65% items-start justify-start rounded-lg p-4 transition-opacity duration-500 ease-out opacity-100 " : "" }),
1014
- /* @__PURE__ */ jsxRuntime.jsx(Footer, {})
1015
- ] });
1016
- }, "CardBlockComponent");
1017
- var card_block_default = CardBlockComponent;
1018
- var VariantContentLeft = /* @__PURE__ */ __name(({
1019
- block,
1020
- agent,
1021
- className,
1022
- headingclx,
1023
- contentclx,
1024
- footerclx
1025
- }) => {
1026
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1027
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
1028
- block.topContent && /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks: block.topContent, agent, className: "self-center ml-6 mt-6" }),
1029
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
1030
- block.heading && /* @__PURE__ */ jsxRuntime.jsx(CardHeader, { className: cn("typography-img:m-0", headingclx), children: /* @__PURE__ */ jsxRuntime.jsx(enh_heading_block_default, { block: block.heading, className: "text-accent", agent }) }),
1031
- block.content && /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: cn("typography flex flex-col justify-start", contentclx, className), children: /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks: block.content, agent }) })
1032
- ] })
1033
- ] }),
1034
- block.cta && /* @__PURE__ */ jsxRuntime.jsx(CardFooter, { className: cn("grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center mx-auto", footerclx), children: /* @__PURE__ */ jsxRuntime.jsx(cta_block_default, { block: block.cta, agent }) })
1035
- ] });
1036
- }, "VariantContentLeft");
1037
- var variant_content_left_default = VariantContentLeft;
1038
- var _getClx = /* @__PURE__ */ __name((specifier, section) => {
1039
- let result = "";
1040
- if (specifier === "big-padding") {
1041
- switch (section) {
1042
- // defaults: p-4 lg:p-6 xl:p-8
1043
- case "header":
1044
- {
1045
- result = "md:p-8 lg:p-12 xl:p-16";
1046
- }
1047
- break;
1048
- }
1049
- }
1050
- if (specifier === "big-padding-content") {
1051
- switch (section) {
1052
- case "content":
1053
- {
1054
- result = "md:p-8 lg:p-12 xl:p-16";
1055
- }
1056
- break;
1057
- }
1058
- } else if (specifier === "no-inner-borders") {
1059
- switch (section) {
1060
- case "header":
1061
- {
1062
- result = "border-none";
1063
- }
1064
- break;
1065
- case "footer":
1066
- {
1067
- result = "border-t-0";
1068
- }
1069
- break;
1070
- }
1071
- }
1072
- return result;
1073
- }, "_getClx");
1074
- var CarteBlancheBlockComponent = /* @__PURE__ */ __name(({
1075
- block,
1076
- className = "",
1077
- agent
1078
- }) => {
1079
- if (block.blockType !== "carte-blanche") {
1080
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "carte blanche block required" });
1081
- }
1082
- const b = block;
1083
- const specified = /* @__PURE__ */ __name((s) => containsToken(b.specifiers, s), "specified");
1084
- const getClx = /* @__PURE__ */ __name((specifier, section) => specified(specifier) ? _getClx(specifier, section) : "", "getClx");
1085
- const headingclx = [
1086
- getClx("big-padding", "header"),
1087
- getClx("no-inner-borders", "header")
1088
- ].join(" ");
1089
- const contentclx = [
1090
- getClx("big-padding-content", "content")
1091
- ].join(" ");
1092
- const footerclx = [
1093
- getClx("no-inner-borders", "footer")
1094
- ].join(" ");
1095
- const noOuterBorders = specified("no-outer-borders");
1096
- const contentLeft = specified("variant-content-left");
1097
- const mobileContentLeft = specified("variant-mobile-content-left");
1098
- return /* @__PURE__ */ jsxRuntime.jsx(Card, { className: cn("flex flex-col", className, noOuterBorders ? "border-none" : ""), children: contentLeft || mobileContentLeft && agent === "phone" ? /* @__PURE__ */ jsxRuntime.jsx(variant_content_left_default, { block: b, agent, className, headingclx, contentclx, footerclx }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1099
- (b.heading || b.topContent) && /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: cn("typography-img:m-0", headingclx), children: [
1100
- b.topContent && /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks: b.topContent, agent, className: "" }),
1101
- b.heading && /* @__PURE__ */ jsxRuntime.jsx(enh_heading_block_default, { block: b.heading, className: "text-accent", agent })
1102
- ] }),
1103
- b.content && /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: cn("typography flex flex-col justify-center", contentclx, className), children: /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks: b.content, agent }) }),
1104
- b.cta && /* @__PURE__ */ jsxRuntime.jsx(CardFooter, { className: cn("grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center", footerclx), children: /* @__PURE__ */ jsxRuntime.jsx(cta_block_default, { block: b.cta, agent }) })
1105
- ] }) });
1106
- }, "CarteBlancheBlockComponent");
1107
- var carte_blanche_block_default = CarteBlancheBlockComponent;
1108
- var DEFAULTS = {
1109
- preheading: {
1110
- tag: "h4",
1111
- mb: 2
1112
- },
1113
- heading: {
1114
- tag: "h1",
1115
- mb: 2
1116
- },
1117
- byline: {
1118
- tag: "h6"
1119
- }
1120
- };
1121
- var tagFromLevel = /* @__PURE__ */ __name((level) => {
1122
- switch (level) {
1123
- case 1: {
1124
- return "h1";
1125
- }
1126
- case 2: {
1127
- return "h2";
1128
- }
1129
- case 3: {
1130
- return "h3";
1131
- }
1132
- case 4: {
1133
- return "h4";
1134
- }
1135
- case 5: {
1136
- return "h5";
1137
- }
1138
- case 6: {
1139
- return "h6";
1140
- }
1141
- }
1142
- return "p";
1143
- }, "tagFromLevel");
1144
- var Element = /* @__PURE__ */ __name(({
1145
- asTag: Tag,
1146
- text,
1147
- icon,
1148
- iconLeft = true,
1149
- className: elClassName = ""
1150
- }) => /* @__PURE__ */ jsxRuntime.jsx(Tag, { className: elClassName, children: text }), "Element");
1151
- var getPositionClx = /* @__PURE__ */ __name((specified, agent) => {
1152
- const mobileHeadingCentered = specified("mobile-heading-centered");
1153
- const mobileHeadingLeft = specified("mobile-heading-left");
1154
- const headingCentered = specified("center");
1155
- const headingRight = specified("right");
1156
- const bylineCentered = specified("byline-center");
1157
- const bylineRight = specified("byline-right");
1158
- const mobileBylineLeft = specified("mobile-byline-left");
1159
- let headerclx = "";
1160
- let bylineclx = bylineCentered ? "self-center !text-center" : bylineRight ? "self-end !text-right" : "self-start !text-left";
1161
- if (agent === "phone") {
1162
- if (mobileHeadingLeft) {
1163
- headerclx = "self-start text-left";
1164
- } else {
1165
- headerclx = mobileHeadingCentered || headingCentered ? "self-center text-center" : headingRight ? "self-end text-right" : "self-start text-left";
1166
- }
1167
- if (mobileBylineLeft) {
1168
- bylineclx = "self-start !text-left";
1169
- }
1170
- } else {
1171
- const largerclx = headingCentered ? "self-center text-center" : headingRight ? "self-end text-right" : "self-start text-left";
1172
- if (mobileHeadingCentered) {
1173
- headerclx = "self-center text-center md:" + largerclx.split(" ").join(" md:");
1174
- } else {
1175
- headerclx = largerclx;
1176
- }
1177
- }
1178
- return {
1179
- preheading: headerclx,
1180
- heading: headerclx,
1181
- byline: bylineclx
1182
- };
1183
- }, "getPositionClx");
1184
- var EnhHeadingBlockComponent = /* @__PURE__ */ __name(({
1185
- block,
1186
- className = "",
1187
- agent,
1188
- applyTypography = true,
1189
- extraSpecifiers = ""
1190
- }) => {
1191
- if (block.blockType !== "enh-heading") {
1192
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "enhance heading block required" });
1193
- }
1194
- const b = block;
1195
- const specified = /* @__PURE__ */ __name((s) => containsToken(b.specifiers + extraSpecifiers, s), "specified");
1196
- const preheadingHeadingFont = specified("preheading-heading-font");
1197
- const phFontClx = preheadingHeadingFont ? "font-heading" : "";
1198
- const alignMiddleClx = specified("align-middle") ? "my-auto" : "";
1199
- const positionclx = getPositionClx(specified, agent);
1200
- const Inner = /* @__PURE__ */ __name(() => {
1201
- const toRender = [
1202
- {
1203
- tag: b.preheading ? b.preheading.level !== void 0 ? tagFromLevel(b.preheading.level) : DEFAULTS.preheading.tag : void 0,
1204
- clx: b.preheading ? (b.preheading.mb !== void 0 ? `mb-${b.preheading.mb}` : `mb-${DEFAULTS.preheading.mb}`) + " " + positionclx.preheading + " " + phFontClx : positionclx.preheading + " " + phFontClx,
1205
- text: b.preheading ? b.preheading.text : void 0
1206
- },
1207
- {
1208
- tag: b.heading.level !== void 0 ? tagFromLevel(b.heading.level) : DEFAULTS.heading.tag,
1209
- clx: (b.heading.mb !== void 0 ? `mb-${b.heading.mb}` : `mb-${DEFAULTS.heading.mb}`) + " " + positionclx.heading,
1210
- text: b.heading.text
1211
- },
1212
- {
1213
- tag: b.byline ? b.byline.level !== void 0 ? tagFromLevel(b.byline.level) : DEFAULTS.byline.tag : void 0,
1214
- clx: positionclx.byline,
1215
- text: b.byline ? b.byline.text : void 0
1216
- }
1217
- ];
1218
- let iconRendered = false;
1219
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: toRender.map(({ tag, clx, text }, index) => {
1220
- if (!tag) return null;
1221
- if (b.icon && !iconRendered) {
1222
- iconRendered = true;
1223
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-row items-center gap-2 sm:gap-4", clx), children: [
1224
- /* @__PURE__ */ jsxRuntime.jsx(inline_icon_default, { icon: b.icon, size: b.iconSize ?? 32, agent }),
1225
- /* @__PURE__ */ jsxRuntime.jsx(Element, { asTag: tag, text })
1226
- ] }, `div-${index}`);
1227
- }
1228
- return /* @__PURE__ */ jsxRuntime.jsx(Element, { asTag: tag, text, className: clx }, `el-${index}`);
1229
- }) });
1230
- }, "Inner");
1231
- return applyTypography ? /* @__PURE__ */ jsxRuntime.jsx(ApplyTypography, { className: cn("flex flex-col w-full !gap-0", className, alignMiddleClx), children: /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col w-full gap-0", className, alignMiddleClx), children: /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) });
1232
- }, "EnhHeadingBlockComponent");
1233
- var enh_heading_block_default = EnhHeadingBlockComponent;
1234
- var HeadingBlockComponent = /* @__PURE__ */ __name(({
1235
- block,
1236
- className = ""
1237
- }) => {
1238
- if (block.blockType !== "heading") {
1239
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "heading block required" });
1240
- }
1241
- const heading = block;
1242
- let Tag;
1243
- let BylineTag = void 0;
1244
- switch (heading.bylineLevel) {
1245
- case 0:
1246
- {
1247
- BylineTag = "p";
1248
- }
1249
- break;
1250
- case 1:
1251
- {
1252
- BylineTag = "h1";
1253
- }
1254
- break;
1255
- case 2:
1256
- {
1257
- BylineTag = "h2";
1258
- }
1259
- break;
1260
- case 3:
1261
- {
1262
- BylineTag = "h3";
1263
- }
1264
- break;
1265
- case 4:
1266
- {
1267
- BylineTag = "h4";
1268
- }
1269
- break;
1270
- case 5:
1271
- {
1272
- BylineTag = "h5";
1273
- }
1274
- break;
1275
- case 6:
1276
- {
1277
- BylineTag = "h6";
1278
- }
1279
- break;
1280
- }
1281
- switch (heading.level) {
1282
- case 0:
1283
- {
1284
- Tag = "p";
1285
- BylineTag = BylineTag ?? "p";
1286
- }
1287
- break;
1288
- case 1:
1289
- {
1290
- Tag = "h1";
1291
- BylineTag = BylineTag ?? "h3";
1292
- }
1293
- break;
1294
- case 2:
1295
- {
1296
- Tag = "h2";
1297
- BylineTag = BylineTag ?? "h4";
1298
- }
1299
- break;
1300
- // 3 is default
1301
- case 4:
1302
- {
1303
- Tag = "h4";
1304
- BylineTag = BylineTag ?? "h6";
1305
- }
1306
- break;
1307
- case 5:
1308
- {
1309
- Tag = "h5";
1310
- BylineTag = BylineTag ?? "p";
1311
- }
1312
- break;
1313
- case 6:
1314
- {
1315
- Tag = "h6";
1316
- BylineTag = BylineTag ?? "p";
1317
- }
1318
- break;
1319
- default: {
1320
- Tag = "h3";
1321
- BylineTag = BylineTag ?? "h5";
1322
- }
1323
- }
1324
- return /* @__PURE__ */ jsxRuntime.jsxs(ApplyTypography, { className, children: [
1325
- /* @__PURE__ */ jsxRuntime.jsx(Tag, { children: heading.heading }),
1326
- heading.spaceBetween && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `w-[1px] h-${heading.spaceBetween}` }),
1327
- heading.byline && /* @__PURE__ */ jsxRuntime.jsx(BylineTag, { children: heading.byline }),
1328
- heading.spaceAfter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `w-[1px] h-${heading.spaceAfter}` })
1329
- ] });
1330
- }, "HeadingBlockComponent");
1331
- var heading_block_default = HeadingBlockComponent;
1332
-
1333
- // tailwind/screens.tailwind.js
1334
- var screens_tailwind_default = {
1335
- xs: "0px",
1336
- // <-- phone
1337
- sm: "480px",
1338
- // phone --><-- sm tablets / narrow
1339
- md: "768px",
1340
- // sm tablets / narrow -->
1341
- lg: "1024px",
1342
- xl: "1280px",
1343
- "2xl": "1500px"
1344
- };
1345
-
1346
- // types/breakpoints.ts
1347
- var Breakpoints = Object.keys(screens_tailwind_default);
1348
- var getLayoutInfo = /* @__PURE__ */ __name((s) => {
1349
- const tokenArray = s.split(" ");
1350
- const layoutToken = tokenArray.find((tok) => tok.startsWith("layout-"));
1351
- if (layoutToken) {
1352
- const subtokens = layoutToken.split("-");
1353
- const layout = subtokens[1];
1354
- let spec = {};
1355
- switch (layout) {
1356
- case "grid":
1357
- {
1358
- const columns = parseInt(subtokens[2], 10);
1359
- const starting = subtokens[4];
1360
- if (Number.isNaN(columns) || columns < 2 || columns > 6 || !Breakpoints.includes(starting)) {
1361
- return void 0;
1362
- }
1363
- spec = {
1364
- columns,
1365
- starting
1366
- };
1367
- }
1368
- break;
1369
- }
1370
- return {
1371
- layout,
1372
- spec
1373
- };
1374
- }
1375
- return void 0;
1376
- }, "getLayoutInfo");
1377
- var GroupBlockComponent = /* @__PURE__ */ __name(({
1378
- block,
1379
- className = ""
1380
- }) => {
1381
- if (block.blockType !== "group") {
1382
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "group block required" });
1383
- }
1384
- const group = block;
1385
- if (group.specifiers?.includes("layout")) {
1386
- const layoutSpec = getLayoutInfo(group.specifiers);
1387
- if (!layoutSpec) {
1388
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "invalid or missing layout specifier in group block!" });
1389
- }
1390
- if (layoutSpec.layout === "grid") {
1391
- const { elements } = group;
1392
- const { spec: { starting, columns } } = layoutSpec;
1393
- const clazzName = cn(
1394
- "grid xs:grid-cols-1 gap-2 sm:gap-3",
1395
- `${starting}:grid-cols-${columns} `,
1396
- className
1397
- );
1398
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clazzName, children: /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks: elements }) });
1399
- }
1400
- }
1401
- return null;
1402
- }, "GroupBlockComponent");
1403
- var group_block_default = GroupBlockComponent;
1404
- var TAGS = [
1405
- "div",
1406
- "h1",
1407
- "h2",
1408
- "h3",
1409
- "h4",
1410
- "h5",
1411
- "h6"
1412
- ];
1413
- var SpaceBlockComponent = /* @__PURE__ */ __name(({
1414
- block,
1415
- className = ""
1416
- }) => {
1417
- if (block && block.blockType !== "space") {
1418
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "space block required" });
1419
- }
1420
- const b = block;
1421
- if (!b.level) {
1422
- if (typeof b.sizes == "number") {
1423
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(`invisible w-[1px] h-${b.sizes}`, className) });
1424
- }
1425
- const _sizes = {};
1426
- ldMerge(_sizes, SPACE_DEFAULTS, b.sizes);
1427
- let clx = "";
1428
- for (const [key, value] of Object.entries(_sizes)) {
1429
- clx += `${key}:h-${value} `;
1430
- }
1431
- if (b.test) {
1432
- console.log(clx);
1433
- }
1434
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("invisible w-[1px] " + clx, className) });
1435
- }
1436
- const Tag = TAGS[b.level];
1437
- const heightClx = b.level === 0 ? "h-4" : "";
1438
- return /* @__PURE__ */ jsxRuntime.jsx(ApplyTypography, { className, children: /* @__PURE__ */ jsxRuntime.jsx(Tag, { className: "invisible m-0 " + heightClx, children: "\xA0" }) });
1439
- }, "SpaceBlockComponent");
1440
- var space_block_default = SpaceBlockComponent;
1441
- var map2 = /* @__PURE__ */ new Map();
1442
- map2.set("accordian", accordian_block_default);
1443
- map2.set("bullet-cards", bullet_cards_block_default);
1444
- map2.set("card", card_block_default);
1445
- map2.set("carte-blanche", carte_blanche_block_default);
1446
- map2.set("cta", cta_block_default);
1447
- map2.set("heading", heading_block_default);
1448
- map2.set("enh-heading", enh_heading_block_default);
1449
- map2.set("space", space_block_default);
1450
- map2.set("image", image_block_default);
1451
- map2.set("video", video_block_default);
1452
- map2.set("group", group_block_default);
1453
- map2.set("grid", grid_block_default);
1454
- var registerBlockType = /* @__PURE__ */ __name((key, type) => {
1455
- map2.set(key, type);
1456
- }, "registerBlockType");
1457
- var renderBlock = /* @__PURE__ */ __name((block, className, agent, keyStr) => {
1458
- if (block.blockType === "element") {
1459
- return block.element;
1460
- }
1461
- const CompType = map2.get(block.blockType);
1462
- if (!CompType) return null;
1463
- return /* @__PURE__ */ jsxRuntime.jsx(CompType, { block, className, agent }, keyStr ?? "");
1464
- }, "renderBlock");
1465
- var ContentComponent = /* @__PURE__ */ __name(({
1466
- blocks,
1467
- className = "",
1468
- agent
1469
- }) => {
1470
- if (!blocks) return null;
1471
- if (Array.isArray(blocks)) {
1472
- return blocks.map((block, index) => renderBlock(block, className, agent, `content-block-${block.blockType}-${index}`));
1473
- }
1474
- return renderBlock(blocks, className, agent);
1475
- }, "ContentComponent");
1476
- var Poster = /* @__PURE__ */ __name(({
1477
- children,
1478
- banner,
1479
- className = ""
1480
- }) => banner ? /* @__PURE__ */ jsxRuntime.jsx(
1481
- "div",
1482
- {
1483
- className: cn("relative", className),
1484
- style: {
1485
- height: "100%",
1486
- width: "100%",
1487
- backgroundImage: `url(${typeof banner === "string" ? banner : banner.poster})`,
1488
- backgroundSize: "cover",
1489
- backgroundRepeat: "no-repeat"
1490
- },
1491
- children
1492
- }
1493
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("bg-transparent h-full w-full relative", className), children }), "Poster");
1494
- var poster_background_default = Poster;
1495
- var ContentColumn = /* @__PURE__ */ __name(({
1496
- blocks,
1497
- specifiers,
1498
- agent,
1499
- className = ""
1500
- }) => {
1501
- const specified = /* @__PURE__ */ __name((s) => containsToken(specifiers, s), "specified");
1502
- let modifiers = "";
1503
- if (agent !== "phone") {
1504
- if (specified("right")) {
1505
- modifiers += "items-end ";
1506
- } else if (specified("center")) {
1507
- modifiers += "items-center ";
1508
- } else {
1509
- modifiers += "items-start ";
1510
- }
1511
- } else {
1512
- modifiers += "items-start ";
1513
- }
1514
- if (agent !== "phone") {
1515
- if (specified("bottom")) {
1516
- modifiers += "justify-end ";
1517
- } else if (specified("vert-center")) {
1518
- modifiers += "justify-center ";
1519
- } else {
1520
- modifiers += "justify-start ";
1521
- }
1522
- if (specified("text-align-right")) {
1523
- modifiers += "text-right ";
1524
- } else {
1525
- modifiers += "text-left ";
1526
- }
1527
- } else {
1528
- if (specified("mobile-vert-center")) {
1529
- modifiers += "justify-center ";
1530
- } else {
1531
- modifiers += "justify-start ";
1532
- }
1533
- }
1534
- if (agent === "phone" && specified("mobile-center-headings")) {
1535
- modifiers += "typography-headings:text-center ";
1536
- }
1537
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col justify-center h-full", modifiers, className), children: /* @__PURE__ */ jsxRuntime.jsx(ContentComponent, { blocks, agent }) });
1538
- }, "ContentColumn");
1539
- var Content2 = /* @__PURE__ */ __name(({
1540
- block: b,
1541
- agent,
1542
- className = ""
1543
- }) => {
1544
- const layoutClx = "flex flex-col gap-2 sm:gap-4 h-full " + (agent !== "phone" ? `md:grid md:gap-8 md:grid-cols-${b.contentColumns.length} ` : "");
1545
- const orderclx = /* @__PURE__ */ __name((columnIndex) => {
1546
- const orderIndex = b.mobileOrder?.indexOf(columnIndex);
1547
- return orderIndex && orderIndex >= 0 ? `order-${orderIndex} md:order-none` : "";
1548
- }, "orderclx");
1549
- return b.contentColumns.length == 1 ? /* @__PURE__ */ jsxRuntime.jsx(
1550
- ContentColumn,
1551
- {
1552
- blocks: b.contentColumns[0],
1553
- specifiers: b.columnSpecifiers?.[0],
1554
- agent,
1555
- className: cn(className)
1556
- }
1557
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(layoutClx, className), children: b.contentColumns.map((column, index) => /* @__PURE__ */ jsxRuntime.jsx(
1558
- ContentColumn,
1559
- {
1560
- blocks: column,
1561
- specifiers: b.columnSpecifiers?.[index],
1562
- agent,
1563
- className: orderclx(index)
1564
- },
1565
- index
1566
- )) });
1567
- }, "Content");
1568
- var content_default = Content2;
1569
- var VideoBG = /* @__PURE__ */ __name(({
1570
- block,
1571
- className = "",
1572
- initialInView
1573
- }) => {
1574
- const { ref, inView } = reactIntersectionObserver.useInView({
1575
- threshold: 0.75,
1576
- initialInView
1577
- });
1578
- return block ? /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, children: inView && /* @__PURE__ */ jsxRuntime.jsx(
1579
- "video",
1580
- {
1581
- autoPlay: true,
1582
- loop: true,
1583
- muted: true,
1584
- style: {
1585
- margin: 0,
1586
- height: "100%",
1587
- width: "100%",
1588
- objectFit: "cover"
1589
- },
1590
- children: block.sources?.map((src, index) => /* @__PURE__ */ jsxRuntime.jsx("source", { src }, index))
1591
- }
1592
- ) }) : null;
1593
- }, "VideoBG");
1594
- var video_background_default = VideoBG;
1595
- var Video = /* @__PURE__ */ __name((props) => {
1596
- const [mounted, setMounted] = React4.useState(false);
1597
- React4.useEffect(() => {
1598
- setMounted(true);
1599
- }, []);
1600
- if (!mounted) return null;
1601
- return /* @__PURE__ */ jsxRuntime.jsx(video_background_default, { ...props });
1602
- }, "Video");
1603
- var ScreenfulComponent = /* @__PURE__ */ __name(({
1604
- block,
1605
- agent,
1606
- initialInView = false,
1607
- snapTile = false,
1608
- clx = "",
1609
- contentClx = "",
1610
- bottom
1611
- }) => {
1612
- if (block.blockType !== "screenful") {
1613
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "screenful block required" });
1614
- }
1615
- const b = block;
1616
- const hasBannerVideo = /* @__PURE__ */ __name(() => !!b.banner && typeof b.banner === "object", "hasBannerVideo");
1617
- const tileHeight = agent === "desktop" ? "h-full " : "h-[100svh] ";
1618
- const specified = /* @__PURE__ */ __name((s) => containsToken(b.specifiers, s), "specified");
1619
- const narrowGutters = specified("narrow-gutters");
1620
- const noGutters = specified("no-gutters");
1621
- const fullScreenWidth = specified("full-screen-width");
1622
- const vertCenter = specified("vert-center");
1623
- const oneColumn = b.contentColumns.length === 1;
1624
- const cwclx = [
1625
- "xl:mx-auto overflow-y-hidden h-full",
1626
- fullScreenWidth ? "" : "max-w-screen-xl",
1627
- // desktop header: 80px / pt-20
1628
- // mobile header: 44px / pt-11
1629
- narrowGutters ? "px-6 lg:px-8 2xl:px-2 pb-4 lg:pb-6 xl:pb-8 " + (snapTile ? "pt-15 md:pt-26 lg:pt-28 " : "") : noGutters ? "px-0 pb-0 " + (snapTile ? "pt-11 lg:pt-20 " : "") : "px-[8vw] xl:px-[1vw] pb-[8vh] pt-[calc(44px+4vh)] md:pt-[calc(80px+6vh)] ",
1630
- agent && agent !== "desktop" ? "pt-15 sm:pt-17 pb-0 px-3 sm:px-8" : ""
1631
- ];
1632
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { ...b.anchorId ? { id: b.anchorId } : {}, className: cn(
1633
- snapTile ? "snap-start snap-always h-[100vh]" : "min-h-screen",
1634
- bottom ? "flex flex-col" : "",
1635
- clx
1636
- ), children: [
1637
- /* @__PURE__ */ jsxRuntime.jsx(ApplyTypography, { className: cn(
1638
- "w-full flex flex-row justify-center self-stretch",
1639
- snapTile ? tileHeight : "",
1640
- bottom ? "grow" : ""
1641
- ), children: /* @__PURE__ */ jsxRuntime.jsxs(poster_background_default, { banner: b.banner, children: [
1642
- hasBannerVideo() && /* @__PURE__ */ jsxRuntime.jsx(
1643
- Video,
1644
- {
1645
- block: b.banner,
1646
- className: "absolute top-0 left-0 bottom-0 right-0",
1647
- initialInView
1648
- }
1649
- ),
1650
- /* @__PURE__ */ jsxRuntime.jsxs(
1651
- "div",
1652
- {
1653
- className: cn(
1654
- ...cwclx,
1655
- snapTile ? "absolute left-0 right-0 top-0 bottom-0 " : "flex min-h-screen w-full",
1656
- contentClx,
1657
- // TODO :aa py-0 breaks padding for header! Investigate why I would have done this!
1658
- vertCenter ? "self-center " + (oneColumn ? "!py-0" : "") : ""
1659
- ),
1660
- children: [
1661
- /* @__PURE__ */ jsxRuntime.jsx(content_default, { block: b, agent, className: "w-full" }),
1662
- b.footer
1663
- ]
1664
- }
1665
- )
1666
- ] }) }),
1667
- bottom
1668
- ] });
1669
- }, "ScreenfulComponent");
1670
- var screenful_block_default = ScreenfulComponent;
1671
-
1672
- exports.AccordianBlockComponent = accordian_block_default;
1673
- exports.BlocksComponent = ContentComponent;
1674
- exports.CTABlockComponent = cta_block_default;
1675
- exports.CardBlockComponent = card_block_default;
1676
- exports.ContentComponent = ContentComponent;
1677
- exports.EnhHeadingBlockComponent = enh_heading_block_default;
1678
- exports.GroupBlockComponent = group_block_default;
1679
- exports.HeadingBlockComponent = heading_block_default;
1680
- exports.ImageBlockComponent = image_block_default;
1681
- exports.SPACE_DEFAULTS = SPACE_DEFAULTS;
1682
- exports.ScreenfulBlockComponent = screenful_block_default;
1683
- exports.SpaceBlockComponent = space_block_default;
1684
- exports.VideoBlockComponent = video_block_default;
1685
- exports.registerBlockType = registerBlockType;
2
+ 'use strict';var A=require('@radix-ui/react-accordion'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),je=require('react'),Be=require('next/image'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),oo=require('next/link'),reactIntersectionObserver=require('react-intersection-observer');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var A__namespace=/*#__PURE__*/_interopNamespace(A);var je__namespace=/*#__PURE__*/_interopNamespace(je);var Be__default=/*#__PURE__*/_interopDefault(Be);var oo__default=/*#__PURE__*/_interopDefault(oo);var Le=Object.defineProperty;var i=(e,o)=>Le(e,"name",{value:o,configurable:true});var gt=(e,o)=>{for(var r in o)Le(e,r,{get:o[r],enumerable:true});};var de={xs:2,sm:4,md:5,lg:6,xl:8};function s(...e){return tailwindMerge.twMerge(clsx.clsx(e))}i(s,"cn");var fe=A__namespace.Root,te=i(({className:e,ref:o,...r})=>jsxRuntime.jsx(A__namespace.Item,{className:s("",e),ref:o,...r}),"AccordionItem");te.displayName="AccordionItem";var oe=i(({className:e,children:o,hideArrow:r=false,ref:t,...n})=>jsxRuntime.jsx(A__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(A__namespace.Trigger,{className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),ref:t,...n,children:[o,r?null:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}),"AccordionTrigger");oe.displayName=A__namespace.Trigger.displayName;var re=i(({className:e,children:o,ref:r,...t})=>jsxRuntime.jsx(A__namespace.Content,{className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down w-full overflow-hidden text-sm transition-all",ref:r,...t,children:jsxRuntime.jsx("div",{className:s("pt-0 pb-4",e),children:o})}),"AccordionContent");re.displayName=A__namespace.Content.displayName;function _({className:e,...o}){return jsxRuntime.jsx("div",{"data-slot":"card",className:s("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...o})}i(_,"Card");function z({className:e,...o}){return jsxRuntime.jsx("div",{"data-slot":"card-header",className:s("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...o})}i(z,"CardHeader");function ue({className:e,...o}){return jsxRuntime.jsx("div",{"data-slot":"card-title",className:s("leading-none font-semibold",e),...o})}i(ue,"CardTitle");function ge({className:e,...o}){return jsxRuntime.jsx("div",{"data-slot":"card-description",className:s("text-muted-foreground text-sm",e),...o})}i(ge,"CardDescription");function I({className:e,...o}){return jsxRuntime.jsx("div",{"data-slot":"card-content",className:s("px-6",e),...o})}i(I,"CardContent");function L({className:e,...o}){return jsxRuntime.jsx("div",{"data-slot":"card-footer",className:s("flex items-center px-6 [.border-t]:pt-6",e),...o})}i(L,"CardFooter");var Fe=i((e,o)=>e.split(" ").find(t=>t.startsWith(`${o}-`)),"getPrimaryStartingWith");function ze(e,o,r,t){let n=o(e);return n?r(n)??t:t??void 0}i(ze,"getSpecifierData");function ne(e,o,r){if(typeof e=="number"&&typeof o=="number"&&typeof r=="number")return Math.min(Math.max(e,o),r);if(typeof e=="object"&&typeof o=="object"){let t=e,n=o,a=t.w/t.h,l=n.w/n.h;return a>l?{w:n.w,h:n.w/a}:{w:n.h*a,h:n.h}}throw new Error("Invalid parameters for constrain function")}i(ne,"constrain");function b(e,o){return e?e.toLowerCase().includes(o.toLowerCase()):false}i(b,"containsToken");function Ve(...e){let o={};for(let r of e)r&&typeof r=="object"&&Object.assign(o,r);return o}i(Ve,"ldMerge");var B=i(({children:e,className:o="",asTag:r="div",size:t="responsive",...n})=>{let a="typography gap-3 xs:typography-sm sm:typography sm:gap-4 lg:typography-lg lg:gap-5 xl:typography-xl xl:gap-6 typography-headings:font-heading ";switch(t){case "sm":a="typography typography-sm gap-3 typography-headings:font-heading typography-p:text-sm ";break;case "base":a="typography gap-4 typography-headings:font-heading ";break;case "lg":a="typography typography-lg gap-5 typography-headings:font-heading typography-p:text-lg ";break;case "xl":a="typography typography-xl gap-6 typography-headings:font-heading typography-p:text-lg ";break}return jsxRuntime.jsx(r,{...n,className:s(a,o),children:e})},"ApplyTypography");var vt=je__namespace.default.forwardRef(({sources:e,...o},r)=>jsxRuntime.jsx("video",{ref:r,...o,children:e.map((t,n)=>jsxRuntime.jsx("source",{src:t},n))})),j=vt;var Bt=i(({block:e,className:o=""})=>{if(e.blockType!=="accordian")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"accordian block required"});let r=e;return jsxRuntime.jsx(fe,{type:"single",collapsible:true,className:s("w-full border rounded-xl overflow-hidden",o),children:r.items.map((t,n)=>jsxRuntime.jsxs(te,{className:"border-b last:border-0 overflow-hidden",value:`value-${n}`,children:[jsxRuntime.jsx(oe,{className:"px-3 md:px-4 lg:px-6 hover:no-underline hover:bg-level-3",children:jsxRuntime.jsx(B,{children:jsxRuntime.jsx("h6",{className:"leading-[1.2] text-[1.05rem] font-semibold ",children:t.trigger})})}),jsxRuntime.jsx(re,{className:"p-4 border-t bg-level-1",children:jsxRuntime.jsx(B,{className:"flex flex-col justify-start items-start ",children:typeof t.content=="string"?jsxRuntime.jsx("p",{children:t.content}):t.content})})]},n))})},"AccordianBlockComponent"),ye=Bt;var At=i(({icon:e,size:o,agent:r,className:t=""})=>{if(!e)return null;let n=r==="phone";if(typeof e=="string"){let a=n&&o?o*.75:o;return jsxRuntime.jsx(Be__default.default,{src:e,width:a,height:a,alt:"icon",className:t})}return jsxRuntime.jsx("div",{className:t,children:e})},"InlineIcon"),ie=At;var Nt=i((e,o,r)=>{let t=i(()=>e<r,"isFirstRow"),n=i(()=>e%r===0,"isFirstColumn"),a=i(()=>e===0,"isTLCorner"),l=i(()=>e===r-1,"isTRCorner"),p=i(()=>e===o-r,"isBLCorner"),m=i(()=>e===o-1,"isBRCorner"),d="border-b md:border-r p-4 md:p-8 lg:p-12 ";return t()&&(d+="border-t "),n()&&(d+="md:border-l "),a()?d+="border-t md:rounded-tl-lg ":l()?d+="md:rounded-tr-lg ":p()?d+="md:rounded-bl-lg ":m()&&(d+="md:rounded-br-lg "),d},"getCellClx"),Rt="gap-0 md:gap-0 xl:gap-0",He={getCellClx:Nt,gapClx:Rt};var We=new Map;We.set("style-table-borders",He);var $e=i(e=>We.get(e),"default");var he=i((e,o)=>typeof e=="number"?`${o??""}grid-cols-${e} `:`${o??""}grid-cols-${e.columns} ${o??""}gap-${e.gap} `,"gridClx"),Dt=i(({block:e,className:o="",agent:r,children:t})=>{if(e.blockType!=="grid")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"grid block required"});let{cells:n,grid:a,specifiers:l}=e,m=i(f=>b(l,f),"specified")("style-table-borders")?$e("style-table-borders"):void 0,d="grid ";if(r==="phone"){let f=a.mobile?a.mobile:a.at.xs?a.at.xs:a.at.sm??1;d+=he(f);}else {let f=false;for(let[g,y]of Object.entries(a.at))f?d+=he(y,`${g}:`):(d+=he(y),f=true);}let c=i(f=>"","getMutatorCellClx");if(m?.getCellClx){let f=typeof a.at.md=="number"?a.at.md:a.at.md.columns,g=n?.length;if(!f||!g)throw new Error("GridBlockComponent: using mutator, but colCount and / or cellCount is invalid!");c=i(y=>m.getCellClx(y,g,f),"getMutatorCellClx");}return jsxRuntime.jsx("div",{className:s("grid gap-2 md:gap-4 xl:gap-6",d,m?.gapClx??"",o),children:je__namespace.default.Children.count(t)>0?t:n?.map((f,g)=>jsxRuntime.jsx(T,{blocks:f,agent:r,className:c(g)},`cell-${g}`))})},"GridBlockComponent"),ae=Dt;var It=i(({block:e,className:o="",agent:r})=>{if(e.blockType!=="bullet-cards")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"bullet cards block required"});let t=e,n=i(m=>b(t.specifiers,m),"specified"),a=n("no-card-border")?"border-0":"md:border",l=n("mobile-small-text")?"text-xs":"text-sm",p=n("border-muted-3")?"md:border-muted-3":n("border-muted-1")?"md:border-muted-1":"md:border-muted-2";return jsxRuntime.jsx(ae,{block:{blockType:"grid",grid:t.grid},className:o,agent:r,children:t.cards.map((m,d)=>jsxRuntime.jsxs("div",{className:s("px-0 sm:px-4 py-1 md:py-4 rounded-lg flex flex-row justify-start items-center not-typography text-foreground",a,p),children:[jsxRuntime.jsx(ie,{icon:m.icon,size:t.iconSize??28,agent:r,className:"shrink-0 mr-2 md:mr-4 "}),jsxRuntime.jsx("p",{className:s("m-0 sm:text-base",l),children:m.text})]},d))})},"BulletCardsBlockComponent"),Oe=It;var xe=classVarianceAuthority.cva('inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Et=je__namespace.forwardRef(({className:e,variant:o="default",size:r="default",asChild:t=false,isLoading:n=false,children:a,...l},p)=>jsxRuntime.jsxs(t?reactSlot.Slot:"button",{"data-slot":"button","data-variant":o,"data-size":r,className:s(xe({variant:o,size:r,className:e})),ref:p,...l,children:[n?jsxRuntime.jsx(lucideReact.Loader2,{className:s("h-4 w-4 animate-spin",r!=="icon"&&r!=="icon-sm"&&r!=="icon-lg"&&"mr-2")}):null,n&&(r==="icon"||r==="icon-sm"||r==="icon-lg")?null:a]}));Et.displayName="Button";var Ot=i(({children:e})=>{let[o,r]=je.useState(false),t=i(a=>{r(a);let l=document.getElementsByTagName("video");Array.from(l).forEach(m=>{a?m.pause():m.play();});},"onOpenChange"),n=je__namespace.default.Children.map(e,a=>je__namespace.default.cloneElement(a,{open:o,onOpenChange:t}));return jsxRuntime.jsx(jsxRuntime.Fragment,{children:n})},"DialogVideoController"),Ue=Ot;var Ut=i(({def:e,className:o="",...r})=>{if(e.action.type==="modal"){let t=e.action.def,n=t.Comp;return jsxRuntime.jsx(Ue,{children:jsxRuntime.jsx(n,{title:t.title,byline:t.byline,buttonText:e.text,buttonProps:{...e.props,...r,className:s(e.props?.className??"",o)},action:t.action,actionEnclosure:t.actionEnclosure,...t.props})})}return jsxRuntime.jsx(jsxRuntime.Fragment,{})},"ActionButton"),ke=Ut;var le={};gt(le,{burger:()=>lucideReact.Menu,gitHub:()=>Je,linkOut:()=>lucideReact.ArrowUpRight,moon:()=>lucideReact.Moon,sun:()=>lucideReact.SunMedium,youtube:()=>qe});var Xt=i(e=>jsxRuntime.jsx("svg",{viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsxs("g",{style:{stroke:"none",strokeWidth:0,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"none",fillRule:"nonzero",opacity:1},transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:[jsxRuntime.jsx("path",{d:"M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"red",fillRule:"nonzero",opacity:1},transform:" matrix(1 0 0 1 0 0) ",strokeLinecap:"round"}),jsxRuntime.jsx("polygon",{points:"36,58.5 59.38,45 36,31.5 ",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"white",fillRule:"nonzero",opacity:1},transform:"matrix(1 0 0 1 0 0)"})]})}),"YouTubeLogo"),qe=Xt;var Kt=i(e=>jsxRuntime.jsx("svg",{viewBox:"0 0 438.549 438.549",...e,children:jsxRuntime.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),"GitHub"),Je=Kt;var ro=i(({def:e,onClick:o,size:r,variant:t,icon:n,iconAfter:a,className:l="",children:p})=>{let{href:m,newTab:d,variant:c,size:f,title:g}=e,y={};m.startsWith("http")||m.startsWith("mailto")?(y.rel="noreferrer noopener",(d??true)&&(y.target="_blank")):d&&(y.target="_blank");let h={href:m,...o?{onClick:o}:{},...y},u=i(()=>{if(je__namespace.default.Children.count(p)>0)return p;let x=n||(e.icon?e.icon:void 0),v=a||(e.iconAfter?e.iconAfter:false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[x&&!v&&jsxRuntime.jsx("div",{className:"pr-1",children:x}),g&&jsxRuntime.jsx("div",{children:g}),x&&v&&jsxRuntime.jsx("div",{className:"pl-1",children:x})]})},"Contents");return jsxRuntime.jsx(oo__default.default,{className:s(xe({variant:t||c||"link",size:r||f||"default"}),m.length>0||o?"":"pointer-events-none",l),...h,children:jsxRuntime.jsx(u,{})})},"LinkElement"),q=ro;var ao=i(({block:e,className:o="",itemClasses:r="",itemSize:t,renderLink:n,renderButton:a,agent:l})=>{if(e.blockType!=="cta")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"cta block required"});let{elements:p,specifiers:m}=e,d="",c="";b(m,"fill")?(d+="w-full ",c+="grow shrink !min-w-0"):b(m,"left")?d+="md:justify-start ":b(m,"right")?d+="md:justify-end ":d+="md:justify-center ";let f=b(m,"mobile-2-columns"),g=!b(m,"desktop-dont-fill"),y=b(m,"mobile-center-first-if-odd"),h=b(m,"mobile-odd-full-width"),u;if(p.length>1){let v=false;f&&(u="grid grid-cols-2 gap-2 self-stretch ",v=true),g?(u=u??"grid grid-cols-2 gap-2 self-stretch",v=true):u=u?u+"md:flex md:flex-row md:justify-center ":"flex flex-row justify-center ",c+=v?"!min-w-0 ":"";}u=u??"flex flex-col items-stretch gap-2 self-stretch md:flex-row sm:justify-center ";let x=i((v,S)=>{let C=S%2===0?-1:y?0:S-1;return l==="phone"&&f&&v===C?"col-span-2 "+(h?"w-full ":"w-3/5 mx-auto "):""},"getMobileColSpanClx");return jsxRuntime.jsx("div",{className:s(u,d,o),children:p.map((v,S)=>{let C=x(S,p.length);if(v.title){let N=v;return n?n(N,S):jsxRuntime.jsx(q,{def:N,size:t,className:s(c,r,C)},S)}else {let N=v;return a?a(N,S):jsxRuntime.jsx(ke,{def:N,size:t,className:s(c,r,C)},S)}})})},"CtaBlockComponent"),R=ao;var lo=i(({block:e,className:o="",agent:r,constraintTo:t})=>{if(e.blockType!=="image")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"image block required"});let{src:n,alt:a,dim:l,props:p,sizes:m,fullWidthOnMobile:d,svgFillClass:c,specifiers:f}=e,g=i(C=>b(f,C),"specified"),y={};if(p?.fill===void 0){let C=t?ne(l,t):l;y.width=C.w,y.height=C.h;}let h;if(a)h=a;else {let C=n.split("/");h=C.length>0?C[C.length]:n;}let u=c??"";if(r==="phone")if(g("mobile-full-width")||d){let C={style:{width:"100%",height:"auto",maxWidth:"420px"},sizes:"100vw"};return C.width=l.w,C.height=l.h,jsxRuntime.jsx("div",{className:"flex flex-col items-center w-full",children:jsxRuntime.jsx(Be__default.default,{src:n,alt:h,...C,className:s(u,o)})})}else g("mobile-no-scale")||(p?.style?.width==="auto"&&typeof p.style.height=="number"?p.style.height=p.style.height*.75:p?.style?.height==="auto"&&typeof p?.style?.width=="number"?p.style.width=p.style.width*.75:p?.style&&!p?.style.width&&(y.width=l.w*.75,y.height=l.h*.75));m&&(y.sizes=m);let x=b(f,"right"),v=b(f,"center"),S=x?"self-end":v?"self-center":"self-start";return p?.fill?jsxRuntime.jsx("div",{className:"relative w-full h-full",children:jsxRuntime.jsx(Be__default.default,{src:n,alt:h,...y,...p,className:s(u,"max-w-[70vw] mx-auto",o)})}):jsxRuntime.jsx(Be__default.default,{src:n,alt:h,...y,...p,className:s(S,u,"max-w-[70vw] mx-auto",o)})},"ImageBlockComponent"),X=lo;var go=i(({block:e,className:o="",agent:r,usePoster:t=false,size:n="md",constrainTo:a})=>{let[l,p]=je.useState(void 0),m=i(()=>{p({w:window.innerWidth,h:window.innerHeight});},"onResize");if(je.useEffect(()=>{if(window&&r==="desktop")return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[typeof window<"u"]),je.useLayoutEffect(()=>{m();},[]),e.blockType!=="video")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"video block required"});let c=e,f=c.dim.md.w/c.dim.md.h;if(r==="phone"){if(c.sizing?.mobile?.vw)if(l){let u=c.sizing.mobile.vw/100*l.w,x={h:u/f,w:u};return jsxRuntime.jsx(j,{className:s("mx-auto",o),sources:c.sources,width:x.w,height:x.h,...c.videoProps})}else {let u=`${c.sizing.mobile.vw}vw`;return jsxRuntime.jsx("div",{className:"dummy-div",style:{maxWidth:"100%",maxHeight:"100%",width:u,height:`calc(${u}/${f})`,backgroundImage:`url(${c.poster})`,backgroundSize:"contain",backgroundRepeat:"no-repeat"}})}}else if(c.sizing?.vh)if(l){let u=c.sizing.vh/100*l.h,x={h:u,w:u*f};return jsxRuntime.jsx(j,{className:s("mx-auto",o),sources:c.sources,width:x.w,height:x.h,...c.videoProps})}else {let u=`${c.sizing.vh}vh`;return jsxRuntime.jsx("div",{className:"dummy-div",style:{maxWidth:"100%",maxHeight:"100%",height:u,width:`calc(${u}*${f})`,backgroundImage:`url(${c.poster})`,backgroundSize:"contain",backgroundRepeat:"no-repeat"}})}let g=c.dim,y=n&&n in g?g[n]:g.md,h=a?ne(y,a):y;return t?jsxRuntime.jsx(Be__default.default,{src:c.poster,alt:"image",width:h.w,height:h.h,className:o}):jsxRuntime.jsx(j,{className:s("mx-auto",o),sources:c.sources,width:h.w,height:h.h,...c.videoProps})},"VideoBlockComponent"),$=go;var Ke=i(e=>ze(e,o=>Fe(o,"typography"),o=>{let r=o.split("-");return r[r.length-1]},"responsive"),"getTypographySize");var ho=i(({def:e})=>jsxRuntime.jsx(q,{def:e,className:"justify-between",variant:"link",icon:jsxRuntime.jsx(le.linkOut,{className:"w-[18px] h-[18px]"}),iconAfter:true}),"ArrowLinkElement"),Qe=ho;var bo=i(({block:e,className:o="",contentClassName:r=""})=>{if(e.blockType!=="card")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"card block required"});let t=e,n=i(M=>t.specifiers?.includes(M),"has"),a=n("ghost"),l=(n("content-left")?"items-start ":" items-center ")+(n("content-top")?"!justify-start":"")+r,p=n("appear-disabled")?" border-muted-4":" border-muted-3",m=n("no-outer-border")||a?" border-0":"",d=a?" border-0":"",c=a?" px-0 py-0":" px-6 py-3",f=a?" gap-2":"",g=n("appear-disabled")?" text-muted-2":"",y=n("appear-disabled")?" typography-p:text-muted-2":"",h=n("bg-card")?" bg-level-1":"",u=(n("heading-style-title")?" font-heading text-base leading-tight":"")+(a?" text-left md:text-xl":""),x=t.specifiers?Ke(t.specifiers):"responsive",v=x==="sm"?"typography-sm typography-p:text-sm ":x==="lg"?"typography-lg ":"",S=n("content-before"),C=n("icon-inline"),N=n("reveal-content-on-hover"),Ie=i(({inContent:M=false,className:me=""})=>t.title||t.byline||t.icon?jsxRuntime.jsxs(z,{className:"not-typography text-accent"+g+c+d+me,children:[jsxRuntime.jsxs("div",{className:C||M?"flex flex-row justify-start items-end my-3":"",children:[t.icon&&!t.iconAfter&&jsxRuntime.jsx("div",{className:C?"mr-1":"mb-2",children:t.icon}),t.title&&jsxRuntime.jsx(ue,{className:"text-center text-lg font-medium"+u+(C?" md:text-xl/none":""),children:t.title}),t.icon&&t.iconAfter&&jsxRuntime.jsx("div",{className:C?"ml-1":"my-1",children:t.icon})]}),t.byline&&jsxRuntime.jsx(ge,{children:t.byline})]}):null,"Header"),ft=i(({className:M=""})=>n("media-left")?jsxRuntime.jsxs(I,{className:"flex flex-row justify-start items-stretch p-0 grow "+p+h+l+M,children:[t.media&&jsxRuntime.jsx("div",{className:"box-content grow-0 not-typography"+c,style:{width:t.media.dim.sm.w},children:jsxRuntime.jsx($,{block:t.media,usePoster:n("video-use-poster"),size:"sm",className:n("appear-disabled")?"opacity-[0.6]":""})}),t.content&&jsxRuntime.jsx(B,{className:"grow border-l flex flex-col justify-center "+y+c+p+l,size:x,children:typeof t.content=="string"?jsxRuntime.jsx("p",{children:t.content}):t.content})]}):jsxRuntime.jsxs(I,{className:"grow typography flex flex-col justify-center "+v+y+h+c+l+(n("full-width")?" p-0 ":" ")+M,children:[N&&jsxRuntime.jsx(Ie,{inContent:true}),t.content&&S&&(typeof t.content=="string"?jsxRuntime.jsx("p",{children:t.content}):t.content),t.media&&(t.media.blockType==="image"?jsxRuntime.jsx(X,{block:t.media}):jsxRuntime.jsx($,{block:t.media})),t.content&&!S&&(typeof t.content=="string"?jsxRuntime.jsx("p",{children:t.content}):t.content)]}),"MediaAndContent"),ut=i(()=>t.cta?n("links-w-arrow")?jsxRuntime.jsx(L,{className:"typography typography-a:text-muted-2 typography-a:hover:text-muted-1 typography-a:text-xs typography-a:no-underline typography-a:hover:underline flex flex-col justify-start items-stretch "+c,children:jsxRuntime.jsx(R,{block:t.cta,renderLink:(M,me)=>jsxRuntime.jsx(Qe,{def:M},me)})}):jsxRuntime.jsx(L,{className:"grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center "+c,children:jsxRuntime.jsx(R,{block:t.cta})}):null,"Footer");return jsxRuntime.jsxs(_,{className:s("flex flex-col self-stretch "+(N?"group relative":"")+p+m+h+f,o),children:[jsxRuntime.jsx(Ie,{className:N?" absolute top-[0px] left-[0px] w-full hidden ":""}),jsxRuntime.jsx(ft,{className:N?" bg-gradient-to-t from-secondary to-65% items-start justify-start rounded-lg p-4 transition-opacity duration-500 ease-out opacity-100 ":""}),jsxRuntime.jsx(ut,{})]})},"CardBlockComponent"),Te=bo;var Co=i(({block:e,agent:o,className:r,headingclx:t,contentclx:n,footerclx:a})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex gap-2",children:[e.topContent&&jsxRuntime.jsx(T,{blocks:e.topContent,agent:o,className:"self-center ml-6 mt-6"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e.heading&&jsxRuntime.jsx(z,{className:s("typography-img:m-0",t),children:jsxRuntime.jsx(E,{block:e.heading,className:"text-accent",agent:o})}),e.content&&jsxRuntime.jsx(I,{className:s("typography flex flex-col justify-start",n,r),children:jsxRuntime.jsx(T,{blocks:e.content,agent:o})})]})]}),e.cta&&jsxRuntime.jsx(L,{className:s("grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center mx-auto",a),children:jsxRuntime.jsx(R,{block:e.cta,agent:o})})]}),"VariantContentLeft"),Ze=Co;var vo=i((e,o)=>{let r="";if(e==="big-padding")switch(o){case "header":r="md:p-8 lg:p-12 xl:p-16";break}if(e==="big-padding-content")switch(o){case "content":r="md:p-8 lg:p-12 xl:p-16";break}else if(e==="no-inner-borders")switch(o){case "header":r="border-none";break;case "footer":r="border-t-0";break}return r},"_getClx"),Bo=i(({block:e,className:o="",agent:r})=>{if(e.blockType!=="carte-blanche")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"carte blanche block required"});let t=e,n=i(g=>b(t.specifiers,g),"specified"),a=i((g,y)=>n(g)?vo(g,y):"","getClx"),l=[a("big-padding","header"),a("no-inner-borders","header")].join(" "),p=[a("big-padding-content","content")].join(" "),m=[a("no-inner-borders","footer")].join(" "),d=n("no-outer-borders"),c=n("variant-content-left"),f=n("variant-mobile-content-left");return jsxRuntime.jsx(_,{className:s("flex flex-col",o,d?"border-none":""),children:c||f&&r==="phone"?jsxRuntime.jsx(Ze,{block:t,agent:r,className:o,headingclx:l,contentclx:p,footerclx:m}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[(t.heading||t.topContent)&&jsxRuntime.jsxs(z,{className:s("typography-img:m-0",l),children:[t.topContent&&jsxRuntime.jsx(T,{blocks:t.topContent,agent:r,className:""}),t.heading&&jsxRuntime.jsx(E,{block:t.heading,className:"text-accent",agent:r})]}),t.content&&jsxRuntime.jsx(I,{className:s("typography flex flex-col justify-center",p,o),children:jsxRuntime.jsx(T,{blocks:t.content,agent:r})}),t.cta&&jsxRuntime.jsx(L,{className:s("grid grid-cols-1 gap-2 md:flex md:flex-row md:justify-center",m),children:jsxRuntime.jsx(R,{block:t.cta,agent:r})})]})})},"CarteBlancheBlockComponent"),ot=Bo;var K={preheading:{tag:"h4",mb:2},heading:{tag:"h1",mb:2},byline:{tag:"h6"}},Se=i(e=>{switch(e){case 1:return "h1";case 2:return "h2";case 3:return "h3";case 4:return "h4";case 5:return "h5";case 6:return "h6"}return "p"},"tagFromLevel"),rt=i(({asTag:e,text:o,icon:r,iconLeft:t=true,className:n=""})=>jsxRuntime.jsx(e,{className:n,children:o}),"Element"),To=i((e,o)=>{let r=e("mobile-heading-centered"),t=e("mobile-heading-left"),n=e("center"),a=e("right"),l=e("byline-center"),p=e("byline-right"),m=e("mobile-byline-left"),d="",c=l?"self-center !text-center":p?"self-end !text-right":"self-start !text-left";if(o==="phone")t?d="self-start text-left":d=r||n?"self-center text-center":a?"self-end text-right":"self-start text-left",m&&(c="self-start !text-left");else {let f=n?"self-center text-center":a?"self-end text-right":"self-start text-left";r?d="self-center text-center md:"+f.split(" ").join(" md:"):d=f;}return {preheading:d,heading:d,byline:c}},"getPositionClx"),wo=i(({block:e,className:o="",agent:r,applyTypography:t=true,extraSpecifiers:n=""})=>{if(e.blockType!=="enh-heading")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"enhance heading block required"});let a=e,l=i(g=>b(a.specifiers+n,g),"specified"),m=l("preheading-heading-font")?"font-heading":"",d=l("align-middle")?"my-auto":"",c=To(l,r),f=i(()=>{let g=[{tag:a.preheading?a.preheading.level!==void 0?Se(a.preheading.level):K.preheading.tag:void 0,clx:a.preheading?(a.preheading.mb!==void 0?`mb-${a.preheading.mb}`:`mb-${K.preheading.mb}`)+" "+c.preheading+" "+m:c.preheading+" "+m,text:a.preheading?a.preheading.text:void 0},{tag:a.heading.level!==void 0?Se(a.heading.level):K.heading.tag,clx:(a.heading.mb!==void 0?`mb-${a.heading.mb}`:`mb-${K.heading.mb}`)+" "+c.heading,text:a.heading.text},{tag:a.byline?a.byline.level!==void 0?Se(a.byline.level):K.byline.tag:void 0,clx:c.byline,text:a.byline?a.byline.text:void 0}],y=false;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.map(({tag:h,clx:u,text:x},v)=>h?a.icon&&!y?(y=true,jsxRuntime.jsxs("div",{className:s("flex flex-row items-center gap-2 sm:gap-4",u),children:[jsxRuntime.jsx(ie,{icon:a.icon,size:a.iconSize??32,agent:r}),jsxRuntime.jsx(rt,{asTag:h,text:x})]},`div-${v}`)):jsxRuntime.jsx(rt,{asTag:h,text:x,className:u},`el-${v}`):null)})},"Inner");return t?jsxRuntime.jsx(B,{className:s("flex flex-col w-full !gap-0",o,d),children:jsxRuntime.jsx(f,{})}):jsxRuntime.jsx("div",{className:s("flex flex-col w-full gap-0",o,d),children:jsxRuntime.jsx(f,{})})},"EnhHeadingBlockComponent"),E=wo;var Ao=i(({block:e,className:o=""})=>{if(e.blockType!=="heading")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"heading block required"});let r=e,t,n;switch(r.bylineLevel){case 0:n="p";break;case 1:n="h1";break;case 2:n="h2";break;case 3:n="h3";break;case 4:n="h4";break;case 5:n="h5";break;case 6:n="h6";break}switch(r.level){case 0:t="p",n=n??"p";break;case 1:t="h1",n=n??"h3";break;case 2:t="h2",n=n??"h4";break;case 4:t="h4",n=n??"h6";break;case 5:t="h5",n=n??"p";break;case 6:t="h6",n=n??"p";break;default:t="h3",n=n??"h5";}return jsxRuntime.jsxs(B,{className:o,children:[jsxRuntime.jsx(t,{children:r.heading}),r.spaceBetween&&jsxRuntime.jsx("div",{className:`w-[1px] h-${r.spaceBetween}`}),r.byline&&jsxRuntime.jsx(n,{children:r.byline}),r.spaceAfter&&jsxRuntime.jsx("div",{className:`w-[1px] h-${r.spaceAfter}`})]})},"HeadingBlockComponent"),Ae=Ao;var it={xs:"0px",sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1500px"};var Ne=Object.keys(it);var Po=i(e=>{let r=e.split(" ").find(t=>t.startsWith("layout-"));if(r){let t=r.split("-"),n=t[1],a={};switch(n){case "grid":{let l=parseInt(t[2],10),p=t[4];if(Number.isNaN(l)||l<2||l>6||!Ne.includes(p))return;a={columns:l,starting:p};}break}return {layout:n,spec:a}}},"getLayoutInfo"),Do=i(({block:e,className:o=""})=>{if(e.blockType!=="group")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"group block required"});let r=e;if(r.specifiers?.includes("layout")){let t=Po(r.specifiers);if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"invalid or missing layout specifier in group block!"});if(t.layout==="grid"){let{elements:n}=r,{spec:{starting:a,columns:l}}=t,p=s("grid xs:grid-cols-1 gap-2 sm:gap-3",`${a}:grid-cols-${l} `,o);return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(T,{blocks:n})})}}return null},"GroupBlockComponent"),Re=Do;var Mo=["div","h1","h2","h3","h4","h5","h6"],Io=i(({block:e,className:o=""})=>{if(e&&e.blockType!=="space")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"space block required"});let r=e;if(!r.level){if(typeof r.sizes=="number")return jsxRuntime.jsx("div",{className:s(`invisible w-[1px] h-${r.sizes}`,o)});let a={};Ve(a,de,r.sizes);let l="";for(let[p,m]of Object.entries(a))l+=`${p}:h-${m} `;return r.test&&console.log(l),jsxRuntime.jsx("div",{className:s("invisible w-[1px] "+l,o)})}let t=Mo[r.level],n=r.level===0?"h-4":"";return jsxRuntime.jsx(B,{className:o,children:jsxRuntime.jsx(t,{className:"invisible m-0 "+n,children:"\xA0"})})},"SpaceBlockComponent"),Pe=Io;var w=new Map;w.set("accordian",ye);w.set("bullet-cards",Oe);w.set("card",Te);w.set("carte-blanche",ot);w.set("cta",R);w.set("heading",Ae);w.set("enh-heading",E);w.set("space",Pe);w.set("image",X);w.set("video",$);w.set("group",Re);w.set("grid",ae);var Fo=i((e,o)=>{w.set(e,o);},"registerBlockType"),st=i((e,o,r,t)=>{if(e.blockType==="element")return e.element;let n=w.get(e.blockType);return n?jsxRuntime.jsx(n,{block:e,className:o,agent:r},t??""):null},"renderBlock"),T=i(({blocks:e,className:o="",agent:r})=>e?Array.isArray(e)?e.map((t,n)=>st(t,o,r,`content-block-${t.blockType}-${n}`)):st(e,o,r):null,"ContentComponent");var Vo=i(({children:e,banner:o,className:r=""})=>o?jsxRuntime.jsx("div",{className:s("relative",r),style:{height:"100%",width:"100%",backgroundImage:`url(${typeof o=="string"?o:o.poster})`,backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:e}):jsxRuntime.jsx("div",{className:s("bg-transparent h-full w-full relative",r),children:e}),"Poster"),pt=Vo;var ct=i(({blocks:e,specifiers:o,agent:r,className:t=""})=>{let n=i(l=>b(o,l),"specified"),a="";return r!=="phone"?n("right")?a+="items-end ":n("center")?a+="items-center ":a+="items-start ":a+="items-start ",r!=="phone"?(n("bottom")?a+="justify-end ":n("vert-center")?a+="justify-center ":a+="justify-start ",n("text-align-right")?a+="text-right ":a+="text-left "):n("mobile-vert-center")?a+="justify-center ":a+="justify-start ",r==="phone"&&n("mobile-center-headings")&&(a+="typography-headings:text-center "),jsxRuntime.jsx("div",{className:s("flex flex-col justify-center h-full",a,t),children:jsxRuntime.jsx(T,{blocks:e,agent:r})})},"ContentColumn"),Go=i(({block:e,agent:o,className:r=""})=>{let t="flex flex-col gap-2 sm:gap-4 h-full "+(o!=="phone"?`md:grid md:gap-8 md:grid-cols-${e.contentColumns.length} `:""),n=i(a=>{let l=e.mobileOrder?.indexOf(a);return l&&l>=0?`order-${l} md:order-none`:""},"orderclx");return e.contentColumns.length==1?jsxRuntime.jsx(ct,{blocks:e.contentColumns[0],specifiers:e.columnSpecifiers?.[0],agent:o,className:s(r)}):jsxRuntime.jsx("div",{className:s(t,r),children:e.contentColumns.map((a,l)=>jsxRuntime.jsx(ct,{blocks:a,specifiers:e.columnSpecifiers?.[l],agent:o,className:n(l)},l))})},"Content"),mt=Go;var Ho=i(({block:e,className:o="",initialInView:r})=>{let{ref:t,inView:n}=reactIntersectionObserver.useInView({threshold:.75,initialInView:r});return e?jsxRuntime.jsx("div",{ref:t,className:o,children:n&&jsxRuntime.jsx("video",{autoPlay:true,loop:true,muted:true,style:{margin:0,height:"100%",width:"100%",objectFit:"cover"},children:e.sources?.map((a,l)=>jsxRuntime.jsx("source",{src:a},l))})}):null},"VideoBG"),dt=Ho;var Oo=i(e=>{let[o,r]=je.useState(false);return je.useEffect(()=>{r(true);},[]),o?jsxRuntime.jsx(dt,{...e}):null},"Video"),_o=i(({block:e,agent:o,initialInView:r=false,snapTile:t=false,clx:n="",contentClx:a="",bottom:l})=>{if(e.blockType!=="screenful")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:"screenful block required"});let p=e,m=i(()=>!!p.banner&&typeof p.banner=="object","hasBannerVideo"),d=o==="desktop"?"h-full ":"h-[100svh] ",c=i(v=>b(p.specifiers,v),"specified"),f=c("narrow-gutters"),g=c("no-gutters"),y=c("full-screen-width"),h=c("vert-center"),u=p.contentColumns.length===1,x=["xl:mx-auto overflow-y-hidden h-full",y?"":"max-w-screen-xl",f?"px-6 lg:px-8 2xl:px-2 pb-4 lg:pb-6 xl:pb-8 "+(t?"pt-15 md:pt-26 lg:pt-28 ":""):g?"px-0 pb-0 "+(t?"pt-11 lg:pt-20 ":""):"px-[8vw] xl:px-[1vw] pb-[8vh] pt-[calc(44px+4vh)] md:pt-[calc(80px+6vh)] ",o&&o!=="desktop"?"pt-15 sm:pt-17 pb-0 px-3 sm:px-8":""];return jsxRuntime.jsxs("section",{...p.anchorId?{id:p.anchorId}:{},className:s(t?"snap-start snap-always h-[100vh]":"min-h-screen",l?"flex flex-col":"",n),children:[jsxRuntime.jsx(B,{className:s("w-full flex flex-row justify-center self-stretch",t?d:"",l?"grow":""),children:jsxRuntime.jsxs(pt,{banner:p.banner,children:[m()&&jsxRuntime.jsx(Oo,{block:p.banner,className:"absolute top-0 left-0 bottom-0 right-0",initialInView:r}),jsxRuntime.jsxs("div",{className:s(...x,t?"absolute left-0 right-0 top-0 bottom-0 ":"flex min-h-screen w-full",a,h?"self-center "+(u?"!py-0":""):""),children:[jsxRuntime.jsx(mt,{block:p,agent:o,className:"w-full"}),p.footer]})]})}),l]})},"ScreenfulComponent"),jo=_o;
3
+ exports.AccordianBlockComponent=ye;exports.BlocksComponent=T;exports.CTABlockComponent=R;exports.CardBlockComponent=Te;exports.ContentComponent=T;exports.EnhHeadingBlockComponent=E;exports.GroupBlockComponent=Re;exports.HeadingBlockComponent=Ae;exports.ImageBlockComponent=X;exports.SPACE_DEFAULTS=de;exports.ScreenfulBlockComponent=jo;exports.SpaceBlockComponent=Pe;exports.VideoBlockComponent=$;exports.registerBlockType=Fo;