@uniformdev/csk-components 6.1.57 → 6.1.63-alpha.1

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 (281) hide show
  1. package/README.md +74 -81
  2. package/dist/ThemeSwitcher-EUDUX3QI.mjs +1 -0
  3. package/dist/accordion-item-7IKL6Z6Q.mjs +1 -0
  4. package/dist/accordion-item-MORC2F2Q.mjs +1 -0
  5. package/dist/banner-WOYK426U.mjs +1 -0
  6. package/dist/carousel-ALNEGOPM.mjs +1 -0
  7. package/dist/carousel-HKYR3ZBB.mjs +1 -0
  8. package/dist/chunk-27WJUZYR.mjs +1 -0
  9. package/dist/chunk-3JU2XCD2.mjs +1 -0
  10. package/dist/chunk-47YB4P2Q.mjs +1 -0
  11. package/dist/chunk-6CKVLOIH.mjs +1 -0
  12. package/dist/chunk-7GVG4HLE.mjs +1 -0
  13. package/dist/chunk-AOFJCDRO.mjs +1 -0
  14. package/dist/chunk-AWTML4I7.mjs +1 -0
  15. package/dist/chunk-CZ4X5ZBK.mjs +1 -0
  16. package/dist/chunk-D673IM2U.mjs +1 -0
  17. package/dist/chunk-I6SUO5WR.mjs +1 -0
  18. package/dist/chunk-JT77BVIX.mjs +1 -0
  19. package/dist/chunk-LPAOEOU4.mjs +1 -0
  20. package/dist/chunk-MKOFM4XK.mjs +1 -0
  21. package/dist/chunk-NKINOJY6.mjs +1 -0
  22. package/dist/chunk-OKUDTS22.mjs +1 -0
  23. package/dist/chunk-OL6JBPZ4.mjs +1 -0
  24. package/dist/chunk-OY6ZJNCE.mjs +1 -0
  25. package/dist/chunk-PLKWUEFW.mjs +1 -0
  26. package/dist/chunk-QPQGRQKI.mjs +1 -0
  27. package/dist/chunk-VWWXSA5H.mjs +1 -0
  28. package/dist/chunk-WAW7PQYM.mjs +1 -0
  29. package/dist/chunk-XKCRANRQ.mjs +1 -0
  30. package/dist/chunk-XYU3TGOU.mjs +1 -0
  31. package/dist/chunk-Y337A266.mjs +7 -0
  32. package/dist/chunk-YQYDZJ65.mjs +1 -0
  33. package/dist/chunk-ZAHWFLY4.mjs +1 -0
  34. package/dist/{chunk-V4EBWEG4.mjs → chunk-ZWDCDE5W.mjs} +1 -1
  35. package/dist/components/canvas/emptyPlaceholders.d.mts +5 -4
  36. package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
  37. package/dist/components/canvas/index.d.mts +4 -664
  38. package/dist/components/canvas/index.mjs +1 -2
  39. package/dist/components/canvas/serverClient.d.mts +694 -0
  40. package/dist/components/canvas/serverClient.mjs +1 -0
  41. package/dist/components/canvas/serverOnly.d.mts +41 -0
  42. package/dist/components/canvas/serverOnly.mjs +1 -0
  43. package/dist/components/ui/index.d.mts +81 -54
  44. package/dist/components/ui/index.mjs +1 -1
  45. package/dist/content/components/canvas/Accordion/accordion.tsx +12 -17
  46. package/dist/content/components/canvas/Accordion/index.tsx +2 -2
  47. package/dist/content/components/canvas/AccordionItem/accordion-item.tsx +28 -39
  48. package/dist/content/components/canvas/AccordionItem/index.tsx +4 -6
  49. package/dist/content/components/canvas/Badge/badge.tsx +12 -5
  50. package/dist/content/components/canvas/Badge/index.tsx +2 -3
  51. package/dist/content/components/canvas/Badge/style-utils.ts +6 -6
  52. package/dist/content/components/canvas/Banner/banner.tsx +24 -36
  53. package/dist/content/components/canvas/Banner/index.tsx +7 -11
  54. package/dist/content/components/canvas/Breadcrumbs/breadcrumbs.tsx +21 -22
  55. package/dist/content/components/canvas/Breadcrumbs/index.tsx +4 -7
  56. package/dist/content/components/canvas/Button/button.tsx +19 -11
  57. package/dist/content/components/canvas/Button/index.tsx +4 -7
  58. package/dist/content/components/canvas/Card/card.tsx +10 -12
  59. package/dist/content/components/canvas/Card/index.tsx +3 -3
  60. package/dist/content/components/canvas/Carousel/carousel.tsx +10 -10
  61. package/dist/content/components/canvas/Carousel/index.tsx +4 -4
  62. package/dist/content/components/canvas/Container/container.tsx +7 -10
  63. package/dist/content/components/canvas/Container/index.tsx +3 -3
  64. package/dist/content/components/canvas/Container/parameters.ts +0 -4
  65. package/dist/content/components/canvas/CookieConsent/cookie-consent.tsx +126 -0
  66. package/dist/content/components/canvas/CookieConsent/empty-placeholder.tsx +12 -0
  67. package/dist/content/components/canvas/CookieConsent/index.tsx +26 -0
  68. package/dist/content/components/canvas/Countdown/countdown.tsx +9 -7
  69. package/dist/content/components/canvas/Countdown/index.tsx +2 -3
  70. package/dist/content/components/canvas/DemoHero/atoms.tsx +59 -35
  71. package/dist/content/components/canvas/DemoHero/columns-variant.tsx +5 -11
  72. package/dist/content/components/canvas/DemoHero/default-variant.tsx +5 -12
  73. package/dist/content/components/canvas/DemoHero/demo-hero.tsx +43 -22
  74. package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +63 -65
  75. package/dist/content/components/canvas/DemoHero/flexible-hero.tsx +8 -2
  76. package/dist/content/components/canvas/DemoHero/index.tsx +6 -18
  77. package/dist/content/components/canvas/DemoHero/utils.ts +14 -0
  78. package/dist/content/components/canvas/Divider/divider.tsx +5 -2
  79. package/dist/content/components/canvas/Divider/index.tsx +2 -2
  80. package/dist/content/components/canvas/Flex/flex.tsx +11 -10
  81. package/dist/content/components/canvas/Flex/index.tsx +6 -6
  82. package/dist/content/components/canvas/FlexItem/flex-item.tsx +7 -4
  83. package/dist/content/components/canvas/FlexItem/index.tsx +4 -5
  84. package/dist/content/components/canvas/Footer/footer.tsx +9 -8
  85. package/dist/content/components/canvas/Footer/index.tsx +2 -3
  86. package/dist/content/components/canvas/Grid/grid.tsx +9 -9
  87. package/dist/content/components/canvas/Grid/index.tsx +5 -5
  88. package/dist/content/components/canvas/GridItem/grid-item.tsx +10 -8
  89. package/dist/content/components/canvas/GridItem/index.tsx +5 -5
  90. package/dist/content/components/canvas/Header/header.tsx +10 -7
  91. package/dist/content/components/canvas/Header/index.tsx +2 -3
  92. package/dist/content/components/canvas/IconLabel/icon-label.tsx +16 -8
  93. package/dist/content/components/canvas/IconLabel/index.tsx +4 -5
  94. package/dist/content/components/canvas/Image/image.tsx +25 -8
  95. package/dist/content/components/canvas/Image/index.tsx +2 -3
  96. package/dist/content/components/canvas/ImageGallery/empty-placeholder.tsx +1 -1
  97. package/dist/content/components/canvas/ImageGallery/gallery-inner.tsx +6 -6
  98. package/dist/content/components/canvas/ImageGallery/image-gallery.tsx +21 -36
  99. package/dist/content/components/canvas/ImageGallery/index.tsx +11 -12
  100. package/dist/content/components/canvas/Link/index.tsx +2 -3
  101. package/dist/content/components/canvas/Link/link.tsx +7 -4
  102. package/dist/content/components/canvas/Modal/index.tsx +2 -2
  103. package/dist/content/components/canvas/Modal/modal.tsx +16 -74
  104. package/dist/content/components/canvas/NavigationFlyout/desktop.tsx +9 -13
  105. package/dist/content/components/canvas/NavigationFlyout/index.tsx +21 -3
  106. package/dist/content/components/canvas/NavigationFlyout/mobile.tsx +10 -13
  107. package/dist/content/components/canvas/NavigationFlyout/{navigation-flyout.tsx → navigation-flyout-client.tsx} +26 -20
  108. package/dist/content/components/canvas/NavigationGroup/desktop.tsx +7 -10
  109. package/dist/content/components/canvas/NavigationGroup/index.tsx +20 -3
  110. package/dist/content/components/canvas/NavigationGroup/mobile.tsx +9 -8
  111. package/dist/content/components/canvas/NavigationGroup/{navigation-group.tsx → navigation-group-client.tsx} +21 -18
  112. package/dist/content/components/canvas/NavigationLink/index.tsx +2 -4
  113. package/dist/content/components/canvas/NavigationLink/navigation-link.tsx +12 -9
  114. package/dist/content/components/canvas/Page/index.tsx +7 -7
  115. package/dist/content/components/canvas/Page/page.tsx +9 -18
  116. package/dist/content/components/canvas/Review/default-variant.tsx +3 -5
  117. package/dist/content/components/canvas/Review/empty-placeholder.tsx +6 -3
  118. package/dist/content/components/canvas/Review/index.tsx +6 -6
  119. package/dist/content/components/canvas/Review/multi-column-variant.tsx +3 -5
  120. package/dist/content/components/canvas/Review/review.tsx +11 -11
  121. package/dist/content/components/canvas/RichText/index.tsx +7 -6
  122. package/dist/content/components/canvas/RichText/rich-text.tsx +23 -6
  123. package/dist/content/components/canvas/Section/columns-variant.tsx +5 -11
  124. package/dist/content/components/canvas/Section/default-variant.tsx +7 -16
  125. package/dist/content/components/canvas/Section/empty-placeholder.tsx +5 -2
  126. package/dist/content/components/canvas/Section/index.tsx +2 -2
  127. package/dist/content/components/canvas/Section/section.tsx +11 -16
  128. package/dist/content/components/canvas/SimpleFooter/index.tsx +16 -0
  129. package/dist/content/components/canvas/SimpleFooter/simple-footer.tsx +85 -0
  130. package/dist/content/components/canvas/SimpleHeader/index.tsx +22 -0
  131. package/dist/content/components/canvas/SimpleHeader/simple-header.tsx +63 -0
  132. package/dist/content/components/canvas/Spacer/index.tsx +2 -2
  133. package/dist/content/components/canvas/Spacer/spacer.tsx +5 -2
  134. package/dist/content/components/canvas/Tab/index.tsx +2 -3
  135. package/dist/content/components/canvas/Tab/tab.tsx +6 -5
  136. package/dist/content/components/canvas/Table/index.tsx +2 -2
  137. package/dist/content/components/canvas/Table/table.tsx +9 -13
  138. package/dist/content/components/canvas/TableCustomCell/index.tsx +2 -2
  139. package/dist/content/components/canvas/TableCustomCell/table-custom-cell.tsx +7 -4
  140. package/dist/content/components/canvas/TableDataCell/index.tsx +2 -2
  141. package/dist/content/components/canvas/TableDataCell/table-data-cell.tsx +7 -4
  142. package/dist/content/components/canvas/TableHeaderCell/index.tsx +2 -2
  143. package/dist/content/components/canvas/TableHeaderCell/table-header-cell.tsx +7 -4
  144. package/dist/content/components/canvas/TableRow/index.tsx +5 -3
  145. package/dist/content/components/canvas/TableRow/table-row.tsx +6 -3
  146. package/dist/content/components/canvas/Tabs/index.tsx +7 -7
  147. package/dist/content/components/canvas/Tabs/style-utils.ts +12 -11
  148. package/dist/content/components/canvas/Tabs/tabs.tsx +45 -48
  149. package/dist/content/components/canvas/Testimonial/default-variant.tsx +9 -11
  150. package/dist/content/components/canvas/Testimonial/index.tsx +2 -2
  151. package/dist/content/components/canvas/Testimonial/testimonial.tsx +11 -17
  152. package/dist/content/components/canvas/Testimonial/with-large-avatar-variant.tsx +9 -11
  153. package/dist/content/components/canvas/Testimonial/with-overlapping-image-variant.tsx +9 -11
  154. package/dist/content/components/canvas/Text/index.tsx +2 -3
  155. package/dist/content/components/canvas/Text/text.tsx +21 -15
  156. package/dist/content/components/canvas/ThemeSwitcher/index.tsx +2 -2
  157. package/dist/content/components/canvas/ThemeSwitcher/theme-switcher.tsx +6 -3
  158. package/dist/content/components/canvas/Video/index.tsx +2 -5
  159. package/dist/content/components/canvas/Video/placeholder.tsx +1 -1
  160. package/dist/content/components/canvas/Video/video.tsx +9 -7
  161. package/dist/content/components/ui/Accordion/accordion.tsx +23 -0
  162. package/dist/content/components/ui/Accordion/index.tsx +9 -0
  163. package/dist/content/components/ui/AccordionItem/accordion-item.tsx +41 -0
  164. package/dist/content/components/ui/AccordionItem/index.tsx +16 -0
  165. package/dist/content/components/ui/Banner/banner.tsx +47 -0
  166. package/dist/content/components/ui/Banner/index.tsx +29 -0
  167. package/dist/content/components/{canvas → ui}/Banner/style-utils.ts +1 -2
  168. package/dist/content/components/ui/Button/index.ts +2 -5
  169. package/dist/content/components/ui/Carousel/carousel.tsx +2 -2
  170. package/dist/content/components/ui/Carousel/index.ts +3 -3
  171. package/dist/content/components/ui/ComponentEmptyPlaceholder/component-empty-placeholder.tsx +13 -0
  172. package/dist/content/components/ui/ComponentEmptyPlaceholder/index.ts +6 -0
  173. package/dist/content/components/ui/Container/container.tsx +2 -7
  174. package/dist/content/components/ui/Container/index.ts +0 -6
  175. package/dist/content/components/ui/Flex/flex.tsx +21 -27
  176. package/dist/content/components/ui/Flex/index.ts +3 -5
  177. package/dist/content/components/ui/FlexItem/index.ts +1 -1
  178. package/dist/content/components/ui/Footer/index.ts +5 -4
  179. package/dist/content/components/ui/Grid/grid.tsx +21 -25
  180. package/dist/content/components/ui/Grid/index.ts +6 -15
  181. package/dist/content/components/ui/GridItem/grid-item.tsx +10 -1
  182. package/dist/content/components/ui/GridItem/index.ts +6 -9
  183. package/dist/content/components/ui/Header/index.ts +1 -1
  184. package/dist/content/components/ui/IconLabel/icon-label.tsx +2 -0
  185. package/dist/content/components/ui/IconLabel/index.ts +1 -0
  186. package/dist/content/components/ui/InlineSVG/index.ts +15 -0
  187. package/dist/content/components/ui/InlineSVG/inline-svg.tsx +70 -0
  188. package/dist/content/components/ui/InlineSVG/utils.ts +132 -0
  189. package/dist/content/components/ui/Modal/index.tsx +22 -0
  190. package/dist/content/components/ui/Modal/modal.tsx +89 -0
  191. package/dist/content/components/{canvas → ui}/Modal/style-utils.ts +4 -4
  192. package/dist/content/components/ui/Rating/index.tsx +1 -1
  193. package/dist/content/components/ui/Rating/rating.tsx +1 -1
  194. package/dist/content/components/ui/Text/index.ts +3 -6
  195. package/dist/content/types/cskTypes.ts +32 -9
  196. package/dist/content/utils/assets.ts +3 -18
  197. package/dist/content/utils/createComponentResolver.ts +7 -6
  198. package/dist/content/utils/createEmptyPlaceholderResolver.tsx +4 -8
  199. package/dist/content/utils/getSlotComponents.ts +15 -0
  200. package/dist/content/utils/routing.ts +60 -15
  201. package/dist/content/utils/useCookiesConsent.ts +17 -0
  202. package/dist/content/utils/withFlattenParameters.tsx +17 -0
  203. package/dist/content/utils/withSlotsDataValue.tsx +34 -0
  204. package/dist/cookie-consent-5QJUCW2K.mjs +1 -0
  205. package/dist/countdown-FRQZMVKW.mjs +1 -0
  206. package/dist/image-gallery-HWCMTJL3.mjs +1 -0
  207. package/dist/index-CSSWgmI5.d.mts +90 -0
  208. package/dist/index-CrBZatTs.d.mts +18 -0
  209. package/dist/index.mjs +3 -3
  210. package/dist/mobile-KBYNJEBM.mjs +1 -0
  211. package/dist/modal-4TVVGHWS.mjs +1 -0
  212. package/dist/modal-E5RMA4EO.mjs +1 -0
  213. package/dist/navigation-flyout-client-WUN4A34X.mjs +1 -0
  214. package/dist/navigation-group-client-Y72BOPIH.mjs +1 -0
  215. package/dist/parameters-B8w5Q6Pp.d.mts +29 -0
  216. package/dist/tabs-VMFTATOP.mjs +1 -0
  217. package/dist/theme-switcher-QTX46Z7E.mjs +1 -0
  218. package/dist/theme-switcher-RGY4D3KL.mjs +1 -0
  219. package/dist/types/cskTypes.d.mts +27 -9
  220. package/dist/utils/assets.d.mts +8 -17
  221. package/dist/utils/assets.mjs +1 -1
  222. package/dist/utils/createComponentResolver.d.mts +3 -9
  223. package/dist/utils/createComponentResolver.mjs +1 -1
  224. package/dist/utils/createEmptyPlaceholderResolver.d.mts +4 -2
  225. package/dist/utils/createEmptyPlaceholderResolver.mjs +1 -1
  226. package/dist/utils/getSlotComponents.d.mts +11 -0
  227. package/dist/utils/getSlotComponents.mjs +1 -0
  228. package/dist/utils/routing.d.mts +20 -7
  229. package/dist/utils/routing.mjs +1 -1
  230. package/dist/utils/sitemap.d.mts +21 -0
  231. package/dist/utils/sitemap.mjs +1 -0
  232. package/dist/utils/styling.d.mts +3 -0
  233. package/dist/utils/styling.mjs +1 -1
  234. package/dist/utils/withFlattenParameters.d.mts +10 -0
  235. package/dist/utils/withFlattenParameters.mjs +1 -0
  236. package/dist/utils/withSlotsDataValue.d.mts +12 -0
  237. package/dist/utils/withSlotsDataValue.mjs +1 -0
  238. package/dist/video-VG6ZQCKN.mjs +1 -0
  239. package/package.json +47 -14
  240. package/dist/ThemeSwitcher-6Q7LCO4Q.mjs +0 -1
  241. package/dist/accordion-item-G5CNMERW.mjs +0 -1
  242. package/dist/banner-2B4K5R4N.mjs +0 -1
  243. package/dist/carousel-BBEW5P4Y.mjs +0 -1
  244. package/dist/carousel-ERCHOWUS.mjs +0 -1
  245. package/dist/chunk-2SEOCBRK.mjs +0 -1
  246. package/dist/chunk-2UV7TQNF.mjs +0 -1
  247. package/dist/chunk-2YTACEBA.mjs +0 -1
  248. package/dist/chunk-3PDY7RJC.mjs +0 -7
  249. package/dist/chunk-4LWAGTFW.mjs +0 -1
  250. package/dist/chunk-56OQGKRM.mjs +0 -1
  251. package/dist/chunk-5VM2Y55L.mjs +0 -1
  252. package/dist/chunk-AKRWCDDG.mjs +0 -1
  253. package/dist/chunk-FPOIJMYT.mjs +0 -1
  254. package/dist/chunk-LA36HQWS.mjs +0 -1
  255. package/dist/chunk-M3BGP5VE.mjs +0 -1
  256. package/dist/chunk-MSXDLSXH.mjs +0 -1
  257. package/dist/chunk-QHIWJPL6.mjs +0 -1
  258. package/dist/chunk-RX4IAAQQ.mjs +0 -1
  259. package/dist/chunk-TIRCISSU.mjs +0 -1
  260. package/dist/chunk-TM7Q5NMH.mjs +0 -1
  261. package/dist/chunk-YEKQJ4YC.mjs +0 -1
  262. package/dist/chunk-YUCUJWBO.mjs +0 -1
  263. package/dist/chunk-Z7JSWSPD.mjs +0 -1
  264. package/dist/content/components/canvas/Banner/types.ts +0 -21
  265. package/dist/content/components/canvas/Image/placeholder.tsx +0 -20
  266. package/dist/content/components/ui/Container/utils.ts +0 -18
  267. package/dist/countdown-LYDXJLEE.mjs +0 -1
  268. package/dist/image-gallery-F6JLG7XW.mjs +0 -1
  269. package/dist/index-B9eeSbLG.d.mts +0 -71
  270. package/dist/mobile-UAUHHXPH.mjs +0 -1
  271. package/dist/modal-HKMQGV4B.mjs +0 -1
  272. package/dist/navigation-flyout-MXIJA6PC.mjs +0 -1
  273. package/dist/navigation-group-DEN3D2BO.mjs +0 -1
  274. package/dist/tabs-AQFKYC6M.mjs +0 -1
  275. package/dist/theme-switcher-76F2V343.mjs +0 -1
  276. package/dist/theme-switcher-WO5JIV2W.mjs +0 -1
  277. package/dist/video-RC2QHJS2.mjs +0 -1
  278. /package/dist/content/components/{canvas → ui}/AccordionItem/icon-arrow-down.tsx +0 -0
  279. /package/dist/content/components/{canvas → ui}/AccordionItem/icon-arrow-up.tsx +0 -0
  280. /package/dist/content/components/{canvas → ui}/Banner/close-button.tsx +0 -0
  281. /package/dist/content/components/{canvas → ui}/Modal/close-icon.tsx +0 -0
