react-component-kit-ui 0.0.0-stage → 0.1.0

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 (472) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +21 -0
  3. package/README.md +225 -2
  4. package/dist/apexcharts.js +327 -0
  5. package/dist/app.js +21 -0
  6. package/dist/buttons.js +26 -0
  7. package/dist/cards.js +26 -0
  8. package/dist/charts.js +50 -0
  9. package/dist/chunks/ActivityHeatmapGrid-P3FP0D6z.js +416 -0
  10. package/dist/chunks/AnimatedCheckmark-CJEmTxC6.js +19 -0
  11. package/dist/chunks/AnimatedInput-Dt37HZSs.js +21 -0
  12. package/dist/chunks/AuthCard-BkWHMFho.js +1409 -0
  13. package/dist/chunks/Badge-CHkR__dT.js +11 -0
  14. package/dist/chunks/CartPageList-DvsbjjCi.js +331 -0
  15. package/dist/chunks/CartToast-UIJFD2CK.js +570 -0
  16. package/dist/chunks/ChangelogSection-eY4neMby.js +2409 -0
  17. package/dist/chunks/CountdownBanner-CcpsvvE8.js +1263 -0
  18. package/dist/chunks/CtaNewsletterSection-Cl3fLVpQ.js +75 -0
  19. package/dist/chunks/CustomRadioGroup-DAwliU9n.js +26 -0
  20. package/dist/chunks/DiagonalSectionDivider-CwOOEFbn.js +541 -0
  21. package/dist/chunks/FloatingFeedbackWidget-D_0EpalW.js +348 -0
  22. package/dist/chunks/FooterMegaSection-DG1qtKuZ.js +67 -0
  23. package/dist/chunks/HackerDecodeText-hutANQXI.js +289 -0
  24. package/dist/chunks/LogoWallGrid-BEpsn1Gt.js +433 -0
  25. package/dist/chunks/LogoWithGalaxy-q_3-9vGU.js +139 -0
  26. package/dist/chunks/ProductCardMinimal-lQi5vy3-.js +88 -0
  27. package/dist/chunks/QuickJumpDock-DZzwR0vg.js +294 -0
  28. package/dist/chunks/SegmentedBarChart-DEBZURnS.js +384 -0
  29. package/dist/chunks/ShopCategoryHero-BLlWZ-i3.js +695 -0
  30. package/dist/chunks/StackedAreaChart-DF1-3rDG.js +453 -0
  31. package/dist/chunks/StatsTrendCard--nij2Jv0.js +491 -0
  32. package/dist/chunks/StatusTimelineFeed-BRYwz08g.js +62 -0
  33. package/dist/chunks/StepBreadcrumbBar-BGXvx5NX.js +32 -0
  34. package/dist/chunks/StepperInput-Ck_9n2BL.js +30 -0
  35. package/dist/chunks/TagsAutocompleteInput-BdbVqPbF.js +467 -0
  36. package/dist/chunks/TiltGlowButton-BRHwq9Af.js +650 -0
  37. package/dist/chunks/TypingIndicator-DshBNXhx.js +373 -0
  38. package/dist/chunks/WaterfallChart-C6NFbfO0.js +1337 -0
  39. package/dist/chunks/cart-store-u-ScUvte.js +212 -0
  40. package/dist/chunks/chart-tooltip-C7pIc_Su.js +49 -0
  41. package/dist/chunks/galaxy-scene-C854qLoX.js +231 -0
  42. package/dist/data.js +28 -0
  43. package/dist/ecommerce.js +43 -0
  44. package/dist/favicon.svg +14 -0
  45. package/dist/feedback.js +28 -0
  46. package/dist/forms.js +31 -0
  47. package/dist/global.css +254 -0
  48. package/dist/index.js +397 -0
  49. package/dist/layout.js +26 -0
  50. package/dist/logo-animated.svg +46 -0
  51. package/dist/logo.svg +46 -0
  52. package/dist/navigation.js +28 -0
  53. package/dist/overlays.js +27 -0
  54. package/dist/robots.txt +4 -0
  55. package/dist/sections.js +68 -0
  56. package/dist/styles.css +1 -0
  57. package/dist/templates/ecommerce-editorial.js +481 -0
  58. package/dist/templates/ecommerce.js +556 -0
  59. package/dist/templates/saas-hotel.js +540 -0
  60. package/dist/three.js +17 -0
  61. package/dist/tsconfig.build.tsbuildinfo +1 -0
  62. package/dist/types/components/apexcharts.d.ts +3 -0
  63. package/dist/types/components/index.d.ts +15 -0
  64. package/dist/types/components/lib/AnimatedGalaxy.d.ts +8 -0
  65. package/dist/types/components/lib/Galaxy3D.d.ts +15 -0
  66. package/dist/types/components/lib/LogoWithGalaxy.d.ts +8 -0
  67. package/dist/types/components/lib/app/AppSidebar.d.ts +53 -0
  68. package/dist/types/components/lib/app/AppTopbar.d.ts +52 -0
  69. package/dist/types/components/lib/app/ArrivalsBoard.d.ts +45 -0
  70. package/dist/types/components/lib/app/AuthCard.d.ts +45 -0
  71. package/dist/types/components/lib/app/DataTable.d.ts +54 -0
  72. package/dist/types/components/lib/app/GuestProfileCard.d.ts +48 -0
  73. package/dist/types/components/lib/app/HousekeepingBoard.d.ts +38 -0
  74. package/dist/types/components/lib/app/PageHeader.d.ts +45 -0
  75. package/dist/types/components/lib/app/PlanUsageCard.d.ts +44 -0
  76. package/dist/types/components/lib/app/RoomRack.d.ts +42 -0
  77. package/dist/types/components/lib/app/SettingsSection.d.ts +34 -0
  78. package/dist/types/components/lib/app/SwitchRow.d.ts +28 -0
  79. package/dist/types/components/lib/app/TeamMembers.d.ts +33 -0
  80. package/dist/types/components/lib/app/app-icons.d.ts +37 -0
  81. package/dist/types/components/lib/app/index.d.ts +15 -0
  82. package/dist/types/components/lib/buttons/AnimatedIconButton.d.ts +22 -0
  83. package/dist/types/components/lib/buttons/BorderDrawButton.d.ts +19 -0
  84. package/dist/types/components/lib/buttons/CyberpunkButton.d.ts +23 -0
  85. package/dist/types/components/lib/buttons/DoubleBorderButton.d.ts +17 -0
  86. package/dist/types/components/lib/buttons/GhostOutlineButton.d.ts +21 -0
  87. package/dist/types/components/lib/buttons/GlassButton.d.ts +23 -0
  88. package/dist/types/components/lib/buttons/GlowButton.d.ts +19 -0
  89. package/dist/types/components/lib/buttons/LiquidButton.d.ts +19 -0
  90. package/dist/types/components/lib/buttons/LoadingButton.d.ts +20 -0
  91. package/dist/types/components/lib/buttons/MagneticButton.d.ts +21 -0
  92. package/dist/types/components/lib/buttons/MinimalPillButton.d.ts +17 -0
  93. package/dist/types/components/lib/buttons/NeonBorderButton.d.ts +19 -0
  94. package/dist/types/components/lib/buttons/NeumorphicButton.d.ts +21 -0
  95. package/dist/types/components/lib/buttons/PulseButton.d.ts +20 -0
  96. package/dist/types/components/lib/buttons/RetroArcadeButton.d.ts +17 -0
  97. package/dist/types/components/lib/buttons/RetroShadowButton.d.ts +17 -0
  98. package/dist/types/components/lib/buttons/RippleButton.d.ts +17 -0
  99. package/dist/types/components/lib/buttons/ShimmerButton.d.ts +17 -0
  100. package/dist/types/components/lib/buttons/ShinyButton.d.ts +17 -0
  101. package/dist/types/components/lib/buttons/SlideRevealButton.d.ts +20 -0
  102. package/dist/types/components/lib/buttons/ThreeDPushButton.d.ts +19 -0
  103. package/dist/types/components/lib/buttons/TiltGlowButton.d.ts +21 -0
  104. package/dist/types/components/lib/buttons/index.d.ts +22 -0
  105. package/dist/types/components/lib/cards/BlogHorizontalCard.d.ts +17 -0
  106. package/dist/types/components/lib/cards/CyberFeatureCard.d.ts +15 -0
  107. package/dist/types/components/lib/cards/EcommerceProductCard.d.ts +21 -0
  108. package/dist/types/components/lib/cards/GithubRepoCard.d.ts +25 -0
  109. package/dist/types/components/lib/cards/GlassCard.d.ts +19 -0
  110. package/dist/types/components/lib/cards/GlassEventCard.d.ts +17 -0
  111. package/dist/types/components/lib/cards/GlowPortfolioCard.d.ts +17 -0
  112. package/dist/types/components/lib/cards/InteractiveTiltCard.d.ts +13 -0
  113. package/dist/types/components/lib/cards/KanbanItemCard.d.ts +15 -0
  114. package/dist/types/components/lib/cards/MinimalLinkCard.d.ts +13 -0
  115. package/dist/types/components/lib/cards/MusicPlayerMini.d.ts +17 -0
  116. package/dist/types/components/lib/cards/NeumorphicCard.d.ts +13 -0
  117. package/dist/types/components/lib/cards/NotificationCard.d.ts +15 -0
  118. package/dist/types/components/lib/cards/PricingCard.d.ts +17 -0
  119. package/dist/types/components/lib/cards/PricingCompareMiniCard.d.ts +25 -0
  120. package/dist/types/components/lib/cards/ProfileCard.d.ts +17 -0
  121. package/dist/types/components/lib/cards/RetroGameCard.d.ts +15 -0
  122. package/dist/types/components/lib/cards/StatCard.d.ts +15 -0
  123. package/dist/types/components/lib/cards/StatsTrendCard.d.ts +19 -0
  124. package/dist/types/components/lib/cards/TaskKanbanCard.d.ts +17 -0
  125. package/dist/types/components/lib/cards/TestimonialCardClean.d.ts +17 -0
  126. package/dist/types/components/lib/cards/WeatherWidgetCard.d.ts +17 -0
  127. package/dist/types/components/lib/cards/index.d.ts +22 -0
  128. package/dist/types/components/lib/charts/ActivityRings.d.ts +26 -0
  129. package/dist/types/components/lib/charts/AreaChart.d.ts +16 -0
  130. package/dist/types/components/lib/charts/BarChart.d.ts +17 -0
  131. package/dist/types/components/lib/charts/BoxPlotChart.d.ts +26 -0
  132. package/dist/types/components/lib/charts/BubbleChart.d.ts +35 -0
  133. package/dist/types/components/lib/charts/BulletChart.d.ts +29 -0
  134. package/dist/types/components/lib/charts/BumpChart.d.ts +25 -0
  135. package/dist/types/components/lib/charts/CandlestickChart.d.ts +30 -0
  136. package/dist/types/components/lib/charts/ChartFrame.d.ts +43 -0
  137. package/dist/types/components/lib/charts/DivergingBarChart.d.ts +31 -0
  138. package/dist/types/components/lib/charts/DonutChart.d.ts +16 -0
  139. package/dist/types/components/lib/charts/DumbbellChart.d.ts +31 -0
  140. package/dist/types/components/lib/charts/ForecastLineChart.d.ts +30 -0
  141. package/dist/types/components/lib/charts/FunnelChart.d.ts +24 -0
  142. package/dist/types/components/lib/charts/GaugeChart.d.ts +29 -0
  143. package/dist/types/components/lib/charts/GoalProgressChart.d.ts +29 -0
  144. package/dist/types/components/lib/charts/GroupedBarChart.d.ts +32 -0
  145. package/dist/types/components/lib/charts/HeatmapChart.d.ts +29 -0
  146. package/dist/types/components/lib/charts/HistogramChart.d.ts +27 -0
  147. package/dist/types/components/lib/charts/HorizontalBarChart.d.ts +32 -0
  148. package/dist/types/components/lib/charts/KpiStatTile.d.ts +28 -0
  149. package/dist/types/components/lib/charts/KpiTrendGrid.d.ts +27 -0
  150. package/dist/types/components/lib/charts/LineChart.d.ts +38 -0
  151. package/dist/types/components/lib/charts/LinearProgressGauge.d.ts +19 -0
  152. package/dist/types/components/lib/charts/LollipopChart.d.ts +32 -0
  153. package/dist/types/components/lib/charts/MeterGauge.d.ts +32 -0
  154. package/dist/types/components/lib/charts/MetricDeltaTable.d.ts +36 -0
  155. package/dist/types/components/lib/charts/PieChart.d.ts +32 -0
  156. package/dist/types/components/lib/charts/PolarAreaChart.d.ts +27 -0
  157. package/dist/types/components/lib/charts/PopulationPyramid.d.ts +31 -0
  158. package/dist/types/components/lib/charts/PunchCardChart.d.ts +26 -0
  159. package/dist/types/components/lib/charts/RadarChart.d.ts +28 -0
  160. package/dist/types/components/lib/charts/RadarMetricChart.d.ts +20 -0
  161. package/dist/types/components/lib/charts/RadialBarChart.d.ts +27 -0
  162. package/dist/types/components/lib/charts/RangeAreaChart.d.ts +34 -0
  163. package/dist/types/components/lib/charts/RetentionCohortTable.d.ts +27 -0
  164. package/dist/types/components/lib/charts/SankeyChart.d.ts +30 -0
  165. package/dist/types/components/lib/charts/ScatterPlot.d.ts +35 -0
  166. package/dist/types/components/lib/charts/SegmentedBarChart.d.ts +30 -0
  167. package/dist/types/components/lib/charts/SlopeChart.d.ts +33 -0
  168. package/dist/types/components/lib/charts/SparklineChart.d.ts +24 -0
  169. package/dist/types/components/lib/charts/StackedAreaChart.d.ts +34 -0
  170. package/dist/types/components/lib/charts/StackedBarChart.d.ts +33 -0
  171. package/dist/types/components/lib/charts/SunburstChart.d.ts +33 -0
  172. package/dist/types/components/lib/charts/TreemapChart.d.ts +31 -0
  173. package/dist/types/components/lib/charts/WaffleChart.d.ts +26 -0
  174. package/dist/types/components/lib/charts/WaterfallChart.d.ts +32 -0
  175. package/dist/types/components/lib/charts/chart-tooltip.d.ts +1 -0
  176. package/dist/types/components/lib/charts/chart-utils.d.ts +46 -0
  177. package/dist/types/components/lib/charts/index.d.ts +44 -0
  178. package/dist/types/components/lib/data/AccordionGroupGlass.d.ts +6 -0
  179. package/dist/types/components/lib/data/ActivityHeatmapGrid.d.ts +13 -0
  180. package/dist/types/components/lib/data/AvatarGroupStack.d.ts +6 -0
  181. package/dist/types/components/lib/data/CalendarGridView.d.ts +6 -0
  182. package/dist/types/components/lib/data/DataChipsGroup.d.ts +6 -0
  183. package/dist/types/components/lib/data/DescriptionListHoriz.d.ts +6 -0
  184. package/dist/types/components/lib/data/FileTreeView.d.ts +6 -0
  185. package/dist/types/components/lib/data/GanttChartMinimal.d.ts +6 -0
  186. package/dist/types/components/lib/data/GlassTable.d.ts +6 -0
  187. package/dist/types/components/lib/data/KeyValuePillGroup.d.ts +6 -0
  188. package/dist/types/components/lib/data/MetricComparisonRow.d.ts +19 -0
  189. package/dist/types/components/lib/data/PriceCompareTable.d.ts +6 -0
  190. package/dist/types/components/lib/data/ProgressListSmall.d.ts +6 -0
  191. package/dist/types/components/lib/data/RatingBreakdownBar.d.ts +6 -0
  192. package/dist/types/components/lib/data/SparklineStatCard.d.ts +6 -0
  193. package/dist/types/components/lib/data/StatsGridDashboard.d.ts +6 -0
  194. package/dist/types/components/lib/data/StatusTimelineFeed.d.ts +16 -0
  195. package/dist/types/components/lib/data/StepperDataVertical.d.ts +6 -0
  196. package/dist/types/components/lib/data/TagCloudData.d.ts +6 -0
  197. package/dist/types/components/lib/data/TimelineHorizSteps.d.ts +6 -0
  198. package/dist/types/components/lib/data/TreeItemInteractive.d.ts +6 -0
  199. package/dist/types/components/lib/data/UserDirectoryItem.d.ts +6 -0
  200. package/dist/types/components/lib/data/VerticalTimeline.d.ts +6 -0
  201. package/dist/types/components/lib/data/index.d.ts +23 -0
  202. package/dist/types/components/lib/ecommerce/CartDrawer.d.ts +43 -0
  203. package/dist/types/components/lib/ecommerce/CartPageList.d.ts +36 -0
  204. package/dist/types/components/lib/ecommerce/CartToast.d.ts +34 -0
  205. package/dist/types/components/lib/ecommerce/CategoryTiles.d.ts +32 -0
  206. package/dist/types/components/lib/ecommerce/CheckoutForm.d.ts +44 -0
  207. package/dist/types/components/lib/ecommerce/CountdownBanner.d.ts +38 -0
  208. package/dist/types/components/lib/ecommerce/FilterBar.d.ts +48 -0
  209. package/dist/types/components/lib/ecommerce/FilterSidebar.d.ts +42 -0
  210. package/dist/types/components/lib/ecommerce/LiveActivityToast.d.ts +43 -0
  211. package/dist/types/components/lib/ecommerce/OrderSummary.d.ts +39 -0
  212. package/dist/types/components/lib/ecommerce/ProductBuyBox.d.ts +39 -0
  213. package/dist/types/components/lib/ecommerce/ProductCardMinimal.d.ts +38 -0
  214. package/dist/types/components/lib/ecommerce/ProductGallery.d.ts +29 -0
  215. package/dist/types/components/lib/ecommerce/ProductGrid.d.ts +41 -0
  216. package/dist/types/components/lib/ecommerce/ProductMedia.d.ts +30 -0
  217. package/dist/types/components/lib/ecommerce/ProductRating.d.ts +23 -0
  218. package/dist/types/components/lib/ecommerce/ProductToolbar.d.ts +35 -0
  219. package/dist/types/components/lib/ecommerce/PromoBar.d.ts +29 -0
  220. package/dist/types/components/lib/ecommerce/StockIndicator.d.ts +29 -0
  221. package/dist/types/components/lib/ecommerce/StoreHeader.d.ts +54 -0
  222. package/dist/types/components/lib/ecommerce/StoreHero.d.ts +48 -0
  223. package/dist/types/components/lib/ecommerce/StoreProductCard.d.ts +40 -0
  224. package/dist/types/components/lib/ecommerce/TrustBadges.d.ts +24 -0
  225. package/dist/types/components/lib/ecommerce/VariantPicker.d.ts +37 -0
  226. package/dist/types/components/lib/ecommerce/cart-store.d.ts +31 -0
  227. package/dist/types/components/lib/ecommerce/catalog-filter.d.ts +12 -0
  228. package/dist/types/components/lib/ecommerce/index.d.ts +30 -0
  229. package/dist/types/components/lib/ecommerce/product-icons.d.ts +20 -0
  230. package/dist/types/components/lib/ecommerce/types.d.ts +61 -0
  231. package/dist/types/components/lib/feedback/AnimatedCheckmark.d.ts +14 -0
  232. package/dist/types/components/lib/feedback/Badge.d.ts +17 -0
  233. package/dist/types/components/lib/feedback/CircleProgress.d.ts +18 -0
  234. package/dist/types/components/lib/feedback/ConfettiFeedback.d.ts +18 -0
  235. package/dist/types/components/lib/feedback/CyberGlitchAlert.d.ts +14 -0
  236. package/dist/types/components/lib/feedback/EmptyStateCard.d.ts +20 -0
  237. package/dist/types/components/lib/feedback/GlassAlert.d.ts +15 -0
  238. package/dist/types/components/lib/feedback/GlassModal.d.ts +24 -0
  239. package/dist/types/components/lib/feedback/GlassProgress.d.ts +14 -0
  240. package/dist/types/components/lib/feedback/IndicatorBadgeMinimal.d.ts +17 -0
  241. package/dist/types/components/lib/feedback/NeonSpinner.d.ts +16 -0
  242. package/dist/types/components/lib/feedback/ProgressRingCounter.d.ts +22 -0
  243. package/dist/types/components/lib/feedback/PulseDot.d.ts +14 -0
  244. package/dist/types/components/lib/feedback/RatingPill.d.ts +15 -0
  245. package/dist/types/components/lib/feedback/ShakeErrorGroup.d.ts +17 -0
  246. package/dist/types/components/lib/feedback/SimpleTooltip.d.ts +15 -0
  247. package/dist/types/components/lib/feedback/SkeletonList.d.ts +12 -0
  248. package/dist/types/components/lib/feedback/Spotlight.d.ts +15 -0
  249. package/dist/types/components/lib/feedback/StepProgress.d.ts +16 -0
  250. package/dist/types/components/lib/feedback/ToastNotif.d.ts +18 -0
  251. package/dist/types/components/lib/feedback/ToastNotificationGroup.d.ts +22 -0
  252. package/dist/types/components/lib/feedback/TypingIndicator.d.ts +14 -0
  253. package/dist/types/components/lib/feedback/index.d.ts +22 -0
  254. package/dist/types/components/lib/forms/AnimatedInput.d.ts +23 -0
  255. package/dist/types/components/lib/forms/ChipInput.d.ts +17 -0
  256. package/dist/types/components/lib/forms/ColorPickerInput.d.ts +17 -0
  257. package/dist/types/components/lib/forms/CurrencyInput.d.ts +21 -0
  258. package/dist/types/components/lib/forms/CustomRadioGroup.d.ts +21 -0
  259. package/dist/types/components/lib/forms/CyberpunkCheckbox.d.ts +17 -0
  260. package/dist/types/components/lib/forms/DragDropUpload.d.ts +19 -0
  261. package/dist/types/components/lib/forms/ErrorInput.d.ts +19 -0
  262. package/dist/types/components/lib/forms/FloatingPassword.d.ts +17 -0
  263. package/dist/types/components/lib/forms/FormGroupVertical.d.ts +21 -0
  264. package/dist/types/components/lib/forms/GlassInlineToggleGroup.d.ts +21 -0
  265. package/dist/types/components/lib/forms/GlassSlider.d.ts +23 -0
  266. package/dist/types/components/lib/forms/GlassTextarea.d.ts +21 -0
  267. package/dist/types/components/lib/forms/ModernSelect.d.ts +23 -0
  268. package/dist/types/components/lib/forms/NeumorphicSwitch.d.ts +17 -0
  269. package/dist/types/components/lib/forms/OTPInput.d.ts +17 -0
  270. package/dist/types/components/lib/forms/PasswordStrengthInput.d.ts +19 -0
  271. package/dist/types/components/lib/forms/PhoneCountryInput.d.ts +19 -0
  272. package/dist/types/components/lib/forms/RatingStars.d.ts +17 -0
  273. package/dist/types/components/lib/forms/SearchReveal.d.ts +15 -0
  274. package/dist/types/components/lib/forms/SegmentedControl.d.ts +19 -0
  275. package/dist/types/components/lib/forms/SimpleFileInput.d.ts +17 -0
  276. package/dist/types/components/lib/forms/StepperInput.d.ts +23 -0
  277. package/dist/types/components/lib/forms/TagsAutocompleteInput.d.ts +19 -0
  278. package/dist/types/components/lib/forms/index.d.ts +24 -0
  279. package/dist/types/components/lib/galaxy-scene.d.ts +5 -0
  280. package/dist/types/components/lib/layout/BentoGrid3.d.ts +14 -0
  281. package/dist/types/components/lib/layout/CenterFixedBox.d.ts +11 -0
  282. package/dist/types/components/lib/layout/CenteredContainer.d.ts +27 -0
  283. package/dist/types/components/lib/layout/ClusterHorizontal.d.ts +13 -0
  284. package/dist/types/components/lib/layout/DiagonalSectionDivider.d.ts +17 -0
  285. package/dist/types/components/lib/layout/FeatureHero.d.ts +35 -0
  286. package/dist/types/components/lib/layout/FooterCenteredMinimal.d.ts +23 -0
  287. package/dist/types/components/lib/layout/FullBleedSection.d.ts +11 -0
  288. package/dist/types/components/lib/layout/GalleryGrid4.d.ts +11 -0
  289. package/dist/types/components/lib/layout/GlassCardGrid.d.ts +16 -0
  290. package/dist/types/components/lib/layout/GlassSectionHeader.d.ts +30 -0
  291. package/dist/types/components/lib/layout/HolyGrailGrid.d.ts +23 -0
  292. package/dist/types/components/lib/layout/LandingSectionSplit.d.ts +14 -0
  293. package/dist/types/components/lib/layout/MasonryGrid.d.ts +13 -0
  294. package/dist/types/components/lib/layout/MinimalFooterGrid.d.ts +10 -0
  295. package/dist/types/components/lib/layout/ScrollSnapSection.d.ts +12 -0
  296. package/dist/types/components/lib/layout/SectionDividerText.d.ts +23 -0
  297. package/dist/types/components/lib/layout/SidebarLayoutWrapper.d.ts +33 -0
  298. package/dist/types/components/lib/layout/SplitScreenLayout.d.ts +12 -0
  299. package/dist/types/components/lib/layout/StepLayoutVertical.d.ts +9 -0
  300. package/dist/types/components/lib/layout/StickySidebarWrapper.d.ts +35 -0
  301. package/dist/types/components/lib/layout/VerticalStack.d.ts +27 -0
  302. package/dist/types/components/lib/layout/index.d.ts +22 -0
  303. package/dist/types/components/lib/navigation/AnchorSideNav.d.ts +6 -0
  304. package/dist/types/components/lib/navigation/BottomNavMobile.d.ts +6 -0
  305. package/dist/types/components/lib/navigation/BreadcrumbsMinimal.d.ts +6 -0
  306. package/dist/types/components/lib/navigation/BurgerMorphIcon.d.ts +6 -0
  307. package/dist/types/components/lib/navigation/CommandPaletteUI.d.ts +6 -0
  308. package/dist/types/components/lib/navigation/DotNavigationSlider.d.ts +6 -0
  309. package/dist/types/components/lib/navigation/FloatingTabBar.d.ts +6 -0
  310. package/dist/types/components/lib/navigation/GlassNavbar.d.ts +12 -0
  311. package/dist/types/components/lib/navigation/LangSwitcherPill.d.ts +6 -0
  312. package/dist/types/components/lib/navigation/MegaMenuGlass.d.ts +6 -0
  313. package/dist/types/components/lib/navigation/MinimalSidebar.d.ts +6 -0
  314. package/dist/types/components/lib/navigation/PaginationGlass.d.ts +6 -0
  315. package/dist/types/components/lib/navigation/PaginationInfiniteUI.d.ts +6 -0
  316. package/dist/types/components/lib/navigation/QuickJumpDock.d.ts +15 -0
  317. package/dist/types/components/lib/navigation/RadialIconMenu.d.ts +6 -0
  318. package/dist/types/components/lib/navigation/RetroArcadeMenu.d.ts +6 -0
  319. package/dist/types/components/lib/navigation/ScrollProgressTop.d.ts +6 -0
  320. package/dist/types/components/lib/navigation/SimpleFooterGlass.d.ts +6 -0
  321. package/dist/types/components/lib/navigation/StepBreadcrumbBar.d.ts +16 -0
  322. package/dist/types/components/lib/navigation/SubNavbarPills.d.ts +18 -0
  323. package/dist/types/components/lib/navigation/TabUnderline.d.ts +6 -0
  324. package/dist/types/components/lib/navigation/UserProfileNav.d.ts +6 -0
  325. package/dist/types/components/lib/navigation/VerticalTabs.d.ts +6 -0
  326. package/dist/types/components/lib/navigation/index.d.ts +23 -0
  327. package/dist/types/components/lib/overlays/AgeVerificationOverlay.d.ts +6 -0
  328. package/dist/types/components/lib/overlays/BackdropBlurMask.d.ts +6 -0
  329. package/dist/types/components/lib/overlays/BottomSheetMobile.d.ts +6 -0
  330. package/dist/types/components/lib/overlays/CommandDialog.d.ts +6 -0
  331. package/dist/types/components/lib/overlays/ContextMenuOverlay.d.ts +6 -0
  332. package/dist/types/components/lib/overlays/CookieBannerGlass.d.ts +6 -0
  333. package/dist/types/components/lib/overlays/CookiePreferencesDrawer.d.ts +13 -0
  334. package/dist/types/components/lib/overlays/ExitIntentOverlay.d.ts +6 -0
  335. package/dist/types/components/lib/overlays/FloatingFeedbackWidget.d.ts +13 -0
  336. package/dist/types/components/lib/overlays/FloatingTrayActions.d.ts +6 -0
  337. package/dist/types/components/lib/overlays/HelpBubbleOverlay.d.ts +6 -0
  338. package/dist/types/components/lib/overlays/ImageCompareSlider.d.ts +19 -0
  339. package/dist/types/components/lib/overlays/LightboxOverlay.d.ts +6 -0
  340. package/dist/types/components/lib/overlays/LoadingOverlayFull.d.ts +6 -0
  341. package/dist/types/components/lib/overlays/MobileNavOverlay.d.ts +6 -0
  342. package/dist/types/components/lib/overlays/OverlayModal.d.ts +6 -0
  343. package/dist/types/components/lib/overlays/PopoverMenuGlass.d.ts +6 -0
  344. package/dist/types/components/lib/overlays/SearchOverlayFullscreen.d.ts +6 -0
  345. package/dist/types/components/lib/overlays/SideDrawerRight.d.ts +8 -0
  346. package/dist/types/components/lib/overlays/SplashIntroOverlay.d.ts +6 -0
  347. package/dist/types/components/lib/overlays/SpotlightIndicator.d.ts +6 -0
  348. package/dist/types/components/lib/overlays/ToastStackOverlay.d.ts +6 -0
  349. package/dist/types/components/lib/overlays/TooltipActionTray.d.ts +6 -0
  350. package/dist/types/components/lib/overlays/index.d.ts +23 -0
  351. package/dist/types/components/lib/sections/AgencyContactBrief.d.ts +44 -0
  352. package/dist/types/components/lib/sections/AgencyFooterCta.d.ts +46 -0
  353. package/dist/types/components/lib/sections/AgencyHeader.d.ts +37 -0
  354. package/dist/types/components/lib/sections/AgencyHeroKinetic.d.ts +45 -0
  355. package/dist/types/components/lib/sections/AgencyServicesList.d.ts +35 -0
  356. package/dist/types/components/lib/sections/AgencyTeamGrid.d.ts +45 -0
  357. package/dist/types/components/lib/sections/AgencyWorkGrid.d.ts +42 -0
  358. package/dist/types/components/lib/sections/BlogGridSection.d.ts +35 -0
  359. package/dist/types/components/lib/sections/ButtonsShowcase.d.ts +8 -0
  360. package/dist/types/components/lib/sections/CardsShowcase.d.ts +8 -0
  361. package/dist/types/components/lib/sections/CareersOpenings.d.ts +37 -0
  362. package/dist/types/components/lib/sections/ChangelogSection.d.ts +37 -0
  363. package/dist/types/components/lib/sections/ContactGlassForm.d.ts +16 -0
  364. package/dist/types/components/lib/sections/ContactSplitMap.d.ts +36 -0
  365. package/dist/types/components/lib/sections/CtaAppDownload.d.ts +16 -0
  366. package/dist/types/components/lib/sections/CtaGlowBanner.d.ts +20 -0
  367. package/dist/types/components/lib/sections/CtaNewsletterSection.d.ts +28 -0
  368. package/dist/types/components/lib/sections/CtaSplitImage.d.ts +39 -0
  369. package/dist/types/components/lib/sections/DataShowcase.d.ts +8 -0
  370. package/dist/types/components/lib/sections/FaqAccordionSection.d.ts +16 -0
  371. package/dist/types/components/lib/sections/FaqTwoColumn.d.ts +32 -0
  372. package/dist/types/components/lib/sections/FeatureAlternatingRows.d.ts +29 -0
  373. package/dist/types/components/lib/sections/FeatureBentoGrid.d.ts +16 -0
  374. package/dist/types/components/lib/sections/FeatureIconGrid.d.ts +33 -0
  375. package/dist/types/components/lib/sections/FeatureTabsShowcase.d.ts +30 -0
  376. package/dist/types/components/lib/sections/FeatureTimelineFlow.d.ts +16 -0
  377. package/dist/types/components/lib/sections/FeedbackShowcase.d.ts +8 -0
  378. package/dist/types/components/lib/sections/FooterMegaSection.d.ts +40 -0
  379. package/dist/types/components/lib/sections/FormsShowcase.d.ts +8 -0
  380. package/dist/types/components/lib/sections/HeroDashboardPreview.d.ts +32 -0
  381. package/dist/types/components/lib/sections/HeroGlass.d.ts +8 -0
  382. package/dist/types/components/lib/sections/HeroGradient.d.ts +8 -0
  383. package/dist/types/components/lib/sections/HeroMinimalCentered.d.ts +36 -0
  384. package/dist/types/components/lib/sections/HeroShowcaseSplit.d.ts +25 -0
  385. package/dist/types/components/lib/sections/HeroSplit.d.ts +8 -0
  386. package/dist/types/components/lib/sections/HeroTerminal.d.ts +35 -0
  387. package/dist/types/components/lib/sections/HeroWaitlist.d.ts +30 -0
  388. package/dist/types/components/lib/sections/HowItWorksSteps.d.ts +32 -0
  389. package/dist/types/components/lib/sections/IntegrationsGrid.d.ts +28 -0
  390. package/dist/types/components/lib/sections/LayoutShowcase.d.ts +8 -0
  391. package/dist/types/components/lib/sections/LogoCloudSection.d.ts +16 -0
  392. package/dist/types/components/lib/sections/LogoWallGrid.d.ts +28 -0
  393. package/dist/types/components/lib/sections/NavigationShowcase.d.ts +8 -0
  394. package/dist/types/components/lib/sections/OverlaysShowcase.d.ts +8 -0
  395. package/dist/types/components/lib/sections/PricingComparisonMatrix.d.ts +16 -0
  396. package/dist/types/components/lib/sections/PricingSinglePlan.d.ts +37 -0
  397. package/dist/types/components/lib/sections/PricingTierCards.d.ts +16 -0
  398. package/dist/types/components/lib/sections/PricingToggleCards.d.ts +36 -0
  399. package/dist/types/components/lib/sections/ShopCategoryHero.d.ts +41 -0
  400. package/dist/types/components/lib/sections/ShopCollectionMosaic.d.ts +37 -0
  401. package/dist/types/components/lib/sections/ShopFooterWordmark.d.ts +38 -0
  402. package/dist/types/components/lib/sections/ShopHeaderEditorial.d.ts +61 -0
  403. package/dist/types/components/lib/sections/ShopHeroEditorial.d.ts +45 -0
  404. package/dist/types/components/lib/sections/ShopLookbook.d.ts +47 -0
  405. package/dist/types/components/lib/sections/ShopNewsletterEditorial.d.ts +33 -0
  406. package/dist/types/components/lib/sections/ShopProductRail.d.ts +41 -0
  407. package/dist/types/components/lib/sections/ShopReviewsEditorial.d.ts +34 -0
  408. package/dist/types/components/lib/sections/ShopValuesMarquee.d.ts +28 -0
  409. package/dist/types/components/lib/sections/StatsCounterBand.d.ts +30 -0
  410. package/dist/types/components/lib/sections/StatsDashboardSection.d.ts +31 -0
  411. package/dist/types/components/lib/sections/StatsMetricShowcase.d.ts +16 -0
  412. package/dist/types/components/lib/sections/TeamGridSection.d.ts +16 -0
  413. package/dist/types/components/lib/sections/TestimonialCarousel.d.ts +26 -0
  414. package/dist/types/components/lib/sections/TestimonialFeatured.d.ts +34 -0
  415. package/dist/types/components/lib/sections/TestimonialGridSection.d.ts +15 -0
  416. package/dist/types/components/lib/sections/TestimonialWallGlass.d.ts +16 -0
  417. package/dist/types/components/lib/sections/TypographyShowcase.d.ts +8 -0
  418. package/dist/types/components/lib/sections/index.d.ts +60 -0
  419. package/dist/types/components/lib/templates/ecommerce/StoreCategoryPage.d.ts +28 -0
  420. package/dist/types/components/lib/templates/ecommerce/StoreCheckoutPage.d.ts +25 -0
  421. package/dist/types/components/lib/templates/ecommerce/StoreHomePage.d.ts +25 -0
  422. package/dist/types/components/lib/templates/ecommerce/StoreLayout.d.ts +41 -0
  423. package/dist/types/components/lib/templates/ecommerce/StoreProductPage.d.ts +28 -0
  424. package/dist/types/components/lib/templates/ecommerce/data.d.ts +49 -0
  425. package/dist/types/components/lib/templates/ecommerce/index.d.ts +7 -0
  426. package/dist/types/components/lib/templates/ecommerce-editorial/EditorialBagPage.d.ts +25 -0
  427. package/dist/types/components/lib/templates/ecommerce-editorial/EditorialCheckoutPage.d.ts +25 -0
  428. package/dist/types/components/lib/templates/ecommerce-editorial/EditorialHomePage.d.ts +25 -0
  429. package/dist/types/components/lib/templates/ecommerce-editorial/EditorialLayout.d.ts +36 -0
  430. package/dist/types/components/lib/templates/ecommerce-editorial/EditorialProductPage.d.ts +29 -0
  431. package/dist/types/components/lib/templates/ecommerce-editorial/EditorialShopPage.d.ts +28 -0
  432. package/dist/types/components/lib/templates/ecommerce-editorial/data.d.ts +50 -0
  433. package/dist/types/components/lib/templates/ecommerce-editorial/index.d.ts +8 -0
  434. package/dist/types/components/lib/templates/saas-hotel/AppLayout.d.ts +30 -0
  435. package/dist/types/components/lib/templates/saas-hotel/DashboardPage.d.ts +20 -0
  436. package/dist/types/components/lib/templates/saas-hotel/GuestsPage.d.ts +20 -0
  437. package/dist/types/components/lib/templates/saas-hotel/LandingPage.d.ts +24 -0
  438. package/dist/types/components/lib/templates/saas-hotel/ReportsPage.d.ts +20 -0
  439. package/dist/types/components/lib/templates/saas-hotel/ReservationsPage.d.ts +20 -0
  440. package/dist/types/components/lib/templates/saas-hotel/RoomsPage.d.ts +20 -0
  441. package/dist/types/components/lib/templates/saas-hotel/SettingsPage.d.ts +21 -0
  442. package/dist/types/components/lib/templates/saas-hotel/SignInPage.d.ts +23 -0
  443. package/dist/types/components/lib/templates/saas-hotel/data.d.ts +224 -0
  444. package/dist/types/components/lib/templates/saas-hotel/index.d.ts +11 -0
  445. package/dist/types/components/lib/typography/AnimatedCounterText.d.ts +19 -0
  446. package/dist/types/components/lib/typography/AnimatedUnderlineLink.d.ts +9 -0
  447. package/dist/types/components/lib/typography/BackgroundClipMask.d.ts +8 -0
  448. package/dist/types/components/lib/typography/CodeInlineGlass.d.ts +8 -0
  449. package/dist/types/components/lib/typography/CurvedPathHeading.d.ts +15 -0
  450. package/dist/types/components/lib/typography/CyberpunkGlitchText.d.ts +7 -0
  451. package/dist/types/components/lib/typography/DropCapParagraph.d.ts +8 -0
  452. package/dist/types/components/lib/typography/FadedVerticalText.d.ts +8 -0
  453. package/dist/types/components/lib/typography/FloatingTextLabel.d.ts +8 -0
  454. package/dist/types/components/lib/typography/GlassBlockQuote.d.ts +8 -0
  455. package/dist/types/components/lib/typography/GlassTextReveal.d.ts +8 -0
  456. package/dist/types/components/lib/typography/GradientHeading.d.ts +11 -0
  457. package/dist/types/components/lib/typography/GradientTextMarquee.d.ts +15 -0
  458. package/dist/types/components/lib/typography/GradientUnderlineLink.d.ts +8 -0
  459. package/dist/types/components/lib/typography/HackerDecodeText.d.ts +15 -0
  460. package/dist/types/components/lib/typography/KbdIndicator.d.ts +8 -0
  461. package/dist/types/components/lib/typography/LetterSpacingWide.d.ts +8 -0
  462. package/dist/types/components/lib/typography/MinimalListMarkers.d.ts +8 -0
  463. package/dist/types/components/lib/typography/MonospaceStatLine.d.ts +8 -0
  464. package/dist/types/components/lib/typography/NeonTextHighlight.d.ts +8 -0
  465. package/dist/types/components/lib/typography/ShadowRevealText.d.ts +8 -0
  466. package/dist/types/components/lib/typography/StrokeHeadingOutline.d.ts +8 -0
  467. package/dist/types/components/lib/typography/Text3DLayer.d.ts +8 -0
  468. package/dist/types/components/lib/typography/TypewriterText.d.ts +8 -0
  469. package/dist/types/components/lib/typography/index.d.ts +24 -0
  470. package/dist/types/components/three.d.ts +1 -0
  471. package/dist/typography.js +28 -0
  472. package/package.json +237 -4
