efficient-storefront-blocks 0.74.0 → 0.76.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 +48 -0
- package/dist/chunks/EditorPreviewCheckout-ANI7HUYX.js +4 -0
- package/dist/chunks/{SiteEditorProvider-Z33JB5BA.js → SiteEditorProvider-AJUWZYHT.js} +1 -1
- package/dist/chunks/chunk-3IQQNZIM.js +311 -0
- package/dist/chunks/chunk-4F5CAFXO.js +1 -0
- package/dist/chunks/{chunk-5OFEWRWI.js → chunk-5NXOTPHK.js} +1 -1
- package/dist/chunks/chunk-YAYHH5GY.js +1 -0
- package/dist/chunks/{chunk-QJDTP7K6.js → chunk-YFPWVNDB.js} +1 -1
- package/dist/chunks/{fitment-data-DHKRLKNI.js → fitment-data-IZYCNTET.js} +1 -1
- package/dist/contract.js +2 -2
- package/dist/editor/components/BlogSource.js +1 -1
- package/dist/editor/components/CategoryProductFields.d.ts +22 -0
- package/dist/editor/components/CategoryProductFields.js +1 -0
- package/dist/editor/components/CategorySource.d.ts +12 -0
- package/dist/editor/components/CategorySource.js +1 -1
- package/dist/editor/components/CollectionPicker.js +1 -1
- package/dist/editor/components/CountryShowAsTiles.js +1 -1
- package/dist/editor/components/EditorPreviewChat.js +1 -11
- package/dist/editor/components/EditorPreviewSurface.js +1 -1
- package/dist/editor/components/GalleryProductBinding.js +1 -1
- package/dist/editor/components/GalleryShowcaseSource.js +1 -1
- package/dist/editor/components/HeaderSettingsPanel.d.ts +8 -4
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/editor/components/MenuPicker.js +1 -1
- package/dist/editor/components/PreviewProductPicker.js +1 -1
- package/dist/editor/components/ProductHeroSource.js +1 -1
- package/dist/editor/components/ProductPicker.js +1 -1
- package/dist/editor/components/SocialLinksDoor.js +1 -1
- package/dist/editor/components/SpecTableSource.js +1 -1
- package/dist/editor/lib/document/block-align-row.d.ts +2 -0
- package/dist/editor/lib/document/block-align-row.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/AccountBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/BundleOffer/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CartBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CatalogFilterBar/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CheckoutCTA/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CollectionCard/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/Collections/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CompatibleTyres/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/CountrySwitchBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/DeliveryOptions/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/DetailRows/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/EuTyreLabel/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FitmentFinder/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FitmentTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/Gallery/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/GalleryB/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/GalleryItem/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.d.ts +2 -2
- package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductGrid/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/RelatedProducts/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SearchBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/TyreFitment/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/TyreSizes/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/shared-fields.d.ts +1 -0
- package/dist/editor/lib/document/blocks/commerce/shared-fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/AppointmentBooking/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/BookingBox/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactCards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactRouting/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Events/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Footer/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterDivider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterEmailSignup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterLogo/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterMenu/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterMessaging/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterPayment/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterSocial/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterText/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Form/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/MessagingCards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/OpeningHours/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/RateTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/RatingBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ReviewForm/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Reviews/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/SiteHeader/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/SubmitBox/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/SubmitBuild/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/Subscribe/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/SubscribeBlogs/fields.js +1 -1
- package/dist/editor/lib/document/box-header.js +1 -1
- package/dist/editor/lib/document/config.d.ts +16 -16
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/editor-currency-source.js +1 -1
- package/dist/editor/lib/efficient-backend.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +12 -16
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.js +413 -724
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +32 -79
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/BoxHeaderBar.js +1 -1
- package/dist/render/components/CartContext.d.ts +4 -0
- package/dist/render/components/CartContext.js +1 -1
- package/dist/render/components/CartDrawer.js +2 -2
- package/dist/render/components/CatalogFilterBarSection.d.ts +1 -1
- package/dist/render/components/CatalogFilterBarSection.js +1 -1
- package/dist/render/components/Collections.js +1 -1
- package/dist/render/components/CompatibleTyres.js +1 -1
- package/dist/render/components/ConsentPanel.js +1 -1
- package/dist/render/components/ContactRouting.js +1 -1
- package/dist/render/components/CouponField.js +1 -1
- package/dist/render/components/CurrencyContext.js +1 -1
- package/dist/render/components/Events.js +1 -1
- package/dist/render/components/FitmentTable.js +1 -1
- package/dist/render/components/FooterGroup.d.ts +1 -1
- package/dist/render/components/FooterGroup.js +1 -1
- package/dist/render/components/FooterLogo.d.ts +2 -1
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/FooterPayment.d.ts +1 -2
- package/dist/render/components/FooterPayment.js +1 -1
- package/dist/render/components/FooterSocial.d.ts +1 -2
- package/dist/render/components/FooterSocial.js +1 -1
- package/dist/render/components/FormBlock.js +1 -1
- package/dist/render/components/GalleryItem.js +1 -1
- package/dist/render/components/GalleryShowcase.js +1 -1
- package/dist/render/components/Header.js +1 -1
- package/dist/render/components/HeaderToolBlocks.d.ts +1 -2
- package/dist/render/components/HeaderToolBlocks.js +1 -1
- package/dist/render/components/HeaderTools.js +1 -1
- package/dist/render/components/Lightbox.d.ts +2 -2
- package/dist/render/components/Lightbox.js +1 -1
- package/dist/render/components/LinkedProductHero.d.ts +2 -0
- package/dist/render/components/PopupFrame.d.ts +17 -4
- package/dist/render/components/PopupFrame.js +1 -1
- package/dist/render/components/ProductGallery.js +1 -1
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +3 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/ProductLightbox.js +1 -1
- package/dist/render/components/ReviewForm.js +1 -1
- package/dist/render/components/SectionGroupBody.js +1 -1
- package/dist/render/components/SpecTable.d.ts +2 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/SubscribePopup.js +2 -2
- package/dist/render/components/TyreRenderSvg.js +1 -1
- package/dist/render/components/booking/BookingRegions.js +1 -1
- package/dist/render/components/catalog/CatalogFilterBar.d.ts +4 -4
- package/dist/render/components/catalog/CatalogFilterBar.js +1 -1
- package/dist/render/components/catalog/CatalogFilterContext.d.ts +5 -3
- package/dist/render/components/catalog/CatalogFilterContext.js +1 -1
- package/dist/render/components/catalog/FilterPill.d.ts +3 -1
- package/dist/render/components/catalog/FilterPill.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/components/checkout/checkout-state.d.ts +19 -2
- package/dist/render/components/checkout/checkout-state.js +3 -3
- package/dist/render/components/fitment/StockFitmentCard.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicProductGallery.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicProductHero.d.ts +2 -0
- package/dist/render/components/pdp-dynamic/DynamicRelatedProducts.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
- package/dist/render/components/pdp-dynamic/RecordPhotoGallery.js +1 -1
- package/dist/render/components/product-hero/TyreHeroFitment.js +1 -1
- package/dist/render/components/product-hero/VehicleQuestion.d.ts +1 -2
- package/dist/render/components/product-hero/VehicleQuestion.js +1 -1
- package/dist/render/components/product-hero/WheelHeroFitment.js +1 -1
- package/dist/render/components/product-hero/trust-bullets.d.ts +5 -0
- package/dist/render/components/product-hero/trust-bullets.js +1 -0
- package/dist/render/components/useModalDismiss.d.ts +2 -1
- package/dist/render/components/useModalDismiss.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpNotifyMeDialog.js +1 -1
- package/dist/render/lib/api/index.d.ts +0 -8
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/types.d.ts +7 -3
- package/dist/render/lib/booking/appointment-time.d.ts +2 -0
- package/dist/render/lib/booking/appointment-time.js +1 -0
- package/dist/render/lib/catalog/from-wheel.js +1 -1
- package/dist/render/lib/catalog/plp-item.js +1 -1
- package/dist/render/lib/checkout/stripe-appearance.d.ts +10 -0
- package/dist/render/lib/checkout/stripe-appearance.js +1 -0
- package/dist/render/lib/checkout/wallet-return.d.ts +1 -1
- package/dist/render/lib/commerce.d.ts +1 -0
- package/dist/render/lib/commerce.js +1 -1
- package/dist/render/lib/content/legacy-block-align.d.ts +2 -0
- package/dist/render/lib/content/legacy-block-align.js +1 -0
- package/dist/render/lib/content/menu-row.d.ts +0 -3
- package/dist/render/lib/content/menu-row.js +1 -1
- package/dist/render/lib/content/site.d.ts +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/BundleOffer/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CheckoutCTA/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CompatibleTyres/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/CountrySwitchBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DeliveryOptions/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DetailRows/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/EuTyreLabel/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentFinder/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentTable/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductGrid/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +6 -0
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/RelatedProducts/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SpecTable/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreFitment/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreSizes/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactCards/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/FooterPayment/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/FooterSocial/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/MessagingCards/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/OpeningHours/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/RateTable/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/SubmitBuild/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/Subscribe/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/SubscribeBlogs/meta.js +1 -1
- package/dist/render/lib/document/lazy-draws.js +1 -1
- package/dist/render/lib/document/render-client.d.ts +8 -3
- package/dist/render/lib/document/render-client.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-reviews.js +1 -1
- package/dist/render/lib/document/storefront-root.d.ts +0 -2
- package/dist/render/lib/document/storefront-root.js +1 -1
- package/dist/render/lib/field-input.d.ts +1 -0
- package/dist/render/lib/field-input.js +1 -0
- package/dist/render/lib/sections/content-cap-gutter.d.ts +1 -0
- package/dist/render/lib/sections/content-cap-gutter.js +1 -0
- package/dist/render/lib/sections/hero-trust-bullets.d.ts +2 -0
- package/dist/render/lib/sections/hero-trust-bullets.js +1 -0
- package/dist/render/lib/tyres/spec-sheet.d.ts +17 -0
- package/dist/render/lib/tyres/spec-sheet.js +1 -1
- package/dist/render/lib/use-scope-class.d.ts +1 -0
- package/dist/render/lib/use-scope-class.js +1 -0
- package/dist/render/lib/wheels/catalog-default-layout.d.ts +3 -3
- package/dist/render/lib/wheels/catalog-default-layout.js +1 -1
- package/dist/render/lib/wheels/catalog-filters.d.ts +2 -2
- package/dist/render/lib/wheels/catalog-filters.js +1 -1
- package/dist/render/lib/wheels/grid-source.d.ts +7 -1
- package/dist/render/lib/wheels/grid-source.js +1 -1
- package/dist/render/lib/wheels/plp-hydrate.js +1 -1
- package/dist/words.d.ts +48 -48
- package/dist/words.js +6 -6
- package/package.json +7 -4
- package/dist/chunks/EditorPreviewCheckout-YQ3F5MSG.js +0 -4
- package/dist/chunks/chunk-BZDVZUF4.js +0 -1
- package/dist/chunks/chunk-UGXNUQRA.js +0 -246
- package/dist/chunks/chunk-UJW4B64R.js +0 -1
- package/dist/render/components/product-hero/hero-content.d.ts +0 -7
- package/dist/render/components/product-hero/hero-content.js +0 -1
- package/dist/render/components/useIsLightTheme.d.ts +0 -1
- package/dist/render/components/useIsLightTheme.js +0 -1
- package/dist/render/lib/content/product-hero.d.ts +0 -14
- package/dist/render/lib/content/product-hero.js +0 -1
- package/dist/render/lib/wheels/collections.d.ts +0 -22
- package/dist/render/lib/wheels/collections.js +0 -1
- /package/dist/chunks/{chunk-UGXNUQRA.js.LEGAL.txt → chunk-3IQQNZIM.js.LEGAL.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as we}from"react/jsx-runtime";import{createContext as gn,useCallback as r,useContext as fn,useMemo as mn,useState as Le}from"react";import{createContext as de,useContext as R}from"react";import{createContext as Tt}from"react";var ce=Tt(null);var At=de(null),M=de({logo:null,placeholder:!1,wordmark:null});function Mn(){let e=R(ce),t=R(At),n=R(M),a=!e&&n.placeholder,o=e?e.logoUrl:n.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:o,reversedSrc:e?e.logoReversed:n.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:n.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:n.wordmark,siteName:e?.siteName??t?.siteName}}import{useSelectHandler as Sn}from"efficient-easel/draw/client";import{contrastRatio as Fn,hexToRgb as N,readableInk as Ct,relativeLuminance as wt}from"efficient-shell/format";var Nn="storefront-theme",vn="sf:theme-mode",Gn="sf:theme-switch",Bn="hide",v="light",G=!1,Lt=7,kt=18;function It(e){return e>=Lt&&e<kt}function Un(e){let{mode:t,override:n,switchShown:a,hour:o}=e;return a&&(n==="light"||n==="dark")?n:t==="auto"?It(o)?"light":"dark":t==="light"?"light":"dark"}var h={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Ot=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],k={selected:0,themes:Ot};function ue(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...k}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function D(e,t,n){let a=N(e),o=N(t);if(a===null||o===null)return e;let i=(l,d)=>Math.max(0,Math.min(255,Math.round(l+(d-l)*n))).toString(16).padStart(2,"0");return`#${i(a.r,o.r)}${i(a.g,o.g)}${i(a.b,o.b)}`}var Ht={light:"#ffffff",dark:"#0a0a0a"},Wn=["light","dark"];function $n(e,t){let n=Ht[t],a=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:D(e,a,.1),line:D(e,a,.22),muted:D(n,e,.35),brandInk:t}}function E(e){let t=ue(e);return t.themes[t.selected]}function he(e){return{text:e.text,accent:e.accent,background:e.background||h.background,surface:e.surface||h.surface,line:e.line||h.line,muted:e.muted||h.muted}}var xt=.4,Rt=4.5,Mt=3,zn={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Vn(e){return e>=Rt?"good":e>=Mt?"large-only":"hard"}var Dt=["#000000","#ffffff"];function I(e){return Ct(e,Dt)}var Pt=[.25,.4,.55];function Yn(e){let t=N(e);return t===null?[]:Pt.map(n=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-n)).toString(16).padStart(2,"0")).join(""))}function Xn(e){let t=E(e),n={"--theme-fg":t.text},a=wt(t.text);return(a===null||a>=xt)&&(n["--overlay-fg"]=t.text),n}var Ft=82;function B(e){return`color-mix(in srgb, ${e} ${Ft}%, #000)`}function jn(e){let t=E(e);return{"--theme-accent":t.accent,"--theme-accent-2":B(t.accent),"--theme-accent-ink":I(t.accent)}}function U(e){let t=e?.button;return/^#[0-9a-fA-F]{6}$/.test(t??"")?t.toLowerCase():null}function qn(e){let t=E(e),n=U(t),a=ge(t);if(n===null&&a===null)return{};let o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=B(n)),o["--theme-btn-ink"]=a??I(n),o}function ge(e){let t=e?.buttonInk;return/^#[0-9a-fA-F]{6}$/.test(t??"")?t.toLowerCase():null}function Nt(e,t){return ge(e)??I(U(e)??t)}function Kn(e){let t=E(e);return{fill:U(t)??t.accent.toLowerCase(),ink:Nt(t,t.accent)}}function Zn(e){let t={};return ue(e).themes.forEach((n,a)=>{let o=he(n);t[`--theme-preset-${a}-accent`]=o.accent,t[`--theme-preset-${a}-accent-2`]=B(o.accent),t[`--theme-preset-${a}-accent-ink`]=I(o.accent),t[`--theme-preset-${a}-bg`]=o.background,t[`--theme-preset-${a}-fg`]=o.text,t[`--theme-preset-${a}-surface`]=o.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${a}-line`]=o.line,t[`--theme-preset-${a}-muted`]=o.muted}),t}var Jn=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function Qn(e){let t=he(E(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==h.surface||t.line!==h.line)&&(a["--theme-surface-2"]=n),a}var vt=["heading","body","label"];function ea(e){if(!e)return null;for(let t of vt)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var fe=["headingLarge","headingMedium","headingSmall","accent","body","label"];var W={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},Gt=8,Bt=200;function Ut(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=Gt&&t<=Bt?t:null}function Wt(e){let t={};for(let n of fe)t[n]=Ut(e?.[n]);return t}function ta(e){let t=Wt(e),n={};for(let a of fe){let o=t[a];o!==null&&(n[`--size-${a}`]=`${o}px`)}return n}var $t=["square","small","large"],zt="small";function na(e){return $t.includes(e??"")?e:zt}var me=0,Vt=40,aa={square:0,small:null,large:16},Yt={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function Se(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(Vt,Math.max(me,Math.round(t))):null}function Xt(e){let t=Se(e);return t===null?{}:Object.fromEntries(Object.entries(Yt).map(([n,a])=>{let o=t*a/16;return[n,o===0?"0":`${o}rem`]}))}function oa(e){return Xt(Se(e)??me)}var jt=["none","soft","lifted"],qt="soft",pe="none",Kt=["tight","normal","roomy"],Zt="normal",O="normal",Jt=["none","lift","highlight"],Qt="lift",en="highlight",_e="#141416";function ye(e){return jt.includes(e??"")?e:qt}function tn(e){return Kt.includes(e??"")?e:Zt}function Ee(e){return Jt.includes(e??"")?e:Qt}function nn(e){return/^#[0-9a-fA-F]{6}$/.test(e??"")?e.toLowerCase():_e}function sa(e){let t=ye(e);return t===pe?void 0:t}function ra(e){let t=tn(e);return t===O?void 0:t}function ia(e){let t=Ee(e);return t===en?void 0:t}function la(e,t,n){let a=nn(t);return a===_e?{}:ye(e)!==pe||Ee(n)==="lift"?{"--sf-shadow-color":a}:{}}var an=["normal","tight","compressed"],b="normal";function be(e){return an.includes(e??"")?e:b}function ca(e){let t=be(e);return t===b?void 0:t}function da(e){switch(be(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var $={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},P=100,F=900,on=24,sn=200;function L(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function Te(e){let t=L(e?.weight,P,F),n=e?.case==="sentence"?"sentence":"authored",a=i=>i==null?t:L(i,P,F),o=i=>i==="sentence"?"sentence":i==="authored"?"authored":n;return{case:n,weight:t,weightStrong:L(e?.weightStrong,P,F),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:L(e?.maxPx,on,sn),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function ua(e){let t=Te(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function ha(e){return Te({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var Ae=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],f=new Map(Ae.map(e=>[e.key,e]));function fa(e){return f.get(e)}var Ce=["heading","heading2","heading3","body","accent","label"],ma={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Accent",label:"Labels"},rn=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],ln=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,Sa={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},cn={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function pa(e){let t=e?ln.exec(e):null;return t?cn[t[1]]??null:dn(e)}function dn(e){if(!e)return null;let t=e.split(/\s+/).filter(n=>!n.slice(0,n.lastIndexOf(":")+1).includes("&")).map(n=>n.slice(n.lastIndexOf(":")+1));for(let[n,a]of rn)if(t.includes(n))return a;return null}var u={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function un(e){let t=n=>{let a=e?.[n];if(a&&f.has(a))return a;if(n==="heading2"||n==="heading3"){let o=e?.heading;return o&&f.has(o)?o:u.heading}return u[n]};return Object.fromEntries(Ce.map(n=>[n,t(n)]))}function hn(e,t){return f.get(e[t])??f.get(u[t])}function g(e,t){return`var(${hn(e,t).cssVar})`}var _a=[...new Set(Ce.map(e=>f.get(u[e]).cssVar))],ya=[...new Set(Ae.map(e=>e.cssVar))];function Ea(e){let t=un(e);return{"--font-role-heading":g(t,"heading"),"--font-role-heading2":g(t,"heading2"),"--font-role-heading3":g(t,"heading3"),"--font-role-body":g(t,"body"),"--font-role-accent":g(t,"accent"),"--font-role-label":g(t,"label"),fontFamily:"var(--font-role-body)"}}var ke=gn({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:v,setThemeMode:()=>{},themeSwitchShown:G,setThemeSwitchShown:()=>{},theme:k,setTheme:()=>{},fonts:u,setFonts:()=>{},sizes:W,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:O,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:b,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,blockGap:null,setSiteGutter:()=>{},setBlockGap:()=>{},headingTypography:$,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1,selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function Ia({children:e,websiteName:t=null,templateChrome:n=!1,templateName:a=null,chromePlaceholder:o=!1,themeMode:i=v,onThemeModeChange:l,themeSwitchShown:d=G,onThemeSwitchShownChange:T,theme:A=k,onThemeChange:m,fonts:S=u,onFontsChange:p,sizes:_=W,onSizesChange:c,cornerRadiusPx:H=null,onCornerRadiusPxChange:C,cardShadow:x=null,onCardShadowChange:w,shadowColor:Re=null,onShadowColorChange:z,cardGap:Me=O,onCardGapChange:V,hoverEffect:De=null,onHoverEffectChange:Y,headingCompression:Pe=b,onHeadingCompressionChange:X,siteWidth:Fe=null,onSiteWidthChange:j,siteGutter:Ne=null,blockGap:ve=null,onSiteGutterChange:q,onBlockGapChange:K,headingTypography:Ge=$,onHeadingTypographyChange:Z,textStyles:Be=null,onTextStylesChange:J,wordStyles:Ue=null,heroBackgroundFollowsWidth:We=null,onHeroBackgroundFollowsWidthChange:Q,sectionBackgroundWidth:$e=null,onSectionBackgroundWidthChange:ee,sectionContentWidth:ze=null,onSectionContentWidthChange:te,photographyGrayscale:Ve=null,onPhotographyGrayscaleChange:ne,shareButtonOnPosts:Ye=null,onShareButtonOnPostsChange:ae,themeFromDocument:Xe=!1}){let[y,oe]=Le(null),je=r(s=>oe(bt=>bt??s),[]),[qe,Ke]=Le(!1),Ze=r(s=>l?.(s),[l]),Je=r(s=>T?.(s),[T]),Qe=r(s=>m?.(s),[m]),et=r(s=>p?.(s),[p]),tt=r(s=>c?.(s),[c]),nt=r(s=>j?.(s),[j]),at=r(s=>q?.(s),[q]),ot=r(s=>K?.(s),[K]),st=r(s=>Q?.(s),[Q]),rt=r(s=>ee?.(s),[ee]),it=r(s=>te?.(s),[te]),lt=r(s=>ne?.(s),[ne]),ct=r(s=>ae?.(s),[ae]),dt=r(s=>C?.(s),[C]),ut=r(s=>w?.(s),[w]),ht=r(s=>z?.(s),[z]),gt=r(s=>V?.(s),[V]),ft=r(s=>Y?.(s),[Y]),mt=r(s=>X?.(s),[X]),St=r(s=>Z?.(s),[Z]),pt=r(s=>J?.(s),[J]),{select:_t,setSelectHandler:yt}=Sn(),se=y?.logoUrl,re=y?.logoReversed,ie=y?.logoInkIsDark,le=y!==null,Et=mn(()=>({logo:le?{logoUrl:se,logoReversed:re,logoInkIsDark:ie}:null,placeholder:n||o,wordmark:n?a:t}),[le,se,re,ie,n,o,a,t]);return we(M.Provider,{value:Et,children:we(ke.Provider,{value:{settings:y,setSettings:oe,primeSettings:je,websiteName:t,templateChrome:n,templateName:a,chromePlaceholder:o,themeMode:i,setThemeMode:Ze,themeSwitchShown:d,setThemeSwitchShown:Je,theme:A,setTheme:Qe,fonts:S,setFonts:et,sizes:_,setSizes:tt,cornerRadiusPx:H,setCornerRadiusPx:dt,cardShadow:x,setCardShadow:ut,shadowColor:Re,setShadowColor:ht,cardGap:Me,setCardGap:gt,hoverEffect:De,setHoverEffect:ft,headingCompression:Pe,setHeadingCompression:mt,siteWidth:Fe,setSiteWidth:nt,siteGutter:Ne,blockGap:ve,setSiteGutter:at,setBlockGap:ot,headingTypography:Ge,setHeadingTypography:St,textStyles:Be,setTextStyles:pt,wordStyles:Ue,heroBackgroundFollowsWidth:We,setHeroBackgroundFollowsWidth:st,sectionBackgroundWidth:$e,setSectionBackgroundWidth:rt,sectionContentWidth:ze,setSectionContentWidth:it,photographyGrayscale:Ve,setPhotographyGrayscale:lt,shareButtonOnPosts:Ye,setShareButtonOnPosts:ct,themeFromDocument:Xe,selected:qe,setSelected:Ke,select:_t,setSelectHandler:yt},children:e})})}var Oa=()=>fn(ke);import{forwardRef as pn}from"react";import{jsx as En}from"react/jsx-runtime";function _n(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",n=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${n}`}var yn=pn(function({href:t,prefetch:n,replace:a,scroll:o,shallow:i,legacyBehavior:l,passHref:d,locale:T,onClick:A,children:m,...S},p){let _=c=>{A?.(c),!(c.defaultPrevented||S.target==="_blank")&&c.preventDefault()};return En("a",{ref:p,href:_n(t),onClick:_,...S,children:m})}),Ra=yn;var bn="Website";function Pa(e){return e?.trim()||bn}var Ie=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],Tn={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},An={};function Na(e){if(!e||typeof e!="object")return An;let t={};for(let n of Ie){let a=e[n];if(typeof a!="string")continue;let o=a.trim();!o||!/^https?:\/\//i.test(o)||(t[n]=o)}return t}function va(e){return Ie.flatMap(t=>{let n=e[t];return n?[{platform:t,href:n,label:Tn[t]}]:[]})}var Ga=e=>`${e}_url`;import{forwardRef as Cn}from"react";import{imageCopyUrl as Oe,imageSrcSet as He}from"efficient-shell/image-copies";import{jsx as kn}from"react/jsx-runtime";var wn={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function xe(e,t,n){if(n){let a=He(e);return a?{src:Oe(e,1280),srcSet:a,sizes:n}:{src:e,sizes:n}}if(t&&t>0){let a=He(e,{maxWidth:t*3});return a?{src:Oe(e,t*2),srcSet:a,sizes:`${t}px`}:{src:e}}return{src:e}}var Ln=Cn(function({src:t,width:n,height:a,fill:o,priority:i,loading:l,style:d,quality:T,placeholder:A,blurDataURL:m,unoptimized:S,loader:p,overrideSrc:_,sizes:c,...H},C){let x=_??(typeof t=="string"?t:t.src),w=xe(x,o?void 0:Number(n)||void 0,c??(o?"100vw":void 0));return kn("img",{ref:C,...w,width:o?void 0:n,height:o?void 0:a,loading:i?"eager":l??"lazy",fetchPriority:i?"high":void 0,decoding:"async",style:o?{...wn,...d}:{color:"transparent",...d},...H})}),$a=Ln;function za(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),n=e.fill?void 0:Number(e.width)||void 0;return{props:xe(t,n,e.sizes??(e.fill?"100vw":void 0))}}var Xa={small:54,medium:66,large:84},In=44,ja=16,qa=140,Ka=In*4;export{$a as a,za as b,Ra as c,Ae as d,fa as e,Ce as f,ma as g,Sa as h,pa as i,dn as j,u as k,un as l,Ea as m,Fn as n,Nn as o,vn as p,Gn as q,Bn as r,v as s,G as t,Un as u,h as v,Ot as w,ue as x,Wn as y,$n as z,E as A,he as B,zn as C,Vn as D,I as E,Yn as F,Xn as G,jn as H,U as I,qn as J,ge as K,Nt as L,Kn as M,Zn as N,Jn as O,Qn as P,ea as Q,W as R,Wt as S,ta as T,na as U,me as V,Vt as W,aa as X,Se as Y,Xt as Z,oa as _,jt as $,qt as aa,pe as ba,O as ca,Jt as da,Qt as ea,en as fa,_e as ga,ye as ha,tn as ia,Ee as ja,nn as ka,sa as la,ra as ma,ia as na,la as oa,b as pa,be as qa,ca as ra,da as sa,$ as ta,Te as ua,ua as va,ha as wa,ce as xa,Mn as ya,Ia as za,Oa as Aa,bn as Ba,Pa as Ca,Ie as Da,Tn as Ea,An as Fa,Na as Ga,va as Ha,Ga as Ia,Xa as Ja,In as Ka,ja as La,qa as Ma,Ka as Na};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type ProductHeroContent } from "../../lib/content/product-hero.js";
|
|
3
|
-
export declare function ProductHeroContentProvider({ content, children, }: {
|
|
4
|
-
content: ProductHeroContent;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
export declare function useProductHeroContent(): ProductHeroContent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{jsx as e}from"react/jsx-runtime";import{createContext as n,useContext as u}from"react";import{PRODUCT_HERO_DEFAULTS as c}from"../../lib/content/product-hero.js";const t=n(c);function C({content:o,children:r}){return e(t.Provider,{value:o,children:r})}function d(){return u(t)}export{C as ProductHeroContentProvider,d as useProductHeroContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useIsLightTheme(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{useEffect as u,useState as o}from"react";function i(){const[n,s]=o(!1);return u(()=>{const t=()=>{s(document.documentElement.getAttribute("data-theme")==="light")};t();const e=new MutationObserver(t);return e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>e.disconnect()},[]),n}export{i as useIsLightTheme};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface ProductHeroBullet {
|
|
2
|
-
label: string;
|
|
3
|
-
detail: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ProductHeroContent {
|
|
6
|
-
bullets: ProductHeroBullet[];
|
|
7
|
-
}
|
|
8
|
-
export declare const PRODUCT_HERO_BULLETS_PROP = "heroBullets";
|
|
9
|
-
export declare const HERO_BULLET_SEPARATOR = "\u00B7";
|
|
10
|
-
export declare const PRODUCT_HERO_DEFAULTS: ProductHeroContent;
|
|
11
|
-
export declare const HERO_BULLET_EXAMPLE: ProductHeroBullet;
|
|
12
|
-
export declare function heroBulletLine(bullet: ProductHeroBullet): string;
|
|
13
|
-
export declare function parseHeroBullet(line: string): ProductHeroBullet | null;
|
|
14
|
-
export declare function resolveProductHeroContent(rootProps: Record<string, unknown> | undefined | null): ProductHeroContent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{authoredString as o}from"efficient-web-builder/format/lib/content/authored-props";const i="heroBullets",n="·",s={bullets:[]},c={label:"Free shipping",detail:"USA, UK, AUS"};function p(t){return t.detail?`${t.label} ${n} ${t.detail}`:t.label}function a(t){const e=t.trim();if(!e)return null;const l=e.indexOf(n);return l<0?{label:e,detail:""}:{label:e.slice(0,l).trim(),detail:e.slice(l+n.length).trim()}}function E(t){const e=(t??{})[i];return Array.isArray(e)?{bullets:e.map(r=>a(typeof r=="string"?r:o(r?.text,""))).filter(r=>r!==null)}:s}export{c as HERO_BULLET_EXAMPLE,n as HERO_BULLET_SEPARATOR,i as PRODUCT_HERO_BULLETS_PROP,s as PRODUCT_HERO_DEFAULTS,p as heroBulletLine,a as parseHeroBullet,E as resolveProductHeroContent};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Process } from "../api/index.js";
|
|
2
|
-
export interface CollectionMeta {
|
|
3
|
-
key: Process;
|
|
4
|
-
num: string;
|
|
5
|
-
title: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function slugifyProcess(process: string): string;
|
|
8
|
-
export declare const COLLECTIONS: CollectionMeta[];
|
|
9
|
-
export declare function siteProcesses(catalog: ReadonlyArray<{
|
|
10
|
-
process?: string;
|
|
11
|
-
}>): Process[];
|
|
12
|
-
export declare function collectionsForCatalog(catalog: ReadonlyArray<{
|
|
13
|
-
process?: string;
|
|
14
|
-
}>): CollectionMeta[];
|
|
15
|
-
export interface SiteCollectionMeta extends Omit<CollectionMeta, "key"> {
|
|
16
|
-
key: string;
|
|
17
|
-
slug: string;
|
|
18
|
-
}
|
|
19
|
-
export declare function siteCollections(catalog: ReadonlyArray<{
|
|
20
|
-
process?: string;
|
|
21
|
-
}>): SiteCollectionMeta[];
|
|
22
|
-
export declare const COLLECTION_ANCHORS: Record<Process, string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as a,jsxs as f}from"react/jsx-runtime";import{Fragment as m}from"react";import g from"efficient-web-builder/render/components/RMark";import{slugify as u}from"efficient-shell/format";const s=["FusionForge®","Precision Forged","Monoblock Cast"];function C(t){return u(t)}function p(t){const n=t.split("®");return n.length===1?t:n.map((e,o)=>f(m,{children:[e,o<n.length-1&&a(g,{})]},o))}const O=s.map((t,n)=>({key:t,num:String(n+1).padStart(2,"0"),title:p(t)}));function l(t){if(t.length===0)return[...s];const n=new Set(t.map(e=>e.process));return s.filter(e=>n.has(e))}function j(t){return l(t).map((n,e)=>({key:n,num:String(e+1).padStart(2,"0"),title:p(n)}))}function k(t){const n=l(t),e=t.map(r=>r.process).filter(r=>!!r&&!s.includes(r)),o=new Set,c=[];for(const r of[...n,...e]){const i=u(r);!i||o.has(i)||(o.add(i),c.push({key:r,slug:i,num:String(c.length+1).padStart(2,"0"),title:p(r)}))}return c}const y=Object.fromEntries(s.map(t=>[t,u(t)]));export{O as COLLECTIONS,y as COLLECTION_ANCHORS,j as collectionsForCatalog,k as siteCollections,l as siteProcesses,C as slugifyProcess};
|
|
File without changes
|