@@ -0,0 +1,11 @@
1
+ import * as _uniformdev_canvas from '@uniformdev/canvas';
2
+ import * as _uniformdev_next_app_router from '@uniformdev/next-app-router';
3
+ import { SlotDefinition } from '@uniformdev/next-app-router-shared';
4
+ import { ComponentProps } from '../types/cskTypes.mjs';
5
+ import '@uniformdev/next-app-router/component';
6
+ import 'react';
7
+
8
+ declare const compositionCache: _uniformdev_next_app_router.CompositionCache;
9
+ declare const getSlotComponents: <T>(slot: SlotDefinition, context: ComponentProps<T>["context"]) => (_uniformdev_canvas.ComponentInstance | null)[];
10
+
11
+ export { compositionCache, getSlotComponents };
@@ -0,0 +1 @@
1
+ "server-only";import{a,b}from"../chunk-I6SUO5WR.mjs";export{a as compositionCache,b as getSlotComponents};
@@ -1,15 +1,28 @@
1
1
  import { ResolvedRouteGetResponse, RouteGetResponseEdgehancedComposition, LinkParamValue } from '@uniformdev/canvas';
2
2
 
3
3
  /**
4
- * Resolves a dynamic route to a concrete path by replacing placeholders with values from the provided inputs.
4
+ * Replaces dynamic segments in an unresolved path template (with `:tokens`)
5
+ * using values from a resolved path.
5
6
  *
6
- * @param {string} matchedRoute - The route containing dynamic placeholders.
7
- * @param {{ [dynamicKey: string]: string } | undefined} dynamicInputs - A map of dynamic keys to their replacement values.
8
- * @returns {string} - The resolved route with placeholders replaced.
7
+ * If the structure doesn't match, returns `undefined` instead of throwing an error.
8
+ *
9
+ * @param {string} unresolved - The path template containing dynamic segments (e.g. `/:locale/:dynamic/static`).
10
+ * @param {string} resolved - The fully resolved path with actual values (e.g. `/en/test/static`).
11
+ * @returns {string | undefined} - The final path with dynamic tokens replaced (e.g. `/en/test/static`), or `undefined` on mismatch.
12
+ *
13
+ * @example
14
+ * resolveRouteToPath("/:locale/:dynamic", "/en/test");
15
+ * // Returns: "/en/test"
16
+ *
17
+ * @example
18
+ * resolveRouteToPath("/:locale/:dynamic/static/:dynamic", "/en/test/static/foo");
19
+ * // Returns: "/en/test/static/foo"
20
+ *
21
+ * @example
22
+ * resolveRouteToPath("/:locale/static", "/en/test");
23
+ * // Returns: undefined
9
24
  */