@@ -0,0 +1,570 @@
1
+ "use client";
2
+ import { jsx as e, Fragment as z, jsxs as a } from "react/jsx-runtime";
3
+ import { useRef as R, useEffect as U } from "react";
4
+ import { c as J, f as I, p as K, A as Q, N as Z } from "./cart-store-u-ScUvte.js";
5
+ import { A as T, M as X } from "./AnimatedInput-Dt37HZSs.js";
6
+ import { C as ee } from "./CustomRadioGroup-DAwliU9n.js";
7
+ import { A as te } from "./AnimatedCheckmark-CJEmTxC6.js";
8
+ function H(...r) {
9
+ const o = [], i = (t) => {
10
+ if (t) {
11
+ if (typeof t == "string" || typeof t == "number") o.push(String(t));
12
+ else if (Array.isArray(t)) t.forEach(i);
13
+ else if (typeof t == "object")
14
+ for (const [l, y] of Object.entries(t)) y && o.push(l);
15
+ }
16
+ };
17
+ return r.forEach(i), o.join(" ");
18
+ }
19
+ function ae(r) {
20
+ const o = {};
21
+ for (const i of String(r ?? "").split(";")) {
22
+ const t = i.indexOf(":");
23
+ if (t < 0) continue;
24
+ const l = i.slice(0, t).trim();
25
+ l && (o[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (y, x) => x.toUpperCase())] = i.slice(t + 1).trim());
26
+ }
27
+ return o;
28
+ }
29
+ function pe({
30
+ label: r = "Colour",
31
+ name: o = "variant",
32
+ type: i = "swatch",
33
+ options: t = [
34
+ { label: "Graphite", hex: "#2b2b2f" },
35
+ { label: "Sand", hex: "#d8c3a5" },
36
+ { label: "Ocean", hex: "#3d6f9e" },
37
+ { label: "Clay", hex: "#b5654a", disabled: !0 }
38
+ ],
39
+ selected: l = 0,
40
+ target: y,
41
+ size: x = "md",
42
+ className: L = ""
43
+ }) {
44
+ var S;
45
+ const E = `vp-${o}`, C = R(!1);
46
+ return U(() => {
47
+ C.current || (C.current = !0, document.querySelectorAll("[data-variant-picker]:not([data-bound])").forEach((u) => {
48
+ u.dataset.bound = "";
49
+ const m = u.querySelector("[data-variant-value]"), s = () => {
50
+ const d = u.querySelector("input:checked");
51
+ if (!d) return;
52
+ m && (m.textContent = d.dataset.label || d.value);
53
+ const k = u.dataset.target ? document.getElementById(u.dataset.target) : null;
54
+ if (k) {
55
+ const v = Array.from(document.querySelectorAll(`[data-variant-picker][data-target="${u.dataset.target}"]`)).map((b) => {
56
+ var f;
57
+ return (f = b.querySelector("input:checked")) == null ? void 0 : f.dataset.label;
58
+ }).filter(Boolean);
59
+ k.dataset.variant = v.join(" / ");
60
+ }
61
+ };
62
+ u.addEventListener("change", s), s();
63
+ }));
64
+ }, []), /* @__PURE__ */ e(z, { children: /* @__PURE__ */ a("fieldset", { className: H(["v-picker", `v-picker--${i}`, `v-picker--${x}`, L]), "data-variant-picker": !0, "data-target": y, "data-rk-799908": "", children: [
65
+ /* @__PURE__ */ a("legend", { className: "v-picker__legend", "data-rk-799908": "", children: [
66
+ r,
67
+ ": ",
68
+ /* @__PURE__ */ e("span", { className: "v-picker__value", "data-variant-value": !0, "data-rk-799908": "", children: (S = t[l]) == null ? void 0 : S.label })
69
+ ] }),
70
+ /* @__PURE__ */ e("div", { className: "v-picker__options", "data-rk-799908": "", children: t.map((u, m) => /* @__PURE__ */ a("label", { className: H(["v-picker__opt", { "is-disabled": u.disabled }]), style: ae(u.hex ? `--sw: ${u.hex}` : ""), title: u.label, "data-rk-799908": "", children: [
71
+ /* @__PURE__ */ e("input", { type: "radio", name: `${E}`, defaultValue: u.value ?? u.label, "data-label": u.label, defaultChecked: m === l, disabled: u.disabled, "data-rk-799908": "" }),
72
+ i === "swatch" ? /* @__PURE__ */ e("span", { className: "v-picker__dot", "aria-hidden": "true", "data-rk-799908": "" }) : /* @__PURE__ */ e("span", { className: "v-picker__pill", "data-rk-799908": "", children: u.label }),
73
+ i === "swatch" && /* @__PURE__ */ a("span", { className: "sr-only", "data-rk-799908": "", children: [
74
+ u.label,
75
+ u.disabled ? " (sold out)" : ""
76
+ ] }),
77
+ i === "pill" && u.disabled && /* @__PURE__ */ e("span", { className: "sr-only", "data-rk-799908": "", children: " (sold out)" })
78
+ ] }, m)) })
79
+ ] }) });
80
+ }
81
+ function re(...r) {
82
+ const o = [], i = (t) => {
83
+ if (t) {
84
+ if (typeof t == "string" || typeof t == "number") o.push(String(t));
85
+ else if (Array.isArray(t)) t.forEach(i);
86
+ else if (typeof t == "object")
87
+ for (const [l, y] of Object.entries(t)) y && o.push(l);
88
+ }
89
+ };
90
+ return r.forEach(i), o.join(" ");
91
+ }
92
+ function ne(r) {
93
+ const o = {};
94
+ for (const i of String(r ?? "").split(";")) {
95
+ const t = i.indexOf(":");
96
+ if (t < 0) continue;
97
+ const l = i.slice(0, t).trim();
98
+ l && (o[l.startsWith("--") ? l : l.replace(/-([a-z])/g, (y, x) => x.toUpperCase())] = i.slice(t + 1).trim());
99
+ }
100
+ return o;
101
+ }
102
+ function ke({
103
+ stock: r = 3,
104
+ threshold: o = 5,
105
+ capacity: i = 20,
106
+ viewers: t = 14,
107
+ live: l = !0,
108
+ variant: y = "card",
109
+ size: x = "md",
110
+ className: L = ""
111
+ }) {
112
+ const E = r > 0 && r <= o, C = r <= 0 ? "out" : E ? "low" : "ok", S = Math.max(4, Math.min(100, r / i * 100)), u = C === "out" ? "Sold out — join the waitlist" : E ? `Only ${r} left — order soon` : "In stock and ready to ship", m = R(!1);
113
+ return U(() => {
114
+ m.current || (m.current = !0, document.querySelectorAll("[data-stock-indicator][data-live]:not([data-bound])").forEach((s) => {
115
+ s.dataset.bound = "";
116
+ const d = s.querySelector("[data-viewers-count]");
117
+ if (!d || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
118
+ const k = Number(s.dataset.viewers) || 0;
119
+ let v = k;
120
+ window.setInterval(() => {
121
+ if (document.hidden) return;
122
+ const b = Math.random() < 0.5 ? -1 : 1;
123
+ v = Math.max(Math.max(1, k - 4), Math.min(k + 6, v + b)), d.textContent = String(v), d.classList.remove("is-bump"), d.offsetWidth, d.classList.add("is-bump");
124
+ }, 6500);
125
+ }));
126
+ }, []), /* @__PURE__ */ e(z, { children: /* @__PURE__ */ a("div", { className: re(["stock", `stock--${C}`, `stock--${y}`, `stock--${x}`, L]), "data-stock-indicator": !0, "data-viewers": t, "data-live": l ? "" : void 0, "data-rk-83468c": "", children: [
127
+ /* @__PURE__ */ a("p", { className: "stock__msg", "data-rk-83468c": "", children: [
128
+ /* @__PURE__ */ e("span", { className: "stock__icon", "aria-hidden": "true", "data-rk-83468c": "", children: C === "ok" ? /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinecap: "round", strokeLinejoin: "round", "data-rk-83468c": "", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5", "data-rk-83468c": "" }) }) : /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "data-rk-83468c": "", children: /* @__PURE__ */ e("path", { d: "M13 2 3 14h9l-1 8 10-12h-9z", "data-rk-83468c": "" }) }) }),
129
+ /* @__PURE__ */ e("strong", { "data-rk-83468c": "", children: u })
130
+ ] }),
131
+ C !== "out" && /* @__PURE__ */ e("div", { className: "stock__bar", "aria-hidden": "true", "data-rk-83468c": "", children: /* @__PURE__ */ e("span", { style: ne(`width: ${S}%`), "data-rk-83468c": "" }) }),
132
+ t > 0 && /* @__PURE__ */ a("p", { className: "stock__viewers", "aria-live": "off", "data-rk-83468c": "", children: [
133
+ /* @__PURE__ */ e("span", { className: "stock__eye", "aria-hidden": "true", "data-rk-83468c": "", children: /* @__PURE__ */ a("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "data-rk-83468c": "", children: [
134
+ /* @__PURE__ */ e("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z", "data-rk-83468c": "" }),
135
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3", "data-rk-83468c": "" })
136
+ ] }) }),
137
+ /* @__PURE__ */ a("span", { "data-rk-83468c": "", children: [
138
+ /* @__PURE__ */ e("strong", { "data-viewers-count": !0, "data-rk-83468c": "", children: t }),
139
+ " people are viewing this right now"
140
+ ] })
141
+ ] })
142
+ ] }) });
143
+ }
144
+ function de(...r) {
145
+ const o = [], i = (t) => {
146
+ if (t) {
147
+ if (typeof t == "string" || typeof t == "number") o.push(String(t));
148
+ else if (Array.isArray(t)) t.forEach(i);
149
+ else if (typeof t == "object")
150
+ for (const [l, y] of Object.entries(t)) y && o.push(l);
151
+ }
152
+ };
153
+ return r.forEach(i), o.join(" ");
154
+ }
155
+ function fe({
156
+ title: r = "Order summary",
157
+ cartKey: o = "ack-cart",
158
+ shippingRates: i = [
159
+ { id: "standard", label: "Standard", eta: "3–5 business days", price: 6 },
160
+ { id: "express", label: "Express", eta: "1–2 business days", price: 14 }
161
+ ],
162
+ freeShippingThreshold: t = 75,
163
+ taxRate: l = 0.08,
164
+ promoCodes: y = { REACT10: 10 },
165
+ editHref: x,
166
+ currency: L = "USD",
167
+ locale: E = "en-US",
168
+ sticky: C = !0,
169
+ variant: S = "glass",
170
+ className: u = ""
171
+ }) {
172
+ const m = JSON.stringify({ shippingRates: i, freeShippingThreshold: t, taxRate: l, promoCodes: y, currency: L, locale: E }), s = R(!1);
173
+ return U(() => {
174
+ s.current || (s.current = !0, document.querySelectorAll("[data-order-summary]:not([data-bound])").forEach((d) => {
175
+ var p;
176
+ d.dataset.bound = "";
177
+ const k = JSON.parse(d.dataset.config || "{}"), v = { currency: k.currency, locale: k.locale }, b = J(d.dataset.key), f = d.querySelector("[data-lines]"), h = d.querySelector("[data-empty]"), M = d.querySelector("[data-promo]"), N = d.querySelector("[data-promo-msg]"), $ = d.querySelector("[data-discount-row]"), j = d.querySelector("[data-code]"), q = (c) => d.querySelector(`[data-t="${c}"]`);
178
+ let A = "", D = (p = k.shippingRates[0]) == null ? void 0 : p.id;
179
+ const F = (c) => {
180
+ const n = document.createElement("li");
181
+ n.className = "o-line";
182
+ const _ = document.createElement("span");
183
+ _.className = "o-line__media", _.style.setProperty("--h", String(c.hue ?? 40)), _.innerHTML = c.image ? `<img src="${encodeURI(c.image)}" alt="">` : `<svg viewBox="0 0 64 64" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${K(c.icon)}</svg>`;
184
+ const w = document.createElement("span");
185
+ w.className = "o-line__qty", w.textContent = String(c.qty), w.setAttribute("aria-hidden", "true"), _.append(w);
186
+ const P = document.createElement("span");
187
+ P.className = "o-line__info";
188
+ const B = document.createElement("span");
189
+ B.className = "o-line__name", B.textContent = c.name;
190
+ const O = document.createElement("span");
191
+ O.className = "o-line__meta", O.textContent = [c.variant, `Qty ${c.qty}`].filter(Boolean).join(" · "), P.append(B, O);
192
+ const V = document.createElement("span");
193
+ return V.className = "o-line__price", V.textContent = I(c.price * c.qty, v), n.append(_, P, V), n;
194
+ };
195
+ function g() {
196
+ const c = b.items();
197
+ f.replaceChildren(...c.map(F)), h.hidden = c.length > 0;
198
+ const n = c.reduce((Y, G) => Y + G.price * G.qty, 0), _ = A ? k.promoCodes[A] ?? 0 : 0, w = Math.round(n * _) / 100, P = k.shippingRates.find((Y) => Y.id === D) ?? k.shippingRates[0], B = k.freeShippingThreshold > 0 && n - w >= k.freeShippingThreshold && P === k.shippingRates[0], O = c.length === 0 || !P || B ? 0 : P.price, V = Math.round((n - w) * k.taxRate * 100) / 100, W = Math.max(0, n - w + O + V);
199
+ q("subtotal").textContent = I(n, v), q("discount").textContent = `−${I(w, v)}`, $.hidden = w === 0, j.textContent = A ? `(${A})` : "", q("shipping").textContent = O === 0 && c.length ? "Free" : I(O, v), q("tax").textContent = I(V, v), q("total").textContent = I(W, v), document.dispatchEvent(new CustomEvent("ack:totals", {
200
+ detail: { subtotal: n, discount: w, shipping: O, tax: V, total: W, formatted: I(W, v), freeStandard: B, count: c.length }
201
+ }));
202
+ }
203
+ M.addEventListener("submit", (c) => {
204
+ c.preventDefault();
205
+ const _ = M.elements.namedItem("code").value.trim().toUpperCase();
206
+ if (!_) {
207
+ N.textContent = "Enter a code first.", N.dataset.state = "error";
208
+ return;
209
+ }
210
+ k.promoCodes[_] !== void 0 ? (A = _, N.textContent = `${_} applied — ${k.promoCodes[_]}% off.`, N.dataset.state = "ok") : (N.textContent = `"${_}" is not a valid code.`, N.dataset.state = "error"), g();
211
+ }), document.addEventListener("change", (c) => {
212
+ const n = c.target;
213
+ (n == null ? void 0 : n.name) === "shipping" && n.checked && (D = n.value, g());
214
+ }), document.addEventListener("ack:totals-request", g), g(), b.subscribe(g);
215
+ }));
216
+ }, []), /* @__PURE__ */ e(z, { children: /* @__PURE__ */ a("aside", { className: de(["o-summary", `o-summary--${S}`, { "o-summary--sticky": C }, u]), "aria-labelledby": "o-summary-title", "data-order-summary": !0, "data-key": o, "data-config": m, "data-rk-abd13c": "", children: [
217
+ /* @__PURE__ */ a("div", { className: "o-summary__head", "data-rk-abd13c": "", children: [
218
+ /* @__PURE__ */ e("h2", { className: "o-summary__title", id: "o-summary-title", "data-rk-abd13c": "", children: r }),
219
+ x && /* @__PURE__ */ e("a", { className: "o-summary__edit", href: x, "data-rk-abd13c": "", children: "Edit cart" })
220
+ ] }),
221
+ /* @__PURE__ */ e("ul", { className: "o-summary__lines", "data-lines": !0, "aria-label": "Items in your order", "data-rk-abd13c": "" }),
222
+ /* @__PURE__ */ e("p", { className: "o-summary__empty", "data-empty": !0, hidden: !0, "data-rk-abd13c": "", children: "Your cart is empty." }),
223
+ /* @__PURE__ */ a("form", { className: "o-summary__promo", "data-promo": !0, noValidate: !0, "data-rk-abd13c": "", children: [
224
+ /* @__PURE__ */ e("label", { className: "sr-only", htmlFor: "o-summary-code", "data-rk-abd13c": "", children: "Discount code" }),
225
+ /* @__PURE__ */ e("input", { id: "o-summary-code", name: "code", type: "text", placeholder: "Discount code", autoComplete: "off", autoCapitalize: "characters", spellCheck: "false", "data-rk-abd13c": "" }),
226
+ /* @__PURE__ */ e("button", { type: "submit", "data-rk-abd13c": "", children: "Apply" })
227
+ ] }),
228
+ /* @__PURE__ */ e("p", { className: "o-summary__promo-msg", role: "status", "data-promo-msg": !0, "data-rk-abd13c": "" }),
229
+ /* @__PURE__ */ a("dl", { className: "o-summary__totals", "aria-live": "polite", "data-rk-abd13c": "", children: [
230
+ /* @__PURE__ */ a("div", { "data-rk-abd13c": "", children: [
231
+ /* @__PURE__ */ e("dt", { "data-rk-abd13c": "", children: "Subtotal" }),
232
+ /* @__PURE__ */ e("dd", { "data-t": "subtotal", "data-rk-abd13c": "", children: "—" })
233
+ ] }),
234
+ /* @__PURE__ */ a("div", { "data-discount-row": !0, hidden: !0, "data-rk-abd13c": "", children: [
235
+ /* @__PURE__ */ a("dt", { "data-rk-abd13c": "", children: [
236
+ "Discount ",
237
+ /* @__PURE__ */ e("span", { "data-code": !0, "data-rk-abd13c": "" })
238
+ ] }),
239
+ /* @__PURE__ */ e("dd", { "data-t": "discount", "data-rk-abd13c": "", children: "—" })
240
+ ] }),
241
+ /* @__PURE__ */ a("div", { "data-rk-abd13c": "", children: [
242
+ /* @__PURE__ */ e("dt", { "data-rk-abd13c": "", children: "Shipping" }),
243
+ /* @__PURE__ */ e("dd", { "data-t": "shipping", "data-rk-abd13c": "", children: "—" })
244
+ ] }),
245
+ /* @__PURE__ */ a("div", { "data-rk-abd13c": "", children: [
246
+ /* @__PURE__ */ e("dt", { "data-rk-abd13c": "", children: "Estimated tax" }),
247
+ /* @__PURE__ */ e("dd", { "data-t": "tax", "data-rk-abd13c": "", children: "—" })
248
+ ] }),
249
+ /* @__PURE__ */ a("div", { className: "o-summary__total", "data-rk-abd13c": "", children: [
250
+ /* @__PURE__ */ e("dt", { "data-rk-abd13c": "", children: "Total" }),
251
+ /* @__PURE__ */ e("dd", { "data-t": "total", "data-rk-abd13c": "", children: "—" })
252
+ ] })
253
+ ] })
254
+ ] }) });
255
+ }
256
+ function ce(...r) {
257
+ const o = [], i = (t) => {
258
+ if (t) {
259
+ if (typeof t == "string" || typeof t == "number") o.push(String(t));
260
+ else if (Array.isArray(t)) t.forEach(i);
261
+ else if (typeof t == "object")
262
+ for (const [l, y] of Object.entries(t)) y && o.push(l);
263
+ }
264
+ };
265
+ return r.forEach(i), o.join(" ");
266
+ }
267
+ function ye({
268
+ id: r = "checkout",
269
+ shippingRates: o = [
270
+ { id: "standard", label: "Standard", eta: "3–5 business days", price: 6 },
271
+ { id: "express", label: "Express", eta: "1–2 business days", price: 14 }
272
+ ],
273
+ freeShippingThreshold: i = 75,
274
+ countries: t = [
275
+ { label: "United States", value: "US" },
276
+ { label: "Canada", value: "CA" },
277
+ { label: "United Kingdom", value: "GB" },
278
+ { label: "Spain", value: "ES" },
279
+ { label: "Germany", value: "DE" },
280
+ { label: "France", value: "FR" }
281
+ ],
282
+ cartKey: l = "ack-cart",
283
+ currency: y = "USD",
284
+ locale: x = "en-US",
285
+ continueHref: L = "#",
286
+ demo: E = !0,
287
+ variant: C = "cards",
288
+ className: S = ""
289
+ }) {
290
+ const u = { currency: y, locale: x }, m = R(!1);
291
+ return U(() => {
292
+ m.current || (m.current = !0, document.querySelectorAll("[data-checkout]:not([data-bound])").forEach((s) => {
293
+ var D, F;
294
+ s.dataset.bound = "";
295
+ const d = s.querySelector("[data-checkout-form]"), k = s.querySelector("[data-done]"), v = s.querySelector("[data-pay]"), b = s.querySelector("[data-pay-label]"), f = s.querySelector("[data-error]"), h = s.querySelector("[data-card-fields]"), M = s.querySelector("[data-alt-pay]"), N = s.querySelector("[data-first] ~ [data-rate-price]"), $ = J(s.dataset.key);
296
+ let j = { formatted: "", total: 0 };
297
+ const q = (N == null ? void 0 : N.textContent) || "";
298
+ document.addEventListener("ack:totals", (g) => {
299
+ const p = g.detail;
300
+ j = p, b.textContent = p.count ? `Pay ${p.formatted}` : "Pay now", N && (N.textContent = p.freeStandard || p.subtotal - p.discount >= Number(s.dataset.free || 0) && Number(s.dataset.free) > 0 ? "Free" : q);
301
+ }), document.dispatchEvent(new CustomEvent("ack:totals-request"));
302
+ const A = () => {
303
+ var c;
304
+ const p = (((c = d.elements.namedItem("payment")) == null ? void 0 : c.value) || "card") === "card";
305
+ h.hidden = !p, M.hidden = p, h.querySelectorAll("input").forEach((n) => {
306
+ n.required = p;
307
+ });
308
+ };
309
+ d.addEventListener("change", (g) => {
310
+ g.target.name === "payment" && A();
311
+ }), A(), (D = d.querySelector("[data-cc]")) == null || D.addEventListener("input", (g) => {
312
+ const p = g.target;
313
+ p.value = p.value.replace(/\D/g, "").slice(0, 19).replace(/(\d{4})(?=\d)/g, "$1 ");
314
+ }), (F = d.querySelector("[data-exp]")) == null || F.addEventListener("input", (g) => {
315
+ const p = g.target, c = p.value.replace(/\D/g, "").slice(0, 4);
316
+ p.value = c.length > 2 ? `${c.slice(0, 2)}/${c.slice(2)}` : c;
317
+ }), d.addEventListener("submit", (g) => {
318
+ var c;
319
+ if (g.preventDefault(), f.hidden = !0, d.querySelectorAll("[aria-invalid]").forEach((n) => n.removeAttribute("aria-invalid")), !$.items().length) {
320
+ f.textContent = "Your cart is empty — add a product before checking out.", f.hidden = !1;
321
+ return;
322
+ }
323
+ if (!d.checkValidity()) {
324
+ const n = Array.from(d.querySelectorAll("input, select")).filter((_) => !_.checkValidity());
325
+ n.forEach((_) => _.setAttribute("aria-invalid", "true")), f.textContent = `Please check ${n.length === 1 ? "1 field" : `${n.length} fields`} highlighted in red.`, f.hidden = !1, (c = n[0]) == null || c.focus();
326
+ return;
327
+ }
328
+ v.disabled = !0, v.classList.add("is-loading"), b.textContent = "Processing…";
329
+ const p = () => {
330
+ var w;
331
+ const n = `#${Math.floor(1e5 + Math.random() * 9e5)}`, _ = d.elements.namedItem("email").value;
332
+ s.querySelector("[data-order-id]").textContent = n, s.querySelector("[data-order-email]").textContent = _, s.querySelector("[data-order-total]").textContent = j.formatted, d.hidden = !0, k.hidden = !1, $.clear(), (w = k.querySelector("h2")) == null || w.focus(), document.dispatchEvent(new CustomEvent("ack:order-placed", { detail: { orderId: n, total: j.total } })), window.scrollTo({ top: 0, behavior: "smooth" });
333
+ };
334
+ window.setTimeout(p, s.hasAttribute("data-demo") ? 1100 : 0);
335
+ });
336
+ }));
337
+ }, []), /* @__PURE__ */ e(z, { children: /* @__PURE__ */ a("div", { className: ce(["checkout", `checkout--${C}`, S]), "data-checkout": !0, "data-key": l, "data-demo": E ? "" : void 0, "data-free": i, "data-rk-e0a849": "", children: [
338
+ /* @__PURE__ */ a("form", { className: "checkout__form", id: r, noValidate: !0, "data-checkout-form": !0, "data-rk-e0a849": "", children: [
339
+ /* @__PURE__ */ a("fieldset", { className: "checkout__section", "data-rk-e0a849": "", children: [
340
+ /* @__PURE__ */ a("legend", { "data-rk-e0a849": "", children: [
341
+ /* @__PURE__ */ e("span", { className: "checkout__num", "aria-hidden": "true", "data-rk-e0a849": "", children: "1" }),
342
+ " Contact"
343
+ ] }),
344
+ /* @__PURE__ */ e(T, { label: "Email", id: `${r}-email`, name: "email", type: "email", required: !0, autocomplete: "email" }),
345
+ /* @__PURE__ */ a("label", { className: "checkout__check", "data-rk-e0a849": "", children: [
346
+ /* @__PURE__ */ e("input", { type: "checkbox", name: "newsletter", defaultChecked: !0, "data-rk-e0a849": "" }),
347
+ /* @__PURE__ */ e("span", { className: "checkout__box", "aria-hidden": "true", "data-rk-e0a849": "" }),
348
+ "Email me with news and offers"
349
+ ] })
350
+ ] }),
351
+ /* @__PURE__ */ a("fieldset", { className: "checkout__section", "data-rk-e0a849": "", children: [
352
+ /* @__PURE__ */ a("legend", { "data-rk-e0a849": "", children: [
353
+ /* @__PURE__ */ e("span", { className: "checkout__num", "aria-hidden": "true", "data-rk-e0a849": "", children: "2" }),
354
+ " Delivery"
355
+ ] }),
356
+ /* @__PURE__ */ e(X, { label: "Country / region", id: `${r}-country`, name: "country", options: t, required: !0 }),
357
+ /* @__PURE__ */ a("div", { className: "checkout__row", "data-rk-e0a849": "", children: [
358
+ /* @__PURE__ */ e(T, { label: "First name", id: `${r}-first`, name: "firstName", required: !0, autocomplete: "given-name" }),
359
+ /* @__PURE__ */ e(T, { label: "Last name", id: `${r}-last`, name: "lastName", required: !0, autocomplete: "family-name" })
360
+ ] }),
361
+ /* @__PURE__ */ e(T, { label: "Address", id: `${r}-address`, name: "address", required: !0, autocomplete: "address-line1" }),
362
+ /* @__PURE__ */ e(T, { label: "Apartment, suite (optional)", id: `${r}-address2`, name: "address2", autocomplete: "address-line2" }),
363
+ /* @__PURE__ */ a("div", { className: "checkout__row checkout__row--3", "data-rk-e0a849": "", children: [
364
+ /* @__PURE__ */ e(T, { label: "City", id: `${r}-city`, name: "city", required: !0, autocomplete: "address-level2" }),
365
+ /* @__PURE__ */ e(T, { label: "State", id: `${r}-state`, name: "state", autocomplete: "address-level1" }),
366
+ /* @__PURE__ */ e(T, { label: "ZIP / Postal", id: `${r}-zip`, name: "zip", required: !0, autocomplete: "postal-code" })
367
+ ] }),
368
+ /* @__PURE__ */ e(T, { label: "Phone (for delivery updates)", id: `${r}-phone`, name: "phone", type: "tel", autocomplete: "tel" })
369
+ ] }),
370
+ /* @__PURE__ */ a("fieldset", { className: "checkout__section", "data-rk-e0a849": "", children: [
371
+ /* @__PURE__ */ a("legend", { "data-rk-e0a849": "", children: [
372
+ /* @__PURE__ */ e("span", { className: "checkout__num", "aria-hidden": "true", "data-rk-e0a849": "", children: "3" }),
373
+ " Shipping method"
374
+ ] }),
375
+ /* @__PURE__ */ e("div", { className: "checkout__rates", "data-rk-e0a849": "", children: o.map((s, d) => /* @__PURE__ */ a("label", { className: "checkout__rate", "data-rk-e0a849": "", children: [
376
+ /* @__PURE__ */ e("input", { type: "radio", name: "shipping", defaultValue: s.id, defaultChecked: d === 0, "data-price": s.price, "data-first": d === 0 ? "" : void 0, "data-rk-e0a849": "" }),
377
+ /* @__PURE__ */ e("span", { className: "checkout__rate-dot", "aria-hidden": "true", "data-rk-e0a849": "" }),
378
+ /* @__PURE__ */ a("span", { className: "checkout__rate-text", "data-rk-e0a849": "", children: [
379
+ /* @__PURE__ */ e("strong", { "data-rk-e0a849": "", children: s.label }),
380
+ /* @__PURE__ */ e("span", { "data-rk-e0a849": "", children: s.eta })
381
+ ] }),
382
+ /* @__PURE__ */ e("span", { className: "checkout__rate-price", "data-rate-price": !0, "data-rk-e0a849": "", children: s.price === 0 ? "Free" : I(s.price, u) })
383
+ ] }, d)) })
384
+ ] }),
385
+ /* @__PURE__ */ a("fieldset", { className: "checkout__section", "data-rk-e0a849": "", children: [
386
+ /* @__PURE__ */ a("legend", { "data-rk-e0a849": "", children: [
387
+ /* @__PURE__ */ e("span", { className: "checkout__num", "aria-hidden": "true", "data-rk-e0a849": "", children: "4" }),
388
+ " Payment"
389
+ ] }),
390
+ /* @__PURE__ */ a("p", { className: "checkout__secure", "data-rk-e0a849": "", children: [
391
+ /* @__PURE__ */ a("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", "aria-hidden": "true", "data-rk-e0a849": "", children: [
392
+ /* @__PURE__ */ e("rect", { x: "4", y: "11", width: "16", height: "10", rx: "2", "data-rk-e0a849": "" }),
393
+ /* @__PURE__ */ e("path", { d: "M8 11V7a4 4 0 0 1 8 0v4", "data-rk-e0a849": "" })
394
+ ] }),
395
+ "All transactions are secure and encrypted."
396
+ ] }),
397
+ /* @__PURE__ */ e(ee, { name: "payment", horizontal: !0, options: [
398
+ { label: "Card", value: "card", checked: !0 },
399
+ { label: "PayPal", value: "paypal" },
400
+ { label: "Apple Pay", value: "applepay" }
401
+ ] }),
402
+ /* @__PURE__ */ a("div", { className: "checkout__card", "data-card-fields": !0, "data-rk-e0a849": "", children: [
403
+ /* @__PURE__ */ a("div", { className: "checkout__field", "data-rk-e0a849": "", children: [
404
+ /* @__PURE__ */ e("label", { htmlFor: `${r}-cc`, "data-rk-e0a849": "", children: "Card number" }),
405
+ /* @__PURE__ */ e("input", { id: `${r}-cc`, name: "cc", inputMode: "numeric", autoComplete: "cc-number", placeholder: "1234 1234 1234 1234", required: !0, pattern: "[0-9 ]{15,23}", maxLength: 23, "data-cc": !0, "data-rk-e0a849": "" })
406
+ ] }),
407
+ /* @__PURE__ */ a("div", { className: "checkout__row", "data-rk-e0a849": "", children: [
408
+ /* @__PURE__ */ a("div", { className: "checkout__field", "data-rk-e0a849": "", children: [
409
+ /* @__PURE__ */ e("label", { htmlFor: `${r}-exp`, "data-rk-e0a849": "", children: "Expiry (MM/YY)" }),
410
+ /* @__PURE__ */ e("input", { id: `${r}-exp`, name: "exp", inputMode: "numeric", autoComplete: "cc-exp", placeholder: "MM/YY", required: !0, pattern: "(0[1-9]|1[0-2])\\\\/[0-9]{2}", maxLength: 5, "data-exp": !0, "data-rk-e0a849": "" })
411
+ ] }),
412
+ /* @__PURE__ */ a("div", { className: "checkout__field", "data-rk-e0a849": "", children: [
413
+ /* @__PURE__ */ e("label", { htmlFor: `${r}-cvc`, "data-rk-e0a849": "", children: "Security code" }),
414
+ /* @__PURE__ */ e("input", { id: `${r}-cvc`, name: "cvc", inputMode: "numeric", autoComplete: "cc-csc", placeholder: "CVC", required: !0, pattern: "[0-9]{3,4}", maxLength: 4, "data-rk-e0a849": "" })
415
+ ] })
416
+ ] }),
417
+ /* @__PURE__ */ a("div", { className: "checkout__field", "data-rk-e0a849": "", children: [
418
+ /* @__PURE__ */ e("label", { htmlFor: `${r}-ccname`, "data-rk-e0a849": "", children: "Name on card" }),
419
+ /* @__PURE__ */ e("input", { id: `${r}-ccname`, name: "ccName", autoComplete: "cc-name", required: !0, "data-rk-e0a849": "" })
420
+ ] })
421
+ ] }),
422
+ /* @__PURE__ */ e("p", { className: "checkout__alt", "data-alt-pay": !0, hidden: !0, "data-rk-e0a849": "", children: "You will be redirected to complete the payment securely." })
423
+ ] }),
424
+ /* @__PURE__ */ e("p", { className: "checkout__error", role: "alert", "data-error": !0, hidden: !0, "data-rk-e0a849": "" }),
425
+ /* @__PURE__ */ a("button", { className: "checkout__pay", type: "submit", "data-pay": !0, "data-rk-e0a849": "", children: [
426
+ /* @__PURE__ */ e("span", { className: "checkout__spinner", "aria-hidden": "true", "data-rk-e0a849": "" }),
427
+ /* @__PURE__ */ e("span", { "data-pay-label": !0, "data-rk-e0a849": "", children: "Pay now" })
428
+ ] }),
429
+ E && /* @__PURE__ */ a("p", { className: "checkout__demo", "data-rk-e0a849": "", children: [
430
+ "Demo checkout — no data leaves your browser. Try code ",
431
+ /* @__PURE__ */ e("strong", { "data-rk-e0a849": "", children: "REACT10" }),
432
+ "."
433
+ ] })
434
+ ] }),
435
+ /* @__PURE__ */ a("section", { className: "checkout__done", "data-done": !0, hidden: !0, "aria-labelledby": `${r}-done-title`, "data-rk-e0a849": "", children: [
436
+ /* @__PURE__ */ e(te, { size: 72, color: "var(--c-success, #34d399)" }),
437
+ /* @__PURE__ */ e("h2", { id: `${r}-done-title`, tabIndex: -1, "data-rk-e0a849": "", children: "Thank you for your order!" }),
438
+ /* @__PURE__ */ a("p", { "data-rk-e0a849": "", children: [
439
+ "Order ",
440
+ /* @__PURE__ */ e("strong", { "data-order-id": !0, "data-rk-e0a849": "", children: "#—" }),
441
+ " is confirmed. A receipt is on its way to ",
442
+ /* @__PURE__ */ e("strong", { "data-order-email": !0, "data-rk-e0a849": "", children: "your inbox" }),
443
+ "."
444
+ ] }),
445
+ /* @__PURE__ */ a("p", { className: "checkout__done-total", "data-rk-e0a849": "", children: [
446
+ "Total paid: ",
447
+ /* @__PURE__ */ e("strong", { "data-order-total": !0, "data-rk-e0a849": "", children: "—" })
448
+ ] }),
449
+ /* @__PURE__ */ e("a", { className: "checkout__pay checkout__pay--link", href: L, "data-rk-e0a849": "", children: "Continue shopping" })
450
+ ] })
451
+ ] }) });
452
+ }
453
+ function se(...r) {
454
+ const o = [], i = (t) => {
455
+ if (t) {
456
+ if (typeof t == "string" || typeof t == "number") o.push(String(t));
457
+ else if (Array.isArray(t)) t.forEach(i);
458
+ else if (typeof t == "object")
459
+ for (const [l, y] of Object.entries(t)) y && o.push(l);
460
+ }
461
+ };
462
+ return r.forEach(i), o.join(" ");
463
+ }
464
+ function be({
465
+ cartKey: r = "ack-cart",
466
+ position: o = "bottom-right",
467
+ duration: i = 4500,
468
+ max: t = 3,
469
+ addedTitle: l = "Added to cart",
470
+ actionLabel: y = "View cart",
471
+ always: x = !1,
472
+ demo: L = !1,
473
+ variant: E = "glass",
474
+ className: C = ""
475
+ }) {
476
+ const S = R(!1);
477
+ return U(() => {
478
+ if (S.current) return;
479
+ S.current = !0;
480
+ const u = {
481
+ success: '<path d="M20 6 9 17l-5-5"/>',
482
+ info: '<circle cx="12" cy="12" r="9"/><path d="M12 16v-4M12 8h.01"/>',
483
+ warning: '<path d="M12 9v4M12 17h.01"/><path d="M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"/>',
484
+ danger: '<circle cx="12" cy="12" r="9"/><path d="m15 9-6 6M9 9l6 6"/>'
485
+ };
486
+ document.querySelectorAll("[data-cart-toasts]:not([data-bound])").forEach((m) => {
487
+ if (m.dataset.bound = "", m.classList.contains("cart-toasts--demo")) return;
488
+ const s = Number(m.dataset.duration) || 4500, d = Number(m.dataset.max) || 3, k = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
489
+ function v(b) {
490
+ var c;
491
+ const f = u[b.tone || ""] ? b.tone : "info", h = document.createElement("div");
492
+ h.className = `cart-toast cart-toast--${f}`, h.style.setProperty("--toast-ms", `${s}ms`), h.innerHTML = `<span class="cart-toast__icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">${u[f]}</svg></span>`;
493
+ const M = document.createElement("div");
494
+ M.className = "cart-toast__body";
495
+ const N = document.createElement("p");
496
+ if (N.className = "cart-toast__title", N.textContent = b.title, M.append(N), b.text) {
497
+ const n = document.createElement("p");
498
+ n.className = "cart-toast__text", n.textContent = b.text, M.append(n);
499
+ }
500
+ if (h.append(M), b.action) {
501
+ const n = document.createElement("button");
502
+ n.type = "button", n.className = "cart-toast__action", n.textContent = b.action.label, n.addEventListener("click", () => {
503
+ b.action.run(), p();
504
+ }), h.append(n);
505
+ }
506
+ const $ = document.createElement("button");
507
+ $.type = "button", $.className = "cart-toast__close", $.setAttribute("aria-label", "Dismiss notification"), $.textContent = "×", $.addEventListener("click", () => p());
508
+ const j = document.createElement("span");
509
+ j.className = "cart-toast__timer", j.setAttribute("aria-hidden", "true"), h.append($, j);
510
+ let q = s, A = Date.now(), D = window.setTimeout(() => p(), q);
511
+ const F = () => {
512
+ window.clearTimeout(D), q -= Date.now() - A, h.classList.add("is-paused");
513
+ }, g = () => {
514
+ A = Date.now(), D = window.setTimeout(() => p(), Math.max(800, q)), h.classList.remove("is-paused");
515
+ };
516
+ h.addEventListener("mouseenter", F), h.addEventListener("mouseleave", g), h.addEventListener("focusin", F), h.addEventListener("focusout", g);
517
+ function p() {
518
+ window.clearTimeout(D), h.isConnected && (h.classList.add("is-leaving"), window.setTimeout(() => h.remove(), k ? 0 : 220));
519
+ }
520
+ for (m.append(h); m.children.length > d; ) (c = m.firstElementChild) == null || c.remove();
521
+ }
522
+ document.addEventListener(Q, (b) => {
523
+ const f = b.detail || {};
524
+ if (f.key && f.key !== m.dataset.key || f.openCart && !m.hasAttribute("data-always")) return;
525
+ const h = f.item || {};
526
+ v({
527
+ title: m.dataset.title || "Added to cart",
528
+ text: [h.name, h.variant].filter(Boolean).join(" · ") + (h.qty > 1 ? ` × ${h.qty}` : ""),
529
+ tone: "success",
530
+ action: {
531
+ label: m.dataset.action || "View cart",
532
+ run: () => document.dispatchEvent(new CustomEvent("ack:cart-open", { detail: { key: m.dataset.key } }))
533
+ }
534
+ });
535
+ }), document.addEventListener(Z, (b) => {
536
+ const f = b.detail || {};
537
+ f.title && v({ title: f.title, text: f.text, tone: f.tone });
538
+ });
539
+ });
540
+ }, []), /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e("div", { className: se(["cart-toasts", `cart-toasts--${o}`, `cart-toasts--${E}`, { "cart-toasts--demo": L }, C]), role: "status", "aria-live": "polite", "data-cart-toasts": !0, "data-key": r, "data-duration": i, "data-max": t, "data-title": l, "data-action": y, "data-always": x ? "" : void 0, "data-rk-da674f": "", children: L && /* @__PURE__ */ a(z, { children: [
541
+ /* @__PURE__ */ a("div", { className: "cart-toast cart-toast--success", "data-rk-da674f": "", children: [
542
+ /* @__PURE__ */ e("span", { className: "cart-toast__icon", "aria-hidden": "true", "data-rk-da674f": "", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "data-rk-da674f": "", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5", "data-rk-da674f": "" }) }) }),
543
+ /* @__PURE__ */ a("div", { className: "cart-toast__body", "data-rk-da674f": "", children: [
544
+ /* @__PURE__ */ e("p", { className: "cart-toast__title", "data-rk-da674f": "", children: l }),
545
+ /* @__PURE__ */ e("p", { className: "cart-toast__text", "data-rk-da674f": "", children: "Aurora Wireless Headphones · Graphite" })
546
+ ] }),
547
+ /* @__PURE__ */ e("button", { className: "cart-toast__action", type: "button", "data-rk-da674f": "", children: y }),
548
+ /* @__PURE__ */ e("button", { className: "cart-toast__close", type: "button", "aria-label": "Dismiss", "data-rk-da674f": "", children: "×" }),
549
+ /* @__PURE__ */ e("span", { className: "cart-toast__timer", "aria-hidden": "true", "data-rk-da674f": "" })
550
+ ] }),
551
+ /* @__PURE__ */ a("div", { className: "cart-toast cart-toast--warning", "data-rk-da674f": "", children: [
552
+ /* @__PURE__ */ e("span", { className: "cart-toast__icon", "aria-hidden": "true", "data-rk-da674f": "", children: /* @__PURE__ */ a("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "data-rk-da674f": "", children: [
553
+ /* @__PURE__ */ e("path", { d: "M12 9v4M12 17h.01", "data-rk-da674f": "" }),
554
+ /* @__PURE__ */ e("path", { d: "M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z", "data-rk-da674f": "" })
555
+ ] }) }),
556
+ /* @__PURE__ */ a("div", { className: "cart-toast__body", "data-rk-da674f": "", children: [
557
+ /* @__PURE__ */ e("p", { className: "cart-toast__title", "data-rk-da674f": "", children: "Only 2 left in stock" }),
558
+ /* @__PURE__ */ e("p", { className: "cart-toast__text", "data-rk-da674f": "", children: "Drift Everyday Sneakers · size 42" })
559
+ ] }),
560
+ /* @__PURE__ */ e("button", { className: "cart-toast__close", type: "button", "aria-label": "Dismiss", "data-rk-da674f": "", children: "×" })
561
+ ] })
562
+ ] }) }) });
563
+ }
564
+ export {
565
+ be as C,
566
+ fe as O,
567
+ ke as S,
568
+ pe as V,
569
+ ye as a
570
+ };