efficient-web-builder 0.9.0 → 1.0.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 (1049) hide show
  1. package/CHANGELOG.md +20 -338
  2. package/README.md +107 -261
  3. package/dist/components/AddBlockRow.d.ts +7 -0
  4. package/dist/components/AddBlockRow.js +1 -0
  5. package/dist/components/AddChildRow.d.ts +6 -0
  6. package/dist/components/AddChildRow.js +1 -0
  7. package/dist/components/AddSidePanel.d.ts +39 -0
  8. package/dist/components/AddSidePanel.js +1 -0
  9. package/dist/components/AnimatedStat.d.ts +6 -0
  10. package/dist/components/AnimatedStat.js +1 -0
  11. package/dist/components/ApplyCornersToSiblings.d.ts +9 -0
  12. package/dist/components/ApplyCornersToSiblings.js +1 -0
  13. package/dist/components/Banner.d.ts +12 -0
  14. package/dist/components/Banner.js +1 -0
  15. package/dist/components/BlockFrame.d.ts +15 -0
  16. package/dist/components/BlockFrame.js +1 -0
  17. package/dist/components/BlockGapField.d.ts +5 -0
  18. package/dist/components/BlockGapField.js +1 -0
  19. package/dist/components/BlogPostSource.d.ts +14 -0
  20. package/dist/components/BlogPostSource.js +1 -0
  21. package/dist/components/BoxSurfaceContext.d.ts +7 -0
  22. package/dist/components/BoxSurfaceContext.js +1 -0
  23. package/dist/components/BoxTabs.d.ts +6 -0
  24. package/dist/components/BoxTabs.js +1 -0
  25. package/dist/components/Breadcrumb.d.ts +10 -0
  26. package/dist/components/Breadcrumb.js +1 -0
  27. package/dist/components/Btn.d.ts +22 -0
  28. package/dist/components/Btn.js +1 -0
  29. package/dist/components/ButtonBlock.d.ts +13 -0
  30. package/dist/components/ButtonBlock.js +1 -0
  31. package/dist/components/CardShadowField.d.ts +6 -0
  32. package/dist/components/CardShadowField.js +1 -0
  33. package/dist/components/Cards.d.ts +15 -0
  34. package/dist/components/Cards.js +1 -0
  35. package/dist/components/CategoryBar.d.ts +16 -0
  36. package/dist/components/CategoryBar.js +1 -0
  37. package/dist/components/ChartSection.d.ts +16 -0
  38. package/dist/components/ChartSection.js +1 -0
  39. package/dist/components/ChatSettingsPanel.d.ts +1 -0
  40. package/dist/components/ChatSettingsPanel.js +1 -0
  41. package/dist/components/ClearColoursDialog.d.ts +5 -0
  42. package/dist/components/ClearColoursDialog.js +1 -0
  43. package/dist/components/ContactLocations.d.ts +17 -0
  44. package/dist/components/ContactLocations.js +73 -0
  45. package/dist/components/CornersField.d.ts +7 -0
  46. package/dist/components/CornersField.js +1 -0
  47. package/dist/components/CountUpText.d.ts +3 -0
  48. package/dist/components/CountUpText.js +1 -0
  49. package/dist/components/Divider.d.ts +9 -0
  50. package/dist/components/Divider.js +1 -0
  51. package/dist/components/DocBody.d.ts +13 -0
  52. package/dist/components/DocBody.js +7 -0
  53. package/dist/components/DocMasthead.d.ts +13 -0
  54. package/dist/components/DocMasthead.js +1 -0
  55. package/dist/components/DocMetaCards.d.ts +10 -0
  56. package/dist/components/DocMetaCards.js +1 -0
  57. package/dist/components/DocTabs.d.ts +12 -0
  58. package/dist/components/DocTabs.js +1 -0
  59. package/dist/components/DuplicateToPageMenu.d.ts +12 -0
  60. package/dist/components/DuplicateToPageMenu.js +1 -0
  61. package/dist/components/EditorialSectionHead.d.ts +11 -0
  62. package/dist/components/EditorialSectionHead.js +1 -0
  63. package/dist/components/Eyebrow.d.ts +9 -0
  64. package/dist/components/Eyebrow.js +1 -0
  65. package/dist/components/FAQ.d.ts +20 -0
  66. package/dist/components/FAQ.js +1 -0
  67. package/dist/components/FeaturedCover.d.ts +13 -0
  68. package/dist/components/FeaturedCover.js +1 -0
  69. package/dist/components/FieldGlyph.d.ts +12 -0
  70. package/dist/components/FieldGlyph.js +1 -0
  71. package/dist/components/Flex.d.ts +32 -0
  72. package/dist/components/Flex.js +1 -0
  73. package/dist/components/Footprint.d.ts +16 -0
  74. package/dist/components/Footprint.js +27 -0
  75. package/dist/components/Grid.d.ts +11 -0
  76. package/dist/components/Grid.js +1 -0
  77. package/dist/components/Heading.d.ts +11 -0
  78. package/dist/components/Heading.js +1 -0
  79. package/dist/components/HeadingAudit.d.ts +1 -0
  80. package/dist/components/HeadingAudit.js +1 -0
  81. package/dist/components/HeroArrows.d.ts +8 -0
  82. package/dist/components/HeroArrows.js +1 -0
  83. package/dist/components/HeroGroup.d.ts +20 -0
  84. package/dist/components/HeroGroup.js +1 -0
  85. package/dist/components/HeroHeldFrame.d.ts +8 -0
  86. package/dist/components/HeroHeldFrame.js +1 -0
  87. package/dist/components/HeroImageField.d.ts +6 -0
  88. package/dist/components/HeroImageField.js +1 -0
  89. package/dist/components/HeroPoster.d.ts +10 -0
  90. package/dist/components/HeroPoster.js +1 -0
  91. package/dist/components/HeroSection.d.ts +39 -0
  92. package/dist/components/HeroSection.js +11 -0
  93. package/dist/components/HeroSingle.d.ts +17 -0
  94. package/dist/components/HeroSingle.js +1 -0
  95. package/dist/components/HeroSlide.d.ts +30 -0
  96. package/dist/components/HeroSlide.js +1 -0
  97. package/dist/components/HoverEffectField.d.ts +6 -0
  98. package/dist/components/HoverEffectField.js +1 -0
  99. package/dist/components/ImageBlock.d.ts +18 -0
  100. package/dist/components/ImageBlock.js +1 -0
  101. package/dist/components/ImageFocusRow.d.ts +7 -0
  102. package/dist/components/ImageFocusRow.js +1 -0
  103. package/dist/components/IntegrationsSection.d.ts +14 -0
  104. package/dist/components/IntegrationsSection.js +1 -0
  105. package/dist/components/IntroBleed.d.ts +32 -0
  106. package/dist/components/IntroBleed.js +1 -0
  107. package/dist/components/KeyFeatures.d.ts +14 -0
  108. package/dist/components/KeyFeatures.js +1 -0
  109. package/dist/components/LocationGroupHeader.d.ts +5 -0
  110. package/dist/components/LocationGroupHeader.js +1 -0
  111. package/dist/components/LocationsGroupedField.d.ts +5 -0
  112. package/dist/components/LocationsGroupedField.js +1 -0
  113. package/dist/components/LocationsTreeContext.d.ts +2 -0
  114. package/dist/components/LocationsTreeContext.js +1 -0
  115. package/dist/components/Logo.d.ts +27 -0
  116. package/dist/components/Logo.js +1 -0
  117. package/dist/components/LogoBlock.d.ts +8 -0
  118. package/dist/components/LogoBlock.js +1 -0
  119. package/dist/components/Logos.d.ts +15 -0
  120. package/dist/components/Logos.js +1 -0
  121. package/dist/components/LongRead.d.ts +20 -0
  122. package/dist/components/LongRead.js +1 -0
  123. package/dist/components/Manifesto.d.ts +14 -0
  124. package/dist/components/Manifesto.js +1 -0
  125. package/dist/components/Masthead.d.ts +16 -0
  126. package/dist/components/Masthead.js +1 -0
  127. package/dist/components/MediaSidePanel.d.ts +6 -0
  128. package/dist/components/MediaSidePanel.js +1 -0
  129. package/dist/components/MediaUploadField.d.ts +9 -0
  130. package/dist/components/MediaUploadField.js +1 -0
  131. package/dist/components/MockupSection.d.ts +59 -0
  132. package/dist/components/MockupSection.js +1 -0
  133. package/dist/components/MultiSelectField.d.ts +16 -0
  134. package/dist/components/MultiSelectField.js +1 -0
  135. package/dist/components/NodeContextMenu.d.ts +96 -0
  136. package/dist/components/NodeContextMenu.js +1 -0
  137. package/dist/components/OrderSummary.d.ts +17 -0
  138. package/dist/components/OrderSummary.js +1 -0
  139. package/dist/components/PageEditGuardNotices.d.ts +1 -0
  140. package/dist/components/PageEditGuardNotices.js +1 -0
  141. package/dist/components/PagesPanel.d.ts +8 -0
  142. package/dist/components/PagesPanel.js +1 -0
  143. package/dist/components/PanelToggleIcon.d.ts +3 -0
  144. package/dist/components/PanelToggleIcon.js +1 -0
  145. package/dist/components/ParagraphsA.d.ts +15 -0
  146. package/dist/components/ParagraphsA.js +1 -0
  147. package/dist/components/PartGlyphs.d.ts +7 -0
  148. package/dist/components/PartGlyphs.js +1 -0
  149. package/dist/components/PartInkControl.d.ts +7 -0
  150. package/dist/components/PartInkControl.js +1 -0
  151. package/dist/components/PartResetDot.d.ts +5 -0
  152. package/dist/components/PartResetDot.js +1 -0
  153. package/dist/components/PartSettingsPanel.d.ts +63 -0
  154. package/dist/components/PartSettingsPanel.js +1 -0
  155. package/dist/components/PartStyledText.d.ts +5 -0
  156. package/dist/components/PartStyledText.js +1 -0
  157. package/dist/components/PartTextBox.d.ts +20 -0
  158. package/dist/components/PartTextBox.js +1 -0
  159. package/dist/components/PaymentBadges.d.ts +14 -0
  160. package/dist/components/PaymentBadges.js +1 -0
  161. package/dist/components/PhoneMenuTools.d.ts +12 -0
  162. package/dist/components/PhoneMenuTools.js +1 -0
  163. package/dist/components/PhotographyField.d.ts +6 -0
  164. package/dist/components/PhotographyField.js +1 -0
  165. package/dist/components/Placeholder.d.ts +18 -0
  166. package/dist/components/Placeholder.js +1 -0
  167. package/dist/components/PostCard.d.ts +37 -0
  168. package/dist/components/PostCard.js +1 -0
  169. package/dist/components/PreviewChatContext.d.ts +23 -0
  170. package/dist/components/PreviewChatContext.js +1 -0
  171. package/dist/components/PreviewDeviceContext.d.ts +4 -0
  172. package/dist/components/PreviewDeviceContext.js +1 -0
  173. package/dist/components/PreviewFocusContext.d.ts +15 -0
  174. package/dist/components/PreviewFocusContext.js +1 -0
  175. package/dist/components/PreviewFooterContext.d.ts +17 -0
  176. package/dist/components/PreviewFooterContext.js +1 -0
  177. package/dist/components/PreviewHeaderContext.d.ts +97 -0
  178. package/dist/components/PreviewHeaderContext.js +1 -0
  179. package/dist/components/PreviewLocationPartContext.d.ts +10 -0
  180. package/dist/components/PreviewLocationPartContext.js +1 -0
  181. package/dist/components/PreviewPartAnchors.d.ts +16 -0
  182. package/dist/components/PreviewPartAnchors.js +1 -0
  183. package/dist/components/PreviewPartStyleContext.d.ts +21 -0
  184. package/dist/components/PreviewPartStyleContext.js +1 -0
  185. package/dist/components/PreviewPartsContext.d.ts +3 -0
  186. package/dist/components/PreviewPartsContext.js +1 -0
  187. package/dist/components/PreviewSocialContext.d.ts +30 -0
  188. package/dist/components/PreviewSocialContext.js +1 -0
  189. package/dist/components/PreviewSurfaceContext.d.ts +10 -0
  190. package/dist/components/PreviewSurfaceContext.js +1 -0
  191. package/dist/components/PreviewThemeFrame.d.ts +6 -0
  192. package/dist/components/PreviewThemeFrame.js +11 -0
  193. package/dist/components/PreviewTickerContext.d.ts +4 -0
  194. package/dist/components/PreviewTickerContext.js +1 -0
  195. package/dist/components/ProcessSteps.d.ts +32 -0
  196. package/dist/components/ProcessSteps.js +1 -0
  197. package/dist/components/Prose.d.ts +9 -0
  198. package/dist/components/Prose.js +1 -0
  199. package/dist/components/PublishedFooterContext.d.ts +11 -0
  200. package/dist/components/PublishedFooterContext.js +1 -0
  201. package/dist/components/PublishedPartStylesContext.d.ts +15 -0
  202. package/dist/components/PublishedPartStylesContext.js +1 -0
  203. package/dist/components/RMark.d.ts +6 -0
  204. package/dist/components/RMark.js +1 -0
  205. package/dist/components/Reel.d.ts +15 -0
  206. package/dist/components/Reel.js +1 -0
  207. package/dist/components/RuleLine.d.ts +1 -0
  208. package/dist/components/RuleLine.js +1 -0
  209. package/dist/components/SearchSelectField.d.ts +20 -0
  210. package/dist/components/SearchSelectField.js +1 -0
  211. package/dist/components/SectionAnimation.d.ts +7 -0
  212. package/dist/components/SectionAnimation.js +1 -0
  213. package/dist/components/SectionEditor.d.ts +66 -0
  214. package/dist/components/SectionEditor.js +1 -0
  215. package/dist/components/SectionEditorShell.d.ts +1 -0
  216. package/dist/components/SectionEditorShell.js +1 -0
  217. package/dist/components/SectionEyebrow.d.ts +10 -0
  218. package/dist/components/SectionEyebrow.js +1 -0
  219. package/dist/components/SectionHeader.d.ts +29 -0
  220. package/dist/components/SectionHeader.js +1 -0
  221. package/dist/components/SectionIcon.d.ts +5 -0
  222. package/dist/components/SectionIcon.js +1 -0
  223. package/dist/components/SectionTextEntries.d.ts +5 -0
  224. package/dist/components/SectionTextEntries.js +1 -0
  225. package/dist/components/SectionTextPartBridge.d.ts +6 -0
  226. package/dist/components/SectionTextPartBridge.js +1 -0
  227. package/dist/components/SectionThemePicker.d.ts +23 -0
  228. package/dist/components/SectionThemePicker.js +1 -0
  229. package/dist/components/SectionThumbnail.d.ts +3 -0
  230. package/dist/components/SectionThumbnail.js +1 -0
  231. package/dist/components/Series.d.ts +19 -0
  232. package/dist/components/Series.js +1 -0
  233. package/dist/components/ShadowColourField.d.ts +5 -0
  234. package/dist/components/ShadowColourField.js +1 -0
  235. package/dist/components/SidePanelHead.d.ts +23 -0
  236. package/dist/components/SidePanelHead.js +1 -0
  237. package/dist/components/SideSpaceField.d.ts +8 -0
  238. package/dist/components/SideSpaceField.js +1 -0
  239. package/dist/components/SiteEditorProvider.d.ts +10 -0
  240. package/dist/components/SiteEditorProvider.js +1 -0
  241. package/dist/components/SiteFields.d.ts +6 -0
  242. package/dist/components/SiteFields.js +1 -0
  243. package/dist/components/SiteGutterFrame.d.ts +9 -0
  244. package/dist/components/SiteGutterFrame.js +1 -0
  245. package/dist/components/SiteLogoContext.d.ts +25 -0
  246. package/dist/components/SiteLogoContext.js +1 -0
  247. package/dist/components/SitePhotographyContext.d.ts +8 -0
  248. package/dist/components/SitePhotographyContext.js +1 -0
  249. package/dist/components/SiteStyleUnset.d.ts +1 -0
  250. package/dist/components/SiteStyleUnset.js +1 -0
  251. package/dist/components/SiteWidthField.d.ts +8 -0
  252. package/dist/components/SiteWidthField.js +1 -0
  253. package/dist/components/SlotChildActionsContext.d.ts +13 -0
  254. package/dist/components/SlotChildActionsContext.js +1 -0
  255. package/dist/components/SlotChildRows.d.ts +16 -0
  256. package/dist/components/SlotChildRows.js +1 -0
  257. package/dist/components/SocialLinksPanel.d.ts +3 -0
  258. package/dist/components/SocialLinksPanel.js +1 -0
  259. package/dist/components/SourceStatus.d.ts +14 -0
  260. package/dist/components/SourceStatus.js +1 -0
  261. package/dist/components/Spacer.d.ts +6 -0
  262. package/dist/components/Spacer.js +1 -0
  263. package/dist/components/SpecStrip.d.ts +10 -0
  264. package/dist/components/SpecStrip.js +1 -0
  265. package/dist/components/Split.d.ts +33 -0
  266. package/dist/components/Split.js +1 -0
  267. package/dist/components/StandaloneSectionEditor.d.ts +18 -0
  268. package/dist/components/StandaloneSectionEditor.js +1 -0
  269. package/dist/components/Stats.d.ts +14 -0
  270. package/dist/components/Stats.js +1 -0
  271. package/dist/components/StatsParagraph.d.ts +21 -0
  272. package/dist/components/StatsParagraph.js +1 -0
  273. package/dist/components/StorefrontDocumentContext.d.ts +67 -0
  274. package/dist/components/StorefrontDocumentContext.js +1 -0
  275. package/dist/components/StorefrontEditor.d.ts +18 -0
  276. package/dist/components/StorefrontEditor.js +1 -0
  277. package/dist/components/StorefrontEditorChrome.d.ts +1 -0
  278. package/dist/components/StorefrontEditorChrome.js +1 -0
  279. package/dist/components/StorefrontLinkField.d.ts +10 -0
  280. package/dist/components/StorefrontLinkField.js +1 -0
  281. package/dist/components/StylesPanel.d.ts +11 -0
  282. package/dist/components/StylesPanel.js +1 -0
  283. package/dist/components/SwitchToBoxFooter.d.ts +1 -0
  284. package/dist/components/SwitchToBoxFooter.js +1 -0
  285. package/dist/components/TemplateGlyph.d.ts +6 -0
  286. package/dist/components/TemplateGlyph.js +1 -0
  287. package/dist/components/Testimonials.d.ts +16 -0
  288. package/dist/components/Testimonials.js +1 -0
  289. package/dist/components/Text.d.ts +11 -0
  290. package/dist/components/Text.js +1 -0
  291. package/dist/components/TextStyleRow.d.ts +13 -0
  292. package/dist/components/TextStyleRow.js +1 -0
  293. package/dist/components/TextStylesField.d.ts +17 -0
  294. package/dist/components/TextStylesField.js +1 -0
  295. package/dist/components/ThemeCard.d.ts +40 -0
  296. package/dist/components/ThemeCard.js +1 -0
  297. package/dist/components/ThemeColourField.d.ts +5 -0
  298. package/dist/components/ThemeColourField.js +1 -0
  299. package/dist/components/ThemeField.d.ts +8 -0
  300. package/dist/components/ThemeField.js +1 -0
  301. package/dist/components/Ticker.d.ts +18 -0
  302. package/dist/components/Ticker.js +1 -0
  303. package/dist/components/TickerSection.d.ts +18 -0
  304. package/dist/components/TickerSection.js +1 -0
  305. package/dist/components/TickerSettingsPanel.d.ts +3 -0
  306. package/dist/components/TickerSettingsPanel.js +1 -0
  307. package/dist/components/Timeline.d.ts +24 -0
  308. package/dist/components/Timeline.js +1 -0
  309. package/dist/components/TimelineTrack.d.ts +22 -0
  310. package/dist/components/TimelineTrack.js +1 -0
  311. package/dist/components/TitleWithButtons.d.ts +14 -0
  312. package/dist/components/TitleWithButtons.js +1 -0
  313. package/dist/components/UiIcon.d.ts +10 -0
  314. package/dist/components/UiIcon.js +1 -0
  315. package/dist/components/WebsiteSettingsPanel.d.ts +46 -0
  316. package/dist/components/WebsiteSettingsPanel.js +1 -0
  317. package/dist/components/WidthFollowField.d.ts +10 -0
  318. package/dist/components/WidthFollowField.js +1 -0
  319. package/dist/components/cartGlyph.d.ts +1 -0
  320. package/dist/components/cartGlyph.js +1 -0
  321. package/dist/components/floating-editor/tokens.d.ts +27 -0
  322. package/dist/components/floating-editor/tokens.js +1 -0
  323. package/dist/components/goldPhrases.d.ts +7 -0
  324. package/dist/components/goldPhrases.js +2 -0
  325. package/dist/components/integrationIcons.d.ts +2 -0
  326. package/dist/components/integrationIcons.js +1 -0
  327. package/dist/components/panel-widths.d.ts +12 -0
  328. package/dist/components/panel-widths.js +1 -0
  329. package/dist/components/preview-devices.d.ts +3 -0
  330. package/dist/components/preview-devices.js +1 -0
  331. package/dist/components/socialIcons.d.ts +8 -0
  332. package/dist/components/socialIcons.js +1 -0
  333. package/dist/components/storefront-editor.css +5731 -0
  334. package/dist/components/useCountUp.d.ts +10 -0
  335. package/dist/components/useCountUp.js +1 -0
  336. package/dist/components/usePartBridge.d.ts +9 -0
  337. package/dist/components/usePartBridge.js +1 -0
  338. package/dist/components/usePreviewHref.d.ts +5 -0
  339. package/dist/components/usePreviewHref.js +1 -0
  340. package/dist/components/useReducedMotion.d.ts +4 -0
  341. package/dist/components/useReducedMotion.js +1 -0
  342. package/dist/components/useSnapshotSource.d.ts +17 -0
  343. package/dist/components/useSnapshotSource.js +1 -0
  344. package/dist/components/useSocialSettings.d.ts +14 -0
  345. package/dist/components/useSocialSettings.js +1 -0
  346. package/dist/components/useStorefrontBlogPosts.d.ts +2 -0
  347. package/dist/components/useStorefrontBlogPosts.js +1 -0
  348. package/dist/lib/content/authored-props.d.ts +4 -0
  349. package/dist/lib/content/authored-props.js +1 -0
  350. package/dist/lib/content/box-background.d.ts +31 -0
  351. package/dist/lib/content/box-background.js +1 -0
  352. package/dist/lib/content/box-layout.d.ts +78 -0
  353. package/dist/lib/content/box-layout.js +1 -0
  354. package/dist/lib/content/button-arrow.d.ts +2 -0
  355. package/dist/lib/content/button-arrow.js +1 -0
  356. package/dist/lib/content/card-corners.d.ts +12 -0
  357. package/dist/lib/content/card-corners.js +1 -0
  358. package/dist/lib/content/card-image-background.d.ts +11 -0
  359. package/dist/lib/content/card-image-background.js +1 -0
  360. package/dist/lib/content/card-image-shape.d.ts +5 -0
  361. package/dist/lib/content/card-image-shape.js +1 -0
  362. package/dist/lib/content/cart-drawer.d.ts +20 -0
  363. package/dist/lib/content/cart-drawer.js +1 -0
  364. package/dist/lib/content/contact.d.ts +79 -0
  365. package/dist/lib/content/contact.js +3 -0
  366. package/dist/lib/content/container-direction.d.ts +14 -0
  367. package/dist/lib/content/container-direction.js +1 -0
  368. package/dist/lib/content/container-gap.d.ts +31 -0
  369. package/dist/lib/content/container-gap.js +1 -0
  370. package/dist/lib/content/footer.d.ts +30 -0
  371. package/dist/lib/content/footer.js +1 -0
  372. package/dist/lib/content/footprint.d.ts +22 -0
  373. package/dist/lib/content/footprint.js +1 -0
  374. package/dist/lib/content/gallery-card-layout.d.ts +7 -0
  375. package/dist/lib/content/gallery-card-layout.js +1 -0
  376. package/dist/lib/content/gallery-layout.d.ts +154 -0
  377. package/dist/lib/content/gallery-layout.js +1 -0
  378. package/dist/lib/content/grid-span.d.ts +15 -0
  379. package/dist/lib/content/grid-span.js +1 -0
  380. package/dist/lib/content/image-corners.d.ts +7 -0
  381. package/dist/lib/content/image-corners.js +1 -0
  382. package/dist/lib/content/image-fit.d.ts +11 -0
  383. package/dist/lib/content/image-fit.js +1 -0
  384. package/dist/lib/content/image-treatment.d.ts +20 -0
  385. package/dist/lib/content/image-treatment.js +1 -0
  386. package/dist/lib/content/image-width.d.ts +9 -0
  387. package/dist/lib/content/image-width.js +1 -0
  388. package/dist/lib/content/page-background.d.ts +4 -0
  389. package/dist/lib/content/page-background.js +1 -0
  390. package/dist/lib/content/page-width.d.ts +63 -0
  391. package/dist/lib/content/page-width.js +1 -0
  392. package/dist/lib/content/product-page.d.ts +11 -0
  393. package/dist/lib/content/product-page.js +1 -0
  394. package/dist/lib/content/section-animation.d.ts +13 -0
  395. package/dist/lib/content/section-animation.js +1 -0
  396. package/dist/lib/content/section-background.d.ts +7 -0
  397. package/dist/lib/content/section-background.js +1 -0
  398. package/dist/lib/content/section-corners.d.ts +16 -0
  399. package/dist/lib/content/section-corners.js +1 -0
  400. package/dist/lib/content/section-height.d.ts +9 -0
  401. package/dist/lib/content/section-height.js +1 -0
  402. package/dist/lib/content/section-min-height.d.ts +60 -0
  403. package/dist/lib/content/section-min-height.js +1 -0
  404. package/dist/lib/content/section-padding.d.ts +33 -0
  405. package/dist/lib/content/section-padding.js +1 -0
  406. package/dist/lib/content/section-surface.d.ts +13 -0
  407. package/dist/lib/content/section-surface.js +1 -0
  408. package/dist/lib/content/section-type-size.d.ts +7 -0
  409. package/dist/lib/content/section-type-size.js +1 -0
  410. package/dist/lib/content/section-width.d.ts +19 -0
  411. package/dist/lib/content/section-width.js +1 -0
  412. package/dist/lib/content/site-gutter.d.ts +2 -0
  413. package/dist/lib/content/site-gutter.js +1 -0
  414. package/dist/lib/content/site-name.d.ts +2 -0
  415. package/dist/lib/content/site-name.js +1 -0
  416. package/dist/lib/content/social-links.d.ts +12 -0
  417. package/dist/lib/content/social-links.js +1 -0
  418. package/dist/lib/content/subscribe.d.ts +76 -0
  419. package/dist/lib/content/subscribe.js +2 -0
  420. package/dist/lib/content/view-tiers.d.ts +6 -0
  421. package/dist/lib/content/view-tiers.js +1 -0
  422. package/dist/lib/editor/preview-href.d.ts +6 -0
  423. package/dist/lib/editor/preview-href.js +1 -0
  424. package/dist/lib/editor-admin-bridge.d.ts +29 -0
  425. package/dist/lib/editor-admin-bridge.js +1 -0
  426. package/dist/lib/editor-auth.d.ts +3 -0
  427. package/dist/lib/editor-auth.js +1 -0
  428. package/dist/lib/editor-block-metadata.d.ts +6 -0
  429. package/dist/lib/editor-block-metadata.js +1 -0
  430. package/dist/lib/editor-blocks.d.ts +20 -0
  431. package/dist/lib/editor-blocks.js +1 -0
  432. package/dist/lib/editor-canvas-styles.d.ts +12 -0
  433. package/dist/lib/editor-canvas-styles.js +1 -0
  434. package/dist/lib/editor-chrome.d.ts +52 -0
  435. package/dist/lib/editor-chrome.js +1 -0
  436. package/dist/lib/editor-document-adapter.d.ts +55 -0
  437. package/dist/lib/editor-document-adapter.js +1 -0
  438. package/dist/lib/editor-document-hooks.d.ts +15 -0
  439. package/dist/lib/editor-document-hooks.js +0 -0
  440. package/dist/lib/editor-events.d.ts +8 -0
  441. package/dist/lib/editor-events.js +1 -0
  442. package/dist/lib/editor-failure.d.ts +4 -0
  443. package/dist/lib/editor-failure.js +1 -0
  444. package/dist/lib/editor-form-window.d.ts +21 -0
  445. package/dist/lib/editor-form-window.js +1 -0
  446. package/dist/lib/editor-host-inbound.d.ts +1 -0
  447. package/dist/lib/editor-host-inbound.js +1 -0
  448. package/dist/lib/editor-host.d.ts +135 -0
  449. package/dist/lib/editor-host.js +1 -0
  450. package/dist/lib/editor-key-scope.d.ts +3 -0
  451. package/dist/lib/editor-key-scope.js +1 -0
  452. package/dist/lib/editor-load-error.d.ts +4 -0
  453. package/dist/lib/editor-load-error.js +1 -0
  454. package/dist/lib/editor-media-panel.d.ts +23 -0
  455. package/dist/lib/editor-media-panel.js +1 -0
  456. package/dist/lib/editor-media-picker.d.ts +12 -0
  457. package/dist/lib/editor-media-picker.js +1 -0
  458. package/dist/lib/editor-page-lock.d.ts +1 -0
  459. package/dist/lib/editor-page-lock.js +1 -0
  460. package/dist/lib/editor-page-rows.d.ts +16 -0
  461. package/dist/lib/editor-page-rows.js +1 -0
  462. package/dist/lib/editor-section-templates.d.ts +2 -0
  463. package/dist/lib/editor-section-templates.js +1 -0
  464. package/dist/lib/editor-session-context.d.ts +7 -0
  465. package/dist/lib/editor-session-context.js +1 -0
  466. package/dist/lib/editor-session-loader.d.ts +4 -0
  467. package/dist/lib/editor-session-loader.js +1 -0
  468. package/dist/lib/editor-session.d.ts +45 -0
  469. package/dist/lib/editor-session.js +1 -0
  470. package/dist/lib/editor-site-slug.d.ts +2 -0
  471. package/dist/lib/editor-site-slug.js +1 -0
  472. package/dist/lib/editor-site.d.ts +3 -0
  473. package/dist/lib/editor-site.js +1 -0
  474. package/dist/lib/editor-theme.d.ts +1 -0
  475. package/dist/lib/editor-theme.js +1 -0
  476. package/dist/lib/fit-words.d.ts +3 -0
  477. package/dist/lib/fit-words.js +220 -0
  478. package/dist/lib/fonts.d.ts +32 -0
  479. package/dist/lib/fonts.js +1 -0
  480. package/dist/lib/geocode.d.ts +6 -0
  481. package/dist/lib/geocode.js +1 -0
  482. package/dist/lib/hero-arrows.d.ts +23 -0
  483. package/dist/lib/hero-arrows.js +1 -0
  484. package/dist/lib/hero-group-placement.d.ts +46 -0
  485. package/dist/lib/hero-group-placement.js +1 -0
  486. package/dist/lib/hero-overlay-anchor.d.ts +6 -0
  487. package/dist/lib/hero-overlay-anchor.js +1 -0
  488. package/dist/lib/hero-phone-stack.d.ts +27 -0
  489. package/dist/lib/hero-phone-stack.js +1 -0
  490. package/dist/lib/hero-swipe.d.ts +16 -0
  491. package/dist/lib/hero-swipe.js +1 -0
  492. package/dist/lib/hero-texture.d.ts +4 -0
  493. package/dist/lib/hero-texture.js +1 -0
  494. package/dist/lib/hero-video-control.d.ts +13 -0
  495. package/dist/lib/hero-video-control.js +1 -0
  496. package/dist/lib/image-focus.d.ts +16 -0
  497. package/dist/lib/image-focus.js +1 -0
  498. package/dist/lib/links/page-link-rules.d.ts +22 -0
  499. package/dist/lib/links/page-link-rules.js +1 -0
  500. package/dist/lib/locations-grid.d.ts +10 -0
  501. package/dist/lib/locations-grid.js +1 -0
  502. package/dist/lib/logo/analyze-logo-client.d.ts +3 -0
  503. package/dist/lib/logo/analyze-logo-client.js +1 -0
  504. package/dist/lib/logo/reverse-svg.d.ts +9 -0
  505. package/dist/lib/logo/reverse-svg.js +1 -0
  506. package/dist/lib/map-styles.d.ts +30 -0
  507. package/dist/lib/map-styles.js +1 -0
  508. package/dist/lib/maps-config.d.ts +16 -0
  509. package/dist/lib/maps-config.js +1 -0
  510. package/dist/lib/maps-loader.d.ts +3 -0
  511. package/dist/lib/maps-loader.js +1 -0
  512. package/dist/lib/markup.d.ts +38 -0
  513. package/dist/lib/markup.js +2 -0
  514. package/dist/lib/media.d.ts +10 -0
  515. package/dist/lib/media.js +1 -0
  516. package/dist/lib/parse-option.d.ts +3 -0
  517. package/dist/lib/parse-option.js +1 -0
  518. package/dist/lib/popup/text-kinds.d.ts +11 -0
  519. package/dist/lib/popup/text-kinds.js +1 -0
  520. package/dist/lib/preview-header-settings.d.ts +39 -0
  521. package/dist/lib/preview-header-settings.js +0 -0
  522. package/dist/lib/puck/ColourControl.d.ts +8 -0
  523. package/dist/lib/puck/ColourControl.js +1 -0
  524. package/dist/lib/puck/MarkupToolbar.d.ts +13 -0
  525. package/dist/lib/puck/MarkupToolbar.js +1 -0
  526. package/dist/lib/puck/add-palette.d.ts +20 -0
  527. package/dist/lib/puck/add-palette.js +1 -0
  528. package/dist/lib/puck/add-target.d.ts +10 -0
  529. package/dist/lib/puck/add-target.js +1 -0
  530. package/dist/lib/puck/apply-card-corners.d.ts +21 -0
  531. package/dist/lib/puck/apply-card-corners.js +1 -0
  532. package/dist/lib/puck/block-offer.d.ts +10 -0
  533. package/dist/lib/puck/block-offer.js +1 -0
  534. package/dist/lib/puck/block-types-in.d.ts +1 -0
  535. package/dist/lib/puck/block-types-in.js +1 -0
  536. package/dist/lib/puck/blocks/block-types.d.ts +12 -0
  537. package/dist/lib/puck/blocks/block-types.js +1 -0
  538. package/dist/lib/puck/blocks/general/Banner/fields.d.ts +2 -0
  539. package/dist/lib/puck/blocks/general/Banner/fields.js +1 -0
  540. package/dist/lib/puck/blocks/general/Banner/render.d.ts +2 -0
  541. package/dist/lib/puck/blocks/general/Banner/render.js +1 -0
  542. package/dist/lib/puck/blocks/general/Breadcrumb/fields.d.ts +2 -0
  543. package/dist/lib/puck/blocks/general/Breadcrumb/fields.js +1 -0
  544. package/dist/lib/puck/blocks/general/Breadcrumb/render.d.ts +5 -0
  545. package/dist/lib/puck/blocks/general/Breadcrumb/render.js +1 -0
  546. package/dist/lib/puck/blocks/general/ButtonBlock/fields.d.ts +2 -0
  547. package/dist/lib/puck/blocks/general/ButtonBlock/fields.js +1 -0
  548. package/dist/lib/puck/blocks/general/ButtonBlock/render.d.ts +2 -0
  549. package/dist/lib/puck/blocks/general/ButtonBlock/render.js +1 -0
  550. package/dist/lib/puck/blocks/general/Cards/fields.d.ts +2 -0
  551. package/dist/lib/puck/blocks/general/Cards/fields.js +1 -0
  552. package/dist/lib/puck/blocks/general/Cards/render.d.ts +6 -0
  553. package/dist/lib/puck/blocks/general/Cards/render.js +1 -0
  554. package/dist/lib/puck/blocks/general/CategoryBar/fields.d.ts +2 -0
  555. package/dist/lib/puck/blocks/general/CategoryBar/fields.js +1 -0
  556. package/dist/lib/puck/blocks/general/CategoryBar/render.d.ts +2 -0
  557. package/dist/lib/puck/blocks/general/CategoryBar/render.js +1 -0
  558. package/dist/lib/puck/blocks/general/Chart/fields.d.ts +2 -0
  559. package/dist/lib/puck/blocks/general/Chart/fields.js +1 -0
  560. package/dist/lib/puck/blocks/general/Chart/render.d.ts +6 -0
  561. package/dist/lib/puck/blocks/general/Chart/render.js +2 -0
  562. package/dist/lib/puck/blocks/general/ContactLocations/fields.d.ts +2 -0
  563. package/dist/lib/puck/blocks/general/ContactLocations/fields.js +1 -0
  564. package/dist/lib/puck/blocks/general/ContactLocations/render.d.ts +2 -0
  565. package/dist/lib/puck/blocks/general/ContactLocations/render.js +1 -0
  566. package/dist/lib/puck/blocks/general/CustomHTML/fields.d.ts +2 -0
  567. package/dist/lib/puck/blocks/general/CustomHTML/fields.js +1 -0
  568. package/dist/lib/puck/blocks/general/CustomHTML/render.d.ts +2 -0
  569. package/dist/lib/puck/blocks/general/CustomHTML/render.js +3 -0
  570. package/dist/lib/puck/blocks/general/Divider/fields.d.ts +2 -0
  571. package/dist/lib/puck/blocks/general/Divider/fields.js +1 -0
  572. package/dist/lib/puck/blocks/general/Divider/render.d.ts +2 -0
  573. package/dist/lib/puck/blocks/general/Divider/render.js +1 -0
  574. package/dist/lib/puck/blocks/general/DocBody/fields.d.ts +2 -0
  575. package/dist/lib/puck/blocks/general/DocBody/fields.js +1 -0
  576. package/dist/lib/puck/blocks/general/DocBody/render.d.ts +5 -0
  577. package/dist/lib/puck/blocks/general/DocBody/render.js +1 -0
  578. package/dist/lib/puck/blocks/general/DocMasthead/fields.d.ts +2 -0
  579. package/dist/lib/puck/blocks/general/DocMasthead/fields.js +1 -0
  580. package/dist/lib/puck/blocks/general/DocMasthead/render.d.ts +7 -0
  581. package/dist/lib/puck/blocks/general/DocMasthead/render.js +1 -0
  582. package/dist/lib/puck/blocks/general/DocMetaCards/fields.d.ts +2 -0
  583. package/dist/lib/puck/blocks/general/DocMetaCards/fields.js +1 -0
  584. package/dist/lib/puck/blocks/general/DocMetaCards/render.d.ts +4 -0
  585. package/dist/lib/puck/blocks/general/DocMetaCards/render.js +1 -0
  586. package/dist/lib/puck/blocks/general/DocTabs/fields.d.ts +2 -0
  587. package/dist/lib/puck/blocks/general/DocTabs/fields.js +1 -0
  588. package/dist/lib/puck/blocks/general/DocTabs/render.d.ts +6 -0
  589. package/dist/lib/puck/blocks/general/DocTabs/render.js +1 -0
  590. package/dist/lib/puck/blocks/general/Eyebrow/fields.d.ts +2 -0
  591. package/dist/lib/puck/blocks/general/Eyebrow/fields.js +1 -0
  592. package/dist/lib/puck/blocks/general/Eyebrow/render.d.ts +2 -0
  593. package/dist/lib/puck/blocks/general/Eyebrow/render.js +1 -0
  594. package/dist/lib/puck/blocks/general/FAQ/fields.d.ts +2 -0
  595. package/dist/lib/puck/blocks/general/FAQ/fields.js +1 -0
  596. package/dist/lib/puck/blocks/general/FAQ/render.d.ts +7 -0
  597. package/dist/lib/puck/blocks/general/FAQ/render.js +1 -0
  598. package/dist/lib/puck/blocks/general/FeaturedCover/fields.d.ts +2 -0
  599. package/dist/lib/puck/blocks/general/FeaturedCover/fields.js +1 -0
  600. package/dist/lib/puck/blocks/general/FeaturedCover/render.d.ts +13 -0
  601. package/dist/lib/puck/blocks/general/FeaturedCover/render.js +1 -0
  602. package/dist/lib/puck/blocks/general/Flex/fields.d.ts +2 -0
  603. package/dist/lib/puck/blocks/general/Flex/fields.js +1 -0
  604. package/dist/lib/puck/blocks/general/Flex/render.d.ts +7 -0
  605. package/dist/lib/puck/blocks/general/Flex/render.js +1 -0
  606. package/dist/lib/puck/blocks/general/Footprint/fields.d.ts +2 -0
  607. package/dist/lib/puck/blocks/general/Footprint/fields.js +1 -0
  608. package/dist/lib/puck/blocks/general/Footprint/render.d.ts +7 -0
  609. package/dist/lib/puck/blocks/general/Footprint/render.js +2 -0
  610. package/dist/lib/puck/blocks/general/Grid/fields.d.ts +2 -0
  611. package/dist/lib/puck/blocks/general/Grid/fields.js +1 -0
  612. package/dist/lib/puck/blocks/general/Grid/render.d.ts +7 -0
  613. package/dist/lib/puck/blocks/general/Grid/render.js +1 -0
  614. package/dist/lib/puck/blocks/general/Heading/fields.d.ts +2 -0
  615. package/dist/lib/puck/blocks/general/Heading/fields.js +1 -0
  616. package/dist/lib/puck/blocks/general/Heading/render.d.ts +2 -0
  617. package/dist/lib/puck/blocks/general/Heading/render.js +1 -0
  618. package/dist/lib/puck/blocks/general/Hero/fields.d.ts +2 -0
  619. package/dist/lib/puck/blocks/general/Hero/fields.js +1 -0
  620. package/dist/lib/puck/blocks/general/Hero/render.d.ts +7 -0
  621. package/dist/lib/puck/blocks/general/Hero/render.js +1 -0
  622. package/dist/lib/puck/blocks/general/HeroGroup/fields.d.ts +2 -0
  623. package/dist/lib/puck/blocks/general/HeroGroup/fields.js +1 -0
  624. package/dist/lib/puck/blocks/general/HeroGroup/render.d.ts +8 -0
  625. package/dist/lib/puck/blocks/general/HeroGroup/render.js +1 -0
  626. package/dist/lib/puck/blocks/general/HeroSingle/fields.d.ts +2 -0
  627. package/dist/lib/puck/blocks/general/HeroSingle/fields.js +1 -0
  628. package/dist/lib/puck/blocks/general/HeroSingle/render.d.ts +8 -0
  629. package/dist/lib/puck/blocks/general/HeroSingle/render.js +1 -0
  630. package/dist/lib/puck/blocks/general/HeroSlide/fields.d.ts +2 -0
  631. package/dist/lib/puck/blocks/general/HeroSlide/fields.js +1 -0
  632. package/dist/lib/puck/blocks/general/HeroSlide/render.d.ts +8 -0
  633. package/dist/lib/puck/blocks/general/HeroSlide/render.js +1 -0
  634. package/dist/lib/puck/blocks/general/ImageBlock/fields.d.ts +2 -0
  635. package/dist/lib/puck/blocks/general/ImageBlock/fields.js +1 -0
  636. package/dist/lib/puck/blocks/general/ImageBlock/render.d.ts +2 -0
  637. package/dist/lib/puck/blocks/general/ImageBlock/render.js +1 -0
  638. package/dist/lib/puck/blocks/general/Integrations/fields.d.ts +2 -0
  639. package/dist/lib/puck/blocks/general/Integrations/fields.js +2 -0
  640. package/dist/lib/puck/blocks/general/Integrations/render.d.ts +2 -0
  641. package/dist/lib/puck/blocks/general/Integrations/render.js +2 -0
  642. package/dist/lib/puck/blocks/general/IntroBleed/fields.d.ts +2 -0
  643. package/dist/lib/puck/blocks/general/IntroBleed/fields.js +1 -0
  644. package/dist/lib/puck/blocks/general/IntroBleed/render.d.ts +7 -0
  645. package/dist/lib/puck/blocks/general/IntroBleed/render.js +2 -0
  646. package/dist/lib/puck/blocks/general/KeyFeatures/fields.d.ts +2 -0
  647. package/dist/lib/puck/blocks/general/KeyFeatures/fields.js +1 -0
  648. package/dist/lib/puck/blocks/general/KeyFeatures/render.d.ts +6 -0
  649. package/dist/lib/puck/blocks/general/KeyFeatures/render.js +1 -0
  650. package/dist/lib/puck/blocks/general/LogoBlock/fields.d.ts +2 -0
  651. package/dist/lib/puck/blocks/general/LogoBlock/fields.js +1 -0
  652. package/dist/lib/puck/blocks/general/LogoBlock/render.d.ts +2 -0
  653. package/dist/lib/puck/blocks/general/LogoBlock/render.js +1 -0
  654. package/dist/lib/puck/blocks/general/Logos/fields.d.ts +2 -0
  655. package/dist/lib/puck/blocks/general/Logos/fields.js +1 -0
  656. package/dist/lib/puck/blocks/general/Logos/render.d.ts +2 -0
  657. package/dist/lib/puck/blocks/general/Logos/render.js +1 -0
  658. package/dist/lib/puck/blocks/general/LongRead/fields.d.ts +2 -0
  659. package/dist/lib/puck/blocks/general/LongRead/fields.js +1 -0
  660. package/dist/lib/puck/blocks/general/LongRead/render.d.ts +19 -0
  661. package/dist/lib/puck/blocks/general/LongRead/render.js +1 -0
  662. package/dist/lib/puck/blocks/general/Manifesto/fields.d.ts +2 -0
  663. package/dist/lib/puck/blocks/general/Manifesto/fields.js +2 -0
  664. package/dist/lib/puck/blocks/general/Manifesto/render.d.ts +2 -0
  665. package/dist/lib/puck/blocks/general/Manifesto/render.js +1 -0
  666. package/dist/lib/puck/blocks/general/Masthead/fields.d.ts +2 -0
  667. package/dist/lib/puck/blocks/general/Masthead/fields.js +1 -0
  668. package/dist/lib/puck/blocks/general/Masthead/render.d.ts +8 -0
  669. package/dist/lib/puck/blocks/general/Masthead/render.js +1 -0
  670. package/dist/lib/puck/blocks/general/Mockup/fields.d.ts +2 -0
  671. package/dist/lib/puck/blocks/general/Mockup/fields.js +2 -0
  672. package/dist/lib/puck/blocks/general/Mockup/render.d.ts +2 -0
  673. package/dist/lib/puck/blocks/general/Mockup/render.js +2 -0
  674. package/dist/lib/puck/blocks/general/OrderSummary/fields.d.ts +2 -0
  675. package/dist/lib/puck/blocks/general/OrderSummary/fields.js +1 -0
  676. package/dist/lib/puck/blocks/general/OrderSummary/render.d.ts +6 -0
  677. package/dist/lib/puck/blocks/general/OrderSummary/render.js +1 -0
  678. package/dist/lib/puck/blocks/general/ParagraphsA/fields.d.ts +2 -0
  679. package/dist/lib/puck/blocks/general/ParagraphsA/fields.js +1 -0
  680. package/dist/lib/puck/blocks/general/ParagraphsA/render.d.ts +9 -0
  681. package/dist/lib/puck/blocks/general/ParagraphsA/render.js +1 -0
  682. package/dist/lib/puck/blocks/general/PaymentBadges/fields.d.ts +2 -0
  683. package/dist/lib/puck/blocks/general/PaymentBadges/fields.js +1 -0
  684. package/dist/lib/puck/blocks/general/PaymentBadges/render.d.ts +5 -0
  685. package/dist/lib/puck/blocks/general/PaymentBadges/render.js +1 -0
  686. package/dist/lib/puck/blocks/general/PostCard/fields.d.ts +2 -0
  687. package/dist/lib/puck/blocks/general/PostCard/fields.js +1 -0
  688. package/dist/lib/puck/blocks/general/PostCard/render.d.ts +9 -0
  689. package/dist/lib/puck/blocks/general/PostCard/render.js +1 -0
  690. package/dist/lib/puck/blocks/general/ProcessSteps/fields.d.ts +2 -0
  691. package/dist/lib/puck/blocks/general/ProcessSteps/fields.js +1 -0
  692. package/dist/lib/puck/blocks/general/ProcessSteps/render.d.ts +13 -0
  693. package/dist/lib/puck/blocks/general/ProcessSteps/render.js +1 -0
  694. package/dist/lib/puck/blocks/general/Prose/fields.d.ts +2 -0
  695. package/dist/lib/puck/blocks/general/Prose/fields.js +1 -0
  696. package/dist/lib/puck/blocks/general/Prose/render.d.ts +7 -0
  697. package/dist/lib/puck/blocks/general/Prose/render.js +1 -0
  698. package/dist/lib/puck/blocks/general/SectionHeader/fields.d.ts +2 -0
  699. package/dist/lib/puck/blocks/general/SectionHeader/fields.js +1 -0
  700. package/dist/lib/puck/blocks/general/SectionHeader/render.d.ts +2 -0
  701. package/dist/lib/puck/blocks/general/SectionHeader/render.js +1 -0
  702. package/dist/lib/puck/blocks/general/Series/fields.d.ts +2 -0
  703. package/dist/lib/puck/blocks/general/Series/fields.js +1 -0
  704. package/dist/lib/puck/blocks/general/Series/render.d.ts +8 -0
  705. package/dist/lib/puck/blocks/general/Series/render.js +1 -0
  706. package/dist/lib/puck/blocks/general/Spacer/fields.d.ts +2 -0
  707. package/dist/lib/puck/blocks/general/Spacer/fields.js +1 -0
  708. package/dist/lib/puck/blocks/general/Spacer/render.d.ts +2 -0
  709. package/dist/lib/puck/blocks/general/Spacer/render.js +1 -0
  710. package/dist/lib/puck/blocks/general/SpecStrip/fields.d.ts +2 -0
  711. package/dist/lib/puck/blocks/general/SpecStrip/fields.js +1 -0
  712. package/dist/lib/puck/blocks/general/SpecStrip/render.d.ts +2 -0
  713. package/dist/lib/puck/blocks/general/SpecStrip/render.js +1 -0
  714. package/dist/lib/puck/blocks/general/Split/fields.d.ts +2 -0
  715. package/dist/lib/puck/blocks/general/Split/fields.js +1 -0
  716. package/dist/lib/puck/blocks/general/Split/render.d.ts +10 -0
  717. package/dist/lib/puck/blocks/general/Split/render.js +2 -0
  718. package/dist/lib/puck/blocks/general/Stats/fields.d.ts +2 -0
  719. package/dist/lib/puck/blocks/general/Stats/fields.js +1 -0
  720. package/dist/lib/puck/blocks/general/Stats/render.d.ts +2 -0
  721. package/dist/lib/puck/blocks/general/Stats/render.js +1 -0
  722. package/dist/lib/puck/blocks/general/StatsParagraph/fields.d.ts +2 -0
  723. package/dist/lib/puck/blocks/general/StatsParagraph/fields.js +1 -0
  724. package/dist/lib/puck/blocks/general/StatsParagraph/render.d.ts +7 -0
  725. package/dist/lib/puck/blocks/general/StatsParagraph/render.js +1 -0
  726. package/dist/lib/puck/blocks/general/Testimonials/fields.d.ts +2 -0
  727. package/dist/lib/puck/blocks/general/Testimonials/fields.js +1 -0
  728. package/dist/lib/puck/blocks/general/Testimonials/render.d.ts +6 -0
  729. package/dist/lib/puck/blocks/general/Testimonials/render.js +1 -0
  730. package/dist/lib/puck/blocks/general/Text/fields.d.ts +2 -0
  731. package/dist/lib/puck/blocks/general/Text/fields.js +1 -0
  732. package/dist/lib/puck/blocks/general/Text/render.d.ts +2 -0
  733. package/dist/lib/puck/blocks/general/Text/render.js +1 -0
  734. package/dist/lib/puck/blocks/general/Ticker/fields.d.ts +2 -0
  735. package/dist/lib/puck/blocks/general/Ticker/fields.js +1 -0
  736. package/dist/lib/puck/blocks/general/Ticker/render.d.ts +5 -0
  737. package/dist/lib/puck/blocks/general/Ticker/render.js +1 -0
  738. package/dist/lib/puck/blocks/general/Timeline/fields.d.ts +2 -0
  739. package/dist/lib/puck/blocks/general/Timeline/fields.js +1 -0
  740. package/dist/lib/puck/blocks/general/Timeline/render.d.ts +10 -0
  741. package/dist/lib/puck/blocks/general/Timeline/render.js +2 -0
  742. package/dist/lib/puck/blocks/general/TimelineTrack/fields.d.ts +2 -0
  743. package/dist/lib/puck/blocks/general/TimelineTrack/fields.js +1 -0
  744. package/dist/lib/puck/blocks/general/TimelineTrack/render.d.ts +8 -0
  745. package/dist/lib/puck/blocks/general/TimelineTrack/render.js +1 -0
  746. package/dist/lib/puck/blocks/general/TitleWithButtons/fields.d.ts +2 -0
  747. package/dist/lib/puck/blocks/general/TitleWithButtons/fields.js +1 -0
  748. package/dist/lib/puck/blocks/general/TitleWithButtons/render.d.ts +5 -0
  749. package/dist/lib/puck/blocks/general/TitleWithButtons/render.js +2 -0
  750. package/dist/lib/puck/blocks/general/index.d.ts +2 -0
  751. package/dist/lib/puck/blocks/general/index.js +1 -0
  752. package/dist/lib/puck/blocks/general/renders.d.ts +57 -0
  753. package/dist/lib/puck/blocks/general/renders.js +1 -0
  754. package/dist/lib/puck/blocks/general/section-bg-built-in.d.ts +6 -0
  755. package/dist/lib/puck/blocks/general/section-bg-built-in.js +1 -0
  756. package/dist/lib/puck/blocks/placeholders.d.ts +25 -0
  757. package/dist/lib/puck/blocks/placeholders.js +1 -0
  758. package/dist/lib/puck/blocks/scaffold.d.ts +22 -0
  759. package/dist/lib/puck/blocks/scaffold.js +1 -0
  760. package/dist/lib/puck/blocks/shared-fields.d.ts +14 -0
  761. package/dist/lib/puck/blocks/shared-fields.js +1 -0
  762. package/dist/lib/puck/booking-preview.d.ts +3 -0
  763. package/dist/lib/puck/booking-preview.js +1 -0
  764. package/dist/lib/puck/box-footer.d.ts +9 -0
  765. package/dist/lib/puck/box-footer.js +1 -0
  766. package/dist/lib/puck/build-config.d.ts +3 -0
  767. package/dist/lib/puck/build-config.js +1 -0
  768. package/dist/lib/puck/cap-hero-groups.d.ts +1 -0
  769. package/dist/lib/puck/cap-hero-groups.js +1 -0
  770. package/dist/lib/puck/container-blocks.d.ts +10 -0
  771. package/dist/lib/puck/container-blocks.js +1 -0
  772. package/dist/lib/puck/content-tree.d.ts +43 -0
  773. package/dist/lib/puck/content-tree.js +1 -0
  774. package/dist/lib/puck/controls.d.ts +346 -0
  775. package/dist/lib/puck/controls.js +1 -0
  776. package/dist/lib/puck/device-fields.d.ts +24 -0
  777. package/dist/lib/puck/device-fields.js +1 -0
  778. package/dist/lib/puck/editor-page-context.d.ts +6 -0
  779. package/dist/lib/puck/editor-page-context.js +1 -0
  780. package/dist/lib/puck/enclosing-section.d.ts +1 -0
  781. package/dist/lib/puck/enclosing-section.js +1 -0
  782. package/dist/lib/puck/field-groups.d.ts +23 -0
  783. package/dist/lib/puck/field-groups.js +1 -0
  784. package/dist/lib/puck/field-markers.d.ts +16 -0
  785. package/dist/lib/puck/field-markers.js +1 -0
  786. package/dist/lib/puck/field-noun.d.ts +3 -0
  787. package/dist/lib/puck/field-noun.js +1 -0
  788. package/dist/lib/puck/footer-blocks.d.ts +19 -0
  789. package/dist/lib/puck/footer-blocks.js +1 -0
  790. package/dist/lib/puck/footer-return.d.ts +3 -0
  791. package/dist/lib/puck/footer-return.js +1 -0
  792. package/dist/lib/puck/general-registry.d.ts +4 -0
  793. package/dist/lib/puck/general-registry.js +1 -0
  794. package/dist/lib/puck/geocode-resolve.d.ts +14 -0
  795. package/dist/lib/puck/geocode-resolve.js +1 -0
  796. package/dist/lib/puck/header-clearance.d.ts +49 -0
  797. package/dist/lib/puck/header-clearance.js +1 -0
  798. package/dist/lib/puck/header-ink.d.ts +16 -0
  799. package/dist/lib/puck/header-ink.js +1 -0
  800. package/dist/lib/puck/heading-outline.d.ts +7 -0
  801. package/dist/lib/puck/heading-outline.js +1 -0
  802. package/dist/lib/puck/hidable.d.ts +9 -0
  803. package/dist/lib/puck/hidable.js +1 -0
  804. package/dist/lib/puck/home-page.d.ts +1 -0
  805. package/dist/lib/puck/home-page.js +1 -0
  806. package/dist/lib/puck/left-view.d.ts +5 -0
  807. package/dist/lib/puck/left-view.js +1 -0
  808. package/dist/lib/puck/locations-focus.d.ts +22 -0
  809. package/dist/lib/puck/locations-focus.js +1 -0
  810. package/dist/lib/puck/locations-tree.d.ts +23 -0
  811. package/dist/lib/puck/locations-tree.js +2 -0
  812. package/dist/lib/puck/locked-blocks.d.ts +2 -0
  813. package/dist/lib/puck/locked-blocks.js +1 -0
  814. package/dist/lib/puck/media-manifest.json +138 -0
  815. package/dist/lib/puck/migrate-legacy.d.ts +2 -0
  816. package/dist/lib/puck/migrate-legacy.js +1 -0
  817. package/dist/lib/puck/mockup-variant-fields.d.ts +10 -0
  818. package/dist/lib/puck/mockup-variant-fields.js +1 -0
  819. package/dist/lib/puck/neutralization-contracts.d.ts +43 -0
  820. package/dist/lib/puck/neutralization-contracts.js +1 -0
  821. package/dist/lib/puck/one-h1.d.ts +3 -0
  822. package/dist/lib/puck/one-h1.js +1 -0
  823. package/dist/lib/puck/overlay-portal.d.ts +2 -0
  824. package/dist/lib/puck/overlay-portal.js +1 -0
  825. package/dist/lib/puck/overrides.d.ts +2 -0
  826. package/dist/lib/puck/overrides.js +1 -0
  827. package/dist/lib/puck/page-render.d.ts +5 -0
  828. package/dist/lib/puck/page-render.js +1 -0
  829. package/dist/lib/puck/page-root-fields.d.ts +29 -0
  830. package/dist/lib/puck/page-root-fields.js +1 -0
  831. package/dist/lib/puck/page-root.d.ts +55 -0
  832. package/dist/lib/puck/page-root.js +1 -0
  833. package/dist/lib/puck/panel-drop-empty-headings.d.ts +3 -0
  834. package/dist/lib/puck/panel-drop-empty-headings.js +1 -0
  835. package/dist/lib/puck/panel-fields.d.ts +12 -0
  836. package/dist/lib/puck/panel-fields.js +1 -0
  837. package/dist/lib/puck/panel-heading-scope.d.ts +8 -0
  838. package/dist/lib/puck/panel-heading-scope.js +1 -0
  839. package/dist/lib/puck/panel-no-control-mark.d.ts +7 -0
  840. package/dist/lib/puck/panel-no-control-mark.js +1 -0
  841. package/dist/lib/puck/part-anchors.d.ts +23 -0
  842. package/dist/lib/puck/part-anchors.js +1 -0
  843. package/dist/lib/puck/part-inks.d.ts +9 -0
  844. package/dist/lib/puck/part-inks.js +1 -0
  845. package/dist/lib/puck/part-key.d.ts +9 -0
  846. package/dist/lib/puck/part-key.js +1 -0
  847. package/dist/lib/puck/part-row-field.d.ts +2 -0
  848. package/dist/lib/puck/part-row-field.js +1 -0
  849. package/dist/lib/puck/part-rows.d.ts +15 -0
  850. package/dist/lib/puck/part-rows.js +1 -0
  851. package/dist/lib/puck/part-styles.d.ts +133 -0
  852. package/dist/lib/puck/part-styles.js +2 -0
  853. package/dist/lib/puck/part-text.d.ts +12 -0
  854. package/dist/lib/puck/part-text.js +1 -0
  855. package/dist/lib/puck/part-typing.d.ts +11 -0
  856. package/dist/lib/puck/part-typing.js +1 -0
  857. package/dist/lib/puck/passes/catalogue-labels.d.ts +2 -0
  858. package/dist/lib/puck/passes/catalogue-labels.js +1 -0
  859. package/dist/lib/puck/passes/cell-width.d.ts +2 -0
  860. package/dist/lib/puck/passes/cell-width.js +1 -0
  861. package/dist/lib/puck/passes/clickable-parts.d.ts +2 -0
  862. package/dist/lib/puck/passes/clickable-parts.js +1 -0
  863. package/dist/lib/puck/passes/corners.d.ts +3 -0
  864. package/dist/lib/puck/passes/corners.js +1 -0
  865. package/dist/lib/puck/passes/document-position.d.ts +16 -0
  866. package/dist/lib/puck/passes/document-position.js +1 -0
  867. package/dist/lib/puck/passes/empty-headings.d.ts +2 -0
  868. package/dist/lib/puck/passes/empty-headings.js +1 -0
  869. package/dist/lib/puck/passes/hidden-nodes.d.ts +2 -0
  870. package/dist/lib/puck/passes/hidden-nodes.js +1 -0
  871. package/dist/lib/puck/passes/index.d.ts +5 -0
  872. package/dist/lib/puck/passes/index.js +1 -0
  873. package/dist/lib/puck/passes/inspector.d.ts +2 -0
  874. package/dist/lib/puck/passes/inspector.js +1 -0
  875. package/dist/lib/puck/passes/registry-context.d.ts +2 -0
  876. package/dist/lib/puck/passes/registry-context.js +1 -0
  877. package/dist/lib/puck/passes/section-anchor.d.ts +2 -0
  878. package/dist/lib/puck/passes/section-anchor.js +1 -0
  879. package/dist/lib/puck/passes/section-animation.d.ts +2 -0
  880. package/dist/lib/puck/passes/section-animation.js +1 -0
  881. package/dist/lib/puck/passes/section-height.d.ts +2 -0
  882. package/dist/lib/puck/passes/section-height.js +1 -0
  883. package/dist/lib/puck/passes/section-padding.d.ts +8 -0
  884. package/dist/lib/puck/passes/section-padding.js +1 -0
  885. package/dist/lib/puck/passes/section-theme.d.ts +3 -0
  886. package/dist/lib/puck/passes/section-theme.js +1 -0
  887. package/dist/lib/puck/passes/section-width.d.ts +10 -0
  888. package/dist/lib/puck/passes/section-width.js +1 -0
  889. package/dist/lib/puck/passes/settings-groups.d.ts +3 -0
  890. package/dist/lib/puck/passes/settings-groups.js +1 -0
  891. package/dist/lib/puck/passes/slot-rules.d.ts +4 -0
  892. package/dist/lib/puck/passes/slot-rules.js +1 -0
  893. package/dist/lib/puck/passes/types.d.ts +51 -0
  894. package/dist/lib/puck/passes/types.js +0 -0
  895. package/dist/lib/puck/phone-override.d.ts +4 -0
  896. package/dist/lib/puck/phone-override.js +1 -0
  897. package/dist/lib/puck/pinned-seed-gate.d.ts +17 -0
  898. package/dist/lib/puck/pinned-seed-gate.js +1 -0
  899. package/dist/lib/puck/preview-click.d.ts +2 -0
  900. package/dist/lib/puck/preview-click.js +1 -0
  901. package/dist/lib/puck/preview-dom.d.ts +6 -0
  902. package/dist/lib/puck/preview-dom.js +1 -0
  903. package/dist/lib/puck/preview-selection-context.d.ts +19 -0
  904. package/dist/lib/puck/preview-selection-context.js +1 -0
  905. package/dist/lib/puck/registry.d.ts +3 -0
  906. package/dist/lib/puck/registry.js +1 -0
  907. package/dist/lib/puck/renamed-props.d.ts +2 -0
  908. package/dist/lib/puck/renamed-props.js +1 -0
  909. package/dist/lib/puck/sanitize.d.ts +1 -0
  910. package/dist/lib/puck/sanitize.js +1 -0
  911. package/dist/lib/puck/section-catalog.d.ts +36 -0
  912. package/dist/lib/puck/section-catalog.js +1 -0
  913. package/dist/lib/puck/section-descriptions.d.ts +1 -0
  914. package/dist/lib/puck/section-descriptions.js +1 -0
  915. package/dist/lib/puck/section-doc.d.ts +5 -0
  916. package/dist/lib/puck/section-doc.js +1 -0
  917. package/dist/lib/puck/section-groups.d.ts +21 -0
  918. package/dist/lib/puck/section-groups.js +1 -0
  919. package/dist/lib/puck/section-text-suppress.d.ts +9 -0
  920. package/dist/lib/puck/section-text-suppress.js +1 -0
  921. package/dist/lib/puck/site-gap-fields.d.ts +2 -0
  922. package/dist/lib/puck/site-gap-fields.js +1 -0
  923. package/dist/lib/puck/slider-typing.d.ts +9 -0
  924. package/dist/lib/puck/slider-typing.js +1 -0
  925. package/dist/lib/puck/slot-child-name.d.ts +8 -0
  926. package/dist/lib/puck/slot-child-name.js +1 -0
  927. package/dist/lib/puck/slot-heal.d.ts +2 -0
  928. package/dist/lib/puck/slot-heal.js +1 -0
  929. package/dist/lib/puck/slot-specs.d.ts +20 -0
  930. package/dist/lib/puck/slot-specs.js +1 -0
  931. package/dist/lib/puck/snapshot-contracts.d.ts +4 -0
  932. package/dist/lib/puck/snapshot-contracts.js +1 -0
  933. package/dist/lib/puck/source-bound-parts.d.ts +12 -0
  934. package/dist/lib/puck/source-bound-parts.js +1 -0
  935. package/dist/lib/puck/style-clipboard.d.ts +19 -0
  936. package/dist/lib/puck/style-clipboard.js +1 -0
  937. package/dist/lib/puck/templateFields.d.ts +2 -0
  938. package/dist/lib/puck/templateFields.js +1 -0
  939. package/dist/lib/puck/text-control-kinds.d.ts +13 -0
  940. package/dist/lib/puck/text-control-kinds.js +1 -0
  941. package/dist/lib/puck/text-parts.d.ts +33 -0
  942. package/dist/lib/puck/text-parts.js +1 -0
  943. package/dist/lib/puck/theme-swatches.d.ts +3 -0
  944. package/dist/lib/puck/theme-swatches.js +1 -0
  945. package/dist/lib/puck/tree-reveal.d.ts +11 -0
  946. package/dist/lib/puck/tree-reveal.js +1 -0
  947. package/dist/lib/puck/use-section-ops.d.ts +25 -0
  948. package/dist/lib/puck/use-section-ops.js +1 -0
  949. package/dist/lib/reel.d.ts +33 -0
  950. package/dist/lib/reel.js +1 -0
  951. package/dist/lib/safe-storage.d.ts +10 -0
  952. package/dist/lib/safe-storage.js +1 -0
  953. package/dist/lib/save-as-template-action.d.ts +29 -0
  954. package/dist/lib/save-as-template-action.js +1 -0
  955. package/dist/lib/section-template-types.d.ts +21 -0
  956. package/dist/lib/section-template-types.js +0 -0
  957. package/dist/lib/sections/card-cover-index.d.ts +7 -0
  958. package/dist/lib/sections/card-cover-index.js +1 -0
  959. package/dist/lib/sections/collection-card-text-regions.d.ts +4 -0
  960. package/dist/lib/sections/collection-card-text-regions.js +1 -0
  961. package/dist/lib/sections/divider-style.d.ts +12 -0
  962. package/dist/lib/sections/divider-style.js +1 -0
  963. package/dist/lib/sections/faq-text-regions.d.ts +4 -0
  964. package/dist/lib/sections/faq-text-regions.js +1 -0
  965. package/dist/lib/sections/hero-overlay.d.ts +10 -0
  966. package/dist/lib/sections/hero-overlay.js +1 -0
  967. package/dist/lib/sections/intro-bleed-layout.d.ts +15 -0
  968. package/dist/lib/sections/intro-bleed-layout.js +1 -0
  969. package/dist/lib/sections/product-card-style.d.ts +18 -0
  970. package/dist/lib/sections/product-card-style.js +1 -0
  971. package/dist/lib/sections/section-eyebrow-look.d.ts +11 -0
  972. package/dist/lib/sections/section-eyebrow-look.js +1 -0
  973. package/dist/lib/sections/section-head-placement.d.ts +31 -0
  974. package/dist/lib/sections/section-head-placement.js +1 -0
  975. package/dist/lib/sections/section-head-style.d.ts +16 -0
  976. package/dist/lib/sections/section-head-style.js +1 -0
  977. package/dist/lib/sections/section-number-style.d.ts +10 -0
  978. package/dist/lib/sections/section-number-style.js +1 -0
  979. package/dist/lib/sections/section-presets.d.ts +9 -0
  980. package/dist/lib/sections/section-presets.js +1 -0
  981. package/dist/lib/sections/section-text-kinds.d.ts +8 -0
  982. package/dist/lib/sections/section-text-kinds.js +1 -0
  983. package/dist/lib/sections/section-text-regions.d.ts +3 -0
  984. package/dist/lib/sections/section-text-regions.js +1 -0
  985. package/dist/lib/sections/spec-table-regions.d.ts +11 -0
  986. package/dist/lib/sections/spec-table-regions.js +1 -0
  987. package/dist/lib/sections/text-regions.d.ts +21 -0
  988. package/dist/lib/sections/text-regions.js +1 -0
  989. package/dist/lib/sections/ticker-join.d.ts +9 -0
  990. package/dist/lib/sections/ticker-join.js +1 -0
  991. package/dist/lib/sections/ticker-scroll.d.ts +11 -0
  992. package/dist/lib/sections/ticker-scroll.js +1 -0
  993. package/dist/lib/sections/ticker-style.d.ts +17 -0
  994. package/dist/lib/sections/ticker-style.js +1 -0
  995. package/dist/lib/site-runtime.d.ts +28 -0
  996. package/dist/lib/site-runtime.js +1 -0
  997. package/dist/lib/site-theme-row.d.ts +52 -0
  998. package/dist/lib/site-theme-row.js +0 -0
  999. package/dist/lib/slugify.d.ts +1 -0
  1000. package/dist/lib/slugify.js +1 -0
  1001. package/dist/lib/theme-dom.d.ts +14 -0
  1002. package/dist/lib/theme-dom.js +1 -0
  1003. package/dist/lib/theme-row-persist.d.ts +34 -0
  1004. package/dist/lib/theme-row-persist.js +1 -0
  1005. package/dist/lib/theme-save-message.d.ts +6 -0
  1006. package/dist/lib/theme-save-message.js +1 -0
  1007. package/dist/lib/theme.d.ts +177 -0
  1008. package/dist/lib/theme.js +18 -0
  1009. package/dist/lib/use-host-products.d.ts +2 -0
  1010. package/dist/lib/use-host-products.js +1 -0
  1011. package/dist/lib/web-backend.d.ts +193 -0
  1012. package/dist/lib/web-backend.js +1 -0
  1013. package/dist/lib/web-runtime.d.ts +7 -0
  1014. package/dist/lib/web-runtime.js +1 -0
  1015. package/dist/lib/word-styles.d.ts +54 -0
  1016. package/dist/lib/word-styles.js +1 -0
  1017. package/package.json +40 -36
  1018. package/dist/chunks/EditorPreviewCheckout-YVSO4HE3.js +0 -4
  1019. package/dist/chunks/PreviewFooter-34YJU76X.js +0 -1
  1020. package/dist/chunks/SectionEditorShell-CVWJ6DSU.js +0 -1
  1021. package/dist/chunks/SiteEditorProvider-ECGZVKLG.js +0 -1
  1022. package/dist/chunks/StorefrontEditorChrome-YKEMJT3Z.js +0 -1
  1023. package/dist/chunks/chunk-2XX3N727.js +0 -153
  1024. package/dist/chunks/chunk-2XX3N727.js.LEGAL.txt +0 -4
  1025. package/dist/chunks/chunk-6CP4D6VJ.js +0 -1
  1026. package/dist/chunks/chunk-7QXLVNFD.js +0 -1
  1027. package/dist/chunks/chunk-EKKAVQJX.js +0 -1
  1028. package/dist/chunks/chunk-FU5UZ4UY.js +0 -1
  1029. package/dist/chunks/chunk-HVOO2GNE.js +0 -1
  1030. package/dist/chunks/chunk-J5WPJJCW.js +0 -2
  1031. package/dist/chunks/chunk-MEIUD5LJ.js +0 -1
  1032. package/dist/chunks/chunk-N3IM4XBG.js +0 -1
  1033. package/dist/chunks/chunk-RRHBLOH4.js +0 -1
  1034. package/dist/chunks/chunk-TUB4O4RZ.js +0 -15
  1035. package/dist/chunks/chunk-TUB4O4RZ.js.LEGAL.txt +0 -27
  1036. package/dist/chunks/chunk-UM3P3PXW.js +0 -230
  1037. package/dist/chunks/chunk-XQGZKQII.js +0 -1
  1038. package/dist/chunks/chunk-Y6SLVHK3.js +0 -1
  1039. package/dist/chunks/fitment-data-6NXSKODX.js +0 -1
  1040. package/dist/chunks/gallery-builds-data-SWA6XKFF.js +0 -1
  1041. package/dist/chunks/headers-3CAQXQEY.js +0 -1
  1042. package/dist/chunks/render-client-VMLB4BTY.js +0 -1
  1043. package/dist/contract.d.ts +0 -48
  1044. package/dist/contract.js +0 -1
  1045. package/dist/editor.css +0 -1
  1046. package/dist/index.d.ts +0 -721
  1047. package/dist/index.js +0 -11050
  1048. package/dist/links.d.ts +0 -86
  1049. package/dist/links.js +0 -1
