efficient-storefront-blocks 0.130.13 → 0.130.15
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 +28 -0
- package/dist/chunks/{CustomHtmlCodeWindow-WDJYQRZA.js → CustomHtmlCodeWindow-DHCKPXRN.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-DZWAHBAZ.js → EditorPreviewCheckout-WPWX5CLZ.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-JT4ASGS5.js → SiteEditorProvider-CKIUIYEI.js} +1 -1
- package/dist/chunks/{chunk-3SIVGMSB.js → chunk-43DAA6QE.js} +1 -1
- package/dist/chunks/{chunk-KCZDH44S.js → chunk-66NNRDRA.js} +1 -1
- package/dist/chunks/{chunk-QAUFSKVD.js → chunk-AL6K3KD7.js} +1 -1
- package/dist/chunks/{chunk-7QM6BBAM.js → chunk-KZNWKZDS.js} +2 -2
- package/dist/chunks/{chunk-TQIJVK3T.js → chunk-LSEWOQRA.js} +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +4 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +26 -26
- package/dist/render/components/ProductHeroPanel.d.ts +2 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/SpecTable.d.ts +2 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/card-pieces/CardProductPicture.d.ts +2 -0
- package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.d.ts +1 -0
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductPicture/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
- package/dist/render/lib/document/blocks/text-part-shapes.json +9 -0
- package/dist/render/lib/sections/hero-option-looks.d.ts +12 -0
- package/dist/render/lib/sections/hero-option-looks.js +1 -1
- package/dist/render/lib/wheels/spec-sheet.d.ts +6 -0
- package/dist/render/lib/wheels/spec-sheet.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +4 -0
- package/dist/words.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{chunk-7QM6BBAM.js.LEGAL.txt → chunk-KZNWKZDS.js.LEGAL.txt} +0 -0
|
@@ -12,6 +12,7 @@ export interface HeroTemplateProps {
|
|
|
12
12
|
optionPressTitles?: readonly CardPressTitle[];
|
|
13
13
|
tileTemplate?: SlotComponent;
|
|
14
14
|
optionLooks?: HeroOptionLooks;
|
|
15
|
+
spareWords?: string;
|
|
15
16
|
}
|
|
16
17
|
interface Props extends HeroTemplateProps {
|
|
17
18
|
product: StoreProduct;
|
|
@@ -27,5 +28,5 @@ interface Props extends HeroTemplateProps {
|
|
|
27
28
|
stageToEdge?: boolean;
|
|
28
29
|
showBreadcrumb?: boolean;
|
|
29
30
|
}
|
|
30
|
-
export default function ProductHeroPanel({ product, selection, onLightbox, editing, showVehicleFitment, heroLayout, imageRatio, textAlign, showSpecTable, stickyColumns, stageToEdge, showBreadcrumb, nodeId, template, optionTemplate, optionPressTitles, tileTemplate, buyTemplate, optionLooks, }: Props): import("react").JSX.Element;
|
|
31
|
+
export default function ProductHeroPanel({ product, selection, onLightbox, editing, showVehicleFitment, heroLayout, imageRatio, textAlign, showSpecTable, stickyColumns, stageToEdge, showBreadcrumb, nodeId, template, optionTemplate, optionPressTitles, tileTemplate, buyTemplate, optionLooks, spareWords, }: Props): import("react").JSX.Element;
|
|
31
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as m,Fragment as T}from"react/jsx-runtime";import{partSkus as Be}from"../lib/catalog/part-skus.js";import ie from"next/link";import{useEffect as oe,useRef as me,useState as Ye}from"react";import{useCart as Ge}from"./CartContext.js";import{useSiteTakesOrders as Qe}from"./SiteRecordContext.js";import We from"./EmailCaptureForm.js";import{useEnglish as ce}from"./EnglishVariant.js";import{MarkedLabel as pe,heroView as Xe}from"./product-hero/hero-view.js";import{HeroOptionLooksProvider as qe,OptionDropdown as Je,OptionLabel as de,optionWords as Ze,useHeroOptionLooks as et}from"./product-hero/OptionLooks.js";import{DEFAULT_HERO_OPTION_LOOKS as tt}from"../lib/sections/hero-option-looks.js";import{useRootIsDark as lt}from"efficient-shell/theme";import{useStockAlertSignup as at}from"./useStockAlertSignup.js";import{SPARE_WORDS as nt,productCartLine as st}from"../lib/catalog/purchase.js";import{OPTION_ROW_ATTR as D}from"../lib/catalog/store-product.js";import{resolvingRowsAnswered as rt}from"../lib/catalog/product-options.js";import{trackViewItem as it}from"../lib/google-tag.js";import{DEFAULT_HERO_LAYOUT as ot,DEFAULT_HERO_RATIO as mt,DEFAULT_HERO_TEXT_ALIGN as ct,parseHeroLayout as pt,parseHeroRatio as dt,parseHeroTextAlign as ut}from"../lib/sections/hero-arrangement.js";import{MAX_SPARES as ft,UNITS_PER_SET as ue,formatPrice as fe,spareAxleOf as ht}from"../lib/commerce.js";import{formatSelectionPrice as he}from"../lib/wheels/price-display.js";import{productIsDually as bt,productIsTwoObjects as gt,setSuppressesRow as xt}from"../lib/wheels/set-mode.js";import{CONTENT_CAP_GUTTER as be}from"../lib/sections/content-cap-gutter.js";import{STICKY_COLUMNS_CLASS as vt,STICKY_SECTION_ATTR as kt}from"../lib/sections/hero-sticky.js";import{STAGE_EDGE_ATTR as Tt,stageEdgeClass as yt,stageEdgeCols as St}from"../lib/sections/hero-stage-edge.js";import{useStickyColumns as Ot}from"./useStickyColumns.js";import{BLOCK_ALIGN_TEXT as _t}from"efficient-web-builder/format/lib/content/block-align";import{CardTemplateRows as M}from"efficient-web-builder/render/components/CardRowContext";import{InsideSiteColumn as U}from"efficient-web-builder/render/components/SiteGutterFrame";import{cardRow as Nt}from"efficient-web-builder/format/lib/content/card-template";import{optionCardRows as Et}from"../lib/sections/filter-option-rows.js";import{HERO_OPTION_SLOT as Rt,HERO_TILE_SLOT as Lt}from"../lib/content/hero-option-seed.js";import{HERO_BUY_SLOT as wt,HERO_QUANTITY_PART as At,HERO_SAVE_PART as Ct}from"../lib/content/hero-buy-seed.js";import{HERO_PART as b}from"../lib/content/hero-seed.js";import It from"./card-pieces/CardQuantity.js";import $t from"./card-pieces/CardSave.js";import Pt from"./card-pieces/CardStatedFacts.js";import{HeroStateProvider as Ht}from"./card-pieces/ProductCardState.js";import{PRODUCT_HERO_TYPE as z}from"../lib/document/document-nodes.js";import{withSideOnce as ge}from"efficient-web-builder/format/lib/content/page-width";import{useSideSpaceOnce as Dt}from"efficient-web-builder/render/components/SideSpaceOnce";import{withRootPad as xe}from"efficient-web-builder/render/lib/content/section-own-pads";import{useSplitPads as Mt}from"./SectionPadScope.js";const Ut=4e3;function zt(e){return e?[e.year,e.make,e.model,e.modification].join("-"):""}const ve=[{}],jt=(e,s)=>s===At?t(It,{}):s===Ct?t($t,{}):null,Ft="[&>[data-sf-repeat]]:contents [&>[data-sf-repeat]>div]:contents";function Kt({product:e,selection:s,onLightbox:i,editing:r=!1,showVehicleFitment:c=!0,heroLayout:n=ot,imageRatio:o=mt,textAlign:l=ct,showSpecTable:O=!0,stickyColumns:Te=!1,stageToEdge:ye=!1,showBreadcrumb:j=!0,nodeId:_,template:Se,optionTemplate:Oe,optionPressTitles:_e,tileTemplate:Ne,buyTemplate:Ee,optionLooks:Re=tt}){const F=Dt(),Le=ce(),u=pt(n),K=ut(l),k=dt(o),N=Te===!0&&u!=="stacked",y=ye===!0&&u!=="stacked",V=me(null);Ot(V,N);const we=y?St(k,u==="imageRight"):u==="imageRight"?`${100-k}fr ${k}fr`:`${k}fr ${100-k}fr`,E=y?{gap:"",y:"",yTablet:""}:{gap:"gap-10 ",y:"py-14 ",yTablet:"max-view-tablet:py-8 "},{picked:Ae,pick:B,qty:Y,setQty:Ce,choice:G,setChoice:Ie,angleIdx:Wt,setAngleIdx:Xt,showValidation:$e,setShowValidation:R,manualMode:Q,vehicle:L,rows:W,facts:Pe,part:f,outOfStock:X,offer:w,preOrder:A,canAddToCart:q,currency:g,price:d,set:J,msrpLabel:He}=s,p=Xe(e,s,r),Z=bt(e),De=gt(e),C=c?p.vehicle:null,Me=c?p.vehicleMemory:null,ee=!lt({whenUnset:!0}),{warmCatalog:te}=Ge(),S=Qe();oe(()=>{!r&&S&&te(e.kind,e.slug)},[r,S,e.kind,e.slug,te]);const le=W.filter(a=>!A||a.values.length>0),ae=le.filter(a=>a.role==="resolves"),I=le.filter(a=>a.role==="describes"&&!xt(De,a.key)),ne=I.findIndex(a=>a.chosen===null),se=(!C||!p.vehicleAnswersSpecs||s.fitmentSet)&&rt(W,A)?ne===-1?I:I.slice(0,ne+1):[],Ue=[...ae,...se];function ze(){return q?(R(!1),r?null:st(e,f,Ae,{choice:G,qty:Y},{fitmentLabel:Q?p.specCaption:L.appliedName?`For ${L.appliedName}`:"",fitmentKey:Q?`manual|${p.specCaption}`:`vehicle|${zt(L.applied?.vehicle)}`})):(R(!0),window.setTimeout(()=>R(!1),Ut),null)}const je={kind:"hero",msrpLabel:He||null,amount:he(d,g),unitLabel:d.priced?p.unitLabel:null,packBadge:d.setTotal!=null?`${w.quantityLabel}: ${fe(J,g)}`:null,buy:{isSet:Z,priced:d.priced,outOfStock:X,canAdd:q,totalLabel:d.setTotal!=null?fe(J,g):null,lineToAdd:ze},qty:Y,setQty:Ce,takesQty:S&&!(Z&&!d.priced),save:{slug:e.slug,name:e.name},facts:O?Pe:null,title:{eyebrow:e.eyebrow,name:p.heading,badge:e.badge||null},product:e,selection:s,openLightbox:i,sku:Be(f),designCode:e.kind==="alloy-wheel"&&e.source.designCode||null,setLine:Yt(d,Bt(w.quantityLabel,e.kind),g)},$={nodeId:_??"",template:Oe,tileTemplate:Ne,pressTitles:_e,editing:r},h=!!(A&&p.preOrder),Fe={[b.fitmentLine]:Me,[b.options]:m(qe,{looks:Re,children:[ae.map(a=>t(ke,{row:a,onPick:B,options:$},a.key)),!h&&C,!h&&se.map(a=>t(ke,{row:a,onPick:B,options:$},a.key))]}),[b.facts]:h?null:t(Pt,{}),[b.howMany]:h?null:t(Gt,{offer:w,takesOrders:S,choice:G,setChoice:Ie,options:$}),[b.buy]:h?p.preOrder:t(U,{children:t(M,{ownerId:_??"",ownerType:z,slot:wt,Template:Ee,rows:ve,fallback:null,hostParts:jt,children:a=>a})}),[b.notify]:!h&&X&&f?t(Qt,{partNumbers:f.components.map(a=>a.partNumber),productSlug:e.slug},f.id):null,[b.reminder]:!h&&$e?Ve():null},Ke=(a,x)=>Fe[x]??null;function Ve(){const a=Ue.filter(H=>H.chosen===null).map(H=>Le(H.prompt).replace(/^Select\s+/i,""));if(C&&p.vehicleAnswersSpecs&&!s.fitmentSet&&a.push("vehicle fitment"),a.length===0)return null;const x=a.length===1?a[0]:a.length===2?`${a[0]} and ${a[1]}`:`${a.slice(0,-1).join(", ")}, and ${a.at(-1)}`;return m("p",{role:"alert",className:"-mt-1 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em]",style:{color:"var(--alert)"},children:["Please select ",x," first."]})}const re=me(null);oe(()=>{r||re.current===e.slug||(re.current=e.slug,it({itemId:f?`${e.slug}|${f.id}`:e.slug,itemName:e.name,variant:p.metaValue,pricePerSet:d.setTotal??d.fromSetTotal??0,currency:g}))},[r,e.slug,e.name,p.metaValue,f,d,g]);const P=Mt();return m(T,{children:[j&&t("nav",{...xe(ge(`border-b border-line ${be} pt-4 pb-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]`,F),P?.first?.atTop,ee?void 0:{background:"var(--section-bg)"}),children:e.crumbs.map((a,x)=>m("span",{children:[x>0&&m(T,{children:[t("span",{className:"mx-3 text-accent",children:"/"}),t("wbr",{})]}),a.href?t(ie,{href:a.href,className:"hover:text-fg",children:t(pe,{text:a.label})}):t("span",{className:"text-fg",children:t(pe,{text:a.label})})]},`${a.label}-${x}`))}),t("section",{ref:V,"data-hero-layout":u,"data-hero-align":K,...N?{[kt]:""}:{},...y?{[Tt]:""}:{},...xe([ge(`grid ${E.gap}${be} ${E.y}max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] ${E.yTablet}${Ft}`,F),K==="center"?_t.center:"",u==="stacked"?"grid-cols-1":"[grid-template-columns:var(--hero-cols)] max-view-desktop:[grid-template-columns:minmax(0,1fr)]",N?vt:"",y?yt(u==="imageRight"):""].filter(Boolean).join(" "),j?P?.second?.atTop:P?.secondOnly?.atTop,{...ee?{}:{background:"var(--section-bg)"},...u==="stacked"?{}:{"--hero-cols":we}}),children:t(Ht,{value:je,children:t(U,{children:t(M,{ownerId:_??"",ownerType:z,Template:Se,rows:ve,fallback:null,hostParts:Ke,children:a=>a})})})})]})}const Vt="wheels";function Bt(e,s){return s==="alloy-wheel"&&/\d$/.test(e)?`${e} ${Vt}`:e}function Yt(e,s,i){if(!e.priced)return null;const r=e.setTotal??e.fromSetTotal;return r==null?null:{label:s,total:he({...e,unit:r,isFrom:e.setTotal==null},i)}}function Gt({offer:e,takesOrders:s,choice:i,setChoice:r,options:c}){return e.packs.length>0||s&&(e.extra||e.spareCounts.length>0)?m("div",{className:"border-b border-line pb-[26px]",children:[e.packs.length>0&&m(T,{children:[t("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:"How many"}),t("div",{className:"flex flex-wrap gap-1.5",children:t(v,{hero:c,values:e.packs,item:n=>({label:n.label}),picked:n=>i.unit===n.value,press:n=>()=>r(o=>({...o,unit:n.value}))})})]}),s&&e.extra&&m("label",{className:`${e.packs.length>0?"mt-3.5 ":""}flex cursor-pointer items-center gap-3 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em] text-fg`,children:[t("input",{type:"checkbox",checked:i.spares>0,onChange:n=>r(o=>({...o,spares:n.target.checked?ft:0})),className:"h-4 w-4 cursor-pointer accent-[var(--accent)]"}),e.extra.label]}),s&&e.spareCounts.length>0&&m(T,{children:[t("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:nt.howMany}),t("div",{className:"flex flex-col gap-1.5 sm:flex-row sm:flex-wrap",children:t(v,{hero:c,values:e.spareCounts,item:n=>({label:`${n.value} · ${n.label}`}),picked:n=>i.spares===n.value-ue,press:n=>()=>r(o=>({...o,spares:n.value-ue}))})})]}),s&&e.spareSide&&m(T,{children:[t("div",{className:"mb-3.5 mt-[26px] font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:e.spareSide.label}),t("div",{className:"flex flex-wrap gap-1.5",children:t(v,{hero:c,values:e.spareSide.options,item:n=>({label:n.label}),picked:n=>i.spareSide===n.value&&(n.axle===void 0||ht(i)===n.axle),press:n=>()=>r(o=>({...o,spareSide:n.value,...n.axle?{spareAxle:n.axle}:{}}))})})]})]}):null}function ke({row:e,onPick:s,options:i}){const r=ce(),c=et();if(e.values.length===0&&!e.empty)return null;const n=e.values.find(l=>l.value===e.chosen),o=n&&[n.label,n.note].filter(Boolean).join(" · ");return e.values.length>0&&e.display==="swatch"&&c.finish==="tiles"?m("div",{[D]:e.key,children:[t(de,{label:r(e.label),chosen:n?.label}),t("div",{className:"flex flex-wrap gap-2","data-option-tiles":"",children:t(v,{hero:i,tiles:!0,values:e.values,item:l=>({swatch:l.swatch??"",name:l.label}),label:l=>l.label,picked:l=>l.value===e.chosen,press:l=>()=>s(e.key,l.value)})})]}):e.values.length>0&&e.display==="pill"&&e.role==="resolves"&&c.size==="dropdown"?m("div",{[D]:e.key,children:[t(de,{label:r(e.label)}),t(Je,{rowKey:e.key,label:r(e.label),shown:o||r(e.prompt),items:e.values.map(l=>({value:l.value,label:Ze(l)})),value:e.chosen??"",onPick:l=>s(e.key,l),editing:i.editing})]}):m("div",{className:"border-b border-line pb-[26px]",[D]:e.key,children:[m("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:[r(e.label)," · ",t("span",{className:"text-accent",children:o??r(e.prompt)})]}),e.values.length===0?m("p",{className:"font-mono text-[length:var(--size-body,12px)] leading-relaxed tracking-[0.1em] text-fg-dim",children:[e.empty.text," ",t(ie,{href:e.empty.href,className:"text-accent hover:underline",children:e.empty.linkText})]}):e.display==="swatch"?t("div",{className:"flex flex-wrap gap-2 [&>*]:max-w-full",children:t(v,{hero:i,values:e.values,item:l=>({swatch:l.swatch??"",name:l.label}),picked:l=>l.value===e.chosen,press:l=>()=>s(e.key,l.value)})}):t("div",{className:"flex flex-wrap gap-1.5",children:t(v,{hero:i,values:e.values,item:l=>({label:l.label,note:l.note??""}),picked:l=>l.value===e.chosen,press:l=>()=>s(e.key,l.value)})})]})}function v({hero:e,values:s,item:i,label:r,picked:c,press:n,tiles:o=!1}){const l=Et(s,{item:i,selected:c,press:n,label:r});return t(U,{children:t(M,{ownerId:e.nodeId,ownerType:z,slot:o?Lt:Rt,Template:o?e.tileTemplate:e.template,rows:l.items.map(Nt),items:l.items,states:l.states,actions:e.editing?void 0:l.actions,pressTitles:o?void 0:e.pressTitles,fallback:null,children:O=>O})})}function Qt({partNumbers:e,productSlug:s}){const[i,r]=Ye(""),{status:c,submit:n,reset:o}=at();function l(){n({partNumbers:e,email:i,productSlug:s})}return c==="sent"?t("p",{className:"-mt-1 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-accent",children:"We'll email you when it's back."}):t(We,{className:"-mt-1",email:i,onEmailChange:r,status:c,onResetVerdict:o,onSubmit:l,inputAriaLabel:"Email for the back-in-stock alert",submitLabel:"Notify me when back",buttonClassName:"cursor-pointer whitespace-nowrap border-2 border-btn px-4 font-mono text-[length:var(--size-label,11px)] font-bold uppercase tracking-[0.22em] text-btn transition-colors hover:bg-btn hover:text-btn-ink disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-btn",errorMessage:"Couldn't save that — please try again."})}export{Kt as default};
|
|
1
|
+
"use client";import{jsx as l,jsxs as i,Fragment as y}from"react/jsx-runtime";import{partSkus as We}from"../lib/catalog/part-skus.js";import oe from"next/link";import{useEffect as me,useRef as ce,useState as Ye}from"react";import{useCart as Ge}from"./CartContext.js";import{useSiteTakesOrders as Qe}from"./SiteRecordContext.js";import Xe from"./EmailCaptureForm.js";import{useEnglish as pe}from"./EnglishVariant.js";import{MarkedLabel as de,heroView as qe}from"./product-hero/hero-view.js";import{HeroOptionLooksProvider as Je,OptionDropdown as Ze,OptionLabel as ue,optionWords as et,useHeroOptionLooks as tt}from"./product-hero/OptionLooks.js";import{DEFAULT_HERO_OPTION_LOOKS as lt}from"../lib/sections/hero-option-looks.js";import{useRootIsDark as at}from"efficient-shell/theme";import{useStockAlertSignup as nt}from"./useStockAlertSignup.js";import{SPARE_WORDS as st,productCartLine as rt}from"../lib/catalog/purchase.js";import{OPTION_ROW_ATTR as D}from"../lib/catalog/store-product.js";import{resolvingRowsAnswered as it}from"../lib/catalog/product-options.js";import{trackViewItem as ot}from"../lib/google-tag.js";import{DEFAULT_HERO_LAYOUT as mt,DEFAULT_HERO_RATIO as ct,DEFAULT_HERO_TEXT_ALIGN as pt,parseHeroLayout as dt,parseHeroRatio as ut,parseHeroTextAlign as ft}from"../lib/sections/hero-arrangement.js";import{MAX_SPARES as ht,UNITS_PER_SET as fe,formatPrice as he,spareAxleOf as bt}from"../lib/commerce.js";import{formatSelectionPrice as be}from"../lib/wheels/price-display.js";import{productIsDually as gt,productIsTwoObjects as xt,setSuppressesRow as vt}from"../lib/wheels/set-mode.js";import{CONTENT_CAP_GUTTER as ge}from"../lib/sections/content-cap-gutter.js";import{STICKY_COLUMNS_CLASS as kt,STICKY_SECTION_ATTR as Tt}from"../lib/sections/hero-sticky.js";import{STAGE_EDGE_ATTR as yt,stageEdgeClass as St,stageEdgeCols as Ot}from"../lib/sections/hero-stage-edge.js";import{useStickyColumns as _t}from"./useStickyColumns.js";import{BLOCK_ALIGN_TEXT as Rt}from"efficient-web-builder/format/lib/content/block-align";import{CardTemplateRows as M}from"efficient-web-builder/render/components/CardRowContext";import{InsideSiteColumn as z}from"efficient-web-builder/render/components/SiteGutterFrame";import{cardRow as Et}from"efficient-web-builder/format/lib/content/card-template";import{optionCardRows as Nt}from"../lib/sections/filter-option-rows.js";import{HERO_OPTION_SLOT as Lt,HERO_TILE_SLOT as wt}from"../lib/content/hero-option-seed.js";import{HERO_BUY_SLOT as At,HERO_QUANTITY_PART as Ct,HERO_SAVE_PART as It}from"../lib/content/hero-buy-seed.js";import{HERO_PART as g}from"../lib/content/hero-seed.js";import $t from"./card-pieces/CardQuantity.js";import Pt from"./card-pieces/CardSave.js";import Ht from"./card-pieces/CardStatedFacts.js";import{HeroStateProvider as Dt}from"./card-pieces/ProductCardState.js";import{PRODUCT_HERO_TYPE as U}from"../lib/document/document-nodes.js";import{withSideOnce as xe}from"efficient-web-builder/format/lib/content/page-width";import{useSideSpaceOnce as Mt}from"efficient-web-builder/render/components/SideSpaceOnce";import{withRootPad as ve}from"efficient-web-builder/render/lib/content/section-own-pads";import{useSplitPads as zt}from"./SectionPadScope.js";const Ut=4e3;function jt(e){return e?[e.year,e.make,e.model,e.modification].join("-"):""}const ke=[{}],Ft=(e,n)=>n===Ct?l($t,{}):n===It?l(Pt,{}):null,Kt="[&>[data-sf-repeat]]:contents [&>[data-sf-repeat]>div]:contents";function Vt({product:e,selection:n,onLightbox:r,editing:s=!1,showVehicleFitment:o=!0,heroLayout:m=mt,imageRatio:c=ct,textAlign:t=pt,showSpecTable:d=!0,stickyColumns:ye=!1,stageToEdge:Se=!1,showBreadcrumb:j=!0,nodeId:_,template:Oe,optionTemplate:_e,optionPressTitles:Re,tileTemplate:Ee,buyTemplate:Ne,optionLooks:F=lt,spareWords:Le}){const K=Mt(),we=pe(),f=dt(m),V=ft(t),T=ut(c),R=ye===!0&&f!=="stacked",S=Se===!0&&f!=="stacked",B=ce(null);_t(B,R);const Ae=S?Ot(T,f==="imageRight"):f==="imageRight"?`${100-T}fr ${T}fr`:`${T}fr ${100-T}fr`,E=S?{gap:"",y:"",yTablet:""}:{gap:"gap-10 ",y:"py-14 ",yTablet:"max-view-tablet:py-8 "},{picked:Ce,pick:W,qty:Y,setQty:Ie,choice:G,setChoice:$e,angleIdx:qt,setAngleIdx:Jt,showValidation:Pe,setShowValidation:N,manualMode:Q,vehicle:L,rows:X,facts:He,part:h,outOfStock:q,offer:w,preOrder:A,canAddToCart:J,currency:x,price:u,set:Z,msrpLabel:De}=n,p=qe(e,n,s),ee=gt(e),Me=xt(e),C=o?p.vehicle:null,ze=o?p.vehicleMemory:null,te=!at({whenUnset:!0}),{warmCatalog:le}=Ge(),O=Qe();me(()=>{!s&&O&&le(e.kind,e.slug)},[s,O,e.kind,e.slug,le]);const ae=X.filter(a=>!A||a.values.length>0),ne=ae.filter(a=>a.role==="resolves"),I=ae.filter(a=>a.role==="describes"&&!vt(Me,a.key)),se=I.findIndex(a=>a.chosen===null),re=(!C||!p.vehicleAnswersSpecs||n.fitmentSet)&&it(X,A)?se===-1?I:I.slice(0,se+1):[],Ue=[...ne,...re];function je(){return J?(N(!1),s?null:rt(e,h,Ce,{choice:G,qty:Y},{fitmentLabel:Q?p.specCaption:L.appliedName?`For ${L.appliedName}`:"",fitmentKey:Q?`manual|${p.specCaption}`:`vehicle|${jt(L.applied?.vehicle)}`})):(N(!0),window.setTimeout(()=>N(!1),Ut),null)}const Fe={kind:"hero",msrpLabel:De||null,amount:be(u,x),unitLabel:u.priced?p.unitLabel:null,packBadge:u.setTotal!=null?`${w.quantityLabel}: ${he(Z,x)}`:null,buy:{isSet:ee,priced:u.priced,outOfStock:q,canAdd:J,totalLabel:u.setTotal!=null?he(Z,x):null,lineToAdd:je},qty:Y,setQty:Ie,takesQty:O&&!(ee&&!u.priced),save:{slug:e.slug,name:e.name},facts:d?He:null,title:{eyebrow:e.eyebrow,name:p.heading,badge:e.badge||null},product:e,selection:n,openLightbox:r,sku:We(h),designCode:e.kind==="alloy-wheel"&&e.source.designCode||null,setLine:Yt(u,Wt(w.quantityLabel,e.kind),x)},$={nodeId:_??"",template:_e,tileTemplate:Ee,pressTitles:Re,editing:s},b=!!(A&&p.preOrder),Ke={[g.fitmentLine]:ze,[g.options]:i(Je,{looks:F,children:[ne.map(a=>l(Te,{row:a,onPick:W,options:$},a.key)),!b&&C,!b&&re.map(a=>l(Te,{row:a,onPick:W,options:$},a.key))]}),[g.facts]:b?null:l(Ht,{}),[g.howMany]:b?null:l(Qt,{offer:w,takesOrders:O,choice:G,setChoice:$e,options:$,spareLook:F.spare,spareWords:Le}),[g.buy]:b?p.preOrder:l(z,{children:l(M,{ownerId:_??"",ownerType:U,slot:At,Template:Ne,rows:ke,fallback:null,hostParts:Ft,children:a=>a})}),[g.notify]:!b&&q&&h?l(Xt,{partNumbers:h.components.map(a=>a.partNumber),productSlug:e.slug},h.id):null,[g.reminder]:!b&&Pe?Be():null},Ve=(a,v)=>Ke[v]??null;function Be(){const a=Ue.filter(H=>H.chosen===null).map(H=>we(H.prompt).replace(/^Select\s+/i,""));if(C&&p.vehicleAnswersSpecs&&!n.fitmentSet&&a.push("vehicle fitment"),a.length===0)return null;const v=a.length===1?a[0]:a.length===2?`${a[0]} and ${a[1]}`:`${a.slice(0,-1).join(", ")}, and ${a.at(-1)}`;return i("p",{role:"alert",className:"-mt-1 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em]",style:{color:"var(--alert)"},children:["Please select ",v," first."]})}const ie=ce(null);me(()=>{s||ie.current===e.slug||(ie.current=e.slug,ot({itemId:h?`${e.slug}|${h.id}`:e.slug,itemName:e.name,variant:p.metaValue,pricePerSet:u.setTotal??u.fromSetTotal??0,currency:x}))},[s,e.slug,e.name,p.metaValue,h,u,x]);const P=zt();return i(y,{children:[j&&l("nav",{...ve(xe(`border-b border-line ${ge} pt-4 pb-4 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]`,K),P?.first?.atTop,te?void 0:{background:"var(--section-bg)"}),children:e.crumbs.map((a,v)=>i("span",{children:[v>0&&i(y,{children:[l("span",{className:"mx-3 text-accent",children:"/"}),l("wbr",{})]}),a.href?l(oe,{href:a.href,className:"hover:text-fg",children:l(de,{text:a.label})}):l("span",{className:"text-fg",children:l(de,{text:a.label})})]},`${a.label}-${v}`))}),l("section",{ref:B,"data-hero-layout":f,"data-hero-align":V,...R?{[Tt]:""}:{},...S?{[yt]:""}:{},...ve([xe(`grid ${E.gap}${ge} ${E.y}max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))] ${E.yTablet}${Kt}`,K),V==="center"?Rt.center:"",f==="stacked"?"grid-cols-1":"[grid-template-columns:var(--hero-cols)] max-view-desktop:[grid-template-columns:minmax(0,1fr)]",R?kt:"",S?St(f==="imageRight"):""].filter(Boolean).join(" "),j?P?.second?.atTop:P?.secondOnly?.atTop,{...te?{}:{background:"var(--section-bg)"},...f==="stacked"?{}:{"--hero-cols":Ae}}),children:l(Dt,{value:Fe,children:l(z,{children:l(M,{ownerId:_??"",ownerType:U,Template:Oe,rows:ke,fallback:null,hostParts:Ve,children:a=>a})})})})]})}const Bt="wheels";function Wt(e,n){return n==="alloy-wheel"&&/\d$/.test(e)?`${e} ${Bt}`:e}function Yt(e,n,r){if(!e.priced)return null;const s=e.setTotal??e.fromSetTotal;return s==null?null:{label:n,total:be({...e,unit:s,isFrom:e.setTotal==null},r)}}const Gt={caps:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.16em]",plain:"font-body text-[length:var(--size-body,13px)]"};function Qt({offer:e,takesOrders:n,choice:r,setChoice:s,options:o,spareLook:m,spareWords:c}){return e.packs.length>0||n&&(e.extra||e.spareCounts.length>0)?i("div",{className:"border-b border-line pb-[26px]",children:[e.packs.length>0&&i(y,{children:[l("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:"How many"}),l("div",{className:"flex flex-wrap gap-1.5",children:l(k,{hero:o,values:e.packs,item:t=>({label:t.label}),picked:t=>r.unit===t.value,press:t=>()=>s(d=>({...d,unit:t.value}))})})]}),n&&e.extra&&i("label",{className:`${e.packs.length>0?"mt-3.5 ":""}flex cursor-pointer items-center gap-3 ${Gt[m]} text-fg`,children:[l("input",{type:"checkbox",checked:r.spares>0,onChange:t=>s(d=>({...d,spares:t.target.checked?ht:0})),className:"h-4 w-4 cursor-pointer accent-[var(--accent)]"}),c?.trim()||e.extra.label]}),n&&e.spareCounts.length>0&&i(y,{children:[l("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:st.howMany}),l("div",{className:"flex flex-col gap-1.5 sm:flex-row sm:flex-wrap",children:l(k,{hero:o,values:e.spareCounts,item:t=>({label:`${t.value} · ${t.label}`}),picked:t=>r.spares===t.value-fe,press:t=>()=>s(d=>({...d,spares:t.value-fe}))})})]}),n&&e.spareSide&&i(y,{children:[l("div",{className:"mb-3.5 mt-[26px] font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:e.spareSide.label}),l("div",{className:"flex flex-wrap gap-1.5",children:l(k,{hero:o,values:e.spareSide.options,item:t=>({label:t.label}),picked:t=>r.spareSide===t.value&&(t.axle===void 0||bt(r)===t.axle),press:t=>()=>s(d=>({...d,spareSide:t.value,...t.axle?{spareAxle:t.axle}:{}}))})})]})]}):null}function Te({row:e,onPick:n,options:r}){const s=pe(),o=tt();if(e.values.length===0&&!e.empty)return null;const m=e.values.find(t=>t.value===e.chosen),c=m&&[m.label,m.note].filter(Boolean).join(" · ");return e.values.length>0&&e.display==="swatch"&&o.finish==="tiles"?i("div",{[D]:e.key,children:[l(ue,{label:s(e.label),chosen:m?.label}),l("div",{className:"flex flex-wrap gap-2","data-option-tiles":"",children:l(k,{hero:r,tiles:!0,values:e.values,item:t=>({swatch:t.swatch??"",name:t.label}),label:t=>t.label,picked:t=>t.value===e.chosen,press:t=>()=>n(e.key,t.value)})})]}):e.values.length>0&&e.display==="pill"&&e.role==="resolves"&&o.size==="dropdown"?i("div",{[D]:e.key,children:[l(ue,{label:s(e.label)}),l(Ze,{rowKey:e.key,label:s(e.label),shown:c||s(e.prompt),items:e.values.map(t=>({value:t.value,label:et(t)})),value:e.chosen??"",onPick:t=>n(e.key,t),editing:r.editing})]}):i("div",{className:"border-b border-line pb-[26px]",[D]:e.key,children:[i("div",{className:"mb-3.5 font-mono text-[length:var(--size-label,13px)] font-semibold uppercase tracking-[0.22em] text-fg",children:[s(e.label)," · ",l("span",{className:"text-accent",children:c??s(e.prompt)})]}),e.values.length===0?i("p",{className:"font-mono text-[length:var(--size-body,12px)] leading-relaxed tracking-[0.1em] text-fg-dim",children:[e.empty.text," ",l(oe,{href:e.empty.href,className:"text-accent hover:underline",children:e.empty.linkText})]}):e.display==="swatch"?l("div",{className:"flex flex-wrap gap-2 [&>*]:max-w-full",children:l(k,{hero:r,values:e.values,item:t=>({swatch:t.swatch??"",name:t.label}),picked:t=>t.value===e.chosen,press:t=>()=>n(e.key,t.value)})}):l("div",{className:"flex flex-wrap gap-1.5",children:l(k,{hero:r,values:e.values,item:t=>({label:t.label,note:t.note??""}),picked:t=>t.value===e.chosen,press:t=>()=>n(e.key,t.value)})})]})}function k({hero:e,values:n,item:r,label:s,picked:o,press:m,tiles:c=!1}){const t=Nt(n,{item:r,selected:o,press:m,label:s});return l(z,{children:l(M,{ownerId:e.nodeId,ownerType:U,slot:c?wt:Lt,Template:c?e.tileTemplate:e.template,rows:t.items.map(Et),items:t.items,states:t.states,actions:e.editing?void 0:t.actions,pressTitles:c?void 0:e.pressTitles,fallback:null,children:d=>d})})}function Xt({partNumbers:e,productSlug:n}){const[r,s]=Ye(""),{status:o,submit:m,reset:c}=nt();function t(){m({partNumbers:e,email:r,productSlug:n})}return o==="sent"?l("p",{className:"-mt-1 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.18em] text-accent",children:"We'll email you when it's back."}):l(Xe,{className:"-mt-1",email:r,onEmailChange:s,status:o,onResetVerdict:c,onSubmit:t,inputAriaLabel:"Email for the back-in-stock alert",submitLabel:"Notify me when back",buttonClassName:"cursor-pointer whitespace-nowrap border-2 border-btn px-4 font-mono text-[length:var(--size-label,11px)] font-bold uppercase tracking-[0.22em] text-btn transition-colors hover:bg-btn hover:text-btn-ink disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-btn",errorMessage:"Couldn't save that — please try again."})}export{Vt as default};
|
|
@@ -20,5 +20,6 @@ export interface SpecTableProps {
|
|
|
20
20
|
footer?: ReactNode;
|
|
21
21
|
diagramElsewhere?: boolean;
|
|
22
22
|
hideEmptyRows?: boolean;
|
|
23
|
+
hideRowLines?: boolean;
|
|
23
24
|
}
|
|
24
|
-
export default function SpecTable({ num, title, description, rows, builtInLabels, diagram, editing, omitHead, nodeId, capped, template, footer, diagramElsewhere, hideEmptyRows, }: SpecTableProps): import("react").JSX.Element;
|
|
25
|
+
export default function SpecTable({ num, title, description, rows, builtInLabels, diagram, editing, omitHead, nodeId, capped, template, footer, diagramElsewhere, hideEmptyRows, hideRowLines, }: SpecTableProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Fragment as
|
|
1
|
+
"use client";import{Fragment as P,jsx as l,jsxs as m}from"react/jsx-runtime";import A from"./SectionBand.js";import{SPEC_TABLE_BAND as y}from"../lib/sections/spec-table-band.js";import I from"efficient-web-builder/render/components/SectionHeader";import{CardTemplateRows as D}from"efficient-web-builder/render/components/CardRowContext";import{renderGold as N,renderHeadline as F}from"efficient-web-builder/render/components/goldPhrases";import M from"./SpecTablePartBridge.js";import O,{specRegion as V}from"./WheelDiagram.js";import{say as S}from"efficient-web-builder/format/lib/editor-words";import{applyShopMark as Y}from"efficient-web-builder/format/lib/markup";import{useEnglish as z}from"./EnglishVariant.js";import{COPY_MARK as T}from"../lib/content/copy-mark.js";import{saysNothing as G}from"../lib/wheels/spec-format.js";const p={between:"[&>*+*]:border-t [&>*+*]:border-line",every:"[&>*]:border-t [&>*]:border-line"},H={labelLarge:"text-[length:var(--size-label,14px)]"},_=V;function K({editing:a,nodeId:n,children:r}){return!a||!n?l(P,{children:r}):l(M,{nodeId:n,children:r})}function f({row:a,topBorder:n,editing:r}){return m("div",{className:`flex items-baseline justify-between gap-6 py-4 font-mono ${H.labelLarge} tracking-[0.05em] ${n?"border-t border-line":""}`,children:[l("span",{..._(r,"rowLabel"),className:"uppercase text-fg-dim",children:a.label}),l("span",{..._(r,"rowValue"),className:`text-right ${a.accent?"text-accent":"text-fg"}`,children:a.value})]})}function W({num:a,title:n,description:r,rows:B,builtInLabels:L=!1,diagram:u,editing:o=!1,omitHead:b=!1,nodeId:g,capped:$=!0,template:E,footer:h,diagramElsewhere:j=!1,hideEmptyRows:k=!1,hideRowLines:v=!1}){const R=z(),x=(B??[]).filter(e=>(e?.label??"").trim()||(e?.value??"").trim()).filter(e=>!k||!G(e.value)).map(e=>L&&e.label?{...e,label:R(e.label)}:e),s=x.length>0?x:o?[{label:S("Label"),value:S("Value")}]:[],C=s.map(e=>({label:e.label??"",value:e.accent&&e.value?Y(e.value,0,e.value.length,"highlight").text:e.value??""})),c=e=>v?T:`${e} ${T}`,d=e=>e&&!v,w=e=>j?l("div",{className:e?c(p.between):void 0,children:e??s.map((i,t)=>l(f,{row:i,topBorder:d(t>0),editing:o},t))}):u?m("div",{className:"grid grid-cols-[1fr_400px] gap-12 max-view-desktop:grid-cols-1",children:[l("div",{className:e?c(p.between):void 0,children:e??s.map((i,t)=>l(f,{row:i,topBorder:d(t>0),editing:o},t))}),l(O,{diagram:u,editing:o,stacked:"legacy"})]}):l("div",{className:`grid grid-cols-2 gap-x-16 max-[900px]:grid-cols-1${e?` ${c(p.every)}`:""}`,children:e??s.map((i,t)=>l(f,{row:i,topBorder:d(!0),editing:o},t))});return l(A,{className:b?y.ownBox:y.inline,capped:$,children:m(K,{editing:o,nodeId:g,children:[b?null:l(I,{num:a?N(a):void 0,title:n?F(n,!1):void 0,description:r?N(r):void 0,accent:!0}),l(D,{ownerId:g??"",ownerType:"SpecTable",Template:E,rows:C,fallback:w(),children:e=>w(e)}),h===void 0?null:l("div",{className:"mt-12 empty:hidden",children:h})]})})}export{W as default};
|
|
@@ -10,6 +10,7 @@ export interface CardProductPictureSettings {
|
|
|
10
10
|
shadow?: unknown;
|
|
11
11
|
shadowColor?: unknown;
|
|
12
12
|
shadowOn?: unknown;
|
|
13
|
+
hoverZoom?: unknown;
|
|
13
14
|
}
|
|
14
15
|
export declare const SHADOW_ON: readonly [{
|
|
15
16
|
readonly label: "Auto";
|
|
@@ -23,4 +24,5 @@ export declare const shadowOnOf: (v: unknown) => ShadowOn;
|
|
|
23
24
|
export declare const PICTURE_FRAMES: readonly ["well", "full"];
|
|
24
25
|
export type PictureFrame = (typeof PICTURE_FRAMES)[number];
|
|
25
26
|
export declare const DEFAULT_PICTURE_FRAME: PictureFrame;
|
|
27
|
+
export declare const WHEEL_ZOOM_CLASS = "transition-transform duration-(--page-motion-hover-duration) ease-(--page-ease-media) motion-safe:group-hover:scale-(--sf-photo-zoom)";
|
|
26
28
|
export default function CardProductPicture(settings: CardProductPictureSettings): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as i,Fragment as C}from"react/jsx-runtime";import{parseOption as Z}from"efficient-shell/format";import I from"next/image";import{useState as te}from"react";import{HideTaker as A}from"efficient-web-builder/render/components/ViewHideRoot";import{CARD_INDEX_BADGE_CLASS as R,CARD_INDEX_CLASS as $,parseCardIndexFormat as G}from"efficient-web-builder/format/lib/sections/product-card-style";import{CARD_IMAGE_BG_OFF as oe,cardImageBackgroundPaints as X,resolveCardImageBackground as ne}from"efficient-web-builder/format/lib/content/card-image-background";import{cardImageShapeTokens as E}from"efficient-web-builder/format/lib/content/card-image-shape";import{BOX_SWATCH_PROP as se,boxSwatchFill as ie}from"efficient-web-builder/format/lib/content/box-background";import{useCardRow as ce}from"efficient-web-builder/render/components/CardRowContext";import{pictureShadowFilter as me}from"efficient-easel/screen/lib/document/shadow-values";import{PICTURE_HOVER_KEYS as de,pictureHoverZoomOf as ue}from"efficient-web-builder/format/lib/animation/hover";import{PICTURE_ZOOM_VAR as fe}from"efficient-web-builder/format/lib/content/image-treatment";import{sayCount as he}from"efficient-web-builder/format/lib/editor-words";import{coverSrcForWheel as ge,parseCoverIndex as pe,resolvePaintedSrc as be}from"../../lib/wheels/cover-rendering.js";import we from"../WheelPlaceholder.js";import Se from"../BrandPlate.js";import ve from"../TyreImage.js";import{cardSpinOf as Ce}from"../card-spin.js";import{useCardHoverLayer as ye,useGridCard as B}from"../GridCardTemplate.js";import j from"./CardPicture.js";import T from"./CardProductBadge.js";import{useHeldCardPicture as xe}from"./useHeldCardPicture.js";import{useProductCardState as _e}from"./ProductCardState.js";import{blockParts as ke}from"../../lib/block-parts.js";const o=ke("ProductCard"),Fe=[{label:"Auto",value:"auto"},{label:"Always",value:"always"}],Pe=a=>Z(Fe.map(r=>r.value),"auto",a),Ne=["well","full"],Ae="well",H=a=>Z(Ne,Ae,a);function Ee({children:a}){return e("div",{className:"h-full w-full transition-transform duration-500 motion-safe:group-hover:scale-[1.03]",children:a})}const K="transition-transform duration-(--page-motion-hover-duration) ease-(--page-ease-media) motion-safe:group-hover:scale-(--sf-photo-zoom)";function V({zoom:a,image:r,layer:l,imageClass:n}){return i("div",{className:"contents",style:{[fe]:a},children:[e("div",{className:`${n} ${K}`,children:r}),l?e("div",{className:`pointer-events-none absolute inset-0 z-20 ${K}`,children:l}):null]})}function D({fill:a,badge:r,children:l}){const n=X(a);return i("div",{className:`sf-card-image relative aspect-[4/3] overflow-hidden${n?"":" bg-surface"}`,style:n?{backgroundColor:a}:void 0,...o("image-frame"),children:[l,r]})}function L(a,r){const l=ce();return ie({[se]:a},l?.row)??ne(r,oe)}function ze(a){const r=_e();return r.kind==="bundle"?e(Oe,{state:r,...a}):r.kind==="tyre"?e(Ie,{state:r,...a}):r.kind!=="wheel"?null:e(Re,{state:r,...a})}function Oe({state:a,imageBackground:r,cardImage:l,showBadge:n,frame:w,swatch:h}){const{bundle:t}=a,{imageSizes:g}=B(),c=H(w)==="full",p=t.components.length,b=t.image?c?e(I,{alt:t.name,src:t.image,fill:!0,sizes:g,className:"object-cover",draggable:!1,...o("image")}):e(I,{alt:t.name,src:t.image,width:1e3,height:1e3,sizes:g,className:"block h-full w-full object-cover",draggable:!1,...o("image")}):e("div",{className:"flex h-full w-full items-center justify-center font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-fg-dim",children:he("{n} piece","{n} pieces",p,{})}),u=e(Ee,{children:b}),f=L(h,r),m=n!==!1?e(T,{edge:c}):null;return e(A,{style:E(l),...o("image-block"),children:c?e(D,{fill:f,badge:m,children:u}):i(C,{children:[m,e(j,{image:u,imageBackgroundFill:f})]})})}function Ie({state:a,imageBackground:r,cardImage:l,indexBadge:n,frame:w,swatch:h}){const{tyre:t}=a,{imageSizes:g}=B(),c=L(h,r),p=G(n),b=p!=="off"?e("span",{"aria-hidden":!0,"data-format":p,className:`${$} ${R}`,...o("card-number")}):null,u=e(ve,{image:t.image,className:"h-full w-full",sizes:g,showBackground:!1}),f=e(Se,{brand:t.brand,logo:t.brandLogo});return e(A,{style:E(l),...o("image-block"),children:H(w)==="full"?i(D,{fill:c,badge:b,children:[u,f]}):i(C,{children:[b,e(j,{image:u,imageBackgroundFill:c,plate:f})]})})}function Re({state:a,imageBackground:r,cardImage:l,coverIndex:n,indexBadge:w,showBadge:h,setFlags:t,frame:g,swatch:c,shadow:p,shadowColor:b,shadowOn:u,hoverZoom:f}){const{wheel:m,sel:d}=a,{hover:Y,imageSizes:W,fit:q,rules:y}=B(),x=Ce(Y),J=ge(m,pe(n),d.finish?.name,d.shownSrc,q?.holes),[M,Q]=te(()=>new Set),U=s=>{d.pictureFailed(s),Q(v=>v.has(s)?v:new Set(v).add(s))},ee=be({overrideSrc:J,hookSrc:d.shownSrc,failed:M}),z=m.rendersHaveAlpha===!0||Pe(u)==="always"?me(p,b):null,ae=z?{...x.style,filter:z}:x.style,re=(s,v)=>e(I,{alt:v,src:s,width:1e3,height:1e3,sizes:W,className:`block h-full w-full object-contain ${x.className}`,style:ae,draggable:!1,onError:()=>U(s),...o("image")},s),le=d.finish?`${m.name} — ${d.finish.name}`:m.name,_=xe({src:ee,alt:le,sizes:W,failed:M,onFailed:U,near:d.nearScreen,holdEmpty:d.awaitingProbe}),k=i(C,{children:[_.src?re(_.src,_.alt):e(we,{imageLabel:m.name,spin:x}),_.trial]}),O=G(w),F=O!=="off",P=L(c,r),N=ye("picture",X(P)?P:void 0),S=ue({[de.zoom]:f});if(H(g)==="full"){const s=i(C,{children:[F?e("span",{"aria-hidden":!0,"data-format":O,className:`${$} ${R}`,...o("card-number")}):null,e(T,{show:h!==!1,numbered:F,sale:y.sale,axleSets:y.axleSets,setFlags:t!==!1,edge:!0})]});return e(A,{style:E(l),...o("image-block"),children:e(D,{fill:P,badge:s,children:S?e(V,{zoom:S,image:e("div",{className:"flex h-full w-full items-center justify-center",children:k}),layer:N,imageClass:"h-full w-full"}):i(C,{children:[e("div",{className:"flex h-full w-full items-center justify-center",children:k}),N]})})})}return i(A,{style:E(l),...o("image-block"),children:[F?e("span",{"aria-hidden":!0,"data-format":O,className:`${$} ${R}`,...o("card-number")}):null,e(T,{show:h!==!1,numbered:F,sale:y.sale,axleSets:y.axleSets,setFlags:t!==!1}),e(j,{image:S?e(V,{zoom:S,image:k,layer:N,imageClass:"h-full w-full"}):k,imageBackgroundFill:P,plate:S?null:N,shadowed:!!z})]})}export{Ae as DEFAULT_PICTURE_FRAME,Ne as PICTURE_FRAMES,Fe as SHADOW_ON,K as WHEEL_ZOOM_CLASS,ze as default,Pe as shadowOnOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as a}from"react/jsx-runtime";import
|
|
1
|
+
"use client";import{jsx as a}from"react/jsx-runtime";import w from"../SpecTable.js";import x from"./KindGate.js";import{DynamicEuTyreLabelBlock as D}from"./DynamicEuTyreLabel.js";import{wheelSheetOf as I}from"../../lib/wheels/wheel-sheet.js";import{buildTyreSpecSheet as L}from"../../lib/tyres/spec-sheet.js";import{dropSpecRows as R}from"../../lib/wheels/spec-sheet.js";import{useCurrentProduct as _}from"../../lib/document/current-product.js";import{NO_FIELD_ANSWERS as N,applySpecAnswers as y}from"../../lib/content/field-usage.js";import{useSampleProduct as O}from"./useSampleProduct.js";const k=["alloy-wheel","tyre"];function v(r,n,o){const s=r.variants??[];return(n?s.find(e=>e.sku===n):void 0)??(o?s.find(e=>e.size===o):void 0)??s[0]??null}const j=[];function A(r){return a(x,{kinds:k,type:"SpecTable",editing:r.editing,children:a(B,{...r})})}function B({num:r,title:n,description:o,showDiagram:s=!0,editing:e=!1,nodeId:d,omitHead:i=!1,template:p,showEuLabel:S=!1,hideRows:h=j,hideEmptyRows:u=!1,hideRowLines:f=!1}){const t=_(),g=O(e&&!t),l=t?.product??g,c=l?.kind==="tyre"?l.source:null,m=t?.fieldUsage??N;if(c){const E=v(c,t?.selection.part?.id,t?.selection.shown.size),T=L({brand:c.brand,variant:E});return a(w,{capped:!1,builtInLabels:!0,num:r,title:n,description:o,rows:y(T.rows,m),diagram:null,editing:e,nodeId:d,omitHead:i,template:p,hideEmptyRows:u,hideRowLines:f,footer:S&&!i?a(D,{editing:e}):void 0})}const b=I(t,l);return a(w,{capped:!1,builtInLabels:!0,num:r,title:n,description:o,rows:R(y(b.rows,m),h),diagram:s&&!i?b.diagram:null,diagramElsewhere:i,editing:e,nodeId:d,omitHead:i,template:p,hideEmptyRows:u,hideRowLines:f})}export{A as default,k as supportedKinds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{SITE_WIDTH_CAP as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{SITE_WIDTH_CAP as D}from"efficient-web-builder/format/lib/content/page-width";import{resolveWidth as A}from"efficient-web-builder/format/lib/content/section-width";import S from"../../../../../components/LinkedProductHero.js";import a from"../../../../../components/pdp-dynamic/DynamicProductHero.js";import C from"../../../../../components/SectionNotice.js";import{HERO_OPTION_SLOT as n,HERO_TILE_SLOT as d}from"../../../../content/hero-option-seed.js";import{HERO_BUY_SLOT as f}from"../../../../content/hero-buy-seed.js";import{cardPressTitlesOf as w}from"efficient-web-builder/render/lib/document/card-press-titles";import{useCurrentProduct as I}from"../../../current-product.js";import{LINKED_HERO_RECORD_PROP as U,matchingLinkedRecord as b}from"../../../linked-hero-hydrate.js";import{isEditorOnDynamicPage as x}from"efficient-web-builder/format/lib/document/editor-page-context";import{DEFAULT_HERO_LAYOUT as N,DEFAULT_HERO_RATIO as F,DEFAULT_HERO_TEXT_ALIGN as W,parseHeroLayout as p,parseHeroRatio as B,parseHeroTextAlign as V}from"../../../../sections/hero-arrangement.js";import{HERO_SPARE_WORDS_PROP as Y,parseHeroOptionLooks as j}from"../../../../sections/hero-option-looks.js";import{hidableText as v}from"efficient-easel/screen/lib/document/hidable";import{say as z}from"efficient-web-builder/format/lib/editor-words";import{ProductHeroMeta as G}from"./meta.js";import{HideTaker as K}from"efficient-web-builder/render/components/ViewHideRoot";import{SplitPadScope as M}from"../../../../../components/SectionPadScope.js";import{PRODUCT_HERO_TYPE as X}from"../../../document-nodes.js";import{splitPads as q}from"../../../pads-itself.js";import{PRODUCT_HERO_INNER as J,PRODUCT_HERO_OWN as Q}from"../../../../content/block-own-pads.js";function Z({source:e,editing:t=!1,showVehicleFitment:o=!0,heroLayout:u=N,imageRatio:l=F,textAlign:c=W,showSpecTable:s=!0,stickyColumns:T=!1,stageToEdge:O=!1,showBreadcrumb:R=!0,nodeId:_,template:E,optionTemplate:h,optionPressTitles:P,tileTemplate:H,buyTemplate:g,optionLooks:L,spareWords:y,linkedRecord:k}){const r={heroLayout:u,imageRatio:l,textAlign:c,showSpecTable:s,stickyColumns:T,stageToEdge:O,showBreadcrumb:R,nodeId:_,template:E,optionTemplate:h,optionPressTitles:P,tileTemplate:H,buyTemplate:g,optionLooks:L,spareWords:y};if(I()||t&&x())return i(a,{editing:t,showVehicleFitment:o,...r});if(e?.slug){const m=e.kind??"wheel";return i(S,{slug:e.slug,kind:m,initialRecord:b(k,m,e.slug),editing:t,showVehicleFitment:o,...r})}return t?i(C,{size:"tall",children:z("Pick a product in the panel to fill this hero.")}):i(a,{showVehicleFitment:o,...r})}function $(e,t){return A(e,"full").mode!=="page"?t:i(K,{as:"div",style:{"--sf-content-cap":D},children:t})}const Le={...G,render:e=>$(e,i(M,{pads:q(X,e,{both:Q},J),children:i(Z,{source:e.source,editing:e.editor?.isEditing,showVehicleFitment:e.showVehicleFitment??!0,heroLayout:p(e.heroLayout),imageRatio:B(e.imageRatio),textAlign:V(e.textAlign),showSpecTable:e.showSpecTable??!0,stickyColumns:e.stickyColumns===!0,stageToEdge:e.stageToEdge===!0,showBreadcrumb:e.showBreadcrumb!==!1,nodeId:typeof e.id=="string"?e.id:void 0,template:typeof e.template=="function"?e.template:void 0,optionTemplate:typeof e[n]=="function"?e[n]:void 0,optionPressTitles:w(e,n),tileTemplate:typeof e[d]=="function"?e[d]:void 0,buyTemplate:typeof e[f]=="function"?e[f]:void 0,optionLooks:j(e),spareWords:v(e[Y]),linkedRecord:e[U]})}))};export{Le as ProductHeroRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import o from"../../../../../components/card-pieces/CardProductPicture.js";import
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import o from"../../../../../components/card-pieces/CardProductPicture.js";import r from"../../../../../components/card-pieces/HostPart.js";import{ProductPictureMeta as d}from"./meta.js";const n={...d,render:e=>a(r,{label:d.label??"",editing:!!e.editor?.isEditing,children:a(o,{imageBackground:e.imageBackground,cardImage:e.cardImage,coverIndex:e.coverIndex,indexBadge:e.indexBadge,showBadge:e.showBadge,setFlags:e.setFlags,frame:e.frame,swatch:e.swatch,shadow:e.shadow,shadowColor:e.shadowColor,shadowOn:e.shadowOn,hoverZoom:e.hoverZoom})})};export{n as ProductPictureRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import y from"../../../../../components/pdp-dynamic/DynamicSpecTable.js";import R from"../../../../../components/SpecTable.js";import{buildSpecSheet as E,buildLegacySpecSheet as L,dropSpecRows as g,hiddenSpecRows as o,hidesEmptySpecRows as S,hidesSpecRowLines as b}from"../../../../wheels/spec-sheet.js";import{parseSectionHeadPlacement as T}from"efficient-web-builder/format/lib/sections/section-head-placement";import{phHide as n}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{SpecTableMeta as x,SPECTABLE_PH as d}from"./meta.js";import{padsItself as D}from"../../../pads-itself.js";const A=D("SpecTable",{...x,render:e=>{const m=T(e.headPlacement)==="own-box",t=i=>m?void 0:i;if(e.dynamic)return r(y,{nodeId:typeof e.id=="string"?e.id:void 0,num:t(n(e.num,d.num,e.editor)),title:t(n(e.title,d.title,e.editor)),description:t(n(e.description,d.description,e.editor)),showDiagram:e.showDiagram!==!1,omitHead:m,editing:e.editor?.isEditing,template:e.template,showEuLabel:e.showEuLabel===!0,hideRows:o(e),hideEmptyRows:S(e),hideRowLines:b(e)});const a=e.source??null,s=e.wheel,f=!a?.slug&&typeof s=="string"?s:"",h=typeof e.finish=="string"?e.finish:"",u=typeof e.size=="string"?e.size:"";let l,w=!0,c=null;if(a?.slug&&a.spec){const i=E(a,h,u);l=g(i.rows,o(e)),c=e.showDiagram===!1?null:i.diagram}else if(f){const i=L(f,h,u);l=g(i.rows,o(e)),c=e.showDiagram===!1?null:i.diagram}else l=e.rows??[],w=!1;return r(R,{capped:!1,nodeId:typeof e.id=="string"?e.id:void 0,num:t(n(e.num,d.num,e.editor)),title:t(n(e.title,d.title,e.editor)),description:t(n(e.description,d.description,e.editor)),rows:l,builtInLabels:w,diagram:c,omitHead:m,editing:e.editor?.isEditing,template:e.template,hideEmptyRows:S(e),hideRowLines:b(e)})}});export{A as SpecTableRender};
|
|
@@ -22,6 +22,17 @@ export declare const HERO_PICKER_LOOK_OPTIONS: readonly [{
|
|
|
22
22
|
readonly value: "oneRow";
|
|
23
23
|
readonly label: "One row";
|
|
24
24
|
}];
|
|
25
|
+
export declare const HERO_SPARE_LOOK_PROP = "spareLook";
|
|
26
|
+
export declare const HERO_SPARE_LOOK_OPTIONS: readonly [{
|
|
27
|
+
readonly value: "caps";
|
|
28
|
+
readonly label: "Spaced capitals";
|
|
29
|
+
}, {
|
|
30
|
+
readonly value: "plain";
|
|
31
|
+
readonly label: "Plain";
|
|
32
|
+
}];
|
|
33
|
+
export type HeroSpareLook = (typeof HERO_SPARE_LOOK_OPTIONS)[number]["value"];
|
|
34
|
+
export declare const DEFAULT_HERO_SPARE_LOOK: HeroSpareLook;
|
|
35
|
+
export declare const HERO_SPARE_WORDS_PROP = "spareWords";
|
|
25
36
|
export type HeroFinishLook = (typeof HERO_FINISH_LOOK_OPTIONS)[number]["value"];
|
|
26
37
|
export type HeroSizeLook = (typeof HERO_SIZE_LOOK_OPTIONS)[number]["value"];
|
|
27
38
|
export type HeroPickerLook = (typeof HERO_PICKER_LOOK_OPTIONS)[number]["value"];
|
|
@@ -32,6 +43,7 @@ export interface HeroOptionLooks {
|
|
|
32
43
|
finish: HeroFinishLook;
|
|
33
44
|
size: HeroSizeLook;
|
|
34
45
|
picker: HeroPickerLook;
|
|
46
|
+
spare: HeroSpareLook;
|
|
35
47
|
}
|
|
36
48
|
export declare const DEFAULT_HERO_OPTION_LOOKS: HeroOptionLooks;
|
|
37
49
|
export declare function parseHeroOptionLooks(props: Record<string, unknown>): HeroOptionLooks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parseOption as
|
|
1
|
+
import{parseOption as o}from"efficient-shell/format";const l="finishLook",n="sizeLook",p="pickerLook",r=[{value:"chips",label:"Chips"},{value:"tiles",label:"Tiles"}],a=[{value:"buttons",label:"Buttons"},{value:"dropdown",label:"Dropdown"}],E=[{value:"cells",label:"Four cells"},{value:"oneRow",label:"One row"}],R="spareLook",c=[{value:"caps",label:"Spaced capitals"},{value:"plain",label:"Plain"}],e="caps",L="spareWords",t="chips",_="buttons",s="cells",P={finish:t,size:_,picker:s,spare:e};function H(O){return{finish:o(r,t,O[l]),size:o(a,_,O[n]),picker:o(E,s,O[p]),spare:o(c,e,O[R])}}export{t as DEFAULT_HERO_FINISH_LOOK,P as DEFAULT_HERO_OPTION_LOOKS,s as DEFAULT_HERO_PICKER_LOOK,_ as DEFAULT_HERO_SIZE_LOOK,e as DEFAULT_HERO_SPARE_LOOK,r as HERO_FINISH_LOOK_OPTIONS,l as HERO_FINISH_LOOK_PROP,E as HERO_PICKER_LOOK_OPTIONS,p as HERO_PICKER_LOOK_PROP,a as HERO_SIZE_LOOK_OPTIONS,n as HERO_SIZE_LOOK_PROP,c as HERO_SPARE_LOOK_OPTIONS,R as HERO_SPARE_LOOK_PROP,L as HERO_SPARE_WORDS_PROP,H as parseHeroOptionLooks};
|
|
@@ -26,6 +26,12 @@ export declare const SPEC_EMPTY_ROWS: {
|
|
|
26
26
|
readonly label: "Empty rows";
|
|
27
27
|
readonly prop: "showEmptyRows";
|
|
28
28
|
};
|
|
29
|
+
export declare const SPEC_ROW_LINES: {
|
|
30
|
+
readonly id: "lines";
|
|
31
|
+
readonly label: "Row lines";
|
|
32
|
+
readonly prop: "showRowLines";
|
|
33
|
+
};
|
|
34
|
+
export declare const hidesSpecRowLines: (props: Record<string, unknown>) => boolean;
|
|
29
35
|
export declare const hidesEmptySpecRows: (props: Record<string, unknown>) => boolean;
|
|
30
36
|
export declare function dropSpecRows<T extends {
|
|
31
37
|
own?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getWheelBySlug as w}from"./wheels.js";import{getWheelSpec as R}from"./wheel-specs.js";import{getFitments as y}from"./fitments.js";import{COLLECTION_FIELD_KEY as
|
|
1
|
+
import{getWheelBySlug as w}from"./wheels.js";import{getWheelSpec as R}from"./wheel-specs.js";import{getFitments as y}from"./fitments.js";import{COLLECTION_FIELD_KEY as x}from"../content/field-usage.js";import{parseBoltPattern as L,splitBoltPattern as _}from"./plp-fitment-match.js";import{etRangeLabel as v,trimDecimal as P}from"./spec-format.js";import{variantSpecLabel as E}from"./variant-spec.js";import{findVariant as C}from"./variants.js";import{lugDigits as f}from"./lug-count.js";const K=[{id:"selection",label:"Your Selection",prop:"showSelectionRow"},{id:"size",label:"Size",prop:"showSizeRow"},{id:"wheelSpec",label:"Wheel Spec",prop:"showWheelSpecRow"}];function j(e){return K.filter(n=>e[n.prop]===!1).map(n=>n.id)}const B={id:"empty",label:"Empty rows",prop:"showEmptyRows"},W={id:"lines",label:"Row lines",prop:"showRowLines"},H=e=>e[W.prop]===!1,V=e=>e[B.prop]===!1;function q(e,n){return n.length?e.filter(l=>!l.own||!n.includes(l.own)):e}function c(e){return e&&e.trim()?e:"—"}function h(e){return _(e[0]).circleText||"—"}function g(e,n,l,t,o){const i=L(o?.boltPattern).holes,s=i!=null&&i>0?i:e.lugs,p=f(s),r=e.pcds.length?e.pcds.join(" · "):"—",a=e.centreBores.length?`${e.centreBores.join(" / ")} mm`:"—",m=e.etRange.length>=2?v(e.etRange[0],e.etRange[1]):"—",d=t??"",b=o?E(o):"—";return{rows:[{label:"Your Selection",value:"—",accent:!0,own:"selection"},{label:"Finish",value:l,fieldKey:"wheel_finish_ref"},{label:"Size",value:d,own:"size"},{label:"Wheel Spec",value:b,own:"wheelSpec"},{label:"Lug Count",value:c(p&&`${p}-lug`),fieldKey:"holes"},{label:"Bolt Pattern",value:r,fieldKey:"bolt_pattern"},{label:"Offset (ET)",value:m,fieldKey:"et"},{label:"Process",value:c(n),fieldKey:x},{label:"Centre Bore",value:a,fieldKey:"center_bore"},{label:"Load Rating",value:c(e.loadRating),fieldKey:"load_rating"},{label:"Bump Profile",value:c(e.bumpProfile),fieldKey:"hump"},{label:"Rim Profile",value:c(e.rimProfile),fieldKey:"flange"},{label:"Cap Code",value:c(e.cap),fieldKey:"cap_code"}],size:d}}function u(e){return e.length?e[Math.ceil(e.length/2)-1]:void 0}function z(e,n){const l=e?.diameter??u(n?.sizes??[]),t=e?.width??u(n?.widths??[]),o=n?.etRange??[],[i,s]=o,p=e?.et??(o.length>=2&&i===s?i:void 0),r=a=>c(a!=null?P(a):void 0);return{diameter:r(l),width:r(t),offset:r(p)}}function S(e,n){const l=e?.centreBore??u(n.centreBores);return{...z(e,n),bore:c(l!=null?`${l} mm`:void 0)}}function A(e){return{slug:e.slug,name:e.name,process:e.process,spokes:e.spokes,mesh:e.mesh,spec:e.spec??null,finishes:e.finishes.map(n=>({name:n.name,image:n.src||n.angles?.[0]||null})),coverImage:e.coverImage??null,variants:e.variants}}function G(e,n,l){const t=e?.spec;if(!e||!t)return{rows:[],diagram:null};const o=e.finishes.find(m=>m.name===n)??e.finishes[0],i=C(e.variants??[],o?.name,l),{rows:s,size:p}=g(t,e.process,o?.name??"—",l,i),r=S(i,t),a={wheelName:e.name,imageSrc:o?.image??e.coverImage??null,...r,holes:f(t.lugs),pcd:h(t.pcds),spokes:e.spokes,mesh:e.mesh};return{rows:s,diagram:a}}function J(e,n,l){const t=w(e),o=R(e);if(!t||!o)return{rows:[],diagram:null};const i=y(e),s=t.finishes.find(d=>d.name===n)??t.finishes[0],{rows:p,size:r}=g(o,t.process,s?.name??"—",l,void 0),a=S(void 0,o),m={wheelName:t.name,imageSrc:s?.angles?.[0]??s?.src??null,...a,holes:i[0]?.holes?.toString()??f(o.lugs),pcd:i[0]?.pcd??h(o.pcds),spokes:t.spokes,mesh:t.mesh};return{rows:p,diagram:m}}export{B as SPEC_EMPTY_ROWS,K as SPEC_OWN_ROWS,W as SPEC_ROW_LINES,J as buildLegacySpecSheet,G as buildSpecSheet,z as dimensionCallouts,q as dropSpecRows,j as hiddenSpecRows,V as hidesEmptySpecRows,H as hidesSpecRowLines,A as sourceFromWheel};
|