efficient-web-builder 0.10.0 → 2.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.
- package/CHANGELOG.md +50 -367
- package/README.md +108 -261
- package/dist/components/AddBlockRow.d.ts +1 -0
- package/dist/components/AddBlockRow.js +1 -0
- package/dist/components/AddChildRow.d.ts +1 -0
- package/dist/components/AddChildRow.js +1 -0
- package/dist/components/AddSidePanel.d.ts +2 -0
- package/dist/components/AddSidePanel.js +1 -0
- package/dist/components/AnimatedStat.d.ts +6 -0
- package/dist/components/AnimatedStat.js +1 -0
- package/dist/components/ApplyCornersToSiblings.d.ts +9 -0
- package/dist/components/ApplyCornersToSiblings.js +1 -0
- package/dist/components/Banner.d.ts +12 -0
- package/dist/components/Banner.js +1 -0
- package/dist/components/BlockFrame.d.ts +15 -0
- package/dist/components/BlockFrame.js +1 -0
- package/dist/components/BlockGapField.d.ts +5 -0
- package/dist/components/BlockGapField.js +1 -0
- package/dist/components/BlogPostSource.d.ts +14 -0
- package/dist/components/BlogPostSource.js +1 -0
- package/dist/components/BoxSurfaceContext.d.ts +7 -0
- package/dist/components/BoxSurfaceContext.js +1 -0
- package/dist/components/BoxTabs.d.ts +6 -0
- package/dist/components/BoxTabs.js +1 -0
- package/dist/components/Breadcrumb.d.ts +10 -0
- package/dist/components/Breadcrumb.js +1 -0
- package/dist/components/Btn.d.ts +22 -0
- package/dist/components/Btn.js +1 -0
- package/dist/components/ButtonBlock.d.ts +13 -0
- package/dist/components/ButtonBlock.js +1 -0
- package/dist/components/CardShadowField.d.ts +6 -0
- package/dist/components/CardShadowField.js +1 -0
- package/dist/components/Cards.d.ts +15 -0
- package/dist/components/Cards.js +1 -0
- package/dist/components/CategoryBar.d.ts +16 -0
- package/dist/components/CategoryBar.js +1 -0
- package/dist/components/ChartSection.d.ts +16 -0
- package/dist/components/ChartSection.js +1 -0
- package/dist/components/ChatSettingsPanel.d.ts +1 -0
- package/dist/components/ChatSettingsPanel.js +1 -0
- package/dist/components/ClearColoursDialog.d.ts +5 -0
- package/dist/components/ClearColoursDialog.js +1 -0
- package/dist/components/ContactLocations.d.ts +17 -0
- package/dist/components/ContactLocations.js +73 -0
- package/dist/components/CornersField.d.ts +6 -0
- package/dist/components/CornersField.js +1 -0
- package/dist/components/CountUpText.d.ts +3 -0
- package/dist/components/CountUpText.js +1 -0
- package/dist/components/Divider.d.ts +9 -0
- package/dist/components/Divider.js +1 -0
- package/dist/components/DocBody.d.ts +13 -0
- package/dist/components/DocBody.js +7 -0
- package/dist/components/DocMasthead.d.ts +13 -0
- package/dist/components/DocMasthead.js +1 -0
- package/dist/components/DocMetaCards.d.ts +10 -0
- package/dist/components/DocMetaCards.js +1 -0
- package/dist/components/DocTabs.d.ts +12 -0
- package/dist/components/DocTabs.js +1 -0
- package/dist/components/DuplicateToPageMenu.d.ts +12 -0
- package/dist/components/DuplicateToPageMenu.js +1 -0
- package/dist/components/EditorScreenMount.d.ts +1 -0
- package/dist/components/EditorScreenMount.js +1 -0
- package/dist/components/EditorStoreProvider.d.ts +1 -0
- package/dist/components/EditorStoreProvider.js +1 -0
- package/dist/components/EditorialSectionHead.d.ts +11 -0
- package/dist/components/EditorialSectionHead.js +1 -0
- package/dist/components/Eyebrow.d.ts +9 -0
- package/dist/components/Eyebrow.js +1 -0
- package/dist/components/FAQ.d.ts +20 -0
- package/dist/components/FAQ.js +1 -0
- package/dist/components/FeaturedCover.d.ts +13 -0
- package/dist/components/FeaturedCover.js +1 -0
- package/dist/components/FieldGlyph.d.ts +12 -0
- package/dist/components/FieldGlyph.js +1 -0
- package/dist/components/Flex.d.ts +32 -0
- package/dist/components/Flex.js +1 -0
- package/dist/components/Footprint.d.ts +16 -0
- package/dist/components/Footprint.js +27 -0
- package/dist/components/Grid.d.ts +11 -0
- package/dist/components/Grid.js +1 -0
- package/dist/components/Heading.d.ts +11 -0
- package/dist/components/Heading.js +1 -0
- package/dist/components/HeadingAudit.d.ts +1 -0
- package/dist/components/HeadingAudit.js +1 -0
- package/dist/components/HeroArrows.d.ts +8 -0
- package/dist/components/HeroArrows.js +1 -0
- package/dist/components/HeroGroup.d.ts +20 -0
- package/dist/components/HeroGroup.js +1 -0
- package/dist/components/HeroHeldFrame.d.ts +8 -0
- package/dist/components/HeroHeldFrame.js +1 -0
- package/dist/components/HeroImageField.d.ts +6 -0
- package/dist/components/HeroImageField.js +1 -0
- package/dist/components/HeroPoster.d.ts +10 -0
- package/dist/components/HeroPoster.js +1 -0
- package/dist/components/HeroSection.d.ts +35 -0
- package/dist/components/HeroSection.js +11 -0
- package/dist/components/HeroSingle.d.ts +17 -0
- package/dist/components/HeroSingle.js +1 -0
- package/dist/components/HeroSlide.d.ts +30 -0
- package/dist/components/HeroSlide.js +1 -0
- package/dist/components/HoverEffectField.d.ts +6 -0
- package/dist/components/HoverEffectField.js +1 -0
- package/dist/components/ImageBlock.d.ts +18 -0
- package/dist/components/ImageBlock.js +1 -0
- package/dist/components/ImageFocusRow.d.ts +7 -0
- package/dist/components/ImageFocusRow.js +1 -0
- package/dist/components/IntegrationsSection.d.ts +14 -0
- package/dist/components/IntegrationsSection.js +1 -0
- package/dist/components/IntroBleed.d.ts +32 -0
- package/dist/components/IntroBleed.js +1 -0
- package/dist/components/KeepHint.d.ts +5 -0
- package/dist/components/KeepHint.js +1 -0
- package/dist/components/KeyFeatures.d.ts +14 -0
- package/dist/components/KeyFeatures.js +1 -0
- package/dist/components/LocationGroupHeader.d.ts +5 -0
- package/dist/components/LocationGroupHeader.js +1 -0
- package/dist/components/LocationsGroupedField.d.ts +5 -0
- package/dist/components/LocationsGroupedField.js +1 -0
- package/dist/components/LocationsTreeContext.d.ts +2 -0
- package/dist/components/LocationsTreeContext.js +1 -0
- package/dist/components/Logo.d.ts +27 -0
- package/dist/components/Logo.js +1 -0
- package/dist/components/LogoBlock.d.ts +8 -0
- package/dist/components/LogoBlock.js +1 -0
- package/dist/components/Logos.d.ts +15 -0
- package/dist/components/Logos.js +1 -0
- package/dist/components/LongRead.d.ts +20 -0
- package/dist/components/LongRead.js +1 -0
- package/dist/components/Manifesto.d.ts +14 -0
- package/dist/components/Manifesto.js +1 -0
- package/dist/components/Masthead.d.ts +16 -0
- package/dist/components/Masthead.js +1 -0
- package/dist/components/MediaSidePanel.d.ts +1 -0
- package/dist/components/MediaSidePanel.js +1 -0
- package/dist/components/MediaUploadField.d.ts +9 -0
- package/dist/components/MediaUploadField.js +1 -0
- package/dist/components/MockupSection.d.ts +59 -0
- package/dist/components/MockupSection.js +1 -0
- package/dist/components/MultiSelectField.d.ts +19 -0
- package/dist/components/MultiSelectField.js +1 -0
- package/dist/components/NodeContextMenu.d.ts +2 -0
- package/dist/components/NodeContextMenu.js +1 -0
- package/dist/components/OrderSummary.d.ts +17 -0
- package/dist/components/OrderSummary.js +1 -0
- package/dist/components/PageEditGuardNotices.d.ts +1 -0
- package/dist/components/PageEditGuardNotices.js +1 -0
- package/dist/components/PagesPanel.d.ts +8 -0
- package/dist/components/PagesPanel.js +1 -0
- package/dist/components/PanelToggleIcon.d.ts +1 -0
- package/dist/components/PanelToggleIcon.js +1 -0
- package/dist/components/ParagraphsA.d.ts +15 -0
- package/dist/components/ParagraphsA.js +1 -0
- package/dist/components/PartGlyphs.d.ts +7 -0
- package/dist/components/PartGlyphs.js +1 -0
- package/dist/components/PartInkControl.d.ts +7 -0
- package/dist/components/PartInkControl.js +1 -0
- package/dist/components/PartResetDot.d.ts +5 -0
- package/dist/components/PartResetDot.js +1 -0
- package/dist/components/PartSettingsPanel.d.ts +68 -0
- package/dist/components/PartSettingsPanel.js +1 -0
- package/dist/components/PartStyledText.d.ts +5 -0
- package/dist/components/PartStyledText.js +1 -0
- package/dist/components/PartTextBox.d.ts +20 -0
- package/dist/components/PartTextBox.js +1 -0
- package/dist/components/PaymentBadges.d.ts +14 -0
- package/dist/components/PaymentBadges.js +1 -0
- package/dist/components/PhoneMenuTools.d.ts +12 -0
- package/dist/components/PhoneMenuTools.js +1 -0
- package/dist/components/PhotographyField.d.ts +6 -0
- package/dist/components/PhotographyField.js +1 -0
- package/dist/components/Placeholder.d.ts +18 -0
- package/dist/components/Placeholder.js +1 -0
- package/dist/components/PostCard.d.ts +37 -0
- package/dist/components/PostCard.js +1 -0
- package/dist/components/PreviewChatContext.d.ts +23 -0
- package/dist/components/PreviewChatContext.js +1 -0
- package/dist/components/PreviewDeviceContext.d.ts +2 -0
- package/dist/components/PreviewDeviceContext.js +1 -0
- package/dist/components/PreviewFocusContext.d.ts +15 -0
- package/dist/components/PreviewFocusContext.js +1 -0
- package/dist/components/PreviewFooterContext.d.ts +17 -0
- package/dist/components/PreviewFooterContext.js +1 -0
- package/dist/components/PreviewHeaderContext.d.ts +97 -0
- package/dist/components/PreviewHeaderContext.js +1 -0
- package/dist/components/PreviewLocationPartContext.d.ts +10 -0
- package/dist/components/PreviewLocationPartContext.js +1 -0
- package/dist/components/PreviewPartAnchors.d.ts +16 -0
- package/dist/components/PreviewPartAnchors.js +1 -0
- package/dist/components/PreviewPartStyleContext.d.ts +21 -0
- package/dist/components/PreviewPartStyleContext.js +1 -0
- package/dist/components/PreviewPartsContext.d.ts +1 -0
- package/dist/components/PreviewPartsContext.js +1 -0
- package/dist/components/PreviewSocialContext.d.ts +30 -0
- package/dist/components/PreviewSocialContext.js +1 -0
- package/dist/components/PreviewSurfaceContext.d.ts +10 -0
- package/dist/components/PreviewSurfaceContext.js +1 -0
- package/dist/components/PreviewThemeFrame.d.ts +6 -0
- package/dist/components/PreviewThemeFrame.js +11 -0
- package/dist/components/PreviewTickerContext.d.ts +4 -0
- package/dist/components/PreviewTickerContext.js +1 -0
- package/dist/components/ProcessSteps.d.ts +32 -0
- package/dist/components/ProcessSteps.js +1 -0
- package/dist/components/Prose.d.ts +9 -0
- package/dist/components/Prose.js +1 -0
- package/dist/components/PublishedFooterContext.d.ts +11 -0
- package/dist/components/PublishedFooterContext.js +1 -0
- package/dist/components/PublishedPartStylesContext.d.ts +15 -0
- package/dist/components/PublishedPartStylesContext.js +1 -0
- package/dist/components/RMark.d.ts +6 -0
- package/dist/components/RMark.js +1 -0
- package/dist/components/Reel.d.ts +15 -0
- package/dist/components/Reel.js +1 -0
- package/dist/components/RuleLine.d.ts +1 -0
- package/dist/components/RuleLine.js +1 -0
- package/dist/components/SearchSelectField.d.ts +22 -0
- package/dist/components/SearchSelectField.js +1 -0
- package/dist/components/SectionAnimation.d.ts +7 -0
- package/dist/components/SectionAnimation.js +1 -0
- package/dist/components/SectionEditor.d.ts +63 -0
- package/dist/components/SectionEditor.js +1 -0
- package/dist/components/SectionEditorShell.d.ts +1 -0
- package/dist/components/SectionEditorShell.js +1 -0
- package/dist/components/SectionEyebrow.d.ts +10 -0
- package/dist/components/SectionEyebrow.js +1 -0
- package/dist/components/SectionHeader.d.ts +29 -0
- package/dist/components/SectionHeader.js +1 -0
- package/dist/components/SectionIcon.d.ts +5 -0
- package/dist/components/SectionIcon.js +1 -0
- package/dist/components/SectionTextEntries.d.ts +5 -0
- package/dist/components/SectionTextEntries.js +1 -0
- package/dist/components/SectionTextPartBridge.d.ts +6 -0
- package/dist/components/SectionTextPartBridge.js +1 -0
- package/dist/components/SectionThemePicker.d.ts +25 -0
- package/dist/components/SectionThemePicker.js +1 -0
- package/dist/components/SectionThumbnail.d.ts +3 -0
- package/dist/components/SectionThumbnail.js +1 -0
- package/dist/components/Series.d.ts +19 -0
- package/dist/components/Series.js +1 -0
- package/dist/components/ShadowColourField.d.ts +5 -0
- package/dist/components/ShadowColourField.js +1 -0
- package/dist/components/SidePanelHead.d.ts +1 -0
- package/dist/components/SidePanelHead.js +1 -0
- package/dist/components/SideSpaceField.d.ts +7 -0
- package/dist/components/SideSpaceField.js +1 -0
- package/dist/components/SiteEditorProvider.d.ts +3 -0
- package/dist/components/SiteEditorProvider.js +1 -0
- package/dist/components/SiteFields.d.ts +6 -0
- package/dist/components/SiteFields.js +1 -0
- package/dist/components/SiteGutterFrame.d.ts +9 -0
- package/dist/components/SiteGutterFrame.js +1 -0
- package/dist/components/SiteLogoContext.d.ts +25 -0
- package/dist/components/SiteLogoContext.js +1 -0
- package/dist/components/SitePhotographyContext.d.ts +8 -0
- package/dist/components/SitePhotographyContext.js +1 -0
- package/dist/components/SiteStyleUnset.d.ts +1 -0
- package/dist/components/SiteStyleUnset.js +1 -0
- package/dist/components/SiteWidthField.d.ts +7 -0
- package/dist/components/SiteWidthField.js +1 -0
- package/dist/components/SlotChildActionsContext.d.ts +2 -0
- package/dist/components/SlotChildActionsContext.js +1 -0
- package/dist/components/SlotChildRows.d.ts +16 -0
- package/dist/components/SlotChildRows.js +1 -0
- package/dist/components/SocialLinksPanel.d.ts +3 -0
- package/dist/components/SocialLinksPanel.js +1 -0
- package/dist/components/SourceStatus.d.ts +14 -0
- package/dist/components/SourceStatus.js +1 -0
- package/dist/components/Spacer.d.ts +6 -0
- package/dist/components/Spacer.js +1 -0
- package/dist/components/SpecStrip.d.ts +10 -0
- package/dist/components/SpecStrip.js +1 -0
- package/dist/components/Split.d.ts +33 -0
- package/dist/components/Split.js +1 -0
- package/dist/components/StandaloneSectionEditor.d.ts +19 -0
- package/dist/components/StandaloneSectionEditor.js +1 -0
- package/dist/components/Stats.d.ts +14 -0
- package/dist/components/Stats.js +1 -0
- package/dist/components/StatsParagraph.d.ts +21 -0
- package/dist/components/StatsParagraph.js +1 -0
- package/dist/components/StorefrontDocumentContext.d.ts +2 -0
- package/dist/components/StorefrontDocumentContext.js +1 -0
- package/dist/components/StorefrontEditor.d.ts +19 -0
- package/dist/components/StorefrontEditor.js +1 -0
- package/dist/components/StorefrontEditorChrome.d.ts +1 -0
- package/dist/components/StorefrontEditorChrome.js +1 -0
- package/dist/components/StorefrontLinkField.d.ts +19 -0
- package/dist/components/StorefrontLinkField.js +1 -0
- package/dist/components/StylesPanel.d.ts +11 -0
- package/dist/components/StylesPanel.js +1 -0
- package/dist/components/SwitchToBoxFooter.d.ts +1 -0
- package/dist/components/SwitchToBoxFooter.js +1 -0
- package/dist/components/TemplateGlyph.d.ts +6 -0
- package/dist/components/TemplateGlyph.js +1 -0
- package/dist/components/Testimonials.d.ts +16 -0
- package/dist/components/Testimonials.js +1 -0
- package/dist/components/Text.d.ts +11 -0
- package/dist/components/Text.js +1 -0
- package/dist/components/TextStyleRow.d.ts +13 -0
- package/dist/components/TextStyleRow.js +1 -0
- package/dist/components/TextStylesField.d.ts +17 -0
- package/dist/components/TextStylesField.js +1 -0
- package/dist/components/ThemeCard.d.ts +40 -0
- package/dist/components/ThemeCard.js +1 -0
- package/dist/components/ThemeColourField.d.ts +5 -0
- package/dist/components/ThemeColourField.js +1 -0
- package/dist/components/ThemeField.d.ts +8 -0
- package/dist/components/ThemeField.js +1 -0
- package/dist/components/Ticker.d.ts +18 -0
- package/dist/components/Ticker.js +1 -0
- package/dist/components/TickerSection.d.ts +18 -0
- package/dist/components/TickerSection.js +1 -0
- package/dist/components/TickerSettingsPanel.d.ts +3 -0
- package/dist/components/TickerSettingsPanel.js +1 -0
- package/dist/components/Timeline.d.ts +24 -0
- package/dist/components/Timeline.js +1 -0
- package/dist/components/TimelineTrack.d.ts +22 -0
- package/dist/components/TimelineTrack.js +1 -0
- package/dist/components/TitleWithButtons.d.ts +14 -0
- package/dist/components/TitleWithButtons.js +1 -0
- package/dist/components/UiIcon.d.ts +2 -0
- package/dist/components/UiIcon.js +1 -0
- package/dist/components/WebsiteScreenParts.d.ts +2 -0
- package/dist/components/WebsiteScreenParts.js +1 -0
- package/dist/components/WebsiteSettingsPanel.d.ts +46 -0
- package/dist/components/WebsiteSettingsPanel.js +1 -0
- package/dist/components/WidthFollowField.d.ts +10 -0
- package/dist/components/WidthFollowField.js +1 -0
- package/dist/components/cartGlyph.d.ts +1 -0
- package/dist/components/cartGlyph.js +1 -0
- package/dist/components/floating-editor/tokens.d.ts +27 -0
- package/dist/components/floating-editor/tokens.js +1 -0
- package/dist/components/goldPhrases.d.ts +7 -0
- package/dist/components/goldPhrases.js +2 -0
- package/dist/components/integrationIcons.d.ts +2 -0
- package/dist/components/integrationIcons.js +1 -0
- package/dist/components/panel-widths.d.ts +2 -0
- package/dist/components/panel-widths.js +1 -0
- package/dist/components/preview-devices.d.ts +3 -0
- package/dist/components/preview-devices.js +1 -0
- package/dist/components/socialIcons.d.ts +8 -0
- package/dist/components/socialIcons.js +1 -0
- package/dist/components/storefront-editor.css +4870 -0
- package/dist/components/useCountUp.d.ts +10 -0
- package/dist/components/useCountUp.js +1 -0
- package/dist/components/useFooterFocus.d.ts +2 -0
- package/dist/components/useFooterFocus.js +1 -0
- package/dist/components/useLocationsTree.d.ts +6 -0
- package/dist/components/useLocationsTree.js +1 -0
- package/dist/components/usePartBridge.d.ts +1 -0
- package/dist/components/usePartBridge.js +1 -0
- package/dist/components/usePinnedChromeSeed.d.ts +2 -0
- package/dist/components/usePinnedChromeSeed.js +1 -0
- package/dist/components/usePreviewHref.d.ts +5 -0
- package/dist/components/usePreviewHref.js +1 -0
- package/dist/components/useReducedMotion.d.ts +4 -0
- package/dist/components/useReducedMotion.js +1 -0
- package/dist/components/useSnapshotSource.d.ts +17 -0
- package/dist/components/useSnapshotSource.js +1 -0
- package/dist/components/useSocialSettings.d.ts +14 -0
- package/dist/components/useSocialSettings.js +1 -0
- package/dist/components/useStorefrontBlogPosts.d.ts +2 -0
- package/dist/components/useStorefrontBlogPosts.js +1 -0
- package/dist/lib/client-only.d.ts +1 -0
- package/dist/lib/client-only.js +1 -0
- package/dist/lib/content/authored-props.d.ts +4 -0
- package/dist/lib/content/authored-props.js +1 -0
- package/dist/lib/content/box-background.d.ts +31 -0
- package/dist/lib/content/box-background.js +1 -0
- package/dist/lib/content/box-layout.d.ts +78 -0
- package/dist/lib/content/box-layout.js +1 -0
- package/dist/lib/content/button-arrow.d.ts +2 -0
- package/dist/lib/content/button-arrow.js +1 -0
- package/dist/lib/content/card-corners.d.ts +12 -0
- package/dist/lib/content/card-corners.js +1 -0
- package/dist/lib/content/card-image-background.d.ts +11 -0
- package/dist/lib/content/card-image-background.js +1 -0
- package/dist/lib/content/card-image-shape.d.ts +5 -0
- package/dist/lib/content/card-image-shape.js +1 -0
- package/dist/lib/content/cart-drawer.d.ts +20 -0
- package/dist/lib/content/cart-drawer.js +1 -0
- package/dist/lib/content/contact.d.ts +79 -0
- package/dist/lib/content/contact.js +3 -0
- package/dist/lib/content/container-direction.d.ts +14 -0
- package/dist/lib/content/container-direction.js +1 -0
- package/dist/lib/content/container-gap.d.ts +31 -0
- package/dist/lib/content/container-gap.js +1 -0
- package/dist/lib/content/footer.d.ts +30 -0
- package/dist/lib/content/footer.js +1 -0
- package/dist/lib/content/footprint.d.ts +22 -0
- package/dist/lib/content/footprint.js +1 -0
- package/dist/lib/content/gallery-card-layout.d.ts +7 -0
- package/dist/lib/content/gallery-card-layout.js +1 -0
- package/dist/lib/content/gallery-layout.d.ts +154 -0
- package/dist/lib/content/gallery-layout.js +1 -0
- package/dist/lib/content/grid-span.d.ts +15 -0
- package/dist/lib/content/grid-span.js +1 -0
- package/dist/lib/content/image-corners.d.ts +7 -0
- package/dist/lib/content/image-corners.js +1 -0
- package/dist/lib/content/image-fit.d.ts +11 -0
- package/dist/lib/content/image-fit.js +1 -0
- package/dist/lib/content/image-treatment.d.ts +20 -0
- package/dist/lib/content/image-treatment.js +1 -0
- package/dist/lib/content/image-width.d.ts +9 -0
- package/dist/lib/content/image-width.js +1 -0
- package/dist/lib/content/page-background.d.ts +4 -0
- package/dist/lib/content/page-background.js +1 -0
- package/dist/lib/content/page-width.d.ts +63 -0
- package/dist/lib/content/page-width.js +1 -0
- package/dist/lib/content/product-page.d.ts +11 -0
- package/dist/lib/content/product-page.js +1 -0
- package/dist/lib/content/section-animation.d.ts +13 -0
- package/dist/lib/content/section-animation.js +1 -0
- package/dist/lib/content/section-background.d.ts +7 -0
- package/dist/lib/content/section-background.js +1 -0
- package/dist/lib/content/section-corners.d.ts +16 -0
- package/dist/lib/content/section-corners.js +1 -0
- package/dist/lib/content/section-height.d.ts +9 -0
- package/dist/lib/content/section-height.js +1 -0
- package/dist/lib/content/section-min-height.d.ts +60 -0
- package/dist/lib/content/section-min-height.js +1 -0
- package/dist/lib/content/section-padding.d.ts +33 -0
- package/dist/lib/content/section-padding.js +1 -0
- package/dist/lib/content/section-surface.d.ts +13 -0
- package/dist/lib/content/section-surface.js +1 -0
- package/dist/lib/content/section-type-size.d.ts +7 -0
- package/dist/lib/content/section-type-size.js +1 -0
- package/dist/lib/content/section-width.d.ts +19 -0
- package/dist/lib/content/section-width.js +1 -0
- package/dist/lib/content/site-gutter.d.ts +2 -0
- package/dist/lib/content/site-gutter.js +1 -0
- package/dist/lib/content/site-name.d.ts +2 -0
- package/dist/lib/content/site-name.js +1 -0
- package/dist/lib/content/social-links.d.ts +12 -0
- package/dist/lib/content/social-links.js +1 -0
- package/dist/lib/content/subscribe.d.ts +76 -0
- package/dist/lib/content/subscribe.js +2 -0
- package/dist/lib/content/view-tiers.d.ts +2 -0
- package/dist/lib/content/view-tiers.js +1 -0
- package/dist/lib/editor/preview-href.d.ts +6 -0
- package/dist/lib/editor/preview-href.js +1 -0
- package/dist/lib/editor-admin-bridge.d.ts +2 -0
- package/dist/lib/editor-admin-bridge.js +1 -0
- package/dist/lib/editor-auth.d.ts +3 -0
- package/dist/lib/editor-auth.js +1 -0
- package/dist/lib/editor-backend-error.d.ts +2 -0
- package/dist/lib/editor-backend-error.js +1 -0
- package/dist/lib/editor-block-metadata.d.ts +6 -0
- package/dist/lib/editor-block-metadata.js +1 -0
- package/dist/lib/editor-blocks.d.ts +20 -0
- package/dist/lib/editor-blocks.js +1 -0
- package/dist/lib/editor-canvas-styles.d.ts +12 -0
- package/dist/lib/editor-canvas-styles.js +1 -0
- package/dist/lib/editor-chrome.d.ts +2 -0
- package/dist/lib/editor-chrome.js +1 -0
- package/dist/lib/editor-document-adapter.d.ts +7 -0
- package/dist/lib/editor-document-adapter.js +1 -0
- package/dist/lib/editor-document-addressing.d.ts +2 -0
- package/dist/lib/editor-document-addressing.js +1 -0
- package/dist/lib/editor-document-contract.d.ts +1 -0
- package/dist/lib/editor-document-contract.js +0 -0
- package/dist/lib/editor-document-hooks.d.ts +1 -0
- package/dist/lib/editor-document-hooks.js +0 -0
- package/dist/lib/editor-document-switch.d.ts +2 -0
- package/dist/lib/editor-document-switch.js +1 -0
- package/dist/lib/editor-events.d.ts +8 -0
- package/dist/lib/editor-events.js +1 -0
- package/dist/lib/editor-failure.d.ts +1 -0
- package/dist/lib/editor-failure.js +1 -0
- package/dist/lib/editor-form-window.d.ts +21 -0
- package/dist/lib/editor-form-window.js +1 -0
- package/dist/lib/editor-host-inbound.d.ts +1 -0
- package/dist/lib/editor-host-inbound.js +1 -0
- package/dist/lib/editor-host.d.ts +2 -0
- package/dist/lib/editor-host.js +1 -0
- package/dist/lib/editor-key-scope.d.ts +1 -0
- package/dist/lib/editor-key-scope.js +1 -0
- package/dist/lib/editor-load-error.d.ts +1 -0
- package/dist/lib/editor-load-error.js +1 -0
- package/dist/lib/editor-media-panel.d.ts +2 -0
- package/dist/lib/editor-media-panel.js +1 -0
- package/dist/lib/editor-media-picker.d.ts +2 -0
- package/dist/lib/editor-media-picker.js +1 -0
- package/dist/lib/editor-page-lock.d.ts +1 -0
- package/dist/lib/editor-page-lock.js +1 -0
- package/dist/lib/editor-page-rows.d.ts +16 -0
- package/dist/lib/editor-page-rows.js +1 -0
- package/dist/lib/editor-screen.d.ts +2 -0
- package/dist/lib/editor-screen.js +1 -0
- package/dist/lib/editor-section-templates.d.ts +1 -0
- package/dist/lib/editor-section-templates.js +1 -0
- package/dist/lib/editor-session-context.d.ts +1 -0
- package/dist/lib/editor-session-context.js +1 -0
- package/dist/lib/editor-session-loader.d.ts +4 -0
- package/dist/lib/editor-session-loader.js +1 -0
- package/dist/lib/editor-session.d.ts +2 -0
- package/dist/lib/editor-session.js +1 -0
- package/dist/lib/editor-site-slug.d.ts +2 -0
- package/dist/lib/editor-site-slug.js +1 -0
- package/dist/lib/editor-site.d.ts +3 -0
- package/dist/lib/editor-site.js +1 -0
- package/dist/lib/editor-theme.d.ts +1 -0
- package/dist/lib/editor-theme.js +1 -0
- package/dist/lib/fit-words.d.ts +3 -0
- package/dist/lib/fit-words.js +220 -0
- package/dist/lib/fonts.d.ts +32 -0
- package/dist/lib/fonts.js +1 -0
- package/dist/lib/geocode.d.ts +6 -0
- package/dist/lib/geocode.js +1 -0
- package/dist/lib/hero-arrows.d.ts +23 -0
- package/dist/lib/hero-arrows.js +1 -0
- package/dist/lib/hero-group-placement.d.ts +46 -0
- package/dist/lib/hero-group-placement.js +1 -0
- package/dist/lib/hero-overlay-anchor.d.ts +6 -0
- package/dist/lib/hero-overlay-anchor.js +1 -0
- package/dist/lib/hero-phone-stack.d.ts +27 -0
- package/dist/lib/hero-phone-stack.js +1 -0
- package/dist/lib/hero-swipe.d.ts +16 -0
- package/dist/lib/hero-swipe.js +1 -0
- package/dist/lib/hero-texture.d.ts +4 -0
- package/dist/lib/hero-texture.js +1 -0
- package/dist/lib/hero-video-control.d.ts +13 -0
- package/dist/lib/hero-video-control.js +1 -0
- package/dist/lib/image-focus.d.ts +16 -0
- package/dist/lib/image-focus.js +1 -0
- package/dist/lib/links/link-filters.d.ts +1 -0
- package/dist/lib/links/link-filters.js +0 -0
- package/dist/lib/links/link-picker-setup.d.ts +29 -0
- package/dist/lib/links/link-picker-setup.js +1 -0
- package/dist/lib/links/page-link-rules.d.ts +22 -0
- package/dist/lib/links/page-link-rules.js +1 -0
- package/dist/lib/locations-grid.d.ts +10 -0
- package/dist/lib/locations-grid.js +1 -0
- package/dist/lib/logo/analyze-logo-client.d.ts +3 -0
- package/dist/lib/logo/analyze-logo-client.js +1 -0
- package/dist/lib/logo/reverse-svg.d.ts +9 -0
- package/dist/lib/logo/reverse-svg.js +1 -0
- package/dist/lib/map-styles.d.ts +30 -0
- package/dist/lib/map-styles.js +1 -0
- package/dist/lib/maps-config.d.ts +16 -0
- package/dist/lib/maps-config.js +1 -0
- package/dist/lib/maps-loader.d.ts +3 -0
- package/dist/lib/maps-loader.js +1 -0
- package/dist/lib/markup.d.ts +38 -0
- package/dist/lib/markup.js +2 -0
- package/dist/lib/media.d.ts +10 -0
- package/dist/lib/media.js +1 -0
- package/dist/lib/parse-option.d.ts +3 -0
- package/dist/lib/parse-option.js +1 -0
- package/dist/lib/popup/text-kinds.d.ts +11 -0
- package/dist/lib/popup/text-kinds.js +1 -0
- package/dist/lib/preview-header-settings.d.ts +39 -0
- package/dist/lib/preview-header-settings.js +0 -0
- package/dist/lib/puck/ColourControl.d.ts +11 -0
- package/dist/lib/puck/ColourControl.js +1 -0
- package/dist/lib/puck/MarkupToolbar.d.ts +13 -0
- package/dist/lib/puck/MarkupToolbar.js +1 -0
- package/dist/lib/puck/add-palette.d.ts +14 -0
- package/dist/lib/puck/add-palette.js +1 -0
- package/dist/lib/puck/add-target-types.d.ts +1 -0
- package/dist/lib/puck/add-target-types.js +0 -0
- package/dist/lib/puck/add-target.d.ts +3 -0
- package/dist/lib/puck/add-target.js +1 -0
- package/dist/lib/puck/apply-card-corners.d.ts +21 -0
- package/dist/lib/puck/apply-card-corners.js +1 -0
- package/dist/lib/puck/block-choice.d.ts +2 -0
- package/dist/lib/puck/block-choice.js +1 -0
- package/dist/lib/puck/block-offer.d.ts +10 -0
- package/dist/lib/puck/block-offer.js +1 -0
- package/dist/lib/puck/block-types-in.d.ts +1 -0
- package/dist/lib/puck/block-types-in.js +1 -0
- package/dist/lib/puck/blocks/block-types.d.ts +12 -0
- package/dist/lib/puck/blocks/block-types.js +1 -0
- package/dist/lib/puck/blocks/general/Banner/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Banner/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Banner/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Banner/render.js +1 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/render.js +1 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/render.js +1 -0
- package/dist/lib/puck/blocks/general/Cards/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Cards/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Cards/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/Cards/render.js +1 -0
- package/dist/lib/puck/blocks/general/CategoryBar/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CategoryBar/fields.js +1 -0
- package/dist/lib/puck/blocks/general/CategoryBar/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CategoryBar/render.js +1 -0
- package/dist/lib/puck/blocks/general/Chart/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Chart/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Chart/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/Chart/render.js +2 -0
- package/dist/lib/puck/blocks/general/ContactLocations/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ContactLocations/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ContactLocations/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ContactLocations/render.js +1 -0
- package/dist/lib/puck/blocks/general/CustomHTML/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CustomHTML/fields.js +1 -0
- package/dist/lib/puck/blocks/general/CustomHTML/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CustomHTML/render.js +3 -0
- package/dist/lib/puck/blocks/general/Divider/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Divider/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Divider/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Divider/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocBody/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocBody/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocBody/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/DocBody/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocMasthead/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocMasthead/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocMasthead/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/DocMasthead/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/render.d.ts +4 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocTabs/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocTabs/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocTabs/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/DocTabs/render.js +1 -0
- package/dist/lib/puck/blocks/general/Eyebrow/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Eyebrow/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Eyebrow/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Eyebrow/render.js +1 -0
- package/dist/lib/puck/blocks/general/FAQ/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/FAQ/fields.js +1 -0
- package/dist/lib/puck/blocks/general/FAQ/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/FAQ/render.js +1 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/fields.js +1 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/render.d.ts +13 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/render.js +1 -0
- package/dist/lib/puck/blocks/general/Flex/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Flex/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Flex/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Flex/render.js +1 -0
- package/dist/lib/puck/blocks/general/Footprint/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Footprint/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Footprint/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Footprint/render.js +2 -0
- package/dist/lib/puck/blocks/general/Grid/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Grid/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Grid/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Grid/render.js +1 -0
- package/dist/lib/puck/blocks/general/Heading/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Heading/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Heading/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Heading/render.js +1 -0
- package/dist/lib/puck/blocks/general/Hero/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Hero/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Hero/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Hero/render.js +1 -0
- package/dist/lib/puck/blocks/general/HeroGroup/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/HeroGroup/fields.js +1 -0
- package/dist/lib/puck/blocks/general/HeroGroup/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/HeroGroup/render.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSingle/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/HeroSingle/fields.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSingle/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/HeroSingle/render.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSlide/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/HeroSlide/fields.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSlide/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/HeroSlide/render.js +1 -0
- package/dist/lib/puck/blocks/general/ImageBlock/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ImageBlock/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ImageBlock/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ImageBlock/render.js +1 -0
- package/dist/lib/puck/blocks/general/Integrations/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Integrations/fields.js +2 -0
- package/dist/lib/puck/blocks/general/Integrations/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Integrations/render.js +2 -0
- package/dist/lib/puck/blocks/general/IntroBleed/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/IntroBleed/fields.js +1 -0
- package/dist/lib/puck/blocks/general/IntroBleed/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/IntroBleed/render.js +2 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/fields.js +1 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/render.js +1 -0
- package/dist/lib/puck/blocks/general/LogoBlock/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/LogoBlock/fields.js +1 -0
- package/dist/lib/puck/blocks/general/LogoBlock/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/LogoBlock/render.js +1 -0
- package/dist/lib/puck/blocks/general/Logos/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Logos/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Logos/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Logos/render.js +1 -0
- package/dist/lib/puck/blocks/general/LongRead/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/LongRead/fields.js +1 -0
- package/dist/lib/puck/blocks/general/LongRead/render.d.ts +19 -0
- package/dist/lib/puck/blocks/general/LongRead/render.js +1 -0
- package/dist/lib/puck/blocks/general/Manifesto/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Manifesto/fields.js +2 -0
- package/dist/lib/puck/blocks/general/Manifesto/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Manifesto/render.js +1 -0
- package/dist/lib/puck/blocks/general/Masthead/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Masthead/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Masthead/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/Masthead/render.js +1 -0
- package/dist/lib/puck/blocks/general/Mockup/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Mockup/fields.js +2 -0
- package/dist/lib/puck/blocks/general/Mockup/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Mockup/render.js +2 -0
- package/dist/lib/puck/blocks/general/OrderSummary/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/OrderSummary/fields.js +1 -0
- package/dist/lib/puck/blocks/general/OrderSummary/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/OrderSummary/render.js +1 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/render.d.ts +9 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/render.js +1 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/fields.js +1 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/render.js +1 -0
- package/dist/lib/puck/blocks/general/PostCard/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/PostCard/fields.js +1 -0
- package/dist/lib/puck/blocks/general/PostCard/render.d.ts +9 -0
- package/dist/lib/puck/blocks/general/PostCard/render.js +1 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/render.d.ts +13 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/render.js +1 -0
- package/dist/lib/puck/blocks/general/Prose/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Prose/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Prose/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Prose/render.js +1 -0
- package/dist/lib/puck/blocks/general/SectionHeader/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SectionHeader/fields.js +1 -0
- package/dist/lib/puck/blocks/general/SectionHeader/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SectionHeader/render.js +1 -0
- package/dist/lib/puck/blocks/general/Series/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Series/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Series/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/Series/render.js +1 -0
- package/dist/lib/puck/blocks/general/Spacer/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Spacer/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Spacer/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Spacer/render.js +1 -0
- package/dist/lib/puck/blocks/general/SpecStrip/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SpecStrip/fields.js +1 -0
- package/dist/lib/puck/blocks/general/SpecStrip/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SpecStrip/render.js +1 -0
- package/dist/lib/puck/blocks/general/Split/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Split/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Split/render.d.ts +10 -0
- package/dist/lib/puck/blocks/general/Split/render.js +2 -0
- package/dist/lib/puck/blocks/general/Stats/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Stats/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Stats/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Stats/render.js +1 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/fields.js +1 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/render.js +1 -0
- package/dist/lib/puck/blocks/general/Testimonials/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Testimonials/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Testimonials/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/Testimonials/render.js +1 -0
- package/dist/lib/puck/blocks/general/Text/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Text/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Text/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Text/render.js +1 -0
- package/dist/lib/puck/blocks/general/Ticker/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Ticker/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Ticker/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/Ticker/render.js +1 -0
- package/dist/lib/puck/blocks/general/Timeline/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Timeline/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Timeline/render.d.ts +10 -0
- package/dist/lib/puck/blocks/general/Timeline/render.js +2 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/fields.js +1 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/render.js +1 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/fields.js +1 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/render.js +2 -0
- package/dist/lib/puck/blocks/general/index.d.ts +2 -0
- package/dist/lib/puck/blocks/general/index.js +1 -0
- package/dist/lib/puck/blocks/general/renders.d.ts +57 -0
- package/dist/lib/puck/blocks/general/renders.js +1 -0
- package/dist/lib/puck/blocks/general/section-bg-built-in.d.ts +6 -0
- package/dist/lib/puck/blocks/general/section-bg-built-in.js +1 -0
- package/dist/lib/puck/blocks/placeholders.d.ts +25 -0
- package/dist/lib/puck/blocks/placeholders.js +1 -0
- package/dist/lib/puck/blocks/scaffold.d.ts +22 -0
- package/dist/lib/puck/blocks/scaffold.js +1 -0
- package/dist/lib/puck/blocks/shared-fields.d.ts +14 -0
- package/dist/lib/puck/blocks/shared-fields.js +1 -0
- package/dist/lib/puck/booking-preview.d.ts +3 -0
- package/dist/lib/puck/booking-preview.js +1 -0
- package/dist/lib/puck/box-footer.d.ts +9 -0
- package/dist/lib/puck/box-footer.js +1 -0
- package/dist/lib/puck/build-config.d.ts +3 -0
- package/dist/lib/puck/build-config.js +1 -0
- package/dist/lib/puck/cap-hero-groups.d.ts +1 -0
- package/dist/lib/puck/cap-hero-groups.js +1 -0
- package/dist/lib/puck/container-blocks.d.ts +10 -0
- package/dist/lib/puck/container-blocks.js +1 -0
- package/dist/lib/puck/content-tree.d.ts +2 -0
- package/dist/lib/puck/content-tree.js +1 -0
- package/dist/lib/puck/controls.d.ts +335 -0
- package/dist/lib/puck/controls.js +1 -0
- package/dist/lib/puck/device-fields.d.ts +2 -0
- package/dist/lib/puck/device-fields.js +1 -0
- package/dist/lib/puck/editor-page-context.d.ts +6 -0
- package/dist/lib/puck/editor-page-context.js +1 -0
- package/dist/lib/puck/enclosing-section.d.ts +1 -0
- package/dist/lib/puck/enclosing-section.js +1 -0
- package/dist/lib/puck/field-buckets.d.ts +2 -0
- package/dist/lib/puck/field-buckets.js +1 -0
- package/dist/lib/puck/field-groups.d.ts +23 -0
- package/dist/lib/puck/field-groups.js +1 -0
- package/dist/lib/puck/field-markers.d.ts +2 -0
- package/dist/lib/puck/field-markers.js +1 -0
- package/dist/lib/puck/field-noun.d.ts +3 -0
- package/dist/lib/puck/field-noun.js +1 -0
- package/dist/lib/puck/footer-block-row-name.d.ts +4 -0
- package/dist/lib/puck/footer-block-row-name.js +1 -0
- package/dist/lib/puck/footer-blocks.d.ts +11 -0
- package/dist/lib/puck/footer-blocks.js +1 -0
- package/dist/lib/puck/footer-return.d.ts +3 -0
- package/dist/lib/puck/footer-return.js +1 -0
- package/dist/lib/puck/general-registry.d.ts +4 -0
- package/dist/lib/puck/general-registry.js +1 -0
- package/dist/lib/puck/geocode-resolve.d.ts +14 -0
- package/dist/lib/puck/geocode-resolve.js +1 -0
- package/dist/lib/puck/header-clearance.d.ts +49 -0
- package/dist/lib/puck/header-clearance.js +1 -0
- package/dist/lib/puck/header-ink.d.ts +16 -0
- package/dist/lib/puck/header-ink.js +1 -0
- package/dist/lib/puck/heading-outline.d.ts +7 -0
- package/dist/lib/puck/heading-outline.js +1 -0
- package/dist/lib/puck/hidable.d.ts +2 -0
- package/dist/lib/puck/hidable.js +1 -0
- package/dist/lib/puck/home-page.d.ts +1 -0
- package/dist/lib/puck/home-page.js +1 -0
- package/dist/lib/puck/left-view.d.ts +5 -0
- package/dist/lib/puck/left-view.js +1 -0
- package/dist/lib/puck/locations-focus.d.ts +22 -0
- package/dist/lib/puck/locations-focus.js +1 -0
- package/dist/lib/puck/locations-tree.d.ts +23 -0
- package/dist/lib/puck/locations-tree.js +2 -0
- package/dist/lib/puck/locked-blocks.d.ts +2 -0
- package/dist/lib/puck/locked-blocks.js +1 -0
- package/dist/lib/puck/media-manifest.json +138 -0
- package/dist/lib/puck/migrate-legacy.d.ts +2 -0
- package/dist/lib/puck/migrate-legacy.js +1 -0
- package/dist/lib/puck/mockup-variant-fields.d.ts +10 -0
- package/dist/lib/puck/mockup-variant-fields.js +1 -0
- package/dist/lib/puck/neutralization-contracts.d.ts +43 -0
- package/dist/lib/puck/neutralization-contracts.js +1 -0
- package/dist/lib/puck/one-h1.d.ts +3 -0
- package/dist/lib/puck/one-h1.js +1 -0
- package/dist/lib/puck/overlay-portal.d.ts +2 -0
- package/dist/lib/puck/overlay-portal.js +1 -0
- package/dist/lib/puck/overrides.d.ts +2 -0
- package/dist/lib/puck/overrides.js +1 -0
- package/dist/lib/puck/page-render.d.ts +5 -0
- package/dist/lib/puck/page-render.js +1 -0
- package/dist/lib/puck/page-root-fields.d.ts +29 -0
- package/dist/lib/puck/page-root-fields.js +1 -0
- package/dist/lib/puck/page-root.d.ts +55 -0
- package/dist/lib/puck/page-root.js +1 -0
- package/dist/lib/puck/palette-sections.d.ts +2 -0
- package/dist/lib/puck/palette-sections.js +1 -0
- package/dist/lib/puck/panel-drop-empty-headings.d.ts +3 -0
- package/dist/lib/puck/panel-drop-empty-headings.js +1 -0
- package/dist/lib/puck/panel-fields.d.ts +2 -0
- package/dist/lib/puck/panel-fields.js +1 -0
- package/dist/lib/puck/panel-heading-scope.d.ts +8 -0
- package/dist/lib/puck/panel-heading-scope.js +1 -0
- package/dist/lib/puck/panel-no-control-mark.d.ts +2 -0
- package/dist/lib/puck/panel-no-control-mark.js +1 -0
- package/dist/lib/puck/part-anchors.d.ts +23 -0
- package/dist/lib/puck/part-anchors.js +1 -0
- package/dist/lib/puck/part-id.d.ts +1 -0
- package/dist/lib/puck/part-id.js +1 -0
- package/dist/lib/puck/part-inks.d.ts +9 -0
- package/dist/lib/puck/part-inks.js +1 -0
- package/dist/lib/puck/part-key.d.ts +9 -0
- package/dist/lib/puck/part-key.js +1 -0
- package/dist/lib/puck/part-row-field.d.ts +2 -0
- package/dist/lib/puck/part-row-field.js +1 -0
- package/dist/lib/puck/part-rows.d.ts +15 -0
- package/dist/lib/puck/part-rows.js +1 -0
- package/dist/lib/puck/part-styles.d.ts +133 -0
- package/dist/lib/puck/part-styles.js +2 -0
- package/dist/lib/puck/part-text.d.ts +12 -0
- package/dist/lib/puck/part-text.js +1 -0
- package/dist/lib/puck/part-typing.d.ts +11 -0
- package/dist/lib/puck/part-typing.js +1 -0
- package/dist/lib/puck/passes/catalogue-labels.d.ts +2 -0
- package/dist/lib/puck/passes/catalogue-labels.js +1 -0
- package/dist/lib/puck/passes/cell-width.d.ts +2 -0
- package/dist/lib/puck/passes/cell-width.js +1 -0
- package/dist/lib/puck/passes/clickable-parts.d.ts +2 -0
- package/dist/lib/puck/passes/clickable-parts.js +1 -0
- package/dist/lib/puck/passes/corners.d.ts +3 -0
- package/dist/lib/puck/passes/corners.js +1 -0
- package/dist/lib/puck/passes/document-position.d.ts +16 -0
- package/dist/lib/puck/passes/document-position.js +1 -0
- package/dist/lib/puck/passes/empty-headings.d.ts +2 -0
- package/dist/lib/puck/passes/empty-headings.js +1 -0
- package/dist/lib/puck/passes/hidden-nodes.d.ts +2 -0
- package/dist/lib/puck/passes/hidden-nodes.js +1 -0
- package/dist/lib/puck/passes/index.d.ts +5 -0
- package/dist/lib/puck/passes/index.js +1 -0
- package/dist/lib/puck/passes/inspector.d.ts +2 -0
- package/dist/lib/puck/passes/inspector.js +1 -0
- package/dist/lib/puck/passes/registry-context.d.ts +2 -0
- package/dist/lib/puck/passes/registry-context.js +1 -0
- package/dist/lib/puck/passes/section-anchor.d.ts +2 -0
- package/dist/lib/puck/passes/section-anchor.js +1 -0
- package/dist/lib/puck/passes/section-animation.d.ts +2 -0
- package/dist/lib/puck/passes/section-animation.js +1 -0
- package/dist/lib/puck/passes/section-height.d.ts +2 -0
- package/dist/lib/puck/passes/section-height.js +1 -0
- package/dist/lib/puck/passes/section-padding.d.ts +8 -0
- package/dist/lib/puck/passes/section-padding.js +1 -0
- package/dist/lib/puck/passes/section-theme.d.ts +3 -0
- package/dist/lib/puck/passes/section-theme.js +1 -0
- package/dist/lib/puck/passes/section-width.d.ts +10 -0
- package/dist/lib/puck/passes/section-width.js +1 -0
- package/dist/lib/puck/passes/settings-groups.d.ts +3 -0
- package/dist/lib/puck/passes/settings-groups.js +1 -0
- package/dist/lib/puck/passes/slot-rules.d.ts +4 -0
- package/dist/lib/puck/passes/slot-rules.js +1 -0
- package/dist/lib/puck/passes/types.d.ts +51 -0
- package/dist/lib/puck/passes/types.js +0 -0
- package/dist/lib/puck/phone-override.d.ts +4 -0
- package/dist/lib/puck/phone-override.js +1 -0
- package/dist/lib/puck/pinned-seed-gate.d.ts +7 -0
- package/dist/lib/puck/pinned-seed-gate.js +1 -0
- package/dist/lib/puck/preview-click.d.ts +1 -0
- package/dist/lib/puck/preview-click.js +1 -0
- package/dist/lib/puck/preview-dom.d.ts +1 -0
- package/dist/lib/puck/preview-dom.js +1 -0
- package/dist/lib/puck/preview-events.d.ts +2 -0
- package/dist/lib/puck/preview-events.js +1 -0
- package/dist/lib/puck/preview-selection-context.d.ts +2 -0
- package/dist/lib/puck/preview-selection-context.js +1 -0
- package/dist/lib/puck/registry.d.ts +3 -0
- package/dist/lib/puck/registry.js +1 -0
- package/dist/lib/puck/renamed-props.d.ts +2 -0
- package/dist/lib/puck/renamed-props.js +1 -0
- package/dist/lib/puck/sanitize.d.ts +1 -0
- package/dist/lib/puck/sanitize.js +1 -0
- package/dist/lib/puck/section-catalog.d.ts +36 -0
- package/dist/lib/puck/section-catalog.js +1 -0
- package/dist/lib/puck/section-descriptions.d.ts +1 -0
- package/dist/lib/puck/section-descriptions.js +1 -0
- package/dist/lib/puck/section-doc.d.ts +1 -0
- package/dist/lib/puck/section-doc.js +1 -0
- package/dist/lib/puck/section-groups.d.ts +21 -0
- package/dist/lib/puck/section-groups.js +1 -0
- package/dist/lib/puck/section-text-suppress.d.ts +9 -0
- package/dist/lib/puck/section-text-suppress.js +1 -0
- package/dist/lib/puck/site-gap-fields.d.ts +2 -0
- package/dist/lib/puck/site-gap-fields.js +1 -0
- package/dist/lib/puck/slider-typing.d.ts +9 -0
- package/dist/lib/puck/slider-typing.js +1 -0
- package/dist/lib/puck/slot-child-name.d.ts +2 -0
- package/dist/lib/puck/slot-child-name.js +1 -0
- package/dist/lib/puck/slot-heal.d.ts +1 -0
- package/dist/lib/puck/slot-heal.js +1 -0
- package/dist/lib/puck/slot-section-spec.d.ts +1 -0
- package/dist/lib/puck/slot-section-spec.js +0 -0
- package/dist/lib/puck/slot-specs.d.ts +9 -0
- package/dist/lib/puck/slot-specs.js +1 -0
- package/dist/lib/puck/snapshot-contracts.d.ts +4 -0
- package/dist/lib/puck/snapshot-contracts.js +1 -0
- package/dist/lib/puck/source-bound-parts.d.ts +12 -0
- package/dist/lib/puck/source-bound-parts.js +1 -0
- package/dist/lib/puck/style-clipboard.d.ts +1 -0
- package/dist/lib/puck/style-clipboard.js +1 -0
- package/dist/lib/puck/templateFields.d.ts +2 -0
- package/dist/lib/puck/templateFields.js +1 -0
- package/dist/lib/puck/text-control-kinds.d.ts +2 -0
- package/dist/lib/puck/text-control-kinds.js +1 -0
- package/dist/lib/puck/text-parts.d.ts +30 -0
- package/dist/lib/puck/text-parts.js +1 -0
- package/dist/lib/puck/theme-swatches.d.ts +3 -0
- package/dist/lib/puck/theme-swatches.js +1 -0
- package/dist/lib/puck/tree-reveal.d.ts +1 -0
- package/dist/lib/puck/tree-reveal.js +1 -0
- package/dist/lib/puck/use-section-ops.d.ts +2 -0
- package/dist/lib/puck/use-section-ops.js +1 -0
- package/dist/lib/reel.d.ts +33 -0
- package/dist/lib/reel.js +1 -0
- package/dist/lib/safe-storage.d.ts +10 -0
- package/dist/lib/safe-storage.js +1 -0
- package/dist/lib/save-as-template-action.d.ts +29 -0
- package/dist/lib/save-as-template-action.js +1 -0
- package/dist/lib/section-template-types.d.ts +1 -0
- package/dist/lib/section-template-types.js +0 -0
- package/dist/lib/sections/card-cover-index.d.ts +7 -0
- package/dist/lib/sections/card-cover-index.js +1 -0
- package/dist/lib/sections/collection-card-text-regions.d.ts +4 -0
- package/dist/lib/sections/collection-card-text-regions.js +1 -0
- package/dist/lib/sections/divider-style.d.ts +12 -0
- package/dist/lib/sections/divider-style.js +1 -0
- package/dist/lib/sections/faq-text-regions.d.ts +4 -0
- package/dist/lib/sections/faq-text-regions.js +1 -0
- package/dist/lib/sections/hero-overlay.d.ts +10 -0
- package/dist/lib/sections/hero-overlay.js +1 -0
- package/dist/lib/sections/intro-bleed-layout.d.ts +15 -0
- package/dist/lib/sections/intro-bleed-layout.js +1 -0
- package/dist/lib/sections/new-section-node.d.ts +2 -0
- package/dist/lib/sections/new-section-node.js +1 -0
- package/dist/lib/sections/product-card-style.d.ts +18 -0
- package/dist/lib/sections/product-card-style.js +1 -0
- package/dist/lib/sections/section-eyebrow-look.d.ts +11 -0
- package/dist/lib/sections/section-eyebrow-look.js +1 -0
- package/dist/lib/sections/section-head-placement.d.ts +31 -0
- package/dist/lib/sections/section-head-placement.js +1 -0
- package/dist/lib/sections/section-head-style.d.ts +16 -0
- package/dist/lib/sections/section-head-style.js +1 -0
- package/dist/lib/sections/section-number-style.d.ts +10 -0
- package/dist/lib/sections/section-number-style.js +1 -0
- package/dist/lib/sections/section-presets.d.ts +9 -0
- package/dist/lib/sections/section-presets.js +1 -0
- package/dist/lib/sections/section-text-kinds.d.ts +8 -0
- package/dist/lib/sections/section-text-kinds.js +1 -0
- package/dist/lib/sections/section-text-regions.d.ts +3 -0
- package/dist/lib/sections/section-text-regions.js +1 -0
- package/dist/lib/sections/spec-table-regions.d.ts +11 -0
- package/dist/lib/sections/spec-table-regions.js +1 -0
- package/dist/lib/sections/text-regions.d.ts +21 -0
- package/dist/lib/sections/text-regions.js +1 -0
- package/dist/lib/sections/ticker-join.d.ts +9 -0
- package/dist/lib/sections/ticker-join.js +1 -0
- package/dist/lib/sections/ticker-scroll.d.ts +11 -0
- package/dist/lib/sections/ticker-scroll.js +1 -0
- package/dist/lib/sections/ticker-style.d.ts +17 -0
- package/dist/lib/sections/ticker-style.js +1 -0
- package/dist/lib/site-runtime.d.ts +28 -0
- package/dist/lib/site-runtime.js +1 -0
- package/dist/lib/site-theme-row.d.ts +52 -0
- package/dist/lib/site-theme-row.js +0 -0
- package/dist/lib/slugify.d.ts +1 -0
- package/dist/lib/slugify.js +1 -0
- package/dist/lib/source-rules/accent-token-name.d.ts +20 -0
- package/dist/lib/source-rules/accent-token-name.js +4 -0
- package/dist/lib/source-rules/button-corners.d.ts +13 -0
- package/dist/lib/source-rules/button-corners.js +2 -0
- package/dist/lib/source-rules/editor-chrome-note.d.ts +16 -0
- package/dist/lib/source-rules/editor-chrome-note.js +13 -0
- package/dist/lib/source-rules/editor-context-menu.d.ts +5 -0
- package/dist/lib/source-rules/editor-context-menu.js +4 -0
- package/dist/lib/source-rules/editor-puck-drag-off.d.ts +8 -0
- package/dist/lib/source-rules/editor-puck-drag-off.js +4 -0
- package/dist/lib/source-rules/efficient-easel-version.d.ts +9 -0
- package/dist/lib/source-rules/efficient-easel-version.js +2 -0
- package/dist/lib/source-rules/every-button-follows-the-button-colour.d.ts +12 -0
- package/dist/lib/source-rules/every-button-follows-the-button-colour.js +7 -0
- package/dist/lib/source-rules/flat-theme-palette.d.ts +10 -0
- package/dist/lib/source-rules/flat-theme-palette.js +8 -0
- package/dist/lib/source-rules/full-width-means-full.d.ts +8 -0
- package/dist/lib/source-rules/full-width-means-full.js +2 -0
- package/dist/lib/source-rules/heading-ceiling-sweep.d.ts +11 -0
- package/dist/lib/source-rules/heading-ceiling-sweep.js +8 -0
- package/dist/lib/source-rules/label-hints.d.ts +7 -0
- package/dist/lib/source-rules/label-hints.js +5 -0
- package/dist/lib/source-rules/label-vocabulary.d.ts +14 -0
- package/dist/lib/source-rules/label-vocabulary.js +5 -0
- package/dist/lib/source-rules/mirrored-rows-agree.d.ts +19 -0
- package/dist/lib/source-rules/mirrored-rows-agree.js +10 -0
- package/dist/lib/source-rules/no-comment-in-jsx.d.ts +9 -0
- package/dist/lib/source-rules/no-comment-in-jsx.js +7 -0
- package/dist/lib/source-rules/no-glyph-rows.d.ts +15 -0
- package/dist/lib/source-rules/no-glyph-rows.js +4 -0
- package/dist/lib/source-rules/one-colour-control.d.ts +7 -0
- package/dist/lib/source-rules/one-colour-control.js +2 -0
- package/dist/lib/source-rules/one-dropdown.d.ts +10 -0
- package/dist/lib/source-rules/one-dropdown.js +4 -0
- package/dist/lib/source-rules/one-editable-list.d.ts +16 -0
- package/dist/lib/source-rules/one-editable-list.js +6 -0
- package/dist/lib/source-rules/one-editor-list.d.ts +7 -0
- package/dist/lib/source-rules/one-editor-list.js +3 -0
- package/dist/lib/source-rules/one-right-click.d.ts +10 -0
- package/dist/lib/source-rules/one-right-click.js +2 -0
- package/dist/lib/source-rules/one-switch.d.ts +9 -0
- package/dist/lib/source-rules/one-switch.js +7 -0
- package/dist/lib/source-rules/one-up-level-link.d.ts +16 -0
- package/dist/lib/source-rules/one-up-level-link.js +18 -0
- package/dist/lib/source-rules/panel-colour-tokens.d.ts +48 -0
- package/dist/lib/source-rules/panel-colour-tokens.js +20 -0
- package/dist/lib/source-rules/panel-no-divider-lines.d.ts +14 -0
- package/dist/lib/source-rules/panel-no-divider-lines.js +10 -0
- package/dist/lib/source-rules/panel-one-arrow.d.ts +21 -0
- package/dist/lib/source-rules/panel-one-arrow.js +1 -0
- package/dist/lib/source-rules/panel-one-hover.d.ts +8 -0
- package/dist/lib/source-rules/panel-one-hover.js +2 -0
- package/dist/lib/source-rules/panel-rows-use-the-shared-row.d.ts +23 -0
- package/dist/lib/source-rules/panel-rows-use-the-shared-row.js +22 -0
- package/dist/lib/source-rules/part-slider-fills-row.d.ts +11 -0
- package/dist/lib/source-rules/part-slider-fills-row.js +29 -0
- package/dist/lib/source-rules/part-style-naming.d.ts +10 -0
- package/dist/lib/source-rules/part-style-naming.js +2 -0
- package/dist/lib/source-rules/puck-document-surfaces.d.ts +16 -0
- package/dist/lib/source-rules/puck-document-surfaces.js +8 -0
- package/dist/lib/source-rules/reduced-motion.d.ts +26 -0
- package/dist/lib/source-rules/reduced-motion.js +9 -0
- package/dist/lib/source-rules/route-content-width.d.ts +22 -0
- package/dist/lib/source-rules/route-content-width.js +5 -0
- package/dist/lib/source-rules/rule.d.ts +21 -0
- package/dist/lib/source-rules/rule.js +1 -0
- package/dist/lib/source-rules/section-theme-preview.d.ts +9 -0
- package/dist/lib/source-rules/section-theme-preview.js +8 -0
- package/dist/lib/source-rules/site-gutter.d.ts +6 -0
- package/dist/lib/source-rules/site-gutter.js +4 -0
- package/dist/lib/source-rules/site-square-by-default.d.ts +17 -0
- package/dist/lib/source-rules/site-square-by-default.js +3 -0
- package/dist/lib/source-rules/site-width.d.ts +11 -0
- package/dist/lib/source-rules/site-width.js +7 -0
- package/dist/lib/source-rules/size-token-paints.d.ts +8 -0
- package/dist/lib/source-rules/size-token-paints.js +11 -0
- package/dist/lib/source-rules/social-icons-import.d.ts +6 -0
- package/dist/lib/source-rules/social-icons-import.js +6 -0
- package/dist/lib/source-rules/source-status-is-shared.d.ts +7 -0
- package/dist/lib/source-rules/source-status-is-shared.js +1 -0
- package/dist/lib/source-rules/style-face-matches-size.d.ts +10 -0
- package/dist/lib/source-rules/style-face-matches-size.js +4 -0
- package/dist/lib/source-rules/support/accent-rename-bytes.d.ts +5 -0
- package/dist/lib/source-rules/support/accent-rename-bytes.js +1 -0
- package/dist/lib/source-rules/support/css-box-model.d.ts +5 -0
- package/dist/lib/source-rules/support/css-box-model.js +1 -0
- package/dist/lib/source-rules/support/css-length.d.ts +2 -0
- package/dist/lib/source-rules/support/css-length.js +1 -0
- package/dist/lib/source-rules/support/css-rules.d.ts +12 -0
- package/dist/lib/source-rules/support/css-rules.js +1 -0
- package/dist/lib/source-rules/support/css-source.d.ts +2 -0
- package/dist/lib/source-rules/support/css-source.js +3 -0
- package/dist/lib/source-rules/support/label-extraction.d.ts +14 -0
- package/dist/lib/source-rules/support/label-extraction.js +5 -0
- package/dist/lib/source-rules/support/panel-select-cascade.d.ts +72 -0
- package/dist/lib/source-rules/support/panel-select-cascade.js +2 -0
- package/dist/lib/source-rules/support/part-slider-call-sites.d.ts +9 -0
- package/dist/lib/source-rules/support/part-slider-call-sites.js +17 -0
- package/dist/lib/source-rules/support/registry-source.d.ts +14 -0
- package/dist/lib/source-rules/support/registry-source.js +3 -0
- package/dist/lib/source-rules/support/ts-source.d.ts +2 -0
- package/dist/lib/source-rules/support/ts-source.js +3 -0
- package/dist/lib/source-rules/theme-mode-controls-gone.d.ts +10 -0
- package/dist/lib/source-rules/theme-mode-controls-gone.js +5 -0
- package/dist/lib/source-rules/upload-intake-guard.d.ts +11 -0
- package/dist/lib/source-rules/upload-intake-guard.js +6 -0
- package/dist/lib/source-rules/word-styles.d.ts +8 -0
- package/dist/lib/source-rules/word-styles.js +4 -0
- package/dist/lib/theme-dom.d.ts +14 -0
- package/dist/lib/theme-dom.js +1 -0
- package/dist/lib/theme-row-persist.d.ts +34 -0
- package/dist/lib/theme-row-persist.js +1 -0
- package/dist/lib/theme-save-message.d.ts +6 -0
- package/dist/lib/theme-save-message.js +1 -0
- package/dist/lib/theme.d.ts +177 -0
- package/dist/lib/theme.js +18 -0
- package/dist/lib/use-host-products.d.ts +2 -0
- package/dist/lib/use-host-products.js +1 -0
- package/dist/lib/web-backend.d.ts +138 -0
- package/dist/lib/web-backend.js +1 -0
- package/dist/lib/web-runtime.d.ts +7 -0
- package/dist/lib/web-runtime.js +1 -0
- package/dist/lib/website-document-addressing.d.ts +2 -0
- package/dist/lib/website-document-addressing.js +1 -0
- package/dist/lib/website-host-inbound.d.ts +1 -0
- package/dist/lib/website-host-inbound.js +1 -0
- package/dist/lib/website-session.d.ts +5 -0
- package/dist/lib/website-session.js +1 -0
- package/dist/lib/word-styles.d.ts +54 -0
- package/dist/lib/word-styles.js +1 -0
- package/package.json +50 -36
- package/dist/chunks/EditorPreviewCheckout-5KOAA2SK.js +0 -4
- package/dist/chunks/PreviewFooter-H6XJUR5S.js +0 -1
- package/dist/chunks/SectionEditorShell-EEZR7KFE.js +0 -1
- package/dist/chunks/SiteEditorProvider-ECGZVKLG.js +0 -1
- package/dist/chunks/StorefrontEditorChrome-4TFS62GY.js +0 -1
- package/dist/chunks/chunk-6CP4D6VJ.js +0 -1
- package/dist/chunks/chunk-7QXLVNFD.js +0 -1
- package/dist/chunks/chunk-BJOS4Y35.js +0 -15
- package/dist/chunks/chunk-BJOS4Y35.js.LEGAL.txt +0 -27
- package/dist/chunks/chunk-EIXUXJQ5.js +0 -153
- package/dist/chunks/chunk-EIXUXJQ5.js.LEGAL.txt +0 -4
- package/dist/chunks/chunk-H7O6ZYX6.js +0 -1
- package/dist/chunks/chunk-HVOO2GNE.js +0 -1
- package/dist/chunks/chunk-IFRGL3GL.js +0 -1
- package/dist/chunks/chunk-ML2AR222.js +0 -1
- package/dist/chunks/chunk-RRHBLOH4.js +0 -1
- package/dist/chunks/chunk-S6SXIMIG.js +0 -2
- package/dist/chunks/chunk-SNH7IFTZ.js +0 -1
- package/dist/chunks/chunk-Y4CZD2YY.js +0 -230
- package/dist/chunks/chunk-Y6SLVHK3.js +0 -1
- package/dist/chunks/chunk-YVQUISDX.js +0 -1
- package/dist/chunks/fitment-data-6NXSKODX.js +0 -1
- package/dist/chunks/gallery-builds-data-SWA6XKFF.js +0 -1
- package/dist/chunks/headers-3CAQXQEY.js +0 -1
- package/dist/chunks/render-client-YGYDU3K2.js +0 -1
- package/dist/contract.d.ts +0 -48
- package/dist/contract.js +0 -1
- package/dist/editor.css +0 -1
- package/dist/index.d.ts +0 -721
- package/dist/index.js +0 -11058
- package/dist/links.d.ts +0 -86
- package/dist/links.js +0 -1
|
@@ -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-SNH7IFTZ.js";import{i as _e,m as fe,t as T}from"./chunk-7QXLVNFD.js";import"./chunk-RRHBLOH4.js";import{La as It,a as Rt,c as ee}from"./chunk-IFRGL3GL.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-EIXUXJQ5.js";import{i as c}from"./chunk-S6SXIMIG.js";import"./chunk-YVQUISDX.js";import{Kc as u,jd as d}from"./chunk-BJOS4Y35.js";import"./chunk-HVOO2GNE.js";import"./chunk-SNH7IFTZ.js";import"./chunk-7QXLVNFD.js";import"./chunk-RRHBLOH4.js";import{Ia as s,La as a,Ma as f,Qa as g}from"./chunk-IFRGL3GL.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-YVQUISDX.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-Y4CZD2YY.js";import{g as v,h as _}from"./chunk-H7O6ZYX6.js";import{Bg as ve,Dg as P,K as de,N as pe,Oh as he,P as me,Q as ue,Qh as E,Sh as Ae,dd as fe,fd as ge,gd as ye,h as ae,ld as ke,ud as Se,zg as Te}from"./chunk-BJOS4Y35.js";import"./chunk-HVOO2GNE.js";import"./chunk-IFRGL3GL.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as fr,b as qr}from"./chunk-ML2AR222.js";import{B as Lr,C as Or,D as Me,E as Br,I as jo,J as Mr,L as Vo,M as Go,N as Ko,O as Uo,P as Hr,Q as Fr,R as $r,S as Wr,a as bt,b as Nt,c as Ms,i as nr,k as sr,m as lr,n as dr,o as cr,s as Wn,v as ur,x as xr,y as Sr,z as Ar}from"./chunk-S6SXIMIG.js";import{a as lt,b as Oo,c as pr,d as mr,e as Fo,f as $o,g as dt,h as Wo,i as qo,j as _o,k as wr,l as kr,m as xe,n as Gn,o as Cr,p as Tr,q as Ir,r as Rr,s as Er,t as jr,u as Vr,v as Gr}from"./chunk-Y4CZD2YY.js";import{g as Bt,h as Ho,i as qn,j as _n,k as yr,n as hr,o as br,p as jn,q as vr,t as Vn}from"./chunk-H7O6ZYX6.js";import{Bd as Ys,Bg as ar,Dg as me,Eg as Bo,F as nn,Fc as zt,Ff as er,Fg as gr,Ga as Hs,Gd as Xs,Gg as Mo,H as Es,Ha as Fs,Hd as zo,I as on,Ia as Hn,Jc as No,K as Mn,L as Eo,M as As,N as Ls,O as Dt,Oh as Pr,P as Ue,Q as ee,Qh as ye,R as T,Sh as Dr,T as Ao,Tc as qs,Tf as tr,Th as Nr,U as Ds,Uc as _s,Uh as zr,V as Ns,Wc as js,Z as zs,_ as Lo,ac as $s,dd as Vs,df as Qs,e as Is,fd as an,fg as $n,gd as Gs,h as Lt,hd as Ks,i as tn,l as Rs,la as Os,ld as Ot,m as Ps,ma as sn,oa as rn,pa as Do,pe as Ye,qe as Zs,ra as Bs,re as Js,ud as Us,vg as or,yg as ir,zg as rr}from"./chunk-BJOS4Y35.js";import{b as Fn}from"./chunk-HVOO2GNE.js";import{c as _r}from"./chunk-RRHBLOH4.js";import{La as Ws}from"./chunk-IFRGL3GL.js";import"./chunk-6CP4D6VJ.js";import"./chunk-Y6SLVHK3.js";import{Fragment as Ft,useCallback as Se,useEffect as B,useLayoutEffect as Yd,useMemo as ci,useRef as te,useState as ie}from"react";import{PagesIcon as Xd,LayersIcon as Ma,StylesIcon as Zd,MediaIcon as Ha}from"efficient-easel/rail";import{LayersTree as Jd,Subtree as Je,TreeGroupLabel as Jn,TreeRow as fe,TreeRowAction as Qn,TreeSeam as pi}from"efficient-easel/tree";import{DeviceSwitch as Qd,EaselIconButton as Fa,EaselTopBar as ec,InspectorIconButton as tc,PanelResizeHandle as $a,SaveState as Wa,SaveStateToggle as nc,TopBarCluster as qa,TopBarDivider as oc,TopBarRail as ic}from"efficient-easel/chrome";import{ExternalIcon as sc,ImageIcon as rc,RedoIcon as ac,TextLinesIcon as lc,TrashIcon as ui,UndoIcon as dc}from"efficient-easel/icons";import{saveIndicator as cc}from"efficient-easel/autosave";import{EditNotice as Dl}from"efficient-easel/chrome";import{jsx as Nl}from"react/jsx-runtime";function Yo(){let{capabilities:o,access:r,takeOverEditing:a,viewReadOnly:m,saveConflict:g,reloadFromServer:y}=Ot();return o.hasEditGuard?Nl(Dl,{access:r,conflict:g,noun:"page",onTakeOver:a,onViewReadOnly:m,onReload:y}):null}import{DesktopIcon as zl,PhoneIcon as Ol,TabletIcon as Bl}from"efficient-easel/icons";import{jsx as Xo}from"react/jsx-runtime";var Ml={desktop:Xo(zl,{}),tablet:Xo(Bl,{}),mobile:Xo(Ol,{})},Kr=Zs.map(o=>({id:o,label:Js[o],icon:Ml[o]}));import{useEffect as Wl,useMemo as ia,useState as ql}from"react";import{useEasel as _l}from"efficient-easel/easel";import{AddPanel as jl}from"efficient-easel/drag";import{AddIcon as Vl}from"efficient-easel/icons";import{Fragment as Jr,jsx as t,jsxs as d}from"react/jsx-runtime";var J={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},Zo="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function x({w:o,h:r,tone:a="dark",r:m=2,style:g}){return t("div",{style:{width:o,height:r,borderRadius:m,background:J[a],flex:"none",...g}})}var Hl={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",BrandStrip:"brandstrip",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},k={position:"absolute",inset:0},i={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},V=(o,r,a=160)=>({background:`linear-gradient(${a}deg,${o},${r})`});function Ze({size:o,style:r}){let a=Math.max(2,Math.round(o*.13)),m=(g,y,S)=>({position:"absolute",inset:g,background:y,borderRadius:a,...S?{mixBlendMode:S}:null});return d("span",{style:{position:"absolute",display:"block",width:o,height:o,...r},children:[t("span",{style:m("8% 26% 30% 6%",i.mark1)}),t("span",{style:m("26% 6% 8% 30%",i.mark2,"multiply")})]})}function dn({children:o}){return t("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:i.muted},children:o})}function Ur({over:o,overTone:r,head:a,headSize:m=11.5,cta:g,ctaBg:y,ctaFg:S,tone:P}){return d(Jr,{children:[o&&t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:r},children:o}),t("span",{style:{fontSize:m,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:P},children:a}),g&&t("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:y,color:S},children:g})]})}function Jo({name:o,price:r}){return d("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[t("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...V(i.paper,i.paper2,150)},children:t(Ze,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),t("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:i.text},children:o}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:r})]})}function Xe({k:o,v:r,ok:a}){return d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${i.rule}`,fontSize:"3.98cqw",color:i.muted},children:[t("span",{children:o}),d("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[t("b",{style:{color:i.text,fontWeight:700},children:r}),a&&t("span",{style:{color:i.rust,fontWeight:700},children:"\u2713"})]})]})}function W({title:o,children:r}){return d("div",{style:{...k,background:i.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[t(dn,{children:o}),r]})}function Yr({size:o=14}){return t("span",{style:{width:o,height:o,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${i.mark1},${i.mark2})`}})}function Qo({filled:o=5,size:r=6}){return d("span",{style:{fontSize:r,letterSpacing:"0.06em",color:i.rust,lineHeight:1},children:["\u2605".repeat(o),t("span",{style:{color:i.mark1},children:"\u2605".repeat(5-o)})]})}function ln({n:o,label:r,tone:a=i.text}){return d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[t("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:a},children:o}),t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:a},children:r})]})}function oe({children:o,w:r}){return t("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:i.muted,width:r,display:"block"},children:o})}function Kn({label:o,w:r="100%",filled:a}){return d("div",{style:{width:r,display:"flex",flexDirection:"column",gap:2},children:[t("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:i.muted},children:o}),t("span",{style:{height:9,borderRadius:3,border:`1px solid ${i.rule}`,background:a?i.paper:i.card}})]})}function Xr({children:o}){return t("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:i.text,color:i.onInk},children:o})}var Fl={wheelslisting:t(W,{title:"All wheels",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([o,r,a])=>d("div",{style:{display:"flex",alignItems:"center",gap:6},children:[t("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...V(i.paper,i.paper2,150)},children:t(Ze,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),t("b",{style:{flex:1,fontSize:"4.31cqw",color:i.text},children:o}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:r}),t("b",{style:{fontSize:"4.31cqw",color:i.text,width:26,textAlign:"right"},children:a})]},o))})}),catalogfilterbar:d("div",{style:{...k,background:i.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[d("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(o=>d("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:i.text,color:i.onInk,display:"flex",gap:4,alignItems:"center"},children:[o,t("span",{style:{opacity:.6},children:"\u2715"})]},o)),t("span",{style:{fontSize:"3.65cqw",color:i.rust,fontWeight:700},children:"Clear"})]}),d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:"128 results"}),t("span",{style:{fontSize:"3.65cqw",color:i.muted,border:`1px solid ${i.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:d("div",{style:{...k,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...V(i.ink,i.inkSoft)},children:[t("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:i.onInk},children:"Will it fit your rig?"}),d("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(o=>d("span",{style:{flex:1,fontSize:"3.65cqw",color:i.text,background:i.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[o," ",t("span",{style:{color:i.muted},children:"\u25BE"})]},o)),t("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:i.warm,color:i.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:t(W,{title:"Tyres that suit",children:t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([o,r])=>d("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[t("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:i.ink},children:t("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${i.mark2}`,boxSizing:"border-box"}})}),t("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:i.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:o}),t("span",{style:{fontSize:"3.32cqw",color:i.muted},children:r})]},o))})}),tyresizes:t(W,{title:"Available sizes",children:t("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((o,r)=>t("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${r===0?i.rust:i.rule}`,color:r===0?i.rust:i.text,background:r===0?i.paper:i.card},children:o},o))})}),tyrefitment:d(W,{title:"Will it fit your car?",children:[t("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(o=>d("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:i.muted,background:i.paper,border:`1px solid ${i.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[o," ",t("span",{style:{color:i.muted},children:"\u25BE"})]},o))}),t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([o,r,a])=>d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${i.rule}`,paddingTop:3},children:[t("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:i.text},children:o}),t("span",{style:{fontSize:"3.32cqw",fontWeight:a?700:400,letterSpacing:"0.06em",color:a?i.warm:i.muted},children:r})]},o))})]}),eutyrelabel:d("div",{style:{...k,background:i.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([o,r],a)=>d("div",{style:{display:"flex",alignItems:"center",gap:3},children:[t("span",{style:{width:r,height:6,borderRadius:"0 2px 2px 0",background:a===1?i.rust:i.mark1}}),t("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:a===1?i.rust:i.muted},children:o})]},o))}),d("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[t("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:i.text},children:"72"}),t("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:i.muted},children:"dB"})]})]}),bundleoffer:d("div",{style:{...k,background:i.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[t(dn,{children:"Buy it with"}),d("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(o=>t("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:i.card},children:t(Ze,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},o)),t("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:i.muted},children:"+"}),d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[t("span",{style:{fontSize:"3.65cqw",color:i.muted,textDecoration:"line-through"},children:"$1,024"}),t("b",{style:{fontSize:"6.02cqw",color:i.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:d("div",{style:{...k,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...V(i.ink,i.ink2)},children:[d("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:i.warm,fontWeight:700},children:"READY TO ORDER"}),t("b",{style:{fontSize:"6.63cqw",color:i.onInk,lineHeight:1},children:"$1,956"}),t("span",{style:{fontSize:"3.65cqw",color:i.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:i.warm,color:i.ink,flex:"none"},children:"CHECKOUT"})]}),contact:t(W,{title:"Who do you need?",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([o,r])=>d("div",{style:{display:"flex",alignItems:"center",gap:5},children:[t("b",{style:{flex:1,fontSize:"4.31cqw",color:i.text},children:o}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:r}),t("span",{style:{fontSize:"4.64cqw",color:i.rust,lineHeight:1},children:"\u203A"})]},o))})}),contactlocations:t(W,{title:"Find us",children:t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([o,r,a])=>d("div",{style:{border:`1px solid ${i.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[t("b",{style:{fontSize:"4.31cqw",color:i.text},children:o}),t("span",{style:{fontSize:"3.32cqw",color:i.muted},children:r}),t("span",{style:{fontSize:"3.32cqw",color:i.rust,fontWeight:700},children:a})]},o))})}),form:t(W,{title:"Send us a message",children:d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[d("div",{style:{display:"flex",gap:5},children:[t(Kn,{label:"Name"}),t(Kn,{label:"Email"})]}),t(Kn,{label:"Message",filled:!0}),t(Xr,{children:"SEND"})]})}),appointmentbooking:t(W,{title:"Book a fitting",children:d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[t("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((o,r)=>t("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:r===2?700:500,padding:"4px 0",borderRadius:3,background:r===2?i.text:i.paper,color:r===2?i.onInk:i.muted},children:o},o))}),t("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((o,r)=>t("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${r===1?i.rust:i.rule}`,color:r===1?i.rust:i.muted,background:r===3?i.paper:i.card,textDecoration:r===3?"line-through":"none"},children:o},o))})]})}),reviewform:t(W,{title:"Leave a review",children:d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[t(Qo,{filled:4,size:14}),t(Kn,{label:"Your review",filled:!0}),t(Xr,{children:"POST"})]})}),submitbuild:t(W,{title:"Show us your build",children:d("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${i.mark1}`,borderRadius:5,background:i.paper},children:[t("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:i.rust,fontWeight:300},children:"+"}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:"Drop a photo of your rig"})]})}),masthead:d("div",{style:{...k,background:i.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[t("span",{style:{height:1.5,background:i.text}}),t("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:i.text,lineHeight:1},children:"THE TRACK"}),d("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:i.muted},children:[t("span",{children:"Issue 14"}),t("span",{children:"Spring 2026"})]}),t("span",{style:{height:1,background:i.rule}})]}),featuredcover:d("div",{style:{...k,overflow:"hidden",...V(i.ink,i.inkSoft2)},children:[t(Ze,{size:92,style:{right:-18,top:-14}}),t("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${i.scrim},transparent 62%)`}}),d("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:i.warm},children:"FEATURE"}),t("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:i.onInk},children:"Four days on the Madigan Line"})]})]}),longread:d("div",{style:{...k,background:i.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:i.rust},children:"12 MIN READ"}),t("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:i.text},children:"What breaks first, and why"}),t(oe,{children:"Every failure starts in the same place \u2014 not the rim, not"}),t(oe,{w:"62%",children:"the tyre, but the bolt nobody re-torqued."})]}),series:t(W,{title:"Recurring columns",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([o,r])=>d("div",{style:{display:"flex",alignItems:"center",gap:6},children:[t("span",{style:{width:3,height:12,borderRadius:2,background:i.rust,flex:"none"}}),t("b",{style:{flex:1,fontSize:"4.64cqw",color:i.text},children:o}),t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:i.muted},children:r})]},o))})}),events:t(W,{title:"Latest posts",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[i.inkSoft,i.inkSoft2,"Madigan Line, four days"],[i.rust,i.warm,"Why offset beats width"]].map(([o,r,a])=>d("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[t("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...V(o,r,150)}}),d("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[t("b",{style:{fontSize:"4.31cqw",color:i.text},children:a}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:"4 Sep \xB7 Shed Notes"})]})]},a))})}),docmasthead:d("div",{style:{...k,background:i.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:i.muted},children:"POLICY"}),t("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:i.text,lineHeight:1.1},children:"Returns & refunds"}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),t("span",{style:{height:2,width:26,background:i.rust,borderRadius:1}})]}),docbody:t("div",{style:{...k,background:i.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([o,r])=>d("div",{style:{display:"flex",gap:5},children:[t("b",{style:{fontSize:"3.98cqw",color:i.rust,flex:"none"},children:o}),t(oe,{children:r})]},o))}),docmetacards:t(W,{title:"At a glance",children:t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([o,r])=>d("div",{style:{border:`1px solid ${i.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[t("b",{style:{fontSize:"5.31cqw",color:i.text,lineHeight:1},children:o}),t("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:i.muted},children:r})]},r))})}),doctabs:d("div",{style:{...k,background:i.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[t("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((o,r)=>t("span",{style:{fontSize:"3.98cqw",fontWeight:r===0?700:500,padding:"5px 8px",color:r===0?i.text:i.muted,background:r===0?i.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${r===0?i.rule:"transparent"}`,borderBottom:"none"},children:o},o))}),t("span",{style:{height:1,background:i.rule}}),d("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[t(oe,{children:"Unfitted wheels come back within 30 days, no questions."}),t(oe,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:d("div",{style:{...k,background:i.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[t("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:i.text},children:"The right wheel is the boring one."}),d("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[t(oe,{children:"Forged, correctly offset, rated for what you actually"}),t(oe,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:t(W,{title:"Key features",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(o=>d("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[t("span",{style:{fontSize:"4.64cqw",color:i.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),t("span",{style:{fontSize:"4.31cqw",color:i.text},children:o})]},o))})}),statsparagraph:d("div",{style:{...k,background:i.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[d("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[t(ln,{n:"27k",label:"Rigs"}),t(ln,{n:"4.9",label:"Rating"})]}),d("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[t(oe,{children:"Twelve years of fitting the same three questions, and the"}),t(oe,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:d(W,{title:"Load vs weight",children:[t("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((o,r)=>t("span",{style:{flex:1,height:`${o}%`,borderRadius:"2px 2px 0 0",background:r===4?i.rust:i.mark1}},r))}),t("span",{style:{height:1,background:i.rule,marginTop:-4}})]}),mockup:t("div",{style:{...k,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...V(i.inkSoft,i.ink)},children:d("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:i.card,boxShadow:`0 6px 14px ${i.scrim}`},children:[t("div",{style:{height:9,background:i.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(o=>t("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:i.mark1}},o))}),d("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[t("span",{style:{height:4,width:"56%",borderRadius:1,background:i.mark2}}),t("span",{style:{height:14,borderRadius:2,...V(i.paper,i.paper2,150)}}),t("span",{style:{height:3,width:"38%",borderRadius:1,background:i.rust}})]})]})}),manifesto:t("div",{style:{...k,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...V(i.ink,i.ink2)},children:d("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:i.onInk},children:["We build for the ",t("span",{style:{color:i.warm},children:"last"})," ten percent of the track."]})}),timeline:t(W,{title:"Our story",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([o,r],a)=>d("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[a<2&&t("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:i.rule}}),t("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:i.rust,zIndex:1}}),d("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[t("b",{style:{fontSize:"4.64cqw",color:i.text},children:o}),t(oe,{children:r})]})]},o))})}),timelinetrack:d("div",{style:{...k,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...V(i.ink,i.inkSoft)},children:[t("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:i.warm},children:"Milestones"}),d("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[t("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:i.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((o,r)=>d("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[t("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:r===3?i.warm:i.mark1}}),t("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:r===3?i.warm:i.onInk,opacity:r===3?1:.75},children:o})]},o))]})]}),footprint:d("div",{style:{...k,overflow:"hidden",...V(i.paper,i.paper2,150)},children:[t("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:i.mark1,opacity:.75}}),t("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:i.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([o,r])=>t("span",{style:{position:"absolute",left:o,top:r,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:i.rust}},o)),t("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:i.text},children:"3 fitting bays"})]}),banner:d("div",{style:{...k,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:i.rust},children:[d("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t("b",{style:{fontSize:"6.02cqw",color:i.onInk},children:"End of season \xB7 20% off"}),t("span",{style:{fontSize:"3.98cqw",color:i.onInk,opacity:.8},children:"Fitted free, this month only."})]}),t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:i.onInk,color:i.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:d("div",{style:{...k,background:i.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[t("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:i.text},children:"Not sure what fits?"}),d("div",{style:{display:"flex",gap:5},children:[t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:i.text,color:i.onInk},children:"FIND MY FIT"}),t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${i.text}`,color:i.text},children:"CALL US"})]})]}),ticker:t("div",{style:{...k,overflow:"hidden",background:i.ink,display:"flex",alignItems:"center"},children:t("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:i.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),breadcrumb:t("div",{style:{...k,background:i.card,display:"flex",alignItems:"center",padding:"0 13px"},children:d("span",{style:{fontSize:"4.64cqw",color:i.muted},children:["Home ",t("span",{style:{opacity:.5},children:"/"})," Wheels ",t("span",{style:{opacity:.5},children:"/"})," ",t("span",{style:{color:i.text,fontWeight:700},children:"20 inch"})]})}),categorybar:d("div",{style:{...k,background:i.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[t("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((o,r)=>t("span",{style:{fontSize:"3.98cqw",fontWeight:r===0?700:500,padding:"4px 7px",borderRadius:99,background:r===0?i.text:i.paper,color:r===0?i.onInk:i.muted},children:o},o))}),t("span",{style:{height:1,background:i.rule}})]}),intro:d("div",{style:{...k,overflow:"hidden",background:i.card},children:[t("div",{style:{position:"absolute",inset:0,...V(i.ink,i.inkSoft2)}}),t(Ze,{size:64,style:{right:8,top:6}}),d("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:i.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${i.scrim}`},children:[t("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:i.text},children:"Since 1998"}),t(oe,{children:"One shed, one lathe, one idea."}),t(oe,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:t(W,{title:"From our customers",children:t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[i.rust,i.warm],[i.inkSoft,i.ink],[i.paper2,i.mark2],[i.ink,i.inkSoft2],[i.warm,i.paper2],[i.mark2,i.inkSoft]].map(([o,r],a)=>t("div",{style:{borderRadius:3,...V(o,r,140+a*22)}},a))})}),gallery:d(W,{title:"Gallery",children:[t("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((o,r)=>t("span",{style:{fontSize:"3.98cqw",fontWeight:r===0?700:500,color:r===0?i.text:i.muted,borderBottom:`1.5px solid ${r===0?i.rust:"transparent"}`,paddingBottom:2},children:o},o))}),t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[i.rust,i.warm],[i.ink,i.inkSoft],[i.paper2,i.mark2]].map(([o,r],a)=>t("div",{style:{borderRadius:3,...V(o,r,150+a*20)}},a))})]}),ordersummary:d(W,{title:"Order summary",children:[d("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[t("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...V(i.paper,i.paper2,150)},children:t(Ze,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),d("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[t("b",{style:{fontSize:"4.31cqw",color:i.text},children:"Ridge Grappler"}),t("span",{style:{fontSize:"3.65cqw",color:i.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),d("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[t(Xe,{k:"Subtotal",v:"$1,956"}),t(Xe,{k:"Fitting",v:"Free"}),d("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[t("b",{style:{color:i.text},children:"Total"}),t("b",{style:{color:i.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:t(W,{title:"Delivery",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([o,r,a,m])=>d("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${m?i.rust:i.rule}`,background:m?i.paper:i.card},children:[t("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${m?i.rust:i.mark1}`,background:m?i.rust:"transparent"}}),t("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:i.text},children:o}),t("span",{style:{fontSize:"3.98cqw",color:i.muted},children:r}),t("b",{style:{fontSize:"4.31cqw",color:i.text},children:a})]},o))})}),paymentbadges:d("div",{style:{...k,background:i.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[t(dn,{children:"Ways to pay"}),t("div",{style:{display:"flex",gap:5},children:[["VISA",i.ink],["MC",i.rust],["AMEX",i.inkSoft],["PayPal",i.ink2]].map(([o,r])=>t("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:i.onInk,borderRadius:3,padding:"6px 0",background:r},children:o},o))})]}),stats:d("div",{style:{...k,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...V(i.ink,i.ink2)},children:[t("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:i.warm},children:"By the numbers"}),d("div",{style:{display:"flex",gap:8},children:[t(ln,{n:"27k",label:"Rigs fitted",tone:i.onInk}),t(ln,{n:"12",label:"Years",tone:i.onInk}),t(ln,{n:"4.9",label:"Avg rating",tone:i.warm})]})]}),testimonials:d("div",{style:{...k,overflow:"hidden",background:i.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[t("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:i.rust,opacity:.16},children:"\u201D"}),t(Qo,{filled:5,size:7}),t("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:i.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),d("div",{style:{display:"flex",alignItems:"center",gap:5},children:[t(Yr,{}),t("span",{style:{fontSize:"3.98cqw",color:i.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:d(W,{title:"Reviews",children:[t("div",{style:{display:"flex",gap:4,height:22},children:[[i.inkSoft,i.inkSoft2],[i.rust,i.warm],[i.ink,i.inkSoft],[i.mark2,i.mark1]].map(([o,r],a)=>t("div",{style:{flex:1,borderRadius:3,...V(o,r,140+a*15)}},a))}),t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([o,r,a])=>d("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[t(Yr,{size:12}),d("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[d("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[t("b",{style:{fontSize:"3.98cqw",color:i.text},children:o}),t(Qo,{filled:r})]}),t(oe,{children:a})]})]},o))})]}),logos:d("div",{style:{...k,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...V(i.ink,i.inkSoft)},children:[t("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:i.warm},children:"As fitted by"}),t("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(o=>t("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:i.onInk,opacity:.82},children:o},o))})]}),prose:d("div",{style:{...k,background:i.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[t("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:i.text},children:"Why offset matters"}),d("div",{style:{display:"flex",gap:6},children:[t("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:i.rust,marginTop:1},children:"T"}),d("div",{style:{display:"flex",flexDirection:"column"},children:[t(oe,{children:"he number on the back of your wheel decides whether the"}),t(oe,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:t(W,{title:"What you get",children:t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([o,r])=>d("div",{style:{border:`1px solid ${i.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[t("span",{style:{width:11,height:11,borderRadius:3,background:i.rust,opacity:.9}}),t("b",{style:{fontSize:"3.98cqw",color:i.text},children:o}),t(oe,{children:r})]},o))})}),faq:t(W,{title:"Questions",children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([o,r])=>d("div",{style:{borderBottom:`1px solid ${i.rule}`,padding:"4px 2px"},children:[d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[t("b",{style:{fontSize:"4.31cqw",color:i.text},children:o}),t("span",{style:{fontSize:"4.64cqw",color:i.muted,lineHeight:1},children:r?"\u2212":"+"})]}),r&&t(oe,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},o))})}),hero:d("div",{style:{...k,overflow:"hidden",...V(i.ink,i.ink2)},children:[t("div",{style:{...k,background:`linear-gradient(90deg,${i.scrim},transparent 70%)`}}),t("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:t(Ur,{over:"NEW \xB7 SUMMER",overTone:i.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:i.warm,ctaFg:i.ink,tone:i.onInk})}),t(Ze,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:d("div",{style:{...k,display:"flex",background:i.paper,overflow:"hidden"},children:[t("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:t(Ur,{over:"ALL-TERRAIN",overTone:i.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:i.text,ctaFg:i.onInk,tone:i.text})}),t("div",{style:{flex:1,position:"relative",...V(i.inkSoft,i.inkSoft2)},children:t(Ze,{size:74,style:{right:-14,top:16}})})]}),productgrid:t(W,{title:"Best sellers",children:d("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[t(Jo,{name:"Ridge 19",price:"$365"}),t(Jo,{name:"Ridge 29",price:"$410"}),t(Jo,{name:"Ridge 39",price:"$455"})]})}),collections:t(W,{title:"Shop by category",children:t("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",i.inkSoft,i.inkSoft2],["Tyres",i.rust,i.warm],["Lift kits",i.ink,i.inkSoft]].map(([o,r,a])=>t("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:i.onInk,...V(r,a)},children:t("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:o})},o))})}),producthero:d("div",{style:{...k,display:"flex",background:i.card,overflow:"hidden"},children:[t("div",{style:{flex:1.1,position:"relative",...V(i.paper,i.paper2,150)},children:t(Ze,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),d("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[t("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:i.rust},children:"NITTO"}),t("b",{style:{fontSize:"6.29cqw",color:i.text},children:"Ridge Grappler"}),t("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:i.text},children:"$489"}),t("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:i.text,color:i.onInk},children:"ADD TO CART"})]})]}),spectable:t(W,{title:"Specifications",children:d("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[t(Xe,{k:"Diameter",v:'20"'}),t(Xe,{k:"Width",v:"9.0J"}),t(Xe,{k:"Offset",v:"+12"}),t(Xe,{k:"Load",v:"1250 kg"})]})}),fitmenttable:t(W,{title:"Will it fit?",children:d("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[t(Xe,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),t(Xe,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),t(Xe,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),brandstrip:d("div",{style:{...k,background:i.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[t(dn,{children:"Brands we carry"}),t("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["NITTO","BFG","FUEL","TOYO"].map(o=>t("span",{style:{fontSize:"4.64cqw",fontWeight:800,letterSpacing:"0.1em",color:i.mark2},children:o},o))})]}),processsteps:d("div",{style:{...k,background:i.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[t(dn,{children:"How it works"}),t("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((o,r)=>d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[t("span",{style:{width:11,height:11,borderRadius:"50%",background:i.text,color:i.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:r+1}),t("span",{style:{fontSize:"3.98cqw",color:i.text,fontWeight:600},children:o})]},o))})]}),detailrows:t("div",{style:{...k,background:i.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([o,r,a])=>{let m=t("div",{style:{flex:1,...V(a?i.rust:i.inkSoft,a?i.warm:i.inkSoft2)}},"art"),g=d("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[t("b",{style:{fontSize:"4.64cqw",color:i.text},children:o}),t("span",{style:{fontSize:"3.98cqw",color:i.muted,lineHeight:1.3},children:r})]},"tx");return t("div",{style:{flex:1,display:"flex",minHeight:0},children:a?[g,m]:[m,g]},o)})}),specstrip:t("div",{style:{...k,background:i.ink,color:i.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([o,r])=>d("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[t("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:o}),t("span",{style:{fontSize:"3.65cqw",color:i.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:r})]},r))})},Zr={subscribe:d("div",{style:{...k,padding:13,display:"flex",flexDirection:"column"},children:[d("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[d("div",{style:{display:"flex",alignItems:"center",gap:6},children:[t(x,{w:8,h:8,r:2,tone:"accent"}),t(x,{w:38,h:7,r:3,tone:"dark"}),t(x,{w:16,h:7,r:3,tone:"accent"})]}),t(x,{w:38,h:4,r:2,tone:"soft"})]}),t("div",{style:{height:1,background:J.line,marginBottom:10}}),d("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${J.line}`,borderRadius:7,padding:10},children:[d("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[t(x,{w:"46%",h:3,r:2,tone:"accent"}),t(x,{w:"84%",h:8,r:4,tone:"dark"}),t(x,{w:"56%",h:8,r:4,tone:"accent"}),t(x,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),d("div",{style:{display:"flex",gap:5,marginTop:4},children:[t("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${J.line}`,background:J.block}}),t(x,{w:34,h:13,r:5,tone:"accent"})]})]}),d("div",{style:{flex:1,background:J.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[t(x,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((o,r)=>d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:r?`1px solid ${J.line}`:"none",paddingTop:r?4:0},children:[t(x,{w:34,h:4,r:2,tone:"dark"}),t(x,{w:16,h:3,r:2,tone:"soft"})]},r))]})]})]}),split:d("div",{style:{...k,display:"flex"},children:[t("div",{style:{width:"44%",background:Zo}}),d("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[t(x,{w:"44%",h:5,r:3,tone:"accent"}),t(x,{w:"88%",h:8,r:4,tone:"dark"}),t(x,{w:"70%",h:8,r:4,tone:"dark"}),t(x,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),t(x,{w:"80%",h:5,r:2,tone:"soft"}),t(x,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:d(Jr,{children:[t(x,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),d("div",{style:{...k,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[d("div",{style:{display:"flex",alignItems:"center",gap:9},children:[t(x,{w:16,h:16,r:4,tone:"accent"}),t(x,{w:"20%",h:9,r:4,tone:"dark"})]}),t(x,{w:"62%",h:10,r:5,tone:"dark"}),t(x,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:t("div",{style:{...k,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:d("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t(x,{w:"22%",h:12,r:4,tone:"dark"}),d("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[t(x,{w:26,h:6,r:3,tone:"soft"}),t(x,{w:26,h:6,r:3,tone:"soft"}),t(x,{w:26,h:6,r:3,tone:"soft"}),t(x,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:d("div",{style:{...k,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[d("div",{style:{display:"flex",gap:14},children:[d("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[t(x,{w:"60%",h:9,r:4,tone:"dark"}),t(x,{w:"90%",h:5,r:2,tone:"soft"}),t(x,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(o=>d("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[t(x,{w:"50%",h:6,r:3,tone:"dark"}),t(x,{w:"80%",h:5,r:2,tone:"soft"}),t(x,{w:"66%",h:5,r:2,tone:"soft"})]},o))]}),t("div",{style:{height:1,background:J.line}}),d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t(x,{w:"30%",h:5,r:2,tone:"soft"}),t(x,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:t("div",{style:{...k,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((o,r)=>t("div",{style:{borderRadius:6,background:J.block}},r))}),blanksection:t("div",{style:{...k,padding:14,display:"flex"},children:d("div",{style:{flex:1,border:`1px dashed ${J.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[t(x,{w:14,h:2,r:1,tone:"tint"}),t(x,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:d("div",{style:{...k,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[t(x,{w:"100%",h:6,r:3,tone:"soft"}),t(x,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),t(x,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:t("div",{style:{...k,padding:14,display:"flex",alignItems:"center"},children:t(x,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:d("div",{style:{...k,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Zo},children:[t(x,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),t(x,{w:16,h:10,r:3,tone:"accent"}),t(x,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:t("div",{style:{...k,padding:14,display:"flex",alignItems:"center"},children:t(x,{w:"64%",h:13,r:4,tone:"dark"})}),text:d("div",{style:{...k,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[t(x,{w:"100%",h:6,r:3,tone:"soft"}),t(x,{w:"96%",h:6,r:3,tone:"soft"}),t(x,{w:"100%",h:6,r:3,tone:"soft"}),t(x,{w:"58%",h:6,r:3,tone:"soft"})]}),image:t("div",{style:{position:"absolute",inset:14,borderRadius:7,background:Zo}}),button:t("div",{style:{...k,display:"flex",alignItems:"center",justifyContent:"center"},children:t(x,{w:"34%",h:16,r:8,tone:"accent"})}),menu:d("div",{style:{...k,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[t(x,{w:"48%",h:7,r:3,tone:"dark"}),t(x,{w:"82%",h:5,r:2,tone:"soft"}),t(x,{w:"66%",h:5,r:2,tone:"soft"}),t(x,{w:"74%",h:5,r:2,tone:"soft"}),t(x,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:d("div",{style:{...k,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[t(x,{w:"56%",h:8,r:3,tone:"dark"}),d("div",{style:{display:"flex",gap:6},children:[t("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${J.line}`}}),t(x,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:t("div",{style:{...k,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(o=>t(x,{w:16,h:16,r:8,tone:"dark"},o))}),search:t("div",{style:{...k,padding:"0 18%",display:"flex",alignItems:"center"},children:d("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${J.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[t("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${J.dark}`}}),t(x,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:d("div",{style:{...k,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[t("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${J.dark}`}}),t("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${J.dark}`},children:t(x,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:d("div",{style:{...k,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[d("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${J.line}`},children:[t(x,{w:22,h:6,r:2,tone:"dark"}),t(x,{w:6,h:4,r:1,tone:"soft"})]}),d("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${J.line}`},children:[t(x,{w:"80%",h:4,r:2,tone:"accent"}),t(x,{w:"64%",h:4,r:2,tone:"soft"}),t(x,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:d("div",{style:{...k,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[t("div",{style:{height:1,background:J.line}}),d("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t(x,{w:"38%",h:5,r:2,tone:"soft"}),d("div",{style:{display:"flex",gap:5},children:[t(x,{w:14,h:5,r:2,tone:"soft"}),t(x,{w:14,h:5,r:2,tone:"soft"}),t(x,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:t("div",{style:{position:"absolute",inset:14,borderRadius:8,background:J.block}})};function Un({type:o}){let r=Hl[o]??"",a=Fl[r]??Zr[r]??Zr.fallback;return t("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:a})}var $l={openers:{label:"Hero & intros",icon:"image"},shop:{label:"Shop & galleries",icon:"bag"},product:{label:"Product page",icon:"box"},checkout:{label:"Checkout & ordering",icon:"bag"},about:{label:"About & brand story",icon:"book"},content:{label:"Text & content",icon:"type"},proof:{label:"Stats & social proof",icon:"star"},promo:{label:"Promotions & sign-ups",icon:"sparkles"},blog:{label:"Blog & journal",icon:"newspaper"},navigation:{label:"Navigation & wayfinding",icon:"bookmark"},legal:{label:"Legal & documents",icon:"file"},contact:{label:"Contact, FAQ & forms",icon:"mail"},structure:{label:"Layout, structure & embeds",icon:"grid"}};function Qr(o,r={}){let a=o.categories??{},m=o.components,g=[];for(let[y,S]of Object.entries(a))for(let P of S?.components??[]){let C=m[P];if(!C)continue;let M=C.label??P,D=Lt(P,"section",M);g.push({type:P,cat:y,catLabel:ei(o,y),name:D,desc:r[P]??"",...D===M?{}:{alias:M}})}return g}function ei(o,r){return $l[r]?.label??o.categories?.[r]?.title??r}var ea=Is;function ta(o){return o.find(r=>r.type===ea)??null}function na(o){return o.filter(r=>r.type!==ea)}import{SettingsSwitch as Gl}from"efficient-easel/panel";var oa={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"Customer photos in a card grid with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of theme-color-accented stat cards.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A document header \u2014 headline, metadata and standfirst.",DocTabs:"A sticky tab bar to switch between documents.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{Fragment as Xl,jsx as He,jsxs as Yn}from"react/jsx-runtime";var Kl=o=>`section:${o}`,Ul=o=>`block:${o}`,Yl=o=>`template:${o}`;function ti({blocks:o,blocksOnly:r,at:a,onAdd:m,itemFor:g,session:y,siteWide:S,onClose:P,onHide:C,readOnly:M}){let D=_l(E=>E.config),H=zt(),[Y,we]=ql([]);Wl(()=>{let E=!1,K=zs(H);return fr.list().then(F=>{if(E)return;let _=D.components;we(F.filter(X=>X.node?.type&&_[X.node.type]&&(!K||Ps(X.node).every(K.offers))))}).catch(()=>{}),()=>{E=!0}},[D,H]);let Ae=ia(()=>Qr(D,oa),[D]),ke=E=>Lt(E,"section",D.components[E]?.label??E),re=E=>({type:Kl(E.type),label:E.name,cover:He(Un,{type:E.type}),title:E.desc?`${E.name} \u2014 ${E.desc}`:`Add ${E.name}`,keywords:[E.alias??"",E.desc,E.type,E.catLabel].filter(Boolean)}),Le=ia(()=>{let E=[];if(o&&o.choices.length>0&&gr(o.choices).forEach((_,X)=>{E.push({title:X===0?`Inside ${o.parentName}${_.group?` \xB7 ${_.group}`:""}`:_.group??"",tiles:_.items.map(ne=>({type:Ul(ne.type),label:ne.label,icon:He(me,{type:ne.type,size:18}),title:`Add ${ne.label}`}))})}),r)return E;let K=ta(Ae);K&&E.push({title:"Start blank",tiles:[re(K)]}),Y.length>0&&E.push({title:"Your templates",tiles:Y.map(_=>({type:Yl(_.id),label:_.name,cover:He(Un,{type:_.node.type}),keywords:[ke(_.node.type),_.node.type]}))});let F=na(Ae);for(let _ of Object.keys(D.categories??{})){let X=F.filter(ne=>ne.cat===_);X.length!==0&&E.push({title:ei(D,_),tiles:X.map(re)})}return E},[o,r,Y,Ae,D]),Ce=E=>{let K=E.indexOf(":"),F=E.slice(0,K),_=E.slice(K+1);if(F==="section")return{kind:"section",type:_};if(F==="block")return{kind:"block",type:_};if(F==="template"){let X=Y.find(ne=>ne.id===_);return X?{kind:"template",template:X}:null}return null};return Yn(Xl,{children:[He(lt,{icon:He(Vl,{size:15}),title:"Add",context:r?"Blocks for this place":"Sections and blocks",actions:He(pr,{label:"Done",description:"Close Add and go back",onClick:P}),onHide:C}),Yn("div",{className:"sf-addside sf-scroll",children:[He(jl,{groups:Le,session:y,itemFor:E=>g(Ce(E)??{kind:"section",type:E}),onInsert:E=>{let K=Ce(E);K&&m(K)},at:a,hint:r?"Drag into the page, or click to add.":"Drag onto the page, or click to add.",searchLabel:r?"Search blocks":"Search sections",readOnly:M}),S&&!r?Yn("div",{className:"sf-addside-sitewide",children:[He("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:He(me,{type:"chat",size:16})}),Yn("button",{type:"button",className:"sf-addside-sitewide-name",onClick:S.onOpenChat,children:["Live chat",He("span",{className:"sf-addside-sitewide-desc",children:"A chat bubble on every page"})]}),He(Gl,{checked:S.chatEnabled,onChange:S.onToggleChat,ariaLabel:"Show the chat bubble on the whole site"})]}):null]})]})}import{useCallback as Zl,useEffect as sa,useMemo as ra,useState as vt}from"react";import{InspectorIconButton as Jl}from"efficient-easel/chrome";import{AddIcon as Ql}from"efficient-easel/icons";import{PagesIcon as ed}from"efficient-easel/rail";import{jsx as L,jsxs as Ee}from"react/jsx-runtime";var aa="sf-editor-pages-collapsed-groups",td=o=>o.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),la=(o,r)=>{let a=td(o)||"page";if(!r.has(a))return a;let m=2;for(;r.has(`${a}-${m}`);)m+=1;return`${a}-${m}`};function ni({onNavigate:o,onClose:r,activeSurface:a,onPreviewSurface:m}){let g=zt().chrome?.pageRows,y=Fn(),{adapter:S,capabilities:P,ready:C,currentSlug:M}=Ot(),D=jn(),[H,Y]=vt(null),[we,Ae]=vt(""),[ke,re]=vt(!1),[Le,Ce]=vt(null),[E,K]=vt(!1),[F,_]=vt(""),X=Zl(async()=>{if(C)try{Y(await S.listPages())}catch{Y([])}},[S,C]);sa(()=>{Y(null),X()},[X]);let[ne,pn]=vt(()=>{if(typeof window>"u")return new Set;try{let u=window.localStorage.getItem(aa);return new Set(u?JSON.parse(u):[])}catch{return new Set}});sa(()=>{try{window.localStorage.setItem(aa,JSON.stringify([...ne]))}catch{}},[ne]);let to=u=>pn(U=>{let N=new Set(U);return N.has(u)?N.delete(u):N.add(u),N}),pt=ra(()=>Sr(H??[]),[H]),$t=we.trim().toLowerCase(),un=u=>!$t||u.toLowerCase().includes($t),xt=u=>$t?!0:!ne.has(u),fn=ra(()=>new Set((H??[]).map(u=>u.slug)),[H]),le=()=>{if(P.pageCreationInAdminForm){y.send("storefront-editor:new-page");return}_(""),Ce(null),K(!0)},j=async()=>{let u=F.trim();if(!(!u||!C||ke||!S.createPage)){re(!0),Ce(null);try{let U=await S.createPage({slug:la(u,fn),title:u,layout:{}});await X(),K(!1),_(""),o(U.slug)}catch{Ce("Couldn\u2019t add the page \u2014 please retry.")}finally{re(!1)}}},Fe=async u=>{if(!(!C||ke||!S.deletePage||(H??[]).length<=1)){re(!0);try{await S.deletePage(u.id);let U=(H??[]).filter(N=>N.id!==u.id);Y(U),Ce(null),u.slug===M&&U[0]&&o(U[0].slug)}catch{Ce("Couldn\u2019t delete the page \u2014 please retry.")}finally{re(!1)}}},G=u=>y.send("storefront-editor:open-page",{slug:u}),St=u=>{if(!un(u.label))return null;let U=!a&&u.slug===M,N=P.canDeletePagesInline&&(H??[]).length>1;return Ee("div",{className:`sf-row sf-prow ${U?"is-selected":""}`,onClick:()=>o(u.slug),children:[L("span",{className:"sf-chip",children:L(nd,{})}),L("span",{className:"sf-row-name",children:u.label}),xr(u)&&L("span",{className:"sf-badge-dynamic",children:"Dynamic"}),u.kind==="lightbox"&&L("span",{className:"sf-badge-lightbox",children:"Lightbox"}),u.draft&&L("span",{className:"sf-page-draft",children:"draft"}),P.pageCreationInAdminForm&&L("button",{type:"button",className:"sf-page-edit",title:`Edit \u201C${u.label}\u201D in the admin`,"aria-label":`Edit ${u.label} in the admin`,onClick:ce=>{ce.stopPropagation(),G(u.slug)},children:L(Ye,{name:"pencil",size:13,strokeWidth:1.7,rounded:!0})}),N&&L("button",{type:"button",className:"sf-page-edit sf-page-edit--danger",disabled:ke,title:`Delete \u201C${u.label}\u201D`,"aria-label":`Delete ${u.label}`,onClick:ce=>{ce.stopPropagation(),Fe(u)},children:L(Ye,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]},u.id)},ae=(u,U,N)=>{let ce=N.filter(Boolean);if(ce.length===0)return null;let De=xt(u);return Ee("div",{className:"sf-pgroup",children:[Ee("button",{type:"button",className:"sf-pgroup-head","aria-expanded":De,onClick:()=>to(u),children:[L(Ye,{name:"chevron-right",size:10,strokeWidth:2.6,rounded:!0,style:{transform:De?"rotate(90deg)":"none",transition:"transform 0.14s"}}),L("span",{className:"sf-pgroup-label",children:U}),L("span",{className:"sf-pgroup-count",children:ce.length})]}),De&&L("div",{className:"sf-pgroup-body",children:ce})]},u)},de=(g?.rows??[]).filter(u=>un(u.label)).map(u=>{let U=a===u.key;return Ee("div",{className:`sf-row sf-prow sf-prow--shop ${U?"is-selected":""}`,onClick:()=>m(u.key),title:`Preview the ${u.label} in the canvas`,children:[L("span",{className:"sf-chip",children:u.icon}),L("span",{className:"sf-row-name",children:u.label}),L("span",{className:"sf-badge-preview",children:"Preview"}),L("a",{className:"sf-page-edit",href:u.href,target:"_blank",rel:"noopener noreferrer",title:`Open the ${u.label} in a new tab`,"aria-label":`Open the ${u.label} in a new tab`,onClick:N=>N.stopPropagation(),children:L(Ye,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})})]},u.key)}),wt=P.hasSiteSettings&&!!g,ut=(()=>{if(H===null)return null;let u=[],U=!1;for(let N of pt)wt&&!U&&N.key.startsWith("system:")&&(u.push(ae("shop",g.title,de)),U=!0),u.push(ae(N.key,N.label,N.rows.map(St)));return wt&&!U&&u.push(ae("shop",g.title,de)),u})();return Ee("div",{className:"sf-pages",children:[L(lt,{icon:L(ed,{}),title:"Pages",context:D,actions:L(Jl,{label:"New page",onClick:le,children:L(Ql,{size:15})}),onHide:r}),Ee("div",{className:"sf-pages-search",children:[L(Ye,{name:"search",size:14,rounded:!0}),L("input",{type:"search",className:"sf-pages-search-input",placeholder:"Search all pages\u2026",value:we,onChange:u=>Ae(u.target.value),"aria-label":"Search all pages"})]}),Ee("div",{className:"sf-pages-list sf-scroll",children:[Le&&!E&&L("div",{className:"sf-note sf-note--error",role:"alert",children:Le}),ut===null?L("div",{className:"sf-note",children:"Loading\u2026"}):ut.some(Boolean)?ut:L("div",{className:"sf-note",children:we.trim()?"No pages match your search":"No pages yet"})]}),Ee("button",{type:"button",className:"sf-pages-new",onClick:le,children:[L("span",{className:"sf-plus",children:"+"}),"New page"]}),E&&L("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/30 p-4",role:"dialog","aria-modal":"true","aria-labelledby":"sf-add-page-title",onClick:()=>K(!1),children:Ee("div",{className:"w-full max-w-sm rounded-lg bg-white p-5 shadow-xl",onClick:u=>u.stopPropagation(),children:[L("h2",{id:"sf-add-page-title",className:"text-[15px] font-semibold text-zinc-900",children:"Add a page"}),L("p",{className:"mt-1 text-[13px] leading-relaxed text-zinc-600",children:"Give the new template page a name. It starts blank \u2014 add sections once it opens."}),L("input",{autoFocus:!0,value:F,onChange:u=>_(u.target.value),onKeyDown:u=>{u.key==="Enter"&&j(),u.key==="Escape"&&K(!1)},placeholder:"e.g. About",className:"mt-3 w-full rounded-md border border-zinc-300 px-3 py-2 text-[13px] text-zinc-900 outline-none focus:border-blue-500"}),F.trim()&&Ee("p",{className:"mt-1.5 text-[12px] text-zinc-400",children:["URL: /",la(F,fn)]}),Le&&L("p",{className:"mt-2 text-[12px] text-red-600",role:"alert",children:Le}),Ee("div",{className:"mt-4 flex justify-end gap-2",children:[L("button",{type:"button",onClick:()=>K(!1),className:"rounded-md border border-zinc-300 px-3 py-[7px] text-[13px] font-medium text-zinc-700 transition-colors hover:bg-zinc-100",children:"Cancel"}),L("button",{type:"button",onClick:()=>{j()},disabled:ke||!F.trim(),className:"rounded-md bg-blue-600 px-3 py-[7px] text-[13px] font-medium text-white transition-colors hover:bg-blue-700 disabled:opacity-60",children:ke?"Adding\u2026":"Add page"})]})]})})]})}function nd(){return Ee("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[L("path",{d:"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"}),L("path",{d:"M14 3v5h5"})]})}import{StylesIcon as od}from"efficient-easel/rail";import{jsx as cn,jsxs as id}from"react/jsx-runtime";function oi({tokenRef:o,siteId:r,onClose:a,onNotify:m,tab:g,onTabChange:y}){let S=jn();return id("div",{className:"sf-styles",children:[cn(lt,{icon:cn(od,{}),title:"Site styles",context:cn("span",{title:`${S} \u2014 renamed in the Console: Storefront \u25B8 Sites \u25B8 Settings.`,children:S}),onHide:a}),cn("div",{className:"sf-insp-body sf-scroll",children:cn(vr,{tokenRef:o,siteId:r,onNotify:m,tab:g,onTabChange:y})})]})}import{useEffect as sd,useState as rd}from"react";function da(){let o=zt().chrome?.products?.list,[r,a]=rd(null);return sd(()=>{if(!o)return;let m=!1;return o().then(g=>{m||a(g)}),()=>{m=!0}},[o]),r}import{useEasel as pd}from"efficient-easel/easel";function ad(o){return o.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}function ld(o){let r=[],a=/<h([1-6])\b[^>]*>([\s\S]*?)<\/h\1>/gi,m;for(;m=a.exec(o);)r.push({level:Number(m[1]),text:ad(m[2])||"(empty)"});return r}var dd=new Set(["SubmitBuild"]),cd={AlloyWheelsListing:1,DocMasthead:1,AppointmentBooking:2,BookingBox:2,SubmitBox:2,Banner:2,BundleOffer:2,Cards:2,Chart:2,CheckoutCTA:2,CollectionCard:3,Collections:2,CompatibleTyres:2,ContactLocations:2,ContactRouting:2,DeliveryOptions:2,DetailRows:2,DocBody:2,EuTyreLabel:2,Events:2,FAQ:2,FeaturedCover:2,FitmentFinder:2,FitmentTable:2,FooterEmailSignup:4,FooterMenu:4,Footprint:2,Form:2,Gallery:2,GalleryB:2,GalleryItem:2,Integrations:2,IntroBleed:2,KeyFeatures:2,Logos:2,LongRead:2,Manifesto:2,Mockup:2,OrderSummary:2,PostCard:2,ProcessSteps:2,ProductGrid:2,Prose:2,RelatedProducts:2,ReviewForm:2,Reviews:2,SectionHeader:2,Series:2,SpecTable:2,Split:2,StatsParagraph:2,SubmitBuild:2,Subscribe:2,SubscribeBlogs:2,Testimonials:2,Timeline:2,TimelineTrack:2,TitleWithButtons:2,TyreFitment:2,TyreSizes:2};function ii(o,r){let a=[];for(let m of o??[]){let g=m,y=g.props??{};switch(g.type){case"Heading":{let{text:S,hidden:P}=Hn(y.text);if(P)break;a.push({level:Number(y.level)||2,text:S||"(empty heading)"})}break;case"Hero":a.push({level:1,text:"Hero (brand headline)"});break;case"CustomHTML":a.push(...ld(Hn(y.html).text));break;default:{let S=cd[g.type??""],P=Hn(y.title??y.heading),C=P.text.trim();if(!S||P.hidden)break;C?a.push({level:S,text:C}):dd.has(g.type??"")&&a.push({level:S,text:String(g.type)});break}}for(let S of Mn(r,g.type??"")){let P=y[S];Array.isArray(P)&&a.push(...ii(P,r))}}return a}import{jsx as Mt,jsxs as Xn}from"react/jsx-runtime";function si(){let{appState:o,config:r}=pd(y=>y),a=o?.data,m=ii(a?.content??[],r),g=m.filter(y=>y.level===1).length;return Xn("div",{className:"px-4 py-3 text-[13px] text-zinc-600",children:[Xn("div",{className:"mb-2 flex items-center justify-between text-[11px] font-semibold uppercase tracking-wide text-zinc-500",children:[Mt("span",{children:"Heading outline"}),Mt("span",{children:m.length})]}),g!==1&&Mt("div",{className:"mb-2 rounded bg-amber-50 px-2 py-1 text-[12px] text-amber-700",children:g===0?"No H1 \u2014 add one for SEO.":`${g} H1s \u2014 a page should have exactly one.`}),m.length===0?Mt("p",{className:"text-zinc-400",children:"No headings yet."}):Mt("ul",{className:"space-y-1",children:m.map((y,S)=>Xn("li",{className:"flex items-baseline gap-2",style:{paddingLeft:`${(y.level-1)*12}px`},children:[Xn("span",{className:"shrink-0 font-mono text-[11px] text-zinc-400",children:["H",y.level]}),Mt("span",{className:"truncate text-zinc-700",children:y.text})]},S))})]})}var ud=new Set(["BookingBox","SubmitBox"]);function Ht(o){return typeof o=="string"&&ud.has(o)}import{useCallback as ca,useState as fd}from"react";import{EaselContextMenu as gd}from"efficient-easel/menu";import{AddIcon as md,CopyIcon as pa,LayersIcon as yd,PasteIcon as fa,RedoIcon as hd,SettingsIcon as bd,UndoIcon as vd}from"efficient-easel/icons";import{ROOT_ID as xd,ROOT_SLOT as Sd,zoneKey as ga}from"efficient-easel/data";import{createNodeClipboard as wd,nodeMenuItems as kd}from"efficient-easel/node-ops";import{styleMenuItems as Cd}from"efficient-easel/style-clipboard";import{framePointToHost as Td,useCanvasEvent as ri}from"efficient-easel/canvas";import{jsx as _e}from"react/jsx-runtime";function Id(o,r){let a=[],m=new Set,g={zone:r.zone,index:r.index};for(;g;){let y=o.nodeAt(g.zone,g.index);if(!y||m.has(y.props.id)||(m.add(y.props.id),a.push({zone:g.zone,index:g.index,node:y,parentType:null}),g.zone===T))break;let S=g.zone.lastIndexOf(":");if(S<=0)break;g=o.locate(g.zone.slice(0,S))}for(let y=0;y<a.length-1;y+=1)a[y].parentType=a[y+1].node.type;return a}var ma=wd();function ya(o,r,a){if(r===T){let{floor:g,cap:y}=o.sectionBand();return{parentId:xd,slot:Sd,index:Math.min(Math.max(a,g),y)}}let m=r.lastIndexOf(":");return{parentId:r.slice(0,m),slot:r.slice(m+1),index:a}}function Rd(o,r){let{zone:a,index:m}=r,g=o.nodeAt(a,m);if(!g)return[];let y=g.props.id,S=o.labelOf(g.type,a),P=!!g.props._hidden,C=o.nodeOps,M=o.isPinned(g,a),D=Ht(g.type),H=!M&&!D&&!Es(o.document,g),Y=Id(o,r),we=C.held,Ae=we&&!M&&ga(we.from)===a?ya(o,a,m+1):null,ke=o.style?Cd({held:o.style.held(),canCopy:o.style.canCopy(g,a),onCopy:()=>o.style?.copy(g,a),onPaste:()=>o.style?.paste(a,m,g)}):[];return kd({title:S,layer:{group:"pick",items:Y.map((re,Le)=>({label:o.rowNameOf(re.node,re.zone),checked:Le===0,onClick:()=>o.selectAt(re.zone,re.index,re.node.props.id,re.parentType)}))},actions:{addInside:ye(g.type)?()=>o.openAddInside(a,m):void 0,duplicate:H?()=>C.duplicate(y):void 0,moveUp:C.canStep(y,-1)?()=>C.step(y,-1):void 0,moveDown:C.canStep(y,1)?()=>C.step(y,1):void 0,copy:M?void 0:()=>C.copy(y,S),cut:H?()=>C.cut(y,S):void 0,paste:we&&Ae?{label:we.label,run:()=>C.paste(Ae)}:void 0,rename:o.renamePropOf(g,a)?()=>o.beginRename(a,m):void 0,hide:!D&&!M?{hidden:P,run:()=>C.setProps(y,{_hidden:!P})}:void 0,delete:H?()=>C.remove(y):void 0},style:ke,pinnedLine:M?"Pinned \u2014 can\u2019t be moved or deleted":void 0})}function Pd(o){let r=[];o.history.hasPast&&r.push({label:"Undo",icon:_e(vd,{}),shortcut:"\u2318Z",onClick:o.history.back}),o.history.hasFuture&&r.push({label:"Redo",icon:_e(hd,{}),shortcut:"\u21E7\u2318Z",onClick:o.history.forward});let a=[{label:"Add section",icon:_e(md,{}),onClick:o.openAddSection}],m=o.nodeOps.held;if(m&&ga(m.from)===T){let P=ya(o,T,o.sectionBand().cap);a.push({label:`Paste ${m.label}`,icon:_e(fa,{}),shortcut:"\u2318V",onClick:()=>o.nodeOps.paste(P)})}let g=[{label:"Page settings",icon:_e(bd,{}),onClick:o.openPageSettings},{label:"Collapse all layers",icon:_e(yd,{}),onClick:o.collapseAll}],y=[r,a,g].filter(P=>P.length>0),S={label:"\u2014",onClick:()=>{}};return y.flatMap((P,C)=>C?[S,...P]:P)}function Ed(o,r){let a=r.selectionStart??0,m=r.selectionEnd??0,g=r.value.slice(a,m),y=D=>{r.focus(),r.setRangeText(D,a,m,"end"),r.dispatchEvent(new Event("input",{bubbles:!0}))},S=[];g&&(S.push({label:"Copy",icon:_e(pa,{}),shortcut:"\u2318C",onClick:()=>navigator.clipboard?.writeText(g)}),S.push({label:"Cut",icon:_e(pa,{}),shortcut:"\u2318X",onClick:()=>{navigator.clipboard?.writeText(g),y("")}})),S.push({label:"Paste",icon:_e(fa,{}),shortcut:"\u2318V",onClick:()=>{navigator.clipboard?.readText().then(D=>{D&&y(D)}).catch(()=>o.onPasteRefused())}});let P=r.value?[{label:"Select all",shortcut:"\u2318A",onClick:()=>{r.focus(),r.select()}}]:[],C=[S,P].filter(D=>D.length>0),M={label:"\u2014",onClick:()=>{}};return C.flatMap((D,H)=>H?[M,...D]:D)}function Ad(o){let r=o?.closest?.("input, textarea");return!r||r instanceof HTMLInputElement&&!["text","search","url","email","tel","number",""].includes(r.type)?null:r}function ua(o){return o.shiftKey}function ha(o,r){let[a,m]=fd(null),g=ca(()=>m(null),[]),y=ca(C=>{if(ua(C))return;let M=C.target,D=Ad(M);if(D){C.preventDefault(),m({kind:"input",x:C.clientX,y:C.clientY,el:D});return}let H=M?.closest?.("[data-node-id]")?.getAttribute("data-node-id"),Y=H?o.locate(H):null;C.preventDefault(),m(Y?{kind:"node",x:C.clientX,y:C.clientY,...Y}:{kind:"empty",x:C.clientX,y:C.clientY})},[o]);ri(r,"contextmenu",C=>{if(ua(C)||!r)return;let D=(C.target?.closest?.("[data-puck-component]")??null)?.getAttribute("data-puck-component"),H=D?o.locate(D):null;C.preventDefault();let Y=Td(r.frame,C.clientX,C.clientY);m(H?{kind:"node",...Y,...H}:{kind:"empty",...Y})}),ri(r,"mousedown",g),ri(r,"scroll",g,{on:"window"});let P=a?_e(gd,{x:a.x,y:a.y,items:a.kind==="node"?Rd(o,a):a.kind==="input"?Ed(o,a.el):Pd(o),onClose:g}):null;return{onEditorContextMenu:y,menu:P,closeMenu:g}}function ba(o,r){let a=!1,m={...o.props};for(let g of r){let y=Array.isArray(o.props[g])?o.props[g]:[],S=new Set,P=y.filter(C=>{let M=C?.props?.id;return!M||S.has(M)?!1:(S.add(M),!0)});P.length!==y.length&&(m[g]=P,a=!0)}return a?m:null}var Ld=".es-tree",Dd=".es-tree-row.is-selected";function va(o,r,a){return!o||!r?!1:o.index===r.index&&(o.zone??a)===(r.zone??a)}function Nd(o,r){if(typeof o.getBoundingClientRect!="function"||typeof r.getBoundingClientRect!="function")return!1;let a=o.getBoundingClientRect(),m=r.getBoundingClientRect();return!a.height||!m.height?!1:m.top>=a.top&&m.bottom<=a.bottom}function xa(o=typeof document>"u"?void 0:document){let r=o?.querySelector(Ld),a=r?.querySelector(Dd);return a?(Nd(r,a)||a.scrollIntoView({block:"center",inline:"nearest"}),!0):!1}function Sa(o,r){return o.kind==="part"?o.nodeId??null:o.kind!=="puck"||r==null?null:String(r)}import{useEffect as ka,useState as Ca}from"react";var zd=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function ai(o){return!!o&&zd.test(o)}function wa(o){let{pageSlug:r,siteSlug:a,hostname:m}=o,g=r===$s?"/":`/${encodeURIComponent(r)}`;if(!ai(m))return g;let y=a?.trim();return y?`${g}?site=${encodeURIComponent(y)}`:g}function Ta(o){let{pageSlug:r,siteId:a,token:m}=o,[g,y]=Ca(null),[S,P]=Ca(null),C=_r();ka(()=>P(C?new URL(C).hostname:window.location.hostname),[C]),ka(()=>{if(!ai(S)||!a||!m){y(null);return}let D=!1;return qr(m,a).then(H=>{D||y(H)}),()=>{D=!0}},[S,a,m]);let M=wa({pageSlug:r,siteSlug:g,hostname:S});return C?`${C}${M}`:M}var Ia="sf-editor-left-view";function Ra(){if(typeof window>"u")return"pages";try{let o=window.localStorage.getItem(Ia);return o==="sections"||o==="styles"||o==="media"?o:"pages"}catch{return"pages"}}function Pa(o){if(!(typeof window>"u"))try{window.localStorage.setItem(Ia,o)}catch{}}function Ea(o,r,a=!1){return o==="styles"&&!r||o==="media"&&!a?"sections":o}function Aa(o,r){return o?"sections":r}import{jsx as La}from"react/jsx-runtime";var Od="M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1z";function li({size:o=15,className:r,strokeWidth:a=1.7}){return La("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:r,"aria-hidden":"true",focusable:"false",children:La("path",{d:Od})})}var Bd="Save your page changes first";function Da(o){return o.hasTrustedConsole?o.canCreatePlatformTemplate?!o.capabilities.canPublish||!o.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:o.siteId?o.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:Bd}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var Na="storefront-editor:save-as-template";import{heldStyle as pc,styleShortcut as uc}from"efficient-easel/style-clipboard";import{BLOCK_SELECTOR as fc,useCanvasEvent as gc,useCanvasFrame as mc}from"efficient-easel/canvas";import{createNode as yc,DataError as hc,newId as bc,parseZoneKey as ct,ROOT_ID as vc,ROOT_SLOT as xc,zoneKey as je}from"efficient-easel/data";import{CanvasDragLayer as Sc,createDragSession as wc,gapToMoveIndex as kc,useTreeDrag as fi}from"efficient-easel/drag";import{toItemSelector as Cc,useNodeOps as Tc}from"efficient-easel/node-ops";import{useEasel as Ic,useEaselApi as Rc}from"efficient-easel/easel";import{fieldKind as Md,STYLE_KIND as za,copyStyle as Hd,heldStyle as Fd,pasteMessage as $d,planPaste as Wd}from"efficient-easel/style-clipboard";var qd=new Set([$n.Style,$n.Layout]),_d=new Set(Object.values($n)),jd=new Set(Object.keys(er())),Vd=new Set(["focal","imageFocal"]),Gd=[tr,Hs,Fs];function Oa(o){return`site:${o??""}`}function Kd(o){if(!o||typeof o!="object")return null;let r=o,a=zo(o)??o,m=r[za]??a[za];if(typeof m=="string")return m;let g=r.options??a.options;return Array.isArray(g)?`choice:${g.map(S=>String(S?.value)).sort().join("|")}`:Md(a)}function Ud(o){let r=o,a=zo(o);return Gd.some(m=>m in r||a&&m in a)}function Zn(o,r){let a=kr(o,r)??{},m=[],g=!1;for(let[y,S]of Object.entries(a)){if(_d.has(y)){g=qd.has(y);continue}!g||!S||typeof S!="object"||y.startsWith("_")||Qs(S)||jd.has(y)||Vd.has(y)||Ud(S)||S.type!=="slot"&&m.push({path:[y],kind:Kd(S),counted:Xs(S)?.tier!=="mobile"})}return m}function di(o,r,a,m){Hd({scope:r,type:a.type,label:m,rows:Zn(o,a),props:a.props})}function Ba(o,r,a,m){let g=Fd(r);if(!g)return null;let y=Wd(g,{type:a.type,rows:Zn(o,a),props:a.props});return{...y,message:$d(y,g.sourceLabel,m)}}import{Fragment as se,jsx as c,jsxs as I}from"react/jsx-runtime";function Pc({saveState:o,notSaving:r,onToggle:a,onRetry:m}){if(r)return c(Wa,{tone:o.pending?"off-unsaved":"off",label:"Not saving \u2014 see the notice above",role:"status"});let{tone:g,label:y}=cc(o);return I(se,{children:[c(nc,{pressed:o.paused,onToggle:a,title:o.paused?"Auto-save is off \u2014 click to turn it back on (saves your held edits)":"Auto-save is on \u2014 click to pause it",children:c(Wa,{tone:g,label:y})}),o.failed&&!o.paused&&c("button",{type:"button",className:"es-btn-ghost",onClick:m,children:"Retry now"})]})}function Ec(){return I("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",children:[c("path",{d:"M12 3a9 9 0 0 0 0 18 2.3 2.3 0 0 0 2.3-2.3c0-.55-.22-1.05-.57-1.42-.34-.37-.56-.87-.56-1.43A2.35 2.35 0 0 1 15.6 13.5H18a3 3 0 0 0 3-3c0-4.14-4-7.5-9-7.5z"}),c("circle",{cx:"7.7",cy:"11.3",r:"1.05",fill:"currentColor",stroke:"none"}),c("circle",{cx:"12",cy:"8",r:"1.05",fill:"currentColor",stroke:"none"}),c("circle",{cx:"16",cy:"11",r:"1.05",fill:"currentColor",stroke:"none"})]})}function Ac({size:o=13}){return I("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c("circle",{cx:"12",cy:"12",r:"9"}),c("path",{d:"M3 12h18M12 3c2.6 2.6 2.6 15.4 0 18M12 3c-2.6 2.6-2.6 15.4 0 18"})]})}function Lc({size:o=13}){return I("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c("path",{d:"M12 21s6-5 6-10a6 6 0 10-12 0c0 5 6 10 6 10z"}),c("circle",{cx:"12",cy:"11",r:"2"})]})}function Dc({size:o=13}){return I("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c("path",{d:"M9 4 3 6.5v13L9 17l6 3 6-2.5v-13L15 7z"}),c("path",{d:"M9 4v13M15 7v13"})]})}function Nc({expand:o}){return c("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.9,strokeLinecap:"round",strokeLinejoin:"round",children:o?I(se,{children:[c("path",{d:"M8 9l4-4 4 4"}),c("path",{d:"M8 15l4 4 4-4"})]}):I(se,{children:[c("path",{d:"M8 4l4 4 4-4"}),c("path",{d:"M8 20l4-4 4 4"}),c("path",{d:"M5 12h14"})]})})}var eo=o=>({parentId:`locations-${o}`,slot:"groups"}),gi=(o,r)=>({parentId:`locations-${o}`,slot:`cities:${r}`});function zc(o,r){if(o.length!==r.length)return!1;for(let a=0;a<o.length;a++)if(o[a].top!==r[a].top||o[a].index!==r[a].index)return!1;return!0}function Oc(){let o=Fn(),{adapter:r,capabilities:a,templateId:m,currentSlug:g,siteId:y,tokenRef:S,onPublish:P,saveStatus:C,saveState:M,saveConflict:D,retrySave:H,hasUnsavedEdits:Y,bridgeCapabilities:we,notifyParent:Ae,token:ke,toggleAutoSave:re,navigate:Le,docId:Ce,data:E,footerOriginSlug:K,readOnly:F}=Ot(),{canPublish:_,hasSiteSettings:X,hasSiteTheme:ne,mediaEditing:pn,hasEditGuard:to,hasPinnedChrome:pt,explainsSiteSettings:$t,hasPreviewLink:un}=a,xt=Da({hasTrustedConsole:!!ke,canCreatePlatformTemplate:we.canCreatePlatformTemplate,capabilities:a,siteId:y,hasUnsavedEdits:Y}),fn=Se(()=>{!y||!g||Ae(Na,{siteId:y,slug:g})},[Ae,y,g]),{appState:le,dispatch:j,history:Fe,selectedItem:G,getSelectorForId:St,config:ae}=Ic(e=>e),de=g===No,wt=Us({readOnly:F}),ut=te(null),u=ci(()=>({...wt,select:e=>{ut.current=e,wt.select(e)}}),[wt]),U=le.ui,N=U.leftSideBarVisible,ce=U.rightSideBarVisible,[De,_a]=ie("desktop"),Wt=Vs(),mi=pn&&Wt!==null,Ne=Gs(),[kt,gn]=ie(Ra),[ja,yi]=ie(br[0].id),ft=Ea(kt,ne,mi);B(()=>{Pa(kt)},[kt]);let[hi,Va]=ie(0),{surface:Ga,setSurface:bi}=sr(),no=te(null),qt=te(null),Ve=mc(qt,{readySelector:fc}),Te=jr(qt);Vr(qt);let[he,_t]=ie(!1),Qe=te(!1),et=te(!1),[q,Ge]=ie(null),mn=q&&q.zone===T?q.index:null,vi=e=>Ge(e===null?null:{zone:T,index:e}),[xi,Si]=ie([]),[ze,Q]=ie(xe),oo=ze.kind==="puck",io=ze.kind==="ticker"?ze.heroId:null,Ct=Sa(ze,G?.props.id),tt=te(null),so=te(null),[wi,ki]=ie(null);B(()=>{wi&&(xa(),ki(null))},[wi]);let Ci=te(St);Ci.current=St;let yn=Se((e,{scroll:n})=>{gn(p=>Aa(e,p)),n&&ki(e);let s=[],l=e;for(let p=0;p<4;p++){let f=Ci.current(l)?.zone;if(!f||!f.includes(":"))break;let b=f.split(":")[0];s.push(b),l=b}s.length!==0&&vn(p=>{if(s.every(b=>!p.has(b)))return p;let f=new Set(p);return s.forEach(b=>f.delete(b)),f})},[]);B(()=>{Q(G?.type===Ue?Gn:xe),Ar(G?.type==="BookingBox"&&G.props.region==="confirm"?Lr(St(String(G.props.id))?.zone):null);let e=G?.type==="ContactLocations"?String(G.props.id):null;e&&e!==so.current&&Me({level:"groups"}),so.current=e;let n=G?.props.id;de&&typeof n=="string"&&(tt.current?.(),tt.current=_n(n));let s=ut.current;if(ut.current=null,!n)return;let l=St(n);yn(String(n),{scroll:!va(s,l??null,T)})},[G?.props.id,de,yn]);let{setSelected:Ti,setSelectHandler:Ii}=Ws(),{chat:Ka,setChat:Ua,setSelected:Ri,setSelectHandler:Pi}=or(),{setSelectedHeroId:Ei,setSelectHandler:Ai}=ar(),{editFooter:Li}=nr(),{selectedLocationPartId:Ya,setSelectedLocationPartId:Di,setSelectHandler:Ni}=lr(),zi=ze.kind==="header";B(()=>{Ti(zi)},[zi,Ti]),B(()=>{Ii(()=>{Q(Gn),j({type:"setUi",ui:{rightSideBarVisible:!0}})})},[Ii,j]);let ro=Se(()=>{Q(e=>e.kind==="chat"?e:Tr),j({type:"setUi",ui:{rightSideBarVisible:!0}})},[j]),Oi=ze.kind==="chat";B(()=>{Ri(Oi)},[Oi,Ri]),B(()=>{Pi(ro)},[Pi,ro]);let{setOpenHandler:Bi}=ir(),Mi=Se(()=>{Q(e=>e.kind==="social"?e:Ir),j({type:"setUi",ui:{rightSideBarVisible:!0}})},[j]);B(()=>{Bi(Mi)},[Bi,Mi]);let hn=Se(e=>{e&&(Q(n=>n.kind==="ticker"&&n.heroId===e?n:{kind:"ticker",heroId:e}),j({type:"setUi",ui:{rightSideBarVisible:!0}}),Bt(e))},[j]);B(()=>{Ei(io)},[io,Ei]),B(()=>{Ai(hn)},[Ai,hn]);let Xa=Se(e=>{j({type:"setUi",ui:{rightSideBarVisible:!0}}),Bt(e),yn(e,{scroll:!0})},[j,yn]),{selectNode:Za,openPartId:Bc}=Er({mode:ze,setMode:Q,onOpenPart:Xa}),[Hi,Fi]=ie(null),$i="sf-editor-collapsed-sections",[bn,vn]=ie(()=>{if(typeof window>"u")return new Set;try{let e=window.localStorage.getItem($i);return new Set(e?JSON.parse(e):[])}catch{return new Set}});B(()=>{try{window.localStorage.setItem($i,JSON.stringify([...bn]))}catch{}},[bn]);let[Tt,Ja]=ie(()=>{if(typeof window>"u")return{...dt};try{let e=window.localStorage.getItem($o);if(!e)return{...dt};let n=JSON.parse(e);return{left:Wo(Number(n.left)||dt.left),right:Wo(Number(n.right)||dt.right)}}catch{return{...dt}}});B(()=>{let e=setTimeout(()=>{try{window.localStorage.setItem($o,JSON.stringify(Tt))}catch{}},300);return()=>clearTimeout(e)},[Tt]);let xn=Se((e,n)=>Ja(s=>{let l=typeof n=="function"?n(s[e]):n;return s[e]===l?s:{...s,[e]:l}}),[]),Qa=Se(e=>xn("left",e),[xn]),el=Se(e=>xn("right",e),[xn]),gt=e=>bn.has(e),nt=e=>vn(n=>{let s=new Set(n);return s.has(e)?s.delete(e):s.add(e),s}),Wi=te(!1),ao=te(null);B(()=>{if(Wi.current&&!he){let e=ao.current;((e&&e.isConnected&&!e.closest('[aria-hidden="true"]')?e:null)??qt.current?.querySelector('button[aria-label="Add"]'))?.focus(),ao.current=null}Wi.current=he},[he]),B(()=>{if(!he||!Te)return;let e=n=>{n.key==="Escape"&&En()};return Te.addEventListener("keydown",e),()=>Te.removeEventListener("keydown",e)},[he,Te]),B(()=>{N||!he||(_t(!1),Ge(null),Qe.current=!1)},[N]),B(()=>{if(!Ne){et.current&&j({type:"setUi",ui:{leftSideBarVisible:!1}}),et.current=!1;return}he&&(_t(!1),Ge(null),et.current=Qe.current,Qe.current=!1),N||(et.current=!0,j({type:"setUi",ui:{leftSideBarVisible:!0}}))},[Ne]),B(()=>{N||!Ne||(et.current=!1,an())},[N]),B(()=>{if(!Ne||!Te)return;let e=n=>{n.key==="Escape"&&an()};return Te.addEventListener("keydown",e),()=>Te.removeEventListener("keydown",e)},[Ne,Te]);let[Sn,qi]=ie(null),[tl,nl]=ie(0),jt=te(null),mt=(e,n="success")=>{qi({msg:e,tone:n}),nl(s=>s+1),jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>qi(null),n==="error"?3200:1900)};B(()=>()=>{jt.current&&clearTimeout(jt.current)},[]);let Vt=te(null),[It,_i]=ie(0),[lo,ji]=ie(0),Ie=Br();B(()=>{let e=Vt.current;if(!e)return;let n=()=>{_i(e.clientWidth),ji(e.clientHeight)};n();let s=new ResizeObserver(n);return s.observe(e),()=>s.disconnect()},[]),Yd(()=>{Vt.current&&(_i(Vt.current.clientWidth),ji(Vt.current.clientHeight))},[Tt,N,ce]);let Vi={desktop:2e3,tablet:800,mobile:390},co=De==="desktop"?It>0?It:Vi.desktop:Vi[De],Gt=It>0?Math.min(It/co,2):1,Gi=co*Gt,ol=It>0&&Gi>It+1,il={width:Gi,height:lo||"100%",flex:"none",position:"relative"},sl={width:co,height:lo?lo/Gt:"100%",maxHeight:"none",transform:Gt!==1?`scale(${Gt})`:void 0,transformOrigin:"top left"},rl=Ta({pageSlug:g,siteId:y,token:ke}),al=r.previewHref?.(g)??rl,ot=()=>j({type:"setUi",ui:{leftSideBarVisible:!N}}),Ki=()=>j({type:"setUi",ui:{rightSideBarVisible:!ce}}),wn=e=>{if(!(he&&(_t(!1),Ge(null),Qe.current=!1,N&&kt===e))&&!(Ne&&(et.current=!1,an(),N&&kt===e))){if(N&&kt===e){ot();return}gn(e),N||j({type:"setUi",ui:{leftSideBarVisible:!0}})}},ll=()=>{Ks(o,{accept:"image/*",title:"Media library"})},Ui=()=>{Q(xe),u.select(null),qn()},Yi=()=>{Q(Gn),ce||j({type:"setUi",ui:{rightSideBarVisible:!0}})},Xi=()=>{if(ne){gn("styles"),N||j({type:"setUi",ui:{leftSideBarVisible:!0}}),qn();return}Q(Cr),ce||j({type:"setUi",ui:{rightSideBarVisible:!0}}),qn()},A=le.data.content??[],it=()=>{let e=A.findIndex(s=>s.type===Ue),n=A.findIndex(s=>s.type===ee);return{floor:e>=0?e+1:0,cap:n>=0?n:A.length}},Zi=ae,po=Tc({data:le.data,config:Zi,readOnly:!!F,clipboard:ma,afterRemove:"none",stepBounds:(e,n)=>{if(e.parentId!==vc||e.slot!==xc)return{min:0,max:n-1};let{floor:s,cap:l}=it();return{min:s,max:l-1}},commit:(e,{select:n})=>{if(n!==void 0){Q(xe);let s=n?.kind==="node"?Cc(e,Zi,n):null;u.select(s&&s.zone===T?{index:s.index}:s)}u.commitDocument(e)}}),dl=(e,n)=>{let s=Z(e)[n]?.props?.id;s!=null&&po.remove(String(s))},Oe=e=>ae.components[e]?.label??e,yt=Se(e=>ae.components[e]?.defaultProps??{},[ae]),be=e=>Lt(e,"section",Oe(e)),Kt=e=>zr({type:e.type,props:e.props??{}},be(e.type)),{nodeAddresses:kn,zoneItems:Ji}=ci(()=>{let e=new Map,n=new Map,s=(l,p,f)=>{n.set(p,l),l.forEach((b,v)=>{let h=String(b.props?.id??"");if(h&&e.set(h,{zone:p,index:v}),f>=As)return;let R=new Map;for(let{child:z,zone:w}of Eo(ae,b))R.set(w,[...R.get(w)??[],z]);for(let[z,w]of R)s(w,z,f+1)})};return s(A,T,0),{nodeAddresses:e,zoneItems:n}},[A,ae]),Z=Se(e=>Ji.get(e)??[],[Ji]),Qi=da(),cl=ci(()=>{let e=new Map;for(let n of Qi??[])e.set(n.slug,n.name);return e},[Qi]),Cn=e=>Dr(e,Oe,n=>cl.get(n)),es=(e,n)=>n===T?null:Nr(ae.components[e.type]?.fields),pl=(e,n,s)=>{let l=Z(e)[n];if(!l)return;let p=es(l,e);p&&u.replaceComponent(e,n,{...l,props:{...l.props,[p]:s.trim()}})},ul=(e,n,s,l)=>{if(!(Hi?.zone===e&&Hi.index===n))return;let f=(b,v)=>{Fi(null),v&&pl(e,n,b)};return c("input",{className:"es-tree-rename",defaultValue:l,autoFocus:!0,"aria-label":"Rename",onClick:b=>b.stopPropagation(),onBlur:b=>f(b.currentTarget.value,!0),onKeyDown:b=>{b.key==="Enter"?(b.preventDefault(),f(b.currentTarget.value,!0)):b.key==="Escape"&&(b.preventDefault(),f("",!1))}},s)},fl=()=>vn(new Set(Z(T).map(e=>String(e.props.id)))),Tn=Oa(y),In=ae,uo=(e,n)=>n===T?be(e):Oe(e),ts=(e,n,s)=>{let l=Ba(In,Tn,s,uo(s.type,e));l&&(l.changed&&u.replaceComponent(e,n,{...s,props:{...l.props,id:s.props.id}}),mt(l.message))},ns=ha({nodesIn:Z,nodeAt:(e,n)=>Z(e)[n]??null,labelOf:(e,n)=>n===T?be(e):Oe(e),renamePropOf:es,beginRename:(e,n)=>Fi({zone:e,index:n}),history:{hasPast:Fe.hasPast,hasFuture:Fe.hasFuture,back:()=>Fe.back(),forward:()=>Fe.forward()},openAddSection:()=>{u.select(null),Yt(null)},openPageSettings:()=>{u.select(null),Q(xe)},collapseAll:fl,onPasteRefused:()=>mt("Your browser won\u2019t let us read the clipboard \u2014 press \u2318V","error"),document:le.data,nodeOps:po,isPinned:(e,n)=>n===T&&(e.type===Ue||e.type===ee),sectionBand:it,openAddInside:(e,n)=>{e===T?st(n):u.select({zone:e,index:n}),Yt(null)},locate:e=>kn.get(e)??null,rowNameOf:(e,n)=>n===T?Kt(e):Cn(e),selectAt:(e,n,s,l)=>{e===T?st(n):Xt(e,n,s,l??"")},style:{held:()=>pc(Tn),canCopy:e=>Zn(In,e).some(n=>n.counted!==!1),copy:(e,n)=>di(In,Tn,e,uo(e.type,n)),paste:(e,n,s)=>ts(e,n,s)}},Ve),os=te({copy:(e,n)=>{},paste:(e,n,s)=>{},at:()=>null,readOnly:!1});B(()=>{os.current={copy:(e,n)=>di(In,Tn,e,uo(e.type,n)),paste:ts,at:()=>{let e=le.ui.itemSelector;if(!e)return null;let n=e.zone??T,s=Z(n)[e.index];return s?{zone:n,index:e.index,node:s}:null},readOnly:!!F}});let fo=Se(e=>{let n=uc(e);if(!n)return;let s=os.current,l=s.at();l&&(e.preventDefault(),n==="copy"?s.copy(l.node,l.zone):s.readOnly||s.paste(l.zone,l.index,l.node))},[]);B(()=>{if(!Te)return;let e=n=>fo(n);return Te.addEventListener("keydown",e),()=>Te.removeEventListener("keydown",e)},[fo,Te]),gc(Ve,"keydown",fo);let gl=A.map(e=>e.props.id).join("|");B(()=>{let e=Ve?.document??null,n=Ve?.window??null,s=0,l=[],p=()=>{if(!e){Si(w=>w.length?[]:w);return}let v=A.findIndex(w=>w.type===ee),h=v>=0?v:A.length,R=w=>{let O=A[w]?.props?.id;if(O==null)return null;let $=e.querySelector(`[data-puck-component="${CSS.escape(String(O))}"]`);return $?$.getBoundingClientRect():null},z=[];for(let w=1;w<=h;w++){let O=R(w),$=R(w-1);!O&&!$||z.push({top:Math.round(O?O.top:$.bottom),index:w})}Si(w=>zc(w,z)?w:z)},f=()=>{cancelAnimationFrame(s),s=requestAnimationFrame(p)};if(!e||!n){p();return}n.addEventListener("scroll",f,{passive:!0});let b=new ResizeObserver(f);return b.observe(e.documentElement),p(),l.push(setTimeout(p,150),setTimeout(p,450)),()=>{cancelAnimationFrame(s),l.forEach(clearTimeout),n.removeEventListener("scroll",f),b.disconnect()}},[Ve,gl,De,Gt,N,ce,G?.props.id]);let ml=()=>{let e=Ve?.document;if(!e)return null;let n=4,s=A.findIndex(f=>f.type===ee),l=s>=0?s:A.length,p=null;for(let f=0;f<l;f++){let b=A[f]?.props?.id;if(b==null)continue;let v=e.querySelector(`[data-puck-component="${CSS.escape(String(b))}"]`);if(!v)continue;let h=v.getBoundingClientRect().top;h<=n&&(p===null||h>p.offset)&&(p={id:String(b),offset:h})}if(!p){let f=G?.props?.id??A[0]?.props?.id;f!=null&&(p={id:String(f),offset:0})}return p},yl=()=>{no.current=ml(),Va(e=>e+1)},go=Ve?.document??null,Ut=Ve?.window??null;B(()=>{let e=no.current;if(!e||!go||!Ut)return;let n=[],s=()=>{let l=go.querySelector(`[data-puck-component="${CSS.escape(e.id)}"]`);if(!l)return!1;let p=l.getBoundingClientRect().top-e.offset;return Math.abs(p)>1&&Ut.scrollTo({left:Ut.scrollX,top:Ut.scrollY+p,behavior:"instant"}),!0};return no.current=null,s()&&n.push(setTimeout(s,150),setTimeout(s,450)),()=>n.forEach(clearTimeout)},[go,Ut]);let mo=e=>{if(!de){Bt(e);return}tt.current?.(),tt.current=_n(e)};B(()=>{if(!de||!K)return;let e=A.find(n=>n.type===ee)?.props?.id;if(e)return tt.current?.(),tt.current=_n(String(e)),()=>{tt.current?.(),tt.current=null}},[de,K,hi]),B(()=>{if(!(de||!qs()))return yr(()=>_s())},[]);let st=e=>{Q(xe),u.select({index:e}),A[e]?.type==="ContactLocations"&&Me({level:"groups"});let n=A[e]?.props?.id;n&&mo(n)},is=e=>{let{floor:n,cap:s}=it(),l=f=>Math.min(Math.max(n,f),s);if(typeof e=="number")return l(e);let p=G&&ze.kind!=="header"?A.findIndex(f=>f.props.id===G.props.id):-1;return l(p>=0?p+1:s)},ss=(e,n)=>{let{floor:s,cap:l}=it(),p=Math.min(Math.max(n,s),l),f=e<p?p-1:p;return f===e?{moved:!1,dest:e}:(u.reorderComponent(T,e,f),u.select({index:f}),{moved:!0,dest:f})},hl=(e,n)=>{let s=be(A[e]?.type??""),l=ss(e,n<0?e-1:e+2);if(!l.moved){mt(`\u201C${s}\u201D is already ${n<0?"first":"last"}`);return}let{floor:p,cap:f}=it();mt(`Moved \u201C${s}\u201D to position ${l.dest-p+1} of ${f-p}`)},Rn=(e,n,s)=>{Q(xe),u.select({index:e}),Bt(n),mt(`Added \u201C${s}\u201D section`)},yo=(e,n)=>{let s=is(n),l=Rs(e);if(l){let b=l(yt,Dt),v=u.insertNode(T,s,b);return Rn(s,v,be(e)),s}if(Ms(e)&&Lo(tn)&&Lo(Nt)){let b={type:tn,props:{...yt(tn),id:Dt(tn),direction:"column",name:`${be(e)} section`,content:[{type:Nt,props:{...yt(Nt),id:Dt(Nt),...bt[e]?.headStyle?{headStyle:bt[e].headStyle}:{},...bt[e]?.headRowGap?{rowGap:bt[e].headRowGap}:{},...bt[e]?.headDescriptionSize?{descriptionSize:bt[e].headDescriptionSize}:{},...Wn(e)!==Wn(Nt)?{eyebrowLook:Wn(e)}:{}}},{type:e,props:{...yt(e),id:Dt(e),headPlacement:"own-box"}}]}},v=u.insertNode(T,s,b);return Rn(s,v,be(e)),s}let f=Ns[e]?.fixed===!0?u.insertNode(T,s,{type:e,props:{...yt(e),id:Dt(e),layout:"boxes"}}):u.insertSection(e,s);return Rn(s,f,be(e)),s},ho=(e,n,s)=>{let l=is(s),p=u.insertNode(T,l,n);return Rn(l,p,e),l},Yt=e=>Pn(T,e),Pn=(e,n)=>{ao.current=document.activeElement??null,Ne&&(Qe.current=et.current,et.current=!1,an()),Ge(n===null?null:{zone:e,index:n}),_t(!0),N||(Qe.current=!0,j({type:"setUi",ui:{leftSideBarVisible:!0}}))},En=()=>{_t(!1),Ge(null),Qe.current&&j({type:"setUi",ui:{leftSideBarVisible:!1}}),Qe.current=!1},bl=e=>{if(mn===null){yo(e);return}let n=yo(e,mn);vi(n+1)},vl=(e,n)=>{if(mn===null){ho(e,n);return}let s=ho(e,n,mn);vi(s+1)},rs=(e,n,s)=>{if(e.kind==="section")u.insertComponent(n,e.type,s);else if(e.kind==="template")u.insertNode(n,s,Vn(e.template.node));else return;Q(xe),u.select({index:s,zone:n})},xl=e=>{let n=$e(e.zone);if(n)return`Adding to ${Oe(n.type)}`;if(e.zone===T){let l=A[e.index];return l&&l.type!==ee?`Adding before ${be(l.type)}`:"Adding at the end of the page"}let s=Et(e.zone);return s?`Adding to ${s.parentName}`:"Adding here"},Sl=e=>{if(q&&e.kind!=="block"&&$e(q.zone)){rs(e,q.zone,q.index),Ge({zone:q.zone,index:q.index+1});return}if(e.kind==="section")return bl(e.type);if(e.kind==="template")return vl(e.template.name,Vn(e.template.node));if(q&&q.zone!==T){let n=Et(q.zone);if(!n)return;n.target.spec?Rt(n.parentId,n.target.slot,e.type,q.index,n.parent.type):So(q.zone,e.type,q.index),Ge({zone:q.zone,index:q.index+1});return}Ts?.onPick(e.type)},pe=e=>n=>{n.target.closest(".es-tree-select")||e()},as=()=>Li?Li():Le({kind:"page",slug:No,siteId:y??void 0}),An=(e,n,s)=>c(Qn,{kind:"delete",label:`Delete ${s}`,onClick:()=>dl(e,n),children:c(ui,{size:15})}),Ln=(e,n,s,l)=>{let p=!!s.props._hidden;return c(Qn,{kind:"eye",label:p?`Show ${l}`:`Hide ${l}`,onClick:()=>wl(e,n,s),children:p?c(Ye,{name:"eye-off",size:14}):c(Ye,{name:"eye",size:14})})},ls=e=>{let n=be(A[e]?.type??""),s=n?`Add section before ${n}`:"Add section here";return zn(T,e,()=>Yt(e),s)},wl=(e,n,s)=>{u.replaceComponent(e,n,{...s,props:{...s.props,_hidden:!s.props._hidden}})},bo=e=>Mn(ae,e),rt=e=>Eo(ae,e),vo=(e,n,s)=>{let l=Ls(ae,e.type,n)&&(s||rt(e).length>0);return{collapsible:l,folded:l&>(String(e.props.id))}},xo=(e,n,s)=>rt(e).flatMap(({child:l})=>vo(l,n,s(l.type)).collapsible?[String(l.props.id),...xo(l,n+1,s)]:[]),Dn=e=>rt(e).length>0||!!ye(e.type),Nn=e=>!!ye(e),Xt=(e,n,s,l)=>{if(Q(xe),ye(l)?.spec?.slider){let p=e.split(":")[0];Ho(p,n),u.select({index:n,zone:e}),Bt(p)}else u.select({index:n,zone:e}),mo(s)},Rt=(e,n,s,l,p)=>{let f=`${e}:${n}`;u.insertComponent(f,s,l),ye(p)?.spec?.slider?requestAnimationFrame(()=>{Ho(e,l),u.select({index:l,zone:f})}):u.select({index:l,zone:f})},So=(e,n,s)=>{u.insertComponent(e,n,s),Q(xe),u.select({index:s,zone:e})},ds=te(new Set);B(()=>{A.forEach(e=>{let n=ye(e.type)?.spec;if(!n)return;let s=e.props.id;if(ds.current.has(s)||(ds.current.add(s),(Array.isArray(e.props[n.slot])?e.props[n.slot]:[]).length>0)||n.skipSeed?.(e.props))return;let p=`${s}:${n.slot}`,f=n.legacy?.(e.props)??[];(f.length?f:n.seeds(yt)).forEach((v,h)=>u.seedChild(p,h,n.childType,v))})},[A,u,yt]);let cs=te(new Set);B(()=>{A.forEach((e,n)=>{let s=e.props.id;if(cs.current.has(s))return;let l=ba(e,bo(e.type));cs.current.add(s),l&&u.replaceComponent(T,n,{...e,props:l})})},[A,u]);let ps=Rc().getState,us=te(null);B(()=>{if(!js({docId:Ce,saveStatus:C,seededDocId:us.current})||(us.current=Ce,!pt))return;let e=ps().appState.data,n=e.content,s=E?.content??[],l=(v,h)=>v.some(R=>R?.type===h);if(!X){let v=new Set(Ao(n)),h=v.size?n.filter(z=>!v.has(z.props.id)):n;v.size&&u.setDocument({...e,content:h});let R=Ds(h,s);if(R.includes(ee)){let z=h.length,w=u.insertSection(ee,z);u.replaceComponent(T,z,{type:ee,props:{id:w,blocks:Mo()}})}R.includes(Ue)&&u.insertNode(T,0,Bo());return}if(de){let v=Bs(n);if(v!==n&&u.setDocument({...e,content:[...v]}),!v.find(R=>R.type===ee)&&!l(s,ee)&&!l(v,sn)&&!l(s,sn)){let R=(w,O)=>yc(ae,w,O),z={type:ee,props:{blocks:Mo()}};u.insertNode(T,v.length,mr(z,R,bc(sn)))}return}let p=n.filter(v=>v.type!==ee),f=new Set(Ao(p)),b=f.size?p.filter(v=>!f.has(v.props.id)):p;b.length!==n.length&&u.setDocument({...e,content:b}),!l(b,Ue)&&!l(s,Ue)&&u.insertNode(T,0,Bo())},[Ce,C,E,ps,u,X,pt,de]);let Pt=A.findIndex(e=>e.type===ee),Re=Pt>=0?A[Pt]:null,fs=A.find(e=>e.type===Os)??null,gs=A.find(e=>e.type===sn)??null,ms=Pt>=0?Pt:A.length,Ke=[];A.forEach(e=>{e.type!==ee&&(Dn(e)&&Ke.push(String(e.props.id)),Ke.push(...xo(e,1,Nn)))}),Re&&(Ke.push(String(Re.props.id)),Ke.push(...xo(Re,1,Nn)));let wo=Ke.length>0&&Ke.every(e=>bn.has(e)),kl=()=>vn(e=>{let n=new Set(Ke);return wo?new Set([...e].filter(s=>!n.has(s))):new Set([...e,...Ke])}),ys=e=>{let n=e.props;if(e.type==="FooterMenu"){let s=n.menu;return n.heading||s?.name||"Menu"}if(e.type==="FooterText"){let s=typeof n.text=="string"?n.text.trim():"";return s?s.length>28?`${s.slice(0,28)}\u2026`:s:"Text"}return e.type==="FooterEmailSignup"?n.heading||"Email signup":Oe(e.type)},hs=(e,n,s,l)=>{let p=Z(e)[s];if(!p)return;let f={...ct(e),index:s},b={...ct(n),index:Math.min(Math.max(l,0),Z(n).length)},v=kc(f,b);if(!(e===n&&v===s))try{po.move(String(p.props.id),{...b,index:v})}catch(h){if(!(h instanceof hc))throw h}},Cl=(e,n,s)=>{if(e===n)return!0;let l=Z(e)[s];if(!l)return!1;let p=n.split(":")[0],f=kn.get(p),b=f?Z(f.zone)[f.index]:void 0;if(!b||Tl(l).has(n))return!1;let v=ye(b.type,b.type===nn?on(le?.data,p):0);return!(!v||!(v.choices?v.choices.some(R=>R.type===l.type):v.spec?.childType===l.type)||v.spec?.addBlocked?.(Z(n),l))},Tl=e=>{let n=new Set,s=l=>{for(let{child:p,zone:f}of rt(l))n.add(f),s(p)};for(let l of bo(e.type))n.add(`${e.props.id}:${l}`);return s(e),n},bs=e=>{let n=e.slice(0,e.indexOf(":"));for(let s=0;s<64;s++){let l=kn.get(n);if(!l)return null;if(l.zone===T)return n;n=l.zone.slice(0,l.zone.indexOf(":"))}return null},$e=e=>{let n=e.slice(0,e.indexOf(":")),s=A.find(l=>rn(l.type)&&String(l.props.id)===n);return s&&Do(n)===e?s:null},ko=(e,n)=>{if(e.add)return Il(e.add,n);let s=je(n);if(rn(e.type))return!1;let l=$e(s),p=$e(e.zone);if(l||p)return!l||!p?!1:n.index>=0&&n.index<=Z(s).length;if(e.zone===T||s===T){if(e.zone!==s)return!1;let{floor:b,cap:v}=it();return n.index>=b&&n.index<=v}if(n.index<0||n.index>Z(s).length)return!1;if(e.zone===s)return!0;let f=Re?String(Re.props.id):null;return f&&(bs(e.zone)===f||bs(s)===f)?!1:Cl(e.zone,s,e.index)},Et=e=>{let n=e.slice(0,e.indexOf(":")),s=kn.get(n),l=s?Z(s.zone)[s.index]:void 0;if(!s||!l)return null;let p=ye(l.type,l.type===nn?on(le?.data,n):0);if(!p||`${n}:${p.slot}`!==e||p.source==="footer")return null;let f=p.choices??(p.spec?[{type:p.spec.childType,label:Oe(p.spec.childType)}]:[]);return{parent:l,parentId:n,target:p,choices:f,parentName:s.zone===T?be(l.type):Oe(l.type)}},Il=(e,n)=>{let s=je(n);if(e.kind!=="block"){if($e(s))return n.index>=0&&n.index<=Z(s).length;if(s!==T)return!1;let{floor:p,cap:f}=it();return n.index>=p&&n.index<=f}if(s===T)return!1;let l=Et(s);return!l||!l.choices.some(p=>p.type===e.type)?!1:!l.target.spec?.addBlocked?.(Z(s))},Rl=(e,n)=>{if(e.kind!=="block"&&$e(je(n))){rs(e,je(n),n.index);return}if(e.kind==="section"){yo(e.type,n.index);return}if(e.kind==="template"){ho(e.template.name,Vn(e.template.node),n.index);return}let s=je(n),l=Et(s);l&&(l.target.spec?Rt(l.parentId,l.target.slot,e.type,n.index,l.parent.type):So(s,e.type,n.index))},vs=(e,n)=>{if(e.add){Rl(e.add,n);return}e.zone===T?ss(e.index,n.index):hs(e.zone,je(n),e.index,n.index)},[Co]=ie(()=>wc()),At=fi({keyOf:e=>e.id,readOnly:!!F,session:Co,canDrop:ko,onDrop:vs,onStep:(e,n)=>{e.zone===T?hl(e.index,n):hs(e.zone,e.zone,e.index,n<0?e.index-1:e.index+2)}}),Pl=Se(e=>{let{floor:n,cap:s}=it(),l=[];for(let f of e.nodes){let b=je(f.place),v=Z(b)[f.place.index];if(!v||String(v.props.id)!==f.id||v.type===Ue||v.type===ee||Ht(v.type)||rn(v.type))continue;let h=!!$e(b),R=b===T||h;b===T&&s-n<2||l.push({key:f.id,item:{id:f.id,zone:b,index:f.place.index,type:v.type},box:f.box,label:R?be(v.type):Cn(v),from:f.place})}let p=e.zones.filter(f=>f.children.length>0||!!Et(je(f.list))?.choices.length||!!$e(je(f.list)));return{sources:l,zones:p}},[le.data]),El=e=>{Q(xe),u.select(e.zone===T?{index:e.index}:{index:e.index,zone:e.zone})},zn=(e,n,s,l)=>c(pi,{...F?{}:At.seam({place:{...ct(e),index:n}}),onAdd:F?void 0:s,label:l},`seam:${e}:${n}`),at=(e,n)=>{let s=A[e];s&&u.replaceComponent(T,e,{type:s.type,props:{...s.props,locations:n}})},Zt=e=>{let n=A[e]?.props?.locations;return Array.isArray(n)?n:[]},xs=fi({keyOf:e=>`group:${e.si}:${e.index}`,readOnly:!!F,canDrop:(e,n)=>n.parentId===eo(e.si).parentId&&n.slot==="groups",onDrop:(e,n)=>{at(e.si,Ko(Zt(e.si),e.index,n.index)),Ie.level==="city"&&Me({level:"groups"})},onStep:(e,n)=>{at(e.si,Ko(Zt(e.si),e.index,n<0?e.index-1:e.index+2)),Ie.level==="city"&&Me({level:"groups"})}}),To=fi({keyOf:e=>`city:${e.si}:${e.group}:${e.index}`,readOnly:!!F,canDrop:(e,n)=>n.parentId===eo(e.si).parentId&&n.slot.startsWith("cities:"),onDrop:(e,n)=>{let s=n.slot.slice(7);at(e.si,Uo(Zt(e.si),e.group,e.index,s,n.index)),Me({level:"group",key:s})},onStep:(e,n)=>{at(e.si,Uo(Zt(e.si),e.group,e.index,e.group,n<0?e.index-1:e.index+2)),Ie.level==="city"&&Me({level:"group",key:e.group})}}),Ss=te(A);Ss.current=A;let ws=te(()=>{});B(()=>{Ni(e=>{let n=cr(e);if(!n)return;let s=Ss.current.findIndex(l=>l.props?.id===n.nodeId);s<0||ws.current(s,{level:n.part,index:n.index})})},[Ni]);let Pe=(e,n)=>{Q(xe),so.current=A[e]?.props?.id??null,u.select({index:e}),Me(n),ce||j({type:"setUi",ui:{rightSideBarVisible:!0}});let s=A[e]?.props?.id;typeof s=="string"&&(n.level==="image"||n.level==="map")?Di(dr(s,n.index,n.level)):Di(null),typeof s=="string"&&mo(s)};ws.current=Pe;let Al=(e,n)=>{let s=Zt(n),l=Vo(s),p=String(e.props.id),f=oo&&G?.props.id===p,b=h=>c(pi,{...F?{}:xs.seam({place:{...eo(n),index:h}})},`seam:${p}:groups:${h}`),v=(h,R)=>c(pi,{...F?{}:To.seam({place:{...gi(n,h),index:R}})},`seam:${p}:cities:${h}:${R}`);return I(se,{children:[c(fe,{icon:c(lc,{size:13}),name:"Texts",onSelect:()=>Pe(n,{level:"texts"}),selected:f&&Ie.level==="texts",rowProps:{onClick:pe(()=>Pe(n,{level:"texts"}))}}),l.map((h,R)=>{let z=`${p}::grp::${h.key}`,w=gt(z),O=f&&Ie.level==="group"&&Ie.key===h.key,$=Mr(h.key,h.name),We={...gi(n,h.key),index:h.cards.length},Be=To.row({item:{si:n,group:h.key,index:-1},place:We,into:We,canDrag:!1},{onClick:pe(()=>Pe(n,{level:"group",key:h.key}))}),ue=xs.row({item:{si:n,index:R},place:{...eo(n),index:R}},Be.rowProps);return I(Ft,{children:[R===0&&b(0),c(fe,{icon:c(Ac,{size:13}),name:$,onSelect:()=>Pe(n,{level:"group",key:h.key}),selected:O,draggable:ue.draggable,dragging:ue.dragging,drop:ue.drop??Be.drop,fold:{open:!w,label:"group",onToggle:()=>nt(z)},actions:c(Qn,{kind:"delete",label:`Delete ${$} group (${h.cards.length} ${h.cards.length===1?"city":"cities"})`,onClick:()=>{at(n,$r(s,h.key)),Me({level:"groups"})},children:c(ui,{size:15})}),rowProps:ue.rowProps,children:c("span",{className:"es-group-count",children:h.cards.length})}),!w&&I(Je,{children:[h.cards.map((qe,ve)=>{let ge=Go(s,h.key,ve),Qt=f&&Ie.level==="city"&&Ie.index===ge,ht=String(qe?.name??"")||"City",en=`${p}::city::${jo(qe)}`,On=gt(en),{rowProps:Bn,...Po}=To.row({item:{si:n,group:h.key,index:ve},place:{...gi(n,h.key),index:ve}},{onClick:pe(()=>Pe(n,{level:"city",index:ge}))});return I(Ft,{children:[ve===0&&v(h.key,0),c(fe,{icon:c(Lc,{size:13}),name:ht,onSelect:()=>Pe(n,{level:"city",index:ge}),selected:Qt,...Po,fold:{open:!On,label:ht,onToggle:()=>nt(en)},actions:c(Qn,{kind:"delete",label:`Delete ${ht}`,onClick:()=>{at(n,Wr(s,h.key,ve)),Me({level:"group",key:h.key})},children:c(ui,{size:15})}),rowProps:Bn}),!On&&I(Je,{children:[c(fe,{icon:c(rc,{size:13}),name:"Image",onSelect:()=>Pe(n,{level:"image",index:ge}),selected:f&&Ie.level==="image"&&Ie.index===ge,rowProps:{onClick:pe(()=>Pe(n,{level:"image",index:ge}))}}),c(fe,{icon:c(Dc,{size:13}),name:"Map",onSelect:()=>Pe(n,{level:"map",index:ge}),selected:f&&Ie.level==="map"&&Ie.index===ge,rowProps:{onClick:pe(()=>Pe(n,{level:"map",index:ge}))}})]}),v(h.key,ve+1)]},jo(qe))}),I("button",{type:"button",className:"sf-add-card",onClick:()=>{let qe=Hr(s,h.key);at(n,qe);let ve=Vo(qe).find(ge=>ge.key===h.key);Me(ve&&ve.cards.length?{level:"city",index:Go(qe,h.key,ve.cards.length-1)}:{level:"group",key:h.key})},children:[c("span",{className:"sf-plus sf-plus--sm",children:"+"}),"Add city"]})]}),b(R+1)]},z)}),I("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:h,key:R}=Fr(s);at(n,h),Pe(n,{level:"group",key:R})},children:[c("span",{className:"sf-plus sf-plus--sm",children:"+"}),"Add group"]})]})},ks=e=>{let n=String(e.props.id),s=A.findIndex(h=>String(h.props.id)===n),l=Do(n),p=Z(l),f=gt(n),b=Oe(e.type),v=h=>zn(l,h,()=>Pn(l,h),"Add section here");return I(se,{children:[c(fe,{icon:c(me,{type:e.type,size:13}),name:b,onSelect:()=>st(s),selected:Ct===n,rowProps:{"data-node-id":n,onClick:pe(()=>st(s))},fold:{open:!f,label:"section",onToggle:()=>nt(n)}}),!f&&I(Je,{children:[p.map((h,R)=>{let z=String(h.props.id),w=Kt(h),O=Dn(h),$=O&>(z),We=()=>Xt(l,R,z,e.type),{rowProps:Be,...ue}=At.row({item:{id:z,zone:l,index:R,type:h.type},place:{...ct(l),index:R}},{"data-node-id":z,onClick:pe(We)});return I(Ft,{children:[v(R),c(fe,{icon:c(me,{type:h.type,size:13}),name:w,onSelect:We,selected:Ct===z,hidden:!!h.props._hidden,...ue,fold:O?{open:!$,label:"section",onToggle:()=>nt(z)}:void 0,actions:I(se,{children:[An(l,R,w),Ln(l,R,h,w)]}),rowProps:Be}),O&&!$&&c(Je,{children:Io(h,2)})]},z)}),v(p.length)]})]})},Cs=(e,n)=>{let s=rt(e),l=(b,v)=>zn(b,v),p=ye(e.type),f=p?`${e.props.id}:${p.slot}`:null;return I(se,{children:[s.map(({child:b,zone:v,index:h})=>{let R=Ct===String(b.props.id),{collapsible:z,folded:w}=vo(b,n,Nn(b.type)),O=String(b.props.id),$=ys(b),We=()=>Xt(v,h,O,e.type),{rowProps:Be,...ue}=At.row({item:{id:O,zone:v,index:h,type:b.type},place:{...ct(v),index:h}},{"data-node-id":O,onClick:pe(We)});return I(Ft,{children:[h===0&&l(v,0),c(fe,{icon:c(me,{type:b.type,size:13}),name:$,onSelect:We,selected:R,hidden:!!b.props._hidden,...ue,fold:z?{open:!w,label:"group",onToggle:()=>nt(O)}:void 0,actions:I(se,{children:[An(v,h,$),Ln(v,h,b,$)]}),rowProps:Be}),z&&!w&&c(Je,{children:Cs(b,n+1)}),l(v,h+1)]},String(b.props.id??`${v}-${h}`))}),f&&!s.some(b=>b.zone===f)?l(f,0):null]})},Io=(e,n)=>{let s=rt(e),l=ye(e.type,e.type===nn?on(le?.data,String(e.props.id)):0),p=l?.spec??null,f=p&&Array.isArray(e.props[p.slot])?e.props[p.slot]:[],b=l&&l.choices?{slot:l.slot,choices:l.choices}:null,v=String(e.props.id),h=p&&!p.fixed?`${v}:${p.slot}`:null,R=b?`${v}:${b.slot}`:null,z=(w,O)=>{let $=w===h&&p&&!p.addBlocked?.(f)?()=>Rt(e.props.id,p.slot,p.childType,O,e.type):w===R?()=>Pn(w,O):void 0;return zn(w,O,$,w===h&&p?p.addLabel:"Add block here")};return I(se,{children:[s.map(({child:w,zone:O,index:$})=>{let We=Ct===String(w.props.id),Be=Cn(w),ue=String(w.props.id),{collapsible:qe,folded:ve}=vo(w,n,Nn(w.type)),ge=bo(w.type),Qt=ge.length===1?`${ue}:${ge[0]}`:null,ht=Qt?{...ct(Qt),index:Z(Qt).length}:void 0,en=At.dragging,On=ht&&en&&ko(en,ht)?ht:void 0,Bn=()=>Xt(O,$,ue,e.type),{rowProps:Po,...Ll}=At.row({item:{id:ue,zone:O,index:$,type:w.type},place:{...ct(O),index:$},into:On,canDrag:!Ht(w.type)},{"data-node-id":ue,onClick:pe(Bn)});return I(Ft,{children:[$===0&&z(O,0),c(fe,{icon:c(me,{type:w.type,size:13}),name:Be,onSelect:Bn,nameSlot:ul(O,$,ue,Be),selected:We,hidden:!!w.props._hidden,...Ll,fold:qe?{open:!ve,label:"group",onToggle:()=>nt(ue)}:void 0,actions:Ht(w.type)?void 0:I(se,{children:[An(O,$,Be),Ln(O,$,w,Be)]}),rowProps:Po}),qe&&!ve&&c(Je,{children:Io(w,n+1)}),z(O,$+1)]},String(w.props.id??`${O}-${$}`))}),p&&!p.fixed&&c(Or,{small:!0,label:p.addLabel,blocked:p.addBlocked?.(f)??null,onAdd:()=>Rt(e.props.id,p.slot,p.childType,f.length,e.type)}),R&&!s.some(w=>w.zone===R)?z(R,0):null]})},Ts=(()=>{if(!G||!oo)return null;let e=String(G.type),n=String(G.props.id),s=ye(e,e===nn?on(le?.data,n):0);if(!s||s.source==="footer")return null;let l=A.some(b=>String(b.props?.id)===n),p=Array.isArray(G.props[s.slot])?G.props[s.slot]:[];if(s.spec?.addBlocked?.(p))return null;let f=s.choices??(s.spec?[{type:s.spec.childType,label:Oe(s.spec.childType)}]:[]);return f.length===0?null:{parentName:l?be(e):Oe(e),choices:f,onPick:b=>{s.spec?Rt(n,s.slot,b,p.length,e):So(`${n}:${s.slot}`,b,p.length)}}})(),Ro=he||Ne!==null,Jt=[{id:"add",label:"Add",icon:c("span",{className:"sf-rail-plus","aria-hidden":"true",children:"+"}),active:he,onSelect:()=>he?En():Yt(null)},{id:"pages",label:"Pages",icon:c(Xd,{}),active:N&&!Ro&&ft==="pages",onSelect:()=>wn("pages")},{id:"sections",label:"Layers",icon:c(Ma,{}),active:N&&!Ro&&ft==="sections",onSelect:()=>wn("sections")}];return!ne&&$t&&Jt.push({id:"appearance",label:"Appearance",icon:c(Ec,{}),active:ze.kind==="website",onSelect:Xi}),ne&&Jt.push({id:"styles",label:"Site styles",icon:c(Zd,{}),active:N&&!Ro&&ft==="styles",onSelect:()=>wn("styles")}),mi?Jt.push({id:"media",label:"Media library",icon:c(Ha,{}),active:N&&!he&&(Ne!==null||ft==="media"),onSelect:()=>wn("media")}):pn&&Jt.push({id:"media",label:"Media library",icon:c(Ha,{}),onSelect:ll}),c(ur.Provider,{value:!0,children:c(Ys.Provider,{value:De,children:I("div",{ref:qt,className:"sf-editor es-editor",style:wr(Tt),onContextMenu:ns.onEditorContextMenu,children:[I(ec,{children:[c(ic,{items:Jt,ariaLabel:"Left panel views"}),I(qa,{children:[c(Fa,{label:"Undo",disabled:!Fe.hasPast,onClick:()=>Fe.back(),children:c(dc,{})}),c(Fa,{label:"Redo",disabled:!Fe.hasFuture,onClick:()=>Fe.forward(),children:c(ac,{})}),c(oc,{}),c(Qd,{devices:Kr,value:De,onChange:_a})]}),I(qa,{kind:"right",style:{minWidth:300},children:[c(Pc,{saveState:M,notSaving:!!F||D!=null,onToggle:re,onRetry:H}),xt.visible&&I("button",{type:"button",className:"es-btn-ghost",disabled:!xt.enabled,title:xt.enabled?"Save this website as a platform template":xt.disabledReason,onClick:fn,children:["Save as Template",c(li,{})]}),c("button",{type:"button",className:"es-btn-ghost",title:"Refresh the preview (reloads the canvas, keeps your place)",onClick:yl,children:"Refresh"}),un&&g&&I("a",{className:"es-btn-ghost",href:al,target:"_blank",rel:"noopener noreferrer",title:"Preview the live site (opens in a new tab)","aria-label":"Preview the live site in a new tab",children:["Preview",c(sc,{size:15})]}),c("button",{type:"button",className:"es-btn-primary",onClick:()=>{P(le.data)},children:_?"Publish":"Save"})]})]}),c(Yo,{}),I("div",{className:"sf-body",children:[N?I(se,{children:[c("div",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:he?c(ti,{blocks:q&&q.zone!==T&&!$e(q.zone)?Et(q.zone):Ts,blocksOnly:!!(q&&q.zone!==T&&!$e(q.zone)),at:q?{label:xl(q),onClear:()=>Ge(null)}:void 0,onAdd:Sl,itemFor:e=>({id:`new:${e.kind}:${e.kind==="template"?e.template.id:e.type}`,zone:"",index:-1,type:e.kind==="template"?e.template.node.type:e.type,add:e}),session:Co,siteWide:X?{chatEnabled:Ka.enabled,onToggleChat:e=>Ua({enabled:e}),onOpenChat:()=>{En(),ro()}}:void 0,onClose:En,onHide:ot,readOnly:!!F}):Ne&&Wt?c(Fo,{panel:Wt,pick:Ne,onHide:ot}):ft==="pages"?c(ni,{activeSurface:Ga,onPreviewSurface:bi,onNavigate:e=>{bi(null),Le(m?{kind:"template",id:m,pageSlug:e}:{kind:"page",slug:e,siteId:y??void 0})},onClose:ot}):ft==="styles"?c(oi,{tokenRef:S,siteId:y??void 0,onClose:ot,onNotify:mt,tab:ja,onTabChange:yi}):ft==="media"&&Wt?c(Fo,{panel:Wt,pick:null,onHide:ot}):I(se,{children:[c(lt,{icon:c(Ma,{}),title:"Layers",context:`/${g}`,actions:Ke.length>0?c(tc,{label:wo?"Expand all sections":"Collapse all sections",onClick:kl,children:c(Nc,{expand:wo})}):void 0,onHide:ot}),I(Jd,{className:"sf-tree sf-scroll",children:[c(fe,{icon:c(me,{type:"page",size:13}),name:"Page settings",onSelect:Ui,selected:!G&&oo,rowProps:{onClick:pe(Ui)}}),fs&&I(se,{children:[c(Jn,{children:"Header"}),ks(fs)]}),!de&&pt&&I(se,{children:[c(Jn,{children:"Header"}),c(fe,{icon:c(me,{type:"header",size:13}),name:"Header",onSelect:Yi,selected:ze.kind==="header",rowProps:{onClick:pe(Yi)}})]}),!de&&I(Jn,{children:["Template \xB7 ",to?"Home page":"Template"]}),A.map((e,n)=>{if(e.type===Ue||e.type===ee||rn(e.type))return null;let s=Ct===String(e.props.id),l=!!e.props._hidden,p=rt(e),f=String(e.props.id),b=e.type==="ContactLocations",v=Dn(e)||b,h=v&>(f),{rowProps:R,...z}=At.row({item:{id:f,zone:T,index:n,type:e.type},place:{...ct(T),index:n}},{"data-node-id":f,onClick:pe(()=>st(n))});return I(Ft,{children:[n>0&&ls(n),c(fe,{icon:c(me,{type:e.type,size:13}),name:Kt(e),onSelect:()=>st(n),selected:s,hidden:l,...z,fold:v?{open:!h,label:"section",onToggle:()=>nt(f)}:void 0,actions:I(se,{children:[An(T,n,Kt(e)),Ln(T,n,e,Kt(e))]}),rowProps:R}),Dn(e)&&!h&&I(Je,{children:[Io(e,1),e.type==="Hero"&&c(fe,{icon:c(me,{type:"ticker",size:13}),name:rr,onSelect:()=>hn(f),selected:io===f,rowProps:{onClick:pe(()=>hn(f))}})]}),b&&!h&&c(Je,{children:Al(e,n)})]},String(e.props.id??n))}),!de&&ms>0&&ls(ms),pt&&c(Jn,{children:"Footer"}),Re&&(()=>{let e=String(Re.props.id),n=rt(Re).length>0||!!ye(Re.type),s=n&>(e);return I(se,{children:[c(fe,{icon:c(me,{type:"footer",size:13}),name:"Footer",onSelect:()=>st(Pt),selected:Ct===String(Re.props.id),fold:n?{open:!s,label:"section",onToggle:()=>nt(e)}:void 0,rowProps:{onClick:pe(()=>st(Pt))}}),n&&!s&&c(Je,{children:Cs(Re,1)})]})})(),!de&&!Re&&pt&&c(fe,{icon:c(me,{type:"footer",size:13}),name:"Footer",onSelect:as,rowProps:{onClick:pe(as),title:"Edit the site footer"}}),gs&&ks(gs),c("div",{className:"sf-tree-tool",children:c(si,{})})]})]})}),c($a,{side:"left",width:Tt.left,min:_o,max:qo,defaultWidth:dt.left,label:"Resize Sections panel",onResize:Qa})]}):c(Oo,{side:"left",onShow:ot}),c("div",{ref:Vt,className:"sf-center sf-scroll",style:{overflowX:ol?"auto":"hidden",overflowY:"hidden"},children:c("div",{className:"sf-frame-scaler",style:il,children:c("div",{className:`sf-frame ${De==="desktop"?"":`sf-frame--${De}`}`,style:sl,children:I("div",{className:"sf-preview-host",children:[c(Gr,{},hi),c(Sc,{canvas:Ve,session:Co,model:Pl,canDrop:ko,onDrop:vs,onPick:El,onZoneAdd:e=>Pn(je(e),0),readOnly:!!F,revision:le.data}),xi.length>0&&c("div",{className:"sf-preview-gaps","aria-hidden":"true",children:xi.map(e=>I("button",{type:"button",tabIndex:-1,className:"sf-preview-gap",style:{top:e.top},title:"Add section here",onClick:()=>Yt(e.index),children:[c("span",{className:"sf-preview-gap-line"}),I("span",{className:"sf-preview-gap-pill",children:[c("span",{className:"sf-preview-gap-plus",children:"+"}),c("span",{className:"sf-preview-gap-label",children:"Add section"})]})]},e.index))})]})})})}),ce?I(se,{children:[c(Pr,{value:{selectChild:Xt,addChild:Rt,childRowName:Cn,blockRowName:ys},children:c(Rr,{mode:ze,onOpenWebsiteSettings:Xi,onOpenSiteStyles:()=>{yi(hr),gn("styles")},onSelectNode:Za,onNotify:mt,onHidePanel:Ki})}),c($a,{side:"right",width:Tt.right,min:_o,max:qo,defaultWidth:dt.right,label:"Resize settings panel",onResize:el})]}):c(Oo,{side:"right",onShow:Ki})]}),Sn&&I("div",{className:`sf-toast ${Sn.tone==="error"?"sf-toast--error":""}`,role:"status",children:[c("span",{className:"sf-toast-check","aria-hidden":"true",children:Sn.tone==="error"?"!":"\u2713"}),Sn.msg]},tl),ns.menu]})})})}export{Oc as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var h=Symbol.for("efficient-web.efficient-backend");function E(e){return!!e&&e[h]===!0}function m(e){return e?.trim()||null}var u=null,g=new WeakMap;function _(e){u=e}function C(e=s()){if(e.hostBackend)return e.hostBackend;let t=g.get(e);if(!t){if(!u)throw new Error("efficient-web-builder: this editor was given no backend, and its host named no default one. Pass `backend`, or load the host's default backend first (the storefront's is lib/efficient-backend).");t=u(e),g.set(e,t)}return t}function T(e){if(!e.registry)throw new Error("efficient-web-builder: this editor was mounted with no block registry. Pass `registry` to createEditorSession (the storefront's is lib/puck/config).");return e.registry}function S(e={}){let t=e.backend??null,n=new Map,b={token:null,brandId:null},l={documentId:null,bridgedId:null};return{hostBackend:t,usesBridgedToken:t===null||E(t),blocks:e.blocks??null,registry:e.registry??null,chrome:e.chrome??null,documentHooks:e.documentHooks??null,auth:b,site:l,siteId:()=>l.documentId??l.bridgedId,cache(o,p){return n.has(o)||n.set(o,p()),n.get(o)},forget(o){o===void 0?n.clear():n.delete(o)}}}function D(e,t){e.site.documentId=m(t)}function L(e,t){e.site.bridgedId=m(t)}var I=S(),i=null,c=new Set;function s(){return i??I}function W(e){c.delete(e),i=e}function R(e){c.add(e),queueMicrotask(()=>{c.delete(e)&&i===e&&(i=null)})}function A(){return s().usesBridgedToken}var d="https://cdn.inovit.com"?.replace(/\/+$/,"");function a(e,t){let n=s().hostBackend?.media.resolve;if(!(!n||n===B))return n(e,t)??e}function y(e){return/^(?:https?:)?\/\//i.test(e)||/^(?:data|blob):/i.test(e)}function x(e){return a(e)??k(e)}function k(e){return!d||y(e)?e:d+e.replace(/^\/media/,"")}var B=e=>k(e),v="";function P(e){if(!e)return null;let t=a(e);return t!==void 0?t:e.startsWith("/")?`${v}${e}`:e}function H(e){return/^https?:\/\//i.test(e)&&!(d&&e.startsWith(d+"/"))}function N(e){if(!e)return;let t=a(e);return t!==void 0?t:e.startsWith("/media/")?x(e):e}function O(e){let t=e.split("?")[0],n=t.substring(t.lastIndexOf("/")+1);try{return decodeURIComponent(n.replace(/^[0-9a-f]{32}_/i,""))||n}catch{return n}}var w="/videos/products/";function $(e){return!!e&&e.includes(w)}function f(e){return{getItem(t){try{return e()?.getItem(t)??null}catch{return null}},setItem(t,n){try{e()?.setItem(t,n)}catch{}},removeItem(t){try{e()?.removeItem(t)}catch{}}}}var r="__storefront_probe__";function V(e){try{e.setItem(r,r);let t=e.getItem(r)===r;return e.removeItem(r),t}catch{return!1}}var q=f(()=>typeof window>"u"?null:window.localStorage),K=f(()=>typeof window>"u"?null:window.sessionStorage);function X(e){return f(()=>e.defaultView?.localStorage??null)}export{h as a,E as b,_ as c,C as d,T as e,S as f,D as g,L as h,s as i,W as j,R as k,A as l,x as m,B as n,P as o,H as p,N as q,O as r,$ as s,V as t,q as u,K as v,X as w};
|