10
- declare const resolveRouteToPath: (matchedRoute: string, dynamicInputs: {
11
- [dynamicKey: string]: string;
12
- } | undefined) => string;
25
+ declare const resolveRouteToPath: (unresolved: string, resolved: string) => string | undefined;
13
26
  /**
14
27
  * Checks if a given route response is free of errors and contains a composition.
15
28
  *
@@ -1 +1 @@
1
- import{a,b,c,d}from"../chunk-RX4IAAQQ.mjs";import"../chunk-YEKQJ4YC.mjs";export{c as formatUniformLink,d as isExternalLink,b as isRouteWithoutErrors,a as resolveRouteToPath};
1
+ import{a,b,c,d}from"../chunk-27WJUZYR.mjs";export{c as formatUniformLink,d as isExternalLink,b as isRouteWithoutErrors,a as resolveRouteToPath};
@@ -0,0 +1,21 @@
1
+ import { MetadataRoute } from 'next';
2
+
3
+ /**
4
+ * Returns an async function that generates a sitemap using the provided domain and dynamic values.
5
+ * It fetches all composition nodes from Uniform Project Map, resolves their paths,
6
+ * and returns sitemap entries with fully substituted URLs.
7
+ *
8
+ * @param domain - The base domain to prepend to each generated path (e.g., https://example.com).
9
+ * @param dynamicValues - A record of dynamic variables and their possible values.
10
+ * @returns A function that resolves to an array of MetadataRoute.Sitemap entries.
11
+ *
12
+ * @example
13
+ * export default generateSitemap('https://example.com', {
14
+ * locale: ['en', 'fr'],
15
+ * category: ['tech', 'health'],
16
+ * });
17
+ * // sitemap will contain all path combinations for provided dynamic values and your Project Map nodes
18
+ */
19
+ declare const generateSitemap: (domain: string, dynamicValues?: Record<string, string | string[]>) => () => Promise<MetadataRoute.Sitemap>;
20
+
21
+ export { generateSitemap };
@@ -0,0 +1 @@
1
+ import{ProjectMapClient as m,getNodeActiveCompositionEdition as g}from"@uniformdev/project-map";var d=new m({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY,apiHost:process.env.UNIFORM_CLI_BASE_URL||"https://uniform.app"}),u=i=>i.reduce((e,r)=>e.flatMap(t=>r.map(o=>[...t,o])),[[]]),f=(i,e)=>{let r=[...e.matchAll(/:([^/]+)/g)];if(r.length===0)return[e];let t=r.map(n=>n[1]),o=t.map(n=>{let a=i[n];return a?Array.isArray(a)?a:[a]:[]});return u(o).map(n=>t.reduce((a,c,p)=>a.replace(`:${c}`,n[p]),e))},y=(i,e={})=>async()=>{let{nodes:r}=await d.getNodes({withCompositionData:!0});return r?r.filter(t=>t.type==="composition").flatMap(t=>{let o=g({node:t,targetLocale:void 0});return f(e,t.path).map(n=>({url:`${i}${n}`,lastModified:o?.modified,changeFrequency:"daily",priority:1}))}):[]};export{y as generateSitemap};
@@ -1,7 +1,10 @@
1
1
  import { ArgumentArray } from 'classnames';
2
2
  import { ViewPort, SpaceType } from '../types/cskTypes.mjs';
3
+ import '@uniformdev/next-app-router/component';
3
4
  import 'react';
4
5
  import '@uniformdev/canvas';
6
+ import '@uniformdev/next-app-router';
7
+ import '@uniformdev/next-app-router-shared';
5
8
 