@@ -0,0 +1,18 @@
1
+ const L="storefront-theme",me="sf:theme-mode",pe="sf:theme-switch",xe="hide",_e="light",Ee=!1,Se=7,Ae=18;function k(e){return e>=7&&e<18}function Te(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?k(o)?"light":"dark":t==="light"?"light":"dark"}function be(e){const{mode:t,switchShown:n}=e;return`
2
+ try {
3
+ var mode = ${JSON.stringify(t)};
4
+ var shown = ${n?"true":"false"};
5
+ var override = localStorage.getItem(${JSON.stringify(L)});
6
+ var theme;
7
+ if (shown && (override === 'light' || override === 'dark')) {
8
+ theme = override;
9
+ } else if (mode === 'auto') {
10
+ var h = new Date().getHours();
11
+ theme = (h >= 7 && h < 18) ? 'light' : 'dark';
12
+ } else {
13
+ theme = mode === 'light' ? 'light' : 'dark';
14
+ }
15
+ if (theme === 'light') document.documentElement.setAttribute('data-theme', 'light');
16
+ else document.documentElement.removeAttribute('data-theme');
17
+ } catch (e) {}
18
+ `}const i={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},P=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],$={selected:0,themes:P};function S(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...$}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function f(e,t,n){const r=u(e),o=u(t);if(r===null||o===null)return e;const c=a=>Math.max(0,Math.min(255,Math.round(a))).toString(16).padStart(2,"0");return`#${r.map((a,O)=>c(a+(o[O]-a)*n)).join("")}`}const F={light:"#ffffff",dark:"#0a0a0a"},Re=["light","dark"];function we(e,t){const n=F[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:f(e,r,.1),line:f(e,r,.22),muted:f(n,e,.35),brandInk:t}}function s(e){const t=S(e);return t.themes[t.selected]}function d(e){return{text:e.text,accent:e.accent,background:e.background||i.background,surface:e.surface||i.surface,line:e.line||i.line,muted:e.muted||i.muted}}function Ce(e){return{fill:d(e).background,accent:e.accent}}function u(e){const t=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;const n=t[1].length===3?[...t[1]].map(a=>a+a).join(""):t[1],[r,o,c]=[0,2,4].map(a=>parseInt(n.slice(a,a+2),16));return[r,o,c]}function g(e){const t=u(e);if(t===null)return null;const[n,r,o]=t.map(c=>{const a=c/255;return a<=.04045?a/12.92:((a+.055)/1.055)**2.4});return .2126*n+.7152*r+.0722*o}const U=.4,G=4.5,Y=3;function z(e,t){const n=g(e),r=g(t);if(n===null||r===null)return null;const[o,c]=n>=r?[n,r]:[r,n];return(o+.05)/(c+.05)}const De={good:"Good","large-only":"Large text only",hard:"Hard to read"};function He(e){return e>=G?"good":e>=Y?"large-only":"hard"}const m=["#000000","#ffffff"];function l(e){let t=m[0],n=-1;for(const r of m){const o=z(e,r);if(o===null)return m[0];o>n&&(n=o,t=r)}return t}const X=[.25,.4,.55];function Ie(e){const t=u(e);return t===null?[]:X.map(n=>"#"+t.map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function Me(e){const t=s(e),n={"--theme-fg":t.text},r=g(t.text);return(r===null||r>=U)&&(n["--overlay-fg"]=t.text),n}const B=82;function p(e){return`color-mix(in srgb, ${e} ${B}%, #000)`}function ye(e){const t=s(e);return{"--theme-accent":t.accent,"--theme-accent-2":p(t.accent),"--theme-accent-ink":l(t.accent)}}function A(e){const t=e?.button;return/^#[0-9a-fA-F]{6}$/.test(t??"")?t.toLowerCase():null}function Ne(e){const t=s(e),n=A(t),r=T(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=p(n)),o["--theme-btn-ink"]=r??l(n),o}function T(e){const t=e?.buttonInk;return/^#[0-9a-fA-F]{6}$/.test(t??"")?t.toLowerCase():null}function Oe(e,t){return T(e)??l(A(e)??t)}function Le(e){const t={};return S(e).themes.forEach((n,r)=>{const o=d(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=p(o.accent),t[`--theme-preset-${r}-accent-ink`]=l(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const ke=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function Pe(e){const t=d(s(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==i.surface||t.line!==i.line)&&(r["--theme-surface-2"]=n),r}const W=["heading","body","label"],$e={heading:"Headings",body:"Body",label:"Labels"},Fe="body";function Ue(e){if(!e)return null;for(const t of W)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const b=["headingLarge","headingMedium","headingSmall","accent","body","label"],Ge={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},Ye={headingLarge:"Large",headingMedium:"Medium",headingSmall:"Small",accent:"Size",body:"Size",label:"Size"},ze={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},K=8,V=200,Xe=1;function Z(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=K&&t<=V?t:null}function j(e){const t={};for(const n of b)t[n]=Z(e?.[n]);return t}function Be(e){const t=j(e),n={};for(const r of b){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const q=["square","small","large"],J="small";function Q(e){return q.includes(e??"")?e:J}function We(e){return C(ee[Q(e)])}const R=0,v=40,ee={square:0,small:null,large:16},te={"--sf-card-radius":1,"--sf-button-radius":.5,"--radius":.5,"--radius-xs":.25,"--radius-sm":.5,"--radius-md":.75,"--radius-lg":1,"--radius-xl":1.25,"--radius-2xl":1.5,"--radius-3xl":2,"--radius-4xl":2.5};function w(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(v,Math.max(R,Math.round(t))):null}function C(e){const t=w(e);return t===null?{}:Object.fromEntries(Object.entries(te).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function Ke(e){return C(w(e)??R)}const ne=["none","soft","lifted"],re="soft",D="none",oe=["tight","normal","roomy"],ce="normal",ae="normal",ie=["none","lift","highlight"],se="lift",ue="highlight",H="#141416";function I(e){return ne.includes(e??"")?e:re}function le(e){return oe.includes(e??"")?e:ce}function M(e){return ie.includes(e??"")?e:se}function he(e){return/^#[0-9a-fA-F]{6}$/.test(e??"")?e.toLowerCase():H}function Ve(e){const t=I(e);return t===D?void 0:t}function Ze(e){const t=le(e);return t===ae?void 0:t}function je(e){const t=M(e);return t===ue?void 0:t}function qe(e,t,n){const r=he(t);return r===H?{}:I(e)!==D||M(n)==="lift"?{"--sf-shadow-color":r}:{}}const fe=["normal","tight","compressed"],y="normal";function N(e){return fe.includes(e??"")?e:y}function Je(e){const t=N(e);return t===y?void 0:t}function Qe(e){switch(N(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const ve=["authored","sentence"],et={case:"authored",weight:null,weightStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},x=100,_=900,de=24,ge=200;function h(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function E(e){const t=h(e?.weight,x,_),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:h(c,x,_),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:h(e?.weightStrong,x,_),maxPx:h(e?.maxPx,de,ge),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function tt(e){const t=E(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function nt(e){return E({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function rt(e){const t=E(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}export{X as ACCENT_DARKEN_STEPS,Re as BRAND_INKS,oe as CARD_GAPS,ne as CARD_SHADOWS,v as CORNER_RADIUS_MAX,R as CORNER_RADIUS_MIN,q as CORNER_STYLES,ee as CORNER_STYLE_TO_PX,ce as DEFAULT_CARD_GAP,re as DEFAULT_CARD_SHADOW,J as DEFAULT_CORNER_STYLE,y as DEFAULT_HEADING_COMPRESSION,et as DEFAULT_HEADING_TYPOGRAPHY,se as DEFAULT_HOVER_EFFECT,H as DEFAULT_SHADOW_COLOR,ze as DEFAULT_SIZES,i as DEFAULT_SURFACES,Ee as DEFAULT_SWITCH_SHOWN,P as DEFAULT_THEMES,_e as DEFAULT_THEME_MODE,$ as DEFAULT_THEME_VALUE,De as GRADE_LABEL,ve as HEADING_CASES,fe as HEADING_COMPRESSIONS,ge as HEADING_MAX_PX_MAX,de as HEADING_MAX_PX_MIN,_ as HEADING_WEIGHT_MAX,x as HEADING_WEIGHT_MIN,ie as HOVER_EFFECTS,ae as IDENTITY_CARD_GAP,D as IDENTITY_CARD_SHADOW,ue as IDENTITY_HOVER_EFFECT,Fe as NEUTRAL_TYPE_GROUP,G as READABILITY_AA,Y as READABILITY_AA_LARGE,Ge as SCALE_OF_STEP,b as SIZE_STEPS,Ye as SIZE_STEP_LABELS,V as TEXT_SIZE_MAX,K as TEXT_SIZE_MIN,Xe as TEXT_SIZE_STEP,Ae as THEME_DAY_END_HOUR,Se as THEME_DAY_START_HOUR,me as THEME_MODE_KEY,L as THEME_STORAGE_KEY,ke as THEME_SURFACE_KEYS,xe as THEME_SWITCH_HIDE,pe as THEME_SWITCH_KEY,W as TYPE_GROUPS,$e as TYPE_GROUP_LABELS,l as accentInk,we as brandTheme,be as buildThemeBootScript,Ze as cardGapAttr,Ve as cardShadowAttr,Qe as compressionMetrics,z as contrastRatio,C as cornerRadiusTokens,We as cornerStyleTokens,Ie as darkerAccents,He as gradeContrast,Je as headingCompressionAttr,nt as headingTypographyFromRow,tt as headingTypographyStyle,rt as headingTypographyToRow,je as hoverEffectAttr,k as isDayHour,le as normalizeCardGap,I as normalizeCardShadow,w as normalizeCornerRadius,Q as normalizeCornerStyle,N as normalizeHeadingCompression,E as normalizeHeadingTypography,M as normalizeHoverEffect,he as normalizeShadowColor,Z as normalizeSize,j as normalizeSizes,S as normalizeTheme,d as normalizeThemeColors,Te as resolveTheme,Oe as resolvedButtonInk,s as selectedThemeColors,qe as shadowColorTokens,Ke as siteCornerRadiusTokens,ye as themeAccentStyle,A as themeButtonColour,T as themeButtonInk,Ne as themeButtonStyle,Me as themeColorStyle,Le as themePresetAccentVars,Pe as themeSurfaceStyle,Ce as themeSwatchColors,Ue as typeScaleGroupOfClassName,Be as typeSizesStyle};
@@ -0,0 +1,2 @@
1
+ import type { HostProduct } from "./editor-chrome.js";
2
+ export declare function useHostProducts(): readonly HostProduct[] | null;
@@ -0,0 +1 @@
1
+ "use client";import{useEffect as u,useState as n}from"react";import{useEditorSession as i}from"./editor-session-context.js";function f(){const t=i().chrome?.products?.list,[s,o]=n(null);return u(()=>{if(!t)return;let e=!1;return t().then(r=>{e||o(r)}),()=>{e=!0}},[t]),s}export{f as useHostProducts};
@@ -0,0 +1,193 @@
1
+ import type { LockHolder, SaveConflict } from "efficient-easel/edit-lock";
2
+ import type { HostPickedMedia } from "./editor-host.js";
3
+ import type { SiteThemeRow, SiteThemeRowPatch } from "./site-theme-row.js";
4
+ import type { SectionTemplate, SectionTemplateRecord } from "./section-template-types.js";
5
+ export type PageLayout = Record<string, unknown>;
6
+ export type EditorPageRow = {
7
+ id: string;
8
+ slug: string;
9
+ label: string;
10
+ group?: string | null;
11
+ groupKey?: string;
12
+ draft: boolean;
13
+ kind?: string | null;
14
+ };
15
+ export type PageBundle = {
16
+ layout: PageLayout;
17
+ translations?: Record<string, unknown>;
18
+ seo?: Record<string, {
19
+ title?: string;
20
+ description?: string;
21
+ }>;
22
+ };
23
+ export type PageDocument = PageBundle & {
24
+ id: string;
25
+ version: string | null;
26
+ kind?: string | null;
27
+ };
28
+ export type SiteScope = {
29
+ siteId?: string;
30
+ };
31
+ export type PageRef = ({
32
+ slug: string;
33
+ } | {
34
+ id: string;
35
+ }) & SiteScope;
36
+ export type NewPageInput = {
37
+ slug: string;
38
+ title: string;
39
+ layout: PageLayout;
40
+ } & SiteScope;
41
+ export type SaveExpectation = {
42
+ version: string | null;
43
+ clientId: string;
44
+ };
45
+ export interface LinkTargetPage {
46
+ id: string;
47
+ slug: string;
48
+ label: string;
49
+ layout: PageLayout | null;
50
+ }
51
+ export interface WebsitePages {
52
+ list(scope?: SiteScope): Promise<EditorPageRow[]>;
53
+ load(ref: PageRef): Promise<PageDocument | null>;
54
+ save(id: string, doc: PageBundle, expect: SaveExpectation): Promise<{
55
+ version: string | null;
56
+ }>;
57
+ version?(id: string): Promise<string | null>;
58
+ publish?(id: string, expect?: {
59
+ version: string;
60
+ }): Promise<{
61
+ version: string | null;
62
+ }>;
63
+ create?(input: NewPageInput): Promise<EditorPageRow>;
64
+ remove?(id: string): Promise<void>;
65
+ linkTargets?(scope?: SiteScope): Promise<LinkTargetPage[]>;
66
+ }
67
+ export interface WebsiteEditLock {
68
+ claim(id: string, clientId: string, takeover: boolean): Promise<{
69
+ heartbeatSeconds: number;
70
+ }>;
71
+ release(id: string, clientId: string): Promise<void>;
72
+ }
73
+ export interface SiteRecord {
74
+ name: string;
75
+ slug?: string | null;
76
+ mapsApiKey?: string | null;
77
+ mapsMapId?: string | null;
78
+ }
79
+ export type SiteRecordPatch = {
80
+ mapsApiKey?: string;
81
+ };
82
+ export interface WebsiteSite {
83
+ get(scope?: SiteScope): Promise<SiteRecord>;
84
+ update?(patch: SiteRecordPatch, scope?: SiteScope): Promise<SiteRecord>;
85
+ languages?(): Promise<{
86
+ base: string;
87
+ others: string[];
88
+ }>;
89
+ }
90
+ export interface WebsiteMedia {
91
+ resolve(ref: string, options?: {
92
+ width?: number;
93
+ }): string | null;
94
+ upload?(file: File): Promise<HostPickedMedia>;
95
+ maxUploadBytes?: number;
96
+ }
97
+ export interface WebsiteSectionTemplates {
98
+ list(): Promise<SectionTemplate[]>;
99
+ get(id: string): Promise<SectionTemplateRecord | null>;
100
+ ensure(id: string, name: string, node: SectionTemplate["node"]): Promise<SectionTemplate>;
101
+ save(name: string, node: SectionTemplate["node"]): Promise<SectionTemplate>;
102
+ update(id: string, node: SectionTemplate["node"]): Promise<SectionTemplate>;
103
+ rename(id: string, name: string): Promise<SectionTemplateRecord>;
104
+ remove(id: string): Promise<void>;
105
+ }
106
+ export interface WebsiteTemplates {
107
+ get(id: string): Promise<{
108
+ id: string;
109
+ name: string;
110
+ }>;
111
+ pages(templateId: string): WebsitePages;
112
+ }
113
+ export interface WebsitePreview {
114
+ href(slug: string): string;
115
+ }
116
+ export interface BlogPostRow {
117
+ slug: string;
118
+ title: string;
119
+ excerpt: string;
120
+ category: string;
121
+ coverImage: string;
122
+ publishedAt: string | null;
123
+ href: string;
124
+ }
125
+ export interface WebsiteBlog {
126
+ posts(scope?: SiteScope): Promise<BlogPostRow[]>;
127
+ }
128
+ export interface ChatSettings {
129
+ enabled: boolean;
130
+ title: string;
131
+ subtitle: string;
132
+ greeting: string;
133
+ }
134
+ export interface WebsiteChat {
135
+ get(scope?: SiteScope): Promise<ChatSettings>;
136
+ update(patch: Partial<ChatSettings>, scope?: SiteScope): Promise<ChatSettings>;
137
+ }
138
+ export interface WebsiteTheme {
139
+ get(scope?: SiteScope): Promise<SiteThemeRow>;
140
+ update(patch: SiteThemeRowPatch, scope?: SiteScope): Promise<SiteThemeRow>;
141
+ }
142
+ export type SocialLinkSettings = Record<string, string>;
143
+ export interface WebsiteSocial {
144
+ get(scope?: SiteScope): Promise<SocialLinkSettings>;
145
+ update(patch: SocialLinkSettings, scope?: SiteScope): Promise<SocialLinkSettings>;
146
+ }
147
+ export interface WebsiteBackend {
148
+ pages: WebsitePages;
149
+ lock?: WebsiteEditLock;
150
+ site: WebsiteSite;
151
+ media: WebsiteMedia;
152
+ sectionTemplates?: WebsiteSectionTemplates;
153
+ templates?: WebsiteTemplates;
154
+ preview?: WebsitePreview;
155
+ blog?: WebsiteBlog;
156
+ chat?: WebsiteChat;
157
+ social?: WebsiteSocial;
158
+ theme?: WebsiteTheme;
159
+ }
160
+ export type WebsiteBackendErrorKind = "unauthorized" | "changed-elsewhere" | "lock-taken" | "not-found" | "invalid" | "unavailable";
161
+ export declare class WebsiteBackendError extends Error {
162
+ readonly kind: WebsiteBackendErrorKind;
163
+ readonly conflict?: SaveConflict;
164
+ readonly holder?: LockHolder;
165
+ readonly fields?: Readonly<Record<string, string>>;
166
+ constructor(kind: WebsiteBackendErrorKind, message?: string, detail?: {
167
+ conflict?: SaveConflict;
168
+ holder?: LockHolder;
169
+ fields?: Readonly<Record<string, string>>;
170
+ cause?: unknown;
171
+ });
172
+ }
173
+ export declare function isBackendError(err: unknown, kind?: WebsiteBackendErrorKind): err is WebsiteBackendError;
174
+ export declare const STATUS_UNREACHABLE = 0;
175
+ export interface HostFailure {
176
+ status: number;
177
+ data: unknown;
178
+ message: string;
179
+ }
180
+ interface HostFailures {
181
+ read(err: unknown): HostFailure | null;
182
+ unreachableMessage: string;
183
+ loadRefusal?(err: unknown, document: {
184
+ slug: string;
185
+ }): string | null;
186
+ }
187
+ export declare function provideHostFailures(failures: HostFailures): void;
188
+ export declare function readHostFailure(err: unknown): HostFailure | null;
189
+ export declare function hostLoadRefusalOf(err: unknown, document: {
190
+ slug: string;
191
+ }): string | null;
192
+ export declare function hostUnreachableMessage(): string;
193
+ export {};
@@ -0,0 +1 @@
1
+ class i extends Error{kind;conflict;holder;fields;constructor(n,r,s={}){super(r??t[n],s.cause===void 0?void 0:{cause:s.cause}),this.name="WebsiteBackendError",this.kind=n,this.conflict=s.conflict,this.holder=s.holder,this.fields=s.fields}}const t={unauthorized:"The editor's sign-in was refused.","changed-elsewhere":"This page was changed somewhere else.","lock-taken":"Somebody else is editing this page.","not-found":"This no longer exists.",invalid:"The request was refused.",unavailable:"The server could not be reached."};function a(e,n){if(!e||typeof e!="object")return!1;const r=e;return r.name!=="WebsiteBackendError"||typeof r.kind!="string"?!1:n===void 0||r.kind===n}const u=0;let o=null;function c(e){o=e}function d(e){return o?.read(e)??null}function l(e,n){return o?.loadRefusal?.(e,n)??null}function h(){return o?.unreachableMessage??"The server could not be reached."}export{u as STATUS_UNREACHABLE,i as WebsiteBackendError,l as hostLoadRefusalOf,h as hostUnreachableMessage,a as isBackendError,c as provideHostFailures,d as readHostFailure};
@@ -0,0 +1,7 @@
1
+ export declare function configureWebRuntime(next: {
2
+ siteSlug?: string | null;
3
+ shopOrigin?: string | null;
4
+ }): void;
5
+ export declare function resetWebRuntime(): void;
6
+ export declare function webRuntimeSiteSlug(): string | null;
7
+ export declare function shopRouteBase(): string;
@@ -0,0 +1 @@
1
+ const t={siteSlug:null,shopOrigin:""};let e=t;function n(i){e={siteSlug:i.siteSlug?.trim()||null,shopOrigin:(i.shopOrigin??"").trim().replace(/\/+$/,"")}}function u(){e=t}function r(){return e.siteSlug}function o(){return e.shopOrigin}export{n as configureWebRuntime,u as resetWebRuntime,o as shopRouteBase,r as webRuntimeSiteSlug};
@@ -0,0 +1,54 @@
1
+ export declare const WORD_STYLES: readonly ["highlight", "strong", "quiet"];
2
+ export type WordStyleName = (typeof WORD_STYLES)[number];
3
+ export declare const WORD_STYLE_LABELS: Record<WordStyleName, string>;
4
+ export declare const WORD_STYLE_MARKS: Readonly<Record<WordStyleName, {
5
+ kind: string;
6
+ delimiter: string;
7
+ }>>;
8
+ export declare const WORD_STYLE_BY_KIND: Readonly<Record<string, WordStyleName>>;
9
+ export declare const WORD_STYLE_ATTR = "data-sf-ws";
10
+ export declare const WORD_STYLE_COLOURS: readonly ["accent", "text", "labels"];
11
+ export type WordStyleColour = (typeof WORD_STYLE_COLOURS)[number];
12
+ export declare const WORD_STYLE_COLOUR_LABELS: Record<WordStyleColour, string>;
13
+ export declare const COLOUR_TOKEN: Record<WordStyleColour, string>;
14
+ export interface WordStyleValue {
15
+ font?: string | null;
16
+ size?: number | null;
17
+ weight?: number | null;
18
+ bold?: boolean | null;
19
+ italic?: boolean | null;
20
+ lineGap?: number | null;
21
+ textGap?: number | null;
22
+ colour?: WordStyleColour | null;
23
+ }
24
+ export interface ResolvedWordStyle {
25
+ font: string | null;
26
+ size: number | null;
27
+ weight: number | null;
28
+ bold: boolean | null;
29
+ italic: boolean | null;
30
+ lineGap: number | null;
31
+ textGap: number | null;
32
+ colour: WordStyleColour | null;
33
+ }
34
+ export declare const WORD_STYLE_SIZE_MIN = 80;
35
+ export declare const WORD_STYLE_SIZE_MAX = 120;
36
+ export declare const WORD_STYLE_WEIGHT_MIN = 100;
37
+ export declare const WORD_STYLE_WEIGHT_MAX = 900;
38
+ export declare const WORD_STYLE_LINE_GAP_MIN = 0.5;
39
+ export declare const WORD_STYLE_LINE_GAP_MAX = 3;
40
+ export declare const WORD_STYLE_TEXT_GAP_MIN = -0.1;
41
+ export declare const WORD_STYLE_TEXT_GAP_MAX = 0.5;
42
+ export declare const WORD_STYLE_GAP_PRECISION = 3;
43
+ export declare const DEFAULT_WORD_STYLES: Record<WordStyleName, ResolvedWordStyle>;
44
+ export declare function normalizeWordStyle(v?: WordStyleValue | null): ResolvedWordStyle;
45
+ export declare function normalizeWordStyles(v?: Partial<Record<WordStyleName, WordStyleValue | null>> | null): Record<WordStyleName, ResolvedWordStyle>;
46
+ export declare function wordStyleIsDefault(name: WordStyleName, v?: WordStyleValue | null): boolean;
47
+ export declare function wordStyleTokens(v?: Partial<Record<WordStyleName, WordStyleValue | null>> | null): Record<string, string>;
48
+ export interface WordStylesRow {
49
+ word_styles?: Partial<Record<string, WordStyleValue | null>> | null;
50
+ }
51
+ export declare function wordStylesFromRow(row?: WordStylesRow | null): Record<WordStyleName, ResolvedWordStyle>;
52
+ export declare function wordStylesToRow(v?: Partial<Record<WordStyleName, WordStyleValue | null>> | null): {
53
+ word_styles: Record<WordStyleName, ResolvedWordStyle>;
54
+ };
@@ -0,0 +1 @@
1
+ import{FONT_OPTIONS as a}from"./fonts.js";const i=["highlight","strong","quiet"],Y={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},O={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},G=Object.fromEntries(i.map(t=>[O[t].kind,t])),N="data-sf-ws",T=["accent","text","labels"],A={accent:"Accent",text:"Text",labels:"Labels"},E={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},g=80,h=120,m=100,L=900,R=.5,w=3,W=-.1,D=.5,b=3,c={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},_={highlight:{...c},strong:{...c},quiet:{...c}};function f(t,e,o){return typeof t!="number"||!Number.isFinite(t)?null:Math.round(Math.min(Math.max(t,e),o))}function p(t,e,o){if(typeof t!="number"||!Number.isFinite(t))return null;const l=10**b;return Math.round(Math.min(Math.max(t,e),o)*l)/l}function S(t){return typeof t=="boolean"?t:null}function d(t){const e=typeof t?.font=="string"&&a.some(l=>l.key===t.font)?t.font:null,o=typeof t?.colour=="string"&&T.includes(t.colour)?t.colour:null;return{font:e,size:f(t?.size,g,h),weight:f(t?.weight,m,L),bold:S(t?.bold),italic:S(t?.italic),lineGap:p(t?.lineGap,R,w),textGap:p(t?.textGap,W,D),colour:o}}function s(t){const e={};for(const o of i)e[o]=t&&o in t&&t[o]?d(t[o]):{..._[o]};return e}function I(t,e){const o=d(e),l=_[t];return Object.keys(l).every(n=>o[n]===l[n])}function M(t){const e=s(t),o={};for(const l of i){const n=e[l],r=`--sf-ws-${l}`;if(n.font){const u=a.find(x=>x.key===n.font);u&&(o[`${r}-font`]=`var(${u.cssVar})`)}n.size!==null&&(o[`${r}-size`]=`${n.size/100}em`),n.weight!==null&&(o[`${r}-weight`]=String(n.weight)),n.bold!==null&&(o[`${r}-weight-bold`]=n.bold?"700":"400"),n.italic!==null&&(o[`${r}-style`]=n.italic?"italic":"normal"),n.lineGap!==null&&(o[`${r}-line`]=String(n.lineGap)),n.textGap!==null&&(o[`${r}-track`]=`${n.textGap}em`),n.colour!==null&&(o[`${r}-color`]=E[n.colour])}return o}function $(t){const e=t?.word_styles??void 0,o={};for(const l of i)e&&l in e&&(o[l]=e[l]??null);return s(o)}function k(t){return{word_styles:s(t)}}export{E as COLOUR_TOKEN,_ as DEFAULT_WORD_STYLES,i as WORD_STYLES,N as WORD_STYLE_ATTR,G as WORD_STYLE_BY_KIND,T as WORD_STYLE_COLOURS,A as WORD_STYLE_COLOUR_LABELS,b as WORD_STYLE_GAP_PRECISION,Y as WORD_STYLE_LABELS,w as WORD_STYLE_LINE_GAP_MAX,R as WORD_STYLE_LINE_GAP_MIN,O as WORD_STYLE_MARKS,h as WORD_STYLE_SIZE_MAX,g as WORD_STYLE_SIZE_MIN,D as WORD_STYLE_TEXT_GAP_MAX,W as WORD_STYLE_TEXT_GAP_MIN,L as WORD_STYLE_WEIGHT_MAX,m as WORD_STYLE_WEIGHT_MIN,d as normalizeWordStyle,s as normalizeWordStyles,I as wordStyleIsDefault,M as wordStyleTokens,$ as wordStylesFromRow,k as wordStylesToRow};
package/package.json CHANGED
@@ -1,59 +1,63 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "0.9.0",
4
- "description": "The EFFICIENT website builder — the website editor and its sections — for an app that edits a website inside its own page. Built from the efficient-storefront repository's own source.",
3
+ "version": "1.0.0",
4
+ "description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/Efficient-Pty-Ltd/efficient-storefront.git",
10
- "directory": "packages/website"
9
+ "url": "git+https://github.com/Efficient-Pty-Ltd/efficient-web-builder.git"
11
10
  },
12
11
  "publishConfig": {
13
12
  "access": "public"
14
13
  },
15
- "type": "module",
16
- "sideEffects": [
17
- "**/*.css"
18
- ],
19
14
  "exports": {
20
- ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.js",
23
- "default": "./dist/index.js"
24
- },
25
- "./contract": {
26
- "types": "./dist/contract.d.ts",
27
- "import": "./dist/contract.js",
28
- "default": "./dist/contract.js"
29
- },
30
- "./links": {
31
- "types": "./dist/links.d.ts",
32
- "import": "./dist/links.js",
33
- "default": "./dist/links.js"
34
- },
35
- "./editor.css": "./dist/editor.css"
15
+ "./package.json": "./package.json",
16
+ "./*.css": "./dist/*.css",
17
+ "./*.json": "./dist/*.json",
18
+ "./*": {
19
+ "types": "./dist/*.d.ts",
20
+ "default": "./dist/*.js"
21
+ }
36
22
  },
37
23
  "files": [
38
- "dist/index.js",
39
- "dist/index.d.ts",
40
- "dist/contract.js",
41
- "dist/contract.d.ts",
42
- "dist/links.js",
43
- "dist/links.d.ts",
44
- "dist/editor.css",
45
- "dist/chunks",
24
+ "dist",
46
25
  "README.md",
47
26
  "CHANGELOG.md",
48
27
  "LICENSE"
49
28
  ],
29
+ "packageManager": "pnpm@11.7.0",
30
+ "scripts": {
31
+ "typecheck": "tsc --noEmit",
32
+ "test:boundary": "node scripts/test-boundary.mjs",
33
+ "build": "node scripts/build.mjs",
34
+ "verify:dist": "node scripts/verify-dist.mjs",
35
+ "verify": "pnpm run typecheck && pnpm run test:boundary && pnpm run build && pnpm run verify:dist"
36
+ },
50
37
  "peerDependencies": {
51
- "efficient-easel": "^0.100.0",
38
+ "@tabler/icons-react": "^3.46.0",
39
+ "efficient-easel": "^0.101.0",
52
40
  "efficient-shell": "^4.131.0",
41
+ "isomorphic-dompurify": "^3.18.0",
42
+ "next": ">=16",
53
43
  "react": ">=19",
54
- "react-dom": ">=19"
44
+ "react-dom": ">=19",
45
+ "simple-icons": "^16.26.0"
55
46
  },
56
- "scripts": {
57
- "build": "node build.mjs && cp src/public.d.ts dist/index.d.ts"
47
+ "devDependencies": {
48
+ "@tabler/icons-react": "^3.46.0",
49
+ "@types/google.maps": "^3.64.1",
50
+ "@types/node": "^20",
51
+ "@types/react": "^19",
52
+ "@types/react-dom": "^19",
53
+ "efficient-easel": "^0.101.0",
54
+ "efficient-shell": "^4.131.0",
55
+ "esbuild": "^0.28.0",
56
+ "isomorphic-dompurify": "^3.18.0",
57
+ "next": "16.2.11",
58
+ "react": "19.2.4",
59
+ "react-dom": "19.2.4",
60
+ "simple-icons": "^16.26.0",
61
+ "typescript": "^5"
58
62
  }
59
63
  }
@@ -1,4 +0,0 @@
1
- "use client";import{F as qt,G as _t,H as Dt,I as se,J as we,K as Ft,L as Ut,M as Xe,N as Mt,P as Ze,V as Kt,Y as Qe,Z as $t,a as Ot,b as Lt,c as Tt,ca as Wt,d as jt,da as Yt,ea as Bt}from"./chunk-EKKAVQJX.js";import{i as _e,m as fe,t as T}from"./chunk-7QXLVNFD.js";import"./chunk-RRHBLOH4.js";import{Ka as It,a as Rt,c as ee}from"./chunk-FU5UZ4UY.js";import{t as At,u as Se,v as B}from"./chunk-6CP4D6VJ.js";import{a as Je,b as ar}from"./chunk-Y6SLVHK3.js";var Ht=Je((ea,zt)=>{"use strict";var or="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";zt.exports=or});var Xt=Je((ta,Jt)=>{"use strict";var ir=Ht();function Vt(){}function Gt(){}Gt.resetWarningCache=Vt;Jt.exports=function(){function t(a,o,s,l,d,p){if(p!==ir){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Gt,resetWarningCache:Vt};return n.PropTypes=n,n}});var Qt=Je((aa,Zt)=>{"use strict";Zt.exports=Xt()();var na,ra});import{useEffect as $,useMemo as Be,useRef as le,useState as g}from"react";var w=ar(Qt(),1);import x from"react";function en(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function sr(t){if(Array.isArray(t))return t}function on(t,e,n){return(e=mr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cr(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,o,s,l,d=[],p=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(p=(a=s.call(n)).done)&&(d.push(a.value),d.length!==e);p=!0);}catch(v){u=!0,o=v}finally{try{if(!p&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return d}}function lr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function nn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tn(Object(n),!0).forEach(function(a){on(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ur(t,e){if(t==null)return{};var n,a,o=pr(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)n=s[a],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function pr(t,e){if(t==null)return{};var n={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;n[a]=t[a]}return n}function sn(t,e){return sr(t)||cr(t,e)||fr(t,e)||lr()}function dr(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mr(t){var e=dr(t,"string");return typeof e=="symbol"?e:e+""}function et(t){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(t)}function fr(t,e){if(t){if(typeof t=="string")return en(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}var j=function(e,n,a){var o=!!a,s=x.useRef(a);x.useEffect(function(){s.current=a},[a]),x.useEffect(function(){if(!o||!e)return function(){};var l=function(){if(s.current)return s.current.apply(s,arguments)};return e.on(n,l),function(){e.off(n,l)}},[o,n,e,s])},tt=function(e){var n=x.useRef(e);return x.useEffect(function(){n.current=e},[e]),n.current},ge=function(e){return e!==null&&et(e)==="object"},gr=function(e){return ge(e)&&typeof e.then=="function"},yr=function(e){return ge(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},rn="[object Object]",hr=function t(e,n){if(!ge(e)||!ge(n))return e===n;var a=Array.isArray(e),o=Array.isArray(n);if(a!==o)return!1;var s=Object.prototype.toString.call(e)===rn,l=Object.prototype.toString.call(n)===rn;if(s!==l)return!1;if(!s&&!a)return e===n;var d=Object.keys(e),p=Object.keys(n);if(d.length!==p.length)return!1;for(var u={},v=0;v<d.length;v+=1)u[d[v]]=!0;for(var b=0;b<p.length;b+=1)u[p[b]]=!0;var m=Object.keys(u);if(m.length!==d.length)return!1;var h=e,A=n,k=function(S){return t(h[S],A[S])};return m.every(k)},cn=function(e,n,a){return ge(e)?Object.keys(e).reduce(function(o,s){var l=!ge(n)||!hr(e[s],n[s]);return a.includes(s)?(l&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),o):l?nn(nn({},o||{}),{},on({},s,e[s])):o},null):null},ln="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",an=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ln;if(e===null||yr(e))return e;throw new Error(n)},vr=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ln;if(gr(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return an(o,n)})};var a=an(e,n);return a===null?{tag:"empty"}:{tag:"sync",stripe:a}},br=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"6.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},De=x.createContext(null);De.displayName="ElementsContext";var un=function(e,n){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return e},rt=function(e){var n=e.stripe,a=e.options,o=e.children,s=x.useMemo(function(){return vr(n)},[n]),l=x.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(a):null}}),d=sn(l,2),p=d[0],u=d[1];x.useEffect(function(){var m=!0,h=function(k){u(function(C){return C.stripe?C:{stripe:k,elements:k.elements(a)}})};return s.tag==="async"&&!p.stripe?s.stripePromise.then(function(A){A&&m&&h(A)}):s.tag==="sync"&&!p.stripe&&h(s.stripe),function(){m=!1}},[s,p,a]);var v=tt(n);x.useEffect(function(){v!==null&&v!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[v,n]);var b=tt(a);return x.useEffect(function(){if(p.elements){var m=cn(a,b,["clientSecret","fonts"]);m&&p.elements.update(m)}},[a,b,p.elements]),x.useEffect(function(){br(p.stripe)},[p.stripe]),x.createElement(De.Provider,{value:p},o)};rt.propTypes={stripe:w.default.any,options:w.default.object};var pn=function(e){var n=x.useContext(De);return un(n,e)},dn=function(){var e=pn("calls useElements()"),n=e.elements;return n},xr=function(e){var n=e.children,a=pn("mounts <ElementsConsumer>");return n(a)};xr.propTypes={children:w.default.func.isRequired};var mn=x.createContext(null);mn.displayName="CheckoutContext";var nt=function(e){var n=x.useContext(mn),a=x.useContext(De);if(n){if(a)throw new Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."));return n}else return un(a,e)},kr=["mode"],Cr=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},R=function(e,n,a){var o="".concat(Cr(e),"Element"),s=function(u){var v=u.id,b=u.className,m=u.options,h=m===void 0?{}:m,A=u.onBlur,k=u.onFocus,C=u.onReady,S=u.onChange,F=u.onEscape,L=u.onClick,J=u.onLoadError,te=u.onLoaderStart,Ee=u.onNetworksChange,ue=u.onConfirm,Re=u.onCancel,ne=u.onShippingAddressChange,Ie=u.onShippingRateChange,re=u.onSavedPaymentMethodRemove,Ae=u.onSavedPaymentMethodUpdate,ye=u.onAvailablePaymentMethodsChange,ae=nt("mounts <".concat(o,">")),Q="elements"in ae?ae.elements:null,W="checkoutState"in ae?ae.checkoutState:null,H=W?.type==="success"||W?.type==="loading"?W.sdk:null,he=x.useState(null),pe=sn(he,2),E=pe[0],ve=pe[1],_=x.useRef(null),oe=x.useRef(null);j(E,"blur",A),j(E,"focus",k),j(E,"escape",F),j(E,"click",L),j(E,"loaderror",J),j(E,"loaderstart",te),j(E,"networkschange",Ee),j(E,"confirm",ue),j(E,"cancel",Re),j(E,"shippingaddresschange",ne),j(E,"shippingratechange",Ie),j(E,"savedpaymentmethodremove",re),j(E,"savedpaymentmethodupdate",Ae),j(E,"availablepaymentmethodschange",ye),j(E,"change",S);var ie;C&&(e==="expressCheckout"?ie=C:ie=function(){C(E)}),j(E,"ready",ie),x.useLayoutEffect(function(){if(_.current===null&&oe.current!==null&&(Q||H)){var P=null;if(H){var V=H,be=H;switch(e){case"paymentForm":P=be.createForm(h);break;case"payment":P=V.createPaymentElement(h);break;case"address":if("mode"in h){var de=h.mode,xe=ur(h,kr);if(de==="shipping")P=V.createShippingAddressElement(xe);else if(de==="billing")P=V.createBillingAddressElement(xe);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":P=V.createExpressCheckoutElement(h);break;case"currencySelector":P=H.createCurrencySelectorElement();break;case"taxId":P=V.createTaxIdElement(h);break;case"contactDetails":P=V.createContactDetailsElement();break;default:throw new Error("<".concat(o,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else Q&&(P=Q.create(e,h));_.current=P,ve(P),P&&P.mount(oe.current)}},[Q,H,h]);var Y=tt(h);return x.useEffect(function(){if(_.current){var P=cn(h,Y,["paymentRequest"]);P&&"update"in _.current&&_.current.update(P)}},[h,Y]),x.useLayoutEffect(function(){return function(){if(_.current&&typeof _.current.destroy=="function")try{_.current.destroy(),_.current=null}catch{}}},[]),x.createElement("div",{id:v,className:b,ref:oe})},l=function(u){nt("mounts <".concat(o,">"));var v=u.id,b=u.className;return x.createElement("div",{id:v,className:b})},d=n?l:s;return d.propTypes={id:w.default.string,className:w.default.string,onChange:w.default.func,onBlur:w.default.func,onFocus:w.default.func,onReady:w.default.func,onEscape:w.default.func,onClick:w.default.func,onLoadError:w.default.func,onLoaderStart:w.default.func,onNetworksChange:w.default.func,onConfirm:w.default.func,onCancel:w.default.func,onShippingAddressChange:w.default.func,onShippingRateChange:w.default.func,onSavedPaymentMethodRemove:w.default.func,onSavedPaymentMethodUpdate:w.default.func,onAvailablePaymentMethodsChange:w.default.func,options:w.default.object},d.displayName=o,d.__elementType=e,d},I=typeof window>"u",Sr=x.createContext(null);Sr.displayName="EmbeddedCheckoutProviderContext";var fn=function(){var e=nt("calls useStripe()"),n=e.stripe;return n},ia=R("auBankAccount",I),sa=R("card",I),ca=R("cardNumber",I),la=R("cardExpiry",I),ua=R("cardCvc",I),pa=R("currencySelector",I),da=R("iban",I),gn=R("payment",I),ma=R("expressCheckout",I),fa=R("paymentRequestButton",I),ga=R("linkAuthentication",I),ya=R("contactDetails",I),ha=R("address",I),va=R("shippingAddress",I),ba=R("paymentMethodMessaging",I),xa=R("taxId",I),ka=R("issuingCardNumberDisplay",I),Ca=R("issuingCardCvcDisplay",I),Sa=R("issuingCardExpiryDisplay",I),wa=R("issuingCardPinDisplay",I),Pa=R("issuingCardCopyButton",I);function Me(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(e){return typeof e}:Me=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(t)}var vn="dahlia",wr=function(e){return e===3?"v3":e},bn="https://js.stripe.com",Pr="".concat(bn,"/").concat(vn,"/stripe.js"),Nr=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Er=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,yn="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Rr=function(e){return Nr.test(e)||Er.test(e)},Ir=function(){for(var e=document.querySelectorAll('script[src^="'.concat(bn,'"]')),n=0;n<e.length;n++){var a=e[n];if(Rr(a.src))return a}return null},hn=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",a=document.createElement("script");a.src="".concat(Pr).concat(n);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(a),a},Ar=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"9.9.0",startTime:n})},Pe=null,Fe=null,Ue=null,Or=function(e){return function(n){e(new Error("Failed to load Stripe.js",{cause:n}))}},Lr=function(e,n){return function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))}},Tr=function(e){return Pe!==null?Pe:(Pe=new Promise(function(n,a){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&e&&console.warn(yn),window.Stripe){n(window.Stripe);return}try{var o=Ir();if(o&&e)console.warn(yn);else if(!o)o=hn(e);else if(o&&Ue!==null&&Fe!==null){var s;o.removeEventListener("load",Ue),o.removeEventListener("error",Fe),(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=hn(e)}Ue=Lr(n,a),Fe=Or(a),o.addEventListener("load",Ue),o.addEventListener("error",Fe)}catch(l){a(l);return}}),Pe.catch(function(n){return Pe=null,Promise.reject(n)}))},jr=function(e,n,a){if(e===null)return null;var o=n[0];if(typeof o!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(Me(o)," instead."));var s=o.match(/^pk_test/),l=wr(e.version),d=vn;s&&l!==d&&console.warn("Stripe.js@".concat(l," was loaded on the page, but @stripe/stripe-js@").concat("9.9.0"," expected Stripe.js@").concat(d,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var p=e.apply(void 0,n);return Ar(p,a),p},Ne,xn=!1,kn=function(){return Ne||(Ne=Tr(null).catch(function(e){return Ne=null,Promise.reject(e)}),Ne)};Promise.resolve().then(function(){return kn()}).catch(function(t){xn||console.warn(t)});var Cn=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];xn=!0;var o=Date.now();return kn().then(function(s){return jr(s,n,o)})};var qr="sf:gclid",_r="sf:fbclid",Dr=2160*60*60*1e3;function Pn(){return typeof window<"u"}function Sn(t){let e=Se.getItem(t);if(!e)return"";try{let{v:n,t:a}=JSON.parse(e);return!n||typeof a!="number"||Date.now()-a>Dr?"":n}catch{return""}}function wn(t){if(!Pn())return"";let e=t.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1"),n=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));return n?decodeURIComponent(n[1]):""}function Nn(){if(!Pn())return{};let t=Sn(qr),e=Sn(_r),n=wn("_fbp"),a=wn("_fbc");!a&&e&&(a=`fb.1.${Date.now()}.${e}`);let o={};return t&&(o.gclid=t),e&&(o.fbclid=e),n&&(o.fbp=n),a&&(o.fbc=a),o}var En="sf:meta-purchases",Fr=20;function In(){return typeof window>"u"||window.parent!==window}function Ur(...t){try{if(In()||typeof window.fbq!="function")return;window.fbq(...t)}catch{}}var Rn=new Set;function Mr(t){if(Rn.has(t))return!1;Rn.add(t);try{let e=JSON.parse(Se.getItem(En)??"[]");if(e.includes(t))return!1;Se.setItem(En,JSON.stringify([...e,t].slice(-Fr)))}catch{}return!0}function Kr(t){return[...new Set(t.filter(we).flatMap(e=>e.components.map(n=>n.partNumber)))]}function An(t){let e=t.confirmation;In()||!Mr(e.orderNumber)||Ur("track","Purchase",{value:Number(e.grandTotal),currency:e.currency,content_type:"product",content_ids:Kr(t.lines)},{eventID:e.orderNumber})}var at="checkout-afterpay-context",Ke="checkout-gocardless-context",ot="checkout-zip-context",$e="checkout-klarna-context";function $r({evidence:t,parked:e}){return t?{action:"capture",evidence:t,parked:e}:e?{action:"settle",parked:e}:{action:"ignore"}}function Wr(t,e){let n=t.getItem(e);if(t.removeItem(e),!n)return null;try{return JSON.parse(n)}catch{return null}}var On={name:"Afterpay",legParam:"afterpay",legValues:["confirm","cancel"],storageKey:at,evidenceFrom(t,e){return e==="cancel"||(t.get("status")??"").toUpperCase()==="CANCELLED"?null:t.get("orderToken")},requestFrom:t=>({token:t})},Ln={name:"Zip",legParam:"zip",legValues:["return"],storageKey:ot,evidenceFrom(t){let e=(t.get("result")??"").toLowerCase();return e==="cancelled"||e==="declined"?null:t.get("checkoutId")},requestFrom:t=>({checkoutId:t})};async function it(t,e){let n=new URLSearchParams(e.search),a=n.get(t.legParam);if(!a||!t.legValues.includes(a))return;let o=Wr(e.storage,t.storageKey),s=t.evidenceFrom(n,a);e.scrubQuery();let l=$r({evidence:s,parked:o});if(l.action!=="ignore"){if(e.page.clearCart(),l.action==="settle"){e.page.note(`The ${t.name} payment was not completed \u2014 our team will follow up on payment.`),e.page.land(l.parked.confirmation);return}e.page.setConfirming(!0);try{let d=await e.capture(t.requestFrom(l.evidence));d.status==="paid"?e.page.markPaid():e.page.note(`${t.name} declined the payment \u2014 our team will follow up on payment.`),e.page.land(l.parked?.confirmation??d)}catch{l.parked?(e.page.note(`We could not confirm the ${t.name} payment \u2014 our team will follow up on payment.`),e.page.land(l.parked.confirmation)):e.page.fail(`We could not confirm your ${t.name} payment. Please contact us before trying again \u2014 your payment may already have been taken.`)}finally{e.page.setConfirming(!1)}}}import{Fragment as q,jsx as r,jsxs as c}from"react/jsx-runtime";function Tn(t){let e=t.indexOf(`
3
- `);return e===-1?[t,""]:[t.slice(0,e),t.slice(e+1)]}function jn(t,{canParkContext:e}={canParkContext:!0}){let n=t.paymentMethods,a=[];return n.includes("card")&&a.push({key:"card",title:"Card",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"VISA \xB7 MC \xB7 AMEX"})}),n.includes("paypal")&&t.paypalClientId&&a.push({key:"paypal",title:"PayPal",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"PAYPAL \xB7 CARDS"})}),n.includes("afterpay")&&a.push({key:"afterpay",title:"Afterpay",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"4 \xD7 INTEREST-FREE"})}),n.includes("square")&&t.squareApplicationId&&t.squareLocationId&&a.push({key:"square",title:"Card (Square)",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"VISA \xB7 MC \xB7 AMEX"})}),n.includes("gocardless")&&e&&a.push({key:"gocardless",title:"Bank Direct Debit",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"PAY BY BANK"})}),n.includes("zip")&&a.push({key:"zip",title:"Zip",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"PAY IN 4"})}),n.includes("klarna")&&e&&a.push({key:"klarna",title:"Klarna",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-accent",children:"PAY LATER"})}),a.push({key:"bank",title:"Bank transfer",body:null,price:r("span",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Invoiced"})}),a}function lt({site:t,logo:e,preview:n=!1}){let{items:a,totals:o,coupon:s,refuseCoupon:l,deliveryOptions:d,shippingMethodId:p,setShippingMethodId:u,identify:v,clearCapturedCart:b}=Xe(),m=d.find(i=>i.id===p)?.pickupLocation??null,{country:h,countries:A,activeCountry:k,formatMoney:C}=se(),[S,F]=g(()=>jn(t)[0].key),[L,J]=g(!0);$(()=>{J(At(B))},[]);let[te,Ee]=g(!0),[ue,Re]=g(!1),[ne,Ie]=g(""),[re,Ae]=g(""),[ye,ae]=g(""),[Q,W]=g(""),[H,he]=g(""),[pe,E]=g(""),[ve,_]=g(""),[oe,ie]=g(""),[Y,P]=g(()=>h||A[0]?.code||""),[V,be]=g(""),[de,xe]=g([]),Mn=Be(()=>A.find(i=>i.code===Y)??k,[A,Y,k])?.postalLabel||"Postal Code",Kn=de[0]?.divisionType||"State / Province";$(()=>{if(!Y){xe([]);return}let i=!1;return T.listCountrySubdivisions(Y).then(f=>{i||(xe(f),be(""))}),()=>{i=!0}},[Y]);let[X,ut]=g(null),[pt,dt]=g([]),[Oe,Le]=g("new"),[He,mt]=g(!1),[ft,$n]=g("Home"),[gt,yt]=g(null),[U]=g(()=>Bt()),[Te,M]=g(null),[ht,ke]=g(null),[vt,Wn]=g(null),[Yn,Bn]=g(!1),[zn,Hn]=g(!1),[G,Ve]=g(null),[bt,me]=g(!1),[xt,Z]=g(null),[Vn,Gn]=g(!1),[Jn,kt]=g(!1),[Xn,Zn]=g(!1),[Qn,Ct]=g(!1),St=le(!1);$(()=>{n||St.current||!a.some(we)||(St.current=!0,qt({lines:a,currency:o.currency,value:o.subtotal-o.discount,coupon:s?.valid?s.code:void 0}))},[a,o,s,n]),$(()=>{v(ne,re.trim()||void 0)},[ne,re,v]);let wt=le(null),[je,er]=g(null);$(()=>{let i=wt.current;if(!je||!i)return;let f=()=>i.style.setProperty("--sf-checkout-header-h",`${je.offsetHeight}px`);f();let y=new ResizeObserver(f);return y.observe(je),()=>y.disconnect()},[je]),$(()=>{let i=y=>({setConfirming:y,land:M,markPaid:()=>me(!0),note:Z,fail:ke,clearCart:b}),f={search:window.location.search,storage:B,scrubQuery:()=>window.history.replaceState(null,"",window.location.pathname)};it(On,{...f,capture:T.captureAfterpayPayment,page:i(Gn)}),it(Ln,{...f,capture:T.captureZipPayment,page:i(Zn)})},[]),$(()=>{let f=new URLSearchParams(window.location.search).get("gocardless");if(f!=="confirm"&&f!=="cancel")return;let y=B.getItem(Ke);if(B.removeItem(Ke),window.history.replaceState(null,"",window.location.pathname),!y)return;let N;try{N=JSON.parse(y)}catch{return}if(b(),f==="cancel"){Z("The direct debit was not set up \u2014 our team will follow up on payment."),M(N.confirmation);return}kt(!0),T.completeGocardlessPayment({idempotencyKey:N.idempotencyKey}).then(O=>{O.status==="paid"?me(!0):O.status==="declined"?Z("The direct debit was declined \u2014 our team will follow up on payment."):Z("Your direct debit is set up \u2014 the payment is collecting and will clear in a few days.")}).catch(()=>{Z("We could not confirm the direct debit \u2014 our team will follow up on payment.")}).finally(()=>{M(N.confirmation),kt(!1)})},[]),$(()=>{let i=new URLSearchParams(window.location.search),f=i.get("klarna");if(f!=="confirm"&&f!=="cancel")return;let y=B.getItem($e);B.removeItem($e);let N=i.get("authorization_token");if(window.history.replaceState(null,"",window.location.pathname),!y)return;let O;try{O=JSON.parse(y)}catch{return}if(b(),f==="cancel"||!N){Z("The Klarna payment was not completed \u2014 our team will follow up on payment."),M(O.confirmation);return}Ct(!0),T.captureKlarnaPayment({idempotencyKey:O.idempotencyKey,authorizationToken:N}).then(D=>{D.status==="paid"?me(!0):D.status==="declined"?Z("Klarna declined the payment \u2014 our team will follow up on payment."):Z("Your Klarna payment is being reviewed \u2014 we'll confirm the outcome shortly.")}).catch(()=>{Z("We could not confirm the Klarna payment \u2014 our team will follow up on payment.")}).finally(()=>{M(O.confirmation),Ct(!1)})},[]);function Pt(i){let[f,y]=Tn(i.address);W(f),he(y),E(i.city),_(i.zip_code),i.country&&P(i.country),i.phone&&ie(i.phone)}$(()=>{let i=!1;return(async()=>{try{let[f,y,N]=await Promise.all([fe.me(),fe.myProfile().catch(()=>null),fe.myAddresses().catch(()=>[])]);if(i)return;ut(f);let O=N.filter(Ce=>Ce.is_active);dt(O),Ie(f.email);let D=(y?.contact_name??"").split(/\s+/);Ae(f.first_name||D[0]||""),ae(f.last_name||D.slice(1).join(" "));let Et=f.phone||y?.phone;Et&&ie(Et);let Ge=O.find(Ce=>Ce.id===f.default_delivery_location)??O[0];if(Ge)Le(Ge.id),Pt(Ge);else if(y){let[Ce,rr]=Tn(y.address??"");W(Ce),he(rr),E(y.city??""),_(y.zip_code??""),y.country&&P(y.country)}}catch{}})(),()=>{i=!0}},[]);function tr(){fe.logout(),ut(null),dt([]),Le("new"),mt(!1)}let qe=Be(()=>jn(t,{canParkContext:L}),[t,L]);$(()=>{qe.some(i=>i.key===S)||F(qe[0].key)},[qe,S]);let Nt=H.trim()?`${Q}
4
- ${H.trim()}`:Q;async function nr(){if(n||ue||a.length===0||o.repricing)return;let i=a.filter(we).flatMap(f=>jt(f.components,f.qty));if(i.length===0){ke("Pick a size on each wheel's product page before checking out.");return}Re(!0),ke(null);try{let y=await(X?T.createOrderAuthed:T.createOrder)({customer:{email:ne,name:`${re} ${ye}`.trim(),phone:oe.trim()||void 0,address:Nt,city:pe,state:V||void 0,zipCode:ve,country:Y},items:i,currency:o.currency,idempotencyKey:U,shippingMethodId:p??void 0,couponCode:Lt(s),...Nn()});if(_t({confirmation:y,lines:a,adsSendTo:t.googleAdsId&&t.googleAdsConversionLabel?`${t.googleAdsId}/${t.googleAdsConversionLabel}`:null}),An({confirmation:y,lines:a}),b(),X&&He&&Oe==="new")try{await fe.createAddress({label:ft.trim()||"Home",contact_name:`${re} ${ye}`.trim(),phone:oe.trim(),address:Nt,city:pe,zip_code:ve,country:Y}),yt("Address saved to your account.")}catch{yt("We couldn't save the address to your account \u2014 you can add it under Account \u2192 Addresses.")}if(S==="card"&&t.paymentMethods.includes("card")){let N=await T.createPaymentIntent({idempotencyKey:U});Ve(y),Wn(N)}else if(S==="paypal"&&t.paymentMethods.includes("paypal"))Ve(y),Bn(!0);else if(S==="afterpay"&&t.paymentMethods.includes("afterpay")){let N=window.location.origin,O=await T.createAfterpayCheckout({idempotencyKey:U,confirmUrl:`${N}/checkout?afterpay=confirm`,cancelUrl:`${N}/checkout?afterpay=cancel`}),D={idempotencyKey:U,confirmation:y};B.setItem(at,JSON.stringify(D)),window.location.assign(O.redirectCheckoutUrl);return}else if(S==="square"&&t.paymentMethods.includes("square"))Ve(y),Hn(!0);else if(S==="gocardless"&&t.paymentMethods.includes("gocardless")){let N=window.location.origin,O=await T.createGocardlessBillingRequest({idempotencyKey:U,confirmUrl:`${N}/checkout?gocardless=confirm`,cancelUrl:`${N}/checkout?gocardless=cancel`}),D={idempotencyKey:U,confirmation:y};B.setItem(Ke,JSON.stringify(D)),window.location.assign(O.authorisationUrl);return}else if(S==="zip"&&t.paymentMethods.includes("zip")){let N=window.location.origin,O=await T.createZipCheckout({idempotencyKey:U,redirectUrl:`${N}/checkout?zip=return`}),D={idempotencyKey:U,confirmation:y};B.setItem(ot,JSON.stringify(D)),window.location.assign(O.redirectUrl);return}else if(S==="klarna"&&t.paymentMethods.includes("klarna")){let N=window.location.origin,O=await T.createKlarnaCheckout({idempotencyKey:U,confirmUrl:`${N}/checkout?klarna=confirm`,cancelUrl:`${N}/checkout?klarna=cancel`}),D={idempotencyKey:U,confirmation:y};B.setItem($e,JSON.stringify(D)),window.location.assign(O.redirectUrl);return}else M(y)}catch(f){let y=Tt(f);y?(l(y),ke(`${y} Your order has not been placed. Place it again to continue without the code.`)):ke(f instanceof _e?f.message:"Could not place the order. Please try again."),Re(!1)}}return Te?c("div",{className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-bg px-6 text-center text-fg",children:[r("h1",{className:"font-display text-3xl",children:bt?"Payment received":"Order received"}),c("p",{className:"text-fg-dim",children:[bt?c(q,{children:["Thank you \u2014 your payment for order"," ",r("span",{className:"font-mono text-fg",children:Te.orderNumber})," has gone through."," "]}):c(q,{children:["Thank you \u2014 your order ",r("span",{className:"font-mono text-fg",children:Te.orderNumber})," is being reviewed by our team."," "]}),X?c(q,{children:["Track it under"," ",r(ee,{href:"/account/orders",className:"text-accent underline",children:"your orders"}),"."]}):r(q,{children:"We\u2019ve emailed you a link to set a password and track it."})]}),xt&&r("p",{className:"text-sm text-fg-dim",children:xt}),gt&&r("p",{className:"text-sm text-fg-dim",children:gt}),!X&&c("p",{className:"text-sm text-fg-dim",children:["You can also"," ",r(ee,{href:`/track?order=${encodeURIComponent(Te.orderNumber)}`,className:"text-accent underline",children:"track this order"})," ","anytime with just your order number and email \u2014 no password needed."]}),r(ee,{href:"/wheels",className:"mt-2 border-2 border-line px-6 py-3 font-mono text-[12px] uppercase tracking-[0.24em] hover:border-accent",children:"Continue browsing"})]}):Vn?c("div",{className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-bg px-6 text-center text-fg",children:[r("h1",{className:"font-display text-3xl",children:"Confirming your payment\u2026"}),r("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Checking with Afterpay \u2014 one moment."})]}):Jn?c("div",{className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-bg px-6 text-center text-fg",children:[r("h1",{className:"font-display text-3xl",children:"Setting up your direct debit\u2026"}),r("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Confirming with GoCardless \u2014 one moment."})]}):Xn?c("div",{className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-bg px-6 text-center text-fg",children:[r("h1",{className:"font-display text-3xl",children:"Confirming your payment\u2026"}),r("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Checking with Zip \u2014 one moment."})]}):Qn?c("div",{className:"flex min-h-screen flex-col items-center justify-center gap-4 bg-bg px-6 text-center text-fg",children:[r("h1",{className:"font-display text-3xl",children:"Confirming your payment\u2026"}),r("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:"Checking with Klarna \u2014 one moment."})]}):vt?r(Yr,{payment:vt,onPaid:()=>{me(!0),M(G)},onSkip:()=>M(G)}):Yn&&G?r(Hr,{confirmation:G,clientId:t.paypalClientId??"",idemKey:U,onPaid:()=>{me(!0),M(G)},onSkip:()=>M(G)}):zn&&G?r(Gr,{confirmation:G,applicationId:t.squareApplicationId??"",locationId:t.squareLocationId??"",environment:t.squareEnvironment??"production",idemKey:U,onPaid:()=>{me(!0),M(G)},onSkip:()=>M(G)}):c("div",{ref:wt,className:"bg-bg text-fg",children:[c("header",{ref:er,className:"sticky top-0 z-30 grid grid-cols-[1fr_auto_1fr] items-center gap-8 border-b border-line px-[var(--sf-site-gutter,40px)] py-[22px] backdrop-blur-md max-[640px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[640px]:py-4",style:{background:"color-mix(in oklab, var(--bg) 92%, transparent)"},children:[c(ee,{href:"/",className:"inline-flex items-center gap-2.5 font-mono text-[13px] uppercase tracking-[0.26em] text-fg-dim transition-colors hover:text-accent",children:["\u2190",r("span",{className:"max-[640px]:hidden",children:"Back to shop"})]}),r(ee,{href:"/","aria-label":`${t.name} home`,className:"inline-flex items-center justify-center",children:r(Kt,{variant:"header",scrolled:!0,src:e?.url??null,reverse:e?.reverse??!1,reversedSrc:e?.reversed??null,inkIsDark:e?.inkIsDark??null,size:e?.size??"medium",sizePx:e?.sizePx??null,siteName:t.name})}),t.cardPayments?c("span",{className:"flex items-center justify-end gap-2.5 font-mono text-[12px] uppercase tracking-[0.26em] text-fg-dim",children:[r("span",{className:"text-green",children:"\u25CF"}),r("span",{className:"max-[640px]:hidden",children:"Encrypted \xB7"})," Stripe"]}):r("span",{})]}),c("section",{className:"mx-auto flex max-w-[var(--sf-site-width,1600px)] flex-wrap items-center justify-between gap-x-8 gap-y-3 border-b border-line bg-surface px-[var(--sf-site-gutter,40px)] py-4 font-mono text-[13px] font-medium uppercase tracking-[0.24em] text-fg max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]",children:[r("span",{className:"inline-flex items-center bg-accent px-2.5 py-1 font-bold text-bg",children:"Checkout"}),r("nav",{"aria-label":"Checkout steps",className:"flex flex-wrap items-center gap-5",children:[{n:"01",label:"Cart",state:"done"},{n:"02",label:"Ship & pay",state:"active"},{n:"03",label:"Review",state:"pending"},{n:"04",label:"Confirmed",state:"pending"}].map(i=>c("span",{className:["relative flex items-center gap-2 transition-colors",i.state==="pending"?"text-fg-dim":"text-fg",i.state==="active"?"font-bold after:absolute after:inset-x-0 after:-bottom-1 after:h-[2px] after:bg-accent":""].join(" "),children:[r("span",{className:i.state==="done"?"text-accent font-bold":"",children:i.n}),r("span",{children:i.label})]},i.n))})]}),c("main",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_420px] items-start gap-16 px-[var(--sf-site-gutter,40px)] pt-9 pb-[100px] max-[1100px]:grid-cols-1 max-[1100px]:gap-10 max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[1100px]:pt-8 max-[1100px]:pb-20",children:[c("div",{children:[c(We,{num:"N\xB0 01",title:"Contact",children:[r(z,{label:"Email",hint:X?c(q,{children:["Signed in \xB7"," ",r("button",{type:"button",onClick:tr,className:"underline transition-colors hover:text-accent",children:"Not you? Sign out"})]}):void 0,children:r("input",{type:"email",value:ne,onChange:i=>Ie(i.target.value),placeholder:"you@example.com",readOnly:X!==null,className:K+(X?" opacity-70":"")})}),c(_n,{children:[r(z,{label:"First name",children:r("input",{type:"text",value:re,onChange:i=>Ae(i.target.value),className:K})}),r(z,{label:"Last name",children:r("input",{type:"text",value:ye,onChange:i=>ae(i.target.value),className:K})})]})]}),c(We,{num:"N\xB0 02",title:m?"Collection":"Shipping address",children:[m?c("div",{className:"grid gap-1.5 text-[14px] leading-[1.6]",children:[r("span",{className:"font-medium",children:m.name}),[m.address,m.city,m.state,m.zipCode,m.country].filter(Boolean).length>0&&r("span",{className:"opacity-80",children:[m.address,m.city,m.state,m.zipCode,m.country].filter(Boolean).join(", ")}),m.openingHours&&r("span",{className:"opacity-80",children:m.openingHours}),m.instructions&&r("span",{className:"opacity-80",children:m.instructions}),r("span",{className:"mt-1 font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"No delivery address needed"})]}):c(q,{children:[X!==null&&pt.length>0&&c("div",{className:"grid gap-2.5",children:[pt.map(i=>r(Ye,{active:Oe===i.id,onClick:()=>{Le(i.id),Pt(i)},title:i.label,body:i.formatted_address,price:null},i.id)),r(Ye,{active:Oe==="new",onClick:()=>Le("new"),title:"New address",body:null,price:null})]}),r(z,{label:"Address line 1",children:r("input",{type:"text",value:Q,onChange:i=>W(i.target.value),className:K})}),r(z,{label:"Address line 2",children:r("input",{type:"text",value:H,onChange:i=>he(i.target.value),placeholder:"Apartment, unit, garage bay\u2026",className:K})}),c(_n,{cols:"three",children:[r(z,{label:"City",children:r("input",{type:"text",value:pe,onChange:i=>E(i.target.value),className:K})}),r(z,{label:Mn,children:r("input",{type:"text",value:ve,onChange:i=>_(i.target.value),className:K})}),r(z,{label:"Country",children:r(Qe,{value:Y,onChange:i=>P(i.target.value),className:K+" pr-10",style:qn,children:A.map(i=>r("option",{value:i.code,children:i.name},i.code))})})]}),r(z,{label:Kn,children:de.length>0?c(Qe,{value:V,onChange:i=>be(i.target.value),className:K+" pr-10",style:qn,children:[r("option",{value:"",children:"Select\u2026"}),de.map(i=>r("option",{value:i.code||i.name,children:i.name},i.code||i.name))]}):r("input",{type:"text",value:V,onChange:i=>be(i.target.value),className:K})})]}),r(z,{label:"Phone",children:r("input",{type:"tel",value:oe,onChange:i=>ie(i.target.value),placeholder:"+44 7700 900000",className:K})}),!m&&X!==null&&Oe==="new"&&c(q,{children:[r(Un,{checked:He,onChange:mt,label:"Save this address to my account"}),He&&r(z,{label:"Address label",children:r("input",{type:"text",value:ft,onChange:i=>$n(i.target.value),placeholder:"Home",className:K})})]}),!m&&r(Un,{checked:te,onChange:Ee,label:"Billing address is the same as shipping"})]}),r(We,{num:"N\xB0 03",title:"Shipping",children:c("div",{className:"grid gap-2.5",children:[d.map(i=>{let f=i.pickupLocation,y=f?[f.address,f.city,f.state,f.zipCode].filter(Boolean).join(", "):null;return r(Ye,{active:p===i.id,onClick:()=>u(i.id),title:f?`${i.name} \u2014 ${f.name}`:i.name,body:f?[y,f.openingHours,f.instructions,i.description].filter(Boolean).join(" \xB7 "):i.description||null,price:o.freeShipping||i.amount===0?"Free":C(i.amount,o.currency),tag:i.tag||void 0},i.id)}),d.length===0&&r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"Shipping is arranged after your order is reviewed."})]})}),c(We,{num:"N\xB0 04",title:"Payment",children:[r("div",{className:"grid gap-2.5",children:qe.map(i=>r(Ye,{active:S===i.key,onClick:()=>F(i.key),title:i.title,body:i.body,price:i.price,tag:i.tag},i.key))}),S==="card"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll enter card details on the secure payment step after placing the order."}):S==="paypal"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll approve the payment with PayPal on the payment step after placing the order."}):S==="afterpay"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll be taken to Afterpay to approve four interest-free payments, then brought straight back."}):S==="square"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll enter card details on the secure payment step after placing the order."}):S==="gocardless"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll set up a bank direct debit with GoCardless, then be brought straight back. Direct debits clear in a few days."}):S==="zip"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll be taken to Zip to approve four instalments, then brought straight back."}):S==="klarna"?r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"You\u2019ll be taken to Klarna to choose how to pay, then brought straight back."}):r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"Our team emails you the invoice and bank details after review."})]})]}),c("aside",{className:"sticky top-[var(--sf-checkout-header-h,88px)] border border-line max-[1100px]:static",style:{background:"linear-gradient(180deg, color-mix(in oklab, var(--surface) 70%, var(--bg)) 0%, var(--bg) 100%)"},children:[c("header",{className:"flex items-center justify-between border-b border-accent bg-accent px-6 py-3.5 font-mono text-[13px] font-bold uppercase tracking-[0.28em] text-bg",children:[r("span",{children:"Your order"}),r(ee,{href:"/wheels",className:"text-bg/80 transition-colors hover:text-bg",children:"Edit \u2197"})]}),r("div",{className:"flex flex-col px-6 py-2",children:a.length===0?c("div",{className:"py-8 text-center font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:["Your cart is empty. ",r(ee,{href:"/wheels",className:"text-accent underline-offset-4 hover:underline",children:"Browse the catalog \u2192"})]}):a.map(i=>r(Jr,{slug:i.slug,name:i.name,qty:i.qty,config:i.config,configSummary:Xr(i.config),price:Ft(i,o.currency)??0,currency:o.currency},i.id))}),r("div",{className:"border-t border-line px-6 pt-5",children:r(Yt,{customerEmail:ne})}),c("div",{className:"flex flex-col gap-2 border-t border-line mt-5 px-6 pt-5",children:[r(ce,{label:"Subtotal",value:C(o.subtotal,o.currency)}),o.discount>0&&s?.valid&&r(ce,{label:`Coupon \xB7 ${s.code}`,value:c("span",{className:"font-semibold text-green",children:["\u2212 ",C(o.discount,o.currency)]})}),s?.deferred&&r(ce,{label:`Coupon \xB7 ${s.code}`,value:Ot}),s?.valid&&s.effects?.gift&&r(ce,{label:`Free gift \xB7 ${s.effects.gift.partNumber}${s.effects.gift.quantity>1?` \xD7${s.effects.gift.quantity}`:""}`,value:r("span",{className:"font-semibold text-green",children:"Free"})}),r(ce,{label:"Shipping",value:o.freeShipping||o.shipping===0?r("span",{className:"font-semibold text-green",children:"Free"}):C(o.shipping,o.currency)}),o.tax&&(o.tax.charged?r(ce,{label:o.tax.inclusive?`${o.tax.name} included \xB7 ${o.tax.rate}%`:o.tax.name,value:C(o.tax.amount,o.currency)}):o.tax.name?r(ce,{label:o.tax.name,value:"Calculated at checkout"}):null)]}),c("div",{className:"mt-4 flex items-end justify-between border-y-2 border-accent px-6 py-4",style:{background:"color-mix(in oklab, var(--accent) 10%, var(--bg))"},children:[r("span",{className:"font-display text-[20px] font-bold uppercase tracking-[0.04em] text-fg",children:"Total"}),r("span",{className:"text-right font-display text-[34px] font-bold leading-none tracking-[-0.025em] text-fg",children:o.repricing?"\u2026":C(o.grand,o.currency)})]}),c("div",{className:"flex flex-col gap-2.5 px-6 pt-[18px] pb-6",children:[ht&&r("p",{className:"border border-red-300 bg-red-50 px-3 py-2 text-[13px] text-red-700",children:ht}),o.hasUnpricedLine&&c("p",{className:"border border-amber-300 bg-amber-50 px-3 py-2 text-[13px] text-amber-800",children:["One or more items have no price in ",o.currency,". Remove them, or switch region, to continue."]}),r("button",{type:"button",onClick:nr,disabled:ue||a.length===0||o.hasUnpricedLine||o.repricing,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[14px] font-medium uppercase tracking-[0.3em] transition-all",a.length===0||ue||o.hasUnpricedLine||o.repricing?"cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:ue?c(q,{children:["Building order\u2026 ",r("span",{children:"\xB7"})]}):o.repricing?c(q,{children:["Updating total\u2026 ",r("span",{children:"\xB7"})]}):c(q,{children:[S==="bank"?"Place order":"Continue to payment"," \xB7"," ",C(o.grand,o.currency),r("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]})})]})]})]}),r("footer",{className:"flex flex-wrap items-center justify-between gap-4 border-t border-line px-[var(--sf-site-gutter,40px)] py-6 font-mono text-[12px] uppercase tracking-[0.22em] text-fg-dim max-[640px]:px-[min(20px,var(--sf-site-gutter,40px))]",children:r("span",{children:Mt({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.name})})})]})}var K="w-full border-2 border-line bg-bg px-4 py-3.5 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent",qn={backgroundImage:"linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%)",backgroundPosition:"calc(100% - 18px) 50%, calc(100% - 12px) 50%",backgroundSize:"6px 6px",backgroundRepeat:"no-repeat"};function We({num:t,title:e,children:n}){return c("section",{className:"mb-6 border border-line bg-bg",children:[c("header",{className:"flex items-center gap-4 border-b border-line bg-surface px-6 py-3.5",children:[r("span",{className:"inline-flex items-center justify-center bg-accent px-2.5 py-1 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-bg",children:t}),r("h2",{className:"font-display text-[26px] font-medium uppercase leading-none tracking-[-0.02em] text-fg",children:e})]}),r("div",{className:"flex flex-col gap-4 px-6 py-6",children:n})]})}function _n({cols:t="two",children:e}){return r("div",{className:["grid gap-3 max-[640px]:grid-cols-1",t==="two"?"grid-cols-2":"grid-cols-[1.2fr_1fr_1fr]"].join(" "),children:e})}function z({label:t,hint:e,children:n}){return c("div",{className:"relative flex flex-col gap-2",children:[r("label",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-fg",children:t}),n,e&&r("span",{className:"font-mono text-[11px] uppercase tracking-[0.22em] text-fg-dim",children:e})]})}function Ye({active:t,onClick:e,title:n,body:a,price:o,tag:s}){return c("button",{type:"button",onClick:e,"aria-pressed":t,className:["relative grid grid-cols-[auto_1fr_auto] items-center gap-[18px] border bg-bg px-[22px] py-[18px] text-left transition-colors",t?"border-accent outline outline-1 outline-accent -outline-offset-1":"border-line hover:border-[color-mix(in_oklab,var(--accent)_50%,var(--line))]"].join(" "),style:t?{background:"color-mix(in oklab, var(--accent) 14%, var(--bg))"}:void 0,children:[t&&r("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-accent"}),r("span",{className:["flex h-[18px] w-[18px] items-center justify-center rounded-full border-2",t?"border-accent":"border-fg-dim"].join(" "),children:t&&r("span",{className:"block h-2.5 w-2.5 rounded-full bg-accent"})}),c("span",{className:"flex min-w-0 flex-col gap-1",children:[c("span",{className:"flex flex-wrap items-baseline gap-2.5 font-display text-[18px] font-medium tracking-[-0.01em] text-fg",children:[n,s&&r("span",{className:"border px-1.5 py-0.5 font-mono text-[11px] font-normal uppercase tracking-[0.24em] text-accent",style:{background:"color-mix(in oklab, var(--accent) 14%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 45%, var(--line))"},children:s})]}),a&&r("span",{className:"font-mono text-[12px] uppercase tracking-[0.22em] text-fg-dim",children:a})]}),r("span",{className:"whitespace-nowrap font-display text-[18px] font-medium tracking-[-0.01em] text-fg",children:o})]})}function Yr({payment:t,onPaid:e,onSkip:n}){let{formatMoney:a}=se(),o=Be(()=>Cn(t.publishableKey),[t.publishableKey]),s=Be(()=>{if(typeof document>"u")return;let l=getComputedStyle(document.documentElement),d=(u,v)=>l.getPropertyValue(u).trim()||v,p=document.documentElement.getAttribute("data-theme")!=="light";return{theme:p?"night":"stripe",variables:{colorPrimary:d("--accent",p?"#c9a461":"#8a6a2a"),colorBackground:d("--surface",p?"#131313":"#ffffff"),colorText:d("--fg",p?"#f5f1e8":"#0a0a0a"),borderRadius:"0px"}}},[]);return r("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-bg px-6 py-16 text-fg",children:c("div",{className:"w-full max-w-xl border border-line bg-bg",children:[c("header",{className:"flex items-center justify-between gap-4 border-b border-line bg-surface px-6 py-3.5",children:[r("span",{className:"inline-flex items-center justify-center bg-accent px-2.5 py-1 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-bg",children:t.orderNumber}),r("h1",{className:"font-display text-[26px] font-medium uppercase leading-none tracking-[-0.02em] text-fg",children:"Payment"})]}),c("div",{className:"flex flex-col gap-4 px-6 py-6",children:[c("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:["Your order is placed. Pay"," ",r("span",{className:"text-fg",children:a(Number(t.amount),t.currency)})," ","by card to confirm it now."]}),r(rt,{stripe:o,options:{clientSecret:t.clientSecret,appearance:s},children:r(Br,{payment:t,onPaid:e,onSkip:n})})]})]})})}function Br({payment:t,onPaid:e,onSkip:n}){let{formatMoney:a}=se(),o=fn(),s=dn(),[l,d]=g(!1),[p,u]=g(null);async function v(){if(!o||!s||l)return;d(!0),u(null);let b=await o.confirmPayment({elements:s,redirect:"if_required"});if(b.error){u(b.error.message??"Payment failed. Please try again."),d(!1);return}let m=b.paymentIntent?.status;if(m==="succeeded"||m==="processing"){e();return}u("Payment did not complete. Please try again."),d(!1)}return c("div",{className:"flex flex-col gap-4",children:[r(gn,{}),p&&r("p",{className:"border border-red-300 bg-red-50 px-3 py-2 text-[13px] text-red-700",children:p}),r("button",{type:"button",onClick:v,disabled:!o||!s||l,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[14px] font-medium uppercase tracking-[0.3em] transition-all",!o||!s||l?"cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:l?c(q,{children:["Processing\u2026 ",r("span",{children:"\xB7"})]}):c(q,{children:["Pay ",a(Number(t.amount),t.currency),r("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]})}),r("button",{type:"button",onClick:n,disabled:l,className:"self-center font-mono text-[11px] uppercase tracking-[0.24em] text-fg-dim underline-offset-4 transition-colors hover:text-accent hover:underline",children:"Pay later \u2014 our team will be in touch"})]})}var Dn="paypal-sdk-js",st=null;function zr(t,e){let n=`${t}|${e}`;if(st?.key===n)return st.promise;let a=new Promise((o,s)=>{document.getElementById(Dn)?.remove();let l=document.createElement("script");l.id=Dn;let d=new URLSearchParams({"client-id":t,currency:e,intent:"capture"});l.src=`https://www.paypal.com/sdk/js?${d}`,l.onload=()=>{let p=window.paypal;p?o(p):s(new Error("PayPal SDK loaded without its namespace"))},l.onerror=()=>s(new Error("PayPal SDK failed to load")),document.head.appendChild(l)});return st={key:n,promise:a},a}function Hr({confirmation:t,clientId:e,idemKey:n,onPaid:a,onSkip:o}){let{formatMoney:s}=se(),l=le(null),[d,p]=g(!1),[u,v]=g(null),b=le(a);return b.current=a,$(()=>{let m=!1,h=null;return zr(e,t.currency).then(A=>{if(!(m||!l.current))return h=A.Buttons({style:{layout:"vertical",color:"gold",shape:"rect",label:"paypal"},createOrder:async()=>(await T.createPaypalOrder({idempotencyKey:n})).paypalOrderId,onApprove:async k=>{try{if((await T.capturePaypalOrder({idempotencyKey:n,paypalOrderId:k.orderID})).status==="paid"){b.current();return}v("PayPal did not complete the payment. Please try again.")}catch(C){v(C instanceof _e?C.message:"PayPal payment failed. Please try again.")}},onError:()=>{v("PayPal could not process the payment. Please try again.")}}),h.render(l.current).then(()=>{m||p(!0)})}).catch(()=>{m||v("PayPal could not be loaded. You can pay later \u2014 your order stands either way.")}),()=>{m=!0,h?.close?.()}},[e,t.currency,n]),r("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-bg px-6 py-16 text-fg",children:c("div",{className:"w-full max-w-xl border border-line bg-bg",children:[c("header",{className:"flex items-center justify-between gap-4 border-b border-line bg-surface px-6 py-3.5",children:[r("span",{className:"inline-flex items-center justify-center bg-accent px-2.5 py-1 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-bg",children:t.orderNumber}),r("h1",{className:"font-display text-[26px] font-medium uppercase leading-none tracking-[-0.02em] text-fg",children:"PayPal"})]}),c("div",{className:"flex flex-col gap-4 px-6 py-6",children:[c("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:["Your order is placed. Pay"," ",r("span",{className:"text-fg",children:s(Number(t.grandTotal),t.currency)})," ","with PayPal to confirm it now."]}),!d&&!u&&r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"Loading PayPal\u2026"}),r("div",{ref:l}),u&&r("p",{className:"border border-red-300 bg-red-50 px-3 py-2 text-[13px] text-red-700",children:u}),r("button",{type:"button",onClick:o,className:"self-center font-mono text-[11px] uppercase tracking-[0.24em] text-fg-dim underline-offset-4 transition-colors hover:text-accent hover:underline",children:"Pay later \u2014 our team will be in touch"})]})]})})}var Fn="square-web-sdk",ct=null;function Vr(t){let e=t==="sandbox"?"sandbox":"production";if(ct?.key===e)return ct.promise;let n=new Promise((a,o)=>{document.getElementById(Fn)?.remove();let s=document.createElement("script");s.id=Fn,s.src=e==="sandbox"?"https://sandbox.web.squarecdn.com/v1/square.js":"https://web.squarecdn.com/v1/square.js",s.onload=()=>{let l=window.Square;l?a(l):o(new Error("Square SDK loaded without its namespace"))},s.onerror=()=>o(new Error("Square SDK failed to load")),document.head.appendChild(s)});return ct={key:e,promise:n},n}function Gr({confirmation:t,applicationId:e,locationId:n,environment:a,idemKey:o,onPaid:s,onSkip:l}){let{formatMoney:d}=se(),p=le(null),u=le(null),v=le(null),[b,m]=g(!1),[h,A]=g(!1),[k,C]=g(null);$(()=>{let F=!1,L=null;return Vr(a).then(async J=>{if(F||!p.current)return;let te=J.payments(e,n);v.current=te,L=await te.card(),await L.attach(p.current),u.current=L,F||m(!0)}).catch(()=>{F||C("Square could not be loaded. You can pay later \u2014 your order stands either way.")}),()=>{F=!0,L?.destroy?.()}},[e,n,a]);async function S(){let F=u.current;if(!(!F||h)){A(!0),C(null);try{let L=await F.tokenize();if(L.status!=="OK"||!L.token){C(L.errors?.[0]?.message??"Please check the card details and try again."),A(!1);return}let J;try{J=(await v.current?.verifyBuyer?.(L.token,{amount:String(t.grandTotal),currencyCode:t.currency,intent:"CHARGE"}))?.token}catch{}if((await T.chargeSquare({idempotencyKey:o,sourceId:L.token,...J?{verificationToken:J}:{}})).status==="paid"){s();return}C("Square did not complete the payment. Please try again.")}catch(L){C(L instanceof _e?L.message:"Square payment failed. Please try again.")}A(!1)}}return r("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-bg px-6 py-16 text-fg",children:c("div",{className:"w-full max-w-xl border border-line bg-bg",children:[c("header",{className:"flex items-center justify-between gap-4 border-b border-line bg-surface px-6 py-3.5",children:[r("span",{className:"inline-flex items-center justify-center bg-accent px-2.5 py-1 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-bg",children:t.orderNumber}),r("h1",{className:"font-display text-[26px] font-medium uppercase leading-none tracking-[-0.02em] text-fg",children:"Card"})]}),c("div",{className:"flex flex-col gap-4 px-6 py-6",children:[c("p",{className:"font-mono text-[12px] uppercase tracking-[0.2em] text-fg-dim",children:["Your order is placed. Pay"," ",r("span",{className:"text-fg",children:d(Number(t.grandTotal),t.currency)})," ","by card to confirm it now."]}),!b&&!k&&r("p",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-fg-dim",children:"Loading card form\u2026"}),r("div",{ref:p}),k&&r("p",{className:"border border-red-300 bg-red-50 px-3 py-2 text-[13px] text-red-700",children:k}),r("button",{type:"button",onClick:S,disabled:!b||h,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[14px] font-medium uppercase tracking-[0.3em] transition-all",!b||h?"cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:h?c(q,{children:["Processing\u2026 ",r("span",{children:"\xB7"})]}):c(q,{children:["Pay ",d(Number(t.grandTotal),t.currency),r("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]})}),r("button",{type:"button",onClick:l,disabled:h,className:"self-center font-mono text-[11px] uppercase tracking-[0.24em] text-fg-dim underline-offset-4 transition-colors hover:text-accent hover:underline",children:"Pay later \u2014 our team will be in touch"})]})]})})}function Un({checked:t,onChange:e,label:n,sub:a}){return c("div",{className:"flex items-start gap-3 border-t border-line py-3.5 first:border-t-0 first:pt-0",children:[r("button",{type:"button",onClick:()=>e(!t),"aria-pressed":t,"aria-label":n,className:["mt-px flex h-5 w-5 flex-shrink-0 items-center justify-center border transition-colors",t?"border-accent":"border-line"].join(" "),style:t?{background:"color-mix(in oklab, var(--accent) 18%, transparent)"}:void 0,children:t&&r("span",{className:"text-[13px] text-accent",children:"\u2713"})}),c("span",{className:"flex-1 font-display text-[16px] leading-[1.5] text-fg",children:[n,a&&r("small",{className:"mt-1 block font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:a})]})]})}function Jr({slug:t,name:e,qty:n,config:a,configSummary:o,price:s,currency:l}){let{catalog:d}=Xe(),{formatMoney:p}=se(),u=d.find(k=>k.slug===t),v=u?.spokes??5,b=u?.mesh??!1,m=a.find(k=>k.gold)?.label,h=u?.finishes.find(k=>k.name===m&&k.src)??u?.finishes.find(k=>k.src),A=u?.finishes[0]?.color??$t;return c("div",{className:"grid grid-cols-[60px_1fr_auto] items-center gap-3.5 border-b border-line py-4 last:border-b-0",children:[c("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:[r("span",{className:"absolute -right-1.5 -top-1.5 z-[2] flex h-[18px] w-[18px] items-center justify-center rounded-full bg-accent font-mono text-[11px] font-bold text-bg",children:n}),h?.src?r(Rt,{src:h.src,alt:`${e.lead}${e.accent} \u2014 ${h.name}`,width:120,height:120,sizes:"60px",className:"relative block h-full w-full object-contain p-1.5"}):r("div",{className:"block w-[78%]",style:{color:A},children:r(Wt,{spokes:v,mesh:b,className:"block w-full"})})]}),c("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c("span",{className:"font-display text-[17px] font-bold uppercase leading-none tracking-[-0.005em] text-fg",children:[e.lead,r("em",{className:"font-serif font-normal italic text-accent tracking-[-0.005em] normal-case",children:e.accent})]}),r("span",{className:"font-mono text-[12px] uppercase leading-[1.5] tracking-[0.18em] text-fg-dim",children:o})]}),r("span",{className:"text-right font-display text-[17px] font-bold tracking-[-0.005em] text-fg",children:p(s,l)})]})}function ce({label:t,value:e}){return c("div",{className:"flex items-center justify-between font-mono text-[13px] font-medium uppercase tracking-[0.18em] text-fg",children:[r("span",{children:t}),r("strong",{className:"font-display text-[16px] font-medium tracking-[-0.005em] normal-case text-fg",children:e})]})}function Xr(t){return t.map(e=>e.label).join(" \xB7 ")}import{jsx as ze}from"react/jsx-runtime";function Zr(){let{settings:t,websiteName:e}=It(),n=e?{...Ze,name:e}:Ze,a=t?{url:t.logoUrl,reversed:t.logoReversed??null,inkIsDark:t.logoInkIsDark??null,reverse:t.reverseLogo,size:t.logoSize,sizePx:t.logoSizePx}:null;return ze("div",{style:{position:"fixed",inset:0,zIndex:2147482e3,overflowY:"auto",background:"var(--bg)",color:"var(--fg)"},children:ze(Dt,{children:ze(Ut,{preview:!0,children:ze(lt,{site:n,logo:a,preview:!0})})})})}export{Zr as default};
@@ -1 +0,0 @@
1
- "use client";import{W as m}from"./chunk-2XX3N727.js";import{i as c}from"./chunk-J5WPJJCW.js";import"./chunk-MEIUD5LJ.js";import{Ec as u,dd as d}from"./chunk-TUB4O4RZ.js";import"./chunk-HVOO2GNE.js";import"./chunk-EKKAVQJX.js";import"./chunk-7QXLVNFD.js";import"./chunk-RRHBLOH4.js";import{Ha as s,Ka as a,La as f,Pa as g}from"./chunk-FU5UZ4UY.js";import"./chunk-6CP4D6VJ.js";import"./chunk-Y6SLVHK3.js";import{Render as I}from"efficient-easel/render";import{jsx as p}from"react/jsx-runtime";function i({footerBlock:r,rootProps:e,headerSettings:o,siteName:t,legalName:l,foundedYear:n,socialLinks:h}){let v=d({root:{props:{...e??{},kind:u}},content:[r],zones:{}});return p(s.Provider,{value:{logoUrl:o?.logoUrl??null,logoReversed:o?.logoReversed??null,logoInkIsDark:o?.logoInkIsDark??null,siteName:t,legalName:l??null,foundedYear:n??null,socialLinks:h??g},children:p(I,{config:m,data:v})})}import{jsx as k}from"react/jsx-runtime";function P(){let{footerBlock:r,editFooter:e}=c(),{settings:o,websiteName:t}=a();if(!r)return null;let l=o?{logoUrl:o.logoUrl,logoReversed:o.logoReversed??null,logoInkIsDark:o.logoInkIsDark??null}:null;return k("div",{className:"sf-preview-footer-pick",onClick:e?n=>{n.stopPropagation(),e()}:void 0,style:e?{cursor:"pointer"}:void 0,title:e?"Edit the site footer \u2192":void 0,children:k(i,{footerBlock:r,headerSettings:l,siteName:t?.trim()||f})})}export{P as default};
@@ -1 +0,0 @@
1
- "use client";import{a as xe}from"./chunk-MEIUD5LJ.js";import{e as be,g as Pe,k as we,m as f,n as w,o as Ee,r as Ce,s as Ie,u as Re,v as Me}from"./chunk-UM3P3PXW.js";import{g as v,h as _}from"./chunk-XQGZKQII.js";import{$c as ge,Ih as he,K as de,Kh as E,Mh as Ae,N as pe,P as me,Q as ue,Zc as fe,ad as ye,fd as ke,h as ae,od as Se,tg as Te,vg as ve,xg as P}from"./chunk-TUB4O4RZ.js";import"./chunk-HVOO2GNE.js";import"./chunk-FU5UZ4UY.js";import"./chunk-6CP4D6VJ.js";import"./chunk-Y6SLVHK3.js";import{Fragment as Ne,useCallback as je,useEffect as x,useRef as Le,useState as Oe}from"react";import{SaveState as Ze}from"efficient-easel/chrome";import{parseZoneKey as N,zoneKey as et}from"efficient-easel/data";import{useTreeDrag as tt}from"efficient-easel/drag";import{TrashIcon as $e}from"efficient-easel/icons";import{LayersTree as ot,Subtree as Be,TreeRow as L,TreeRowAction as ze,TreeSeam as nt}from"efficient-easel/tree";import{saveIndicator as rt}from"efficient-easel/autosave";import{useEasel as st}from"efficient-easel/easel";import{Fragment as De,jsx as n,jsxs as k}from"react/jsx-runtime";var O=$=>C=>{C.target.closest(".es-tree-select, button")||$()};function it(){let{saveState:$,readOnly:C}=ke(),i=Se(),{appState:Fe,selectedItem:b,config:B}=st(e=>e),[T,c]=Oe(f),[K,W]=Oe(null),r=Fe.data.content?.[0]??null,g=r?.props.id??null,S=r?.type===me,He=r?.type===ue,U=Le(null),z=Le(null);Re(z);let Y=fe(),h=ye();x(()=>{let e=z.current;if(!h||!e)return;let t=o=>{o.key==="Escape"&&ge()};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[h]),x(()=>{if(g&&U.current!==g){if(U.current=g,S){c(w);return}b||i.select({index:0})}},[g,b,i,S]);let{setSelectedHeroId:q,setSelectHandler:V}=ve(),D=T.kind==="ticker"?T.heroId:null,I=je(e=>{e&&(c(t=>t.kind==="ticker"&&t.heroId===e?t:{kind:"ticker",heroId:e}),v(e))},[]);x(()=>{q(D)},[D,q]),x(()=>{V(I)},[V,I]);let{selectNode:_e}=Ie({mode:T,setMode:c,onOpenPart:v}),F=e=>B.components[e]?.label??e,G=e=>ae(e,"section",F(e)),Ke=()=>{if(S){c(w);return}c(f),i.select({index:0})},J=!S&&T.kind==="puck"&&b?.props.id===g,a=r?E(r.type)?.spec??null:null,d=r&&a?`${r.props.id}:${a.slot}`:null,Q=r&&a&&Array.isArray(r.props[a.slot])?r.props[a.slot]:[],H=e=>Ae(e,F),X=(e,t)=>{!r||!a||!d||(c(f),a.slider?(_(String(r.props.id),e),i.select({index:e,zone:d}),v(String(r.props.id))):(i.select({index:e,zone:d}),v(t)))},j=()=>{if(!r||!a||!d)return;let e=Q.length;i.insertComponent(d,a.childType,e),c(f),a.slider?requestAnimationFrame(()=>{_(String(r.props.id),e),i.select({index:e,zone:d})}):i.select({index:e,zone:d})},We=e=>{d&&(i.removeComponent(d,e),c(f),i.select(null))},Z=e=>de(B,e),ee=e=>{let{parentId:t,slot:o}=N(e),s=m=>{if(!m)return null;if(String(m.props.id)===t)return m;for(let p of Z(m.type)){let u=Array.isArray(m.props[p])?m.props[p]:[];for(let y of u){let M=s(y);if(M)return M}}return null},l=s(r)?.props[o];return Array.isArray(l)?l.length:0},te=(e,t,o)=>{let s=Math.min(Math.max(o,0),ee(e)),l=t<s?s-1:s;l!==t&&(i.reorderComponent(e,t,l),c(f),i.select({index:l,zone:e}))},A=tt({keyOf:e=>e.id,readOnly:!!C,canDrop:(e,t)=>et(t)===e.zone&&t.index>=0&&t.index<=ee(e.zone),onDrop:(e,t)=>te(e.zone,e.index,t.index),onStep:(e,t)=>te(e.zone,e.index,t<0?e.index-1:e.index+2)}),R=(e,t)=>n(nt,{...C?{}:A.seam({place:{...N(e),index:t}})},`seam:${e}:${t}`),Ue=e=>Z(e.type).flatMap(t=>(Array.isArray(e.props[t])?e.props[t]:[]).map((s,l)=>({child:s,zone:`${e.props.id}:${t}`,index:l}))),oe=e=>{let t=e.props;if(e.type==="FooterMenu"){let o=t.menu;return t.heading||o?.name||"Menu"}if(e.type==="FooterText"){let o=typeof t.text=="string"?t.text.trim():"";return o?o.length>28?`${o.slice(0,28)}\u2026`:o:"Text"}return e.type==="FooterEmailSignup"?t.heading||"Email signup":F(e.type)},ne=(e,t,o)=>{c(f),i.select({index:t,zone:e}),v(o)},re=(e,t,o)=>{i.insertComponent(e,t,o),c(f),i.select({index:o,zone:e}),W(null)},Ye=(e,t)=>{i.removeComponent(e,t),c(f),i.select(null)},qe=(e,t,o)=>n(xe,{choices:o,open:K===e,onToggle:()=>W(K===e?null:e),onPick:s=>re(e,s,t)}),se=(e,t)=>{let o=Ue(e),s=E(e.type),l=s?.choices??null,m=s?.source==="footer"?oe:H;return k(De,{children:[o.map(({child:p,zone:u,index:y})=>{let M=b?.props.id===p.props.id,Je=pe(B,p.type,t),ie=m(p),le=String(p.props.id),ce=()=>ne(u,y,le),{rowProps:Qe,...Xe}=A.row({item:{id:le,zone:u,index:y},place:{...N(u),index:y}},{onClick:O(ce)});return k(Ne,{children:[y===0&&R(u,0),n(L,{icon:n(P,{type:p.type,size:13}),name:ie,selected:M,onSelect:ce,...Xe,actions:n(ze,{kind:"delete",label:`Delete ${ie}`,onClick:()=>Ye(u,y),children:n($e,{size:13})}),rowProps:Qe}),Je&&n(Be,{children:se(p,t+1)}),R(u,y+1)]},String(p.props.id??`${u}-${y}`))}),s&&l?qe(`${e.props.id}:${s.slot}`,o.length,l):null]})},Ve=r?.type==="HeroSingle",Ge=!!r&&(!!a||He||S||Ve);return k("div",{ref:z,className:"sf-editor es-editor",style:we(Pe),children:[n("div",{className:"sf-section-bar",children:n(Ze,{...rt($),role:"status"})}),k("div",{className:"sf-body",children:[h&&Y?n("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:n(be,{panel:Y,pick:h})}):Ge&&r&&k("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[n("div",{className:"sf-panel-head",children:n("button",{type:"button",className:`sf-panel-title sf-panel-title--btn ${J?"is-selected":""}`,"aria-pressed":J,title:S?"Header settings":`${G(r.type)} settings`,onClick:Ke,children:G(r.type)})}),n(ot,{className:"sf-tree sf-scroll",rootProps:A.rootProps(),children:n(Be,{children:S?n(L,{icon:n(P,{type:"header",size:13}),name:"Header settings",selected:T.kind==="header",onSelect:()=>c(w),rowProps:{onClick:O(()=>c(w))}}):a?k(De,{children:[Q.map((e,t)=>{let o=b?.props.id===e.props.id,s=H(e),l=String(e.props.id),m=()=>X(t,l),{rowProps:p,...u}=A.row({item:{id:l,zone:d,index:t},place:{...N(d),index:t}},{onClick:O(m)});return k(Ne,{children:[t===0&&R(d,0),n(L,{icon:n(P,{type:e.type,size:13}),name:s,selected:o,onSelect:m,...u,actions:n(ze,{kind:"delete",label:`Delete ${s}`,onClick:()=>We(t),children:n($e,{size:13})}),rowProps:p}),R(d,t+1)]},String(e.props.id??t))}),k("button",{type:"button",className:"sf-add-card",onClick:j,children:[n("span",{className:"sf-plus sf-plus--sm",children:"+"}),a.addLabel]}),r.type==="Hero"&&g&&n(L,{icon:n(P,{type:"ticker",size:13}),name:Te,selected:D===g,onSelect:()=>I(g),rowProps:{onClick:O(()=>I(g))}})]}):se(r,1)})})]}),n("div",{className:"sf-center",children:n("div",{className:"sf-preview-host",children:n(Me,{})})}),n(he,{value:{selectChild:(e,t,o,s)=>E(s)?.source==="section"?X(t,o):ne(e,t,o),addChild:(e,t,o,s,l)=>E(l)?.source==="section"?j():re(`${e}:${t}`,o,s),childRowName:H,blockRowName:oe},children:n(Ce,{mode:T,onOpenWebsiteSettings:()=>c(Ee),onSelectNode:_e,hideNodeActions:!0})})]})]})}export{it as default};
@@ -1 +0,0 @@
1
- "use client";import{b as n}from"./chunk-HVOO2GNE.js";import"./chunk-Y6SLVHK3.js";import{useEffect as r,useState as u}from"react";import{createEasel as c,EaselProvider as p}from"efficient-easel/easel";import{jsx as E}from"react/jsx-runtime";function m({config:a,data:d,onChange:o,permissions:e,children:f}){let[t]=u(()=>c({config:a,data:d,permissions:e}));r(()=>{t.setConfig(a)},[t,a]),r(()=>{if(!o)return;let i=t.getState().appState.data;return t.subscribe(()=>{let s=t.getState().appState.data;s!==i&&(i=s,o(s))})},[t,o]),r(()=>{e&&t.setPermissions(e)},[t,e]);let l=n();return E(p,{easel:t,hotkeys:l.ownsDocument,children:f})}export{m as default};