6
9
  /**
7
10
  * Resolves viewport-specific styles by replacing template placeholders with appropriate values.
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-S7CSCIW4.mjs";import"../chunk-YEKQJ4YC.mjs";export{c as cn,b as formatSpaceParameterValue,a as resolveViewPort};
1
+ import{a,b,c}from"../chunk-S7CSCIW4.mjs";export{c as cn,b as formatSpaceParameterValue,a as resolveViewPort};
@@ -0,0 +1,10 @@
1
+ import { ComponentType } from 'react';
2
+ import { FlattenValuesOptions } from '@uniformdev/canvas';
3
+ import { ComponentProps } from '../types/cskTypes.mjs';
4
+ import '@uniformdev/next-app-router/component';
5
+ import '@uniformdev/next-app-router';
6
+ import '@uniformdev/next-app-router-shared';
7
+
8
+ declare const withFlattenParameters: <TProps extends ComponentProps<T>, T>(WrappedComponent: ComponentType<TProps>, options?: FlattenValuesOptions) => ComponentType<TProps>;
9
+
10
+ export { withFlattenParameters };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-OKUDTS22.mjs";export{a as withFlattenParameters};
@@ -0,0 +1,12 @@
1
+ import { ComponentType } from 'react';
2
+ import { ComponentInstance } from '@uniformdev/canvas';
3
+ import { ComponentProps } from '../types/cskTypes.mjs';
4
+ import '@uniformdev/next-app-router/component';
5
+ import '@uniformdev/next-app-router';
6
+ import '@uniformdev/next-app-router-shared';
7
+
8
+ declare const withSlotsDataValue: <TProps extends ComponentProps<T>, T>(WrappedComponent: ComponentType<TProps & {
9
+ slotData?: Record<string, ComponentInstance[]>;
10
+ }>, withSlotData?: string[]) => ComponentType<TProps>;
11
+
12
+ export { withSlotsDataValue };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-D673IM2U.mjs";import"../chunk-I6SUO5WR.mjs";export{a as withSlotsDataValue};
@@ -0,0 +1 @@
1
+ "use client";import{a,c as e}from"./chunk-S7CSCIW4.mjs";import{useCallback as m,useState as V}from"react";import C from"next/dynamic";import{jsx as l,jsxs as b}from"react/jsx-runtime";var w=({className:t,...i})=>b("svg",{className:e("size-full",t),viewBox:"0 0 123 123",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[l("circle",{cx:"61.5",cy:"61.5",r:"61.5",fillOpacity:"0.922864"}),l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.7064 62.0304L48.7754 81.6468V42.4141L82.7064 62.0304Z",stroke:"white"})]}),u=({onClick:t})=>l("button",{className:"absolute left-1/2 top-1/2 w-1/5 -translate-x-1/2 -translate-y-1/2 transition hover:scale-90",type:"button","aria-label":"Play video",onClick:t,children:l(w,{})});import{jsx as s,jsxs as N}from"react/jsx-runtime";var F=C(()=>import("react-player/lazy").then(t=>t.default),{ssr:!1}),R=({url:t,autoPlay:i=!1,loop:f,controls:v,lazyLoad:n=!1,placeholderImageUrl:d,muted:y,overlayColor:c,overlayOpacity:P,border:o})=>{let[g,r]=V(i),p=m(()=>r(!0),[]),h=m(()=>r(!1),[]);return N("div",{className:"relative aspect-video size-full [&_video]:!object-cover",children:[t&&s("div",{className:e("absolute left-0 top-0 size-full overflow-hidden",{[a(o,"{value}")]:o}),children:s(F,{url:t,playing:g,onPause:h,onPlay:p,width:"100%",height:"100%",controls:v,muted:y,loop:f,light:n&&d||n,playIcon:s(u,{onClick:p})})}),s("div",{className:e("absolute inset-0 pointer-events-none",{[`bg-${c}`]:c,[a(o,"{value}")]:o}),style:{opacity:P||0}})]})};export{R as Video};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/csk-components",
3
- "version": "6.1.57",
3
+ "version": "6.1.63-alpha.1",
4
4
  "description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -32,6 +32,22 @@
32
32
  "types": "./dist/utils/createComponentResolver.d.mts",
33
33
  "default": "./dist/utils/createComponentResolver.mjs"
34
34
  },
35
+ "./utils/getSlotComponents": {
36
+ "types": "./dist/utils/getSlotComponents.d.mts",
37
+ "default": "./dist/utils/getSlotComponents.mjs"
38
+ },
39
+ "./utils/withSlotsDataValue": {
40
+ "types": "./dist/utils/withSlotsDataValue.d.mts",
41
+ "default": "./dist/utils/withSlotsDataValue.mjs"
42
+ },
43
+ "./utils/withFlattenParameters": {
44
+ "types": "./dist/utils/withFlattenParameters.d.mts",
45
+ "default": "./dist/utils/withFlattenParameters.mjs"
46
+ },
47
+ "./utils/sitemap": {
48
+ "types": "./dist/utils/sitemap.d.mts",
49
+ "default": "./dist/utils/sitemap.mjs"
50
+ },
35
51
  "./components/ui": {
36
52
  "types": "./dist/components/ui/index.d.mts",
37
53
  "default": "./dist/components/ui/index.mjs"
@@ -40,6 +56,14 @@
40
56
  "types": "./dist/components/canvas/index.d.mts",
41
57
  "default": "./dist/components/canvas/index.mjs"
42
58
  },
59
+ "./components/canvas/serverOnly": {
60
+ "types": "./dist/components/canvas/serverOnly.d.mts",
61
+ "default": "./dist/components/canvas/serverOnly.mjs"
62
+ },
63
+ "./components/canvas/serverClient": {
64
+ "types": "./dist/components/canvas/serverClient.d.mts",
65
+ "default": "./dist/components/canvas/serverClient.mjs"
66
+ },
43
67
  "./components/canvas/emptyPlaceholders": {
44
68
  "types": "./dist/components/canvas/emptyPlaceholders.d.mts",
45
69
  "default": "./dist/components/canvas/emptyPlaceholders.mjs"
@@ -67,31 +91,40 @@
67
91
  "commander": "^9.0.0",
68
92
  "cookies-next": "^4.3.0",
69
93
  "dotenv": "16.4.7",
70
- "next-themes": "^0.4.4",
71
- "ora": "^8.1.1",
72
- "prettier": "3.5.2",
94
+ "js-cookie": "^3.0.5",
95
+ "ora": "^8.2.0",
96
+ "prettier": "3.6.2",
73
97
  "react-player": "^2.16.0",
74
98
  "react-responsive-masonry": "^2.7.0",
75
- "tailwind-merge": "^2.5.2"
99
+ "tailwind-merge": "^3.3.1"
76
100
  },
77
101
  "devDependencies": {
78
102
  "@repo/eslint-config": "*",
79
103
  "@repo/typescript-config": "*",
80
- "@uniformdev/assets": "^20.46.0",
81
- "@uniformdev/canvas": "^20.46.0",
82
- "@uniformdev/canvas-next-rsc": "^20.46.0",
83
- "next": "^15.5.9",
104
+ "@types/js-cookie": "^3.0.6",
105
+ "@uniformdev/assets": "^20.48.0",
106
+ "@uniformdev/canvas": "^20.48.0",
107
+ "@uniformdev/next-app-router": "^20.48.0",
108
+ "@uniformdev/next-app-router-client": "^20.48.0",
109
+ "@uniformdev/next-app-router-shared": "^20.48.0",
110
+ "@uniformdev/project-map": "^20.48.0",
111
+ "next": "^16.1.1",
112
+ "next-themes": "^0.4.6",
84
113
  "react": "^19.2.3",
85
114
  "react-dom": "^19.2.3",
86
- "tailwindcss": "^3.4.17",
115
+ "tailwindcss": "^4.1.11",
87
116
  "tsup": "^8.3.0",
88
117
  "tsx": "^4.19.2"
89
118
  },
90
119
  "peerDependencies": {
91
- "@uniformdev/assets": ">=20",
92
- "@uniformdev/canvas": ">=20",
93
- "@uniformdev/canvas-next-rsc": ">=20",
94
- "next": ">=15",
120
+ "@uniformdev/assets": "^20.48.0",
121
+ "@uniformdev/canvas": "^20.48.0",
122
+ "@uniformdev/next-app-router": "^20.48.0",
123
+ "@uniformdev/next-app-router-client": "^20.48.0",
124
+ "@uniformdev/next-app-router-shared": "^20.48.0",
125
+ "@uniformdev/project-map": "^20.48.0",
126
+ "next": ">=16",
127
+ "next-themes": ">=0.4.0",
95
128
  "react": ">=19",
96
129
  "react-dom": ">=19",
97
130
  "tailwindcss": ">=3"
@@ -1 +0,0 @@
1
- import{a}from"./chunk-V4EBWEG4.mjs";import"./chunk-YEKQJ4YC.mjs";export{a as default};
@@ -1 +0,0 @@
1
- "use client";import{a as p}from"./chunk-QHIWJPL6.mjs";import{b as n}from"./chunk-YUCUJWBO.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as P,useState as B}from"react";import{UniformSlot as N,UniformText as R}from"@uniformdev/canvas-next-rsc/component";import{jsx as c}from"react/jsx-runtime";var d=({className:t,...o})=>c("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50013 0L0 7.13651L1.95843 9L7.5 3.7271L13.0416 9L15 7.13651L7.50013 0Z",fill:"currentColor"})});import{jsx as f}from"react/jsx-runtime";var a=({className:t,...o})=>f("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:f("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49987 9L15 1.86349L13.0416 0L7.5 5.2729L1.95843 0L0 1.86349L7.49987 9Z",fill:"currentColor"})});import{jsx as e,jsxs as w}from"react/jsx-runtime";var z=({tag:t,alignment:o,color:x,size:u,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,slots:S,component:l,context:i,backgroundColor:r,spacing:I,className:A})=>{let[s,G]=B(!1),V=P(()=>G(F=>!F),[]);return w(n,{fluidContent:!0,children:[e(n,{backgroundColor:r,spacing:I,fluidContent:!0,className:A,children:w("button",{onClick:V,className:"flex w-full flex-row items-center justify-between text-start",children:[e(p,{alignment:o,color:x,size:u,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,children:e(R,{placeholder:"Text goes here",parameterId:"text",as:t||void 0,component:l,context:i})}),e("div",{className:m({[`text-${r} invert`]:!!r,"text-black dark:text-white":!r}),children:s?e(d,{}):e(a,{})})]})}),s&&e(N,{data:l,context:i,slot:S.accordionItemContent})]})};export{z as AccordionItem};
@@ -1 +0,0 @@
1
- "use client";import"./chunk-LA36HQWS.mjs";import{b as i}from"./chunk-YUCUJWBO.mjs";import"./chunk-MSXDLSXH.mjs";import{c as e}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as L,useState as S}from"react";import{UniformSlot as V}from"@uniformdev/canvas-next-rsc/component";import{jsx as s}from"react/jsx-runtime";var h=({className:t,...o})=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:e("size-5",t),...o,children:s("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})}),y=({onClose:t,iconColor:o})=>s("button",{onClick:t,className:e("absolute right-5 top-1/2 -translate-y-1/2",{[`text-${o}`]:o}),children:s(h,{})}),C=y;var f=({variant:t,floating:o})=>e({"!w-11/12 left-1/2 -translate-x-1/2 my-4":o&&!!t,"fixed top-0 w-full z-10":t==="top","fixed bottom-0 w-full z-10":t==="bottom","p-4":o&&!t}),u=({contentAlignment:t,iconColor:o,fluidContent:r,floating:n})=>e("flex flex-row gap-x-4",{"justify-start":t==="left","justify-center":t==="center","justify-end":t==="right","pr-10":t==="right"&&o,"!mx-0":!r,"rounded-lg":n});import{jsx as p,jsxs as k}from"react/jsx-runtime";var X=({component:t,context:o,backgroundColor:r,spacing:n,border:c,fluidContent:a,slots:P,iconColor:l,contentAlignment:x="center",floating:m=!1})=>{let[d,B]=S(!0),g=L(()=>{B(!1)},[]);if(!d)return null;let w=f({variant:t.variant,floating:m}),b=u({contentAlignment:x,iconColor:l,fluidContent:a,floating:m});return p(i,{className:w,fluidContent:a,border:c,children:k(i,{className:e("relative w-full",b),backgroundColor:r,spacing:n,fluidContent:a,children:[p(V,{data:t,context:o,slot:P.bannerContent}),l&&p(C,{onClose:g,iconColor:l})]})})};export{X as Banner};
@@ -1 +0,0 @@
1
- "use client";import{a as s}from"./chunk-5VM2Y55L.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as y}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var P=({slots:r,component:e,context:t,backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,fitHeight:f,height:C,itemsPerPage:n,gapX:p})=>o(s,{backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,fitHeight:f,height:C,itemsPerPage:n,gapX:p,countOfItems:r.carouselItems?.items.length??0,variant:e.variant,children:({className:c,style:v})=>o(y,{context:t,slot:r.carouselItems,data:e,children:({child:d,key:I})=>o("div",{className:c,style:v,children:d},I)})});export{P as Carousel};
@@ -1 +0,0 @@
1
- "use client";import"./chunk-5VM2Y55L.mjs";import{b as p}from"./chunk-YUCUJWBO.mjs";import{a as x,c as s}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as h,useEffect as N,useMemo as S,useRef as T,useState as y}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var H=({countOfItems:o,backgroundColor:t,spacing:w,border:C,fluidContent:k,fullHeight:z,itemsPerPage:E="1",children:P,gapX:c,variant:b="default"})=>{let u=T(null),[f,m]=y(0),[R,$]=y(!1),l=Number(E),n=S(()=>o?l>1?Math.ceil(o/l):o:0,[o,l]);N(()=>{let e=()=>$(r=>!r);return window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[]),N(()=>{if(u.current){let{clientWidth:e}=u.current;u.current.scrollLeft=f*e}},[f,R]);let d=h(()=>{m(e=>e===0?n-1:e-1)},[n]),v=h(()=>{m(e=>e===n-1?0:e+1)},[n]),L=()=>b==="brochure"?a("div",{className:s("flex py-4 px-4 z-5 gap-x-4 justify-end items-center"),children:[i("button",{onClick:d,children:"\u276E"}),i("div",{className:"flex items-center gap-2",children:Array.from({length:n}).map((e,r)=>i("button",{onClick:()=>m(r),className:s("h-2 rounded-full transition-all duration-300 size-2 opacity-50",{"w-6 opacity-100":r===f,[`bg-${t} invert`]:!!t,"bg-black dark:bg-white":!t}),"aria-label":`Go to slide ${r+1}`},`slide-${r}`))}),i("button",{onClick:v,children:"\u276F"})]}):b==="numeric"?a("div",{className:s("flex py-4 px-4 z-5 gap-x-4 justify-end items-center",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[i("button",{onClick:d,children:"\u276E"}),a("div",{className:"flex flex-col px-2",children:[f+1," of ",n]}),i("button",{onClick:v,children:"\u276F"})]}):a("div",{className:s("absolute inset-x-5 top-1/2 flex -translate-y-1/2 justify-between",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[i("button",{onClick:d,children:"\u276E"}),i("button",{onClick:v,children:"\u276F"})]}),M=()=>P({className:s("flex size-full items-center justify-center",{[x(c,"px-{value}")]:c}),style:{minWidth:l>1?`calc(${100/l}%)`:"100%"}});return i(p,{backgroundColor:t,spacing:w,border:C,fluidContent:k,fullHeight:z,children:a("div",{className:s("relative",{[x(c,"-mx-{value}")]:c}),children:[i("div",{ref:u,className:"flex overflow-x-hidden scroll-smooth",children:M()}),L()]})})};export{H as Carousel};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-MSXDLSXH.mjs";import m from"next/dynamic";import{jsx as a}from"react/jsx-runtime";var l=o=>{switch(o.slotName){case"trigger":return{component:()=>a("div",{className:"h-20 w-full"})};default:return r}};var c={small:"max-w-xl",medium:"max-w-2xl",large:"max-w-4xl"},t=(e=>(e.Trigger="trigger",e.ModalContent="modalContent",e.ModalActions="modalActions",e))(t||{}),x=m(()=>import("./modal-HKMQGV4B.mjs").then(o=>o.Modal));export{c as a,t as b,x as c,l as d};
@@ -1 +0,0 @@
1
- import{a as e}from"./chunk-MSXDLSXH.mjs";import p from"next/dynamic";var n=o=>{switch(o.slotName){case"countdownComplete":return{component:()=>null};default:return e}};var r=(t=>(t.CountdownComplete="countdownComplete",t))(r||{}),m=(t=>(t.LabelsUnder="labelsUnder",t))(m||{}),d=p(()=>import("./countdown-LYDXJLEE.mjs").then(o=>o.Countdown));export{r as a,m as b,d as c,n as d};
@@ -1 +0,0 @@
1
- import{flattenValues as s}from"@uniformdev/canvas";var i=e=>(s(e)||[]).filter(({url:t})=>!!t);export{i as a};
@@ -1,7 +0,0 @@
1
- var t=/['"](\.\/[^'"]+|@\/[^'"]+)['"]/g,a=[".tsx",".ts",".js",".jsx"],l=["index.tsx","empty-placeholder.tsx"],o=/\b[a-zA-Z0-9_]+Mapping\s*=\s*{(?:[^{}]*|\{(?:[^{}]*|\{[^{}]*\})*\})*}/g,d=/(import .+;)(?![\s\S]*import .+)/,T=r=>new RegExp(`\\b${r}\\s*:\\s*[^,]+,?`,"g"),x=/}$/,b=`export { cskComponentsMapping } from '@uniformdev/csk-components/components/canvas';
2
- `,g=`import baseCskComponentsMapping from '@uniformdev/csk-components/components/canvas';
3
-
4
- export const cskComponentsMapping = {
5
- ...baseCskComponentsMapping,
6
- };
7
- `,E=["Accordion","AccordionItem","Badge","Banner","Breadcrumbs","Button","Card","Carousel","Container","Countdown","DemoHero","Divider","Flex","FlexItem","Footer","Grid","GridItem","Header","IconLabel","Image","ImageGallery","Link","Modal","NavigationFlyout","NavigationGroup","NavigationLink","Page","Review","RichText","Section","Spacer","Tab","Table","TableCustomCell","TableDataCell","TableHeaderCell","TableRow","Tabs","Testimonial","Text","ThemeSwitcher","Video"];var i=(e=>(e.Accordion="accordion",e.AccordionItem="accordionItem",e.Badge="badge",e.Banner="banner",e.Button="button",e.Card="card",e.Carousel="carousel",e.Container="container",e.Countdown="countdown",e.Divider="divider",e.Grid="grid",e.GridItem="gridItem",e.Flex="flex",e.FlexItem="flexItem",e.Header="header",e.IconLabel="iconLabel",e.Image="image",e.ImageGallery="imageGallery",e.Link="link",e.Modal="modal",e.NavigationFlyout="navigationFlyout",e.NavigationGroup="navigationGroup",e.NavigationLink="navigationLink",e.Page="page",e.Review="review",e.RichText="richText",e.Section="section",e.Spacer="spacer",e.Tab="tab",e.Table="table",e.TableCustomCell="tableCustomCell",e.TableDataCell="tableDataCell",e.TableHeaderCell="tableHeaderCell",e.TableRow="tableRow",e.Tabs="tabs",e.Testimonial="testimonial",e.Text="text",e.ThemeSwitcher="themeSwitcher",e.Video="video",e.FixedHero="fixedHero",e.FlexibleHero="flexibleHero",e.Breadcrumbs="breadcrumbs",e.Footer="footer",e))(i||{});export{t as a,a as b,l as c,o as d,d as e,T as f,x as g,b as h,g as i,E as j,i as k};
@@ -1 +0,0 @@
1
- import{b as B,c as w}from"./chunk-6TUDWIYU.mjs";import{a as F}from"./chunk-QHIWJPL6.mjs";import{a as R,b as d}from"./chunk-Z7JSWSPD.mjs";import{b as m}from"./chunk-YUCUJWBO.mjs";import{d as y}from"./chunk-RX4IAAQQ.mjs";import{a as g,c as a}from"./chunk-S7CSCIW4.mjs";import A from"next/link";import{jsx as _}from"react/jsx-runtime";var x=({children:o,link:e,openInNewTab:t,rel:i,className:r})=>_(A,{href:e,className:a("[&:hover_img]:scale-[0.98] [&_img]:transition-transform hover:underline transition-transform",r),target:t?"_blank":"_self",rel:i,children:o});var L=(e=>(e.Link="link",e))(L||{});import{jsx as H,jsxs as Z}from"react/jsx-runtime";var O=({children:o,href:e,className:t,onClick:i})=>{let r=y(e);return e?H(x,{className:t,link:e,openInNewTab:r,rel:r?"noopener noreferrer":"",children:o}):H("button",{onClick:i,className:t,children:o})},E=({variant:o,children:e,href:t,className:i,onClick:r,textColor:n,textSize:s,buttonColor:p,isActive:W,icon:c,iconPosition:z,border:h="",textTransform:u="",textWeight:P,textFont:C,size:N,hoverButtonColor:k,hoverTextColor:b})=>{let D=a("block w-max font-medium focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50",{[`text-${n}`]:n,[`hover:text-${b}`]:b,"flex flex-row gap-x-2":c,"flex-row-reverse":c&&z==="right",[`font-${C}`]:!!C,[`font-${P}`]:!!P,[`p-${N}`]:N,[u]:!!u,[g(h,"{value}")]:h,[g(s,"text-{value}")]:s}),G=a({[`bg-${p}`]:p,[`hover:bg-${k}`]:k}),V=a("bg-transparent hover:underline hover:opacity-100",{[`hover:decoration-${p}`]:p,"!underline":t===W});return Z(O,{href:t,onClick:r,className:a(D,{[G]:!o,[V]:o==="link"},i),children:[c,e]})};import{jsx as T,jsxs as J}from"react/jsx-runtime";var q=({type:o,placeholder:e})=>J("div",{className:"flex aspect-video size-full flex-col items-center justify-center bg-white text-black dark:bg-black dark:text-white",children:[T(o==="video"?w:B,{className:"size-1/2 max-h-36 max-w-36"}),!!e&&T(F,{className:"text-center",weight:"bold",children:e})]});import{jsx as v,jsxs as S}from"react/jsx-runtime";var K=({logo:o,content:e,copyright:t,backgroundColor:i,spacing:r,border:n,fluidContent:s})=>v("footer",{children:v(m,{backgroundColor:i,spacing:r,border:n,fluidContent:s,children:S(m,{className:"flex w-full flex-col justify-between gap-4 md:flex-row",children:[S("div",{className:"flex flex-col gap-2 gap-y-4 md:w-1/2",children:[o,t]}),v("div",{children:e})]})})});import U from"next/dynamic";import{jsx as l,jsxs as Q}from"react/jsx-runtime";var M=({leftSection:o,rightSection:e,children:t,backgroundColor:i,spacing:r,border:n,className:s})=>l("nav",{children:l(m,{fluidContent:!0,backgroundColor:i,spacing:r,border:n,className:s,children:Q(R,{className:"items-center",columnsCount:"12",children:[l(d,{columnSpan:"span-3",children:l("div",{className:"flex items-center justify-start",children:o})}),l(d,{columnSpan:"span-6",children:l("div",{className:"flex items-center justify-center gap-x-8",children:t})}),l(d,{columnSpan:"span-3",children:l("div",{className:"flex items-center justify-end gap-x-4",children:e})})]})})});import{jsx as f,jsxs as j}from"react/jsx-runtime";var X=U(()=>import("./mobile-UAUHHXPH.mjs").then(o=>o.MobileHeader)),Y=({sticky:o,...e})=>j("header",{className:a({"sticky top-0 shadow z-10":o}),children:[f("div",{className:"hidden md:block",children:f(M,{...e})}),f("div",{className:"block md:hidden",children:f(X,{...e})})]});import{jsx as oe,jsxs as te}from"react/jsx-runtime";var ee=({className:o,header:e,footer:t,children:i,backgroundColor:r,...n})=>te("div",{className:a("flex min-h-screen flex-col",o,{[`bg-${r}`]:!!r}),...n,children:[e,oe("div",{className:"flex flex-1 flex-col",children:i}),t]});import{jsx as $,jsxs as I}from"react/jsx-runtime";var re=({rating:o,showReviewLabel:e,starsColor:t,activeStarsColor:i})=>I("div",{className:"flex items-center space-x-1",children:[Array.from({length:5},(r,n)=>{let s=o>=n+1;return $("svg",{className:a("w-5 h-5",{[`fill-${t}`]:!s,[`fill-${i}`]:s}),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 20",children:$("path",{d:"M20.924 7.625a1.523 1.523 0 0 0-1.238-1.044l-5.051-.734-2.259-4.577a1.534 1.534 0 0 0-2.752 0L7.365 5.847l-5.051.734A1.535 1.535 0 0 0 1.463 9.2l3.656 3.563-.863 5.031a1.532 1.532 0 0 0 2.226 1.616L11 17.033l4.518 2.375a1.534 1.534 0 0 0 2.226-1.617l-.863-5.03L20.537 9.2a1.523 1.523 0 0 0 .387-1.575Z"})},n)}),e&&I("div",{className:"text-sm leading-[3px]",children:["(",o,"/5)"]})]});export{x as a,E as b,L as c,q as d,K as e,Y as f,ee as g,re as h};
@@ -1 +0,0 @@
1
- import{DefaultNotImplementedComponent as n}from"@uniformdev/canvas-next-rsc/component";var t=e=>({component:o})=>e[o?.type]??{component:n},r=t;export{r as a};
@@ -1 +0,0 @@
1
- import t from"next/dynamic";var o=t(()=>import("./carousel-ERCHOWUS.mjs").then(e=>e.Carousel));export{o as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-QHIWJPL6.mjs";import{c as s}from"./chunk-S7CSCIW4.mjs";import{jsx as o,jsxs as h}from"react/jsx-runtime";var T=({icon:a,size:e,tag:i,color:t,weight:n,font:m,transform:p,decoration:c,letterSpacing:l,alignment:x,children:g,textClassName:f,iconClassName:P,className:d})=>h("div",{className:s("flex w-fit items-center gap-x-3",{[`text-${e}`]:!!e,[`text-${t}`]:!!t},d),children:[a&&o("div",{className:s("relative size-[1em]",P),children:a}),o(r,{alignment:x,tag:i,color:t,size:e,font:m,weight:n,transform:p,decoration:c,letterSpacing:l,className:f,children:g})]});export{T as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-MSXDLSXH.mjs";import s from"next/dynamic";import{jsx as a}from"react/jsx-runtime";var p=e=>{switch(e.slotName){case"tabItems":return{component:()=>a("div",{className:"h-20 w-full"})};default:return r}};var l=(o=>(o.Default="default",o.Bordered="bordered",o))(l||{}),t=(m=>(m.TabItems="tabItems",m))(t||{}),c=s(()=>import("./tabs-AQFKYC6M.mjs").then(e=>e.Tabs));export{l as a,t as b,c,p as d};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-MSXDLSXH.mjs";import p from"next/dynamic";import{jsx as m}from"react/jsx-runtime";var a=e=>{switch(e.slotName){case"bannerContent":return{component:()=>m("div",{className:"h-20 w-full"})};default:return o}};var l=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(l||{}),t=(n=>(n.BannerContent="bannerContent",n))(t||{}),h=p(()=>import("./banner-2B4K5R4N.mjs").then(e=>e.Banner));export{l as a,t as b,h as c,a as d};
@@ -1 +0,0 @@
1
- import{a as P,b as c}from"./chunk-YUCUJWBO.mjs";import{a as e,c as l}from"./chunk-S7CSCIW4.mjs";import{jsx as y}from"react/jsx-runtime";var F=({className:r,wrapperClassName:o,direction:t,justifyContent:i,gap:a,alignItems:p,backgroundColor:u,spacing:v,border:x,fluidContent:d,fullHeight:s,fitHeight:n,height:m,children:g})=>{let f=P({height:m,fullHeight:s,fitHeight:n});return y(c,{backgroundColor:u,spacing:v,border:x,fluidContent:d,fullHeight:s,fitHeight:n,height:m,wrapperClassName:o,children:y("div",{className:l("flex",{[e(t,"flex-{value}")]:t,[e(i,"justify-{value}")]:i,[e(a,"gap-{value}")]:a,[e(p,"items-{value}")]:p,[e(f,"h-{value}")]:f},r),children:g})})};import{jsx as h}from"react/jsx-runtime";var b=({className:r,alignSelf:o,shrink:t,children:i})=>h("div",{className:l({[e(o,"self-{value}")]:o,[`shrink-${t}`]:t},r),children:i});import w from"next/dynamic";var G=w(()=>import("./video-RC2QHJS2.mjs").then(r=>r.Video));export{F as a,b,G as c};
@@ -1 +0,0 @@
1
- import{jsx as r}from"react/jsx-runtime";var e={component:()=>r("div",{className:"h-20 w-full"})},t=p=>({parentComponent:o,...l})=>o&&p[o.type]?.({parentComponent:o,...l})||e,m=t;export{e as a,m as b};
@@ -1 +0,0 @@
1
- import{a as t,c as r}from"./chunk-S7CSCIW4.mjs";import{jsx as x}from"react/jsx-runtime";var T=({className:u,size:o,color:s,weight:n,font:i,transform:a="",decoration:p="",letterSpacing:l,alignment:m,children:e,lineCountRestrictions:f})=>{let c=r({[`text-${s}`]:!!s,[`font-${i}`]:!!i,[t(o,"text-{value}")]:o,[`font-${n}`]:!!n,[`text-${m}`]:!!m,[a]:!!a,[p]:!!p,[`tracking-${l}`]:!!l,[t(f,"line-clamp-{value}")]:f},u);if(typeof e=="string")return x("span",{className:c,children:e});let g=e.props||{};return x(e.type,{...g,className:r(c,g?.className)})};export{T as a};
@@ -1 +0,0 @@
1
- var s=/:([a-zA-Z0-9-_]+)/g,n=(e,o)=>o?e.replace(s,t=>o?.[t.substring(1)]||t):e,i=e=>"compositionApiResponse"in e&&!!e.compositionApiResponse&&"composition"in e.compositionApiResponse,r=e=>e?e.type==="email"?`mailto:${e.path}`:e.path:"",p=e=>e?.startsWith("http")??!1;export{n as a,i as b,r as c,p as d};
@@ -1 +0,0 @@
1
- import{b as xe,d as ye,e as he,f as Re,g as be,h as V}from"./chunk-4LWAGTFW.mjs";import{a as ve}from"./chunk-QHIWJPL6.mjs";import{a as q}from"./chunk-BK7UG4U4.mjs";import{b as P}from"./chunk-YUCUJWBO.mjs";import{a as $}from"./chunk-2YTACEBA.mjs";import{a as c}from"./chunk-MSXDLSXH.mjs";import{c as Ce}from"./chunk-RX4IAAQQ.mjs";import{c as f}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as X,jsxs as yo}from"react/jsx-runtime";var vo=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l})=>yo(P,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,children:[X("div",{className:"flex flex-col gap-4 text-start",children:X(Ne,{data:o,context:t,slot:e.accordionContent})}),X(Ne,{data:o,context:t,slot:e.accordionItems})]});import{jsx as Te}from"react/jsx-runtime";var ho=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Te("div",{className:"h-20"})};case"accordionItems":return{component:()=>Te("div",{className:"h-28"})};default:return c}};var Fe=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(Fe||{});import{UniformSlot as Ee}from"@uniformdev/canvas-next-rsc/component";import{jsx as bo}from"react/jsx-runtime";var Ro=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>bo("div",{className:"h-20"})};default:return c}};var He=(o=>(o.BackgroundImage="backgroundImage",o))(He||{}),we=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(we||{});import{jsx as S,jsxs as To}from"react/jsx-runtime";var No=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,className:p,contentClassName:d})=>{let u=e.variant==="backgroundImage";return To(P,{className:f("relative overflow-hidden",p),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,children:[S("div",{className:f({"inset-0 size-full absolute":u}),children:S(Ee,{data:e,context:o,slot:t.cardMedia})}),S("div",{className:f("relative flex flex-col gap-y-2",d),children:S(Ee,{data:e,context:o,slot:t.cardContent})})]})};import Ho from"next/dynamic";import{jsx as wo}from"react/jsx-runtime";var Fo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>wo("div",{className:"mx-20 h-20 w-full"})};default:return c}};var Ae=(o=>(o.Items="carouselItems",o))(Ae||{}),Ir=Ho(()=>import("./carousel-BBEW5P4Y.mjs").then(e=>e.Carousel));import{UniformSlot as Ue}from"@uniformdev/canvas-next-rsc/component";import{UniformText as Be}from"@uniformdev/canvas-next-rsc/component";import{jsx as C}from"react/jsx-runtime";var O=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:C(ve,{...a,children:C(Be,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},Le=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=Ce(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:C(xe,{...a,href:s,icon:C(()=>{let[p]=$(n),{url:d,title:u=""}=p||{};return d?C(q,{src:d,alt:u,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:C(Be,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Ie=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l,priority:p,unoptimized:d})=>{let[u]=$(t);if(!u){let G=o.previewMode==="editor"&&o.isContextualEditing,Y=e?._id?.includes("placeholder_");return!G||Y||!e.variant?null:C("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:C(ye,{type:"image",placeholder:"Please add an asset to display an image"})})}let{url:v,title:K=""}=u;return C(q,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:v,alt:K,fill:!0,unoptimized:d,priority:p,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l})};import{jsx as T,jsxs as Ve}from"react/jsx-runtime";var Se=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,variant:s,demoHeroMedia:m,demoHeroContent:l,demoHeroCTA:p,textAlignmentClass:d,buttonAlignmentClass:u})=>T(P,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:Ve("div",{className:f("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:f("aspect-square",{"order-last":s==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:m})}),Ve("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:f("flex flex-col gap-4",d),children:l}),T("div",{className:f("flex flex-wrap gap-2 items-center",u),children:p})]})]})});import{jsx as Q,jsxs as Oe}from"react/jsx-runtime";var De=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,demoHeroMedia:s,demoHeroContent:m,demoHeroCTA:l,textAlignmentClass:p,buttonAlignmentClass:d})=>Oe(P,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:[Q("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:s}),Oe(P,{className:"relative flex flex-col gap-8",children:[Q("div",{className:f("flex flex-col gap-4",p),children:m}),Q("div",{className:f("flex flex-wrap gap-2 items-center",d),children:l})]})]});var ke=({contentAlignment:e})=>f("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Me=({contentAlignment:e})=>f("text-center",{"text-start":e==="left","text-end":e==="right"});var R=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});import{Fragment as Z,jsx as g,jsxs as Eo}from"react/jsx-runtime";var D=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p,titleText:d,titleTag:u,titleSize:v,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:bt,titleDecoration:Nt,titleLetterSpacing:Tt,titleLineCountRestrictions:Ft,descriptionText:wt,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:St,descriptionLetterSpacing:Ot,descriptionLineCountRestrictions:Dt,primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt,image:jt,imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo,contentAlignment:ce,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,fitHeight:uo,height:go,isFlexibleHero:fe=!1,component:x,context:y,slots:Pe})=>{let ue=x.variant,Co=fe?g(Ue,{data:x,context:y,slot:Pe.flexibleHeroContent}):Eo(Z,{children:[g(O,{...R({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p},"eyebrowTitle"),component:x,context:y,parameterId:"eyebrowTitleText"}),g(O,{...R({titleText:d,titleTag:u,titleSize:v,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:bt,titleDecoration:Nt,titleLetterSpacing:Tt,titleLineCountRestrictions:Ft},"title"),component:x,context:y,parameterId:"titleText"}),g(O,{...R({descriptionText:wt,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:St,descriptionLetterSpacing:Ot,descriptionLineCountRestrictions:Dt},"description"),component:x,context:y,parameterId:"descriptionText"})]}),xo=fe?g(Ue,{data:x,context:y,slot:Pe.flexibleHeroCta}):g(Z,{children:g(Le,{...R({primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt},"primaryButton"),component:x,context:y,parameterId:"primaryButtonText"})}),ge={variant:ue,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,fitHeight:uo,height:go,textAlignmentClass:Me({contentAlignment:ce}),buttonAlignmentClass:ke({contentAlignment:ce}),demoHeroMedia:g(Z,{children:g(Ie,{image:jt,...R({imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo},"image"),component:x,context:y})}),demoHeroContent:Co,demoHeroCTA:xo};switch(ue){case"columns":case"columnsReverse":return g(Se,{...ge});default:return g(De,{...ge})}};import{jsx as Bo}from"react/jsx-runtime";var Ao=(e,o)=>{if(e)return e;if(o)return"0.3"},ze=({textColor:e,overlayAutoTint:o,enableOverlayAutoTint:t,...r})=>{let a=Ao(o,t);return Bo(D,{...r,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||r.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"4xl",desktop:"4xl"},titleWeight:"bold",titleColor:e||r.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||r.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextColor:"text-light",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!r.component.variant&&a?e:void 0,imageOverlayOpacity:a,spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!r.component.variant,isFlexibleHero:!1})};import{jsx as Lo}from"react/jsx-runtime";var We=e=>Lo(D,{...e,isFlexibleHero:!0});import{jsx as Ke}from"react/jsx-runtime";var Io=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Ke("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Ke("div",{className:"mx-40 h-20 w-full"})};default:return c}};var _e=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(_e||{}),J=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(J||{}),Ge=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ge||{}),Vo={FixedHero:ze,FlexibleHero:We},Ba=Vo;import{UniformSlot as j}from"@uniformdev/canvas-next-rsc/component";import{jsx as k}from"react/jsx-runtime";var Ye=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>k(he,{logo:k(j,{context:e,slot:t.footerLogo,data:o}),copyright:k(j,{context:e,slot:t.footerCopyright,data:o}),content:k(j,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ee}from"react/jsx-runtime";var So=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ee("div",{className:"h-20 w-48"})};default:return c}};var $e=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))($e||{}),Wa=Ye;import{UniformSlot as te}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var qe=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>M(Re,{sticky:i.variant==="sticky",leftSection:M(te,{context:a,slot:n.headerLeftContent,data:i}),rightSection:M(te,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:M(te,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as oe}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>oe("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>oe("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>oe("div",{className:"h-20 w-48"})};default:return c}};var Je=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Je||{}),Xe=(o=>(o.Sticky="sticky",o))(Xe||{}),ri=qe;import Mo from"next/dynamic";import{jsx as ko}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>ko("div",{className:" mx-auto size-48"})};default:return c}};var Qe=(o=>(o.Items="imageGalleryItems",o))(Qe||{}),di=Mo(()=>import("./image-gallery-F6JLG7XW.mjs").then(e=>e.ImageGallery));import Uo from"next/dynamic";import{jsx as Ze}from"react/jsx-runtime";var _o=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};default:return c}};var yi=Uo(()=>import("./navigation-flyout-MXIJA6PC.mjs").then(e=>e.NavigationFlyout));import Ko from"next/dynamic";import{jsx as Wo}from"react/jsx-runtime";var zo=e=>{switch(e.slotName){case"links":return{component:()=>Wo("div",{className:"h-40 w-48"})};default:return c}};var Ei=Ko(()=>import("./navigation-group-DEN3D2BO.mjs").then(e=>e.NavigationGroup));import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var Go=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>_(be,{backgroundColor:r,header:_(re,{context:t,slot:e.pageHeader,data:o,children:a}),footer:_(re,{context:t,slot:e.pageFooter,data:o,children:n}),children:_(re,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as ae}from"react/jsx-runtime";var Yo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>ae("div",{className:"h-40"})};case"pageContent":return{component:()=>ae("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>ae("div",{className:"h-40"})};default:return c}};var je=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(je||{});import{UniformSlot as ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as F}from"react/jsx-runtime";var $o=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?F("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?F("div",{className:"h-20 w-full"}):F("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?F("div",{className:"h-20 w-full"}):F("div",{className:"h-20 w-52"})};default:return c}};var ie=(o=>(o.MultiColumn="multiColumn",o))(ie||{}),et=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(et||{});import{jsx as w,jsxs as tt}from"react/jsx-runtime";var ot=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,ReviewImage:d,ReviewPersonInfo:u,ReviewContent:v})=>w(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:tt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[w("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),tt("div",{className:"ml-6",children:[u,w("div",{className:"py-4",children:w(V,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),w("div",{className:"flex flex-col gap-y-5",children:v})]})]})});import{jsx as b,jsxs as rt}from"react/jsx-runtime";var at=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,ReviewImage:d,ReviewPersonInfo:u,ReviewContent:v})=>b(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:rt("div",{className:"grid md:grid-cols-12",children:[rt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[b("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),b("div",{className:"flex flex-col gap-y-1",children:u})]}),b("div",{className:"my-2 md:col-span-4 md:my-0",children:b(V,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),b("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:v})]})});import{jsx as H}from"react/jsx-runtime";var qo=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:H(ne,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:H(ne,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:H(ne,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return H(at,{...i});default:return H(ot,{...i})}};import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as se}from"react/jsx-runtime";var Xo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:se("div",{className:"size-full"})};case"sectionContent":return{component:()=>se("div",{className:"h-20"})};case"sectionCTA":return{component:()=>se("div",{className:"mx-40 h-20 w-full"})};default:return c}};var nt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(nt||{}),me=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(me||{}),it=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(it||{});import{jsx as E,jsxs as st}from"react/jsx-runtime";var mt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,variant:s,sectionMedia:m,sectionContent:l,sectionCTA:p,textAlignmentClass:d,buttonAlignmentClass:u})=>E(P,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:st("div",{className:f("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[E("div",{className:f("aspect-square",{"order-last":s==="columnsReverse"}),children:E("div",{className:"flex size-full items-center justify-center overflow-hidden",children:m})}),st("div",{className:"flex flex-col justify-center gap-8",children:[E("div",{className:f("flex flex-col gap-4",d),children:l}),E("div",{className:f("flex flex-wrap gap-2",u),children:p})]})]})});import{jsx as le,jsxs as lt}from"react/jsx-runtime";var pt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,sectionMedia:s,sectionContent:m,sectionCTA:l,textAlignmentClass:p,buttonAlignmentClass:d})=>lt(P,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:[le("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:s}),lt(P,{className:"relative flex flex-col gap-8",children:[le("div",{className:f("flex flex-col gap-4",p),children:m}),le("div",{className:f("flex flex-wrap gap-2",d),children:l})]})]});var dt=({contentAlignment:e})=>f("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),ct=({contentAlignment:e})=>f("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as A}from"react/jsx-runtime";var Jo=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>{let d=t.variant,u={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,textAlignmentClass:ct({contentAlignment:e}),buttonAlignmentClass:dt({contentAlignment:e}),sectionMedia:A(pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:A(pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:A(pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return A(mt,{...u});default:return A(pt,{...u})}};import{UniformSlot as Pt}from"@uniformdev/canvas-next-rsc/component";var ft=({size:e,textColor:o})=>f("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as Zo}from"react/jsx-runtime";var Qo=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,height:d})=>N(P,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,height:d,children:N("div",{className:"overflow-x-auto",children:Zo("table",{className:ft({size:e,textColor:o}),children:[N("thead",{children:N(Pt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Pt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as ut}from"react/jsx-runtime";var jo=e=>{switch(e.slotName){case"tableHead":return{component:()=>ut("tr",{className:"h-20"})};case"tableBody":return{component:()=>ut("tr",{className:"h-40"})};default:return c}};var gt=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(gt||{});import{UniformSlot as W}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var er=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>U("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>U("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>U("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>U("div",{className:"h-20 w-64"})};default:return c}};var xt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(xt||{}),Ct=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Ct||{});import{jsx as B,jsxs as or}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>B(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:or("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[B("div",{children:r}),B("div",{className:"my-8",children:o}),B("div",{className:"size-10 rounded-full",children:e}),B("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as L,jsxs as z}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>L(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:z("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[L("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),z("div",{className:"flex flex-col gap-y-8",children:[L("div",{className:"",children:o}),z("div",{className:"flex items-center justify-between",children:[z("div",{className:"flex items-center gap-x-4",children:[L("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),L("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as I,jsxs as de}from"react/jsx-runtime";var ht=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>I(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:I(P,{className:"pb-10 lg:pb-0",children:de("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[I("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),de("div",{className:"flex flex-col gap-y-8",children:[I("div",{className:"",children:o}),de("div",{className:"flex items-center justify-between",children:[I("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as h}from"react/jsx-runtime";var tr=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l})=>{let p=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,testimonialPrimaryImage:h(W,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:h(W,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:h(W,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:h(W,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(p){case"withLargeAvatar":return h(yt,{...d});case"withOverlappingImage":return h(ht,{...d});default:return h(vt,{...d})}};export{vo as a,Fe as b,ho as c,No as d,He as e,we as f,Ro as g,Ae as h,Ir as i,Fo as j,_e as k,J as l,Ge as m,Ba as n,Io as o,$e as p,Wa as q,So as r,Je as s,Xe as t,ri as u,Oo as v,Qe as w,di as x,Do as y,yi as z,_o as A,Ei as B,zo as C,Go as D,je as E,Yo as F,qo as G,ie as H,et as I,$o as J,Jo as K,nt as L,me as M,it as N,Xo as O,Qo as P,gt as Q,jo as R,tr as S,xt as T,Ct as U,er as V};
@@ -1 +0,0 @@
1
- import{c as m}from"./chunk-S7CSCIW4.mjs";var d=r=>r.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/\son\w+="[^"]*"/gi,"").replace(/\son\w+='[^']*'/gi,"").replace(/javascript:/gi,""),v=r=>r.replace(/fill=(['"])(?!none|transparent)[^'"]*\1/gi,'fill="currentColor"').replace(/stroke=(['"])(?!none|transparent)[^'"]*\1/gi,'stroke="currentColor"').replace(/color=(['"])[^'"]*\1/gi,'color="currentColor"'),S=r=>{let t=r.match(/<svg\s+([^>]*)>/i);if(!t||!t[1])return{};let e=t[1],s={},o=/(\w[\w-]*)=["']([^"']*)["']/g,a;for(;a=o.exec(e);){let[,c,i]=a;c&&i&&(s[c]=i)}return s},h=r=>r.match(/<svg[^>]*>([\s\S]*?)<\/svg>/i)?.[1]??"",f=async r=>{try{let t=await fetch(r,{headers:{Accept:"image/svg+xml, text/plain, */*"}});if(!t.ok)throw new Error(`Failed to fetch SVG: ${t.status} ${t.statusText}`);let e=await t.text();if(!e.trim().includes("<svg"))throw new Error("Response is not valid SVG");return e}catch(t){throw console.error("Error fetching SVG:",t),t}};import{jsx as g}from"react/jsx-runtime";var C=async({src:r,className:t="",width:e,height:s,fill:o,sanitize:a=!0,useCurrentColor:c=!0,fallback:i,alt:x})=>{if(!r)return i??null;let w=p=>{let n=[];return a&&n.push(d),c&&n.push(v),n.reduce((l,u)=>u(l),p)};try{let p=await f(r),n=w(p),l=S(n),u=h(n),b={...l,role:"img","aria-label":x,width:o?"100%":e,height:o?"100%":s,className:m(l.className,t,{"absolute inset-0":o})};return g("div",{className:"relative size-full",children:g("svg",{...b,dangerouslySetInnerHTML:{__html:u}})})}catch{return i??g("div",{className:m(t),style:{width:e,height:s},children:g("div",{className:"rounded border border-red-200 bg-red-50 p-2 text-sm text-red-500",children:"Failed to load SVG"})})}};export{C as a};
@@ -1 +0,0 @@
1
- var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports);var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var n=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b};
@@ -1 +0,0 @@
1
- import{a as e,b as x,c as l}from"./chunk-S7CSCIW4.mjs";var p=({height:t,fullHeight:a,fitHeight:o})=>{if(t)return t;if(a)return"h-screen";if(o)return"h-full"};import{jsx as V}from"react/jsx-runtime";var S=({className:t,wrapperClassName:a,style:o,children:P,backgroundColor:g,spacing:b,border:m="",fluidContent:r=!1,fullHeight:H=!1,fitHeight:T=!1,height:C,maxWidth:n,...y})=>{let[L,{marginTop:s,marginBottom:u,marginRight:f,marginLeft:d,paddingTop:h,paddingBottom:v,paddingRight:c,paddingLeft:w}]=x(b),i=p({height:C,fullHeight:H,fitHeight:T});return V("div",{className:l("px-4 xl:px-0",{"!px-0":r,"mx-auto w-full":!r,"max-w-7xl max-w-container-width":!n&&!r,[`max-w-${n}`]:!!n&&!r,[e(i,"h-{value}")]:i},a),children:V("div",{className:l({[`bg-${g}`]:!!g,[e(s,"mt-{value}")]:s,[e(u,"mb-{value}")]:u,[e(f,"mr-{value}")]:f,[e(d,"ml-{value}")]:d,[e(h,"pt-{value}")]:h,[e(v,"pb-{value}")]:v,[e(c,"pr-{value}")]:c,[e(w,"pl-{value}")]:w,[e(m,"{value}")]:m,[e(i,"h-{value}")]:i},t),style:{...L,...o},...y,children:P})})};export{p as a,S as b};
@@ -1 +0,0 @@
1
- import{a as v,b as d}from"./chunk-YUCUJWBO.mjs";import{a as e,c as i}from"./chunk-S7CSCIW4.mjs";import{jsx as f}from"react/jsx-runtime";var w=({className:l,columnsCount:a,gapX:o,gapY:r,backgroundColor:t,spacing:m,border:C,fluidContent:b,fullHeight:p,fitHeight:n,height:s,children:A})=>{let u=v({height:s,fullHeight:p,fitHeight:n});return f(d,{backgroundColor:t,spacing:m,border:C,fluidContent:b,fullHeight:p,fitHeight:n,height:s,children:f("div",{className:i("grid",{[e(a,"grid-cols-{value}")]:a,[e(o,"gap-x-{value}")]:o,[e(r,"gap-y-{value}")]:r,[e(u,"h-{value}")]:u},l),children:A})})};import{jsx as P}from"react/jsx-runtime";var G=({className:l,columnStart:a,columnSpan:o,rowStart:r,rowSpan:t,children:m})=>P("div",{className:i({[e(a,"col-start-{value}")]:a,[e(o,"col-{value}")]:o,[e(r,"row-start-{value}")]:r,[e(t,"row-{value}")]:t},l),children:m});export{w as a,G as b};
@@ -1,21 +0,0 @@
1
- import { BannerParameters } from '.';
2
-
3
- export enum ContentAlignment {
4
- Left = 'left',
5
- Center = 'center',
6
- Right = 'right',
7
- }
8
-
9
- export enum BannerVariants {
10
- Top = 'top',
11
- Bottom = 'bottom',
12
- }
13
-
14
- export type PositionClassesProps = {
15
- variant?: BannerVariants;
16
- } & Pick<BannerParameters, 'floating'>;
17
-
18
- export type ContentClassesProps = Pick<
19
- BannerParameters,
20
- 'floating' | 'iconColor' | 'fluidContent' | 'contentAlignment'
21
- >;
@@ -1,20 +0,0 @@
1
- import { FC } from 'react';
2
- import MediaPlaceholder from '@/components/ui/MediaPlaceholder';
3
- import { ImageProps } from '.';
4
-
5
- type ImagePlaceholderProps = Pick<ImageProps, 'component' | 'context' | 'width' | 'height'>;
6
-
7
- export const ImagePlaceholder: FC<ImagePlaceholderProps> = ({ context, component, width, height }) => {
8
- const isEditorPreviewMode = context.previewMode === 'editor' && context.isContextualEditing;
9
- const isPlaceholder = component?._id?.includes('placeholder_');
10
-
11
- if (!isEditorPreviewMode || isPlaceholder) {
12
- return null;
13
- }
14
-
15
- return (
16
- <div style={{ width: width ? `${width}px` : 'auto', height: height ? `${height}px` : 'auto' }}>
17
- <MediaPlaceholder type="image" placeholder="Please add an asset to display an image" />
18
- </div>
19
- );
20
- };
@@ -1,18 +0,0 @@
1
- import { ViewPort } from '@/types/cskTypes';
2
-
3
- export const getHeightValue = ({
4
- height,
5
- fullHeight,
6
- fitHeight,
7
- }: {
8
- height?: string | ViewPort<string> | undefined;
9
- fullHeight?: boolean | undefined;
10
- fitHeight?: boolean | undefined;
11
- }) => {
12
- if (height) return height;
13
- // Cover deprecated cases
14
- if (fullHeight) return 'h-screen';
15
- if (fitHeight) return 'h-full';
16
-
17
- return undefined;
18
- };
@@ -1 +0,0 @@
1
- "use client";import"./chunk-2UV7TQNF.mjs";import"./chunk-MSXDLSXH.mjs";import{a as l,c as a}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useState as T,useEffect as y,useMemo as H}from"react";import{UniformSlot as h}from"@uniformdev/canvas-next-rsc/component";var S=({variant:e,backgroundColor:r,border:o,size:t})=>a("flex w-fit p-4 text-center gap-2 items-end leading-none",{"flex-col":e==="labelsUnder",[`bg-${r}`]:!!r,[l(o,"{value}")]:o,"items-center":o,[l(t,"text-{value}")]:!!t,[l(o,"{value}")]:!!o}),_=({textColor:e})=>a("flex gap-5 flex-wrap flex-col sm:flex-row",{[`text-${e}`]:e});import{jsx as u}from"react/jsx-runtime";var c=e=>{let r=new Date(e?.datetime??0).getTime(),o=new Date().getTime(),t=Math.max(Math.floor((r-o)/1e3),0),m=Math.floor(t%60),n=Math.floor(t/60%60),d=Math.floor(t/3600%24);return{days:Math.floor(t/86400),hours:d,minutes:n,seconds:m,timeDifference:t}},p=({maxUnitsCount:e,currentTime:r,unit:o,isAlignEnd:t})=>u("div",{className:"relative mx-auto h-[1.25em] w-[1.75em] overflow-hidden",children:u("div",{className:"absolute transition-transform duration-500 ease-in-out",style:{transform:`translateY(-${r*1.25}em)`},children:Array.from({length:e+1},(m,n)=>u("div",{className:a("flex h-[1.25em] w-[1.75em] justify-center",{"items-end":t,"items-center":!t}),children:n<10?`0${n}`:n},`${o}-${n}`))})});import{jsx as i,jsxs as R}from"react/jsx-runtime";var g=["days","hours","minutes","seconds"],Z=({targetDate:e,backgroundColor:r,textColor:o,border:t,size:m,component:n,context:d,slots:N})=>{let[{timeDifference:f,...C},I]=T(c(e)),v=H(()=>{let{days:s}=c(e);return{seconds:59,minutes:59,hours:23,days:s}},[e]);return y(()=>{if(f>0){let s=setInterval(()=>{I(c(e))},1e3);return()=>clearInterval(s)}},[e,f]),i("div",{children:f?i("div",{className:_({textColor:o}),children:g.map(s=>{if(C[s]===0&&s==="days")return null;let U=C[s];return R("div",{className:S({variant:n.variant,backgroundColor:r,border:t,size:m}),children:[i("div",{className:"mx-auto",children:p({maxUnitsCount:v[s],currentTime:U,unit:s,isAlignEnd:!t})}),i("div",{className:"mx-auto",style:{fontSize:"0.5em"},children:s})]},s)})}):i(h,{data:n,context:d,slot:N.countdownComplete})})};export{Z as Countdown};
@@ -1 +0,0 @@
1
- "use client";import{a as L}from"./chunk-BK7UG4U4.mjs";import{b as d}from"./chunk-YUCUJWBO.mjs";import{a as h}from"./chunk-2YTACEBA.mjs";import{c as I}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as $}from"@uniformdev/canvas-next-rsc/component";import R from"react-responsive-masonry";import{Fragment as N,jsx as y}from"react/jsx-runtime";var g={firstLineCount:2,secondLineCount:3,otherLinesCount:4},P=({slot:n,aspectRatio:s,config:r})=>{let{firstLineCount:i=g.firstLineCount,secondLineCount:p=g.secondLineCount,otherLinesCount:m=g.otherLinesCount}=r||{},{items:f=[]}=n||{},c=f.reduce((e,o,t)=>(t<i?e[0]?.push(o):t<i+p?e[1]?.push(o):e[2]?.push(o),e),[[],[],[]])||[];return y(N,{children:c?.map((e,o)=>e.length?y(R,{columnsCount:o<2||e.length<m?e.length:m,gutter:"4px",children:e.map((t,u)=>y("div",{className:I("flex flex-1 items-center justify-center",{[`aspect-${s}`]:!!s}),children:t},`img-${u}`))},`line-${o}`):null)})};import{jsx as l}from"react/jsx-runtime";var b=({slots:n,aspectRatio:s,items:r,backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,fitHeight:e,height:o,config:t,context:u,component:C})=>{let F=r?.length?{name:"items",items:h(r)?.map((a,G)=>l(L,{src:a.url,style:{objectFit:"cover"},alt:`Image ${G}`,fill:!0},a?.id||`image-${G}`))||[]}:n.imageGalleryItems,v=!r?.length&&!C?.slots?.imageGalleryItems?.filter(({_id:a})=>!a?.startsWith("placeholder"))?.length;return l(d,{backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,fitHeight:e,height:o,children:l("div",{className:"flex flex-col gap-1",children:v?l($,{context:u,slot:n.imageGalleryItems,data:C}):l(P,{slot:F,aspectRatio:s,config:t})})})};export{b as ImageGallery};
@@ -1,71 +0,0 @@
1
- import { ReactElement, PropsWithChildren, ReactNode, HTMLAttributes } from 'react';
2
- import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
3
- import { ViewPort, SpaceType } from './types/cskTypes.mjs';
4
-
5
- type TextSize$1 = keyof DefaultTheme['fontSize'];
6
- type TextProps = {
7
- className?: string;
8
- size?: TextSize$1 | ViewPort<TextSize$1>;
9
- color?: string;
10
- weight?: keyof DefaultTheme['fontWeight'];
11
- font?: string;
12
- transform?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
13
- decoration?: 'underline' | 'overline' | 'line-through' | 'no-underline';
14
- letterSpacing?: keyof DefaultTheme['letterSpacing'];
15
- children: ReactElement | string;
16
- alignment?: 'left' | 'center' | 'right';
17
- lineCountRestrictions?: string;
18
- };
19
-
20
- declare enum ButtonVariant {
21
- Link = "link"
22
- }
23
- type TextSize = keyof DefaultTheme['fontSize'];
24
- type ButtonProps = PropsWithChildren<{
25
- variant?: ButtonVariant;
26
- href?: string;
27
- border?: string | ViewPort<string>;
28
- size?: string;
29
- className?: string;
30
- textColor?: string;
31
- textSize?: TextSize | ViewPort<TextSize>;
32
- textWeight?: keyof DefaultTheme['fontWeight'];
33
- textFont?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
34
- textTransform?: string;
35
- buttonColor?: string;
36
- isActive?: boolean;
37
- onClick?: () => void;
38
- icon?: ReactNode;
39
- iconPosition?: 'left' | 'right';
40
- hoverButtonColor?: string;
41
- hoverTextColor?: string;
42
- }>;
43
-
44
- type ContainerProps = HTMLAttributes<HTMLDivElement> & {
45
- backgroundColor?: string;
46
- spacing?: SpaceType | ViewPort<SpaceType>;
47
- border?: string | ViewPort<string>;
48
- fluidContent?: boolean;
49
- /** @deprecated Use height prop instead */
50
- fullHeight?: boolean;
51
- /** @deprecated Use height prop instead */
52
- fitHeight?: boolean;
53
- height?: string | ViewPort<string>;
54
- wrapperClassName?: string;
55
- maxWidth?: string;
56
- };
57
-
58
- type FooterProps = Omit<ContainerProps, 'fullHeight' | 'content'> & {
59
- logo?: React.ReactNode;
60
- copyright?: React.ReactNode;
61
- content?: React.ReactNode;
62
- };
63
-
64
- type HeaderProps = PropsWithChildren & Omit<ContainerProps, 'fluidContent' | 'fullHeight'> & {
65
- leftSection?: ReactNode;
66
- rightSection?: ReactNode;
67
- color?: string;
68
- sticky?: boolean;
69
- };
70
-
71
- export { type ButtonProps as B, type ContainerProps as C, type FooterProps as F, type HeaderProps as H, type TextProps as T, ButtonVariant as a };
@@ -1 +0,0 @@
1
- "use client";import{a as u,b as s}from"./chunk-Z7JSWSPD.mjs";import{b as o}from"./chunk-YUCUJWBO.mjs";import{c as n}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useState as C}from"react";import{jsx as e,jsxs as l}from"react/jsx-runtime";var B=({isOpen:t,onClick:i,color:a})=>e("button",{onClick:i,"aria-label":"Menu",className:n("w-7 h-7 relative focus:outline-none"),children:l("div",{className:"absolute left-1/2 top-1/2 block w-7 -translate-x-1/2 -translate-y-1/2",children:[e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"rotate-45":t," -translate-y-2":!t,[`bg-${a}`]:!!a})}),e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"opacity-0":t,[`bg-${a}`]:!!a})}),e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"-rotate-45":t," translate-y-2":!t,[`bg-${a}`]:!!a})})]})}),G=({leftSection:t,rightSection:i,children:a,backgroundColor:m,spacing:c,border:d,className:p,color:f})=>{let[r,b]=C(!1);return l("nav",{children:[e(o,{id:"mobile-header",fluidContent:!0,backgroundColor:m,spacing:c,border:d,className:p,children:l(u,{className:"items-center",columnsCount:"12",children:[e(s,{columnSpan:"span-2",children:e(B,{isOpen:r,onClick:()=>{b(v=>!v)},color:f})}),e(s,{columnSpan:"span-6",children:e("div",{className:"flex items-center justify-start",children:t})}),e(s,{columnSpan:"span-4",children:e("div",{className:"flex items-center justify-end gap-x-4",children:i})})]})}),e(o,{fluidContent:!0,className:n({"min-h-screen":r}),backgroundColor:m,children:r&&e("div",{className:"size-full py-8",children:e("div",{className:"flex flex-col items-center justify-center gap-y-8",children:a})})})]})};export{G as MobileHeader};