efficient-storefront-blocks 0.97.0 → 0.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/chunks/EditorPreviewCheckout-J76THKIJ.js +4 -0
  3. package/dist/chunks/{SiteEditorProvider-VZUU5OPZ.js → SiteEditorProvider-YAIB64UV.js} +1 -1
  4. package/dist/chunks/chunk-B2IYTOE3.js +1 -0
  5. package/dist/chunks/chunk-EIBYUCDE.js +1 -0
  6. package/dist/chunks/chunk-GOVYQQA4.js +1 -0
  7. package/dist/chunks/chunk-KRMWJLBM.js +412 -0
  8. package/dist/chunks/{fitment-data-MCGKHSA4.js → fitment-data-OUHMES66.js} +1 -1
  9. package/dist/consent.js +1 -1
  10. package/dist/contract.js +11 -3
  11. package/dist/editor/components/EditorPreviewCheckout.js +1 -1
  12. package/dist/editor/components/GalleryShowcaseSource.js +1 -1
  13. package/dist/editor/components/HeaderSettingsPanel.js +1 -1
  14. package/dist/editor/lib/document/blocks/commerce/Collections/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/commerce/SearchBlock/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/commerce/WheelDiagram/fields.d.ts +2 -0
  18. package/dist/editor/lib/document/blocks/commerce/WheelDiagram/fields.js +1 -0
  19. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  20. package/dist/editor/lib/document/blocks/commerce/index.js +1 -1
  21. package/dist/editor/lib/document/blocks/service/BookingBox/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/service/ContactCards/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/service/SiteHeader/fields.js +1 -1
  24. package/dist/editor/lib/document/blocks/service/SubmitBox/fields.js +1 -1
  25. package/dist/editor/lib/document/box-header-for-site.d.ts +5 -0
  26. package/dist/editor/lib/document/box-header-for-site.js +1 -1
  27. package/dist/editor/lib/document/box-header.d.ts +2 -0
  28. package/dist/editor/lib/document/box-header.js +1 -1
  29. package/dist/editor/lib/document/config.d.ts +1 -0
  30. package/dist/editor/lib/document/config.js +1 -1
  31. package/dist/editor/lib/document/popup-look-fields.d.ts +1 -0
  32. package/dist/editor/lib/document/popup-look-fields.js +1 -1
  33. package/dist/editor/lib/document/text-kind-style-rows.d.ts +5 -0
  34. package/dist/editor/lib/document/text-kind-style-rows.js +1 -0
  35. package/dist/editor/lib/efficient-block-sources.js +1 -1
  36. package/dist/editor/lib/header-settings-source.js +1 -1
  37. package/dist/editor/lib/storefront-editor-words.d.ts +6 -3
  38. package/dist/editor/lib/storefront-editor-words.js +1 -1
  39. package/dist/editor.css +1 -1
  40. package/dist/index.d.ts +12 -1
  41. package/dist/index.js +212 -44
  42. package/dist/links.js +1 -1
  43. package/dist/render/app/globals.css +136 -12
  44. package/dist/render/built-with.json +1 -1
  45. package/dist/render/components/BundleCard.js +1 -1
  46. package/dist/render/components/CatalogFilterBarSection.js +1 -1
  47. package/dist/render/components/ChatWidget.js +1 -1
  48. package/dist/render/components/CollectionCard.d.ts +3 -0
  49. package/dist/render/components/CollectionCard.js +1 -1
  50. package/dist/render/components/Collections.d.ts +2 -1
  51. package/dist/render/components/Collections.js +1 -1
  52. package/dist/render/components/CompatibleTyres.js +1 -1
  53. package/dist/render/components/CountrySelect.js +1 -1
  54. package/dist/render/components/CurrencyContext.d.ts +3 -0
  55. package/dist/render/components/CurrencyContext.js +1 -1
  56. package/dist/render/components/FooterGroup.js +1 -1
  57. package/dist/render/components/FooterLogo.js +1 -1
  58. package/dist/render/components/FooterMenu.d.ts +5 -3
  59. package/dist/render/components/FooterMenu.js +1 -1
  60. package/dist/render/components/FooterPayment.js +1 -1
  61. package/dist/render/components/FooterSection.js +1 -1
  62. package/dist/render/components/FooterSocial.js +1 -1
  63. package/dist/render/components/FooterText.js +1 -1
  64. package/dist/render/components/FormBlock.d.ts +4 -1
  65. package/dist/render/components/FormBlock.js +1 -1
  66. package/dist/render/components/Header.js +1 -1
  67. package/dist/render/components/HeaderToolBlocks.d.ts +4 -2
  68. package/dist/render/components/HeaderToolBlocks.js +1 -1
  69. package/dist/render/components/HeaderTools.d.ts +7 -2
  70. package/dist/render/components/HeaderTools.js +1 -1
  71. package/dist/render/components/PhoneSheet.d.ts +16 -0
  72. package/dist/render/components/PhoneSheet.js +1 -0
  73. package/dist/render/components/PreOrderPanel.js +1 -1
  74. package/dist/render/components/ProductGridSection.js +1 -1
  75. package/dist/render/components/ProductRef.js +1 -1
  76. package/dist/render/components/SectionGroupBody.d.ts +2 -1
  77. package/dist/render/components/SectionGroupBody.js +1 -1
  78. package/dist/render/components/SpecTable.d.ts +2 -1
  79. package/dist/render/components/SpecTable.js +1 -1
  80. package/dist/render/components/Subscribe.d.ts +1 -0
  81. package/dist/render/components/Subscribe.js +1 -1
  82. package/dist/render/components/WheelCardFrame.js +1 -1
  83. package/dist/render/components/WheelDiagram.d.ts +16 -0
  84. package/dist/render/components/WheelDiagram.js +1 -0
  85. package/dist/render/components/card-pieces/CardName.js +1 -1
  86. package/dist/render/components/card-pieces/CardPrice.js +1 -1
  87. package/dist/render/components/card-pieces/CardSurfaceFrame.d.ts +1 -1
  88. package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
  89. package/dist/render/components/card-pieces/ProductCardState.js +1 -1
  90. package/dist/render/components/catalog/CatalogFilterBar.d.ts +5 -1
  91. package/dist/render/components/catalog/CatalogFilterBar.js +1 -1
  92. package/dist/render/components/catalog/CatalogFilterContext.d.ts +2 -0
  93. package/dist/render/components/catalog/CatalogFilterContext.js +1 -1
  94. package/dist/render/components/catalog/FilterPill.js +1 -1
  95. package/dist/render/components/catalog/PriceRange.d.ts +6 -1
  96. package/dist/render/components/catalog/PriceRange.js +1 -1
  97. package/dist/render/components/catalog/ShopperFilters.js +1 -1
  98. package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
  99. package/dist/render/components/checkout/checkout-parts.js +1 -1
  100. package/dist/render/components/checkout/checkout-state.d.ts +5 -0
  101. package/dist/render/components/checkout/checkout-state.js +3 -3
  102. package/dist/render/components/fitment/PickerField.js +1 -1
  103. package/dist/render/components/formSubmission.d.ts +4 -2
  104. package/dist/render/components/formSubmission.js +1 -1
  105. package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
  106. package/dist/render/components/pdp-dynamic/DynamicWheelDiagram.d.ts +6 -0
  107. package/dist/render/components/pdp-dynamic/DynamicWheelDiagram.js +1 -0
  108. package/dist/render/components/pdp-dynamic/KindGate.d.ts +2 -1
  109. package/dist/render/components/pdp-dynamic/KindGate.js +1 -1
  110. package/dist/render/components/submit/SubmitRegions.js +1 -1
  111. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  112. package/dist/render/components/wheels-plp/PlpActiveChips.d.ts +2 -1
  113. package/dist/render/components/wheels-plp/PlpActiveChips.js +1 -1
  114. package/dist/render/components/wheels-plp/PlpSidebar.d.ts +15 -7
  115. package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
  116. package/dist/render/components/wheels-plp/useVehicleCatalog.d.ts +6 -1
  117. package/dist/render/components/wheels-plp/useVehicleCatalog.js +1 -1
  118. package/dist/render/lib/api/index.d.ts +4 -1
  119. package/dist/render/lib/api/index.js +1 -1
  120. package/dist/render/lib/booking/text-kinds.js +1 -1
  121. package/dist/render/lib/checkout/pay-first.d.ts +1 -0
  122. package/dist/render/lib/checkout/pay-first.js +1 -1
  123. package/dist/render/lib/consent/rules.js +1 -1
  124. package/dist/render/lib/content/article-page-seed.js +1 -1
  125. package/dist/render/lib/content/collection-card-look.d.ts +13 -0
  126. package/dist/render/lib/content/collection-card-look.js +1 -0
  127. package/dist/render/lib/content/menu-row.d.ts +16 -0
  128. package/dist/render/lib/content/menu-row.js +1 -1
  129. package/dist/render/lib/content/text-kind-vars.d.ts +4 -0
  130. package/dist/render/lib/content/text-kind-vars.js +1 -0
  131. package/dist/render/lib/countries.js +1 -1
  132. package/dist/render/lib/document/blocks/commerce/Collections/meta.d.ts +4 -0
  133. package/dist/render/lib/document/blocks/commerce/Collections/meta.js +1 -1
  134. package/dist/render/lib/document/blocks/commerce/Collections/render.js +1 -1
  135. package/dist/render/lib/document/blocks/commerce/SearchBlock/render.js +1 -1
  136. package/dist/render/lib/document/blocks/commerce/WheelDiagram/meta.d.ts +2 -0
  137. package/dist/render/lib/document/blocks/commerce/WheelDiagram/meta.js +1 -0
  138. package/dist/render/lib/document/blocks/commerce/WheelDiagram/render.d.ts +2 -0
  139. package/dist/render/lib/document/blocks/commerce/WheelDiagram/render.js +1 -0
  140. package/dist/render/lib/document/blocks/commerce/metas.d.ts +1 -0
  141. package/dist/render/lib/document/blocks/commerce/metas.js +1 -1
  142. package/dist/render/lib/document/blocks/commerce/renders.d.ts +1 -0
  143. package/dist/render/lib/document/blocks/commerce/renders.js +1 -1
  144. package/dist/render/lib/document/blocks/service/SiteHeader/render.js +1 -1
  145. package/dist/render/lib/document/card-templates.d.ts +2 -0
  146. package/dist/render/lib/document/card-templates.js +1 -1
  147. package/dist/render/lib/document/current-record.js +1 -1
  148. package/dist/render/lib/document/footer-page-blocks.js +1 -1
  149. package/dist/render/lib/document/lazy-draws.js +1 -1
  150. package/dist/render/lib/document/render-config.d.ts +4 -0
  151. package/dist/render/lib/document/render-config.js +1 -1
  152. package/dist/render/lib/document/section-to-box-rows-collections.d.ts +1 -0
  153. package/dist/render/lib/document/section-to-box-rows-collections.js +1 -0
  154. package/dist/render/lib/document/section-to-box-rows-service.js +1 -1
  155. package/dist/render/lib/document/section-to-box-rows-spec.js +1 -1
  156. package/dist/render/lib/document/template-product-kind.d.ts +1 -0
  157. package/dist/render/lib/document/template-product-kind.js +1 -1
  158. package/dist/render/lib/next-fonts.js +1 -1
  159. package/dist/render/lib/popup/text-kind-style.js +1 -1
  160. package/dist/render/lib/sections/gallery-toolbar.js +1 -1
  161. package/dist/render/lib/storefront-page-groups.js +1 -1
  162. package/dist/render/lib/submit/text-kinds.js +1 -1
  163. package/dist/render/lib/wheels/catalog-filters-to-listing.d.ts +1 -1
  164. package/dist/render/lib/wheels/catalog-filters-to-listing.js +1 -1
  165. package/dist/render/lib/wheels/fitments.js +1 -1
  166. package/dist/render/lib/wheels/plp-filters.d.ts +5 -0
  167. package/dist/render/lib/wheels/plp-filters.js +1 -1
  168. package/dist/render/lib/wheels/price-display.d.ts +5 -1
  169. package/dist/render/lib/wheels/price-display.js +1 -1
  170. package/dist/render/lib/wheels/wheel-sheet.d.ts +3 -0
  171. package/dist/render/lib/wheels/wheel-sheet.js +1 -0
  172. package/dist/render/lib/wheels/wheel-specs.js +1 -1
  173. package/dist/words.d.ts +13 -3
  174. package/dist/words.js +4 -4
  175. package/package.json +5 -4
  176. package/dist/chunks/EditorPreviewCheckout-O7F36ZXB.js +0 -4
  177. package/dist/chunks/chunk-AOZEO73W.js +0 -401
  178. package/dist/chunks/chunk-MXWQOFM6.js +0 -1
  179. package/dist/chunks/chunk-NYEB6V2R.js +0 -1
  180. package/dist/chunks/chunk-SQ62RGWV.js +0 -1
  181. /package/dist/chunks/{chunk-AOZEO73W.js.LEGAL.txt → chunk-KRMWJLBM.js.LEGAL.txt} +0 -0
  182. /package/dist/chunks/{chunk-UFEEFZ5M.js → chunk-QP2F42DV.js} +0 -0
@@ -1,401 +0,0 @@
1
- import{$a as Fd,$b as Wo,$d as YC,Ad as Ud,Dc as vC,Ec as nh,F as Fr,Fa as Qw,Fc as TC,Fd as Hn,Ga as eC,Gc as sh,Ha as Jm,Hb as Ia,Hc as PC,Hd as Dr,I as Ln,Ia as lo,Ic as EC,J as kt,Ja as oC,Jb as hC,Jc as OC,Jd as Nr,K as tl,Ka as tC,Kc as Wd,Kd as $d,La as Fn,Lb as xC,Ma as Mo,Mc as _C,Md as WC,Nb as IC,Oa as Bn,Ob as gC,Pa as Dn,Pb as bC,Qb as yC,Qd as GC,Sa as rC,Sb as jt,Sd as zC,T as ha,Tb as SC,Tc as lh,V as Km,Va as rl,W as Vm,Wb as wC,Wd as xe,Xa as aC,Xb as Kt,Y as Rd,Ya as Qm,Yb as rh,_d as VC,a as Ct,ab as nC,ac as ye,b as An,ba as Ym,bb as sC,bc as Nd,be as Vd,c as $w,ca as Ld,cb as lC,cc as CC,cd as AC,ce as qC,d as fr,da as Yw,db as Bd,dc as al,dd as RC,de as XC,e as Um,ea as qw,eb as iC,ec as Jo,ed as LC,f as Rn,fa as Xw,fb as dC,fc as nl,ga as qm,gc as Md,gd as FC,ha as Zw,hb as cC,hc as Nn,hd as BC,ib as eh,ic as ah,j as ol,jd as DC,kb as fC,kc as Hd,l as Ad,lb as Ho,ld as Mn,mb as xa,md as NC,n as $m,nb as pC,nd as Gd,ob as $t,od as MC,pb as Dd,q as to,r as jw,rc as kC,s as Kw,sb as uC,sd as HC,ta as Jw,tb as oh,u as Vw,ua as Xm,ud as zd,w as jm,wb as mC,xb as th,ya as Br,za as Zm}from"./chunk-SQ62RGWV.js";import{c as UC,d as jd,e as Kd,i as $C,j as Mr,k as jC,l as KC,p as ih}from"./chunk-UFEEFZ5M.js";var q=e=>typeof e=="string"&&e?e:void 0;var JC="en",Yd=null,QC=JC,ek=null;function xpe(e,o,t){Yd=e??null,QC=o||JC,ek=t??null}function ne(){return ek}function dh(){return QC}function ok(){return Yd}function ZC(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>Object.prototype.hasOwnProperty.call(o,r)?String(o[r]):t):e}function i(e,o){let t=Yd?Yd[e]:void 0;if(typeof t=="function"){try{let r=q(t(o??{}));if(r)return r}catch{}return ZC(e,o)}return ZC(q(t)??e,o)}function Ro(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as ch,Fragment as I5,jsxs as g5}from"react/jsx-runtime";import{createContext as b5,useContext as y5}from"react";var S5={mirrorHostStyles:!0,css:null,fontHrefs:[]},tk=b5(S5);function ype({value:e,children:o}){return ch(tk.Provider,{value:e,children:o})}function fh(){return y5(tk)}function rk(){let{css:e,fontHrefs:o}=fh();return g5(I5,{children:[o.map(t=>ch("link",{rel:"stylesheet",href:t},t)),e?ch("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as w5}from"react/jsx-runtime";import{createContext as C5,useContext as k5}from"react";var ak=C5(void 0);function kpe({metadata:e,children:o}){return w5(ak.Provider,{value:e,children:o})}var nk=()=>k5(ak);import{jsx as go,Fragment as X4,jsxs as Od}from"react/jsx-runtime";import{useCallback as Js,useEffect as dr,useRef as Ufe,useState as K4}from"react";import{SettingsSwitch as $fe}from"efficient-easel/panel";import{PagesIcon as jfe,StylesIcon as Kfe}from"efficient-easel/rail";import{PaletteIcon as Vfe}from"efficient-shell/icons/efficient";import{Subtree as Yfe,TreeRow as Z4}from"efficient-easel/tree";import{useEasel as J4}from"efficient-easel/easel";import{useEaselStrings as Q4}from"efficient-easel/strings";import{createContext as v5,useContext as T5}from"react";var ph=v5(!1),Ppe=()=>T5(ph);import{useMemo as P5,useRef as E5}from"react";import{useEaselApi as O5}from"efficient-easel/easel";import{useSectionOps as _5}from"efficient-easel/screen/lib/document/use-section-ops";function qd(){let e=O5(),o=_5(),t=E5(o);return t.current=o,P5(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as j8}from"efficient-easel/draw";import{insertAt as K8,moveTo as V8,removeAt as Y8}from"efficient-easel/fields";function Vt(e,o){let t=globalThis,r=Symbol.for(e),a=t[r];return a===void 0&&(a=o(),t[r]=a),a}function sl(){return Vt("efficient.slot-field-blocks",()=>new Set)}var bo="dataSource",pr="dataSourceOptions",A5="dataRows",vt="countKey",ll="counts",Hpe="location-payment-methods",ik="shop-payment-methods",Wpe="delivery-options",dk="blog-categories",uh="dealers";function R5(e){return typeof e.open=="function"}var ck=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Gpe(e){return typeof e=="string"&&ck.test(e)}var sk=new Set([uh]);function il(){return Vt("efficient.block-sources",()=>({sources:new Map,revision:0}))}var L5=e=>[e?.key,e?.label,e?.value].every(o=>typeof o=="string"&&o.trim()!==""),F5=e=>[e?.key,e?.label].every(o=>typeof o=="string"&&o.trim()!==""),lk=e=>typeof e=="string"&&e.trim()!=="";function B5(e){if(!e||!lk(e.label))return null;if(R5(e))return{label:e.label.trim(),open:e.open};let o=e.href;return lk(o)?{label:e.label.trim(),href:o.trim()}:null}function D5(e){if(typeof e.key!="string"||!ck.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(r=>typeof r!="string"||!r))throw new Error(`The block source ${e.key} names no block it can fill.`);let o=e.blocks.find(r=>sl().has(r));if(o)throw new Error(`The block source ${e.key} names ${o}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let t=B5(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>uk(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(L5)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(F5).map(r=>({...r}))}:{},...t?{edit:t}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>r.trim())}:{}}}function zpe(e){let o=e.map(D5),t=il();for(let r of o)t.sources.set(r.key,r);o.length&&(t.revision+=1)}function fk(e){let o=[...il().sources.values()],t=[...o.filter(r=>!sk.has(r.key)),...o.filter(r=>sk.has(r.key))];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function Xd(e){return il().sources.get(e)??null}function pk(e){return il().sources.get(e)?.choices??[]}function Upe(){return il().revision}function ro(e){let o=e?.[bo];return typeof o=="string"?o.trim():""}function uk(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let o={};for(let[t,r]of Object.entries(e)){let a=q(r);a&&(o[t]=a)}return Object.keys(o).length?o:null}function N5(e){let o=e?.[A5];return Array.isArray(o)?o.map(uk).filter(t=>t!==null):null}function $pe(e,o,t=[]){let r=N5(e);if(r!==null&&(r.length||!o))return{rows:r,sample:!1};if(!o)return{rows:[],sample:!1};let a=Xd(ro(e))?.sample;return{rows:a?.length?a:t,sample:!0}}import{isNodeList as sW}from"efficient-easel/data";var mk=["general","commerce","service"],Hr=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function Kpe(){return Object.fromEntries(Hr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var M5="2027-02-05",hk={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
2
-
3
- WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
4
-
5
- WHAT A MERCHANT LOSES: typed tabs with typed counts (the Menu draws the blog's categories, or a Console menu); the Archive and RSS links at the bar's right end (a Box beside the Menu holds Buttons, if wanted); the first tab marked when no page matches (the Menu marks the page's own entry); the blur behind the bar.
6
-
7
- 0 Category Bars are stored on the US sites (34 pages, draft and published; read only, 2026-11-09). Old sites stay as they are (owner, 2026-11-06).
8
-
9
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding a Category Bar still renders through it and can still be edited; no document is rewritten. Delete the component when CategoryBar is on SECTION_TO_BOX_ON and the stored count on the US sites is 0.`},Masthead:{label:"Issue Header",note:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
10
-
11
- WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
12
-
13
- WHAT A MERCHANT LOSES: a press that lays down the two-row issue shape with its "In this issue" panel; the merchant builds it from Boxes and Text blocks. No field is lost.
14
-
15
- 1 Issue Header is stored on the US sites (journal, draft and published; read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
16
-
17
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding an Issue Header still renders through it and can still be edited; no document is rewritten.`},Grid:{label:"Grid",note:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A \u2014 shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` \u2014 256 documents): 2 Grid nodes, and they are ONE Grid counted twice \u2014 the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 \u2014 equal thirds \u2014 and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n\u26A0\uFE0F THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned \u2014 hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. \u26D4 So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says \u2014 Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS \u2014 the owner redoes live sections himself.\n\n\u26A0\uFE0F AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot \u2014 a Box included \u2014 refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` \xA73 pins it.'},CompatibleTyres:{label:"Compatible Tyres",note:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings \u2014 it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 \u2014 it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n\u26A0\uFE0F THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call \u2014 nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n \u2022 settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT \u2014 the map holds only TimelineTrack and Footprint, both AUTHORED lists\n \u2022 read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n \u2022 panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n \u2022 head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero \u2014 neither can style them \u2014 and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS \u2014 the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n\u26A0\uFE0F AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.'},Spacer:{label:"Spacer",note:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
18
-
19
- WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` \xA75 holds it.
20
-
21
- WHAT A MERCHANT LOSES on a NEW space: nothing the Spacer had. Four fixed sizes become any number on the 4px grid, top and bottom apart, and a phone value.
22
-
23
- NO CONVERTER ROW: 0 Spacer nodes on any page, draft or published, in any schema of the local production clone (read-only count, 2026-10-26), and none in the backend's seed files. This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` \xA75: a retired type is accounted for).
24
-
25
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Spacer anywhere still renders through it and can still be edited; no document is rewritten.`},KeyFeatures:{label:"Key Features",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds Cards and Key Features; Key Features' diamond cells are the card style "Label only". Retired by card [MERGE] One Text Block And Click Through Parts (2026-10-22).
26
-
27
- WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell is a copy of the Label only card template (Cards/card-seed \`labelOnlyCardSeed\`): a cell Box (its link from the row's \`href\`), a 9px Mark Box in the main colour turned 45 degrees, and the label Text; the eyebrow starts on the pill look when none is stored. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"). The Key Features conversion lands on the same card (\`scripts/test-key-features-diamond.tsx\`).
28
-
29
- WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
30
-
31
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${M5}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` \xA75).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
32
-
33
- WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
34
-
35
- WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints; a short row no longer keeps 4 columns; the count is one plain Text, its figure no longer in the text ink; a card with no count still draws the footer line.
36
-
37
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Recurring Columns still renders through it and can still be edited; no document is rewritten.`},DocMetaCards:{label:"Document Detail Cards",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
38
-
39
- WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value and a Card body. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
40
-
41
- WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
42
-
43
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`},StatsParagraph:{label:"Stats with Text",note:`Lewis, 2026-10-10 (approved): one Stats holds Stats and Stats with Text. Its head (eyebrow, heading, body) and each number's Prefix, Unit, Superscript, Label, "Use accent color" and text go into Stats; Card style Table (the old Stats with Text) or List (the old Stats). 2026-10-27: no Number block, the cards are Box + Text. Retired when the two became one Stats (2026-11-06).
44
-
45
- WHAT REPLACES IT: a Stats press, a Box of real parts: three head Texts, then a Stats Box holding ONE Card list, Card style Table. Each number is a row of the Card list; its card is a figure Text (the prefix and number typed in it, the unit marked \`==_yr_==\`, which draws the section theme's Main colour; a whole number in that colour is \`==_8_==\`), a superscript Text beside it, a label Text and a body Text, each showing its row's field, and a row may link its own live number. The Stats Box's Card style row (Table / List) writes the Box's Gap and the card's own Border, Padding and Height.
46
-
47
- WHAT A MERCHANT LOSES: the numbers do not count up (the Text block's Count up numbers setting is its own change, held); the figure has no tabular numbers; a unit is not a lighter weight than its number; rows of four stack below 800px, not two columns from 1100px.
48
-
49
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Stats with Text still renders through it and can still be edited; no document is rewritten (owner 2026-11-06: old sites stay as they are).`},Testimonials:{label:"Testimonials",note:"Lewis, 2026-10-10 (section-merges.md group 6, approved): Testimonials goes into Reviews, whose Review content is Manual (typed quotes) or Reviews (the store's approved reviews), with a product choice in place of the old Design code. Retired by card [MERGE] Remaining Section Merges (2026-11-06), after Reviews took typed quotes and a card template (efficient-storefront-blocks #242) and the product choice (#359).\n\nWHAT REPLACES IT: Reviews with Review content set to Manual. Every Testimonials key has the same key there: `eyebrow`, `eyebrowLook`, `title`, `items[]` (`quote`, `name`, `role`), `columns` 1-3 and `headPlacement` (both split their head). A typed review also has a `title` and a `rating`, empty for a quote that has none.\n\nWHAT A MERCHANT LOSES on a NEW quote list: nothing this section had. Reviews is in the service set where this section was general; no host narrows the sets (2026-11-06).\n\nNO CONVERTER ROW HERE: its Box row is efficient-storefront-blocks' (`section-to-box-rows-reviews`, OFF). 0 Testimonials nodes on the US sites, draft or published (read only, 2026-11-06). Old sites stay as they are (owner, 2026-11-06).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Testimonials anywhere still renders through it and can still be edited; no document is rewritten."},SubscribeBlogs:{label:"Subscribe with Posts",note:"card 66396 \u2014 folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},RelatedProducts:{label:"Related Products",note:`Owner, 2026-11-06 (plan productgrid-card-template-2026-11-06, inovit row 19): a Product Grid with "Show the current product's related" on IS the related grid, so offering both asked a merchant to choose between two names for one section.
50
-
51
- WHAT REPLACES IT: Product Grid, bound to the current product. Both draw every card through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
52
-
53
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Related Products node is read as that grid by the host (\`relatedToGrid\`) and draws the same cards; no document is rewritten. Its footnote is the one value the grid has no home for.`},BundleOffer:{label:"Bundle Products",note:`Plan section-parts bundles grid source (2026-11-07): a Product Grid that shows "Bundles with this product" IS the bundle section, so offering both asked a merchant to choose between two names for one section.
54
-
55
- WHAT REPLACES IT: Product Grid, bound to the current product, Show set to its bundles. Both draw every kit through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
56
-
57
- THE TYPE KEY STAYS AND SO DOES THE DRAWING. A stored Bundle Products node is read as that grid by the host (\`bundleToGrid\`) and draws its kits; no document is rewritten.`},TyreFitment:{label:"Tyre Fitment Form",note:`Owner, 2026-10-10 (approved): the Tyre Fitment Form goes into the Fitment Form, whose answer follows the page. One vehicle section, not two.
58
-
59
- WHAT REPLACES IT: the Fitment Form, a Box of a head, the vehicle picker (\`FitmentPicker\`), its answer (\`StockFitment\`) and a Button. On a tyre product page the answer part draws one verdict per size against the picked car, the same \`TyreFitVerdicts\` drawing this section made; on every other page it draws the car's OEM fitment card (efficient-storefront-blocks 0.87.0). The old escape link is the Box's Button.
60
-
61
- WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a press seeds the Fitment Form's own head. The page decides the answer, so there is no mode row.
62
-
63
- NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
64
-
65
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items \xB7 Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. \u26D4 A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},mh=Object.fromEntries(Object.entries(hk).map(([e,o])=>[e,o.note])),Vpe=["Grid","Spacer","TyreFitment"],Ype=Array.from(new Set([...Hr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(mh)])),H5=Object.fromEntries(Object.entries(hk).map(([e,o])=>[e,o.label])),Jd={...H5,...Object.fromEntries(Hr.flatMap(e=>e.sections.map(o=>[o.type,o.label])))},W5={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},Zd={...W5,...Object.fromEntries(Hr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function xk(e){return Object.prototype.hasOwnProperty.call(Zd,e)?Zd[e]:void 0}function hh(e){return Object.keys(Zd).filter(o=>Zd[o]===e).sort()}var qpe=hh("general"),Xpe=hh("commerce"),Zpe=hh("service"),xh="Flex",ur="Box",Jpe=`${ur}es`;function G5(e){return e==="section"?"Blank section":ur}function Ih(e,o,t){return e===xh?G5(o):t}var ee="content",U="Flex",z5="Text & media",U5="Layout & structure",gk=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],$5=[...gk,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:z5})),j5=(Hr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:U5})),Ik=[...$5,...j5],gh=[...gk,{type:"HeroGroup",label:ur}],oue=gh.map(e=>e.type),K5=1,V5=gh.filter(e=>e.type!=="HeroGroup");function Y5(e){return e<K5?gh:V5}var q5={Flex:{slot:ee,choices:()=>Ik},Grid:{slot:ee,choices:()=>Ik},HeroGroup:{slot:ee,choices:Y5}};function bk(e,o=0){let t=q5[e];return t?{slot:t.slot,choices:t.choices(o)}:null}import{applyMark as iue,markupTools as due,MARKUP_TOOLS as cue,COPY_FIELD_TOOLS as fue,STOREFRONT_MARKUP as pue,tokenizeInline as uue,stripInline as mue,isSafeLinkHref as Tk}from"efficient-shell/markup";import{applyMark as i6,clearStyle as d6,markedAt as c6,markupTools as f6,MARKUP_TOOLS as p6,parseMarkup as u6,RETIRED_MARKS as m6,STOREFRONT_MARKUP as h6,tokenizeInline as xue}from"efficient-shell/markup";var ga=["highlight","strong","quiet"],ba={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},Yt={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Ck=Object.fromEntries(ga.map(e=>[Yt[e].kind,e])),kk="data-sf-ws",X5=["accent","text","labels"],Wr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},Z5=80,J5=120,Q5=100,e6=900,o6=.5,t6=3,r6=-.1,a6=.5,n6=3,bh={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},s6={highlight:{...bh},strong:{...bh},quiet:{...bh}};function yk(e,o,t){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,o),t))}function Sk(e,o,t){if(typeof e!="number"||!Number.isFinite(e))return null;let r=10**n6;return Math.round(Math.min(Math.max(e,o),t)*r)/r}function wk(e){return typeof e=="boolean"?e:null}function l6(e){let o=typeof e?.font=="string"&&Ct.some(r=>r.key===e.font)?e.font:null,t=typeof e?.colour=="string"&&X5.includes(e.colour)?e.colour:null;return{font:o,size:yk(e?.size,Z5,J5),weight:yk(e?.weight,Q5,e6),bold:wk(e?.bold),italic:wk(e?.italic),lineGap:Sk(e?.lineGap,o6,t6),textGap:Sk(e?.textGap,r6,a6),colour:t}}function vk(e){let o={};for(let t of ga)o[t]=e&&t in e&&e[t]?l6(e[t]):{...s6[t]};return o}function aue(e){let o=vk(e),t={};for(let r of ga){let a=o[r],n=`--sf-ws-${r}`;if(a.font){let s=Ct.find(l=>l.key===a.font);s&&(t[`${n}-font`]=`var(${s.cssVar})`)}a.size!==null&&(t[`${n}-size`]=`${a.size/100}em`),a.weight!==null&&(t[`${n}-weight`]=String(a.weight)),a.bold!==null&&(t[`${n}-weight-bold`]=a.bold?"700":"400"),a.italic!==null&&(t[`${n}-style`]=a.italic?"italic":"normal"),a.lineGap!==null&&(t[`${n}-line`]=String(a.lineGap)),a.textGap!==null&&(t[`${n}-track`]=`${a.textGap}em`),a.colour!==null&&(t[`${n}-color`]=Wr[a.colour])}return t}function nue(e){let o=e?.word_styles??void 0,t={};for(let r of ga)o&&r in o&&(t[r]=o[r]??null);return vk(t)}var x6=new Set(["strong"]),Pk=ga.map(e=>({open:Yt[e].delimiter,close:Yt[e].delimiter,kind:Yt[e].kind,...x6.has(e)?{wordStart:!0}:{}})),gue=[{style:Yt.highlight.kind,label:ba.highlight,title:`${ba.highlight} word style`},{style:Yt.strong.kind,label:ba.strong,title:`${ba.strong} word style`},{style:Yt.quiet.kind,label:ba.quiet,title:`${ba.quiet} word style`}],I6=new Set(Pk.map(e=>e.open)),ya=[...h6.filter(e=>!I6.has(e.open)),...Pk];function yh(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Wn(e){return u6(typeof e=="string"?e:"",ya)}var g6=p6.map(e=>e.style).filter(e=>!m6.includes(e)).filter(e=>ya.some(o=>o.kind===e));function Ek(){return f6(g6)}var Ok=Object.fromEntries(ga.map(e=>[Yt[e].kind,Yt[e].delimiter]));function _k(e,o,t,r){let a=Ok[r];if(!a)return i6(e,o,t,r);let n=e.slice(o,t),s=e.slice(Math.max(0,o-a.length),o),l=e.slice(t,t+a.length);if(s===a&&l===a)return{text:e.slice(0,o-a.length)+n+e.slice(t+a.length),selectionStart:o-a.length,selectionEnd:o-a.length+n.length};let d=n||"styled text";return{text:e.slice(0,o)+a+d+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+d.length}}function Ak(e,o,t,r){let a=Ok[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:c6(e,o,t,r)}function Sa(e){return e.replace(/==(.+?)==/g,(o,t)=>t.startsWith("_")&&t.endsWith("_")?o:`==_${t}_==`)}function mr(e){return Wn(e).map(o=>yh(o)+Lk(o.children)).join(`
66
- `)}function Rk(e,o,t){return d6(e,o,t,ya)}function Lk(e){return e.map(o=>o.kind==="text"?o.text:Lk(o.children)).join("")}function bue(e){let o=t=>t.some(r=>r.kind==="link"||"children"in r&&o(r.children));return Wn(e).some(t=>o(t.children))}var K=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;var qt={min:0,max:360,step:1},Fk="angle";function Cue(e){let o=K(e);if(o===void 0)return null;let t=Math.min(qt.max,Math.max(qt.min,o));return t===qt.min||t===qt.max?null:{rotate:`${t}deg`}}import{MEDIA_ZONES as b6,MEDIA_ZONE_LABELS as y6}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as S6,hoverKindsOf as ec,motionSeconds as Qd}from"efficient-shell/format";var Xe="hover",Ca="_gHover",ka={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},Xt="highlight",wh="Highlight",Ch=["none",Xt],kh={none:ka.none,[Xt]:wh};function w6(e){return e[Xe]===Xt?Xt:"none"}var Oue="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",_ue="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function Aue(e,o){return w6(e)!==Xt?null:{"--sf-hl-bg":o("surface"),"--sf-hl-ink":o("main")}}var oc=ec(["none","lift"]);function Dk(e){let o=e[Xe];return oc.includes(o)?o:"none"}var tc=ec(["none","nextImage","rotate"]),we={kind:Xe,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},dl="spinOnHover",Bk=qt,Nk={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Mk=Object.keys(Nk);function vh(e){return Nk[e]??"none"}var Th=S6.rotateFallbackDeg,C6=e=>e==="rendering"?"renderings":e,k6=e=>e==="renderings"?"rendering":e,rc=Object.freeze(b6.filter(e=>e!=="videos").map(C6)),Hk=Object.freeze(Object.fromEntries(rc.map(e=>[e,y6[k6(e)]]))),Ph=["finish","first"],Wk={finish:"Same finish",first:"First group"},Eh=["card","picture"],Gk={card:"Whole card",picture:"Picture"},wa={kind:"photos",group:"finish",cover:"card"},Sh=(e,o,t)=>e.includes(o)?o:t;function zk(e){return{kind:Sh(rc,e[we.mediaKind],wa.kind),group:Sh(Ph,e[we.mediaGroup],wa.group),cover:Sh(Eh,e[we.cover],wa.cover)}}function Oh(){return{field:we.kind,is:"nextImage"}}function _h(e,o){let t=e[we.kind];if(tc.includes(t))return t;let r=e[dl];return typeof r=="boolean"?r?"rotate":"none":o}function Ah(e){let o=K(e);return o===void 0?Th:Math.min(Bk.max,Math.max(Bk.min,o))}function Rue(e,o){let t=vh(o),r=_h(e,t);return{kind:r,angle:r==="rotate"?Ah(e[we.angle]):null,duration:Qd("hover","duration",r==="rotate"?e[we.duration]:void 0),delay:Qd("hover","delay",r==="rotate"?e[we.delay]:void 0),...r==="nextImage"?{media:zk(e)}:{}}}function Uk(e){let o={field:we.kind,in:[...tc]};return{any:[{field:we.kind,is:"rotate"},{all:[{not:o},e==="rotate"?{not:{field:dl,is:!1}}:{field:dl,is:!0}]}]}}var ac=ec(["none","mono"]),Rh=ec(["none","nextImage","mono"]),$k={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Lue=Object.keys($k);function Lh(e){return $k[e]??"none"}var cl={zoom:"hoverZoom",darken:"hoverDarken"},hr={min:100,max:150,step:1,unit:"%"};function v6(e){let o=K(e[cl.zoom]);if(o===void 0)return null;let t=Math.min(hr.max,Math.max(hr.min,o));return t===hr.min?null:String(t/100)}function T6(e){let o=K(e[cl.darken]);return o!==void 0&&o>0?o:null}var nc=["ImageBlock"];function Fh(e,o,t=ac){let r=e[Xe];return t.includes(r)?r:o}function jk(e,o=""){let t=nc.includes(o)?Rh:ac,r=Fh(e,Lh(o),t),a=r==="mono";return{kind:r,duration:Qd("hover","duration",a?e[we.duration]:void 0),delay:Qd("hover","delay",a?e[we.delay]:void 0),...r==="nextImage"?{media:zk(e)}:P6(e)}}function P6(e){let o=v6(e),t=T6(e);return{...o?{zoom:o}:{},...t?{darken:t}:{}}}function Kk(){return{not:{field:Xe,is:"nextImage"}}}function Bh(e){return e==="none"?{field:Xe,in:["mono","nextImage"]}:{not:{field:Xe,is:"none"}}}function Vk(e){return e==="none"?{field:Xe,is:"mono"}:{not:{field:Xe,in:["none","nextImage"]}}}var Yk={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Mue,tag:Hue,...E6}=Yk.defaultProps,W=E6,Y={...W,tone:"dim"},sc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},O={...sc,direction:"column",...tl},Ne=(e,o=e,t=e,r=o)=>({sectionPaddingTop:e,sectionPaddingRight:o,sectionPaddingBottom:e,sectionPaddingLeft:o,sectionPaddingTopPhone:t,sectionPaddingRightPhone:r,sectionPaddingBottomPhone:t,sectionPaddingLeftPhone:r}),Zt=e=>({fillColor:e}),lc=(e,o,t={})=>({...O,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...Zt(o),...t}),N=(e,o,t,r)=>({sizeToken:{step:e,px:o,...r?{stepPhone:r}:{},...t?{pxPhone:t}:{}}}),qk={case:"upper"},yo={textStyle:"body-5",...qk},fl=(e,o)=>({...N("label",e,o),letterSpacing:.2,...qk}),Tt=(e,o)=>({...yo,...fl(e,o)});function Je(e,o,t=""){return e.map((r,a)=>{let n=t?`${t}.${a}`:String(a),s={...r.props??{}};for(let[l,d]of Object.entries(r.slots??{}))s[l]=Je(d,o,n);return{type:r.type,props:{...s,id:o(r.type,n)}}})}var Gr=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Pt=()=>({_partStyles:{text:{...yo,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var O6={...O,gap:12,gapPhone:12,...Ne(32,32,28,28)},_6={textStyle:"heading-3",...N("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},ul={textStyle:"body-1",...N("body",15),lineHeight:1.6},ae=(e,o,t,r=!1)=>({type:"Text",props:{...o,text:"",[Eo]:e,_partStyles:{text:{...r?Pt()._partStyles?.text??{}:{},...t}}}}),zr={title:"title",body:"body"},ic={title:"name",body:"note"},Dh=(e=zr)=>({type:U,props:{...O6,name:"Card"},slots:{[ee]:[ae(e.title,{...W,tag:"p",widthFit:"fill"},_6),ae(e.body,{...Y,tag:"p",widthFit:"fill"},ul)]}}),dc=(e,o)=>Je([Dh(o)],e),pl={label:zr.title,href:"href"},A6={textStyle:"body-1",fontRole:"heading",color:"text",...N("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},R6=lc(9,"main",{[Fk]:45}),Nh=(e=!1)=>({type:U,props:{...O,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...Ne(32,28),[Jt]:pl.href,...e?{[Xe]:Xt}:{}},slots:{[ee]:[{type:U,props:{...R6,name:"Mark"}},ae(pl.label,{...W,tag:"p",widthFit:"fill"},A6)]}}),Xk=e=>(o,t)=>t==="0"?`${e}~card`:`${e}~card.${t.slice(2)}`,Zk=(e,o=!1)=>Je([Nh(o)],e);function Qk(e,o){if(e!=="Cards")return o;if(o.template!==void 0)return Jk(o);let t=q(o.id)??"Cards",r=Xk(t);if(o.cardStyle==="label-only"){let n=Array.isArray(o.items)&&o.items.some(s=>q(s?.href)!==void 0);return Jk({...o,template:Zk(r,n)})}let a=ro(o)?ic:zr;return{...o,template:dc(r,a)}}var L6=e=>{let[o,t]=e?[zr,ic]:[ic,zr];return new Map([[o.title,t.title],[o.body,t.body]])};function ev(e,o){let t=null;return e.forEach((r,a)=>{let n=r?.props;if(!n)return;let s=n,l=n[Eo];r.type==="Text"&&typeof l=="string"&&o.has(l)&&(s={...s,[Eo]:o.get(l)});let d=n[ee];if(Array.isArray(d)){let c=ev(d,o);c!==d&&(s={...s,[ee]:c})}s!==n&&(t??=[...e],t[a]={...r,props:s})}),t??e}function Jk(e,o){if(!Array.isArray(e.template))return e;let t=L6(!!ro(e)),r=o?new Map([...t].filter(([n,s])=>o(s)&&!o(n))):t;if(!r.size)return e;let a=ev(e.template,r);return a===e.template?e:{...e,template:a}}var F6="label";function ov(e){if(e.template!==void 0)return e;let o=q(e.id)??"CardList",t={type:U,props:{...O,name:"Item"},slots:{[ee]:[ae(F6,{...W,tag:"p"},ul)]}};return{...e,template:Je([t],(r,a)=>a==="0"?`${o}~item`:`${o}~item.${a.slice(2)}`)}}var ml="ArticleBody",B6={textStyle:"heading-3",...N("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},D6={...ul,align:"center"},tv=640,N6=()=>[ae("heading",{...W,tag:"h2",align:"center",maxWidth:tv},B6),ae("paragraph",{...Y,tag:"p",align:"center",maxWidth:tv},D6)],Mh=e=>Je(N6(),e);function M6(e){return Mh((o,t)=>`${e}~${t==="0"?"heading":"paragraph"}`)}function rv(e){if(e.template!==void 0)return e;let o=typeof e.id=="string"&&e.id.trim()?e.id:ml;return{...e,template:M6(o)}}var H6="label",cc=()=>({type:"LogoBlock",props:{[Eo]:H6}}),av=e=>{let o=q(e.id)??"Logos";return{...e,template:Je([cc()],()=>`${o}~logo`)}};function nv(e){return!ro(e)||e.template!==void 0?e:av(e)}function mme(e){if(!ro(e))return e;let o=e.template;return o!==void 0&&!(Array.isArray(o)&&o.length===0)?e:av(e)}import{addShowWhenFacts as W6}from"efficient-shell/format";import{showWhenOf as Hh,shownForOption as Wh,truthy as G6,withRowRules as va,withRowsShownWhen as Gn,withShowWhen as Ge}from"efficient-shell/format";var gme=W6;function hl(e,o,t){return e.slice(0,-1).reduceRight((r,a)=>({any:[{all:[o(a),t(a)]},{all:[{not:o(a)},r]}]}),t(e[e.length-1]))}var z6="inline",U6=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var Lo={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},zn="SectionHeader";function sv(e){return e in Lo}function fc(e){return to(U6,z6,e)}var $6=new Set(["Flex"]);function wme(e){return!!e?.type&&$6.has(e.type)}var lv={not:{field:"headPlacement",is:"own-box"}},Cme={not:lv};function kme(e,o,t){return Gn(e,t,lv)}var pc="data-sf-spec-region";function iv(e){return e.writable===!0&&e.sized===!0}function uc(e,o,t){if(!e)return;let r=t[e];if(r)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${r}, ${o.builtIn})`}}function Un(e){let o=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!o)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return o[1]}function xl(e){return`@${e}`}function Il(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function j6(e,o){return o&&o in e?o:null}var Gh={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0,sized:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0,sized:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0,sized:!0}},dv=Gh;var K6="question",V6="answer",Y6={textStyle:"body-1",fontRole:"heading",...N("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},q6={textStyle:"body-1",...N("body",15),lineHeight:1.7};function cv(){return Object.keys(Gh).map(xl)}var zh=()=>({type:U,props:{...O,gap:0,name:"Question"},slots:{rowTitle:[ae(K6,{...W,tag:"p",widthFit:"fill"},Y6)],[ee]:[ae(V6,{...Y,tag:"p",widthFit:"fill",maxWidth:760},q6)]}});function X6(e){return fc(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(o=>q(e[o])!==void 0)}function fv(e){if(e.template!==void 0||X6(e))return e;let o=q(e.id)??"FAQ",t=0;return{...e,template:Je([zh()],r=>r===U?`${o}~row`:`${o}~row.${t++}`)}}var Z6=["below","left","right"];function J6(e){return Z6.includes(e)?e:"below"}function Uh(e){return J6(e)!=="below"}function $h(e){return Array.isArray(e)?e.map($h):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([o,t])=>o!=="id"&&t!==void 0&&!(Array.isArray(t)&&t.length===0)).sort(([o],[t])=>o<t?-1:o>t?1:0).map(([o,t])=>[o,$h(t)]))}var Ur=e=>JSON.stringify($h(e));var mv=e=>ro(e)===uh,mc=fl(11),Q6={textStyle:"body-1",...N("body",18),weight:500,lineHeight:1.2},hv=()=>({type:U,props:{...O,gap:8,gapPhone:8,...Ne(20,24,20,20),name:"Office"},slots:{[ee]:[ae("badge",{...W,tag:"p",widthFit:"fill"},mc,!0),ae("role",{...W,tag:"p",widthFit:"fill"},mc,!0),ae("city",{...W,tag:"p",widthFit:"fill"},Q6),ae("country",{...Y,tag:"p",widthFit:"fill"},mc),ae("address",{...Y,tag:"p",widthFit:"fill"},mc),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[Eo]:"linkLabel",[Jt]:"href"}}]}}),xv={textStyle:"body-1",fontRole:"heading",...N("body",16),weight:500,lineHeight:1.25},Kh={textStyle:"body-1",...N("body",14),lineHeight:1.5},eW=()=>({type:U,props:{...O,gap:4,gapPhone:4,...Ne(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[ee]:[ae("city",{...W,tag:"p",widthFit:"fill"},xv),ae("address",{...Y,tag:"p",widthFit:"fill"},Kh),ae("phone",{...Y,tag:"p",widthFit:"fill"},Kh)]}});function Iv(e){let o=q(e.id)??"Footprint",t=0;return Je([eW()],r=>r===U?`${o}~office`:`${o}~office.${t++}`)}function gv(e){return Array.isArray(e.template)&&e.template.length>0&&Ur(e.template)===Ur(Iv(e))}var bv=e=>e===void 0||Array.isArray(e)&&e.length===0;function pv(e){return Uh(e.listPosition)?!bv(e.template)||mv(e)?e:{...e,template:Iv(e)}:gv(e)?{...e,template:[]}:e}var oW=xv,tW=Kh,rW={textFit:"line"},Vh=(e,o,t="",r={},a={})=>{let n=ae(e,{...o?Y:W,tag:"p",...r},{...tW,...a});return t?{...n,props:{...n.props,[Jt]:t}}:n},jh=(e,o,t,r)=>({type:U,props:{...O,gap:0,gapPhone:0,[gl]:[e],name:r},slots:{[ee]:[Vh(e,o,t,rW,{align:"right"})]}}),aW=e=>({type:U,props:{...O,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?Ne(20,24):{...Ne(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[ee]:[{type:U,props:{...O,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[ee]:[{type:U,props:{...O,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[ee]:[ae("name",{...W,tag:"p",widthFit:"fill"},oW),Vh("address",!0)]}},Vh("place",!0,"",{widthFit:"fill"})]}},{type:U,props:{...O,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[ee]:[jh("distance",!0,"","Dealer distance"),jh("phone",!1,"phoneHref","Dealer phone"),jh("website",!1,"websiteHref","Dealer website")]}}]}}),nW=e=>{let o=aW(e),t={type:U,props:{...O,...Ne(0,12),name:"Dealer"},slots:{[ee]:[{...o,props:{...o.props,name:"Dealer row"}}]}};return e?o:t};function Yh(e,o){let t=q(e.id)??"Footprint",r=0;return Je([nW(o)],(a,n)=>n==="0"?`${t}~dealer`:`${t}~dealer.${r++}`)}function uv(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;let o=Ur(e.template);return o===Ur(Yh(e,!0))||o===Ur(Yh(e,!1))}function yv(e){if(mv(e)){let t=Yh(e,!Uh(e.listPosition));return!(bv(e.template)||gv(e)||uv(e))||Ur(e.template??[])===Ur(t)?e:{...e,template:t}}if(!uv(e))return pv(e);let o={...e,template:[]};return pv(o)}var fo="template",lW="Card template",Fo="CardList",Sv=["Text","ImageBlock","ButtonBlock","Flex"],Eo="rowField",Jt="rowLinkField";function wv(){return{type:"slot",allow:[...Sv]}}var iW=Sv.filter(e=>e!=="ButtonBlock"),bl="items",Cv="itemFields";function she(){return{type:"slot",allow:[...iW]}}var dW=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>fv(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>yv(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>Qk("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:Fo,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>nv(e)},{block:Fo,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:bl,seed:e=>ov(e)},{block:ml,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>rv(e)}];function Go(){return Vt("efficient.card-templates",()=>new Map(dW.map(e=>[e.block,e])))}function lhe(e){for(let o of e){if(typeof o.block!="string"||!o.block)throw new Error("A card template names no block.");let t=[];for(let s of o.blocks??[]){if(typeof s?.type!="string"||!s.type)throw new Error(`The card template of ${o.block} names an empty block.`);t.some(l=>l.type===s.type)||t.push({type:s.type,label:s.label||s.type})}let r=[];for(let s of o.slots??[]){if(typeof s?.slot!="string"||!s.slot)throw new Error(`The card template of ${o.block} names an empty slot.`);let l=q(s.label),d=Array.isArray(s.fields)?{fields:s.fields.map(c=>({...c}))}:null;r.some(c=>c.slot===s.slot)||r.push({slot:s.slot,...l?{label:l}:null,...d})}let a=r.some(s=>s.fields);if(a&&(o.fields.some(s=>s.everySource)||fk(o.block).length))throw new Error(`The card template of ${o.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);a?sl().add(o.block):sl().delete(o.block);let n=q(o.typedRows);Go().set(o.block,{block:o.block,...r.length?{slots:r}:{},fields:o.fields.map(s=>({...s})),blocks:t,typedRows:n,...o.seed?{seed:o.seed}:{},...o.seedOnInsert?{seedOnInsert:o.seedOnInsert}:{},...o.linesBetween===!0?{linesBetween:!0}:{}})}}function cW(e,o){let t=e?Go().get(e)?.seed:void 0;return t?t(o):o}function kv(e,o){let t=qh(e),r=(t.length?t:[fo]).filter(l=>o[l]===void 0||Array.isArray(o[l])&&o[l].length===0);if(!r.length)return o;let a={...o};for(let l of r)delete a[l];let n=e?Go().get(e)?.seedOnInsert:void 0,s=n?n(a):cW(e,a);return s===a?o:s}function vv(){for(let e of Go().values())if(e.blocks?.length)return!0;return!1}function Tv(e){return Go().get(e)?.blocks??[]}function ihe(e){for(let o of Go().values())if(o.blocks?.some(t=>t.type===e))return!0;return!1}function Pv(e){return typeof e=="string"&&Go().get(e)?.typedRows||""}function dhe(e){return typeof e=="string"&&Go().get(e)?.linesBetween===!0}function Ev(e){return typeof e=="string"&&Go().has(e)}var fW=[{slot:fo}];function hc(e){if(typeof e!="string")return[];let o=Go().get(e);return o?o.slots??fW:[]}function qh(e){return hc(e).map(o=>o.slot)}function pW(e,o){return hc(e).some(t=>t.slot===o)}function Ov(e,o){let t=hc(e).find(r=>r.slot===o);return t?t.label??lW:null}function Xh(e,o){return o?hc(e).find(t=>t.slot===o)?.fields:void 0}function uW(e,o){let t=Go().get(e)?.fields??[];return o?t.filter(r=>(r.kind??"text")===o):t}function mW(e,o){if(typeof e!="string")return"";let t=Xh(e,o);return(t?t.filter(r=>r.kind==="list"):uW(e,"list"))[0]?.key??""}function hW(e,o,t){return Qo(e)||mW(o,t)}function _v(e,o,t){let r=typeof e?.type=="string"?e.type:"";if(!r)return[];let a=Xh(r,t);if(a)return o?a.filter(d=>(d.kind??"text")===o):a;let n=Go().get(r)?.fields??[],s=Xd(ro(e?.props))?.fields,l=s?.length?[...s.map(d=>({...d})),...n.filter(d=>d.everySource&&!s.some(c=>c.key===d.key))]:n;return o?l.filter(d=>(d.kind??"text")===o):l}function xW(e,o,t,r){if(!e)return null;let a=Xh(e,r);return a?a.find(n=>n.key===o)??null:t?_v(t).find(n=>n.key===o)??null:Go().get(e)?.fields.find(n=>n.key===o)??null}function xc(e,o){return!e||!o?null:e.fields?.find(t=>t.key===o)??xW(e.ownerType,o,e.owner,e.slot)}function che(e,o){return xc(e,o)?.plain===!0}function Qo(e,o=Eo){let t=e?.[o];return typeof t=="string"?t.trim():""}function yl(e,o){return e.key||String(o+1)}function Zh(e){let o={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[t,r]of Object.entries(e))typeof r=="string"&&(o[t]=r);return o}var gl="hideWhenRowEmpty";function fhe(e,o){let t=e[gl];return!o||!Array.isArray(t)||!t.length?!1:t.every(r=>typeof r!="string"||!o[r]?.trim())}var Av={Text:{text:Eo,href:Jt},ImageBlock:{src:Eo,href:Jt},ButtonBlock:{label:Eo,href:Jt},LogoBlock:{alt:Eo,href:Jt},Breadcrumb:{currentCrumb:Eo}};var IW=new Set(["ButtonBlock.label","LogoBlock.alt"]);function phe(e,o,t){return Sl(e,o,t)&&!IW.has(`${e}.${t}`)}function Sl(e,o,t){return Jh(e,o,t)!==""}function Jh(e,o,t){let r=Av[e]?.[t];return r?Qo(o,r):""}function wl(e,o){return!o||!e?null:e[o]??""}function gW(e,o){return wl(e,o)?.trim()||void 0}function uhe(e,o,t,r,a,n){if(!t)return o;let s=null;for(let[l,d]of Object.entries(Av[e]??{})){let c=Qo(o,d),f=wl(t,c);if(f!==null){if(s??={...o},d===Jt){s[l]=gW(t,c);continue}s[l]=xc({ownerType:r,fields:a,slot:n},c)?.mark==="accentItalic"?Sa(f):f}}return s??o}function Ic(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(n,s)=>{for(let l of n){if(l?.props?.id===o)return s;for(let[d,c]of Object.entries(l?.props??{})){if(!sW(c))continue;let f=pW(l.type,d)?{owner:l,slot:d,direct:!0,nested:s!==null,underBox:!1}:s&&{owner:s.owner,slot:s.slot,direct:!1,nested:s.nested,underBox:s.underBox||l.type===U},u=r(c,f);if(u!==void 0)return u}}},a=r(t,null);return a===void 0?null:a}function Cl(e,o){let t=Ic(e,o);return t&&t.owner}function Qh(e,o){let t=Ic(e,o);return t&&t.slot}function ex(e,o){let t=Ic(e,o);return t&&(t.direct?t.owner:null)}function mhe(e,o){let t=Ic(e,o);if(t!==void 0)return t===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:t.nested,underBox:t.underBox}}function Rv(e,o,t){if(o?.type!==Fo)return[];let r=Cl(e,o.props?.id);if(!r){let l=Xd(ro(o.props))?.fields,d=l?.length?l.map(u=>({...u})):bW(o.props),c=(Go().get(Fo)?.fields??[]).filter(u=>u.everySource&&!d.some(p=>p.key===u.key)),f=[...d,...c];return t?f.filter(u=>(u.kind??"text")===t):f}let a=Qh(e,o.props?.id)??void 0,n=hW(o.props,r.type,a),s=n&&_v(r,"list",a).find(l=>l.key===n)?.fields||[];return t?s.filter(l=>(l.kind??"text")===t):s}function gc(e,o){return{[Eo]:"",[bl]:e.map(t=>({...t})),[Cv]:o.map(t=>({...t}))}}function bW(e,o){let t=e?.[Cv];if(!Array.isArray(t))return[];let r=t.flatMap(a=>{if(!a||typeof a!="object")return[];let{key:n,label:s,kind:l,multiline:d,alt:c,next:f}=a;if(typeof n!="string"||!n||typeof s!="string")return[];let u=l==="image"||l==="link"||l==="colour"?l:void 0;return[{key:n,label:s,...u?{kind:u}:{},...d===!0?{multiline:!0}:{},...typeof c=="string"&&c?{alt:c}:{},...typeof f=="string"&&f?{next:f}:{}}]});return o?r.filter(a=>(a.kind??"text")===o):r}import{useSyncExternalStore as M8}from"react";import{isNodeList as bc}from"efficient-easel/data";var Lv="Flex";function $n(e,o){return Qo(e)?typeof e?.[vt]=="string"?ox(o?.[vt]):"":ox(e?.[vt])}var ox=e=>typeof e=="string"?e.trim():"",yW=e=>e.type===Fo&&Array.isArray(e.props?.[bl])&&e.props[bl].some(o=>ox(o?.[vt])!==""),SW=new Intl.NumberFormat("en-US");function wW(e){return/^\d+$/.test(e)?SW.format(Number(e)):e}function bhe(e,o){let t=o?o.find(r=>r.key===e)?.value:pk(ll).find(r=>r.key===e)?.value;return t===void 0?null:wW(t)}var CW={[vt]:"any"};function tx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&($n(t)!==""||o&&$n(t,CW)!==""),a=o||yW(e),n=t;for(let[l,d]of Object.entries(t)){if(!bc(d))continue;let c=d.map(f=>tx(f,a));c.some(f=>f.names)&&(r=!0),c.some((f,u)=>f.node!==d[u])&&(n={...n,[l]:c.map(f=>f.node)})}if(e.type!==Lv)return{node:n===t?e:{...e,props:n},names:r};let s=ro(n);if(r&&!s&&(n={...n,[bo]:ll}),!r&&s===ll){let{[bo]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function Fv(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!bc(a))continue;let n=Fv(a,o,r.type===Lv?r:t);if(n!==void 0)return n}}}function yhe(e,o){if(!bc(e))return!0;let t=Fv(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=ro(t.props);return!r||r===ll}function Bv(e){let o=e?.content;if(!bc(o))return e;let t=o.map(r=>tx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function Dv(e){return tx(e).node}import{jsx as w,jsxs as Cr,Fragment as Tr}from"react/jsx-runtime";import{cloneElement as YI,createContext as Qj,useContext as HO,useEffect as eK,useId as WO,useRef as Xl,useState as Zl}from"react";import{useEasel as Rf,useSelectedHost as Ga}from"efficient-easel/easel";import{PIN_LENGTH as Pf,toDateKey as uke,fromDateKey as mke}from"efficient-shell/format";function kW(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function Bo(e){return typeof e=="string"?e:kW(e)?e.src:""}function whe(e,o,t){return rx(e,o.split("."),t)}function rx(e,o,t){if(o.length===0)return t(e);let[r,...a]=o,n=r.endsWith("[]"),s=n?r.slice(0,-2):r;if(!e||typeof e!="object"||Array.isArray(e))return e;let l=e;if(!(s in l))return e;let d=l[s];if(n){if(!Array.isArray(d))return e;let f=!1,u=d.map(p=>{let h=rx(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=rx(d,a,t);return c===d?e:{...l,[s]:c}}var vW=["upload","youtube"],TW="upload",vhe={upload:"Upload",youtube:"YouTube"},PW=["background","click"],EW="background",The={background:"Background",click:"Click to play"};function Mv(e){return vW.includes(e)?e:TW}function Hv(e){return PW.includes(e)?e:EW}var Nv=/^[A-Za-z0-9_-]{11}$/,OW=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function Wv(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(Nv.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!OW.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&Nv.test(a)?a:null}function ax(e,o){let t=o==="click"?"autoplay=1&playsinline=1&rel=0":`autoplay=1&mute=1&loop=1&playlist=${e}&controls=0&playsinline=1&rel=0&disablekb=1`;return`https://www.youtube-nocookie.com/embed/${e}?${t}`}function Gv(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function zv(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var nx="Play video";var sx={frame:"Video frame",image:"Image"},Phe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function kl(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":Bo(e.poster)?"image":"frame"}function Ehe(e){let[o,t]=kl(e)==="image"?[e.poster,e.videoFrame]:[e.videoFrame,e.poster];return Bo(o)||Bo(t)||void 0}function Uv(e){if(Bo(e.mediaVideo)){if(kl(e)==="frame")return Bo(e.videoFrame)?void 0:Bo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!Bo(e.poster))return Bo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var yc="videoFrames",lx="videoFramesNotOwn";function $v(e,o,t){let r=Bo(e.mediaVideo);if(!r||!o||kl(e)!=="frame"||Bo(e.videoFrame))return;let a=o[r],n=!!Bo(e.poster);if(a?.state==="ready")return null;if(n)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return t?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&t?"save-makes-frame":null;case"dark":return"starts-dark";case"outside":return"outside";case"unsupported":return"unsupported";case"failed":return"failed";default:return null}}function _W(e,o){let t=Bo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Ohe(e,o,t){let r=t?.[lx];if(!(Array.isArray(r)&&r.includes(e)))return _W(o,t?.[yc])}import{useSyncExternalStore as AW}from"react";function Sc(){let e=new Map,o=new Set,t=r=>(o.add(r),()=>{o.delete(r)});return{get:r=>e.get(r),has:r=>e.has(r),set(r,a){if(!(e.has(r)&&e.get(r)===a)){e.set(r,a);for(let n of o)n()}},use(r){let a=()=>r?e.get(r):void 0;return AW(t,a,a)}}}var Me="SiteHeader",Re="SiteFooter",ix="sections",Lhe=[Me,Re],jn=e=>e===Me||e===Re,jv=e=>`${e}:${ix}`;function Kv(e,o,t=[]){return{type:e,props:{id:o,[ix]:t}}}var RW=new Set(["Footer",Me,Re]);function Kn(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):RW.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function wc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Me?[o,...e]:[...e,o]}var Vv={[Me]:{max:3,takes:["Flex","Ticker"]},[Re]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function Yv(e,o,t){if(!jn(e))return!0;let r=Vv[e];return t<r.max&&r.takes.includes(o)}function qv(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!jn(n?.type))continue;let s=n.props?.[ix];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=Vv[n.type];return l.takes.includes(t?.type??"")?s.length>=l.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as LW}from"efficient-easel/draw";function vl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Cc(e,o,t){let r=vl(t?.zone),a=r?LW(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as FW}from"efficient-easel/data";var Xv="Footer",Zv=[Me,Xv,Re],Ta=e=>{let o=e?.content;return Array.isArray(o)?o:[]},$r=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Vn=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},Jv=e=>vl(e)?.ownerId??"";function Qv(e){let o=Kn(Ta(e)),t=o.some(r=>r?.type===Re);return o.filter(r=>r?.type===Me||r?.type===Re||r?.type===Xv&&!t)}function kc(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let n of a)r(n);return}if(!(!a||typeof a!="object")){if(FW(a)){let n=Vn(a);n&&t.add(n)}for(let n of Object.values(a))r(n)}};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,l]of Object.entries(o))n.has(s)||!t.has(Jv(s))||(n.add(s),r(l),a=!0)}}return t}function eT(e,o){let t=Ta(e).filter(r=>{let a=Vn(r);return typeof r?.type=="string"&&Zv.includes(r.type)||a!==void 0&&o(a)});return t.length?kc(t,$r(e)):new Set}function dx(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(Jv(a))?t:r)[a]=n;return{owned:t,rest:r}}function oT(e,o){if(!o)return e;let t=Qv(o);if(!t.length)return e;let r=t.filter(l=>l.type===Me),a=t.filter(l=>l.type!==Me),n={...e,content:[...r,...Ta(e),...a]},{owned:s}=dx($r(o),kc(t,$r(o)));return Object.keys(s).length&&(n.zones={...$r(e)??{},...s}),n}function cx(e,o){if(!o)return{page:e,chrome:null};let t=Qv(o),r=new Set(t.map(Vn).filter(C=>!!C)),a=[],n=[];for(let C of Ta(e)){let y=Vn(C);y&&r.has(y)||jn(C?.type)?n.push(C):a.push(C)}let s=new Map(n.map(C=>[Vn(C),C])),l=new Set,d=Kn(Ta(o)).flatMap(C=>{let y=Vn(C);if(!y||!r.has(y))return[C];let b=s.get(y);return b?(l.add(b),[b]):[]});for(let C of n)l.has(C)||d.some(y=>y?.type===C.type)||(d=C.type===Me?[C,...d]:[...d,C]);d=Kn(d);let c=d.length===Ta(o).length&&d.every((C,y)=>C===Ta(o)[y]),f=$r(e),u=kc(d,f),{owned:p,rest:h}=dx(f,u),I=dx($r(o),kc(t,$r(o))).owned,g={...o,content:c?o.content:[...d]},T=$r(o);if(T||Object.keys(p).length){let C={};for(let[y,b]of Object.entries(T??{}))y in I?y in p&&(C[y]=p[y]):C[y]=b;for(let[y,b]of Object.entries(p))y in C||(C[y]=b);g.zones=C,T&&BW(g.zones,T)&&(g.zones=T)}let S={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(I).length?S.zones=h:delete S.zones),{page:S,chrome:g}}function BW(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function tT(e,o){return t=>e(t)||t!==void 0&&Zv.includes(t)&&o()}var rT=null;function fx(e){rT=e}function Et(){return rT}var aT=null;function px(e){aT=e}function vc(){return aT}var ux=Sc();function nT(e,o,t){if(!o)return;let r={...ux.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};ux.set(e,r)}function sT(e,o){nT(e,o,"load")}function lT(e,o){nT(e,o,"save")}function Tc(e){return ux.use(e)}var mx=e=>!!Et()?.sectionOf(e);function iT(e,o=mx){return eT(e,o)}function dT(e,o,t,r=mx){if(t)return e&&iT(o,r).has(e)?void 0:t}function cT(e,o,t=mx){if(!e)return{};let r=[...iT(o,t)];return r.length?{[yc]:e,[lx]:r}:{[yc]:e}}import{ScreenDocumentContext as oK}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as ea,hidableText as tK}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as GO,LINK_FIELD_MARKER as rK,MEDIA_FIELD_MARKER as aK,SCAFFOLD_FIELD_MARKER as nK,TEXT_FIELD_MARKER as kr,foldMetaOf as oa,textFieldIdentifier as wke}from"efficient-easel/draw";import{jsx as IT}from"react/jsx-runtime";import{useCallback as MW}from"react";import{useEasel as HW}from"efficient-easel/easel";import{SettingsAction as WW}from"efficient-easel/panel";import{CORNER_SIDES as Pc,hasCornerSubset as Tl,normalizeCornerSides as Qt}from"efficient-easel/screen/lib/content/style-keys";function hx(e){return typeof e=="number"&&Number.isFinite(e)}function qhe(e,o){if(!hx(e))return;let t=Dd($t(e));if(Object.keys(t).length===0)return;let r=t[xx];if(typeof r!="string")return t;let a=Tl(o)?Pa(r,Qt(o)??[]):r;return{...t,[DW]:a}}var DW="--sf-section-radius",xx="--sf-card-radius";function Pa(e,o){return Pc.map(t=>o.includes(t)?e:"0").join(" ")}var fT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var NW="--sf-card-box-radius";function Ix(e){return typeof e=="number"&&Number.isFinite(e)}function Qhe(e,o){if(!Ix(e))return;let t=Dd($t(e))[xx];if(typeof t!="string")return;let r=Tl(o)?Pa(t,Qt(o)??[]):t;return{[NW]:r}}function pT(e,o){let t=e.find(n=>n?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides;return e.map(n=>n?.props?.id===o?n:{...n,props:{...n.props,cardCorners:r,cardCornerSides:a}})}function uT(e,o,t){let r=Cc(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:Ix(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:pT(n,d)}}}:{can:!1,reason:"unset",others:c}}function mT(e){return e.can?Ro("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function hT(e){return Ro("Applied to {n} card","Applied to {n} cards",e)}function xT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as GW}from"efficient-easel/screen/lib/document/use-section-ops";var zW="apply-corners-to-siblings",UW="Apply to all cards";function $W({plan:e,onPress:o}){return IT(WW,{id:zW,label:i(UW),note:mT(e),disabled:!e.can,doneLabel:hT(e.others),onPress:o})}function gT(){let{appState:e,config:o}=HW(n=>n),t=GW(),r=uT(o,e.data.content??[],e.ui.itemSelector),a=MW(()=>{xT(r,t.replaceComponent)},[r,t]);return IT($W,{plan:r,onPress:a})}import{isShown as ET,lazyShowWhenContext as r3}from"efficient-shell/format";var jr="product",Ec="recordType",bT={key:jr,label:"Product",fields:[]},jW=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,KW=/^[a-z][A-Za-z0-9]*$/,VW=["text","date","images"],gx=new Map,yT=0;function YW(e){if(typeof e.key!="string"||!jW.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===jr)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let o=new Set;for(let t of e.fields){if(typeof t.key!="string"||!KW.test(t.key)||o.has(t.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(t.key)}.`);if(!VW.includes(t.kind))throw new Error(`The field ${t.key} of ${e.key} has no kind ${JSON.stringify(t.kind)}.`);o.add(t.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(t=>({...t}))}}function uxe(e){let o=e.map(YW);for(let t of o)gx.set(t.key,t);o.length&&(yT+=1)}function bx(){return[bT,...gx.values()]}function qW(e){return e===jr?bT:gx.get(e)??null}function yx(){return yT}function Pl(e){let o=e?.[Ec];return typeof o!="string"?jr:o.trim()||jr}function Sx(e){return Pl(e)===jr}function mxe(e,o){let t=qW(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Oc="product",ST="tyre",XW=[Oc,ST];function Ixe(e){return XW.includes(e)}var ZW="productType",JW={[Oc]:"alloy-wheel",[ST]:"tyre"},QW=["alloy-wheel","tyre"];function wT(e,o){return Sx(o)?CT(o)??JW[e]??null:null}function CT(e){if(!Sx(e))return null;let o=e?.[ZW];return typeof o=="string"&&QW.includes(o)?o:null}function gxe(e){let o=e?.root;return CT(o?.props)}var wx="Main Pages",e3="Dynamic Pages",Cx="dynamic",o3="dynamic";function Ea(e){return e.kind===o3}var kx="lightbox";function kT(e){return e.kind===kx}function vT(e){let o=[],t=[];for(let r of e){if(Ea(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??wx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Cx,label:e3,rows:t})}return o}var _c=null,TT=null;function t3(e,o){_c=e,TT=o}function kxe(e){t3(e,null)}function vxe(){return _c}function El(){return Ea({kind:TT})||_c===Oc}function Txe(e){return wT(_c??"",e)??"alloy-wheel"}function Pxe(e){return El()?Pl(e):null}function vx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!ET(Hh(s),o??{},t)){r=!0;continue}let l=a3(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function a3(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||ET(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function OT(e,o,t,r){let a=Cc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function PT(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return PT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>PT(a,o)))return!0;return!1}function Fxe(e,o={}){return r3({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>El(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as l3}from"efficient-easel/screen/lib/content/length-units";import{isLengthUnit as n3,lengthOf as s3}from"efficient-easel/screen/lib/content/length-units";function Oa(e,o){let t=s3(e,n3(o)?o:"px");return typeof t=="number"?`${t}px`:t}var _T=1,i3="cardImageUnit",Tx={kind:"radius",unitKey:i3},AT={kind:"radius"};function d3(e){return $t(e)}function zxe(e,o){if(l3(o)&&o!=="px"){let r=K(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Oa(r,o)}:{}}let t=d3(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}var RT=1,LT="Corners";function c3(e){return $t(e)}function Kxe(e,o){let t=c3(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:Tl(o)?Pa(r,Qt(o)??[]):r}}var BT=12,DT=6,f3=800,xr={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},Px=Object.keys(xr),NT=[2,3,4,6];function Ex(e,o){return Px.filter(t=>t===o||e===null||xr[t].across===e)}function MT(e){return typeof e!="string"||e===""?null:xr[e]??null}function FT(e,o){return o?DT/e.acrossPhone:BT/e.across}function Ox(e){return e.ratio?_C.find(o=>o.shape===e.ratio)?.ratio??null:null}function HT(e){return[...e.lead??[],...e.desktop]}var p3="sf-wall--";function u3(e){return`${p3}${e}`}function qxe(e){let o=xr[e],t=`.${u3(e)}`,r=[],a=(l,d,c)=>`${t}:has(> :nth-child(${l}n+${d+c}):last-child) > :nth-last-child(-n+${c})`,n=(l,d,c=[])=>{let f=[],u=l.length,p=c.length;c.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${g+1}){grid-column:span ${h};grid-row:span ${I}}`)}),l.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${u}n+${p+g+1}){grid-column:span ${h};grid-row:span ${I}}`)});for(let h=1;h<u;h+=1)f.push(`${a(u,p,h)}{grid-column:span ${d};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${BT},minmax(0,1fr))}`);let s=Ox(o);if(s&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${s[0]}/${s[1]};height:auto}`)),r.push(...n(o.desktop,FT(o,!1),o.lead)),r.push(`@media (max-width:${f3}px){`),r.push(`${t}{grid-template-columns:repeat(${DT},minmax(0,1fr))}`),r.push(...n(o.phone,FT(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,d]=o.phone[0],c=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,c,f)}{grid-column:span ${l};grid-row:span ${d}}`)}return r.push("}"),r.join("")}var Ac=12,WT=1,m3=3;var h3=3;function _x(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function x3(e){return _x(e,1,Ac)??h3}function Jxe(e,o){return _x(e,WT,m3)??(x3(o)===4?2:WT)}function Qxe(e){return e==null||e===""?null:_x(e,1,Ac)}var eIe="data-sf-span";function oIe(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(MT(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as I3}from"react/jsx-runtime";import*as g3 from"efficient-easel/icons";function Rc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=g3[`${o}Icon`];return t?I3(t,{size:16}):null}import{jsx as Kr,Fragment as S3,jsxs as YT}from"react/jsx-runtime";import{useContext as w3,useEffect as C3,useId as k3,useState as qT}from"react";import{SettingsField as v3,SettingsSwitch as T3}from"efficient-easel/panel";import{AnchorIcon as P3}from"efficient-easel/icons";import{ScreenDocumentContext as E3}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as O3}from"efficient-shell/ui";import{slugify as _3}from"efficient-shell/format";import{slugify as b3}from"efficient-shell/format";function Ol(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Lc=e=>b3(Ol(e));var Fc="homepage";import{slugify as y3}from"efficient-shell/format";var GT=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function zT(e){return e.offersCommerce&&e.offersService?GT:GT.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Ax="#popup:";function UT(e){return`${Ax}${e}`}function $T(e){return e.startsWith(Ax)&&e.slice(Ax.length).trim()||null}function _l(e){return e===Fc?"/":`/${e}`}function jT(e){return`/journal/${e}`}function fIe(e){return`/wheels/${e}`}function Bc(e,o){return`${_l(e)}#${o}`}function KT(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Ol(a?.props?.anchor);if(!n)continue;let s=y3(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function pIe(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function VT(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as A3}from"efficient-easel/draw";function XT({value:e,onChange:o,nameBox:t}){let r=A3(e).text,[a,n]=qT(!1),s=a||r.trim()!=="",l=k3();return YT(S3,{children:[Kr(v3,{label:i("Add an anchor"),labelId:l,icon:Kr(P3,{}),action:Kr(T3,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Kr(R3,{name:r})]})}function R3({name:e}){let o=w3(E3),t=o?.templateId?"":o?.currentSlug??"",[r,a]=qT("");C3(()=>a(jd()),[]);let n=_3(e);if(!n||!t)return null;let s=`${r}${Bc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Kr("div",{className:"sf-anchor-link",children:Kr(O3,{value:s,label:i("link"),size:"sm",children:YT("span",{className:"sf-anchor-link-text",children:[Kr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Kr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as er,jsxs as L3}from"react/jsx-runtime";import{Fragment as F3}from"react";import{Button as Dc,Tooltip as B3}from"efficient-shell/ui";function ZT({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?er("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:er(B3,{content:n,className:d?"sf-name-tip":void 0,children:er("p",{className:"sf-blogsource-status","data-state":e,children:[o?er(F3,{children:o},"status"):null,t?er(Dc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?er(Dc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((c,f)=>f?[" \xB7 ",c]:[c])})})}):L3("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[er("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?er(Dc,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?er(Dc,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,er("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as sK,EyeIcon as lK,AnimationIcon as iK,BackgroundIcon as OO,BorderAllIcon as dK,BlockSectionIcon as cK,ColumnWidthsIcon as qI,ColumnsIcon as zO,CornerIcon as UO,DirectionDownIcon as fK,DirectionLeftIcon as pK,DirectionRightIcon as uK,DirectionUpIcon as mK,EditIcon as hK,GapIcon as xK,GridIcon as IK,GroundIcon as jI,HashIcon as gK,HeightIcon as $O,ImageIcon as bK,ListIcon as yK,LocationIcon as _O,PaddingBottomIcon as jO,PaddingLeftIcon as KO,PaddingRightIcon as VO,PaddingTopIcon as XI,PageIcon as SK,StickyIcon as YO,SearchIcon as wK,SquareIcon as CK,TypeIcon as kK,WidthIcon as vK}from"efficient-easel/icons";import{jsx as ze,Fragment as _a,jsxs as Aa}from"react/jsx-runtime";import{CaptionIcon as D3,DateIcon as N3,FlagIcon as M3,TitleIcon as H3,ButtonIcon as W3,DollarIcon as G3,HashIcon as z3,LinkIcon as U3,NoteIcon as $3,TagIcon as j3,TextLinesIcon as K3}from"efficient-easel/icons";var JT={body:K3,button:W3,link:U3,label:j3,number:z3,price:G3,note:$3,name:M3,date:N3,caption:D3,title:H3},QT={eyebrow:Aa(_a,{children:[ze("path",{d:"M5 6.5h5"}),ze("path",{d:"M5 12.5h14"}),ze("path",{d:"M5 18h11"})]}),heading:Aa(_a,{children:[ze("path",{d:"M6.5 5v14"}),ze("path",{d:"M17.5 5v14"}),ze("path",{d:"M6.5 12h11"})]}),intro:Aa(_a,{children:[ze("path",{d:"M4 5.5v13"}),ze("path",{d:"M8 7.5h12"}),ze("path",{d:"M8 12h12"}),ze("path",{d:"M8 16.5h8"})]}),value:Aa(_a,{children:[ze("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),ze("path",{d:"M6.5 12h7"})]}),quote:Aa(_a,{children:[ze("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),ze("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Aa(_a,{children:[ze("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),ze("path",{d:"M8 9.5h8"}),ze("path",{d:"M12 9.5v5"})]}),meta:Aa(_a,{children:[ze("path",{d:"M4 7h16"}),ze("path",{d:"M4 14h3.5"}),ze("path",{d:"M10.5 14h3"}),ze("path",{d:"M17 14h3"})]})};function Rx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=JT[e];return n?ze("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:ze(n,{size:o})}):ze("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:QT[e]})}var LIe=Object.keys(JT);var FIe=Object.keys(QT);import{parseHexColor as J3}from"efficient-shell/format";import{parseHexColor as sP}from"efficient-shell/format";import{COLOR_SLOTS as lP,FILL_COLOR_SLOTS as X3,colorRole as Z3,fillColorRole as iP}from"efficient-shell/markup";import{parseHexColor as oP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as V3}from"efficient-shell/markup";var Nc=e=>{let o=gC.find(t=>t.role===e);return o?`var(${o.token})`:""},Y3=e=>Nc(e)?`var(--theme-${e})`:"",eP={main:{ink:Wr.accent,page:Wr.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Wr.text,page:Wr.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Nc("bg"),page:Y3("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Wr.labels,page:Wr.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Nc("surface"),page:Nc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function Vr(e){return Object.hasOwn(eP,e)?eP[e]:void 0}var Lx="#9ca3af";function Yn(e,o,t){let r=Vr(e);return r?{hex:oP(o[r.key]??"")??"",words:r.words(t)}:null}function tP(e,o){return V3.flatMap(t=>{let r=Yn(t,e,o);return r&&Vr(t)?.ink?[{name:t,label:r.words,value:r.hex||Lx}]:[]})}var q3=["main","text","background"];function rP(e){let o=new Set,t=[];return lo(e).themes.forEach((r,a)=>{for(let n of q3){let s=Vr(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?oP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Ir(e){return Vr(e)?.ink??""}function or(e){if(typeof e!="string")return null;let o=iP(e.trim());return o?.kind==="slot"&&Ir(o.slot)?o.slot:null}var aP={accent:"main",labels:"muted"};function et(e){return Object.hasOwn(aP,e)?aP[e]:e}function qn(e){if(!e)return"";if(e.startsWith("#"))return sP(e)===e.toLowerCase()?e:"";let o=Z3(et(e));return o?.kind==="slot"?Ir(o.slot):""}function Xn(e,o=lP){return o.flatMap(t=>{let r=Vr(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Lx}]:[]})}function dP(e){let o=iP(et(e));return o?.kind==="slot"?Ir(o.slot):""}function Fx(e){let o=e?.trim();return o?X3.find(t=>Ir(t)===o)??null:null}function cP(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of lP){let l=Ir(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=nP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=nP(String(n.fillStyle))),f&&(o[s]=f)}return o}function nP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return sP(o);let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}var Q3="#ffffff";function Bx(e){return fP(e)||(eG(e)?e:Q3)}function fP(e){let o=or(e);return o?Vr(o)?.page??"":""}function eG(e){return typeof e=="string"&&J3(e)===e.toLowerCase()||fP(e)!==""}function XIe(e){return{"--bg":Bx(e)}}import{parseHexColor as oG}from"efficient-shell/format";import{fillColorRole as tG}from"efficient-shell/markup";function Ra(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var sge="sf-card",Yr={min:0,max:100,step:5,fallback:0,unit:"%"},rG=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],aG="68%",lge={desktop:20,phone:20,side:40,sidePhone:24},ige="sf-box-sides";function Nx(e){return typeof e=="string"&&e.trim()!==""}function dge(e){return Nx(typeof e?.bgImage=="string"?e.bgImage:null)||Mc(e)}function Mc(e){return Qo(e,Ad)!==""}function cge(e,o){return o||!Mc(e)?e:{...e,[Ad]:""}}function fge(e,o){return wl(o,Qo(e,Ad))?.trim()||null}function pP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(Yr.max,Math.max(Yr.min,t))/100).toFixed(2);return o!=="bottom"?{background:Wd(Number(r))}:{background:`linear-gradient(0deg, ${Wd(Number(r))} 0%, ${Wd(0)} ${aG})`}}var Hc=e=>typeof e=="string"?oG(e.trim()):null,Dx=e=>{let o=Hc(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&dP(t)||null},Wc=e=>{if(typeof e!="string")return null;let o=tG(et(e.trim()));return o?.kind==="slot"?o.slot:null},nG="swatch";function pge(e,o){if(!o)return null;let t=wl(o,Qo(e,nG)),r=or(t);return Hc(t)??(r&&Ir(r)||null)}var sG={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function uge(e,o,t){return Ra(sG,Dx(e),Dx(o),Dx(t))}var lG={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function mge(e){let o=pP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(pP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>rG.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ra(lG,String(o.background),n!==void 0||s!==void 0?t(c,f):null,l!==void 0||d!==void 0?t(l??c,d??f):null)}function hge(e,o){let t={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,a]=t[e]??t.center,[n,s]=o==="column"?[a,r]:[r,a],l={start:"justify-start",center:"justify-center",end:"justify-end"},d={start:"items-start",center:"items-center",end:"items-end"};return`${l[n]} ${d[s]}`}function uP(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(Mx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Mx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Mx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Mx(a,o,t+1))}function mP(e,o){let t=e?.content;return Array.isArray(t)?Gc(t,o,0)??[]:[]}function Gc(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=Gc(a,o,t+1);if(n)return n}return null}let r=e.props;if(r&&typeof r=="object"){if(r.id===o)return[];for(let a of Object.values(r)){let n=Gc(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=Gc(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as _o,SettingsDrill as TK,SettingsField as ao,SettingsGroup as PK,SettingsSegmented as EK,SettingsBorder as OK,SettingsSidesEach as _K,SettingsSwitch as ZI,borderSides as AK,borderStartEach as RK}from"efficient-easel/panel";import{ListField as LK}from"efficient-easel/fields";import{DisplayChips as FK}from"efficient-shell/ui";import{HIDDEN_KEY as iG,hiddenInEveryView as dG,hiddenInView as Hx,hiddenKeyOf as hP}from"efficient-easel/screen/lib/content/view-hide";var cG={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},fG={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},xP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function zc(e,{atSectionLine:o=!1}={}){return(o?fG:cG)[xP(e)]}var Zn=[iG,hP("tablet"),hP("mobile")];function IP(e){return{desktop:Hx(e,"desktop"),tablet:Hx(e,"tablet"),mobile:Hx(e,"mobile")}}function Al(e){return dG(e)}function bge(e){let o=IP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var pG={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},uG={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function yge(e,{atSectionLine:o=!1}={}){return(o?uG:pG)[xP(IP(e))]}function Jn(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function Uc(e,o){return Jn(e)[o]!==!1}function Wx(e,o,t){let r=Jn(o)[t];return typeof r=="boolean"?r:Uc(e,t)}function gP(e){return Object.values(Jn(e)).some(o=>o===!1)}function bP(e){return Object.keys(Jn(e)).length>0}function yP(e,o,t){let r={...Jn(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function SP(e,o,t){return{...Jn(e),[o]:t}}function Cge(e,o,t,{atSectionLine:r=!0}={}){let a=!Uc(e,t);return zc({desktop:a,tablet:a,mobile:!Wx(e,o,t)},{atSectionLine:r})}import{AlignmentGrid as BK,ColorSwatch as DK,CornersInput as NK,DatePicker as $ke,DateTimePicker as MK,FOCAL_DEFAULT as jke,IconPicker as qO,COLUMN_COUNT_MAX as AO,COLUMN_SHARE_MIN as HK,COLUMN_SHARES_EQUAL as WK,resolveColumnShares as XO,WidthsBar as GK,useShellStrings as zK,IconButton as ZO,InputNumber as RO,Slider as UK,Tooltip as JI}from"efficient-shell/ui";import{backendOf as mG}from"efficient-easel/screen/lib/session";var Ve=mG,$c=e=>e.blocks;async function wP(e){let o=e.trim();if(!o)return null;let t=Ve().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var Gx="Lookup busy \u2014 try again in a moment.",jc=e=>typeof e=="number"&&Number.isFinite(e);function _ge(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:jc(t.lat)&&t.lat!==o.lat||jc(t.lng)&&t.lng!==o.lng:!1})}async function Age(e,o,{geocode:t=wP,courtesyGapMs:r=1100}={}){let a=s=>new Promise(l=>setTimeout(l,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],l=!1;for(let d of e){if(!d?.geocode?.pending){s.push(d);continue}l&&r>0&&await a(r),l=!0;try{let c=await t(o(d));s.push(c?{...d,lat:c.lat,lng:c.lng,geocode:{...d.geocode,pending:!1,ok:!0,status:`Found \u2014 ${c.label.split(",").slice(0,3).join(",").trim()}`,lat:c.lat,lng:c.lng}}:{...d,geocode:{...d.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...d,geocode:{...d.geocode,pending:!1,ok:!1,status:Gx}})}}n=s}return n.map(s=>{let l=s?.geocode;if(!l)return s;if(l.manual&&l.lat===void 0&&l.lng===void 0)return{...s,geocode:{...l,lat:s.lat,lng:s.lng}};let d=jc(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=jc(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return d!==s.lat||c!==s.lng?{...s,lat:d,lng:c}:s})}import{jsx as zo,jsxs as Ux}from"react/jsx-runtime";import{useRef as hG}from"react";import{ColorPicker as xG,ColorPickerPanel as IG,ColorSwatch as gG,HexInput as bG,Popover as yG,Tooltip as SG,colorFill as wG,colorSwatchClasses as CG,useShellStrings as kG}from"efficient-shell/ui";import{SettingsDefaultReset as vG,SettingsField as TG}from"efficient-easel/panel";import{typedHex as zx}from"efficient-easel/pick";var CP="Not set";function PG({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return zo(OG,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function EG(){let{theme:e}=xe();return rP(e)}function OG({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=EG(),d=e?null:zx(n??""),c=a!==void 0&&(!e||zx(a)!==zx(e))?a:null,f=u=>{u!==e&&o(u)};return Ux("div",{className:"sf-colour",children:[s?zo(_G,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):zo(xG,{id:r,value:e,onChange:f,label:t,presets:l,fallback:d??void 0,size:"md",align:"start"}),c!==null?zo("span",{className:"sf-colour-caption",children:c}):zo("span",{className:"sf-colour-hexwrap",children:zo(bG,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(CP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function _G({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=kG().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=hG(c);return f&&(u.current=c),zo(yG,{id:r,trigger:zo("span",{"aria-hidden":"true",className:"absolute inset-0",style:wG(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:CG({size:"md"}),"aria-label":l.panel(t),align:"start",children:Ux("div",{className:"sf-colour-window",children:[zo("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>zo(SG,{content:p.label,children:zo(gG,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),zo(IG,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function Uo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return Ux(TG,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?zo(vG,{words:ne()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:[PG({...l,label:e}),s]})}function Rl({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:d}){let c=!!t;return zo(Uo,{label:e,icon:o,value:t,inherited:c?void 0:r,onChange:n,changed:c,onReset:s,resetTo:a,hint:l,choices:d})}import{keptByRow as KI}from"efficient-easel/screen/lib/document/style-fields";import{jsx as AG}from"react/jsx-runtime";import{useEffect as RG,useState as LG}from"react";import{clearRangeOf as FG,markSelection as BG,useCaretEdit as DG}from"efficient-easel/copy";import{TextToolbar as NG}from"efficient-shell/ui";function MG(e,o,t){return BG(e,o,t,_k)}function kP(e,o){let t=FG(o,e.length),r=Rk(e,t.start,t.end);return r.text===e?null:r}function HG(e){let[o,t]=LG(null);return RG(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let s=n.selectionStart??n.value.length,l=n.selectionEnd??s;t(d=>d&&d.start===s&&d.end===l?d:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function WG({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=DG({target:e,onChange:t}),[s,l]=HG(e),d=p=>n(h=>{let I=MG(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=Ek(),f={};if(s)for(let p of c)f[p.style]=Ak(o,s.start,s.end,p.style);let u=r?null:kP(o,s);return AG(NG,{offered:new Set(c.map(p=>p.style)),onMark:p=>d(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,h=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,I=kP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var $x=WG;import{deviceField as dt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as $K,NoControlMark as jK,noControlField as JO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var jx="__ownBox";function vP(e){return!!e&&typeof e=="object"&&e[jx]===!0}var Kx="sfPanelOnly";function Qn(e){return!!e&&typeof e=="object"&&e[Kx]===!0}function Kc(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var Vc=void 0;import{phoneKey as is,tabletKey as QI}from"efficient-easel/draw";import{jsx as Yc,Fragment as GG,jsxs as zG}from"react/jsx-runtime";import{useRef as UG}from"react";import{SettingsDefaultReset as $G}from"efficient-easel/panel";import{effectTiles as jG}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as TP,describedAs as KG,onDesktopWords as VG,phoneTwinFields as PP}from"efficient-easel/screen/lib/document/box-fields";function YG({row:e,read:o,...t}){let r=o(ot(),t.followsView??"desktop");return e({...t,follows:r})}function gr(e,o){return Object.fromEntries(Wo.map(t=>{let r=ye(e,t);return[r,PP(e,o(t),TP)[r]]}))}function qc(e,o,t){let r=o.render,a={...o,render:n=>Yc(YG,{...n,row:r,read:t})};return gr(e,n=>n==="desktop"?o:a)}function qG({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(ot(),o.followsView??"desktop"),n=t?o.value:a,s=UG(null),{preview:l}=e,d=jG({label:i(e.label),options:e.values.map(f=>({value:f,label:i(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:l?f=>s.current&&l(s.current,f):void 0}).render,c=d({value:n,onChange:f=>o.onChange(f??e.fallback)});return zG(GG,{children:[l?Yc("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&Yc($G,{words:ne()?.panel,label:i(e.tileWord),changed:!0,detail:VG(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function Xc(e,o){let t=KG({type:"custom",render:r=>Yc(qG,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return PP(e,t,TP)}import{jsx as Yx,Fragment as JG}from"react/jsx-runtime";import{createContext as QG,useContext as ez}from"react";var Zc={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Jc={Events:["posts"],SubscribeBlogs:["posts"]};var XG=["anchor"],ZG=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Ll(e){return XG.includes(e)||ZG.test(e)}var Vx={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};Vx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var fbe=Object.fromEntries(Object.entries(Zc).map(([e,o])=>[e,Object.keys(o)])),pbe=Object.fromEntries(Object.entries(Jc).map(([e,o])=>[e,[...o]]));import{NoControlMark as oz}from"efficient-easel/screen/lib/document/panel-no-control-mark";var EP=QG(!1);function OP({children:e}){return Yx(EP.Provider,{value:!0,children:e})}function tz(){return ez(EP)}function _P({name:e,children:o}){return!tz()||!e||!rz(e)||Ll(e)?Yx(JG,{children:o}):Yx(oz,{})}function rz(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var qx="off",RP="none",Xx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],LP=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function ybe(e){return to(Xx,qx,e)}var AP="sf-card-index",Fl="sf-card-index",Sbe="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",az={plain:`counter(${Fl})`,padded:`counter(${Fl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Fl}, decimal-leading-zero)`};function wbe(e,o){return o==="off"?"":`.${e}{counter-reset:${Fl}}.${e} .${AP}{counter-increment:${Fl}}.${e} .${AP}::before{content:${az[o]}}`}function Cbe(e){return e==="hairline"?"border border-line hover:border-accent":""}var FP=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as KK}from"efficient-easel/draw";import{jsx as $o}from"react/jsx-runtime";import{SettingsDefaultReset as pz,SettingsField as Zx}from"efficient-easel/panel";import{useSelectedHost as uz}from"efficient-easel/easel";import{FOCAL_DEFAULT as mz}from"efficient-shell/format";import{ImageIcon as Jx,PlayIcon as DP}from"efficient-easel/icons";import{ImageFocusPoint as hz,MediaUploadField as xz}from"efficient-shell/ui";import{useContext as Iz}from"react";import{ScreenDocumentContext as gz}from"efficient-easel/screen/components/ScreenDocumentContext";import{phoneKey as bz,tabletKey as NP}from"efficient-easel/draw";import{usePreviewDevice as yz}from"efficient-easel/draw/client";import{formatFocal as nz,parseFocal as sz}from"efficient-shell/format";var lz="sf-focus-phone",iz="--sf-focus-phone",dz="sf-focus-tablet",cz="--sf-focus-tablet",Bl=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=sz(e);return nz(o,t)};function BP(e,o){return Ra(fz,null,Bl(o),Bl(e))}var fz={tabletClass:dz,tabletVar:cz,phoneClass:lz,phoneVar:iz};import{shownTier as Qx}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as Sz}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as wz}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Cz}from"efficient-easel/screen/lib/host";import{useEaselSession as kz}from"efficient-easel/screen/lib/session-context";function vz(e,o,t,r=!0){let a=Qx(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):mz;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=a==="tablet"?NP(o):bz(o),l=Bl(e[s])??void 0,d=a==="mobile"&&r?Bl(e[NP(o)])??void 0:void 0,c=d??n;return{ownView:!0,followed:c,followsView:d?"tablet":"desktop",own:l,focus:l??c,key:s}}function Tz(e,o,t){let r=uz();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Qx(e)))return null;let n=vz(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,Vc)}}function MP({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=Cz(),f=kz(),u=i(t),p=yz(),h=r.startsWith("video"),I=Tz(p,h?void 0:n,s),g=!!n&&Qx(p)!=="desktop",T=Iz(gz),S=Dl(),C=l&&d?{video:d,frame:l}:null,y=v=>wz(c,{accept:r,title:u,...v?{file:v}:{}}).then(M=>!M||!C?M?.url??null:(S({[C.video]:M.url,[C.frame]:M.posterUrl??""}),null)),b=C?v=>v?o(v):S({[C.video]:"",[C.frame]:""}):o,E=Bo(e);if(g&&(!I||!E))return null;if(T&&!T.capabilities.mediaEditing)return $o(Zx,{label:u,icon:h?$o(DP,{}):$o(Jx,{}),children:$o("div",{className:"sf-image-slot-inert",children:h?i("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):i("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let H=I?.ownView&&E?$o(pz,{words:ne()?.panel,label:i("Image focus"),changed:!!I.own,detail:Sz(v=>i(v),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?$o(Zx,{label:u,icon:$o(Jx,{}),action:H,children:$o("div",{style:{flex:"1 1 auto",minWidth:0},children:$o(hz,{value:I.focus,onChange:I.set,label:i("Image focus"),image:E,hint:null})})}):$o(Zx,{label:u,icon:h?$o(DP,{}):$o(Jx,{}),children:$o("div",{style:{flex:"1 1 auto",minWidth:0},children:$o(xz,{value:E,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:Ve(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as HP}from"react/jsx-runtime";import{useId as Pz}from"react";import{FieldSelect as Ez}from"efficient-easel/fields";import{SettingsField as Oz}from"efficient-easel/panel";function _z(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function WP({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=Pz(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return HP(Oz,{label:i(e),labelId:d,icon:n,hint:s,children:HP(Ez,{id:c,multiple:!0,value:f,options:_z(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as io,jsxs as Fa,Fragment as nU}from"react/jsx-runtime";import{useCallback as QP,useContext as sU,useId as tE,useRef as eE,useState as oE}from"react";import{ThemeIcon as lU}from"efficient-easel/icons";import{Button as iU,useClickOutside as dU}from"efficient-shell/ui";import{SettingsField as cU}from"efficient-easel/panel";import{ScreenDocumentContext as fU}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as ce,jsxs as Xr,Fragment as Hz}from"react/jsx-runtime";import{parseHexColor as Wz}from"efficient-shell/format";import{Button as oI,IconButton as Gz,Tooltip as zz}from"efficient-shell/ui";import{jsx as qr,jsxs as Az}from"react/jsx-runtime";import{AccentIcon as Rz}from"efficient-easel/icons";import{Button as Lz,Tooltip as Fz}from"efficient-shell/ui";function eI(e){return Mo(e).background}function Bz(e){let o=Br(e.accent,eI(e));return o===null?null:{ratio:o,grade:Dn(o)}}function Dz(e){let o=eI(e),t=Br(e.accent,o);return t===null?[]:rC(e.accent).filter(r=>{let a=Br(r,o);return a!==null&&a>t&&Dn(a)==="good"})}var Nz={good:"Easy to read","large-only":Bn["large-only"],hard:Bn.hard};function GP({value:e,onChange:o}){let t=Bz(e),r=t?.grade,a=t&&t.grade!=="good"?Dz(e):[];return qr(Uo,{label:i("Main color"),icon:qr(Rz,{}),hint:t?i(Nz[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?qr("div",{className:"w-full min-w-0",children:Az("div",{className:"sf-readability",children:[qr("p",{className:"sf-readability-advice",children:Mz(r,!0)}),qr("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Br(n,eI(e));return qr(Fz,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:qr(Lz,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:qr("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),onClick:()=>o({...e,accent:n}),children:s?`${s.toFixed(1)}:1`:n.toUpperCase()})},n)})})]})}):null})}function Mz(e,o){return e?e==="good"?i("This color reads clearly on your pages."):o?i("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):i("This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light."):i("Pick a color to see how it reads.")}import{ButtonIcon as Uz,ChevronDownIcon as UP,ChevronUpIcon as $z,GroundIcon as jz,LayoutIcon as Kz,SquareIcon as Vz,TextSmallIcon as Yz,TypeIcon as zP}from"efficient-easel/icons";var Nl=e=>i("Theme {n}",{n:e+1});function $P({colors:e}){let o=Mo(e),t=rl(e)??o.accent;return Xr("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[ce("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:i("label")}),Xr("span",{className:"sf-theme-headline",children:[i("Heading")," ",ce("span",{style:{color:o.accent},children:i("main")})]}),ce("span",{className:"sf-theme-body",children:i("body text")}),Xr("span",{className:"sf-theme-row",children:[ce("span",{className:"sf-theme-btn",style:{background:t,color:Qm(e,o.accent)},children:i("button")}),ce("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var tI={"Text color":ce(zP,{}),"Label color":ce(Yz,{}),Background:ce(jz,{}),"Panels & cards":ce(Kz,{}),Borders:ce(Vz,{}),"Button color":ce(Uz,{}),"Button text color":ce(zP,{})};function qz({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return ce(Uo,{label:i(e),icon:tI[e],id:n,value:t,onChange:s=>r(o,s)})}function Xz({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&Wz(e)===e.toLowerCase(),s=n?e:o;return ce(Uo,{label:i("Button color"),icon:tI["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function Zz({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=aC(e),s=Qm(e,o),l=rl(e)??o,d=Dn(Br(s,l)??0);return ce(Uo,{label:i("Button text color"),icon:tI["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(Bn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var Jz=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{moduleBreak:!0},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function rI({colors:e,onChange:o,idPrefix:t}){let r=Mo(e);return ce(Hz,{children:Jz.map(a=>"colour"in a?ce(GP,{value:e,onChange:o},"colour"):"moduleBreak"in a?ce("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?ce(Xz,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?ce(Zz,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):ce(qz,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function Qc({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=Mo(o),f=Nl(e),u=e<Jm.length&&!o.brandInk?Jm[e]:null,p=Dn(Br(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return Xr("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[ce("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:ce($P,{colors:o})}),Xr("div",{className:"sf-theme-foot",children:[ce("span",{className:"sf-theme-name",children:f}),p!=="good"&&ce("span",{className:"sf-theme-warn",children:i(Bn[p])}),n&&l&&I&&ce("span",{className:"sf-theme-edit",children:ce(zz,{content:a?i("Collapse"):i("Edit colors"),children:ce(Gz,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?i("Collapse {name}",{name:f}):i("Edit colors for {name}",{name:f}),onClick:l,children:a?ce($z,{size:14}):ce(UP,{size:14})})})}),n&&l&&!I&&ce(oI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&Xr("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[ce(rI,{colors:o,onChange:g=>d?.(g)}),u&&ce(oI,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>d?.({...u}),children:h?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function jP({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return Xr("div",{className:"sf-secttheme-btn",children:[ce("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:l,onKeyDown:d,children:e?ce($P,{colors:e}):ce("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Xr("div",{className:"sf-theme-foot",children:[ce("span",{id:t,className:"sf-theme-name",children:o}),c&&ce(oI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:c,children:i("Edit")}),ce("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:ce(UP,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as dI,useEffect as XP,useRef as rf}from"react";import{currentEaselSession as oU}from"efficient-easel/screen/lib/session";import{useEaselSession as tU}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as Qz}from"react";var VP,aI=null,La=null,ef=0,nI=new Set;function sI(e){VP=e;for(let o of nI)o()}function lI(e){aI=e,ef+=1,La&&clearTimeout(La),La=null,sI(void 0)}function of(e){ef+=1,sI(e)}function br(e=250){aI&&(La&&clearTimeout(La),La=setTimeout(()=>{La=null;let o=aI;if(!o)return;let t=++ef;o().then(r=>{t===ef&&sI(r)}).catch(()=>{})},e))}function KP(){return VP}function eU(e){return nI.add(e),()=>{nI.delete(e)}}function tf(){return Qz(eU,KP,KP)}var iI=new Set;function YP(e){return iI.add(e),()=>{iI.delete(e)}}async function qP(){let e=(await Promise.allSettled([...iI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as rU}from"efficient-easel/screen/lib/backend-error";function ZP(e=oU()){return(o,t,r)=>{let a=Ve(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new rU("invalid","This backend stores no site theme."))}}function JP(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function aU(e,o=ZP()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=JP({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(l){return{status:"failed",error:l}}}function es({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=rf(null),n=rf({}),s=tU(),l=rf(r);l.current=r;let d=rf(null),c=dI(p=>{if(p.status==="skipped"){let h=`skipped:${p.reason}`;if(d.current===h)return;d.current=h}else d.current=null;l.current?.(p)},[]),f=dI(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await aU({themeFromDocument:e,token:o?.current,siteId:t,patch:p},ZP(s));return c(h),h.status==="saved"&&br(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=dI((p,h=!1)=>{let I=JP({themeFromDocument:e,token:o?.current});if(I){c(I);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),h?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,c]);return XP(()=>()=>{f()},[f]),XP(()=>YP(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let p=await f();if(p.status==="failed")throw p.error}),[f]),{persist:u,flush:f}}var pU="Follow the page",zye="Follow the slideshow",uU=e=>i("Editing {name} changes it everywhere.",{name:e});function mU({colors:e}){if(!e)return io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Mo(e);return Fa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[io("i",{style:{background:o.background}}),io("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function hU({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Fa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Fa(nU,{children:[Fa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(jt),children:[io(mU,{}),io("span",{className:"sf-secttheme-name",children:i(n)})]}),io("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&io("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:Nl(o)})}),e.map((s,l)=>l===o?null:io(Qc,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function xU({index:e,colors:o,onChange:t,onDone:r}){let a=Nl(e),n=tE();return Fa("div",{className:"sf-secttheme-sheet",children:[Fa("div",{className:"sf-secttheme-sheet-head",children:[io("span",{children:a}),io(iU,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),io("div",{className:"sf-secttheme-rows",children:io(rI,{colors:o,onChange:t,idPrefix:n})}),io("p",{className:"sf-secttheme-warn",children:uU(a)})]})}function rE({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=xe(),s=lo(a),l=sU(fU),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=es({themeFromDocument:f,tokenRef:d,siteId:c}),h=lo(s),I=h.themes,g=Kt(e),T=g!==null?I[g]:void 0,S=T??(I.length?Fn(h):void 0),[C,y]=oE(!1),[b,E]=oE(null),H=eE(null),v=eE(null),M=tE(),P=QP(()=>{y(!1),E(null)},[]),F=QP(()=>{!C&&b===null||(p(),P())},[C,b,P,p]);dU(H,F);let k=L=>{o(L),P()},A=L=>{if(b===null)return;let R=I.map(($,oe)=>oe===b?L:$),G={...h,themes:R};n(G),u({selected_preset:G.selected,theme_presets:G.themes})};return Fa("div",{className:"sf-secttheme",ref:H,children:[io(cU,{label:i("Theme"),icon:io(lU,{}),labelId:`${M}-label`,hint:r,children:io(jP,{colors:S,onEdit:g!==null?()=>{E(g),y(!1)}:void 0,name:T?Nl(g):i(t??pU),nameId:`${M}-value`,labelId:`${M}-label`,open:C,menuId:M,buttonRef:v,onClick:()=>{E(null),y(L=>!L)},onKeyDown:L=>{L.key==="Escape"&&(C||b!==null)&&(L.preventDefault(),P())}})}),C&&b===null&&io("div",{onKeyDown:L=>{L.key==="Escape"&&(L.preventDefault(),P(),v.current?.focus())},children:io(hU,{themes:I,value:g,onPick:k,onEdit:L=>{E(L),y(!1)},menuId:M,followLabel:t})}),b!==null&&I[b]&&io(xU,{index:b,colors:I[b],onChange:A,onDone:()=>{p(),P(),v.current?.focus()}})]})}import{jsx as aE}from"react/jsx-runtime";import{useId as IU}from"react";import{FieldSelect as gU}from"efficient-easel/fields";import{SettingsField as bU}from"efficient-easel/panel";function yU(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function qye({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=IU(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(T=>T.value===u)?u:t,h=i(e),I=n===void 0?void 0:i(n),g=aE(gU,{id:f,value:p,options:yU(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:aE(bU,{label:h,labelId:c,icon:l,children:g})}import{jsx as Da,jsxs as QU}from"react/jsx-runtime";import{SettingsField as PE}from"efficient-easel/panel";import{LinkIcon as e$}from"efficient-easel/icons";import{LinkPicker as o$,TextLinkField as t$}from"efficient-shell/ui";import{useEffect as TE,useMemo as df,useRef as r$,useState as lf}from"react";import{currentEaselSession as SU}from"efficient-easel/screen/lib/session";function nE(){return SU().auth.token}import{currentEaselSession as a$}from"efficient-easel/screen/lib/session";import{useScreenDocument as n$}from"efficient-easel/screen/components/ScreenDocumentContext";var wU=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function sE(e,o,t){if(!e)return"page";if($T(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(VT(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function cI(e,o){let t=wU(),r=e.pages.map(f=>({value:_l(f.slug),label:f.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(f=>f.value),s=e.pages.map(f=>({label:f.title,options:KT(...f.docs).map(u=>({value:Bc(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),l=f=>{switch(f){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:jT(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:UT(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=zT(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:d,rules:{kindOf:f=>sE(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>sE(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as s$}from"efficient-easel/screen/lib/session-context";function So(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return q(t)??o}return o}function lE(e,o){return K(e)??o}function yr(e,o){return typeof e=="boolean"?e:o}function af(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:So(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var dE=["delay","scroll","exit"],cE=["all","chosen","except"],fE=["visit","days","never","once"],CU=["all","desktop","phone"],kU=["stop","continue"],pE={min:0,max:60},uE={min:10,max:90},mE={min:1,max:90},Ot={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function tt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function os(e,o,t){let r=lE(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function vU(e){return typeof e.hideAfter=="string"?tt(fE,e.hideAfter,Ot.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ot.hideAfter}function TU(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function iE(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function hE(e){let o=e??{},t=Ot;return{autoOpen:yr(o.autoOpen,t.autoOpen),trigger:tt(dE,o.trigger,t.trigger),autoOpenDelaySec:os(o.autoOpenDelaySec,pE,t.autoOpenDelaySec),scrollPercent:os(o.scrollPercent,uE,t.scrollPercent),showOn:tt(cE,o.showOn,t.showOn),showOnPages:TU(o.showOnPages),devices:tt(CU,o.devices,t.devices),hideAfter:vU(o),hideDays:os(o.hideDays,mE,t.hideDays),afterSubmit:tt(kU,o.afterSubmit,t.afterSubmit),startDate:iE(o.startDate),endDate:iE(o.endDate)}}import{parseHexColor as PU}from"efficient-shell/format";var _t="#000000";var fI="popup",EU=kC,OU=["auto","full"],_U=["inside","outside","none"],AU={min:240,max:1440},RU={min:0,max:100},Ml={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:_t,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function LU(e,o){let t=typeof e=="string"?e.trim():"";return t&&PU(t)===t.toLowerCase()?t:o}function pI(e,o=Ml){let t=e??{},r=o;return{placement:tt(EU,t.placement,r.placement),fullWidth:yr(t.fullWidth,r.fullWidth),width:os(t.width,AU,r.width),height:tt(OU,t.height,r.height),tintColor:LU(t.tintColor,r.tintColor),tintOpacity:os(t.tintOpacity,RU,r.tintOpacity),outsideClick:yr(t.outsideClick,r.outsideClick),closeButton:tt(_U,t.closeButton,r.closeButton)}}var xE="cart-drawer",ISe="cart-drawer",FU={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function gSe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function bSe(e){let o=e??{},t=FU;return{kickerBadge:So(o.kickerBadge,t.kickerBadge),kickerText:So(o.kickerText,t.kickerText),titleLead:So(o.titleLead,t.titleLead),titleAccent:So(o.titleAccent,t.titleAccent),subtitleEmpty:So(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:So(o.subtitleOne,t.subtitleOne),subtitleMany:So(o.subtitleMany,t.subtitleMany),leadTimeValue:So(o.leadTimeValue,t.leadTimeValue),shipsToFallback:So(o.shipsToFallback,t.shipsToFallback),promises:af(o.promises,t.promises),emptyKicker:So(o.emptyKicker,t.emptyKicker),emptyBody:So(o.emptyBody,t.emptyBody)}}var BU=["right","left"],DU={...Ml,width:520,tintOpacity:68};function ySe(e){let o=e??{};return{...pI(o,DU),placement:tt(BU,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:yr(o.autoOpen,!0)}}var gE="consent-banner",kSe="consent-banner";var NU=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],vSe="Layout",IE={layout:"bar"},MU=e=>NU.some(o=>o.value===e);function TSe(e){let o=So((e??{}).layout,IE.layout);return{layout:MU(o)?o:IE.layout}}var PSe={...Ml,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var HU="consentWords",WU=["eyebrow","notice","accept","reject","choose"];function uI(e){let o=(e??{})[HU];return typeof o=="string"&&WU.includes(o)?o:null}function mI(e){let o=e?.props;return o?uI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&mI(r))):!1}var GU=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],_Se={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},zU={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},ASe={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function bE(e){let o={};for(let t of GU){let r=fr(e[zU[t]]);r&&(o[t]=r)}return o}var yE={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},UU={lead:"We accept"},sf={...UU,methods:[],size:"sm",align:"start",dataSource:ik},At="site-footer";var FSe=At,BSe={desktop:!0,tablet:!0,mobile:!0},DSe={desktop:!1,tablet:!1,mobile:!1},hI=1,SE=6,NSe=Array.from({length:SE-hI+1},(e,o)=>hI+o),nf={desktop:6,tablet:3,mobile:2},$U={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},Ba=e=>Math.min(Math.max(Math.round(e),hI),SE);function MSe(e){if(typeof e=="number")return $U[Ba(e)]??{desktop:Ba(e),tablet:Ba(e),mobile:Ba(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ba(o.desktop??nf.desktop),tablet:Ba(o.tablet??nf.tablet),mobile:Ba(o.mobile??nf.mobile)}}return{...nf}}var xI="subscribe-popup",KSe="subscribe-popup",jU=[xI,At,xE,gE];function CE(e){return jU.includes(e)}var KU=["right","left"],VU={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
67
- *Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:Ot.autoOpen,autoOpenDelaySec:Ot.autoOpenDelaySec,formSlug:"",trigger:Ot.trigger,scrollPercent:Ot.scrollPercent,showOn:Ot.showOn,showOnPages:[],hideAfter:Ot.hideAfter,hideDays:Ot.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},Ye=So,YU=yr,kE=af;function wE(e,o){if(e==null)return o;let t=r=>r.trim()?r:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let r=e.text;return typeof r=="string"?t(r):""}return o}function qU(e,o){return Array.isArray(e)?kE(e,[]):o}function XU(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:Ye(r.label,""),value:Ye(r.value,"")}}).filter(t=>t.label||t.value):o}function YSe(e){let o=e??{},t=VU,r=hE(o);return{metaLabel:Ye(o.metaLabel,t.metaLabel),issueLabel:wE(o.issueLabel,t.issueLabel),issueNumber:wE(o.issueNumber,t.issueNumber),kicker:Ye(o.kicker,t.kicker),heading:Ye(o.heading,t.heading),deck:Ye(o.deck,t.deck),stats:XU(o.stats,t.stats),formLabel:Ye(o.formLabel,t.formLabel),formHeading:Ye(o.formHeading,t.formHeading),formIntro:Ye(o.formIntro,t.formIntro),firstNameLabel:Ye(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:Ye(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:Ye(o.emailLabel,t.emailLabel),emailPlaceholder:Ye(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:Ye(o.interestsLabel,t.interestsLabel),interests:kE(o.interests,t.interests),frequencyLabel:Ye(o.frequencyLabel,t.frequencyLabel),frequencies:qU(o.frequencies,t.frequencies),submitText:Ye(o.submitText,t.submitText),finePrint:Ye(o.finePrint,t.finePrint),dismissText:Ye(o.dismissText,t.dismissText),emailInvalidText:Ye(o.emailInvalidText,t.emailInvalidText),submitErrorText:Ye(o.submitErrorText,t.submitErrorText),successHeading:Ye(o.successHeading,t.successHeading),successBody:Ye(o.successBody,t.successBody),keepBrowsingText:Ye(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:tt(KU,o.formSide,t.formSide),valuePanelOnPhone:YU(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:bE(o)}}function ZU(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function JU(e){return{root:{props:{title:e,kind:fI}},content:[],zones:{}}}function vE(e,o,t){return{slug:ZU(o,t),title:e,kind:kx,layout:JU(e)}}function Hl(e){return e?.root?.props?.kind===fI}function EE(e){let o=new Map;return(t="")=>{let r=nE(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!a$().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var l$=EE(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ve();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),i$=EE(async(e,o)=>await Ve().blog?.posts(o?{siteId:o}:void 0)??[]);function d$({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=df(()=>cI(r,a),[r,a]),s=i(t);return Da(PE,{label:s,icon:Da(e$,{}),children:Da(o$,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function OE(){let{siteId:e,capabilities:o}=n$(),{offersCommerce:t,hasBlog:r}=o,[a,n]=lf([]),[s,l]=lf([]),[d,c]=lf([]),[f,u]=lf(null),p=s$().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,T=r$(!0);TE(()=>(T.current=!0,()=>{T.current=!1}),[]),TE(()=>{let y=!0;return l$(e??void 0).then(b=>y&&T.current&&n(b)),r&&i$(e??void 0).then(b=>y&&T.current&&l(b)),t&&h?.().then(b=>y&&T.current&&c(b)),t&&I?I.load(e).catch(()=>null).then(b=>y&&T.current&&u(()=>b)):u(null),()=>{y=!1}},[e,t,r,h,I]);let S=df(()=>({pages:a.filter(y=>!CE(y.slug)&&!Hl(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===xI||Hl(y.layout)).map(y=>({slug:y.slug,title:y.label})),posts:r?s.map(y=>({slug:y.slug,title:y.title})):[],products:t?d.map(y=>({href:y.href,name:y.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,d,t,r]),C=df(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:C,pages:a,offersCommerce:t,HostLinkRow:g}}function mwe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=OE(),d=df(()=>cI(s,l),[s,l]),c=i(e);return Da(PE,{label:c,icon:o,children:Da(t$,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function _E({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=OE(),c=a.pages.map(u=>_l(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return QU("div",{children:[Da(d$,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Da(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as LO}from"efficient-easel/draw/client";import{phoneKey as Gl,resolveViewValue as w$,tabletKey as zl}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as C$,SITE_SIDE as k$,convertLength as v$,isLengthUnit as GE,isSiteSide as zE,sideLengthAt as T$,sideValueAt as P$,withLength as yI}from"efficient-easel/screen/lib/content/length-units";var wo={min:1e3,max:2e3,step:50,default:1600};function c$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var LE="--sf-site-width",II=`var(${LE},${wo.default}px)`,xwe="100vw",Iwe=`max-w-[${II}]`,gwe=`max-w-[${wo.default}px]`;function FE(e){return typeof e!="number"||!Number.isFinite(e)?wo.default:Math.round(Math.min(Math.max(e,wo.min),wo.max))}function bwe(e){let o=FE(e);return o===wo.default?{}:{[LE]:`${o}px`}}var Sr={min:0,max:80,step:4,default:40},BE="--sf-site-gutter",Wl={min:0,max:24,step:4},f$="--sf-site-gutter-phone",p$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",rt=`var(${BE},${Sr.default}px)`,u$=`px-[${rt}]`;var tr={md:`min(24px,${rt})`,sm:`min(20px,${rt})`,frame:`min(24px,${rt})`,tabs:`min(16px,${rt})`},ywe=[[`max-view-desktop:px-[${tr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${tr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${tr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${tr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${tr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${tr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${tr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${tr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${rt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${rt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${rt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${rt})]`,"max-view-tablet:-mx-5"],[`-mx-[${rt}]`,"-mx-10"],[u$,"px-10"]];var DE="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function gI(e){return m$[e??"box"]}var AE="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",RE="[--sf-edge-g:var(--sf-pad-site)]",m$={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:AE,edge:RE,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:AE,edge:RE,frame:DE}},Swe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${DE}`,wwe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var Cwe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function cf(e){return typeof e!="number"||!Number.isFinite(e)?Sr.default:Math.round(Math.min(Math.max(e,Sr.min),Sr.max))}function kwe(e){let o=cf(e);return o===Sr.default?{}:{[BE]:`${o}px`}}function ff(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Wl.min),Wl.max))}function NE(e){return typeof e=="number"&&Number.isFinite(e)?FE(e):null}function vwe(e){let o=ff(e);return o===null?{}:{[f$]:`${o}px`}}function Twe(e){return ff(e)===null?"":p$}function pf(e){return Math.min(Wl.max,cf(e))}var ME=II,Pwe=`max-w-[${ME}]`,Ewe=`max-w-[min(var(--sf-page-cap,${wo.default}px),${wo.default}px)]`,HE="--sf-hero-cap",h$=`var(${HE},none)`,Owe=`max-w-[${h$}]`,x$="--sf-hero-bleed-m",I$="--sf-hero-bleed-w",g$="--sf-hero-chrome-x",b$="--sf-hero-chrome-cap";function _we(e){return e===!0?{[HE]:ME,[x$]:"auto",[I$]:"100%",[g$]:"24px",[b$]:"none"}:{}}var bI=`calc(${II} - ${rt}*2)`,Awe=`max-w-[${bI.replace(/ /g,"_")}]`;var y$="--sf-chrome-cap",S$=`var(${y$},${bI})`,Rwe="data-page-width";function Lwe(e){return e==="full"?"full":null}function Fwe(e){return e==="full"?null:c$(e==="content"?bI:S$)}function Bwe(e){if(e==="full")return"full";if(e==="content")return"content"}var st={min:10,max:200,step:10};function E$(e,o,t,r=0){let a=K(e),n=K(o);if(a===void 0&&n===void 0)return;let s=uf(t),l=d=>d===void 0?void 0:s==="px"?d:yI(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var uf=e=>GE(e)?e:"px",O$="sf-pad-top-phone",_$="sf-pad-bottom-phone",A$="--sf-pad-t-phone",R$="--sf-pad-b-phone",L$="sf-pad-left-phone",F$="sf-pad-right-phone",B$="--sf-pad-l-phone",D$="--sf-pad-r-phone",N$="sf-pad-top-tablet",M$="sf-pad-bottom-tablet",H$="sf-pad-left-tablet",W$="sf-pad-right-tablet",G$="--sf-pad-t-tablet",z$="--sf-pad-b-tablet",U$="--sf-pad-l-tablet",$$="--sf-pad-r-tablet";function hf(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=E$(e.top,e.bottom,e.unit,e.frame),r=SI({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},o,e.frame,e.sideSpace);return t===void 0&&!r.classes.length&&!Object.keys(r.style).length?null:{className:["sf-section-pad",...r.classes].join(" "),style:{...t,...r.style}}}var j$=e=>zE(e)?e:K(e),K$=[["top","paddingTop",[N$,G$],[O$,A$]],["bottom","paddingBottom",[M$,z$],[_$,R$]],["left","paddingLeft",[H$,U$],[L$,B$]],["right","paddingRight",[W$,$$],[F$,D$]]];function zwe(e,o,t){return!GE(o)||o==="px"?e:v$(e,"px",o,t,{min:0,max:st.max,step:1})}function V$(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=yI(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[zl("n")]:o,[Gl("n")]:t,u:r.desktop,[zl("u")]:r.tablet,[Gl("u")]:r.phone},l=w$("spacing",K(e),K(o),K(t),Ln()),d=(h,I,g)=>{if(P$(s,{side:"n"},h,"side",["side"])?.value===k$)return gI().value;let T=T$(s,{side:"n"},"u",h,"side");if(!T)return;let S=I!==null&&!g&&T.unit==="px"&&typeof l[I]=="number";return n(S?l[I]:T.value,T.unit)},c=d("desktop",null,!0),f={},u=d("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==c)&&(f.tablet=u);let p=d("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==c)&&(f.phone=p),f}function SI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=gI(s),u=!1;for(let[p,h,...I]of K$){let g=p==="left"||p==="right"?j$:K,T=g(e[p]),S=p==="top"||p==="bottom"?n:0;zE(T)?(l[h]=f.value,u=!0):T!==void 0&&(l[h]=uf(a.desktop)==="px"?T:yI(T,uf(a.desktop),S));let C=V$(g(r[p]),g(t[p]),g(o[p]),a,S);for(let[y,[b,E]]of[["tablet",I[0]],["phone",I[1]]]){let H=C[y];H!==void 0&&(c.push(b),d[E]=H,H===f.value&&(u=!0))}}return u&&c.push(...f.className.split(" ")),{classes:c,style:{...l,...d}}}function WE(e,o,t){let r=K(e)??t,a=K(o);return r===void 0?a:a===void 0?r:r+a}function xf(e,o={}){return{top:WE(e.padTop,e.sectionPaddingTop,o.top),bottom:WE(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var mf={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function UE(e,o=mf,t=!0,r=o===mf?C$:void 0){let a={};r&&(e[r]!==void 0&&(a.unit=e[r]),e[zl(r)]!==void 0&&(a.unitTablet=e[zl(r)]),e[Gl(r)]!==void 0&&(a.unitPhone=e[Gl(r)]));for(let n of t?["top","bottom","left","right"]:["top","bottom"])a[n]=e[o[n]],a[`${n}Tablet`]=e[zl(o[n])],a[`${n}Phone`]=e[Gl(o[n])];return a}function Uwe(e){return hf(e)}function $we(e,o){let t=(r,a)=>typeof r!="number"?void 0:uf(a)==="px"?r+o:r;return hf({...e,frame:o,top:t(e.top,e.unit),bottom:t(e.bottom,e.unit),topTablet:t(e.topTablet,e.unitTablet),bottomTablet:t(e.bottomTablet,e.unitTablet),topPhone:t(e.topPhone,e.unitPhone),bottomPhone:t(e.bottomPhone,e.unitPhone)})}import{BUTTON_PAD_KEYS as If,buttonBorderOf as Y$,buttonFillOpacityOf as q$,buttonPadSidesOf as X$}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as wI,isLengthUnit as Z$,lengthOf as J$}from"efficient-easel/screen/lib/content/length-units";var Q$="px-6 py-4",ej=4,gf=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(Q$);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*ej},Qwe={top:gf("y"),right:gf("x"),bottom:gf("y"),left:gf("x")},jE="var(--btn)";function oj(e){let o=e.variant==="ghost",t=q$(e.buttonFillOpacity),r=Y$(e.buttonBorder),a=q(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":jE)},changed:t!==void 0||r!==void 0}}function eCe(e){let o=oj(e);if(!o.changed)return null;let t=q(e.buttonColor)??jE;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:J$(o.border.width,Z$(e.buttonBorderUnit)?e.buttonBorderUnit:"px"),borderStyle:"solid",borderColor:o.border.color}}var tj="var(--sf-button-radius, 0)";function oCe(e){let o=K(e.buttonCorners),t=Qt(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?tj:Oa(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Pa(r,t)}}function tCe(e){let o=n=>X$({top:e[`${If.top}${n}`],right:e[`${If.right}${n}`],bottom:e[`${If.bottom}${n}`],left:e[`${If.left}${n}`]})??{},t={desktop:e[wI],tablet:e[`${wI}Tablet`],phone:e[`${wI}Phone`]},{classes:r,style:a}=SI(o(""),o("Phone"),o("Tablet"),void 0,t);return Object.keys(a).length?{className:r.join(" "),style:a}:null}var $E="upper";function KE(e,o,t){let r=e&&typeof e=="object"?e:{},a=q(r.textStyle),n=a?q(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,l=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:d}=t,c=q(r.case)??$E;return`${l} \xB7 ${d[c]??d[$E]}`}import{usePreviewParts as VK}from"efficient-easel/draw/client";import{encodePartId as YK}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as qK,useEaselStrings as XK}from"efficient-easel/strings";import{PIN_STICK_VAR as rj,PIN_TRACK_POSITION_VAR as aj,pinAttrs as VE,pinStickVars as nj,readPin as vI}from"efficient-shell/format";var lCe="Stick to top",Zr={min:0,max:200,step:4,fallback:0},TI="Pin while scrolling",YE="Scroll",Rt={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},Na="stickTopScreens",sj=[Na,"stickTopScreensTablet","stickTopScreensPhone"],PI="Screens",EI="stickTopStop",ts="screen",qE="Pin stops at",XE=[{value:"header",label:"Under the header"},{value:ts,label:"Screen top"}],ZE="header",JE="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function OI(e){return e===ts?ts:"header"}function QE(e){return e===ts?ts:void 0}var Ul="stickAbove",eO="Stays above",oO="On: the pinned box stays on top, and the sections after it scroll under it.";function lj(e){return e.stickAbove===!0}var tO=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...sj,EI,Ul],iCe=new Set(["IntroBleed"]),dCe=new Set(["CategoryBar","DocTabs","Contents"]);function ij(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var CI=e=>vI(!0,e).length,_I={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},rO={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function kI(e){let o=K(e)??Zr.fallback;return Math.min(Zr.max,Math.max(Zr.min,Math.round(o)))}function AI(e){return typeof e.stickTopTablet=="boolean"}function RI(e){return typeof e.stickTopPhone=="boolean"}function $l(e,o={}){let t=o.intro?ij(e):e.stickTop===!0,r=kI(e.stickTopDistance),a=CI(e.stickTopScreens),n=AI(e),s=n?e.stickTopTablet===!0:t,l=n?kI(e.stickTopDistanceTablet):r,d=n?CI(e.stickTopScreensTablet):a,c=RI(e),f=c?e.stickTopPhone===!0:s,u=c?kI(e.stickTopDistancePhone):l,p=c?CI(e.stickTopScreensPhone):d;return{desktop:t,desktopDistance:r,desktopScreens:a,tablet:s,tabletDistance:l,tabletScreens:d,ownTablet:n,phone:f,phoneDistance:u,phoneScreens:p,ownPhone:c}}function cCe(e,o={}){let t=$l(e,{intro:o.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;let r=o.atScreenTop===!0&&typeof e.stickTop!="boolean",a=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,n=o.above===!0&&lj(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Ra({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||OI(e.stickTopStop)===ts?{[Rt.header]:"0px"}:{},[Rt.distance]:`${t.desktopDistance}px`,...l(Rt.distance,`${t.desktopDistance}px`,`${t.tabletDistance}px`,`${t.phoneDistance}px`)};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Rt.on]:"0"},...l(Rt.on,u(t.desktop),u(t.tablet),u(t.phone)),[Rt.length]:String(t.desktopScreens),...l(Rt.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...dj(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:VE(vI(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Rt.position]:"static"},...l(Rt.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:VE(vI(!0),"stick",n?{above:n}:{}).attrs,style:f}}function dj(e,o,t,r){let a=[[Rt.stick,rj],[Rt.trackPosition,aj]],[n,s,l]=[e,o,t].map(nj);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var cj=["column","row","tabs","accordion"];var fj={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},aO={Flex:cj,HeroGroup:["column","row"]},pj={Flex:"row",HeroGroup:"column"},uj={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function rs(e,o){return aO[e].includes(o)?o:pj[e]}function pCe(e,o){return uj[rs(e,o)]}function nO(e){return aO[e].map(o=>({label:fj[o],value:o}))}var mj=["solid","dashed","dotted"],lO=["top","right","bottom","left"],mCe="sf-section-border",hCe="sf-section-border-self",hj=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,sO=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(20,Math.max(0,Math.round(e)))}px`:void 0;function as(e,{phone:o=!1,tablet:t=!1}={}){if(!e||typeof e!="object")return;let r=o?"-phone":t?"-tablet":"",a={};for(let n of lO){let s=sO(e[n])??sO(e.width);s!==void 0&&(a[`--sf-border-${n}-width${r}`]=s)}return typeof e.style=="string"&&mj.includes(e.style)&&(a[`--sf-border-style${r}`]=e.style),typeof e.color=="string"&&hj.test(e.color)&&(a[`--sf-border-color${r}`]=e.color.toLowerCase()),Object.keys(a).length?a:void 0}function LI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(lO.map(r=>[r,t[r]??o]))}}function xCe(e,o,t){let r=as(e),a=as(t,{tablet:!0}),n=as(t,{phone:!0})||as(o,{phone:!0})?{...as(t,{phone:!0}),...as(o,{phone:!0})}:void 0;return r||a||n?{...r,...a,...n}:void 0}var bf="sf.gapContainer",wr={min:-32,max:64,step:2},fO={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},ns={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},xj=new Set(["Events","GalleryB"]);function Ha(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=wr.min)return o;if(typeof o=="string"){let r=fO[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ns[e]}var Ij="sf-gap-overlap",gj="--sf-gap-overlap",pO="--sf-block-gap",bj="--sf-block-gap-rem",Ma={min:0,max:wr.max,step:wr.step};function jl(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Ma.min),Ma.max);return o-o%Ma.step}function gCe(e){let o=jl(e);return o===null?{}:{[pO]:`${o}px`,[bj]:`${o/16}rem`}}var yj="--sf-block-gap-phone",Sj="--sf-block-gap-phone-rem",wj="--sf-block-gap-on-phone",Cj="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function bCe(e){let o=jl(e);return o===null?{}:{[yj]:`${o}px`,[Sj]:`${o/16}rem`}}function yCe(e){return jl(e)===null?"":Cj}var iO="sf-gap-zone",dO="--sf-gap-len";function yf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=wr.min?!0:typeof o=="string"&&typeof fO[e]?.[o]=="number"}var cO="--sf-gap-len-phone",kj="--sf-gap-len-tablet",Kl={min:0,max:wr.max,step:wr.step};function Jr(e){return typeof e=="number"&&Number.isFinite(e)&&e>=Kl.min}function FI(e){return e/2}function BI(e,o,t){return Jr(t)&&!yf(e,o)}function DI(e,o,t,r,a){return Jr(o)?o:BI(e,t,a)?a:FI(Ha(e,t,r))}var vj={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function SCe(e,o,t,r,a){let n={...Jr(r)?{[cO]:`${r}px`}:null,...Jr(a)?{[kj]:`${a}px`}:null};if(!yf(e,o)){let l=`${ns[e]}px`,d=xj.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${iO}`,style:{[dO]:`var(${pO}, ${d})`,[cO]:`var(${wj})`,...n}}}let s=Ha(e,o);return s>=0?{className:` ${iO}`,style:{[dO]:`${s}px`,...n}}:{className:` ${Ij} ${vj[t]}`,style:{gap:"0px",[gj]:`${-s/2}px`}}}import{parseHexColor as Tj}from"efficient-shell/format";var Oo="var(--section-bg)",Vl="inherit";function rr(e,o){return e===Vl?Oo:e===void 0?o:Sf(e)}var Pj=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Sf(e){let o=or(e);return o?Ir(o):e.replace(Pj,"var(--site-$1")}var Ej={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function NI(e,o,t){let r=rr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?Tj(a):null;if(n)return n.toLowerCase();let s=Ej[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var MI="transparent";function uO(e,o){let t=rr(e,o);return!t||t===MI?"none":t===Oo?"band":null}function mO(e,o,t=o){let r=n=>!n||n==="transparent",a=rr(e,o);return a===t||r(a)&&r(t)}var hO=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],xO={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ss="var(--wheel-stage)",wf="transparent",Yl="inherit";function PCe(e,o){return Sf(HI(e,o))}function HI(e,o){return e===Yl?ss:e==null?o:e===!0?ss:e===!1?wf:e}function ECe(e){return typeof e=="string"&&e!==Yl?Sf(e):ss}function OCe(e){return e!==wf&&e!=="none"&&e!==""}function IO(e,o){return e===Yl||e===!0?!0:e==null?o===ss:!1}var gO="inherit",Cf="fixed",bO=e=>typeof e!="number"&&e!==Cf,Oj="var(--sf-heading-max, 9999px)";function ACe(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===Cf)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${Oj})`:a}var _j=["page","full"],yO=["full","page"],Wa={full:"Full",page:"Content"},WI="inherit",Aj=e=>typeof e=="string"&&_j.includes(e),Rj=e=>e===WI;function Lj(e,o){return Rj(e.widthMode)?{mode:"full",inherited:!0}:Aj(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function FCe(e){return Lj(e,"page").mode==="full"}var Fj={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function BCe(e){return Object.prototype.hasOwnProperty.call(Fj,e)}var po={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax"};function Bj(e){let o=NE(e[po.contentMax]),t=ls(e[po.content])??(o===null?null:"content");return{background:ls(e[po.background]),content:t,contentMax:t==="content"?o:null}}function DCe(e){let o=Bj(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function NCe(e){return e.background!==null||e.content!==null}var MCe=e=>({[po.background]:e}),HCe=e=>e==="full"?{[po.content]:e,[po.contentMax]:void 0}:{[po.content]:e},WCe=e=>({[po.content]:"content",[po.contentMax]:e}),GCe=e=>e==="background"?{[po.background]:void 0}:{[po.content]:void 0,[po.contentMax]:void 0},SO="siteWidths",Dj=e=>e==="full"||e==="content";function ls(e){return Dj(e)?e:null}function wO(e,o){return{[SO]:{background:ls(e),content:ls(o)}}}function zCe(e){let o=e.editor?.metadata?.[SO];return{background:ls(o?.background),content:ls(o?.content)}}import{useEaselSession as ZK}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as JK,describedAs as Qr,group as Lt,iconOf as ds,sharedStyleKinds as Jl}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as QO,onDesktopWords as za,phoneTwinFields as VI}from"efficient-easel/screen/lib/document/box-fields";import{createElement as lt}from"react";import{SettingsDefaultReset as Nj,SettingsField as Mj}from"efficient-easel/panel";import{boxFieldBuilders as Hj,describedAs as Wj,iconOf as Gj,onDesktopWords as zj}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as Uj}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as $j,Tooltip as jj,useShellStrings as Kj}from"efficient-shell/ui";import{RotateIcon as Vj}from"efficient-easel/icons";var CO=e=>i(e),Yj=Uj,uo=Hj(CO,{lengthUnits:Yj}),Co=uo.slider,it=uo.select,kf=uo.Segmented,ql=uo.segmented,JCe=uo.alignmentField,QCe=uo.alignmentFields,eke=uo.blockAlignmentField,oke=uo.blockAlignmentFields,tke=uo.boxJustifyField,rke=uo.boxAlignField,ake=uo.boxWrapField,kO=uo.directionField,vf=uo.gapField,nke=uo.placementField,ske=uo.PlacementGridView,lke=uo.positionFields,Tf=uo.sidesPaddingFields,vO=uo.lengthUnitFields;function TO(e,o){return Co("Angle",lt(Vj),qt.min,qt.max,qt.step,e,"\xB0",o)}var qj={width:"3.5rem",height:"2.75rem"};function GI({value:e}){return Kj().iconNames[e]??e}function zI(e,o,t){return lt(jj,{content:t,className:"sf-pick-tip",children:lt("span",{className:"sf-pick"},lt("span",{className:"sf-pick-pic"},e),lt("span",{className:"sf-pick-cap"},o))})}function Xj(e){let o=t=>t.label===void 0?lt(GI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:zI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function PO(e,o){return lt("span",{className:"sf-pick"},lt("span",{className:"sf-pick-pic"},e),lt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function EO(e,o,t,r,a={}){let n=d=>t.some(c=>c.value===d),s=d=>a.resolve?a.resolve(d):n(d)?d:void 0,l=t.map(d=>({value:d.value,...d.label===void 0?{}:{label:d.label},...d.showWhen?{showWhen:d.showWhen}:{}}));return{type:"custom",...Wj({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=Xj(t.filter(b=>!p||p.some(E=>E.value===b.value))),I="follows"in d,g=I?s(a.phoneRest?a.phoneRest(d.follows):d.follows)??r:void 0,T=u?.currentValue,S=s(c)??g??s(T)??r,C=c!=null&&c!=="",y=g===void 0?void 0:t.find(b=>b.value===g);return lt(Mj,{label:i(e),icon:Gj(o),action:I?lt(Nj,{words:ne()?.panel,label:i(e),changed:C,detail:y?.label!==void 0?zj(CO,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},lt($j,{label:i(e),value:S,options:h,onChange:f,columns:a.columns,cell:a.cell??qj,tooltips:!1,disabled:d.readOnly===!0}))}}}import{TEXT_CONTROL_KINDS as Vve,SCALAR_TEXT_CONTROLS as Yve}from"efficient-easel/draw";function Ua(e,o){return i("{value} from {from}",{value:e,from:o})}function QK(){let{blockGap:e}=xe();return e===null?i("this container's own spacing"):Ua(`${e}px`,i("Styles"))}function eV({inherited:e,onReset:o,label:t}){return w(_o,{words:ne()?.panel,label:i(t),changed:!e,detail:QK(),onReset:o})}function oV(e){return vf({...JK,builtIn:ns[e],resolve:(o,t)=>Ha(e,o,t?.siteGap),action:(o,t)=>w(eV,{inherited:!yf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[bf]:e}})}function tV(e){return Ge(dt("mobile",{[bf]:e,type:"custom",render:o=>w(nV,{container:e,...o})}),e0)}function rV(e){return Ge(dt("tablet",{[bf]:e,type:"custom",render:o=>w(aV,{container:e,...o})}),e0)}var e0={not:{field:"gap",in:Array.from({length:-wr.min},(e,o)=>wr.min+o)}};function Hve(e){return{gap:dt("desktop",oV(e)),[QI("gap")]:rV(e),[is("gap")]:tV(e)}}function aV({container:e,...o}){let[t]=vr("gap"),{siteGap:r}=o.field??{},a=Math.max(Kl.min,Ha(e,t,r));return vf({...Kl,builtIn:a,resolve:n=>Jr(n)?n:a,action:(n,s)=>w(_o,{words:ne()?.panel,label:i("Gap"),changed:Jr(n),detail:za(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function nV({container:e,...o}){let[t]=vr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=DI(e,void 0,t,r,a);return vf({...Kl,builtIn:n,resolve:s=>DI(e,s,t,r,a),action:(s,l)=>w(_o,{words:ne()?.panel,label:i("Gap"),changed:Jr(s),detail:Ua(`${n}px`,BI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function Wve(e){return kO({offered:nO(e),fallback:rs(e,void 0),resolve:o=>rs(e,o)})}function Gve(e,o){return vC(o?EC(e,o):[],o)}function sV({inherited:e,onReset:o,label:t}){return w(_o,{words:ne()?.panel,label:i(t),changed:!e,detail:Ua(i("Full"),i("the page")),onReset:o})}function $a({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=ea(e),f=Xl(null),u=Xl(null),p=C=>o(s?{text:C,hidden:c}:C),h=()=>o({text:d,hidden:!c}),I=s&&c,g=WO(),T=a?fV(a)?w("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,S=c?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return w(ao,{label:i(t),icon:w(kK,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:T,action:s?w(JI,{content:S,children:w(ZO,{"aria-pressed":c,"aria-label":S,onClick:h,children:c?w(LO,{name:"eye-off",size:14}):w(LO,{name:"eye",size:14})})}):void 0,children:Cr("div",{className:"sf-copybox",children:[l&&w($x,{target:n?u:f,value:d,onChange:p}),n?w("textarea",{id:g,ref:u,value:d,placeholder:r===void 0?void 0:i(r),onChange:C=>p(C.target.value)}):w("input",{id:g,ref:f,type:"text",value:d,placeholder:r===void 0?void 0:i(r),onChange:C=>p(C.target.value)})]})})}function zve(e,o){return{...e,[nK]:o}}function Uve(e){let o=e[kr];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[kr]:{...o,offPage:!0}}}function Lf(e){return!e||typeof e!="object"?!1:e[kr]?.offPage===!0}function $ve(e){if(!e[kr])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Kx]:!0}}function o0(e){return Qn(e)}function jve(e){let o=e[kr];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[kr]:{...o,identifier:!0}}}function qve(e,o){if(!e[kr])throw new Error("inOwnBox: the field holds no authored text");let{[$K]:t,...r}=e;return{...r,[jx]:!0,render:o}}var lV=new Set(KK),_f={type:"radio",options:[{value:!0},{value:!1}]},t0={text:{type:"object",objectFields:{text:{type:"text"},hidden:_f}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:_f}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},ja=(e,o)=>{let t=Qr({...o,[kr]:e},{...t0[e.control],label:e.label});if(!lV.has(e.control))return t;let r=o.render;return{...JO(t,"authored-copy"),render:a=>w(_P,{name:a.name,children:r(a)})}},Xve="Everything else on this block comes from the linked post. Unlink it to edit by hand.",iV={field:"source.slug",set:!0},Zve={not:iV},dV="Select a word, then press the highlighter.",cV=new Set([dV]),fV=e=>cV.has(e);function Jve(e,o,t){return ja({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w($a,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function Qve(e,o,t){return ja({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w($a,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function eTe(e,o,t){return ja({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w($a,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function oTe(e,o,t){return ja({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w($a,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function tTe(e){return{type:"custom",[rK]:{label:e},...Qr({},{type:"text",label:e}),render:({value:o,onChange:t})=>w(_E,{value:tK(o),onChange:t,label:e})}}function rTe(e,o,t){return ja({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w($a,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var r0={Design:sK,Animation:iK};function aTe(e){return{type:"custom",render:()=>w(pV,{text:e})}}function pV({text:e}){return w("p",{className:"sf-note",children:i(e)})}function nTe(e){return oa(e)!==null&&e?.tabs!==void 0}var FO=new Map;function Ff(e,o){let t=`${e}\0${o?o.join(""):""}`,r=FO.get(t)??{type:"custom",tabs:o,[GO]:{label:e,level:1},bucket:e,marker:!0,render:()=>w(Tr,{})};return FO.set(t,r),r}var BO=new Map;function eg(e){let o=BO.get(e)??{type:"custom",[GO]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>w(Tr,{})};return BO.set(e,o),o}function uV(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function a0(e,o){return uV(e)===o?e:{...e,marker:!0,fold:o,render:()=>w(Tr,{})}}function n0(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>w(Tr,{})}}function og({title:e,children:o}){let[t,r]=Zl(()=>!UI.has(e));return w(PK,{title:e,open:t,onToggle:a=>{r(a),a?UI.delete(e):UI.add(e)},children:o})}var UI=new Set;function mV({swatches:e,current:o,onPick:t,names:r}){let a=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?i(n):o;return Cr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return w(JI,{content:d,children:w(DK,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),w("span",{className:"sf-swatch-hex",children:s})]})}function sTe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>w(hV,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function hV({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=lg(),d={background:s.background,surface:s.surface,surface2:Fd(s),band:nC(s)},c=t?Oo:o,f=mO(n,o,c),u=NI(void 0,c,d),p=t?Vl:void 0,h=c===Oo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=xV(n,o,s,l,d,a),g=Ua(u.toUpperCase(),h),T=or(n),S=T?Yn(T,s,l):null;return S?w(Uo,{label:i(e),icon:w(OO,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):w(Rl,{label:i(e),icon:w(OO,{}),value:f?"":NI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function xV(e,o,t,r,a,n){let s=uO(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(MI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Oo)},...sg(or(e)??"",t,r,n)]}function IV(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=IO(a,o);return w(ao,{label:i(e),icon:w(jI,{}),changed:!n,action:w(_o,{words:ne()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(Yl)}),children:mV({swatches:hO,current:n?ss:HI(a,o),onPick:r,names:xO})})}}}function Bf(e=t=>t,o){return Jl({_gSectionTheme:Lt(SC),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>w(rE,{value:e(t),onChange:r,followLabel:o})}})}function jo({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:l,ariaLabel:d,disabled:c=!1,placeholder:f,placeholderWord:u,onClear:p,units:h}){let I=l!==void 0&&Number.isFinite(l)&&l>=e&&l<=o;return w("div",{className:I?"sf-slider has-notch":"sf-slider",style:I?{"--sf-notch":(l-e)/(o-e)}:void 0,children:w(UK,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:i(u)}:{},suffix:n||void 0,...h?{units:h}:{},showInput:s,label:d===void 0?void 0:i(d),disabled:c,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:g=>{g===null?p?.():g!==r&&a(g)}})})}function gV(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:l,unsetMark:d,icon:c,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let h=typeof u=="number"?u:null,I=h===null;return w(ao,{label:i(e),icon:c?ds(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?YI(d,{changed:!I,onReset:()=>p(null)}):w(_o,{words:ne()?.panel,label:i(e),changed:!I,onReset:()=>p(null)}),hint:typeof s=="string"?i(s):s,children:l?l({min:t,max:r,step:a,px:h,label:e,onChange:p}):jo({min:t,max:r,step:a,value:h??t,readout:!1,ariaLabel:e,onChange:p})})}}}var Df="Corners";function tg(e){return{type:"custom",render:({value:o,onChange:t})=>{let r=typeof o=="number"&&Number.isFinite(o)?o:null,a=r!==null;return w(ao,{label:i(Df),icon:w(UO,{}),changed:a,action:YI(e.mark,{changed:a,onReset:()=>t(null)}),hint:e.hint,children:w(bV,{tier:e,px:r,onRadius:t})})}}}function vr(e){let o=Ga();return[o?.values?.[e],t=>o?.onChange(e,t)]}function s0(){return JO({type:"custom",render:()=>w(jK,{})},"always")}function Dl(){let e=Ga();return o=>e?.onChangeMany(o)}function bV({tier:e,px:o,onRadius:t}){let r=e.useFollowed(),[a,n]=vr(e.sidesKey),s=Qt(a)??[...Pc];return w(NK,{label:i(Df),value:s,corners:fT,onChange:l=>{let d=Qt(l)??[];n(d.length===Pc.length?null:d)},radius:o,onRadiusChange:t,radiusMin:Ho,radiusMax:xa,radiusStep:e.step??1,radiusPlaceholder:String(r)})}function l0(){return s0()}function yV({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=xe(),a=typeof r=="number"?`${r}px`:i("not set");return w(_o,{words:ne()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Ua(a,i("Styles")),onReset:t})}function SV(){let{cornerRadiusPx:e}=xe();return typeof e=="number"?e:Ho}function wV(){return tg({sidesKey:"sectionCornerSides",useFollowed:SV,mark:w(yV,{label:Df}),hint:CV})}var CV="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function Nf(){return Jl({_gShape:Lt("Shape"),sectionCorners:wV(),sectionCornerSides:l0(),...gr("sectionBorder",OV)})}var kV=()=>({width:i("Border width"),sides:{top:i("Border top"),right:i("Border right"),bottom:i("Border bottom"),left:i("Border left")},style:i("Border style"),styles:{solid:i("Solid"),dashed:i("Dashed"),dotted:i("Dotted")},color:i("Border color"),unit:"px"});function vV(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function TV(){let e;try{let o=lo(xe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||eC.line}function PV({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={}}){let l=e&&typeof e=="object"?e:{},[d,c]=Zl(()=>a?RK(l,s):!1),f=kV(),u=p=>vV(a&&n?p:{width:p.width,color:p.color,...n?{style:p.style}:{}});return w(ao,{label:i("Border"),icon:w(dK,{}),action:a?w(_K,{each:d,label:i("Each side"),onChange:c}):void 0,children:w(OK,{label:i("Border"),value:l,each:d,onChange:p=>o(u(p)),placeholder:t,presets:r,words:f,styles:n,max:20})})}function EV({value:e,onChange:o,view:t}){let[r]=vr("sectionBorder"),[a]=vr(QI("sectionBorder")),n=TV(),s=d=>d&&typeof d=="object"?d:{},l=t==="phone"?{...LI(s(r)),...LI(s(a))}:t==="tablet"?s(r):{};return w(PV,{value:e,onChange:o,placeholder:{sides:AK(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}function OV(e){return{type:"custom",render:({value:o,onChange:t})=>w(EV,{value:o,onChange:t,view:e})}}function lTe(e){return{type:"custom",render:()=>w(_V,{partKey:e})}}function _V({partKey:e}){let[o]=vr("id"),[t]=vr("_partStyles"),{textStyles:r}=xe(),a=XK(),n=null;try{n=VK().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return w(TK,{name:i("Text"),preview:KE(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??qK.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(YK(o,e))}})}function i0(e){let{cornerRadiusPx:o}=xe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=Rf(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?uP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return hx(a)?a:t}function AV({label:e,changed:o=!1,onReset:t=()=>{}}){let r=i0(Ho);return w(_o,{words:ne()?.panel,label:i(e),changed:o,detail:Ua(`${r}px`,i("the section")),onReset:t})}function RV(){return w(Tr,{children:i("Follows the section's Corners until you set a number here.")})}function LV(){return tg({sidesKey:"cardCornerSides",useFollowed:()=>i0(Ho),mark:w(AV,{label:Df}),hint:w(RV,{})})}function FV(){return{type:"custom",render:()=>w(gT,{})}}function iTe(){return{_gShape:Lt("Shape"),cardCorners:LV(),cardCornerSides:l0(),cardCornersApplyAll:FV()}}function BV(){return Qr({type:"custom",render:e=>w(NV,{...e})},{type:"select",label:ha,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function DV(e,o){let t=Vm(e);if(t!=="custom")return i(Km.find(a=>a.value===t)?.label??"");let r=XO(Rd(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function NV(e){let{value:o,onChange:t}=e,[r]=vr("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=Vm(l),c=a>=2&&a<=AO,f=()=>[...WK[a]??[]],u=Xl(null),p=S=>{let C=u.current;C&&JSON.stringify(S)===JSON.stringify(C.shares)?t(C.value):S&&t(S)},h=S=>{S===d||S==="custom"&&!c||t(S==="custom"?f():S)},I=i("The width bar works for 2 to {count} blocks.",{count:AO}),g=s&&(n||o!=="content"),T=zK().widths.hint(a,HK);return w(ao,{label:i(ha),icon:w(qI,{}),changed:g,hint:d!=="custom"?void 0:c?T:I,action:w(_o,{words:ne()?.panel,label:i(ha),changed:g,disabled:e.readOnly===!0,detail:n?za(S=>i(S),DV(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Cr("div",{className:"sf-share-row",children:[w("div",{className:"sf-share-pick",children:w(qO,{label:i(ha),value:d,options:Km.map(S=>({value:S.value,label:S.value==="custom"&&!c?I:i(S.label),icon:zI(w("span",{className:"sf-gallery-pic sf-share-pic",children:d0(S.weights).map((C,y)=>w("i",{style:{gridColumn:`span ${C}`}},y))}),i(S.label),S.value==="custom"&&!c?I:i(S.label))})),onChange:h,columns:3,cell:c0,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?w("div",{onFocus:()=>{u.current={value:o,shares:XO(Rd(l,a),a)}},onBlur:()=>{u.current=null},children:w(GK,{label:i(ha),count:a,value:Rd(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function d0(e){if(!e)return[3,4];let o=e.reduce((t,r)=>t+r,0);return e.map(t=>Math.round(t/o*12))}function dTe(){return it(Jw,w(xK,{}),Xm,Xm[0].value)}function cTe(){return dt("mobile",EO(ha,w(qI,{}),qw.map(e=>({label:e.label,value:e.value,picture:w("span",{className:"sf-gallery-pic sf-share-pic",children:d0(e.weights).map((o,t)=>w("i",{style:{gridColumn:`span ${o}`}},t))})})),Xw,{columns:2,cell:c0}))}var c0={width:"5.75rem",height:"3.25rem"};function fTe(){return VI("share",BV(),QO)[QI("share")]}function MV(){return dt("mobile",Co(Ym,w(zO,{}),Ld,Yw,1,Ld,"",{clear:{phoneFollows:!1,hint:Ld}}))}var DO={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function pTe(){let e=Co(Ym,w(zO,{}),qm,Zw,1,qm,"",{clear:{emptyLabel:"Auto"}}),o=VI("columns",e,{...DO,tablet:QO.tablet}),t=VI("columns",e,DO,{phoneRow:MV()});return{...o,phoneRow:t.phoneRow}}function uTe(e,o,t,r,a,n){return{type:"custom",render:({value:s,onChange:l})=>w(ao,{label:i(e),icon:w(Rx,{noun:n}),action:w(_o,{words:ne()?.panel,label:i(e),changed:!bO(s),detail:i("the Text style in Styles"),onReset:()=>l(gO),defaultAction:{onPress:()=>l(Cf),title:i("Keep this section's own built-in size"),icon:w(cK,{})}}),children:jo({min:o,max:t,step:r,value:typeof s=="number"?s:a,suffix:"px",ariaLabel:e,onChange:l})})}}function mTe(){return{_gCellWidth:Lt("Cell width"),gridSpan:it("Positions",w(qI,{}),[{label:"Auto",value:""},...Array.from({length:Ac},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function ot(){let e=null,o=null;try{e=HO(rg),o=Rf(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var rg=Qj(null);function HV({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=ot()[s],c=Kc(void 0,d,l);return w(Tr,{children:jo({min:e,max:o,step:t,value:Kc(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function WV({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=ot()[o],l=Kc(void 0,s,t);return w(_o,{words:ne()?.panel,label:i(e),changed:a,detail:za(d=>i(d),`${l}${r}`),onReset:n})}function GV(e){return gV(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:w(WV,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>w(HV,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var zV={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},UV={Top:XI,Bottom:jO,Left:KO,Right:VO},$V=e=>{let o=UV[e];return w(o,{})};function hTe(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=T=>zV[T],n=T=>Co(a("Top"),w(XI,{}),st.min,st.max,st.step,T,"px"),s=(T,S,C,y=st)=>dt("mobile",GV({label:a(T),icon:$V(T),desktopKey:S,min:y.min,max:y.max,step:y.step,fallback:C})),l=e.top??st.min,d=e.bottom??st.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??st,p=e.side??u.min,h=e.sidePhone??p,I=e.phone===!0,g=T=>I?dt("desktop",T):T;return Jl({...r?{_gSpacing:Lt("Padding")}:{},[o]:g(n(l)),...I?{[is(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Co(a("Bottom"),w(jO,{}),st.min,st.max,st.step,d,"px")),...I?{[is(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Co(a("Left"),w(KO,{}),u.min,u.max,u.step,p,"px")),...I?{[is(c)]:s("Left",c,h,u)}:{},[f]:g(Co(a("Right"),w(VO,{}),u.min,u.max,u.step,p,"px")),...I?{[is(f)]:s("Right",f,h,u)}:{}}:{}})}function xTe(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&oa(s)?e[n]:s])),r={},a=!1;for(let[n,s]of Object.entries(e)){if(n in o){a||Object.assign(r,t),a=!0;continue}r[n]=s}return a||Object.assign(r,t),r}var Ef="Width";function Mf(e,o=yO,t=!0){let r=o.map(a=>({label:Wa[a],value:a}));return Jl({...t?{_gWidth:Lt(Ef)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>w(ao,{label:i(Ef),icon:w(vK,{}),action:t?w(sV,{inherited:n?.inherited??!1,onReset:()=>a(WI),label:Ef}):void 0,children:kf({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Ef})})}})}function Hf(){let e=(r,a)=>({type:"custom",render:({value:n,onChange:s})=>w(jV,{value:n,onChange:s,view:r,badge:a})}),o=()=>KI("sectionHeightMode"),t=()=>KI("sectionHeightMode");return Jl({_gHeight:Lt(Mn),...gr("sectionHeightMode",r=>r==="desktop"?e(r):e(r,a=>w(qV,{view:r,onClear:()=>a(void 0)}))),...gr("sectionHeightValue",o),...gr("sectionHeightUnit",t)})}function jV({value:e,onChange:o,view:t,badge:r}){let a=ot(),{mode:n,number:s,unit:l}=KV(t,a,e);return w(ao,{label:Mn,icon:ds(w($O,{})),action:r?r(o):void 0,children:Cr("div",{className:"es-width-stack",children:[kf({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:n,onChange:o,ariaLabel:Mn}),s?w(YV,{view:t,mode:n,menu:l}):null]})})}function f0(e,o){return e==="phone"&&Gd(o)?MC(o):DC(o)}function Wf(e,o){return e==="desktop"||(e==="tablet"?Gd(o):NC(o))?null:f0(e,o)}function KV(e,o,t){let r=(a=>["auto","fixed","screen"].includes(a))(t)?t:Wf(e,o)?.mode??"auto";return{mode:r,number:r!=="auto",unit:r==="fixed"}}function VV(e,o,t,r){let a=Wf(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[ye("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[ye("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[ye("sectionHeightValue",e)]:a.value}:{},[ye(t,e)]:r}}function NO(e,o,t){let r=Ga(),a=Wf(e,ot());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=VV(e,s,o,n);return l===null?{[ye(o,e)]:n}:Object.keys(l).length?l:null})}}function YV({view:e,mode:o,menu:t}){let r=Ga(),a=ot(),n=ye("sectionHeightValue",e),s=ye("sectionHeightUnit",e),l=T=>S=>r?.onChangeMany(()=>({[T]:S})),{followed:d,write:c}=NO(e,"sectionHeightValue",l(n)),{write:f}=NO(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?BC:FC,I=a[n],g=t?{options:["px","%"],label:i("Unit"),onChange:T=>f(T)}:void 0;return jo({min:h.min,max:h.max,step:h.step,value:d?null:typeof I=="number"?I:h.fallback,...d?{placeholder:d.value}:{},suffix:p,...g?{units:g}:{},ariaLabel:Mn,onChange:c})}function qV({view:e,onClear:o}){let t=ot(),r=Wf(e,t)===null,a=e==="phone"&&Gd(t),n=f0(e,t),s=za(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return w(_o,{words:ne()?.panel,label:i(Mn),changed:r,detail:s,onReset:o})}function ag(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>w(t8,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>w(QV,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>w(e8,{value:s,onChange:l,view:n,intro:o})});return{_gStick:Lt(YE,{dot:o?JV:_I}),...gr("stickTop",t),...gr("stickTopDistance",r),...e.screens?gr(Na,a):{},...o?{}:{[EI]:XV()},...o||e.above===!1?{}:{[Ul]:ZV()}}}function XV(){let e=it(qE,w(XI,{}),XE,ZE);return dt("desktop",{...e,render:o=>{let t=e.render({...o,value:OI(o.value),onChange:r=>o.onChange(QE(r))});return YI(t,{hint:i(JE)})}})}function ZV(){let e=u0(eO,!1,w(YO,{}),oO);return dt("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var JV={any:[_I,rO]};function p0(e,o,t,r){let a=Ga(),n=ot(),s=e==="desktop"||Af(e,n)?null:ng(e,$l(n,{intro:r}));return{followed:s,write:s&&a?l=>a.onChangeMany(d=>{let c=o8(e,d,l,o,r);return c===null?{[ye(o,e)]:l}:Object.keys(c).length?c:null}):t}}function QV({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=p0(t,"stickTopDistance",o,r);return w("div",{className:"sf-field",children:jo({min:Zr.min,max:Zr.max,step:Zr.step,value:a?null:typeof e=="number"?e:Zr.fallback,...a?{placeholder:a.distance}:{},suffix:"px",ariaLabel:i("Distance from top"),onChange:n})})}function e8({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=p0(t,Na,o,r);return w(ao,{label:i(PI),icon:ds(w($O,{})),children:jo({min:Pf.min,max:Pf.max,step:Pf.step,value:a?null:K(e)??Pf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(PI),onChange:n})})}function Af(e,o){return e==="tablet"?AI(o):RI(o)}function ng(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,screens:o.desktopScreens}}function o8(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||Af(e,o))return null;if(t===void 0)return{};let n=ng(e,$l(o,{intro:a})),s=e==="phone"&&Af("tablet",o)?d=>ye(d,"tablet"):d=>d,l=(d,c)=>o[s(d)]==null?{}:{[ye(d,e)]:c};return{[ye("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...l(Na,n.screens),[ye(r,e)]:t}}function t8({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=ot(),s=$l(n,{intro:a}),l=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,d=r==="phone"&&s.ownTablet,c=r==="desktop"?null:ng(r,s),f=c?.on?`${c.distance}px`:i("Off");return w(ao,{label:i(TI),labelId:t,icon:ds(w(YO,{})),action:Cr(Tr,{children:[r!=="desktop"?w(_o,{words:ne()?.panel,label:i(TI),changed:Af(r,n),detail:za(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,w(ZI,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var MO="e.g. about";function Gf(){return{_gAnchor:Lt("Anchor"),anchor:ja({control:"plainText",label:"Name",placeholder:MO},{type:"custom",render:({value:e,onChange:o})=>w(XT,{value:e,onChange:o,nameBox:(t,r)=>w($a,{value:t,onChange:r,label:"Name",placeholder:MO,hideable:!1,markup:!1})})})}}function ITe(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let l=`${n??s??e}-datetime`,d=Date.parse(typeof r=="string"?r:"");return w(ao,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:w(MK,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function u0(e,o,t,r){return{type:"custom",...Qr({},{..._f,label:e}),render:a=>{let{value:n,onChange:s,id:l,name:d}=a,c="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,h=u?n:c?p:o,I=`${l??d??e}-label`,g=f.readOnly===!0,T=w(ZI,{checked:h,onChange:s,disabled:g,ariaLabelledBy:I});return w(ao,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:c?Cr(Tr,{children:[w(_o,{words:ne()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):za(S=>i(S),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),T]}):T})}}}function m0(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return w(r8,{label:"Background",icon:w(SK,{}),id:a,value:e,shown:Bx(e),onChange:o})}}}function gTe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>w(Uo,{label:i(e),icon:t,value:r||o,onChange:a})}}function r8({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=lg(),d=or(r),c=d?Yn(d,s,l):null;return w(Uo,{label:i(e),icon:o,id:t,value:c?c.hex:a,caption:c?.words,onChange:n,choices:sg(d??"",s,l,n)})}function bTe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return w(a8,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function sg(e,o,t,r){let a=Wc(e);return tP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function a8({value:e,onChange:o,twin:t}){let{colors:r,n:a}=lg(),n=r.background,s=Ua(n.toUpperCase(),i("Theme {n} background",{n:a})),l=Wc(e),d=l?Yn(l,r,a):null,c=sg(e,r,a,o),f=t?()=>o(void 0):()=>o(""),u=n,p=s;if(t){let h=Wc(t.follows),I=Hc(t.follows),g=h?Yn(h,r,a):I?{hex:I,words:I.toUpperCase()}:null;u=g?.hex??n,p=za(T=>i(T),g?g.words:s,t.view)}return d?w(Uo,{label:i("Fill"),icon:w(jI,{}),value:d.hex,caption:d.words,onChange:o,changed:!0,onReset:f,resetTo:p,choices:c}):w(Rl,{label:i("Fill"),icon:w(jI,{}),value:e,inherited:u,resetTo:p,onChange:o,onReset:f,choices:c})}function n8(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Kt(t);let r=mP(e,o);if(r.length===0)return null;let a=Kt(rh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Kt(rh(r[n].sectionAccent));if(s!==null)return s}return Kt(r[0].sectionAccent)}function lg(){let e=lo(xe().theme),[o]=vr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=Rf(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?n8(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Mo(e.themes[r]),n:r+1}}var s8=[{value:"0% 0%",label:"Top left"},{value:"50% 0%",label:"Top"},{value:"100% 0%",label:"Top right"},{value:"0% 50%",label:"Left"},{value:"50% 50%",label:"Center"},{value:"100% 50%",label:"Right"},{value:"0% 100%",label:"Bottom left"},{value:"50% 100%",label:"Bottom"},{value:"100% 100%",label:"Bottom right"}];function l8({label:e,value:o,onChange:t,points:r=s8}){let a=r.map(n=>({...n,label:i(n.label),...n.title?{title:i(n.title)}:null}));return w(BK,{label:i(e),value:o,points:a,onChange:t})}function yTe(){return s0()}var h0={top:w(mK,{}),right:w(uK,{}),bottom:w(fK,{}),left:w(pK,{})};function x0(e,o,t,r,a,n,s){let l=u=>o.find(p=>p.value===u),d=u=>({value:u,label:"",disabled:!0,title:r}),c=u=>{let p=o.find(I=>I.cell===u);if(!p)return d(`missing-${u}`);let h=n?.[u];return h?{value:p.value,label:p.label,icon:h}:{value:p.value,label:p.label}},f=[d("corner-top-left"),c("top"),d("corner-top-right"),c("left"),d("centre"),c("right"),d("corner-bottom-left"),c("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let h=o.some(I=>I.value===u)?u:t;return w(ao,{label:i(e),icon:a,value:l(h)?.label?i(l(h).label):s?i(s):"",children:l8({label:e,value:h,onChange:p,points:f})})}}}function STe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>w(WP,{label:e,options:(n.options??o).map(s=>({...s,label:i(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:i(t)}:{}})}}function wTe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return w(e,{...a})}}}var CTe=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function kTe(e,o,t){let r=Object.keys(sx).map(a=>({label:sx[a],value:a,picture:t[a]}));return{type:"custom",...Qr({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>w(d8,{label:e,icon:o,options:r,onChange:a})}}function i8(e,o,t){let r=$v(e,o,t);if(r!==void 0)return r==="save-makes-frame"?i("A frame is made from this video when you save the page."):r==="starts-dark"?i("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="outside"?i("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="unsupported"?i("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="failed"?i("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):r==="image-no-frame"?i("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=Uv(e);return a==="frame-missing-image"?i("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?i("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?i("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?i("No image yet. The slide shows its background colour until you choose one."):void 0}function d8({label:e,icon:o,options:t,onChange:r}){let a=Ga(),n=a?.values??{},s=kl(n),l=HO(oK),d=Tc(l?.docId??null),c=null;try{c=Rf(u=>u.appState.data)}catch{c=null}let f=dT(a?.id,c,d);return w(ao,{label:i(e),icon:ds(o),hint:i8(n,f,l?.hasUnsavedEdits??!1),children:kf({options:t,value:s,onChange:r,ariaLabel:e})})}function vTe(e,o,t,r={}){let a={type:"custom",[aK]:!0,render:({value:n,onChange:s,name:l})=>w(MP,{value:n||"",onChange:s,fieldKey:l,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?dt("each",a):a}function c8(e){let o=i(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${o} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:o}function TTe({value:e,onChange:o,label:t}){let r=e||{},a=Ga(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!Ve(ZK()).geocode,c=WO(),f=(u,p)=>o({...r,[u]:p??void 0});return Cr(Tr,{children:[w(ao,{label:i(t),icon:w(_O,{}),action:d?w(JI,{content:i("Find from the address (OpenStreetMap)"),children:w(ZO,{"aria-label":i("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:w(wK,{})})}):void 0,children:d&&r.status?w(ZT,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(Gx):i(r.status),hint:c8(r)}):null}),w(ao,{label:i("Enter by hand"),labelId:c,icon:w(hK,{}),action:w(ZI,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&w(ao,{label:i("Latitude, longitude"),icon:w(_O,{}),children:Cr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[w(RO,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),w(RO,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function f8(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function p8(e,o,t){let r=e.map(a=>({text:a?.text??""}));return o===null||o<0||o>=e.length?r:r.map((a,n)=>n===o?{text:t}:a)}function u8(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var ig={label:"Ticker items",icon:w(yK,{})};function PTe(e,o,t,r){return{type:"custom",[kr]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...Qr({},{...t0.textList,label:e}),render:({value:a,onChange:n})=>w(dg,{label:e,icon:ds(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function dg({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=Xl(null),[l,d]=Zl(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=u8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return w(LK,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?w($x,{target:s,value:f8(t,l),onChange:u=>a(p8(t,l??-1,u)),disabled:l===null,label:l===null?i("Formatting \u2014 click a row first"):i("Formatting \u2014 row {n}",{n:l+1})}):void 0,renderRow:(u,p,h)=>w("input",{type:"text",className:n&&l===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:i(r),"aria-label":i("{label} {n}",{label:i(e),n:p+1}),onChange:I=>h({text:I.target.value}),onFocus:I=>{s.current=I.currentTarget,d(p)}})})}function I0(e,o){let t=`${e.label} \u2014 row ${o+1}`;return ja({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>w($a,{value:r,onChange:a,label:i("{label} \u2014 row {n}",{label:i(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function g0(e){return{_gCards:Lt("Cards"),coverIndex:it("Cover image",w(bK,{}),FP,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:IV("Image background",wf),cardImage:y0()}}function ETe(){return{outline:it("Card outline",w(CK,{}),LP,RP),indexBadge:it("Card number",w(gK,{}),Xx,qx),showBadge:u0("Product badge",!0,w(Rx,{noun:"tag"}))}}function b0(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({..._f,label:Of.find(n=>n.id===a).label}),r=a=>Qr(KI($I),t(a));return{_gShowOnCard:Lt("Show on a card"),[$I]:Qr({type:"custom",render:()=>w(m8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t($I)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var $I="showCardPrice",Of=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function m8({rest:e}){let o=ot(),t=Dl(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Of.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return w(cs,{parts:Of,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Of.map(({id:s})=>[s,void 0])))})}function OTe(e,o="display"){let t=is(o);return{[o]:dt("desktop",{type:"custom",render:({value:r,onChange:a})=>w(cs,{parts:e,changed:gP(r),shown:n=>Uc(r,n),onPress:(n,s)=>a(yP(r,n,s)),onReset:()=>a(void 0)})}),[t]:dt("mobile",{type:"custom",render:({value:r,onChange:a})=>w(h8,{parts:e,desktopKey:o,value:r,onChange:a})})}}function cs({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return w(ao,{label:l,icon:w(lK,{}),changed:o,action:w(_o,{words:ne()?.panel,label:l,changed:o,detail:n,onReset:a}),children:w(FK,{label:l,items:e.map(d=>({id:d.id,label:i(d.label),shown:t(d.id),...s?{disabled:!0,disabledReason:i(s)}:{}})),onChange:r})})}function h8({parts:e,desktopKey:o,value:t,onChange:r}){let a=ot()[o];return w(cs,{parts:e,changed:bP(t),shown:n=>Wx(a,t,n),onPress:(n,s)=>r(SP(t,n,s)),onReset:()=>r(Vc),detail:i("the same as Desktop")})}function y0(e=AT){return Co("Card image",w(UO,{}),Ho,xa,_T,Ho,e,{clear:{hint:Ho},hint:"Rounds the picture. The card's own corner is in Styles."})}function x8(){return vO(Tx,"cardImage")}function _Te(){return{cardImage:y0(Tx),...x8()}}function ATe(){return tg({sidesKey:"cornerSides",step:RT,useFollowed:()=>Ho,mark:w(I8,{label:LT}),hint:i("Rounds the picture. Left alone it stays square.")})}function I8({label:e,changed:o=!1,onReset:t=()=>{}}){return w(_o,{words:ne()?.panel,label:i(e),changed:o,onReset:t})}function RTe(){return{type:"custom",render:({value:e,onChange:o})=>w(S8,{value:typeof e=="string"?e:"",onChange:o})}}function g8({layout:e,width:o}){let t=Ox(e),r=t?`${t[0]}/${t[1]}`:void 0;return w("span",{"aria-hidden":"true",style:{display:"grid",width:o,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:r?"auto":6,gridAutoFlow:"row dense",gap:2},children:HT(e).map(([a,n],s)=>w("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var b8={width:"3.5rem",height:"2.5rem"},y8=200;function S8({value:e,onChange:o}){let[t,r]=Zl(null),[a,n]=Zl(4),s=Xl(null);eK(()=>{let p=s.current;if(!p||typeof ResizeObserver!="function")return;let h=()=>n(p.getBoundingClientRect().width>=y8?4:3);h();let I=new ResizeObserver(h);return I.observe(p),()=>I.disconnect()},[]);let l=e&&e in xr?e:"",d=Ex(t,l),c=Ex(t,"").length,f=Rc("no-symbol"),u=[{value:"",label:i("Not chosen"),icon:PO(f,i("Not chosen"))},...d.map(p=>({value:p,label:i(xr[p].label),icon:w(g8,{layout:xr[p],width:40})}))];return w(ao,{label:i("Layout"),icon:w(IK,{}),value:l?i(xr[l].label):void 0,children:w("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:w(qO,{label:i("Layout"),value:l,options:u,onChange:o,columns:a,cell:b8,header:Cr("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[w("span",{className:"text-2xs text-ink-faint",children:i("Photos in a row")}),w(EK,{options:[{id:"all",label:i("All")},...NT.map(p=>({id:String(p),label:String(p)}))],value:t===null?"all":String(t),ariaLabel:i("Photos in a row"),onChange:p=>r(p==="all"?null:Number(p))}),w("span",{className:"text-2xs text-ink-faint",children:i("{n} of {total} layouts",{n:c,total:Px.length})})]})})})})}import{decodePartId as H8}from"efficient-easel/draw";import{decodePartId as ug,encodePartId as Kf}from"efficient-easel/draw";import{LINK_FIELD_MARKER as _0,SCAFFOLD_FIELD_MARKER as E0,TEXT_FIELD_MARKER as Vf}from"efficient-easel/draw";import{readHidable as A0}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as E8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as P8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as S0}from"efficient-easel/draw";import{readHidable as w0}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as w8}from"efficient-easel/draw";var C8=w8,k8=["text","textarea"],v8=["textarea","plainTextarea"];function T8(e){return!e||typeof e!="object"?null:e[S0]?.control??null}function fs(e){let o=T8(e);return o&&C8.includes(o)?o:null}function zf(e){return v8.includes(e)}function C0(e){return!e||typeof e!="object"?void 0:e[S0]?.placeholder}function Uf(e){return w0(e).text}function cg(e,o,t){return k8.includes(e)?{text:t,hidden:w0(o).hidden}:t}function k0(e,o,t,r){return Uf(e[o])===r?null:{...e,[o]:cg(t,e[o],r)}}function ps(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Ft(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}function $f(e){if(!(!e||typeof e!="object"))return e[P8]}function fg(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function v0(e,o){if(!Array.isArray(o))return[];let t=$f(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,l)=>{let d=q(s?.[n]);d&&r.push({row:{index:l,rowKey:n},text:d})}),r}let a=fg(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!fs(d))continue;let c=Uf(n?.[l])||$f(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function Ql(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function pg(e,o,t,r){let a=e[o];return!Array.isArray(a)||t.index<0||t.index>=a.length?null:{...e,[o]:a.map((n,s)=>s===t.index?{...n,[t.rowKey]:r}:n)}}function T0(e,o,t,r,a){let n=Ql(e[o],t);return Uf(n)===a?null:pg(e,o,t,cg(r,n,a))}function P0(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Bt="data-sf-part",ePe="data-sf-region-part",oPe="data-sf-part-row";function tPe(e,o){return`${e}[${o}]`}var rPe="data-sf-part-kind",O8="data-sf-part-style-owner",_8="data-sf-part-style-kind";function aPe(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(O8),r=o.getAttribute(_8);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var O0=2;function us(e){return mr(e).replace(/\s+/gu,"")}function jf(e,o,t){let r=e[Vf];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let l=s?.[n];typeof l=="string"&&t.push(l)}return}let{text:a}=A0(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[_0]){if(e.type==="text"||e.type==="textarea"){let a=q(o);a&&t.push(a);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))jf(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))jf(n,o[a],t)}}function mg(e){if(!e||typeof e!="object")return!1;let o=e;return o[_0]?!1:!!o[Vf]||o.type==="text"||o.type==="textarea"}function Yf(e,o){let t=e[Vf];return t?.label?t.label:typeof e.label=="string"?e.label:o}function hg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function nPe(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Ll(a))continue;let s=n,l=[];jf(s,o?.[a],l),!l.length&&s[E0]!==void 0&&jf(s,s[E0],l);let d=Yf(s,a);if(t?.(a)&&mg(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of v0(s,o?.[a])){let I=us(h);I.length<O0||(c.add(I),r.push({key:a,label:d,texts:[I],row:p}))}let f=new Set(c),u=[];for(let p of l){let h=us(p);h.length<O0||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function xg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var A8=E8;function R0(e,o){if(!o||typeof o!="object"||Ll(e)||vP(o))return null;let t=o[Vf];return!t||!A8.includes(t.control)?null:t}function sPe(e,o){let t=R0(e,o);return t!==null&&t.identifier!==!0}function L0(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=R0(r,a);if(!n)continue;let{text:s,hidden:l}=A0(o?.[r]);if(xg({offPage:n.offPage===!0,hidden:!!l,panelOnly:Qn(a)}))continue;let d=s||n.placeholder||"",c=mr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:hg(Yf(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function ms(e,o){let t=$f(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?I0(t,o.index):null:fg(e)?.[o.rowKey]??null}function qf(e,o,t){let r=e.node.props,{key:a,row:n}=Ft(e.propKey),s=n?T0(r,a,n,e.kind,o):k0(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as N0}from"efficient-easel/draw";import{isNodeList as R8}from"efficient-easel/data";var Ig=e=>String(e+1).padStart(2,"0"),mPe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],gg="two-digit",F0=e=>e==="plain"?"plain":gg,Xf=(e,o)=>e==="plain"?`${o+1}.`:Ig(o);var yg="Contents",bg="Flex",B0="Text",L8="numberForm",vPe="_contentsEntries",TPe="_kickerNumber",M0="data-sf-kicker-number",F8=e=>N0(e).text.trim(),H0=e=>Lc(e?.anchor),D0=e=>String(e.props?.id??""),B8=e=>!N0(e.props?.text).hidden&&!$n(e.props)&&!Qo(e.props);function ei(e){return Object.values(e.props??{}).filter(R8)}function W0(e){for(let o of ei(e))for(let t of o){if(Al(t.props??{}))continue;if(t.type===B0&&B8(t))return t;if(t.type===B0)continue;let r=W0(t);if(r)return r}}function G0(e){return ei(e).some(o=>o.some(t=>t&&!Al(t.props??{})&&(t.type===yg||G0(t))))}var z0=e=>e.type===bg&&rs(bg,e.props?.direction)==="row";function U0(e){return ei(e).some(o=>o.some(t=>t&&!Al(t.props??{})&&(t.type===yg||!z0(t)&&U0(t))))}function D8(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Al(n.props??{}))continue;if(n.type===yg){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(z0(n)&&U0(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of ei(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===bg&&H0(n.props)&&s&&!G0(n)){s.push({box:n,kicker:W0(n)});continue}for(let l of ei(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function N8(e){return e.map(o=>({label:o.kicker?mr(F8(o.kicker.props?.text)):"",anchor:H0(o.box.props)}))}function PPe(e){let o=e?.length?D8(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=D0(a.contents);n&&t.set(n,N8(a.sections));let s=F0(a.contents.props?.[L8]);a.sections.forEach((l,d)=>{let c=l.kicker?D0(l.kicker):"";c&&r.set(c,Xf(s,d))})}return{entries:t,numbers:r}}var EPe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var W8=`[${M0}]`,G8=["bold","italic","underline","strike","link","sup","sub"],z8=["bullet","number"];function Cg(e,o){return e?[...G8,...o?z8:[]]:[]}function $0(e,o){let t=H8(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:d}=Ft(a),c=o.components[n.type]?.fields?.[l],f=d?ms(c,d):c,u=fs(f);if(!u)return null;let p=n.props??{};if(uI(p)!==null||!d&&Sl(n.type,p,l)||n.type==="Text"&&l==="text"&&$n(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?Ql(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:Lf(f),panelOnly:Qn(f)}}function Zf(e,o){let t=$0(e,o);if(!t)return null;let{text:r,hidden:a}=ea(t.stored);if(!xg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=zf(t.kind);return{partId:e,value:r,rules:ya,multiline:n,skip:W8,offered:Cg(t.kind!=="plainText",n),write:s=>{let l=$0(e,o);l&&qf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function kg(e,o,t){return e?.isConnected&&e.getAttribute(Bt)===t?e:o?.querySelector(`[${Bt}="${Jf(t)}"]`)??null}function Jf(e){return e.replace(/["\\]/g,"\\$&")}function j0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Sg=null,wg=new Set;function U8(){return Sg}function vg(e){if(e!==Sg){Sg=e;for(let o of wg)o()}}function $8(e){return wg.add(e),()=>{wg.delete(e)}}function K0(){return M8($8,U8,()=>null)}function V0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Pv(t.type);return!r||ro(t.props)?null:{node:t,rows:r}}function q8(e,o){let t=V0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Jh(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:j8(e.ownerId,ps(t.rows,{index:e.index,rowKey:a}))}function Qf(e,o){let t=q8(e,o);return t?Zf(t,o):null}function Y0(e,o){return Qf(e,o)?.value}function q0(e,o){let t=Qf(e,o);return t?(t.write(e.text),!0):!1}function X0(e,o){let t=V0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let d=o.components[t.node.type]?.fields?.[t.rows];l=K8(n,s+1,{...d?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let d=e.action==="moveEarlier"?s-1:s+1;if(d<0||d>=n.length)return!1;l=V8(n,s,d);break}case"delete":l=Y8(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Ce,Fragment as PA,jsxs as ci}from"react/jsx-runtime";import{Fragment as T9,useEffect as P9,useId as E9,useMemo as EA,useRef as O9,useState as ta}from"react";import{useScreenDocument as DA}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as hb}from"efficient-easel/draw/client";import _9 from"efficient-easel/screen/components/SidePanelHead";import{jsx as Ie,Fragment as Cs,jsxs as Za}from"react/jsx-runtime";import{useEasel as bA,useRootFields as Rq}from"efficient-easel/easel";import{Inspector as Lq}from"efficient-easel/fields";import{SettingsGroup as Fq}from"efficient-easel/panel";import{useEffect as Bq,useRef as Dq,useState as pb}from"react";import{jsx as Ka,Fragment as Q8,jsxs as eY}from"react/jsx-runtime";import{useState as e_}from"react";import{SettingsDefaultReset as oY,SettingsField as tY}from"efficient-easel/panel";import{useEaselStrings as rY}from"efficient-easel/strings";import{AddIcon as aY}from"efficient-easel/icons";import{Button as nY}from"efficient-shell/ui";import{iconOf as sY,noGlyph as lY}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ep,Fragment as X8,jsxs as Z0}from"react/jsx-runtime";import{Button as J0,Dialog as Z8}from"efficient-shell/ui";function J8(e){return Ro("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function Q0({count:e,onCancel:o,onConfirm:t}){return Z0(Z8,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:Z0(X8,{children:[ep(J0,{variant:"secondary",onClick:o,children:i("Cancel")}),ep(J0,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[ep("p",{children:J8(e)}),ep("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var iY=lY("the row's whole content is an action; the gutter names a subject and this row has none \u2014 the button's label is the name GG, 2026-09-23"),dY="Reset color",cY={selected:0,themes:[]};function fY(e){e(cY)}function o_({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=lo(e),[n,s]=e_(!1),l=rY(),[d,c]=e_(null),f=(S,C)=>{o({...a,themes:a.themes.map((y,b)=>b===S?C:y)})},u=Fn(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),h=oC.filter(S=>!p.has(S)).map(S=>tC(u,S)),I=[...a.themes,...h],g=S=>{if(S<a.themes.length)return o({...a,selected:S});let C=[...a.themes,I[S]];o({...a,themes:C,selected:C.length-1})},T=()=>{let S=[...a.themes,{...Mo(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),c(S.length-1)};return eY(Q8,{children:[r?null:Ka(tY,{label:i(dY),icon:sY(iY),labelId:"sf-theme-reset",action:Ka(oY,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&Ka(Q0,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),fY(o)}}),Ka("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((S,C)=>Ka(Qc,{index:C,colors:S,selected:C===a.selected,open:d===C&&C<a.themes.length,editable:C<a.themes.length,onPick:()=>g(C),onEdit:()=>c(y=>y===C?null:C),onChangeColors:y=>f(C,y)},C))}),Ka(nY,{variant:"secondary",leftIcon:Ka(aY,{}),onClick:T,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as op}from"react/jsx-runtime";import{SettingsDefaultReset as pY,SettingsField as uY}from"efficient-easel/panel";import{SquareIcon as mY}from"efficient-easel/icons";var hY="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Tg="Corners";function t_({value:e,onChange:o}){let t=e===null;return op(uY,{label:i(Tg),icon:op(mY,{}),changed:!t,action:op(pY,{words:ne()?.panel,label:i(Tg),changed:!t,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(hY),children:op(jo,{min:Ho,max:xa,step:1,value:e,...e===null?{}:{suffix:"px"},placeholder:Ho,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(Tg),onChange:o})})}import{jsx as oi}from"react/jsx-runtime";import{SettingsDefaultReset as xY,SettingsField as IY}from"efficient-easel/panel";import{IconPicker as gY}from"efficient-shell/ui";import{ShadowIcon as bY}from"efficient-easel/icons";import{SHADOW_PREVIEW as yY}from"efficient-easel/screen/lib/document/shadow-values";var Pg={none:"None",soft:"Soft",lifted:"Lifted"},SY="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function r_({value:e,onChange:o}){let t=e===null,r=e??oh;return oi(IY,{label:i("Card shadow"),icon:oi(bY,{}),value:i(Pg[r]),changed:!t,action:oi(xY,{words:ne()?.panel,label:i("Card shadow"),changed:!t,detail:i(Pg[oh]),onReset:()=>o(null)}),hint:i(SY),children:oi(gY,{label:i("Card shadow"),value:r,options:uC.map(a=>({value:a,label:i(Pg[a]),icon:oi("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:yY[a]}})})),onChange:o})})}import{jsx as a_}from"react/jsx-runtime";import{ShadowIcon as wY}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as n_}from"efficient-easel/screen/lib/document/shadow-values";var CY="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function s_({value:e,onChange:o}){let t=e===null;return a_(Rl,{label:i("Shadow color"),icon:a_(wY,{}),value:e??"",inherited:n_,resetTo:n_,onChange:o,onReset:()=>o(null),hint:i(CY)})}import{jsx as rp}from"react/jsx-runtime";import{SettingsDefaultReset as kY,SettingsField as vY}from"efficient-easel/panel";import{AlignSeparateIcon as TY}from"efficient-easel/icons";function tp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var PY="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",EY="The space between the blocks inside a row, a grid or a box, on a phone. Until you set it, a phone uses half the desktop gap.",Eg="Block gap",l_=ns.Grid;function i_(e,o){return tp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:FI(o.gap)}})}function d_({value:e,onChange:o,followsPx:t=null}){let r=e===null,a=t===null?null:`${t}px`,n=t===null?l_:jl(t)??l_;return rp(vY,{label:i(Eg),labelId:"sf-block-gap",icon:rp(TY,{}),changed:!r,action:rp(kY,{words:ne()?.panel,label:i(Eg),changed:!r,detail:a??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(a===null?PY:EY),children:rp(jo,{min:Ma.min,max:Ma.max,step:Ma.step,value:e,...e===null&&t===null?{}:{suffix:"px"},placeholder:n,...t===null?{placeholderWord:"Auto"}:t===n?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:i(Eg),onChange:o})})}import{jsx as ap}from"react/jsx-runtime";import{SettingsDefaultReset as OY,SettingsField as _Y,SettingsSegmented as AY}from"efficient-easel/panel";import{HoverIcon as RY}from"efficient-easel/icons";var Og={none:ka.none,lift:ka.lift,highlight:wh},LY="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function c_({value:e,onChange:o}){let t=e===null,r=e??th;return ap(_Y,{label:i("Hover effect"),icon:ap(RY,{}),value:i(Og[r]),changed:!t,action:ap(OY,{words:ne()?.panel,label:i("Hover effect"),changed:!t,detail:i(Og[th]),onReset:()=>o(null)}),hint:i(LY),children:ap(AY,{options:mC.map(a=>({id:a,label:i(Og[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as np}from"react/jsx-runtime";import{SettingsDefaultReset as FY,SettingsField as BY,SettingsSegmented as DY}from"efficient-easel/panel";import{DropIcon as NY}from"efficient-easel/icons";var _g="Photography",f_={shot:"As shot",mono:"Black and white"},Ag=[{grayscale:!1,label:f_.shot},{grayscale:!0,label:f_.mono}],MY="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function p_({value:e,onChange:o}){let t=e===null,r=e??!1;return np(BY,{label:i(_g),icon:np(NY,{}),value:i(Ag.find(a=>a.grayscale===r).label),changed:!t,action:np(FY,{words:ne()?.panel,label:i(_g),changed:!t,detail:i(Ag.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(MY),children:np(DY,{options:Ag.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(_g),onChange:o})})}import{jsx as Rg}from"react/jsx-runtime";import{useId as HY}from"react";import{SettingsField as WY,SettingsSwitch as GY}from"efficient-easel/panel";import{ShareIcon as zY}from"efficient-easel/icons";var UY="Share button",$Y="On every blog post.";function u_({value:e,onChange:o}){let t=HY();return Rg(WY,{label:i(UY),labelId:t,icon:Rg(zY,{}),action:Rg(GY,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i($Y)})}import{usePreviewDevice as ub}from"efficient-easel/draw/client";import{jsx as sp}from"react/jsx-runtime";import{SettingsDefaultReset as jY,SettingsField as KY}from"efficient-easel/panel";import{PaddingXIcon as VY}from"efficient-easel/icons";var Lg="Side space",m_=Sr.default,YY="The room left at the left and right edge of every page.";function h_(e,o){return tp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:m_,bounds:Sr},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:pf(o.gutter),bounds:Wl}})}function x_({value:e,onChange:o,unsetPx:t=m_,bounds:r=Sr}){let a=e===null;return sp(KY,{label:i(Lg),labelId:"sf-side-space",icon:sp(VY,{}),changed:!a,action:sp(jY,{words:ne()?.panel,label:i(Lg),changed:!a,detail:`${t}px`,onReset:()=>o(null)}),hint:i(YY),children:sp(jo,{min:r.min,max:r.max,step:r.step,value:e,suffix:"px",placeholder:t,onClear:()=>o(null),ariaLabel:i(Lg),onChange:o})})}import{jsx as Fg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as gOe,SettingsBackgroundWidth as qY,SettingsContentWidth as XY}from"efficient-easel/panel";var ZY="Background width",JY="Content width";var lp=e=>i(Wa[e==="content"?"page":"full"]),I_="The width of every section's background.",g_="The width of every section's content.";function b_({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Fg(qY,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(ZY),full:lp("full"),content:lp("content")},resetWords:ne()?.panel})}function y_({mode:e,px:o,max:t=wo.max,min:r=wo.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:d,onReset:c,hint:f,labelId:u}){let p=i(JY),h=e!=="full"?Fg(jo,{min:r,max:t,step:wo.step,value:Math.min(Math.max(o,r),t),onChange:d,suffix:"px",ariaLabel:p}):null;return Fg(XY,{mode:e,onMode:l,number:h,changed:a,detail:n,fullClosed:s,onReset:c,hint:f?i(f):void 0,labelId:u,words:{label:p,full:lp("full"),content:lp("content")},resetWords:ne()?.panel})}import{jsx as nA}from"react/jsx-runtime";import{TextStyleItem as iq,TextStylesGroup as dq}from"efficient-easel/text-styles";import{jsx as oq}from"react/jsx-runtime";import{useState as tq}from"react";import{TextStylesList as rq}from"efficient-easel/text-styles";import{usePreviewDevice as aq}from"efficient-easel/draw/client";import{defaultTextStyles as j_,textStyleCaseCss as Y7,textStyleViewKey as q7}from"efficient-easel/text-styles/model";import{resolveViewValue as K_}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as S_,VIEW_TABLET_MIN as w_}from"efficient-easel/draw";var ip=.02,C_=`(min-width: ${Fr}px) and (max-width: ${S_-ip}px)`,k_=`(max-width: ${Fr-ip}px)`,dp=`(min-width: ${w_}px) and (max-width: ${S_-ip}px)`,cp=`(max-width: ${w_-ip}px)`;import{textStyleCaseCss as QY,textStyleCaseOfCss as e7}from"efficient-easel/draw";function hs(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function xs(e,o){return hs(e?.[o])??{}}function fp(e,o,t){let r=xs(e,o);return Object.hasOwn(r,t)?hs(r[t])??{}:{}}function pp(e,o,t,r){let{[t]:a,...n}=xs(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}var ai="_partStyles",Hg="data-sf-part-styled",Is="data-sf-text-style",o7=/^(heading|body)-[1-7]$/;function Ya(e){return typeof e=="string"&&o7.test(e)}var up={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function t7(e){if(!e)return null;for(let[o,t]of Object.entries(up))if(t===e)return o;return null}function Wg(e){if(Ya(e.textStyle))return e.textStyle;let o=fr(e.role);return o?up[o]:void 0}var r7=[400,500,600,700],ri=["left","center","right","justify"],Bg=5,Dg=1e3,a7=-5,n7=10,Gg=0,zg=64,Ug=2,v_={size:{min:Bg,max:Dg,step:1},sizeTablet:{min:Bg,max:Dg,step:1},sizePhone:{min:Bg,max:Dg,step:1},padding:{min:Gg,max:zg,step:Ug}},s7=.05,l7=.01,i7=["line","letter"],d7=.5,c7=2.5,f7=-1,p7=1,u7=0,m7=400,h7=[...new Set(Object.values(Rn))];function A_(e){return[`${e} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${e}:hover, ${e}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function MOe(e){return xs(e,ai)}function ni(e,o){return fp(e,ai,o)}function R_(e,o,t){return pp(e,ai,o,x7(t).length?t:null)}function x7(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function I7(e){return i7.includes(e)}var ti=(e,o,t)=>Math.min(t,Math.max(o,e));function g7(e,o){if(I7(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:ti(t,a7,n7)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?gs(ti(t,d7,c7),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?gs(ti(t,f7,p7),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:ti(t,u7,m7)}if(Object.hasOwn(v_,e)){let{min:t,max:r}=v_[e],a=Math.round(Number(o));return Number.isFinite(a)?ti(a,t,r):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?fr(o)?o:null:e==="sizeToken"?$g(o)?o:null:e==="textStyle"?Ya(o)?o:null:e==="alignPhone"||e==="alignTablet"?ri.includes(o)?o:null:o}var b7=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function bs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of b7){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}return e.align!==void 0&&!ri.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!ri.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!ri.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!Ya(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!$g(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!fr(e.fontRole)&&t("fontRole"),o??e}function $g(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=d=>typeof d=="number"&&Number.isFinite(d)&&d>0,l=d=>typeof d=="string"&&h7.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||y7(n,t))}function y7(e,o){if(!e||typeof e!="object"||Array.isArray(e))return!1;let{minPx:t,vw:r,...a}=e;return Object.keys(a).length===0&&typeof t=="number"&&Number.isFinite(t)&&t>0&&t<o&&typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=100}function jg(e){return e?.pxPhone&&$g(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function L_({step:e,px:o,fluid:t}){let r=t?`clamp(${t.minPx}px, ${t.vw}vw, ${o}px)`:`${o}px`,a=`var(--size-${e}, ${r})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var S7=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function w7(e){let o=[];for(let[t,r]of S7)t===e?o.push(r):r===e&&o.push(t);return o}function qa(e,o,t,r){let a={...ni(e,o)},n=r==null?null:g7(t,r);if(n===null)delete a[t];else{a[t]=n;for(let s of w7(t))delete a[s]}return R_(e,o,a)}function F_(e,o){return R_(e,o,{})}function C7(e){return e7(e)??"none"}function k7(e){return QY(e)??""}var T_={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function v7(e,o){return fr(e.role)||(o?.blockDrawsStyle?null:t7(e.textStyle))}function B_(e,o){return e==="Text"&&o==="text"}var T7={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function P7(e){let o=Rn[e],t=T7[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function si(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=gs(E7+e.line*s7,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=gs(e.letter*l7,4)),o}var E7=1,Va="--sf-part-para";function O7(e){e=bs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=`${e.sizePhone}px`;else{let r=jg(e.sizeToken);if(r)o.fontSize=L_(r);else{let a=hp(e);a!==void 0&&(o.fontSize=`${a}px`)}}let t=e.alignPhone??mp(e);return t&&(o.textAlign=t),o}function mp(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function hp(e){let o=kt("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function _7(e){let o=bs(e),t={},r=hp(o);r!==void 0&&(t.fontSize=`${r}px`);let a=mp(o);return a&&(t.textAlign=a),t}function D_(e,o){if(o==="desktop")return;let t=bs(e);return(o==="mobile"?mp(t):void 0)??t.align}function A7(e,o){if(o==="desktop")return e;let t=bs(e),r=hp(t),a=mp(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r}),a&&(l={...l,align:a}),l}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone};else{let l=jg(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function Kg(e,o,t){return Yg(A7(e,o),xp,t)}function Vg(e){return e==="mobile"?"sizePhone":e==="tablet"?"sizeTablet":"size"}function N_(e,o){if(o==="desktop")return null;let t=bs(e);if(o==="mobile"){if(jg(t.sizeToken))return null;let r=hp(t);if(r!==void 0)return{px:r,view:"tablet"}}return typeof t.size=="number"&&t.size>0?{px:t.size,view:"desktop"}:null}function M_(e,o){let t=Vg(o);if(!Object.hasOwn(e,t))return e;let r={...e};return delete r[t],r}function HOe(e,o,t){let r=Kg(M_(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function Yg(e,o,t){e=bs(e);let r=v7(e,t),a=si(e),n=e.size?`${e.size}px`:e.sizeToken?L_(e.sizeToken):r?P7(r):"";return{fontFamily:e.font?B7(e.font):e.fontRole?`var(${T_[e.fontRole]})`:r?`var(${T_[r]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[Va]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:k7(e.case),textAlign:e.align??"",paddingTop:P_(e.padding),paddingBottom:P_(e.padding),color:R7(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var R7=e=>qn(e),P_=e=>e===void 0?"":`${e}px`,gs=(e,o)=>Number(e.toFixed(o));function WOe(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop);return{fontKey:o,sizePx:t,weight:L7(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?gs(r/t,3):1.2,letterEm:Number.isFinite(a)?gs(a/t,4):0,align:F7(e.textAlign),case:C7(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function L7(e){return Number.isFinite(e)?r7.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function F7(e){for(let o of ri)if(o===e)return o;return e==="end"?"right":"left"}function GOe(e,o){let t=E_(e);if(!t)return"";for(let r of Ct)if(E_(o(r.cssVar))===t)return r.key;return""}var E_=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function B7(e){let o=An(e);return o?`var(${o.cssVar})`:""}function zOe(e,o,t,r){return!o||ug(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function D7(e,o){return Object.hasOwn(e,o)?hs(e[o])??{}:{}}function UOe(e,o,t=()=>xp,r=l=>l,a=H7,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=ug(c)?.propKey;if(!f)continue;let u=D7(o,r(f)),p=Kg(u,n,{blockDrawsStyle:s(f)});Ya(u.textStyle)?d.setAttribute?.(Is,u.textStyle):d.removeAttribute?.(Is);let h=Ng.some(g=>d.style[g]),I=!1;for(let[g,T]of Object.entries(p))z7(d,g,T),T&&(I=!0);if(h||Ng.some(g=>p[g]))for(let g of N7(d,a))for(let T of Ng)g.style[T]=p[T]??"";I&&(l+=1)}return l}function N7(e,o){let t=us(e.textContent??""),r=[],a=e;for(let n=0;n<M7&&o(a);n+=1){let s=a.parentElement;if(!s||us(s.textContent??"")!==t)break;r.push(s),a=s}return r}var M7=8;function H7(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var xp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function W7(e){if(!e||typeof e!="object")return null;let o={};return Ya(e.textStyle)&&(o.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(o.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(o.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(o.sizePhone=e.sizePhone),Object.keys(o).length?o:null}function G7(e,o){let t=W7(e);if(!t)return{};let r=Kg(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function H_(e){return Ya(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function $Oe(e,o,t){if(!e||typeof e!="object")return{};let r=uc(e.role,o,Rn)??{},a=o.sized?G7(M_(e,t),t):{};return{...r,...a}}function jOe(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function z7(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let r=e.style;typeof r.setProperty=="function"?t?r.setProperty(o,t):r.removeProperty?.(o):r[o]=t;let a=e;o===Va&&(t?a.setAttribute?.(O_,""):a.removeAttribute?.(O_))}var O_="data-sf-part-para",U7=Object.keys(Yg({},xp)),Mg=new Set(["color","overflowWrap",Va,"fontStyle"]),Ng=U7.filter(e=>!Mg.has(e));function W_(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=ps(u.key,u.row);for(let h of u.texts){let I=l.get(h);I?(I.keys.add(u.key),I.partKeys.add(p)):l.set(h,{keys:new Set([u.key]),partKeys:new Set([p])})}}let d=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!$7(u))continue;let p=__(t,u,hs(o[u])??{},!1,n(u));p&&d.set(u,p)}let c=u=>{let p=r(u),h=n(p);if(!Object.hasOwn(o,p)&&!h)return null;let I=hs(o[p])??{};return __(t,u,I,a(u),h)},f=new Map;for(let[u,{keys:p,partKeys:h}]of l){let I=h.size===1?[...h][0]:p.size===1?[...p][0]:null;if(!I)continue;let g=c(I);g&&f.set(u,g)}for(let u of e){if(!u.keyed)continue;let p=c(ps(u.key,u.row));p&&d.set(u.key,p)}return f.size||d.size?{rules:f,kindRules:d,drawn:new Set(l.keys())}:null}function __(e,o,t,r,a){let n=Yg(t,xp,{blockDrawsStyle:r}),s=_7(t),l=O7(t),d=Ya(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:j7(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function $7(e){return e.startsWith("@")}function qg(e,o){return e?.kindRules.get(o)??null}function j7(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Xg(e){return e?{tablet:C_,phone:k_}:{tablet:dp,phone:cp}}function G_(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=Xg(o),a=[],n=new Set,s=l=>{let{stamp:d,declarations:c}=l;if(n.has(d))return;n.add(d);let f=Object.entries(c).filter(([,S])=>S!==""),u=S=>S.map(([C,y])=>`${K7(C)}: ${y}`).join("; "),p=`[${Hg}="${d}"]`,h=f.filter(([S])=>!Mg.has(S)),I=f.filter(([S])=>Mg.has(S));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),I.length&&a.push(`${p} { ${u(I)} }`),c[Va]&&(a.push(`*:has(> ${p}) { ${Va}: ${c[Va]} }`),a.push(...Ip(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,S])=>S!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let T=Object.entries(l.phone??{}).filter(([,S])=>S!=="");T.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(T)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
68
- `)}function Ip(e,o){let t=`var(${Va})`,r=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${t} }`,`${e} ${r}:not(:first-child) { margin-top: ${t} }`,`${e} ${r}:not(:last-child) { margin-bottom: ${t} }`,`:is(${o}) + :is(${o}) { margin-top: ${t} }`]}var K7=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function z_(e,o){if(!e)return null;let t=us(o),r=e.rules.get(t);if(r)return r;if(t.length<V7||e.drawn.has(t))return null;let a=null;for(let[n,s]of e.rules)if(n.includes(t)){if(a&&a.stamp!==s.stamp)return null;a=s}return a}var V7=8;function U_(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var Zg=e=>e==="sentence"?"none":void 0,V_=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],ys=["desktop","tablet","phone"],Xa=(e,o)=>o==="desktop"?e:q7(e,o);function eb(e,o,t,r=Ln()){return K_("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var X7=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function Jg(e){for(let[o,t,r]of X7)for(let a of ys)if(e===Xa(o,a))return{key:ye(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function ar(e){let o={};for(let t of V_)e[t]!==void 0&&(o[t]=e[t]);return o}function ob(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=V_.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function Y_(e){let o=e.fonts,t=e.sizes,r=e.typography,a=hC(e.compression),n={"heading-1":{font:q(o.heading),size:K(t.headingLarge),weight:K(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Zg(r.case),largestSize:K(r.maxPx)},"heading-2":{font:q(o.heading2),size:K(t.headingMedium),weight:K(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Zg(r.case2)},"heading-3":{font:q(o.heading3),size:K(t.headingSmall),weight:K(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Zg(r.case3)},"body-1":{font:q(o.body),size:K(t.body)},"body-5":{font:q(o.label),size:K(t.label)}};return j_().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:ar(n[s]??{})}))}function tb(e){return Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof o.id=="string"&&(o.kind==="heading"||o.kind==="body")&&typeof o.name=="string")?e.map(o=>ob({...o,values:ar(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function n0e(e){return tb(e)??[]}function q_(e){return tb(e)??j_().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Pr(e,o){let t=Y_(o),r=tb(e);return r?r.map(a=>{let n={...Qg(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:ar({...n,...a.values})}}):t}var Qg=(e,o)=>e.find(t=>t.id===o)?.values??{},$_=["heading-1","heading-2","heading-3"];function X_({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=Y_(o),l=q_(e),d=Pr(l,o),c=[],f=r.map(p=>{let h=t.find(E=>E.id===p.id),I=l.find(E=>E.id===p.id);if(!h||!I){let E=Z7([p],a,n)[0],H=E.values.color;return H===void 0?E:{...E,values:{...E.values,color:et(H)}}}let g={...I.values},T=new Set(I.auto??[]),S=p.values,C=h.values,y=[...new Set([...Object.keys(S),...Object.keys(C)])].filter(E=>JSON.stringify(S[E])!==JSON.stringify(C[E])),b=E=>Jg(E).spacing==="letter";y.sort((E,H)=>Number(b(E))-Number(b(H)));for(let E of y){let{key:H,view:v,spacing:M}=Jg(E),P=H,F=S[E];if(F===void 0){delete g[P],Qg(s,p.id)[P]!==void 0&&(c.push([p.id,P]),T.add(P));continue}if(T.delete(P),M==="line")g[P]=Ss(F/100,3);else if(M==="letter"){let k={...d.find(R=>R.id===p.id)?.values??{}};for(let R of y)S[R]===void 0&&delete k[Jg(R).key];let A=ar({...k,...g}),L=eb(A,a({...p,values:A}),v);g[P]=L?Ss(F/L,4):0}else g[P]=F}return ob({id:p.id,kind:p.kind,name:p.name,values:ar(g)},T)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&$_.includes(p))&&Ia(u)!=="normal"){for(let p of $_){let h=f.find(g=>g.id===p);if(!h)continue;let I={...h.values};for(let g of["lineHeight","letterSpacing"])c.some(([T,S])=>T===p&&S===g)||I[g]===void 0&&!(h.auto??[]).includes(g)&&(I[g]=Qg(s,p)[g]);h.values=ar(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function Z_(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Ia(e.old.compression)),t}var Ss=(e,o)=>Number(e.toFixed(o)),J_=(e,o)=>ys.indexOf(e)<ys.indexOf(o)?o:e;function Q_(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of ys){let l=ye("lineHeight",s),d=r.values[l],c=r.values[ye("letterSpacing",s)];delete a[l],d!==void 0&&(a[Xa("lineSpacing",s)]=Ss(d*100,1));let f=J_(s,t);c!==void 0&&(a[Xa("letterSpacing",s)]=Ss(c*eb(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function Z7(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of ys)delete n[Xa("lineSpacing",c)],delete n[Xa("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:ar(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of ys){let f=a[Xa("lineSpacing",c)],u=a[Xa("letterSpacing",c)];if(typeof f=="number"&&(l[ye("lineHeight",c)]=Ss(f/100,3)),typeof u=="number"){let p=eb(s.values,d,J_(c,t));l[ye("letterSpacing",c)]=p?Ss(u/p,4):0}}return{...s,values:ar(l)}})}function s0e(e){let o={fonts:ol({heading:e.heading_font??void 0,heading2:e.heading_2_font??void 0,heading3:e.heading_3_font??void 0,body:e.body_font??void 0,accent:e.accent_font??void 0,label:e.label_font??void 0}),sizes:eh({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:Ia(e.heading_compression),typography:IC(e)},t=e.text_styles??null,r=Array.isArray(t)?rb(Pr(t,o),o):o;return{fonts:ol(r.fonts),sizes:eh(r.sizes),compression:Ia(r.compression),typography:r.typography,textStyles:t}}function rb(e,o){let t=p=>e.find(h=>h.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),l=t("body-5"),d=o.fonts,c=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...d,heading:r.font??d.heading,heading2:a.font??r.font??d.heading2,heading3:n.font??r.font??d.heading3,body:s.font??d.body,label:l.font??d.label},sizes:{...c,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:l.size??null},compression:o.compression,typography:{...f,case:u(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:u(a.letterCase),case3:u(n.letterCase)}}}function l0e(e){let o=[];for(let t of e){let r=t.values,a=`.${U_(t)}`,n=`[${Is}="${t.id}"]`,s=`${a}, ${n}`,l=[],d=r.font!==void 0?Ct.find(p=>p.key===r.font)?.cssVar:void 0;if(d&&l.push(`font-family: var(${d})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;l.push(`font-size: ${p}px`)}let c=qn(r.color);c&&l.push(`color: ${c}`),r.italic===!0&&l.push("font-style: italic"),r.weight!==void 0&&l.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&l.push(...f);let u=Y7(r.letterCase);u&&t.kind==="body"&&l.push(`text-transform: ${u}`),r.paragraphSpacing&&l.push(`--sf-part-para: ${r.paragraphSpacing}px`),l.length&&o.push(`${s} { ${l.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${s}, ${a}:is(h1, h2, h3, h4), ${n}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),t.kind==="heading"&&u&&o.push(`${n}, ${a}:is(h1, h2, h3, h4) { text-transform: ${u} }`),r.paragraphSpacing&&(o.push(`*:has(> ${n}) { --sf-part-para: ${r.paragraphSpacing}px }`),o.push(...Ip(`:is(${s})`,`*:has(> ${n})`))),o.push(...J7(t,s,a,n))}return o.join(`
69
- `)}function J7(e,o,t,r){let a=e.values,n=kt("textSize",a.size,a.sizeTablet,a.sizePhone),s=kt("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=kt("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=kt("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=kt("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=K_("textSize",a.size,a.sizeTablet,a.sizePhone,Ln()),u=Q7[e.id],p=[];for(let[h,I]of[["tablet",dp],["phone",cp]]){let g=[],T=[],S=f[h],C=s[h],y=n[h]===void 0&&C===void 0||S===void 0?void 0:C===void 0?S:Math.min(S,C);y!==void 0&&T.push(`font-size: ${y}px`);let b=[];l[h]!==void 0&&b.push(`line-height: ${l[h]}`),d[h]!==void 0&&b.push(`letter-spacing: ${d[h]}em`),e.kind==="body"&&T.push(...b),c[h]!==void 0&&T.push(`--sf-part-para: ${c[h]}px`),T.length&&g.push(`${o} { ${T.join("; ")} }`),e.kind==="heading"&&b.length&&g.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${b.join("; ")} }`),c[h]!==void 0&&g.push(`*:has(> ${r}) { --sf-part-para: ${c[h]}px }`),c[h]!==void 0&&!a.paragraphSpacing&&g.push(...Ip(`:is(${o})`,`*:has(> ${r})`)),y!==void 0&&u&&g.push(`.sf-themed-content { --size-${u}: ${y}px !important }`),g.length&&p.push(`@media ${I} { ${g.join(" ")} }`)}return p}var Q7={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function i0e(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function eA(e){return e?up[e]:void 0}function ab(e){let o=si(e);return ar({font:e.font,color:e.color===void 0?void 0:et(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function oA(e){return Object.keys(ab(e)).length>0}function tA({saved:e,old:o,styleId:t,values:r}){let a=q_(e);return{saved:eq(a,t,r),old:o}}function eq(e,o,t){return e.map(r=>r.id===o?ob({...r,values:ar({...r.values,...t})},r.auto):r)}var nq={desktop:"desktop",tablet:"tablet",mobile:"phone"},rA=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],sq=["size","lineSpacing","letterSpacing","letterCase"],lq=500,nb=Ct.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function aA({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=aq(),[u,p]=tq(null),h=Pr(e,o),I=nq[f],g=Q_(h,a,I);return oq(rq,{styles:g,onChange:T=>n(X_({saved:e,old:o,cur:g,next:T,sizeOf:a,panelView:I})),fonts:nb,colours:t,colourNameOf:r,settings:c?rA.filter(T=>T!=="size"):rA,auto:sq,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:d,device:I,fallback:T=>{let S=h.find(y=>y.id===(T.kind==="heading"?"heading-1":"body-1")),C={};return S?.values.font&&T.id!==S.id&&(C.font=S.values.font),T.kind==="heading"&&(C.weight=lq),C}})}var sA=["font","size","weight","emphasis"],cq=500;function fq({font:e,size:o,weight:t,italic:r}){let a={font:e};return o!==null&&(a.size=o),t!==null&&(a.weight=t),r!==null&&(a.italic=r),{id:"accent",kind:"heading",name:i("Emphasis"),values:a}}function pq(e,o){let t=[],r=e.values,a=o.values;return a.font!==r.font&&a.font!==void 0&&t.push({key:"font",value:a.font}),a.size!==r.size&&t.push({key:"size",value:a.size??null}),a.weight!==r.weight&&t.push({key:"weight",value:a.weight??null}),a.italic!==r.italic&&t.push({key:"italic",value:a.italic??null}),t}function lA(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=fq(e);return nA(dq,{label:i("Emphasis"),children:nA(iq,{style:s,fonts:nb,settings:n?sA.filter(l=>l!=="size"):sA,auto:["size"],fallback:()=>({weight:o??cq}),open:t,onOpenChange:r,onChange:l=>pq(s,l).forEach(a)})})}import{EmptyState as Nq,SliderGroup as Mq,Tabs as Hq,Tooltip as __e,tabButtonId as Wq,tabPanelId as Gq}from"efficient-shell/ui";import{ContrastIcon as zq,SettingsIcon as Uq,TypeIcon as $q}from"efficient-easel/icons";function iA(e){switch(e.status){case"saved":return null;case"failed":return{msg:i("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:i("Not saved. Reload the page."),tone:"error"};case"template":return{msg:i("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as db}from"react/jsx-runtime";import{ListIcon as vq,PaddingTopIcon as Tq}from"efficient-easel/icons";import{jsx as gp}from"react/jsx-runtime";import{SettingsDefaultReset as uq,SettingsField as mq,SettingsSegmented as hq}from"efficient-easel/panel";import{WidthIcon as xq}from"efficient-easel/icons";function dA({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let l=e===void 0,d=l?o:e,c=i(r);return gp(mq,{label:c,labelId:a,icon:gp(xq,{}),value:l?n:void 0,changed:!l,action:gp(uq,{words:ne()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:gp(hq,{options:[{label:i(Wa.full),id:"full"},{label:i(Wa.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as sb,FOOTER_TYPE as Iq}from"efficient-easel/draw";var gq=new Set(["Hero","HeroSingle","IntroBleed"]),cA={min:56,max:140,default:88},A0e={min:0,max:120,step:2,default:32},R0e=`var(--sf-header-h, ${cA.default}px)`,bq="--sf-header-set-h",L0e="--sf-header-h",F0e=`var(${bq}, ${cA.default}px)`,B0e="sf-header-clearance",D0e="sf-sticky-underheader";function yq(e){return e?.find(o=>o?.type&&o.type!==sb)??null}function fA(e){let o=yq(e)?.type;return!o||!gq.has(o)}function N0e(e){return!fA(e)}function M0e(e){return!!e?.some(o=>o?.type===sb)}function H0e(e){return!e||e.length===0?!1:!e.some(o=>o?.type===sb||o?.type===Iq)}var Sq=["auto","shared","own"],lb="auto",wq="topSpace",W0e="data-top-space";function Cq(e){return Sq.includes(e)?e:lb}function kq(e,o){let t=Cq(e?.props?.[wq]);return t==="own"?!0:t==="shared"?!1:fA(o)}function G0e(e,o){return kq(e,o)?"own":null}function Pq(){return{type:"custom",render:({value:e,onChange:o})=>db(dA,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:i("Follows the site"),hint:i("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var Eq=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],J0e={pageBackground:m0(),topSpace:it("Top space",db(Tq,{}),Eq,lb),widthChoice:Pq()},li=["pageBackground","topSpace","widthChoice"],Oq="Record type",ib=new Map,pA=-1;function _q(e){pA!==yx()&&(ib.clear(),pA=yx());let o=bx(),t=o.some(a=>a.key===e)?"":e,r=ib.get(t);return r||(r=it(Oq,db(vq,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],jr),ib.set(t,r)),r}var uA=new WeakMap;function Q0e(e,o){if(!El()||bx().length<2||Ec in e)return e;let t=_q(Pl(o)),r=uA.get(e);if(r&&r.row===t)return r.fields;let a={[Ec]:t,...e};return uA.set(e,{row:t,fields:a}),a}import{previewFrame as jq}from"efficient-easel/screen/lib/document/preview-dom";var mA="background";function hA(e){let o=Mo(Fn(e));return Xn({main:o.accent,text:o.text,background:o.background,muted:o.muted}).map(t=>({key:t.name,name:t.label??t.name,value:t.value}))}function xA(e){return hA(e).filter(o=>o.key!==mA)}function IA(e){let o=hA(e).filter(t=>t.key===mA);return t=>{let r=et(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Aq}from"efficient-easel/easel";function bp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Aq(v=>v),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=xe(),I=t.data,g=I.root?.props??{},T=e?ol(g.fonts):a,S=e?cC:s,C=e?Ia(g.headingCompression):d,y=e?xC(g.headingTypography):f,b={fonts:T,sizes:S,compression:C,typography:y},E=e?g.textStyles:p,H=v=>r({type:"replaceRoot",root:{...I.root,props:{...g,...v}},recordHistory:!0});return{fonts:T,sizes:S,compression:C,typography:y,old:b,saved:E,write:(v,M)=>{let P=rb(Pr(v.saved,v.old),v.old);e?H({textStyles:v.saved,fonts:P.fonts,headingCompression:P.compression,headingTypography:P.typography}):(h(v.saved),n(P.fonts),l(P.sizes),c(P.compression),u(P.typography)),o(Z_(v,b),M)},writeRoot:H}}import{pictureShadowColor as Kq}from"efficient-easel/screen/lib/document/shadow-values";var fb="sf-site-styles",Vq="sf-site-styles-tabpanel",yA="text",ks="basics",gA="this-page-group",ws=[{id:ks,label:"Basics",icon:Ie(Uq,{})},{id:"theme",label:"Theme",icon:Ie(zq,{})},{id:"text",label:"Text",icon:Ie($q,{})}];function Yq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=bA(c=>c),{theme:a,setTheme:n}=xe(),s=t.data,l=s.root?.props??{},d=c=>{if(e){let f={...l,theme:c};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(c);o({selected_preset:c.selected,theme_presets:c.themes})};return Ie(o_,{value:e?l.theme:a,onChange:d})}function qq({themeFromDocument:e,persist:o}){let[t,r]=pb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=xe(),d=bp({themeFromDocument:e,persist:o}),{old:c,saved:f,writeRoot:u}=d,p=d.fonts,h=d.sizes,I=d.typography,g=v=>v.values.size??Qq(Xq[v.id]??"body")??Zq[v.kind],T=v=>d.write(v),S=xA(a),C=IA(a),y=v=>{let M={...p,accent:v};e?u({fonts:M}):n(M),o({accent_font:v})},b=v=>{s({...h,accent:v}),o({accent_size_px:v})},E=v=>{let M={...I,weightStrong:v};e?u({headingTypography:M}):l(M),o({heading_weight_strong:v})},H=v=>{let M={...I,italicStrong:v};e?u({headingTypography:M}):l(M),o({accent_italic:v})};return Za(Cs,{children:[Ie(aA,{saved:f,old:c,colours:S,colourNameOf:C,sizeOf:g,onChange:T,openId:t===cb?null:t,onOpenChange:r,withoutSize:e}),Ie(lA,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===cb,onOpenChange:v=>r(v?cb:null),onChange:v=>{v.key==="font"?y(v.value):v.key==="size"?b(v.value):v.key==="weight"?E(v.value):H(v.value)},withoutSize:e})]})}var cb="accent",Xq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Zq={heading:32,body:14},Jq={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function Qq(e){if(typeof document>"u")return null;let o=(jq()?.contentDocument??document).querySelector(Jq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function e9({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=bA(u=>u),{cornerRadiusPx:a,setCornerRadiusPx:n}=xe(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?pC[fC(l.cornerStyle)]:$t(l.cornerRadiusPx),c=e?d:a,f=u=>r({type:"replaceRoot",root:{...s.root,props:{...l,...u}},recordHistory:!0});return Ie(t_,{value:c,onChange:u=>{e?f({cornerRadiusPx:u}):n(u),o({corner_radius_px:u})}})}function o9(e){return{site_width:e}}function t9({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=xe();if(ub()!=="desktop")return null;let l=typeof o=="number"?o:wo.default,d=u=>{t(u),e(o9(u),u===null)},c=u=>{a(u),e({section_background_width:u},!0)},f=u=>{s(u),e({section_content_width:u},!0)};return Za(Cs,{children:[Ie(b_,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:c,onReset:()=>c(null),hint:I_}),Ie(y_,{mode:n??"content",px:l,min:wo.min,max:wo.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${wo.default}px`,onMode:f,onPx:u=>d(u),onReset:()=>{f(null),d(null)},hint:g_})]})}function r9(e){return{block_gap:e}}function a9(e){return{block_gap_phone:e}}function n9(e){return{site_gutter:e}}function s9(e){return{site_gutter_phone:e}}function SA(e,[o,t],r){o(e),r(t(e),e===null)}function l9({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a}=xe(),n=h_(ub(),{gutter:o,phone:t});if(!n)return null;let s=n.key==="site_gutter_phone"?[a,s9]:[r,n9];return Ie(x_,{value:n.value,onChange:l=>SA(l,s,e),unsetPx:n.unsetPx,bounds:n.bounds})}function i9({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a}=xe(),n=i_(ub(),{gap:o,phone:t});if(!n)return null;let s=n.key==="block_gap_phone"?[a,a9]:[r,r9];return Ie(d_,{value:n.value,onChange:l=>SA(l,s,e),followsPx:n.followsPx})}function d9({persist:e}){return Za(Cs,{children:[Ie(t9,{persist:e}),Ie(l9,{persist:e}),Ie(i9,{persist:e})]})}function c9(e){return{card_shadow:e}}function f9(e){return e===null?{shadow_color:null}:{shadow_color:Kq(e)}}function p9(e){return{hover_effect:e}}function u9({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=xe();return Za(Cs,{children:[Ie(r_,{value:o,onChange:l=>{t(l),e(c9(l),!0)}}),Ie(s_,{value:r,onChange:l=>{a(l),e(f9(l),l===null)}}),Ie(c_,{value:n,onChange:l=>{s(l),e(p9(l),!0)}})]})}function m9(e){return{photography_grayscale:e}}function h9({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=xe();return Ie(p_,{value:o,onChange:r=>{t(r),e(m9(r),!0)}})}function x9({persist:e}){return Ie(Cs,{children:Ie(h9,{persist:e})})}function I9(e){return{share_button_on_posts:e}}function g9({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=xe();return Ie(u_,{value:o,onChange:r=>{t(r),e(I9(r),!0)}})}function vs(){let{websiteName:e}=xe();return e?.trim()||YC}function yp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=es({themeFromDocument:e,tokenRef:o,siteId:t,onResult:T=>{let S=iA(T);S&&r?.(S.msg,S.tone)}}),[f,u]=pb(s??ws[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=ws.find(T=>T.id===h)??ws[0];return Za(Mq,{children:[Ie(S9,{activeId:g.id,onSelect:I}),Za("div",{id:Gq(fb,g.id),className:Vq,role:"tabpanel","aria-labelledby":Wq(fb,g.id),children:[h===ks&&Za(Cs,{children:[Ie(e9,{themeFromDocument:e,persist:c}),!e&&Ie(u9,{persist:c}),!e&&Ie(d9,{persist:c}),!e&&Ie(x9,{persist:c}),!e&&Ie(g9,{persist:c}),Ie(b9,{reveal:l,onRevealed:d})]}),h==="theme"&&Ie(Yq,{themeFromDocument:e,persist:c}),h==="text"&&Ie(qq,{themeFromDocument:e,persist:c})]})]})}function b9({reveal:e,onRevealed:o}){let[t,r]=pb(!0),a=Dq(o);return a.current=o,Bq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(gA)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Ie(Fq,{title:i("This page"),open:t,onToggle:r,id:gA,children:Ie(y9,{})})}function y9(){let{fields:e,values:o,readOnly:t,onChange:r}=Rq(),a=Object.fromEntries(li.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Ie(Nq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):Ie(Lq,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function S9({activeId:e,onSelect:o}){return Ie("div",{className:"es-insp-tabs",children:Ie(Hq,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:fb,value:e,onChange:o,items:ws.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as A9}from"efficient-easel/chrome";import{Button as OA,Dialog as R9,FormField as L9,Input as _A,PopupMenu as F9,PopupMenuItem as AA,toast as RA}from"efficient-shell/ui";import{LayersTree as B9,TreeGroupLabel as D9,TreeRow as LA,TreeRowAction as kp}from"efficient-easel/tree";import{AddIcon as N9,DuplicateIcon as M9,PageIcon as H9,SettingsIcon as W9}from"efficient-easel/icons";import{PagesIcon as G9}from"efficient-easel/rail";import{useEaselHost as z9}from"efficient-easel/screen/lib/host";import{useEaselSession as NA}from"efficient-easel/screen/lib/session-context";import{useCallback as Sp,useEffect as w9,useSyncExternalStore as C9}from"react";import{useScreenDocument as vA}from"efficient-easel/screen/components/ScreenDocumentContext";var wA=new WeakMap;function ii(e){let o=wA.get(e);return o||(o={rows:null,loading:null,listeners:new Set},wA.set(e,o)),o}function mb(e,o){e.rows=o;for(let t of e.listeners)t()}var wp=new Set;function Cp(e,o){o?wp.add(e):wp.delete(e)}function CA(e){let o=ii(e),t=e.listPages().then(r=>mb(o,wp.size?r.filter(a=>!wp.has(a.id)):r),()=>mb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var kA=()=>null,k9=()=>()=>{};function di(){let{adapter:e,ready:o}=vA(),t=Sp(l=>{let{listeners:d}=ii(e);return d.add(l),()=>d.delete(l)},[e]),r=Sp(()=>ii(e).rows,[e]),a=C9(o?t:k9,o?r:kA,kA);w9(()=>{if(!o)return;let l=ii(e);l.rows===null&&!l.loading&&CA(e)},[e,o]);let n=Sp(()=>o?CA(e):Promise.resolve(),[e,o]),s=Sp(l=>mb(ii(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function v9(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function TA(){let{currentSlug:e}=vA(),{rows:o}=di();return v9(o,e)}import{canDuplicatePage as U9,DuplicatePageDialog as $9,uniqueSlug as FA}from"efficient-easel/page-copy";var BA="sf-editor-pages-collapsed-groups";function j9(){let e=NA(),{siteId:o,templateId:t}=DA(),r=Ve(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function MA({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=NA().chrome?.pageRows,n=z9(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=DA(),f=vs(),{rows:u,reload:p,setRows:h,getRows:I}=di(),[g,T]=ta(""),[S,C]=ta(!1),[y,b]=ta(null),[E,H]=ta(!1),[v,M]=ta(""),P=E9(),F=j9(),[k,A]=ta(null),[L,R]=ta(()=>{if(typeof window>"u")return new Set;try{let D=window.localStorage.getItem(BA);return new Set(D?JSON.parse(D):[])}catch{return new Set}});P9(()=>{try{window.localStorage.setItem(BA,JSON.stringify([...L]))}catch{}},[L]);let G=D=>R(Pe=>{let Se=new Set(Pe);return Se.has(D)?Se.delete(D):Se.add(D),Se}),$=EA(()=>vT(u??[]),[u]),oe=g.trim().toLowerCase(),re=D=>!oe||D.toLowerCase().includes(oe),be=D=>oe?!0:!L.has(D),de=EA(()=>new Set((u??[]).map(D=>D.slug)),[u]),_e=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}M(""),b(null),H(!0)},je=async()=>{let D=v.trim();if(!(!D||!d||S||!s.createPage)){C(!0),b(null);try{let Pe=await s.createPage({slug:FA(D,de),title:D,layout:{}});await p(),H(!1),M(""),e(Pe.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{C(!1)}}},ge=l.hasSiteSettings&&!!s.createPage,Ae=async()=>{if(!(!d||S||!s.createPage)){C(!0),b(null);try{let D=await s.createPage(vE(i("New popup"),de));await p(),e(D.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{C(!1)}}},Le=O9(null),[De,so]=ta(null),No=()=>{if(!ge)return _e();if(De)return so(null);let D=Le.current?.getBoundingClientRect();D&&so({top:D.bottom+6,right:Math.max(8,window.innerWidth-D.right)})},he=D=>{let Pe=u??[],Se=s.deletePage;if(!d||S||!Se||Pe.length<=1)return;let eo=Pe.findIndex(oo=>oo.id===D.id),We=Pe.filter(oo=>oo.id!==D.id),yt=D.slug===c;Cp(D.id,!0),h(We),b(null),yt&&We[0]&&e(We[0].slug);let zt=()=>{Cp(D.id,!1);let oo=I()??[];if(oo.some(Ut=>Ut.id===D.id))return;let St=[...oo];St.splice(Math.max(0,Math.min(eo,St.length)),0,D),h(St)};RA.undoable(i("Deleted \u201C{name}\u201D",{name:D.label}),{actionLabel:i("Undo"),commit:async oo=>{await Se(D.id,oo),Cp(D.id,!1)},undo:()=>{zt(),yt&&e(D.slug)},onFail:()=>{zt(),RA.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Ke=D=>n.send("storefront-editor:open-page",{slug:D}),Te=D=>{if(!re(D.label))return null;let Pe=!t&&D.slug===c,Se=l.canDeletePagesInline&&(u??[]).length>1,eo=Ea(D),We=kT(D),yt=[...eo?[{label:i("Dynamic"),tone:"info"}]:[],...We?[{label:i("Lightbox"),tone:"success"}]:[],...D.draft?[{label:i("draft"),tone:"draft"}]:[]],zt=yt.length>0?yt:void 0,oo=!!F&&U9(D),St=oo||l.pageCreationInAdminForm||Se?ci(PA,{children:[oo&&Ce(kp,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:D.label}),disabled:S,onClick:()=>A(D),children:Ce(M9,{size:13})}),l.pageCreationInAdminForm&&Ce(kp,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:D.label}),onClick:()=>Ke(D.slug),children:Ce(W9,{size:13})}),Se&&Ce(kp,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:D.label}),disabled:S,onClick:()=>he(D),children:Ce(hb,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Ce(LA,{icon:Ce(H9,{size:14}),name:D.label,selected:Pe,onSelect:()=>e(D.slug),badge:zt,actions:St,rowProps:{"data-page-slug":D.slug}},D.id)},Oe=(D,Pe,Se)=>{let eo=Se.filter(Boolean);if(eo.length===0)return null;let We=be(D);return ci(T9,{children:[Ce(D9,{count:eo.length,countLabel:Ro("{n} page","{n} pages",eo.length),expanded:We,onToggle:()=>G(D),children:Pe}),We&&eo]},D)},Ze=(a?.rows??[]).filter(D=>re(D.label)).map(D=>{let Pe=t===D.key;return Ce(LA,{icon:D.icon,name:D.label,selected:Pe,onSelect:()=>r(D.key),badge:{label:i("Preview"),tone:"warning"},actions:Ce(kp,{kind:"plain",label:i("Open the {name} in a new tab",{name:D.label}),onClick:()=>window.open(D.href,"_blank","noopener,noreferrer"),children:Ce(hb,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":D.key}},D.key)}),Gt=l.hasSiteSettings&&!!a,Zo=(()=>{if(u===null)return null;let D=[],Pe=!1;for(let Se of $){Gt&&!Pe&&Se.key.startsWith("system:")&&(D.push(Oe("shop",a.title,Ze)),Pe=!0);let eo=Se.key===Cx||Se.label===wx?i(Se.label):Se.label;D.push(Oe(Se.key,eo,Se.rows.map(Te)))}return Gt&&!Pe&&D.push(Oe("shop",a.title,Ze)),D})();return ci("div",{className:"sf-pages",children:[Ce(_9,{icon:Ce(G9,{}),title:i("Pages"),context:f,actions:Ce(A9,{buttonRef:Le,label:ge?i("Add"):i("New page"),hasPopup:ge?"menu":void 0,expanded:ge?De!==null:void 0,onClick:No,children:Ce(N9,{size:15})})}),De&&Ce(F9,{portal:!0,style:{top:De.top,right:De.right},onClose:()=>so(null),children:ci("div",{role:"menu","aria-label":i("Add"),children:[Ce(AA,{role:"menuitem",onClick:()=>{so(null),_e()},children:i("Page")}),Ce(AA,{role:"menuitem",disabled:S,onClick:()=>{so(null),Ae()},children:i("Popup")})]})}),Ce("div",{className:"sf-pages-find",children:Ce(_A,{type:"search",leftIcon:Ce(hb,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:g,onChange:D=>T(D.target.value),"aria-label":i("Search all pages")})}),y&&!E&&Ce("div",{className:"sf-note sf-note--error",role:"alert",children:y}),Zo===null?Ce("div",{className:"sf-note",children:i("Loading\u2026")}):Zo.some(Boolean)?Ce(B9,{ariaLabel:i("Pages"),className:"sf-scroll",children:Zo}):Ce("div",{className:"sf-note",children:g.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),F&&k&&Ce($9,{source:{title:k.label,slug:k.slug},taken:de,host:Kd(),duplicate:D=>F(k,D),onClose:()=>A(null),onDuplicated:D=>{A(null),p(),e(D.slug)}},k.id),Ce(R9,{open:E,onClose:()=>H(!1),size:"sm",title:i("Add a page"),description:i("Give the new template page a name. It starts blank \u2014 add sections once it opens."),footer:ci(PA,{children:[Ce(OA,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Ce(OA,{onClick:()=>{je()},disabled:S||!v.trim(),loading:S,children:i("Add page")})]}),children:Ce(L9,{label:i("Page name"),htmlFor:P,hint:v.trim()?i("URL: /{slug}",{slug:FA(v,de)}):void 0,error:y??void 0,children:Ce(_A,{id:P,value:v,invalid:!!y,onChange:D=>M(D.target.value),onKeyDown:D=>{D.key==="Enter"&&je()},placeholder:i("e.g. About")})})})]})}import{jsx as GA}from"react/jsx-runtime";import{createContext as V9,useCallback as Y9,useContext as q9,useMemo as X9,useState as Z9}from"react";import{CanvasChromeContext as J9}from"efficient-easel/easel";import{useSelectHandler as Q9}from"efficient-easel/draw/client";import{parseHexColor as K9}from"efficient-shell/format";var vp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Ts=vp[0];var Ja="right";function Tp(e){return vp.includes(e??"")?e:Ts}function HA(e){return e==="left"?"left":Ja}function WA(e){return e&&K9(e)===e.toLowerCase()?e.toLowerCase():""}var zA="chat",Pp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ja,launcherLabel:"",showOnPhones:!0};function SAe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:WA(e.launcherColor),launcherIcon:e.launcherIcon?Tp(e.launcherIcon):"",launcherPosition:HA(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var UA=V9({chat:Pp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function wAe({children:e,chat:o=Pp,onChatChange:t}){let[r,a]=Z9(!1),n=Y9(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=Q9(),d=X9(()=>({selected:()=>r?zA:null,select:c=>c===zA&&s()}),[r,s]);return GA(UA.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:GA(J9.Provider,{value:d,children:e})})}var Ep=()=>q9(UA);import{jsx as xb}from"react/jsx-runtime";import{DesktopIcon as eX,PhoneIcon as oX,TabletIcon as tX}from"efficient-easel/icons";import{VIEW_TIERS as rX,VIEW_TIER_LABEL as aX}from"efficient-easel/draw";var nX={desktop:xb(eX,{}),tablet:xb(tX,{}),mobile:xb(oX,{})},$A=rX.map(e=>({id:e,get label(){return i(aX[e])},icon:nX[e]}));import{PreviewDeviceContext as qfe}from"efficient-easel/draw/client";import{jsx as sX}from"react/jsx-runtime";import{createContext as lX,useCallback as jA,useContext as iX,useMemo as dX,useRef as cX}from"react";var fX=Object.fromEntries(Vd.map(e=>[e,{value:"",error:null}])),KA=lX({links:XC,rows:fX,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function RAe({children:e,value:o}){let t=cX(()=>{}),r=jA(()=>t.current(),[]),a=jA(s=>{t.current=s},[]),n=dX(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return sX(KA.Provider,{value:n,children:e})}var fi=()=>iX(KA);import{jsx as pX}from"react/jsx-runtime";import{createContext as uX,useContext as mX,useMemo as hX,useState as xX}from"react";var VA=uX(null);function DAe({children:e}){let[o,t]=xX(null),r=hX(()=>({surface:o,setSurface:t}),[o]);return pX(VA.Provider,{value:r,children:e})}function YA(){return mX(VA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as IX}from"efficient-easel/draw/client";var pi="Scrolling Bar",{Provider:HAe,useSelection:qA}=IX("selectedHeroId"),WAe="data-sf-hero-ticker";function GAe(e){return`${e}::ticker`}function zAe(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var XA=["","","","","",""],ZA="#ticker",ui="strip",Ib={sectionAccent:jt,line:!1};function gX(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function gb(e){return gX(e).length>0}function jAe(e){return e.showTicker!==!1&&gb(e)}import{createPreviewSelectionContext as bX}from"efficient-easel/draw/client";var{Provider:YAe,useSelection:Op}=bX("selectedHeroPart");var QA=["one","side","stacked"];var XAe={one:"One",side:"Side by side",stacked:"Stacked"};function _p(e){return QA.includes(e)?e:"one"}function JA(e){return e==="one"?1:2}function bb(e,o){if(QA.includes(e))return e;let t=_p(o);return t==="side"?"stacked":t}function mi(e){let o=_p(e.mediaLayout);return Math.max(JA(o),JA(bb(e.mediaLayoutPhone,o)))}var Qa=["media","image","image2"],en={media:"Media",image:"Image",image2:"Image 2"},hi={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Ap(e,o){return e==="image"&&mi(o)>1?"Image 1":en[e]}var eRe="Video file",oRe="Upload a video file";function yX(e,o){return{field:"mediaType",is:e,default:o}}var SX=new Set(["HeroSingle"]),eR="heroPart";function wX(e,o){return{...o,[eR]:e}}function tRe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let l of t[s])n[l]=Ge(n[l],yX(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=Ge(n[s],l));for(let s of Qa)for(let l of o[s]??[])n[l]=wX(s,n[l]);return n}function CX(e){let o=e?.[eR];return Qa.includes(o)?o:null}function oR(e,o){let t={};for(let[r,a]of Object.entries(e))CX(a)===o&&(t[r]=a);return t}function tR(e){if(!SX.has(e.type))return[];let o=[{part:"media",label:en.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Ap("image",e.props),depth:1}),mi(e.props)>1&&o.push({part:"image2",label:Ap("image2",e.props),depth:1})),o}function xi(e,o){return`${e}::${o}`}function rR(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Qa.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var aR="data-sf-hero-part";import{jsx as ke,jsxs as ca,Fragment as cM}from"react/jsx-runtime";import{useEasel as Tle,useRootFields as Ple}from"efficient-easel/easel";import{Button as Ele,EmptyState as Ole}from"efficient-shell/ui";function nR({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ea({kind:e})?i("Template"):i("Page")}}import{headWords as mM,InspectorHead as _le,InspectorIconButton as fM}from"efficient-easel/chrome";import{DuplicateIcon as Ale,TrashIcon as Rle}from"efficient-easel/icons";import{panelFieldsOf as Lle}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as B,Fragment as pe,jsxs as ue}from"react/jsx-runtime";import{BlockBannerIcon as TX,BlockBoxIcon as PX,BlockButtonIcon as EX,BlockDividerIcon as lR,BlockFooterIcon as iR,BlockHeadingIcon as OX,BlockProductIcon as _X,BlockSocialIcon as AX,BlockTextIcon as RX,CardPaymentIcon as LX,ChatIcon as FX,AccountIcon as BX,GlobeIcon as DX,GridIcon as NX,ImageIcon as Sb,MapIcon as MX,MediaIcon as HX,PageIcon as WX}from"efficient-easel/icons";import{jsx as yb,Fragment as kX,jsxs as vX}from"react/jsx-runtime";var sR=vX(kX,{children:[yb("circle",{cx:"9",cy:"20",r:"1.3"}),yb("circle",{cx:"18",cy:"20",r:"1.3"}),yb("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var GX={header:ue(pe,{children:[B("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),B("path",{d:"M3 9.5h18"})]}),social:ue(pe,{children:[B("circle",{cx:"6",cy:"12",r:"2.5"}),B("circle",{cx:"18",cy:"6",r:"2.5"}),B("circle",{cx:"18",cy:"18",r:"2.5"}),B("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:ue(pe,{children:[B("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),B("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:ue(pe,{children:[B("path",{d:"M4 15.5h6M4 18h4"}),B("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:B("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:ue(pe,{children:[B("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),B("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:B("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:ue(pe,{children:[B("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),B("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:ue(pe,{children:[B("circle",{cx:"11",cy:"11",r:"6"}),B("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:sR,CountrySwitchBlock:ue(pe,{children:[B("circle",{cx:"12",cy:"12",r:"8.5"}),B("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:ue(pe,{children:[B("circle",{cx:"12",cy:"12",r:"8.5"}),B("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:ue(pe,{children:[B("path",{d:"M3 9h18"}),B("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ue(pe,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ue(pe,{children:[B("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),B("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:ue(pe,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),B("path",{d:"M7 17h7"})]}),Collections:ue(pe,{children:[B("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),B("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),B("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:ue(pe,{children:[B("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),B("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ue(pe,{children:[B("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),B("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),B("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),B("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),B("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:ue(pe,{children:[B("path",{d:"M3 7h9M15.5 7H21"}),B("circle",{cx:"13.5",cy:"7",r:"1.7"}),B("path",{d:"M3 12h4M10.5 12H21"}),B("circle",{cx:"8.5",cy:"12",r:"1.7"}),B("path",{d:"M3 17h9M15.5 17H21"}),B("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:ue(pe,{children:[B("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:ue(pe,{children:[B("path",{d:"M3 5h10"}),B("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),B("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),B("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:ue(pe,{children:[B("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),B("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),B("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:ue(pe,{children:[B("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),B("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),B("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),B("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:ue(pe,{children:[B("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),B("circle",{cx:"9",cy:"10",r:"1.6"}),B("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:ue(pe,{children:[B("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),B("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:ue(pe,{children:[B("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),B("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),B("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:ue(pe,{children:[B("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),B("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:ue(pe,{children:[B("path",{d:"M3.5 20h17"}),B("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ue(pe,{children:[B("circle",{cx:"6",cy:"12",r:"2.6"}),B("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),B("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:ue(pe,{children:[B("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),B("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:ue(pe,{children:[B("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),B("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:ue(pe,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ue(pe,{children:[B("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),B("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ue(pe,{children:[B("path",{d:"M4 8.5h4.5M11 8.5h9"}),B("path",{d:"M4 14.5h16"})]}),HeroGroup:ue(pe,{children:[B("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),B("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ue(pe,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M6.5 9h11M6.5 12.5h11"}),B("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:B(pe,{children:B("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:ue(pe,{children:[B("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),B("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:ue(pe,{children:[B("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),B("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),B("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),B("path",{d:"M4 13.5h11M4 17.5h7"}),B("path",{d:"M17 15l3 2-3 2"})]}),Contents:ue(pe,{children:[B("path",{d:"M4 7h2M4 12h2M4 17h2"}),B("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ue(pe,{children:[B("path",{d:"M4 6h9M4 11h5M4 16h5"}),B("circle",{cx:"15",cy:"15",r:"4"}),B("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:B("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},zX=B("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),UX={footer:iR,Footer:iR,Divider:lR,FooterDivider:lR,Banner:TX,Flex:PX,FooterSocial:AX,FooterPayment:LX,page:WX,website:DX,AccountBlock:BX,chat:FX,Heading:OX,Text:RX,ImageBlock:Sb,ButtonBlock:EX,LocationMap:MX,Grid:NX,ProductRef:_X,heroMedia:HX,heroImage:Sb,heroImage2:Sb},$X={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function on({type:e,size:o=16,className:t}){let r=$X[e]??e,a=UX[r];return a?B(a,{size:o,className:t}):B("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:GX[r]??zX})}import{PanelHideButton as pM}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Fle}from"efficient-easel/screen/lib/session-context";import{jsx as ve,jsxs as Ii,Fragment as jX}from"react/jsx-runtime";import{useEffect as KX,useId as dR,useState as VX}from"react";import{IconPicker as YX}from"efficient-shell/ui";import{SettingsDefaultReset as qX,SettingsField as gi,SettingsSegmented as XX,SettingsSwitch as cR}from"efficient-easel/panel";import{ButtonIcon as ZX,ButtonIconIcon as JX,EyeIcon as QX,PhoneIcon as eZ,PlacementIcon as oZ,TypeIcon as tZ}from"efficient-easel/icons";var rZ="Chat with us",aZ="We usually reply within a few minutes",nZ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Rp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=VX(o);KX(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return ve(gi,{label:e,icon:ve(tZ,{}),changed:o!=="",action:ve(bi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?ve("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):ve("input",{type:"text",value:s,placeholder:t,onChange:c=>l(c.target.value),onBlur:d,onKeyDown:c=>{c.key==="Enter"&&c.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function bi({label:e,changed:o,onReset:t}){return ve(qX,{words:ne()?.panel,label:e,changed:o,onReset:t})}function sZ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=dR();return ve(gi,{label:e,labelId:s,icon:o,changed:t!==r,action:Ii("span",{className:"inline-flex items-center gap-2",children:[ve(cR,{checked:t,onChange:a,ariaLabelledBy:s}),ve(bi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var lZ=vp.map(e=>({value:e,icon:Rc(e)}));function iZ(){let{theme:e}=xe(),o=lo(e).themes[0];return rl(o)??o?.accent??""}function fR(){let{chat:e,setChat:o}=Ep(),t=dR(),r=iZ(),a=e.launcherIcon?Tp(e.launcherIcon):Ts;return Ii(jX,{children:[ve(gi,{label:i("Show the chat bubble"),labelId:t,icon:ve(QX,{}),changed:!e.enabled,action:Ii("span",{className:"inline-flex items-center gap-2",children:[ve(cR,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),ve(bi,{label:i("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?i("The floating chat bubble shows in the corner of every page."):i("The chat bubble is hidden across the whole site.")}),Ii(og,{title:i("Look"),children:[ve(Uo,{label:i("Button color"),icon:ve(ZX,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:i("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),ve(gi,{label:i("Icon"),icon:ve(JX,{}),value:ve(GI,{value:a}),changed:a!==Ts,action:ve(bi,{label:i("Icon"),changed:a!==Ts,onReset:()=>o({launcherIcon:""})}),children:ve(YX,{label:i("Icon"),value:a,options:lZ,onChange:n=>o({launcherIcon:n===Ts?"":n})})}),ve(gi,{label:i("Position"),icon:ve(oZ,{}),changed:e.launcherPosition!==Ja,action:ve(bi,{label:i("Position"),changed:e.launcherPosition!==Ja,onReset:()=>o({launcherPosition:Ja})}),children:ve(XX,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),ve(Rp,{label:i("Label"),value:e.launcherLabel,placeholder:i("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:i("Shows when a visitor points at the button")}),ve(sZ,{label:i("Show on phones"),icon:ve(eZ,{}),checked:e.showOnPhones,fallback:Pp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ii(og,{title:i("Wording"),children:[ve(Rp,{label:i("Title"),value:e.title,placeholder:rZ,onCommit:n=>o({title:n})}),ve(Rp,{label:i("Subtitle"),value:e.subtitle,placeholder:aZ,onCommit:n=>o({subtitle:n})}),ve(Rp,{label:i("Greeting message"),value:e.greeting,placeholder:nZ,onCommit:n=>o({greeting:n}),multiline:!0}),ve("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as tn,Fragment as Ub,jsxs as xR}from"react/jsx-runtime";import{useEffect as MZ,useId as mR,useState as hR}from"react";import{SettingsField as HZ}from"efficient-easel/panel";import{jsx as OZ}from"react/jsx-runtime";import{forwardRef as dZ,createElement as wb}from"react";var pR={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var ie=(e,o,t,r)=>{let a=dZ(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>wb("svg",{ref:p,...pR[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...u},[d&&wb("title",{key:"svg-title"},d),...r.map(([h,I])=>wb(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var cZ=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Cb=ie("outline","brand-facebook","BrandFacebook",cZ);var fZ=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],kb=ie("outline","brand-instagram","BrandInstagram",fZ);var pZ=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],vb=ie("outline","brand-line","BrandLine",pZ);var uZ=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Tb=ie("outline","brand-linkedin","BrandLinkedin",uZ);var mZ=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Pb=ie("outline","brand-pinterest","BrandPinterest",mZ);var hZ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Eb=ie("outline","brand-telegram","BrandTelegram",hZ);var xZ=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Ob=ie("outline","brand-tiktok","BrandTiktok",xZ);var IZ=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],_b=ie("outline","brand-wechat","BrandWechat",IZ);var gZ=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Ab=ie("outline","brand-whatsapp","BrandWhatsapp",gZ);var bZ=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Rb=ie("outline","brand-x","BrandX",bZ);var yZ=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Lb=ie("outline","brand-youtube","BrandYoutube",yZ);var SZ=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],Fb=ie("filled","brand-facebook-filled","BrandFacebookFilled",SZ);var wZ=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Bb=ie("filled","brand-instagram-filled","BrandInstagramFilled",wZ);var CZ=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Db=ie("filled","brand-linkedin-filled","BrandLinkedinFilled",CZ);var kZ=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],Nb=ie("filled","brand-pinterest-filled","BrandPinterestFilled",kZ);var vZ=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],Mb=ie("filled","brand-tiktok-filled","BrandTiktokFilled",vZ);var TZ=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],Hb=ie("filled","brand-whatsapp-filled","BrandWhatsappFilled",TZ);var PZ=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],Wb=ie("filled","brand-x-filled","BrandXFilled",PZ);var EZ=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],Gb=ie("filled","brand-youtube-filled","BrandYoutubeFilled",EZ);var H1e="outline",Lp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},_Z={},zb={fillRule:"evenodd"},AZ=[["path",{...Lp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...zb,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],RZ=[["path",{...Lp,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{..._Z,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],LZ=[["path",{...Lp,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...Lp,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...zb,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...zb,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],FZ=ie("filled","brand-telegram-filled","BrandTelegramFilled",AZ),BZ=ie("filled","brand-line-filled","BrandLineFilled",RZ),DZ=ie("filled","brand-wechat-filled","BrandWechatFilled",LZ),NZ={instagram:{outline:kb,solid:Bb},facebook:{outline:Cb,solid:Fb},tiktok:{outline:Ob,solid:Mb},youtube:{outline:Lb,solid:Gb},x:{outline:Rb,solid:Wb},linkedin:{outline:Tb,solid:Db},pinterest:{outline:Pb,solid:Nb},whatsapp:{outline:Ab,solid:Hb},telegram:{outline:Eb,solid:FZ},line:{outline:vb,solid:BZ},wechat:{outline:_b,solid:DZ}};function uR({platform:e,iconStyle:o,size:t}){let r=NZ[e][o];return OZ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var WZ={instagram:"instagram.com/yourshop",facebook:"facebook.com/yourshop",tiktok:"tiktok.com/@yourshop",youtube:"youtube.com/@yourshop",x:"x.com/yourshop",linkedin:"linkedin.com/company/yourshop",pinterest:"pinterest.com/yourshop",whatsapp:"wa.me/61400000000",telegram:"t.me/yourshop",line:"line.me/ti/p/~yourshop",wechat:"u.wechat.com/your-qr-code-link"};function GZ({platform:e}){let{rows:o,saveLink:t}=fi(),{value:r,error:a}=o[e],[n,s]=hR(r),[l,d]=hR(!1),c=mR(),f=mR();MZ(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=qC[e];return xR(Ub,{children:[tn(HZ,{label:i(p),htmlFor:c,icon:tn(uR,{platform:e,iconStyle:"outline",size:18}),children:tn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:WZ[e],onChange:h=>s(h.target.value),onBlur:()=>{u()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&tn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function IR({unavailable:e}){let{canSave:o}=fi();return!o&&e?tn(Ub,{children:e}):xR(Ub,{children:[tn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Vd.map(t=>tn(GZ,{platform:t},t))]})}import{jsx as dn,Fragment as zee,jsxs as Uee}from"react/jsx-runtime";import{useId as $ee,useMemo as jee}from"react";import{useEasel as Kee}from"efficient-easel/easel";import{SettingsField as Vee,SettingsSwitch as Yee}from"efficient-easel/panel";import{EyeIcon as qee}from"efficient-easel/icons";import{fieldShownInView as Xee}from"efficient-easel/fields";import{usePreviewDevice as Zee}from"efficient-easel/draw/client";import{jsx as an,Fragment as GJ,jsxs as zJ}from"react/jsx-runtime";import{createContext as UJ,useContext as $J,useLayoutEffect as jR,useMemo as Gp,useRef as KR,useState as Zb}from"react";import{useEasel as VR,useSelectedFields as jJ}from"efficient-easel/easel";import{fieldShownInView as KJ,Inspector as VJ,planFields as Jb}from"efficient-easel/fields";function gR({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{group as EJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as OJ,deviceMetaOf as FR}from"efficient-easel/screen/lib/document/device-fields";import{jsx as mo}from"react/jsx-runtime";import{DirectionDownIcon as YZ,DirectionIcon as qZ,DirectionLeftIcon as XZ,DirectionRightIcon as ZZ,DirectionUpIcon as JZ,EntranceBounceIcon as QZ,EntranceFadeIcon as eJ,EntranceFlipIcon as oJ,EntranceGlideIcon as tJ,EntranceRevealIcon as rJ,EntranceRiseIcon as aJ,EntranceScaleIcon as nJ,EntranceSpinIcon as sJ,NoSymbolIcon as lJ}from"efficient-easel/icons";import{NoControlMark as iJ,noControlField as dJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as cJ,group as fJ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as pJ,ENTRANCE_FROM_DEFAULT as PR,ENTRANCE_KINDS as ER,ENTRANCE_KINDS_WITH_FROM as uJ,entranceAttrs as mJ,playEntrance as hJ,readEntrance as xJ}from"efficient-shell/format";import{jsx as Kb}from"react/jsx-runtime";import{ClockIcon as jZ,DurationIcon as KZ}from"efficient-easel/icons";import{MOTION_TIMING as kR}from"efficient-shell/format";import{useSelectedHost as VZ}from"efficient-easel/easel";import{MOTION_EASING as zZ,MOTION_TIMING as bR,motionSeconds as yR}from"efficient-shell/format";var $b="none",Fp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function J1e(e){return to(Fp,$b,e)}var Bp="_gLoop",yi={field:"loop",is:"scroll"},Si="left",jb=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],UZ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function SR(e){return to(jb,Si,e)}function Q1e(e){return e==="up"||e==="down"}function wR(e){return yR("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var eLe=bR.loop.duration.default,$Z=bR.loop.delay.default;function CR(e){return yR("loop","delay",e.loopDelay)}function oLe(e,o,t=$Z){return`${UZ[e]} ${o}s ${zZ.loop}${t?` ${t}s`:""} infinite`}function Ps(e){let{min:o,max:t,step:r,default:a}=kR[e].duration;return Co("Duration",Kb(KZ,{}),o,t,r,a,"s")}function Es(e){let{min:o,max:t,step:r,default:a}=kR[e].delay;return Co("Delay",Kb(jZ,{}),o,t,r,a,"s")}function Os(e,o){let t=e.render,r=a=>{let n=VZ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Kb(r,{...a})}}function Dp({readsSpeed:e}){return Os(Ps("loop"),(o,t)=>wR({loopDuration:o,speed:e?t?.speed:void 0}))}function Np(){return Os(Es("loop"),e=>CR({loopDelay:e}))}var vR="_gEntrance";var IJ={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},gJ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},bJ={top:()=>mo(YZ,{}),bottom:()=>mo(JZ,{}),left:()=>mo(ZZ,{}),right:()=>mo(XZ,{})},OR="Entrance",Yb=ER.filter(e=>e!=="none"),_R=e=>({any:[{field:Jo.kind,in:e},{all:[{field:Jo.kind,set:!1},{field:nl,in:e}]}]}),TR=(e,o)=>hl(Wo.slice(0,Wo.indexOf(e)+1).reverse().map(t=>ye(Jo.kind,t)),t=>({field:t,set:!0}),t=>t===Jo.kind?_R(o):{field:t,in:o}),yJ={any:[_R(Yb),...Wo.slice(1).map(e=>({field:ye(Jo.kind,e),in:Yb}))]},SJ=Wo.flatMap(e=>[[[ye(Jo.from,e)],TR(e,uJ)],[[ye(Jo.duration,e),ye(Jo.delay,e)],TR(e,Yb)]]),wJ={none:()=>mo(lJ,{}),fade:()=>mo(eJ,{}),rise:()=>mo(aJ,{}),scale:()=>mo(nJ,{}),glide:()=>mo(tJ,{}),bounce:()=>mo(QZ,{}),flip:()=>mo(oJ,{}),reveal:()=>mo(rJ,{}),spin:()=>mo(sJ,{})},AR="data-entrance-tile";function CJ({kind:e}){let{attrs:o}=mJ(xJ(e,PR));return mo("span",{className:"sf-entrance-stage",[AR]:e,children:mo("i",{...o,children:wJ[e]()})})}var kJ=(e,o)=>{let t=e.querySelector(`[${AR}="${o}"] > i`);t&&hJ(t)},vJ="Effect",TJ=()=>Xc(Jo.kind,{label:OR,tileWord:vJ,values:ER,fallback:"none",word:e=>IJ[e],picture:e=>mo(CJ,{kind:e}),read:(e,o)=>ah(e,o).kind,preview:kJ}),Vb=(e,o)=>qc(Jo[e],o,(t,r)=>ah(t,r)[e]),PJ=pJ.map(e=>({label:gJ[e],value:e,picture:bJ[e]()}));function Dt(){let e={[vR]:fJ(OR,{dot:yJ}),...TJ(),[nl]:dJ({type:"custom",render:()=>mo(iJ,{})},"always"),_cEntrance:cJ(),...Vb("from",ql("From",mo(qZ,{}),PJ,PR)),...Vb("duration",Ps("entrance")),...Vb("delay",Es("entrance"))};return va(e,SJ)}import{DESIGN_GROUPS as qb,SETTINGS_BUCKETS as _J}from"efficient-easel/panel";import{BUCKET_KEY as ct,DESIGN_GROUP_KEY as Mp}from"efficient-easel/screen/lib/document/field-buckets";var wi=_J;var AJ="Editor only \u2014 not shown live",Xb={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[AJ]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},BR={"AlloyWheelsListing._gCards":"Design"},DR={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function RR(e,o,t){let r=`${e}.${o}`;return DR[r]??BR[r]??Xb[t]}function RJ(e){return e==="Animation"?[ct.Animation]:[ct.Design,Mp[e]]}function Hp(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=FR(r),n=oa(a?a.inner:r),s=n?Xb[n.label]:void 0;if(s)for(let l of RJ(s))o.includes(l)||o.push(l)}return o}var RLe=[...Hp(Tf({tablet:!0,siteSide:!0}),Mf("full"),Hf(),Gf(),ag()),...Object.keys(Tf({tablet:!0,siteSide:!0})),...Object.keys(Mf("full")),...Object.keys(Hf()),...Object.keys(Gf()),...Object.keys(ag())],LLe=[...Hp(Bf()),...Object.keys(Bf())],FLe=[...Hp(Nf()),...Object.keys(Nf())],BLe=[...Hp(Dt()),...Object.keys(Dt())],DLe=Object.keys(g0()),NLe=Object.keys(b0()),LJ={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},NR={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},MR={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Tf({tablet:!0,siteSide:!0}),...Mf("full"),...Hf(),...Gf(),...Bf(),...Nf(),...Dt()};for(let o of Object.keys(MR)){let t=oa(e[o]),r=t?Xb[t.label]:void 0;if(!t||t.level!==2||!r||!NR[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var FJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),BJ=new Map([[ct.Design,"Content"],[ct.Animation,"Animation"],...qb.map(e=>[Mp[e],e])]);function DJ(e){let o=`${e}.`;return Object.keys(LJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function NJ(e,o){let t=FR(e),r=EJ(o);return t?OJ(t.tier,r):r}function MJ(e,o){let t=oa(o);return t?e==="Content"||e==="Animation"?a0(o,t.label):n0(o):o}function LR(e){return e==="Design"?qb:["Animation"]}function HR(e,o){let t=[],r=new Set(DJ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=oa(h);if(FJ.has(p))throw new Error(`${o}.${p}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let g=BJ.get(p);if(g!==void 0){if(I?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${g} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===ct.Design||p===ct.Animation)&&(n=!0),t.push(s={place:g,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,h]);continue}if(r.has(p)||p in MR){let S=RR(o,p,I.label);if(I.level!==2||!S||!NR[S].includes(I.label))throw new Error(`${o}.${p}: ${r.has(p)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${S??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(p)&&a.add(p),t.push(s={place:S,entries:[]});continue}let T=RR(o,p,I.label);if(!T)throw new Error(`${o}.${p}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...qb,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:T,entries:[[p,I.level===2?h:NJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>oa(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",DR],["KEY_GROUP",BR]]){let I=Object.keys(h).filter(g=>g.startsWith(`${o}.`)).filter(g=>!l.has(g.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let d=n?[]:[...r].filter(p=>!a.has(p));if(d.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(d)}, but this section has no such fold header${d.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let c=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=wi.filter(p=>LR(p).some(h=>c.has(h))),u={};for(let p of f){u[ct[p]]=Ff(p,p===f[0]?f:null);for(let h of LR(p)){if(!c.has(h))continue;let I=t.filter(T=>T.place===h),g=I.findIndex(T=>T.adopted);g>0&&I.unshift(...I.splice(g,1)),p==="Design"&&(u[Mp[h]]=eg(h));for(let T of I)for(let[S,C]of T.entries)u[S]=MJ(h,C)}}return u}function MLe(e){return ct.Design in e?e:{[ct.Design]:Ff("Design",null),[Mp.Content]:eg("Content"),...e}}function HLe(e){return wi.some(o=>ct[o]in e)}function WLe(e){let o=wi.filter(r=>ct[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[ct[r]]=Ff(r,r===o[0]?o:null);return t}import{jsx as HJ}from"react/jsx-runtime";import{EmptyState as WJ}from"efficient-shell/ui";function rn(){return HJ(WJ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as YJ}from"efficient-easel/draw/client";import{deviceField as qJ}from"efficient-easel/screen/lib/document/device-fields";var Wp=" text",WR="Text";function Ci(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function GR(e){return e.filter(Ci).map(o=>o.key)}function zR(e,o){let t=e.filter(a=>!Ci(a));if(t.length!==1)return null;let r=e.filter(Ci).flatMap(a=>a.rows);return[...o,...r].some(a=>a.shown)?null:t[0].rows.filter(a=>a.shown).length>1?t[0].key:null}function UR(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function $R(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var Qb=new Map,zp=new Set;function YR(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let l=t.get(s),d=!!l&&[...l.children].some(f=>!f.hidden),c=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:d,labelled:d&&!!c}})});return r}var XJ=Object.fromEntries(wi.map(e=>{let o=r0[e];return[e,an(o,{},e)]})),qR=UJ(null),ZJ={_partBody:qJ("each",{type:"custom",render:()=>an(JJ,{})})};function JJ(){return an(GJ,{children:$J(qR)})}function Nt({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:d,values:c,readOnly:f,onChange:u}=jJ(),p=Gp(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(he,Ke)=>a?.keys.has(he)?a.onChange(he,Ke):u(he,Ke),I=YJ(),{appState:g,config:T}=VR(he=>he),S=OT(I,T,g.data.content??[],g.ui.itemSelector),C=n===void 0?oR(d,t):ZJ,y=Gp(()=>{let he=r?.length?Object.fromEntries(Object.entries(C).filter(([Ke])=>!r.includes(Ke))):C;return a?{...he,...a.fields}:he},[C,r,a?.fields]),b=vx(y,p,S),[E,H]=Zb(()=>new Set(zp)),[v,M]=Zb(()=>new Set),P=KR(null),{bandRows:F,designBands:k,looseRows:A}=Gp(()=>{let he=new Map,Ke=new Set,Te=[];for(let Oe of Jb(b).rows){if(!Oe.fold){Oe.bucket==="Design"&&Te.push(Oe.name);continue}let Ze=he.get(Oe.fold.key)??[];Ze.push(Oe.name),he.set(Oe.fold.key,Ze),Oe.bucket==="Design"&&Ke.add(Oe.fold.key)}return{bandRows:he,designBands:Ke,looseRows:new Map([["",Te]])}},[b]),L=KJ({},I),R={key:Wp,rows:Array.from({length:L?o:0},()=>({shown:!0,labelled:!0}))};jR(()=>{let he=P.current?.parentElement;if(!he)return;let Ke=YR(he,F),Te=new Set(GR(Ke)),Oe=zR([R,...Ke.filter(Ze=>k.has(Ze.key))],YR(he,A)[0].rows);Oe&&Te.add(Oe),M(Ze=>$R(Ze,Te)?Ze:Te)});let G=Gp(()=>UR(b,v),[b,v]),$=!Ci(R)&&!v.has(Wp)?{key:Wp,title:WR}:void 0,oe=VR(he=>he.selectedItem)!==null,re=a?.part??t??"",be=`${l}:${re}:${String(I)}`,[de,_e]=Zb(()=>({tab:Qb.get(be)})),je=`${l}:${re}`,ge=KR(null),Ae={...S,node:p},Le=Jb(b,{values:p,context:Ae}).buckets,De=gR({allTabs:oe,remembered:Qb.get(be),inherited:ge.current?.panel===je?ge.current.tab:de.tab,buckets:Le,hasText:L&&o>0}),so=!L&&!Le.includes(De)&&(Jb(vx(y,p,{...S,device:"desktop"}),{values:p,context:{...Ae,device:"desktop"}}).buckets.includes(De)||De==="Design"&&o>0);jR(()=>{ge.current={panel:je,tab:De}});let No=De==="Design";return an(qR.Provider,{value:n??null,children:an(rg.Provider,{value:a?p:null,children:zJ(VJ,{fields:G,values:p,onChange:h,readOnly:f,allTabs:oe,showWhenContext:Ae,context:{itemWord:s},tab:De,onTab:he=>{Qb.set(be,he),_e({tab:he})},tabIcons:XJ,idPrefix:l,ariaLabel:i("Section settings"),lead:No?e:null,leadFold:$,closedFolds:E,onFold:(he,Ke)=>{Ke?zp.delete(he):zp.add(he),H(new Set(zp))},children:[an("span",{ref:P,hidden:!0}),so&&an(rn,{})]})})})}import{useMemo as Fee}from"react";import{useEasel as Bee}from"efficient-easel/easel";import{useSectionOps as Dee}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as ft}from"react/jsx-runtime";import{EntranceRevealIcon as nQ,NoSymbolIcon as sQ,PercentIcon as e1,ScrollFadeInIcon as lQ,ScrollFadeOutIcon as iQ,ScrollMoveDownIcon as dQ,ScrollMoveUpIcon as cQ,ScrollParallaxIcon as fQ,ScrollZoomInIcon as pQ,ScrollZoomOutIcon as uQ,ZoomInIcon as mQ}from"efficient-easel/icons";import{customize as hQ,group as xQ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as t1,SCROLL_EFFECTS_WITH_ZOOM as IQ,SCROLL_END as gQ,SCROLL_START as bQ,SCROLL_ZOOM as yQ}from"efficient-shell/format";import{parseFocal as tQ,formatFocal as rQ,readScroll as aQ}from"efficient-shell/format";import{phoneKey as QJ,tabletKey as eQ}from"efficient-easel/screen/lib/content/view-tiers";var oQ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],XR=e=>[e,eQ(e),QJ(e)],dFe=[...new Set(oQ.flatMap(e=>XR(e.focus)))].sort();function ZR(e,o){let[t,r,a]=XR(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var ko={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},JR="_gScroll",QR="_cScroll",Up=Nd(Object.values(ko));function _s(e,o){return aQ(al(e,ko.effect,o),al(e,ko.zoom,o),al(e,ko.start,o),al(e,ko.end,o))}function $p(e){let o={desktop:_s(e,"desktop"),tablet:_s(e,"tablet"),phone:_s(e,"phone")};return Wo.every(t=>o[t].effect==="none")?null:o}function ey(e){let o=CC(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=tQ(a);return rQ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function mFe(e,o){return ey(ZR(e,o))}var r1="Scroll",SQ={none:"None","zoom-in":"Zoom in","zoom-out":"Zoom out","fade-in":"Fade in","fade-out":"Fade out","move-up":"Move up","move-down":"Move down",reveal:"Reveal",parallax:"Parallax"},wQ={none:()=>ft(sQ,{}),"zoom-in":()=>ft(pQ,{}),"zoom-out":()=>ft(uQ,{}),"fade-in":()=>ft(lQ,{}),"fade-out":()=>ft(iQ,{}),"move-up":()=>ft(cQ,{}),"move-down":()=>ft(dQ,{}),reveal:()=>ft(nQ,{}),parallax:()=>ft(fQ,{})},CQ="Effect",a1=t1.filter(e=>e!=="none"),o1=(e,o)=>hl(Wo.slice(0,Wo.indexOf(e)+1).reverse().map(t=>ye(ko.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),kQ={any:Wo.map(e=>({field:ye(ko.effect,e),in:a1}))},vQ=Wo.flatMap(e=>[[[ye(ko.zoom,e)],o1(e,IQ)],[[ye(ko.start,e),ye(ko.end,e)],o1(e,a1)]]),TQ=()=>Xc(ko.effect,{label:r1,tileWord:CQ,values:t1,fallback:"none",word:e=>SQ[e],picture:e=>wQ[e](),read:(e,o)=>_s(e,o).effect}),oy=(e,o,t,r,a)=>qc(e,Co(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>_s(n,s)[o]);function nn(){let e={[JR]:xQ(r1,{dot:kQ}),...TQ(),[QR]:hQ(),...oy(ko.zoom,"zoom","Zoom",ft(mQ,{}),yQ),...oy(ko.start,"start","Start",ft(e1,{}),bQ),...oy(ko.end,"end","End",ft(e1,{}),gQ)};return va(e,vQ)}import{jsx as Ko}from"react/jsx-runtime";import{AccentIcon as PQ,ContrastIcon as EQ,ExpandIcon as OQ,FinishIcon as _Q,ImagesIcon as AQ,NoSymbolIcon as s1,HoverLiftIcon as RQ,HoverNextImageIcon as LQ,HoverRotateIcon as FQ,HoverZoomIcon as l1,OpacityIcon as BQ}from"efficient-easel/icons";import{customize as DQ,describedAs as i1,group as NQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as d1}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ao}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as MQ,noControlField as HQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var jp=e=>Ao("desktop",NQ("Hover",{dot:e})),c1=()=>Ao("desktop",DQ()),WQ="What this does when a shopper points at it, or taps it on a phone.",GQ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",zQ="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",UQ="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",$Q="Which of the product's pictures the card shows.",jQ="Same finish shows the photos of the finish the card shows, else the first group.",KQ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",VQ={none:()=>Ko(s1,{}),nextImage:()=>Ko(LQ,{}),rotate:()=>Ko(FQ,{}),zoom:()=>Ko(l1,{}),lift:()=>Ko(RQ,{}),mono:()=>Ko(EQ,{})};function ty(e,o){let t=d1({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(ka[r]),picture:VQ[r]()})),fallback:o});return i1(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:ka[r]}))})}function f1(){return{[Ca]:jp({field:Xe,in:oc.filter(e=>e!=="none")}),[Xe]:Ao("desktop",{...ty(oc,"none"),description:WQ})}}function p1(e){let o=Uk(e),t=Oh(),r=TO(Th);return{[Ca]:jp({any:[o,t]}),[we.kind]:Ao("desktop",{...Os(ty(tc,e),(a,n)=>_h(n??{},e)),description:UQ}),...u1(t),[dl]:HQ({type:"custom",render:()=>Ko(MQ,{})},"always"),_cHover:c1(),[we.angle]:Ao("desktop",Ge(Os(r,a=>Ah(a)),o)),[we.duration]:Ao("desktop",Ge(Ps("hover"),o)),[we.delay]:Ao("desktop",Ge(Es("hover"),o))}}function u1(e){let o=it("Type",Ko(AQ,{}),rc.map(a=>({value:a,label:Hk[a]})),wa.kind),t=ql("Group",Ko(_Q,{}),Ph.map(a=>({value:a,label:Wk[a]})),wa.group),r=ql("Covers",Ko(OQ,{}),Eh.map(a=>({value:a,label:Gk[a]})),wa.cover);return{[we.mediaKind]:Ao("desktop",Ge({...o,description:$Q},e)),[we.mediaGroup]:Ao("desktop",Ge({...t,description:jQ},e)),[we.cover]:Ao("desktop",Ge({...r,description:KQ},e))}}function ry(e,o=""){let t=Bh(e),r=Vk(e);return{[Ca]:jp(t),[we.kind]:m1(ac,e,GQ),...nc.includes(o)?u1(Oh()):{},_cHover:c1(),...nc.includes(o)?YQ():{},[we.duration]:Ao("desktop",Ge(Ps("hover"),r)),[we.delay]:Ao("desktop",Ge(Es("hover"),r))}}function YQ(){let e=Kk(),o=Co("Zoom",Ko(l1,{}),hr.min,hr.max,hr.step,hr.min,hr.unit),t=Co("Darken on hover",Ko(BQ,{}),Yr.min,Yr.max,Yr.step,Yr.fallback,Yr.unit);return{[cl.zoom]:Ao("desktop",Ge(o,e)),[cl.darken]:Ao("desktop",Ge(t,e))}}function m1(e,o,t){let r=Ao("desktop",{...Os(ty(e,o),a=>Fh({[Xe]:a},o,e)),description:t});return Object.assign(r,{[h1]:o})}var h1="sfPictureResting",n1=new WeakMap;function HFe(e,o,t){let r=e[we.kind],a=r?.[h1];if(!r||!a)return e;let n=o.props?.[Xe]==="nextImage",s=n?null:Cl(t.appState,o.props?.id);if(!n&&!Mk.includes(String(s?.type??"")))return e;let l=n1.get(e);return l||(l={...e,[we.kind]:m1(Rh,a,zQ)},n1.set(e,l)),l}var qQ="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",XQ={none:()=>Ko(s1,{}),[Xt]:()=>Ko(PQ,{})},WFe=Ao("desktop",{...i1(d1({label:i("Hover effect"),options:Ch.map(e=>({value:e,label:i(kh[e]),picture:XQ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Ch.map(e=>({value:e,label:kh[e]}))}),description:qQ});function x1(){let e={any:[Bh("none"),{field:Xe,is:Xt}]};return{...ry("none"),[Ca]:jp(e)}}import{jsx as ki}from"react/jsx-runtime";import{isNodeList as eee}from"efficient-easel/data";import{useEasel as oee}from"efficient-easel/easel";import{hiddenInView as tee,hiddenKeyOf as ny,hidePatch as ree,slotChildName as aee,slotChildRowName as nee}from"efficient-easel/draw";var Kp=null;function ay(e){Kp=e}function I1(){return!!(Kp&&Kp.state().lockHolder)}function sn(){return Kp!==null}var ZQ=new Set(["BookingBox","SubmitBox"]);function JQ(e){return typeof e=="string"&&ZQ.has(e)}var QQ=tT(JQ,I1);function Vp(e,o){return QQ(e)||mI(o)}var Yp=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as see}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as lee}from"efficient-easel/screen/lib/document/panel-no-control-mark";var g1="notCardOfTemplate",sy={not:{context:g1,is:!0}},sBe={[g1]:(e,o)=>{let t=ex(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function qp(e){let o=e.props?.content;return eee(o)?o:[]}var Zp=(e,o)=>tee(e.props??{},o),iee=(e,o)=>e.props?.[ny(o)]!==void 0;function b1(e,o=()=>!1,t="desktop"){return qp(e).flatMap(r=>typeof r?.props?.id!="string"?[]:qp(r).length&&!Zp(r,t)?b1(r,o,t):o(r)?[]:[r])}function dee(e,o,t,r="desktop"){let a=b1(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:d})=>{let c=d;if(s.has(d)){let f=2;for(;n.has(`${d} ${f}`);)f+=1;c=`${d} ${f}`,n.add(c)}return s.add(d),{id:l.props.id,label:c,shown:!Zp(l,r)}})}function Xp(e,o,t){let r=a=>t==="desktop"?Zp(a,t):iee(a,t);return qp(e).flatMap(a=>r(a)?o(a)?[]:[a,...Xp(a,o,t)]:Xp(a,o,t))}function cee(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===ny("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function ly(e,o,t){let r=qp(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=cee(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=ly(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function y1(e,o,t,r="desktop"){return ly(e,o,a=>r==="desktop"&&Zp({props:a},r)===!t?{}:ree(a,r,!t))}function fee(e,o,t){return t==="desktop"?y1(e,o,!0,t):ly(e,o,()=>({[ny(t)]:void 0}))}function pee(e,o,t,r,a,n){return aee(e).trim()?t(e):xc({ownerType:o,owner:r,fields:a,slot:n},Qo(e.props))?.label??t(e)}var uee="This page is read-only.";function mee({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>nee(p,n,mr,void 0,Yp),f=p=>Vp(p.type,p),u=dee(e,p=>pee(p,o,c,t,r,a),f,d);return u.length?ki(cs,{parts:u,changed:Xp(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?uee:void 0,onPress:(p,h)=>s(I=>y1(I,p,h,d)),onReset:()=>s(p=>Xp(p,f,d).reduce((h,I)=>fee(h,String(I.props.id),d),p))}):ki(lee,{})}function hee(){try{let e=oee(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=ex(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Rv(e.appState,r),slot:Qh(e.appState,t.props?.id)??void 0}}catch{return null}}function xee({readOnly:e,view:o}){let t=hee(),r=Dl();return t?ki(mee,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):ki(cs,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function lBe(e){return Ge(see(e,{type:"custom",render:({readOnly:o})=>ki(xee,{readOnly:o,view:e})}),sy)}import{customize as Tee}from"efficient-easel/screen/lib/document/box-fields";import{jsx as iy}from"react/jsx-runtime";import{DirectionIcon as Iee,LoopMarqueeIcon as gee,NoSymbolIcon as bee}from"efficient-easel/icons";import{customize as yee,describedAs as See,group as wee}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Cee}from"efficient-easel/screen/lib/document/effect-tiles";function dy(){return x0("Direction",jb,Si,"A marquee cannot run diagonally, so the corners are not answers.",iy(Iee,{}),h0)}var cy=e=>wee("Loop",e?{dot:e}:void 0),kee={none:()=>iy(bee,{}),scroll:()=>iy(gee,{})};function vee(){let e=Cee({label:i("Loop"),options:Fp.map(({value:o,label:t})=>({value:o,label:i(t),picture:kee[o]()})),fallback:$b});return See(e,{type:"select",label:"Loop",options:Fp.map(({value:o,label:t})=>({value:o,label:t}))})}function S1(){return{[Bp]:cy(yi),loop:vee(),_cLoop:yee(),scrollDirection:Ge(dy(),yi),loopDuration:Ge(Dp({readsSpeed:!1}),yi),loopDelay:Ge(Np(),yi)}}function Pee(){let e=x1(),o=[Ca,Xe],t=Gn(e,Object.keys(e).filter(r=>!o.includes(r)),$m);return Gn(t,o,{any:[$m,sy]})}function w1(e,o=""){switch(e){case"section":case"block":return{...Dt(),...nn()};case"box":return{...Dt(),...nn(),...S1(),...Pee()};case"picture":return{...Dt(),...nn(),...ry(Lh(o),o)};case"textPart":return{...Dt(),...nn(),...f1()};case"cards":return{...Dt(),...nn(),...p1(vh(o))};case"marquee":return{...Dt(),...nn(),[Bp]:cy(),_cLoop:Tee(),scrollDirection:dy(),loopDuration:Dp({readsSpeed:!0}),loopDelay:Np()}}}import{ENTRANCE_STATE_ATTR as Eee,entranceAttrs as Oee,scrollAttrs as _ee}from"efficient-shell/format";var k1={},fy="_partMotion",py=[...Md,Xe,we.duration,we.delay,...Up];function NBe(e){return xs(e,fy)}function ln(e,o){return fp(e,fy,o)}var Aee=new Set([Jo.kind,Xe,ko.effect]);function v1(e,o,t,r){let{[t]:a,...n}=ln(e,o),s=r==null||r===""||r==="none"&&Aee.has(t)?n:{...n,[t]:r};return pp(e,fy,o,Object.keys(s).length?s:null)}function uy(e){return{entrance:Hd(e),hover:Dk(e),scroll:$p(e)}}function T1(e){let o=uy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function P1(e,o){let{attrs:t,style:r}=Oee(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(Eee)}}function E1(e,o){let{attrs:t,style:r}=_ee(o);for(let[a,n]of Object.entries(t))e.setAttribute(a,n);for(let[a,n]of Object.entries(r))e.style.setProperty(a,n);return()=>{for(let a of Object.keys(t))e.removeAttribute(a);for(let a of Object.keys(r))e.style.removeProperty(a)}}var Ree=4;function my(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&Ree)&&(o=t);return o}var Lee="data-sf-part-host";function O1(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Lee)&&!t.classList.contains(Nn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Jp="data-sf-part-lift",C1="sf-part-lift";function _1(e){if(e.getElementById(C1))return;let o=e.createElement("style");o.id=C1,o.textContent=A_(`[${Jp}]`).join(`
70
- `),e.head.appendChild(o)}var A1=new Map,Nee=e=>{let o=A1.get(e);return o||A1.set(e,o=HR(w1(e),`part:${e}`)),o},Mee=new Set(py);function As(e,o,t){let{getItemById:r,getSelectorForId:a}=Bee(f=>f),n=Dee(),s=r(e)?.props??{},l=ln(s,o),d=JSON.stringify(l),c=Fee(()=>Object.fromEntries(py.map(f=>[f,l[f]])),[d]);return{part:o,fields:Nee(t),values:c,keys:Mee,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let I=v1(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:I})}}}import{Fragment as Hee,createElement as Wee}from"react";import{deviceField as hy}from"efficient-easel/screen/lib/document/device-fields";var vo=()=>({type:"custom",render:()=>Wee(Hee)});var xy={words:vo(),sourceNote:vo(),style:vo(),font:vo(),italic:vo(),fontSize:hy("each",vo()),lineHeight:vo(),letterSpacing:vo(),paragraphSpacing:vo(),padding:vo(),align:hy("each",vo()),letterCase:vo(),fixedSizeHint:hy("each",vo()),regionNote:vo(),regionStyle:vo()},Gee=["fontSize","align"];function R1(e){return Gee.includes(e)}var L1={showTicker:vo(),items:vo()};var Jee="root:default-zone";function F1({heroId:e}){let{appState:o,dispatch:t}=Kee(h=>h),r=o.data.content??[],a=r.findIndex(h=>h.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=jee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:XA.map(I=>({text:I}))},[n]),d=$ee(),c=Zee(),f=h=>Xee(L1[h],c),u=As(e,ZA,"block");if(!n)return dn("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=h=>t({type:"replace",destinationZone:Jee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return dn(Nt,{motion:u,body:Uee(zee,{children:[!f("showTicker")&&!f("items")&&dn(rn,{}),f("showTicker")&&dn(Vee,{label:i("Show ticker"),labelId:d,icon:dn(qee,{}),action:dn(Yee,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&dn(dg,{label:ig.label,icon:ig.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as _i,jsxs as pt}from"react/jsx-runtime";import{useContext as goe,useEffect as gy,useRef as boe,useState as Z1}from"react";import{FieldSelect as yoe,InspectorField as Soe,fieldShownInView as woe}from"efficient-easel/fields";import{InertHint as sL,SettingsField as Coe}from"efficient-easel/panel";import{InspectorUpLevel as lu}from"efficient-easel/chrome";import{StylesIcon as koe,TypeIcon as voe}from"efficient-easel/icons";import{useEasel as Toe}from"efficient-easel/easel";import{TextPartPanel as J1}from"efficient-easel/copy";import{Button as Poe,IconButton as Eoe,Tooltip as Ooe}from"efficient-shell/ui";import{jsx as B1,jsxs as Qee}from"react/jsx-runtime";import{COPY_CELLS as Qp,CopyBox as eoe}from"efficient-easel/copy";import{PaddingYIcon as ooe}from"efficient-easel/icons";import{onDesktopWords as toe}from"efficient-easel/screen/lib/document/box-fields";var roe=["left","center","right","justify"];function eu(e,o,t,r="desktop"){let a=si(e),n=Vg(r),s=e[n]??e.size??o.sizePx,l=N_(e,r);return[{...Qp.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:d=>t({[n]:d??null}),...n==="size"?{}:{reset:{detail:l?toe(d=>i(d),`${l.px}px`,l.view):void 0}}},{...Qp.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:d=>t(d===void 0?{lineHeight:null,line:null}:{lineHeight:d})},{...Qp.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:d=>t(d===void 0?{letterSpacing:null,letter:null}:{letterSpacing:d})},{...Qp.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:d=>t({paragraphSpacing:d??null})},{key:"padding",name:i("Padding"),icon:B1(ooe,{}),unit:"px",step:Ug,shiftStep:10,min:Gg,max:zg,value:e.padding,styleValue:o.paddingPx,onChange:d=>t({padding:d??null})}]}function D1({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:d,placeholder:c,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let h=eu(n,s,l),I=Cg(r,t);return Qee("div",{className:"sf-part-textbox",children:[u,B1(eoe,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:ya,tools:I,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:et,align:a?{value:n.align??s.align,allow:roe,onChange:g=>l({align:g})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:g=>l({case:g||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as Q1}from"efficient-easel/draw/client";import{jsx as ou,Fragment as aoe,jsxs as noe}from"react/jsx-runtime";import{Button as N1,Dialog as soe}from"efficient-shell/ui";function M1({styleName:e,onCancel:o,onConfirm:t}){return ou(soe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:noe(aoe,{children:[ou(N1,{variant:"secondary",onClick:o,children:i("Cancel")}),ou(N1,{variant:"primary",onClick:t,children:i("Update style")})]}),children:ou("p",{children:i("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as _oe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Aoe}from"efficient-easel/draw/client";import{shownTier as nu}from"efficient-easel/screen/lib/document/device-fields";import{jsx as loe}from"react/jsx-runtime";import{createContext as ioe,useContext as doe,useMemo as coe,useState as foe}from"react";var poe={partStyle:null,setPartStyle:()=>{}},H1=ioe(poe);function PDe({children:e}){let[o,t]=foe(null),r=coe(()=>({partStyle:o,setPartStyle:t}),[o]);return loe(H1.Provider,{value:r,children:e})}function W1(){return doe(H1)}import{TEXT_FIELD_MARKER as Roe}from"efficient-easel/draw";import{useSectionOps as Loe}from"efficient-easel/screen/lib/document/use-section-ops";var vi="@name",G1="@body",z1="@value",U1={[vi]:"Name",[G1]:"Body",[z1]:"Value"},uoe={TimelineTrack:{"entries.date":vi,"entries.title":vi,"entries.blurb":G1},Footprint:{"offices.city":vi},Stats:{"items.label":vi,"items.value":z1}};function moe(e){let{key:o,row:t}=Ft(e);return t?`${o}.${t.rowKey}`:null}function Ti(e,o){if(!e)return o;let t=moe(o);return t?uoe[e]?.[t]??o:o}import{useEaselHost as Foe}from"efficient-easel/screen/lib/host";function hoe(e){let o=new Set([...Object.keys(Zc[e]??{}),...Jc[e]??[]]);for(let[t,r]of Object.entries(Vx[e]??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var xoe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},$1={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},j1="Open",K1={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function Rs(e){let o=e?.source?.slug;return q(o)}function Pi(e){return xoe[e]??null}function V1(e,o){let t=Pi(e);return t&&hoe(e).includes(o)?t:null}function tu(e){let o=e?.menu?.id;return q(o)}var Ei={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},Ioe={tag:{label:"Tag",follows:"Labels",builtIn:Un(Ei.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Un(Ei.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Un(Ei.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Un(Ei.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Un(Ei.link),writable:!0}},Y1=Ioe;var ru={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var WDe=pc,q1={rowLabel:{label:"Spec row name",follows:"Labels",builtIn:"14px"},rowValue:{label:"Spec row value",follows:"Labels",builtIn:"14px"},diagramTitle:{label:"Diagram title",follows:"Labels",builtIn:"12px"},diagramCallout:{label:"Diagram measurement",follows:"Labels",builtIn:"12px"},diagramStatLabel:{label:"Diagram stat name",follows:"Labels",builtIn:"11px"},diagramStatValue:{label:"Diagram stat value",follows:"Labels",builtIn:"11px"}};var Iy={SpecTable:q1,FAQ:dv,Collections:Y1,Contents:ru};function X1(){return Vt("efficient.section-text-regions",()=>new Map)}function VDe(e){let o=X1();for(let[t,r]of Object.entries(e)){if(Object.hasOwn(Iy,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function au(e){return e?Object.hasOwn(Iy,e)?Iy[e]:X1().get(e)??null:null}function by(e){return e?i(e):null}function eL(e){return e.kind==="role"?Um[e.role]:e.kind==="custom"?"Custom":null}function Boe(e){let o=fr(e.role);return o?{kind:"role",role:o}:null}function Doe(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function su(e,o,t,r){return Boe(ni(e,o))??Doe(t,r)}function Noe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function oL(e){return[{value:Oi,label:i("No style"),description:i("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?An(o.values.font)?.label:void 0}))]}var Oi="";function Moe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Oi,a=[{label:i("No style"),value:Oi},...$w.map(n=>({label:i(Um[n]),value:n}))];return Z(yoe,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Oi?null:n),renderOption:n=>n.value===Oi?pt(_i,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:i("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${An(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:by(eL(e))}),valueText:n=>by(eL(e))??n?.label??""})}var lL=["regionNote","regionStyle"],Hoe=Object.keys(xy).filter(e=>!lL.includes(e));function iL(e,o){return!e.some(o)}function Woe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=pt(_i,{children:[t,r,a]});return pt("div",{className:"sf-part-panel",children:[Z(lu,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function iu({source:e,slug:o,menuId:t}){let r=Foe(),a=K1[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:pt(sL,{children:[i($1[e]),n?pt(_i,{children:[" ",Z(Poe,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:i(j1)})]}):null]})})}var tL=4,Goe=120;function rL(e){return i("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:i(e.label).toLowerCase()})}function aL({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:d,sizedStyle:c,ownLook:f}){let u=e.follows;return pt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:i(e.label)})}),d("regionNote")&&!f&&Z("p",{children:o?i("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:i(u),px:Math.round(o)}):i("Its size follows Styles \u25B8 {follows}.",{follows:i(u)})}),c?pt(_i,{children:[c,d("regionStyle")&&Z("p",{className:"es-field-hint",children:rL(e)})]}):a?d("regionStyle")?Z(_i,{children:Z(Coe,{label:i("Style"),icon:Z(koe,{}),hint:rL(e),children:Z(Moe,{face:t,base:r,onPick:a})})}):null:d("regionNote")&&Z("p",{className:"es-field-hint",children:i("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&d("sourceNote")?Z(iu,{source:n,slug:s}):null,iL([...lL,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&Z(rn,{}),Z(lu,{inline:!0,name:i("Page"),onSelect:l})]})}function zoe({onBack:e}){return pt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:i("This part is no longer here.")})}),Z("p",{children:i("The section it belonged to has been changed or removed.")}),Z(lu,{inline:!0,name:i("Page"),onSelect:e})]})}function Uoe({onBack:e,partId:o,why:t}){return pt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:i("This part's settings did not open.")})}),Z("p",{children:i("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:pt("code",{children:[o," \u2014 ",t]})}),Z(lu,{inline:!0,name:i("Page"),onSelect:e})]})}function dL({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Toe(j=>j),l=Loe(),d=K0(),{partStyle:c}=W1(),{fonts:f,textStyles:u}=xe(),p=goe(_oe),h=!p?.capabilities?.hasSiteTheme,{persist:I}=es({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=bp({themeFromDocument:h,persist:I}),[T,S]=Z1(!1),C=Aoe(),y=j=>(nu(C)!=="tablet"||R1(j))&&woe(xy[j],C),b=boe(null),E=a(e),H=n(e),v=E?s.components[E.type]:void 0,{key:M,row:P}=Ft(o),F=v?.fields?.[M],k=P?ms(F,P):F,A=Kf(e,o),L=E?.props??{},R=fs(k),G=Lf(k),$=mg(k),oe=E?Pi(E.type):null,re=E?V1(E.type,M):null,be=P?Ql(L[M],P):L[M],de=!!P&&!(Array.isArray(L[M])&&P.index<L[M].length);gy(()=>{j0(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[A]);let[_e,je]=Z1(0);gy(()=>je(0),[A]);let ge=!!E&&!de&&(!H||!k);gy(()=>{if(!ge||_e>=tL)return;let j=setTimeout(()=>je(qe=>qe+1),Goe);return()=>clearTimeout(j)},[ge,_e]);let Ae=ge&&_e<tL,Le=As(e,Ti(E?.type,o),"textPart");if(!E||de)return Z(zoe,{onBack:t});let De=au(E.type),so=De?Il(De,o):null;if(De&&so){let j=c?.partId===A?c:null,qe=De[so],wt=qe.writable===!0&&!!H,Lr=ua=>{H&&l.replaceComponent(H.zone,H.index,{...E,props:qa(L,o,"role",ua)})};if(wt&&iv(qe)){let ua=ni(L,o),Uw=ma=>{if(!H)return;let zm=L;for(let[h5,x5]of Object.entries(ma))zm=qa(zm,o,h5,x5??null);l.replaceComponent(H.zone,H.index,{...E,props:zm})},p5=Pr(g.saved,g.old),u5=Wg(ua)??"",m5=eu(ua,j?.base??nL,Uw,nu(C)).filter(ma=>ma.key==="fontSize"&&y(ma.key));return Z(Nt,{motion:Le,body:Z(aL,{region:qe,sizePx:j?.base.sizePx??null,face:su(L,o,j,f),base:j?.base??null,source:oe,slug:Rs(L),onBack:t,shows:y,ownLook:H_(ua),sizedStyle:Z(J1,{style:y("style")?{value:u5,options:oL(p5),onChange:ma=>Uw(ma?{textStyle:ma}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:m5})})})}return Z(Nt,{motion:Le,body:Z(aL,{region:qe,sizePx:j?.base.sizePx??null,face:su(L,o,j,f),base:j?.base??null,onFollowStyle:wt?Lr:void 0,source:oe,slug:Rs(L),onBack:t,shows:y})})}if(!H||!k)return Ae?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Uoe,{onBack:t,partId:A,why:H?"no field":"no selector"});let No=j=>{l.replaceComponent(H.zone,H.index,{...E,props:j})},he=j=>{if(ea(j).hidden!==ea(be).hidden||!R){let qe=P?pg(L,M,P,j):{...L,[M]:j};qe&&No(qe);return}qf({node:E,propKey:o,kind:R,zone:H.zone,index:H.index},ea(j).text,l.replaceComponent)},Ke=be,Te=c?.partId===A?c:null,Oe=Te?.styleOwner,Ze=Oe?a(Oe.owner):null,Gt=Oe&&Ze?n(Oe.owner):null,Zo=!!(Oe&&Ze&&Gt),D=Zo?Ze.props??{}:L,Pe=Zo?j=>l.replaceComponent(Gt.zone,Gt.index,{...Ze,props:j}):No,Se=Zo?Oe.kind:Ti(E?.type,o),eo=ni(D,Se),We=[{partKey:Se,face:su(D,Se,Te,f),sizeGroup:Te?.sizeGroup??null,base:Te?.base??nL,style:eo}],yt=Noe(We,j=>j.sizeGroup),zt=Xn(Te?.inks),oo=(j,qe)=>{let wt=D;for(let Lr of We)wt=qa(wt,Lr.partKey,j,qe);Pe(wt)},St=j=>j?oo("textStyle",j):Ut({textStyle:null,role:null}),Ut=j=>{let qe=D;for(let wt of We)for(let[Lr,ua]of Object.entries(j))qe=qa(qe,wt.partKey,Lr,ua??null);Pe(qe)},On=R==="text"||R==="textarea",{text:Qs,hidden:cr}=ea(be),fa=k?.[Roe]?.label??o,el=cr?i("Show {label} on the slide",{label:i(fa)}):i("Hide {label} on the slide",{label:i(fa)}),_n=pt("div",{className:"sf-field-head",children:[Z(voe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:i(fa)}),On&&Z(Ooe,{content:el,children:Z(Eoe,{"aria-pressed":cr,"aria-label":el,onClick:()=>he({text:Qs,hidden:!cr}),children:cr?Z(Q1,{name:"eye-off",size:14}):Z(Q1,{name:"eye",size:14})})})]}),_d=!G&&$,n5=!!R&&(o0(k)||G||cr||!$),Gw=su(D,Se,Te,f),s5=Gw.kind==="role"?Gw.role:null,Gm=Wg(eo)??eA(s5),zw=Pr(g.saved,g.old),l5=Object.entries(eo).filter(([j,qe])=>j!=="role"&&j!=="textStyle"&&qe!==void 0).length,i5=()=>{let j=D;for(let qe of We){let{role:wt,textStyle:Lr}=qe.style;j=F_(j,qe.partKey),wt&&(j=qa(j,qe.partKey,"role",wt)),Lr&&(j=qa(j,qe.partKey,"textStyle",Lr))}Pe(j)},pa=Gm,d5=oA(We[0].style),c5=pa?zw.find(j=>j.id===pa)?.name??pa:"",f5=()=>{S(!1),pa&&(g.write(tA({saved:g.saved,old:g.old,styleId:pa,values:ab(We[0].style)}),!0),i5())};return pt(Woe,{sectionName:v?.label??E.type,onBack:t,tabs:j=>Z(Nt,{motion:Le,body:j}),textEditor:y("words")?Z("div",{ref:b,className:"sf-part-text",children:n5?Z(D1,{text:Qs,onTextChange:j=>he(On?{text:j,hidden:cr}:j),multiline:zf(R),markup:R!=="plainText",styled:!1,style:We[0].style,base:We[0].base,setValue:Ut,colors:zt,placeholder:by(C0(k))??void 0,ariaLabel:i(fa),head:_n,typedOnCanvas:d===A}):R?On?_n:null:Z(Soe,{field:k,name:o,value:Ke,onChange:he,id:`sf-part-${e}-${o}`})}):void 0,children:[re&&y("sourceNote")&&Z(iu,{source:re,slug:Rs(L),menuId:tu(L)}),_d&&Z(J1,{style:y("style")?{value:Gm??"",options:oL(zw),onChange:j=>St(j||null),changed:l5>0,onEditStyles:r,onUpdateStyle:pa&&d5?()=>S(!0):void 0}:void 0,font:y("font")?{value:eo.font??"",styleValue:An(We[0].base.fontKey)?.label,options:Ct.map(j=>({label:j.label,value:j.key})),onChange:j=>oo("font",j||null)}:void 0,italic:y("italic")?{value:eo.italic,styleValue:Koe(u,Gm),onChange:j=>oo("italic",j??null)}:void 0,cells:eu(We[0].style,We[0].base,Ut,nu(C)).filter(j=>y(j.key)),align:y("align")?joe(eo,We[0].base.align,nu(C),oo):void 0,letterCase:y("letterCase")?{value:eo.case??"",styleValue:We[0].base.case,onChange:j=>oo("case",j||null)}:void 0}),T&&pa&&Z(M1,{styleName:c5,onCancel:()=>S(!1),onConfirm:f5}),_d&&yt===null&&y("fixedSizeHint")&&Z(sL,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),iL(Hoe,j=>y(j)&&(j==="words"||(j==="sourceNote"?!!re:j==="fixedSizeHint"?_d&&yt===null:_d)))&&Z(rn,{})]})}var $oe={desktop:"align",tablet:"alignTablet",mobile:"alignPhone"};function joe(e,o,t,r){let a=$oe[t],n=D_(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Koe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var nL={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Mt,jsxs as Py,Fragment as ete}from"react/jsx-runtime";import{useCallback as ote,useRef as tte,useState as Li}from"react";import{InspectorIconButton as rte}from"efficient-easel/chrome";import{useEasel as ate}from"efficient-easel/easel";import{PopupMenu as nte,PopupMenuItem as ste,PopupMenuLabel as hu}from"efficient-shell/ui";import{CopyToPageIcon as lte}from"efficient-easel/icons";import{useEaselSession as ite}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as dte}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as cte}from"efficient-easel/draw";import{currentEaselSession as Voe}from"efficient-easel/screen/lib/session";var Yoe={general:!0,commerce:!0,service:!0};function yy(e){let o=e?.sets;return o?Object.fromEntries(mk.map(t=>[t,o.includes(t)])):Yoe}function Sy(e=Voe()){return yy(e.blocks)}import{isBackendError as Ls}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as bL}from"efficient-easel/screen/lib/session";var du=Sc(),wy=du.set;function cu(e,o){wy(e,o)}function fu(e,o){let t=du.get(e);wy(e,o??(t==="live"?"changed":t))}function pu(e,o){wy(e,o??"live")}function cL(e){return du.get(e)}function fL(e){return du.use(e)}function pL(e,o){return e==="live"&&o?"changed":e}function Cy({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?i("Changes not live yet"):e==="never"?i("Never published"):r?i("Header and footer not live yet"):e==="live"?i("Everything is live"):null;return{label:i("Publish"),tooltip:e==="never"?i("Put this page on your site"):i("Put your changes on your site"),status:s,quiet:n?{label:i("Published"),reason:i("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function uL(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var mL="SharedSection",qoe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ai=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Ri=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function hL(e){if(e?.type!==mL)return null;let o=e.props?.section;return typeof o=="string"&&qoe.test(o)?o.toLowerCase():null}function xL(e){let o=[];for(let t of Ai(e)){let r=hL(t),a=Ri(t);r&&a&&o.push({refId:a,section:r})}return o}function uu(e){let o=Ai(e)[0];return o&&typeof o=="object"&&Ri(o)?o:null}function Xoe(e,o){return{type:mL,props:{id:e,section:o}}}function IL(e,o){let t=new Map,r=new Set,a=!1,n=Ai(e).map(s=>{let l=hL(s),d=Ri(s);if(!l||!d||r.has(l))return s;let c=uu(o.get(l)),f=Ri(c??void 0);return!c||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:d,reference:s}),a=!0,c)});return{working:a?{...e,content:n}:e,held:t}}function gL(e,o,t){let r=new Map,a=!1,n=Ai(e).map(s=>{let l=Ri(s),d=l?o.get(l):void 0,c=d?t.get(d.section):void 0;if(!d||!c||r.has(d.section))return s;let f=Ai(c).slice(1),u=uu(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??Xoe(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function Ty(e){return!!(e?.publish&&e.liveState)}function Zoe(e,o){if(!Ty(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function Joe(e,o){return async(t,r)=>{try{await qP()}catch(a){throw new Error(i("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?of({state:"live",changes:[]}):br(0),{version:r??null}}}function vy(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(cu(n.id,n.live),sT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(fu(a,d.live),lT(a,d.videoFrames),br(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:Ty(t)?Joe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(pu(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function Qoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,d=new Map,c=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let P=cL(n.id);return P==="changed"||P==="never"||P===void 0&&l},g=P=>{p={...p,...P,docId:n?.id??null,unpublished:I(),sections:[...f.values()]};for(let F of h)F()},T=(P,F,k)=>{F?f.set(P,{section:P,title:d.get(P)?.title??"",problem:F,holder:k}):f.delete(P)},S=P=>P&&typeof P=="object"&&!Array.isArray(P)?P:{},C=P=>s.has(P),y=()=>new Map([...d].map(([P,F])=>[P,F.layout])),b=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,E=(P,F,k,A)=>{let L=S(F);d.set(P,{layout:L,version:k,savedJson:JSON.stringify(L),title:A})},H={state:()=>p,subscribe:P=>(h.add(P),()=>{h.delete(P)})},v={sectionOf:P=>c.get(P)?.section??null,heldElsewhere:P=>{let F=c.get(P)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(P,F)=>{E(F.id,F.layout,F.layout_updated_at,F.title),c.set(P,{section:F.id,refId:b()}),u.set(F.id,F.used_on),g({})},place:P=>{if([...c.values()].some(A=>A.section===P.id))return null;let F=uu(S(P.layout)),k=typeof F?.props?.id=="string"?F.props.id:null;return!F||!k||!F.type?null:(E(P.id,P.layout,P.layout_updated_at,P.title),c.set(k,{section:P.id,refId:b()}),u.set(P.id,P.used_on),F)},usedOn:P=>u.get(P)??null,learn:P=>{for(let F of P){u.set(F.id,F.used_on);let k=d.get(F.id);k&&(k.title=F.title);let A=f.get(F.id);A&&f.set(F.id,{...A,title:F.title})}g({})}},M=async(P,F)=>{for(let[k,A]of P){let L=d.get(k),R=JSON.stringify(A);if(!(!L||R===L.savedJson||f.get(k)?.problem==="lock"))try{let G=await e.save(k,{layout:A},{version:L.version,clientId:F??""});fu(k,G.live),L.layout=A,L.version=G.version,L.savedJson=R,T(k,null)}catch(G){Ls(G,"changed-elsewhere")?T(k,"conflict"):Ls(G,"lock-taken")?T(k,"lock",G.holder??void 0):T(k,"save")}}P.size&&br(),g({})};return{resolve:async P=>{if(ay(P===At?null:H),fx(P===At?null:v),d=new Map,c=new Map,f=new Map,u=new Map,P===At)return t.resolve(P);let F=!1,[k,A]=await Promise.all([t.resolve(P),e.load({slug:At,...o}).catch(()=>(F=!0,null))]);if(A&&!Hl(k?.layout)){cu(A.id,A.live);let re=S(A.layout);n={id:A.id,layout:re,version:A.version,savedJson:""}}else n=null;if(l=!1,!k)return g({conflict:null,saveFailed:!1,loadFailed:F}),k;let L=S(k.layout),R=xL(L),G=await Promise.all(R.map(re=>e.load({id:re.section,...o}).catch(()=>null)));R.forEach((re,be)=>{let de=G[be];de?(cu(de.id,de.live),E(re.section,de.layout,de.version,"")):(d.delete(re.section),f.set(re.section,{section:re.section,title:"",problem:"load"}))});let $=IL(L,y());if(c=$.held,!n)return c.size&&s.add(k.id),g({conflict:null,saveFailed:!1,loadFailed:F}),c.size?{...k,layout:$.working}:k;let oe=oT($.working,n.layout);return n.savedJson=JSON.stringify(cx(oe,n.layout).chrome),s.add(k.id),g({conflict:null,saveFailed:!1,loadFailed:!1}),{...k,layout:oe}},saveLayout:async(P,F,k,A)=>{if(!C(P))return t.saveLayout(P,F,k,A);let L=n,R=L?cx(F,L.layout):{page:F,chrome:null},G=gL(R.page,c,y()),$=await t.saveLayout(P,G.page,k,A);if(await M(G.docs,A),!L)return $;let oe=JSON.stringify(R.chrome);if(!R.chrome||oe===L.savedJson||p.lockHolder)return $;try{let re=await e.save(L.id,{layout:R.chrome},{version:L.version,clientId:A??""});fu(L.id,re.live),br(),L.layout=R.chrome,L.version=re.version,L.savedJson=oe,l=!0,g({conflict:null,saveFailed:!1})}catch(re){Ls(re,"changed-elsewhere")?g({conflict:re.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ls(re,"lock-taken")?g({lockHolder:re.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):g({saveFailed:!0})}return $},publish:t.publish?async(P,F)=>{let k=await t.publish(P,F),A=n;if(A&&C(P)&&!a&&e.publish&&I()&&!p.lockHolder){let L=await e.publish(A.id,A.version?{version:A.version}:void 0);pu(A.id,L.live),L.version!==null&&(A.version=L.version),l=!1,g({})}if(C(P)&&!a&&e.publish)for(let[L,R]of d){if(f.get(L)?.problem==="lock")continue;let G=await e.publish(L,R.version?{version:R.version}:void 0);pu(L,G.live),G.version!==null&&(R.version=G.version)}return k}:void 0,lock:r?{claim:async(P,F,k)=>{let A=await r.claim(P,F,k);if(!C(P))return A;let L=n;if(L)try{await r.claim(L.id,F,!1),p.lockHolder&&g({lockHolder:null})}catch(R){Ls(R,"lock-taken")&&g({lockHolder:R.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let R of d.keys())try{await r.claim(R,F,!1),f.get(R)?.problem==="lock"&&T(R,null)}catch(G){Ls(G,"lock-taken")&&T(R,"lock",G.holder??void 0)}return d.size&&g({}),A},release:async(P,F)=>{if(await r.release(P,F),!C(P))return;let k=n;k&&!p.lockHolder&&await r.release(k.id,F).catch(()=>{});for(let A of d.keys())f.get(A)?.problem!=="lock"&&await r.release(A,F).catch(()=>{})}}:void 0,pinnedChrome:H}}function mu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:Bv(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function lMe(e,o,t){return e.update(o,Dv(t))}function iMe(e,o=Ve(),t=Sy(),r={}){let a=bL(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,d=a&&t.commerce&&t.service,c=!!r.editsPinnedInPlace&&d,f=Ty(o.site)?o.site:void 0,u=mu(o.pages),p=vy(u,e,f),h=c?Qoe(u,n,p,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:d,editsPinnedInPlace:c,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...yL(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Zoe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function dMe(e,o=Ve(),t=Sy()){let r=bL(o),a=o.templates,n=a?mu(a.pages(e)):{list:()=>Promise.reject(new Error(ky)),load:()=>Promise.reject(new Error(ky)),save:()=>Promise.reject(new Error(ky))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...vy(n,void 0),...yL(vy(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function yL(e){return{resolve:o=>(ay(null),fx(null),e(o))}}var ky="This editor's backend has no website templates.";function fte(e,o,t){let r=dte(e,void 0,o);return t?.(r)??r}function SL({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Li(!1),[d,c]=Li(null),f=ite(),u=ate(v=>v.config.components),[p,h]=Li(!1),[I,g]=Li(null),T=tte(null),[S,C]=Li(null),y=ote(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{c(await Ve(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),b=()=>{if(s){l(!1);return}let v=T.current?.getBoundingClientRect();v&&C({top:v.bottom+6,right:Math.max(8,window.innerWidth-v.right)}),c(null),h(!1),y(),l(!0)},E=(d??[]).filter(v=>v.slug!==o),H=async v=>{if(I)return;g(v.slug);let M=fte(e,u,f.documentHooks?.storedNode),P=await a(()=>pte(Ve(f).pages,v,M));g(null),l(!1),n?.(P?i("Duplicated to \u201C{name}\u201D",{name:v.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),P?"success":"error")};return Py(ete,{children:[Mt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Mt(rte,{buttonRef:T,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:Mt(lte,{size:15})})}),s&&S&&Mt(nte,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>l(!1),children:Py("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Mt(hu,{children:i("Duplicate to page")}),p?Mt(hu,{children:i("Couldn\u2019t load pages")}):d===null?Mt(hu,{children:i("Loading\u2026")}):E.length===0?Mt(hu,{children:i("No other pages")}):E.map(v=>Py(ste,{role:"menuitem",disabled:I!==null,onClick:()=>{H(v)},children:[Mt("span",{className:"min-w-0 flex-1 truncate",children:v.label}),I===v.slug?Mt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):v.draft&&Mt("span",{className:"shrink-0 text-xs",children:i("draft")})]},v.id))]})})]})}async function pte(e,o,t){let r=mu(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(d=>d?.type===cte);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Ble}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Dle}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as p$e,isSelectionMode as ow}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Nle}from"efficient-easel/draw/client";import{jsx as Fi,jsxs as ute}from"react/jsx-runtime";import{SettingsDrill as mte}from"efficient-easel/panel";import{UiIcon as hte}from"efficient-easel/draw/client";var xte="Not shown on the page";function Ite({part:e,onOpen:o}){return Fi(mte,{name:i(e.label),preview:e.offPage?i(xte):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?Fi("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:Fi(hte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function Ey(e){return e.filter(o=>!o.identifier)}function wL({parts:e,onOpen:o,heading:t=!0}){let r=Ey(e);return r.length?ute("div",{className:"sf-entries",children:[t?Fi("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>Fi(Ite,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Mle,ROOT_ZONE as uM}from"efficient-easel/draw";import{HEADER_TYPE as Vo,FOOTER_TYPE as He,newNodeId as gte}from"efficient-easel/draw";function xu(){return{type:Vo,props:{id:gte(Vo)}}}var CL=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],bte=CL.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),yte="FooterGroup",kL="blocks";function vL(e){return e===He?CL:e===yte?bte:null}function Iu(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...yE}),e("FooterPayment",{...sf})]}function Oy(e){switch(e?.type){case Me:case Re:return i("On every page");case Vo:case He:return i("On every page \xB7 old style");default:return null}}var TL=()=>null,PL=()=>i("Changed on every page");function gu(e,o){let t=PC(e,o);if(t)return t;let r=qv(e,o);if(!r)return null;let a=r.group===Me;return r.why==="type"?a?i("The header cannot take another one of these"):i("The footer cannot take another one of these"):a?i("The header holds at most 3 sections"):i("The footer holds at most 6 sections")}import{jsx as um,Fragment as Ile,jsxs as gle}from"react/jsx-runtime";import{useState as ble}from"react";import{createNode as yle,newId as Sle}from"efficient-easel/data";import{useEasel as wle}from"efficient-easel/easel";import{Banner as Cle,Button as QS}from"efficient-shell/ui";import{useScreenDocument as kle}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as Ste}from"efficient-easel/data";import{hiddenKeyOf as wte}from"efficient-easel/screen/lib/content/view-hide";var bu="Flex",Cte={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},kte={FooterPayment:"PaymentLogosBlock"},vte=e=>{let{id:o,...t}=e;return t},EL=e=>typeof e=="string"?e:"",Fs={sm:12,md:13,lg:15},OL={sm:{mark:16,words:Fs.sm},md:{mark:20,words:Fs.md}},Tte="md",_L=1.5,Pte={size:13,lineHeight:_L,width:280},Ete=14,Ote=40,_te=e=>e==="center"||e==="right"?e:"left";function Ate(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=K(e[r]);n&&(o[a]=n)}return o}function Rte(e,o,t){let r=t(e,vte(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:AL(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=kv(e,r.props);return a===r.props?r:{...r,props:a}}function AL(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let[n,s]of Object.entries(a))Ste(s)&&(a[n]=AL(s,o,t));return{...r,props:a}})}function RL(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=Cte[e.type]??kte[e.type];if(n)return[Rte(n,r,o)];switch(e.type){case"FooterLogo":{let s=_te(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(WC*((K(r.widthPct)??100)/100)),href:"/",align:s,...Ate(r)}),d=EL(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...Pte}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&r.size in Fs?r.size:Tte;return[o("Text",{text:EL(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Fs[s],lineHeight:_L}}})]}case"FooterDivider":{let s=K(r.thickness),l=K(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[wte("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(bu,{direction:r.direction==="horizontal"?"row":"column",gap:Ha("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...tl,content:s.flatMap(l=>RL(l,o,t))})]}default:return[]}}function Bi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(bu,{direction:"row",wrap:!0,share:"equal",gap:Ote,content:f}),s=[],l=[];for(let f of a){let u=RL(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...u);continue}u.length<=1?l.push(...u):l.push(o(bu,{direction:"column",gap:Ete,align:"stretch",...tl,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(bu,{direction:"column",content:[o("LegalLineBlock")]}),c=Kv(Re,t,[...s,d]);return{...c,props:{...c.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as hle}from"efficient-easel/data";import{readHidable as Fte}from"efficient-easel/draw";function yu(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),l=r.find(d=>d.key===s);l||(l={key:s,name:t(a),items:[]},r.push(l)),l.items.push({item:a,index:n})}),r}function KMe(e){return Lte[Di(e)]}var Lte={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Di(e){if(e<=1)return 1;if(e<=4)return e;let o=t=>e%t||t;return o(4)>=o(3)?4:3}var nr=U,sr=ee;function fn(e){if(e.theme)return lo(e.theme);let o=e.site?.themePresets;return o?lo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function Bte(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var FL=new Set(["id"]),cn={},BL=[],Dte=["ProductGrid","Events","ContactRouting","ReviewForm","AppointmentBooking","Reviews","CheckoutCTA","AlloyWheelsListing"],Ni=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...Dte,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function ho(e){for(let[o,t]of Object.entries(e)){if(o in cn&&cn[o]!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);cn[o]=t}}function ra(e){return cn[e]}function Nte(e){return e in cn&&BL.includes(e)}function DL(e,o=Ni){return e in cn&&(o.includes(e)||Nte(e))}function tHe(e){let o=Lo[e];if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var _y=e=>Fte(e),Ue=e=>_y(e).text.trim()!=="";function Mte(e){if(e.includes("=="))return e;let o=e.indexOf("/"),t=o===-1?e:e.slice(0,o),r=t.trim();if(!r)return e;let a=t.indexOf(r);return`${t.slice(0,a)}==${r}==${t.slice(a+r.length)}${o===-1?"":e.slice(o)}`}var Hte=e=>e==="heading"?Gr():e==="eyebrow"?Pt():{};function Wte(e,o,t,r){let a={...e._partStyles?.text??{},...o??{},...t??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function Gte(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:typeof t=="string"&&Object.hasOwn(e.map,t)?e.map[t]:e.fallback}}function LL(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,d,c]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=c?c(t[l],t,a):t[l];f===void 0?delete n[d]:n[d]=f,r(l,d,f===void 0)}return n}function zte(e){let o=new Set([...FL,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var Ay=e=>fc(e.headPlacement)==="own-box";function Ute(e){return Ay(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function $te(e,o){let t=e[o];return Array.isArray(t)&&t.some(r=>!!r&&typeof r=="object"&&typeof r.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function jte(e){let o=new Set,t=r=>{for(let a of r)if(a.kind==="group"||a.kind==="block")t(a.parts??[]);else if(a.kind==="core"&&a.slots&&typeof a.slots!="function")for(let[n,s]of Object.entries(a.slots))s.length>0&&s.every(l=>!("kind"in l))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function Kte(e,o,t){if(!t.press)for(let r of jte(e)){let a=$te(o,r);if(a!==void 0)return a}}function Bs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Ute(r))??Kte(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],d=new Set,c=(b,E)=>{s.push({key:b,home:E}),d.add(b)},f=r._partStyles??{},u=zte(o),p=0,h=(b,E)=>({type:b,props:{...E,id:`${n}~${b}-${++p}`}}),I=(b,E,H,v,M,P,F)=>{if(M){for(let A of b??[]){let L=typeof A=="string"?A:A[0];H[L]!==void 0&&F(L,`nothing \u2014 the ${v} has no parts, so it is not drawn`)}return}let k=typeof E=="function"?E(r,t):E??{};return LL(b??[],k,H,(A,L,R)=>F(A,R?`nothing \u2014 the old value draws nothing (${v}: no ${L})`:`${P}${v}: ${L}`),t)},g=b=>Je(b,E=>`${n}~${E}-${++p}`),T=(b,E,H)=>{let v=b.of?b.of(E):Array.isArray(E[b.key])?E[b.key]:[],M=typeof b.props=="function"?b.props(r,t):b.props??{},P=v.map((R,G)=>{let $=R??{},oe=b.item?.($,G,r)??{},re=S(oe.reverse?[...b.parts].reverse():b.parts,$,!1,`item ${G+1}: `);return b.flat?oe.props?re.map(be=>({...be,props:{...be.props,...oe.props,id:be.props.id}})):re:[h(nr,{name:`${b.name} ${G+1}`,...M,...oe.props??{},[sr]:re})]});if(b.groups){let R=b.groups;return H(b.key,v.length?`one Box per item (${v.length}), in a Box per group`:"nothing \u2014 the list is empty"),yu(v.map(G=>G??{}),R.of,R.of).map((G,$)=>{let oe=G.items.map(ge=>ge.item),re=R.parts?S(R.parts,R.head?.(oe,r)??{},!1,`group ${$+1}: `):[],be=G.items.map(ge=>P[ge.index]),de=R.perRow?.(oe.length,r),_e=Number.isInteger(de)&&de>=1?de:1,je=[];if(R.perRow&&_e<be.length)for(let ge=0;ge*_e<be.length;ge++)je.push(be.slice(ge*_e,(ge+1)*_e).flat());return h(nr,{name:`${R.name} ${$+1}`,...R.props??{},[sr]:[...re,h(nr,{name:`${R.itemsName} ${$+1}`,...R.itemsProps?.(oe.length,r)??{},[sr]:je.length?je.map((ge,Ae)=>h(nr,{name:`${R.rowName??`${R.itemsName} row`} ${Ae+1}`,...R.rowProps??{},[sr]:ge})):be.flat()})]})})}let F=b.perRow?.(r),k=b.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(H(b.key,(v.length?b.flat?`each item's parts (${v.length} items), in order`:`one Box per item (${v.length}), its parts inside`:"nothing \u2014 the list is empty")+(k&&v.length?`, in rows of ${k}`:"")),!k)return P.flat();let A=typeof b.rowProps=="function"?b.rowProps(r,t):b.rowProps??{},L=[];for(let R=0;R*k<P.length;R++){let G=P.slice(R*k,(R+1)*k).flat(),$=b.rowFiller?k-P.slice(R*k,(R+1)*k).length:0;L.push(h(nr,{name:`${b.rowName??`${b.name} row`} ${R+1}`,...A,[sr]:[...G,...Array.from({length:$},(oe,re)=>h(nr,{name:`Empty ${re+1}`,...b.rowFiller,[sr]:[]}))]}))}return L},S=(b,E,H,v)=>{let M=[],P=(k,A)=>H?c(k,A):void 0,F=k=>H?f[k]:void 0;for(let k of b)if(!(k.when&&!k.when(r,H?void 0:E)))switch(k.kind){case"text":{let A=_y(E[k.key]);if(!A.text.trim()&&!(H&&t.press&&o.pressKeepsEmpty?.includes(k.key))){P(k.key,"nothing \u2014 empty words draw nothing, so no block");break}let L=Hte(k.role??"body"),{_partStyles:R,...G}=L,$=Wte(L,k.styleFrom?{...k.style,...k.styleFrom(r,t)}:k.style,F(k.key),k.props?.align);M.push(h("Text",{text:k.mark==="accentLead"?Mte(A.text):k.mark==="accentItalic"?Sa(A.text):A.text,...G,...k.props??{},...$,...A.hidden?{_hidden:!0}:{}})),P(k.key,`${v}Text block: its words${A.hidden?", hidden":""}`);break}case"button":{let A=_y(E[k.key]);if(!A.text.trim()){P(k.key,"nothing \u2014 no words, no button"),P(k.href,"nothing \u2014 no button to link"),typeof k.variant=="object"&&P(k.variant.key,"nothing \u2014 no button to style");break}let L=typeof E[k.href]=="string"&&E[k.href]?E[k.href]:"#",R={...k.style??{},...F(k.key)??{}};M.push(h("ButtonBlock",{label:A.text,href:L,...typeof k.props=="function"?k.props(E,t):k.props??{},...Gte(k.variant,E),...Object.keys(R).length?{_partStyles:{label:R}}:{},...A.hidden?{_hidden:!0}:{}})),P(k.key,`${v}Button block: its words`),P(k.href,`${v}Button block: its link`),typeof k.variant=="object"&&P(k.variant.key,`${v}Button block: its Style`);break}case"image":{let A=E[k.key];if(typeof A!="string"||!A){P(k.key,"nothing \u2014 no picture, no block"),k.alt&&P(k.alt,"nothing \u2014 no picture to describe");break}let L=k.alt&&typeof E[k.alt]=="string"?E[k.alt]:"";M.push(h("ImageBlock",{src:A,alt:L,...k.props??{}})),P(k.key,`${v}Image block: its picture`),k.alt&&P(k.alt,`${v}Image block: its alt text`);break}case"list":{M.push(...T(k,E,P));break}case"group":{let A=S(k.parts,E,H,v),L=I(k.box,k.props,E,`${k.name} Box`,!A.length&&!k.keepEmpty,v,P);L&&M.push(h(nr,{name:k.name,...L,[sr]:A}));break}case"block":{let A=k.parts?S(k.parts,E,H,v):[],L=I(k.box,k.props,E,`${k.type} block`,!!k.parts&&!A.length&&!k.keepEmpty,v,P);L&&M.push(h(k.type,{...L,...k.slot?{[k.slot]:A}:{}}));break}case"core":{let A=k.as??e.type,L={...k.headless?{}:{headPlacement:"own-box"},...k.props??{}},R=k.keep==="rest"?Object.keys(E).filter($=>!u.has($)&&!($ in L)):k.keep;for(let $ of R)E[$]!==void 0&&(L[$]=E[$],P($,`the ${A} block inside the Box`));if(k.keep==="rest"){for(let oe of Object.keys(k.props??{}))E[oe]!==void 0&&!u.has(oe)&&P(oe,`nothing \u2014 the ${A} block inside the Box has the row's own value`);E.headPlacement!==void 0&&P("headPlacement",`the ${A} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(f).filter(([oe])=>!u.has(oe)));Object.keys($).length&&(L._partStyles=$)}for(let[$,oe]of Object.entries(k.rename??{}))E[$]!==void 0&&(L[oe]=E[$],P($,`the ${A} block inside the Box: ${oe}`));if(k.derive){Object.assign(L,k.derive.props(E,t));for(let $ of k.derive.reads)E[$]!==void 0&&P($,`the ${A} block inside the Box`)}let G=typeof k.slots=="function"?k.slots(E,t):k.slots??{};for(let[$,oe]of Object.entries(G))L[$]=oe.flatMap(re=>"kind"in re?T(re,E,P):g([re]));M.push(h(A,L));break}}return M},C=(b,E)=>{let H=E===0?"Box":`${b.name} Box`,v=S(b.parts,r,!0,E===0?"":`${H}: `),M=typeof b.boxProps=="function"?b.boxProps(r,t):b.boxProps??{},P=LL(b.box??[],M,r,(F,k,A)=>c(F,A?`nothing \u2014 the old value draws nothing (${H}: no ${k})`:`${H}: ${k}`),t);return{type:nr,props:{name:b.name,...P,[sr]:v,id:Bte(n,E)}}},y=[o,...o.also??[]].map(C);r._partStyles!==void 0&&c("_partStyles","each old part's style moved to its new part");for(let[b,E]of Object.entries(o.reads??{}))r[b]!==void 0&&c(b,E);for(let[b,E]of Object.entries(o.drop??{}))b in r&&(l.push({key:b,why:E}),d.add(b));for(let b of Object.keys(r))FL.has(b)||d.has(b)||l.push({key:b,why:"not in the row \u2014 not carried"});return{node:y[0],nodes:y,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function NL(e,o=BL,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?cn[a.type]:void 0;if(!s)return;let l=Bs(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as Jte,BLOCK_SIZE_KEYS as Qte,parseBlockWidthFit as Su,phoneKey as HL,parseTextFit as Ry,tabletKey as WL}from"efficient-easel/draw";import{sideLengthAt as ere,unitKeyAt as GL}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as Vte,VIEW_TABLET_MIN as Yte}from"efficient-easel/screen/lib/content/view-tiers";var Er={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},at=Er,qte=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Xte=String.raw`(function (doc) {
71
- if (doc.__sfFitWords) return;
72
- var win = doc.defaultView;
73
- var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
74
- // Body text a block asked to shrink (its Text group's Shrink), beside
75
- // the headings: what this script may fit at all. modeOf() decides each one.
76
- var SHRINK_BODY = ${JSON.stringify(qte([at.fit,at.fitTablet,at.fitPhone]))};
77
- var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
78
- var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Fr};
79
- var TABLET_MIN = ${Yte}, DESKTOP_MIN = ${Vte};
80
-
81
- // A block's own answer (lib/content/block-size, the wrapper's attributes):
82
- // the fit "wrap" | "shrink" | "line" and the floor, each with a tablet and a
83
- // phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
84
- // in a Box, marked edge; 720 outside one) the tablet's where it has one;
85
- // under it the phone's, else the tablet's, else the desktop's. With no
86
- // tablet answer the phone's is read under 800, as before (the edge moves with
87
- // F1). With none, a heading shrinks and body text wraps, as always.
88
- // A holder with any tablet attribute takes the three views (its line and 1100)
89
- // for its fit AND its floor together; one with none keeps the 800 edge.
90
- var TABLET_ATTRS = [${JSON.stringify(at.fitTablet)}, ${JSON.stringify(at.minTablet)}];
91
- function own(el, attr, tabletAttr, phoneAttr) {
92
- var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
93
- if (!holder) return null;
94
- var w = win.innerWidth, d = holder.getAttribute(attr);
95
- if (w >= DESKTOP_MIN) return d;
96
- var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
97
- if (w < (holder.hasAttribute(${JSON.stringify(at.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
98
- if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
99
- return (w < PHONE_BELOW && p) || d;
100
- }
101
- function modeOf(el) {
102
- var mode = own(el, ${JSON.stringify(at.fit)}, ${JSON.stringify(at.fitTablet)}, ${JSON.stringify(at.fitPhone)});
103
- if (mode === "wrap" || mode === "shrink") return mode;
104
- if (mode === "line") return "wrap"; // One line: the block keeps its words whole, nothing shrinks
105
- return el.matches(SELECTOR) ? "shrink" : "wrap";
106
- }
107
- function floorOf(el, set) {
108
- var raw = own(el, ${JSON.stringify(at.min)}, ${JSON.stringify(at.minTablet)}, ${JSON.stringify(at.minPhone)});
109
- var min = parseFloat(raw);
110
- // A Min font size in vw (block-size.ts): a share of the window's width.
111
- if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
112
- return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
113
- }
114
-
115
- function measure(el) {
116
- var widest = 0, current = 0, last = null, split = false, lastBlock = null;
117
- function blockOf(n) {
118
- for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
119
- var d = win.getComputedStyle(p).display;
120
- if (d.indexOf("inline") !== 0 && d !== "contents") return p;
121
- }
122
- return el;
123
- }
124
- function close() { if (current > widest) widest = current; current = 0; last = null; }
125
- var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
126
- while ((node = walker.nextNode())) {
127
- if (node.nodeType === 1) {
128
- if (node.tagName === "BR" || node.tagName === "WBR") close();
129
- continue;
130
- }
131
- var block = blockOf(node);
132
- if (block !== lastBlock) close();
133
- lastBlock = block;
134
- var re = /(\S+)|(\s+)/g, m;
135
- while ((m = re.exec(node.data))) {
136
- if (m[2]) { close(); continue; }
137
- range.setStart(node, m.index);
138
- range.setEnd(node, m.index + m[0].length);
139
- var rects = range.getClientRects();
140
- for (var i = 0; i < rects.length; i++) {
141
- var r = rects[i];
142
- if (r.width <= 0) continue;
143
- current += r.width;
144
- if (last && r.top > last.top + last.height / 2) split = true;
145
- last = r;
146
- }
147
- }
148
- }
149
- close();
150
- return { widest: widest, split: split };
151
- }
152
-
153
- function lineWidth(el) {
154
- var cs = win.getComputedStyle(el);
155
- return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
156
- - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
157
- }
158
-
159
- // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
160
- // runs before React hydrates, and React 19 in development reports ANY
161
- // attribute that differs from what it rendered ("a tree hydrated but some
162
- // attributes didn't match"): first our inline font-size on the hero (which
163
- // React owns via --heading-size), then, when that moved to a data-sf-fit
164
- // attribute, the attribute itself. So the fitted size lives only in this
165
- // script's own stylesheet, in <head>, addressed to each heading by its
166
- // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
167
- // structure changes, so the rules are rewritten in the MutationObserver
168
- // callback, which runs before the next paint. !important so the size also
169
- // beats a part's own inline size.
170
- var head = doc.head || doc.documentElement;
171
- var fitEl = doc.createElement("style");
172
- fitEl.id = "storefront-fit-words-sizes";
173
- head.appendChild(fitEl);
174
- // heading -> [[element, fitted size]]: the heading and each Text part inside
175
- // it that holds its own size (a span [data-sf-part-styled]), e.g.
176
- // [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
177
- // a part at its own size, and the word still breaks (card C25, Spec Table).
178
- var fitted = new Map();
179
-
180
- function pathOf(el) {
181
- var parts = [];
182
- for (var e = el; e && e.parentElement; e = e.parentElement) {
183
- var i = 1, s = e;
184
- while ((s = s.previousElementSibling)) i++;
185
- parts.unshift("*:nth-child(" + i + ")");
186
- }
187
- return ":root>" + parts.join(">");
188
- }
189
- function writeRules() {
190
- var css = "";
191
- fitted.forEach(function (sizes, el) {
192
- if (!el.isConnected) { fitted.delete(el); return; }
193
- for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
194
- });
195
- if (fitEl.textContent !== css) fitEl.textContent = css;
196
- }
197
-
198
- function unfit(el) {
199
- if (fitted.delete(el)) writeRules();
200
- }
201
-
202
- function fits(el) {
203
- var m = measure(el);
204
- return !m.split && m.widest <= lineWidth(el) + SLACK;
205
- }
206
-
207
- function fit(el) {
208
- unfit(el);
209
- if (modeOf(el) !== "shrink") return; // the block's own Wrap
210
- if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
211
- if (fits(el)) return;
212
- var set = parseFloat(win.getComputedStyle(el).fontSize);
213
- if (!set) return;
214
- var floor = floorOf(el, set);
215
- if (floor >= set) return;
216
- function size(px) { return Math.floor(px * 10) / 10 + "px"; }
217
- // The SEARCH tries sizes on the element's own style and then puts that
218
- // attribute back byte for byte (or removes it, if it had none), so nothing
219
- // is left for React to see. A trial in a stylesheet instead restyles the
220
- // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
221
- // CPU that way.
222
- // Every trial scales the heading AND each part inside it that holds its
223
- // own size, by the same ratio, so a part keeps its proportion to the
224
- // heading.
225
- var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
226
- var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
227
- var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
228
- function attempt(px) {
229
- for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
230
- }
231
- function done() {
232
- for (var i = 0; i < carriers.length; i++) {
233
- if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
234
- }
235
- }
236
- attempt(floor);
237
- if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
238
- var lo = floor, hi = set;
239
- for (var i = 0; i < 8; i++) {
240
- var mid = (lo + hi) / 2;
241
- attempt(mid);
242
- if (fits(el)) lo = mid; else hi = mid;
243
- }
244
- done();
245
- fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
246
- writeRules();
247
- }
248
-
249
- // What each heading measured right after we last fitted it, so the
250
- // ResizeObserver below can tell a real change (a font swap, a rotate, a
251
- // container that moved) from the size change our own write just caused.
252
- var seen = new WeakMap();
253
- function remember(el) {
254
- var b = el.getBoundingClientRect();
255
- seen.set(el, b.width + "x" + b.height);
256
- }
257
- function fitAndRemember(el) { fit(el); remember(el); }
258
-
259
- // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
260
- // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
261
- // fitted heading, and fonts.ready resolves only after that frame is painted —
262
- // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
263
- // reported here is fitted in the same frame, so the broken state is never
264
- // drawn. It also covers a container that resizes.
265
- var ro = new win.ResizeObserver(function (entries) {
266
- for (var i = 0; i < entries.length; i++) {
267
- var el = entries[i].target;
268
- var b = el.getBoundingClientRect();
269
- if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
270
- fitAndRemember(el);
271
- }
272
- });
273
- // Its own set, not seen: fitAndRemember has written seen by the
274
- // time watch runs, so a seen test observed no heading at all, and a
275
- // heading fitted in the fallback face was never fitted again when the web
276
- // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
277
- var watched = new WeakSet();
278
- function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
279
-
280
- function fitAll() {
281
- var els = doc.querySelectorAll(CANDIDATES);
282
- for (var i = 0; i < els.length; i++) {
283
- if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
284
- else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
285
- }
286
- }
287
-
288
- var queued = 0, all = false, touched = new Set();
289
- function run() {
290
- queued = 0;
291
- if (all) { all = false; touched.clear(); fitAll(); return; }
292
- var els = Array.from(touched);
293
- touched.clear();
294
- for (var i = 0; i < els.length; i++) {
295
- if (!els[i].isConnected) continue;
296
- if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
297
- else unfit(els[i]);
298
- }
299
- }
300
- function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
301
- function scheduleAll() { all = true; schedule(); }
302
-
303
- fitAll();
304
- // A backstop only: a font that changes widths without changing any
305
- // heading's box is not seen by the ResizeObserver.
306
- if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
307
-
308
- // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
309
- // heading sized to its own text (fit-content, a flex item) keeps the SAME box
310
- // when the phone turns to 844, so nothing reports a change and it would stay
311
- // shrunk. The probe's rotate check caught exactly that.
312
- var lastWidth = win.innerWidth;
313
- function onResize() {
314
- if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
315
- lastWidth = win.innerWidth;
316
- scheduleAll();
317
- }
318
- win.addEventListener("resize", onResize);
319
-
320
- var mo = new win.MutationObserver(function (records) {
321
- // Positions first: a node added or removed anywhere can shift the
322
- // nth-child path of a fitted heading, and this callback runs before paint.
323
- if (fitted.size) {
324
- for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
325
- }
326
- for (var i = 0; i < records.length; i++) {
327
- var r = records[i];
328
- // A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
329
- // only a data-fit attribute moved, so every heading is measured again.
330
- if (r.type === "attributes") { scheduleAll(); continue; }
331
- var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
332
- var owner = target && target.closest(CANDIDATES);
333
- if (owner) touched.add(owner);
334
- for (var j = 0; j < r.addedNodes.length; j++) {
335
- var n = r.addedNodes[j];
336
- if (n.nodeType !== 1) continue;
337
- if (n.matches(CANDIDATES)) touched.add(n);
338
- var inner = n.querySelectorAll(CANDIDATES);
339
- for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
340
- }
341
- }
342
- if (touched.size) schedule();
343
- });
344
- mo.observe(doc.body, {
345
- childList: true,
346
- subtree: true,
347
- characterData: true,
348
- attributes: true,
349
- attributeFilter: ${JSON.stringify(Object.values(at))},
350
- });
351
-
352
- doc.__sfFitWords = function stop() {
353
- win.removeEventListener("resize", onResize);
354
- ro.disconnect();
355
- mo.disconnect();
356
- if (queued) win.cancelAnimationFrame(queued);
357
- fitted.clear();
358
- fitEl.remove();
359
- delete doc.__sfFitWords;
360
- };
361
- // For the probe and for debugging: which headings are fitted, at what size,
362
- // and the sheet that holds it (disable it to read a heading's set size).
363
- doc.__sfFitWords.fitted = fitted;
364
- doc.__sfFitWords.sheet = fitEl;
365
- // …and the two questions a block's own answer changes, for the guard
366
- // (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
367
- doc.__sfFitWords.modeOf = modeOf;
368
- doc.__sfFitWords.floorOf = floorOf;
369
- })(document);`,Zte="storefront-fit-words";function ML(e){let o=e.createElement("script");return o.id=Zte,o.textContent=Xte,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var ore="sf-block-size",Hi=["width","minWidth","maxWidth"],wu=e=>`${e}Unit`,Mi=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Ly={desktop:"desktop",tablet:"tablet",phone:"mobile"},tre={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},UL={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},rre={desktop:UL.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},are={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},nre={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},sre={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Fy={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},lre={minWidth:{desktop:Fy.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:Fy.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},ire=["widthFit",...Hi],zL={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},$L={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},dre={desktop:$L.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"};function fHe(e){let o=jL(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>are[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function jL(e){let o=ire.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Su(n)!==void 0:Mi(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=wu(a),s={};for(let d of t)s[GL(a,Ly[d])]=Mi(e[a]?.[d]),s[GL(n,Ly[d])]=e.units?.[a]?.[d];let l=d=>ere(s,{length:a},n,Ly[d],"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Su,e.widthFit)}}function pHe(e,{atSectionLine:o=!1}={}){let t=o?rre:UL,r=o?lre:Fy,a=o?dre:$L,n=[],s={},l={},{three:d,sides:c,lengthPerSide:f,mode:u}=jL(e),p=f("width");for(let H of c){let v=u[H];!v||v==="fit"||(n.push(d?t[H][v]:tre[H][v]),v==="fixed"&&(s[nre[H]]=Oa(p[H]?.value??Jte.fallback,p[H]?.unit)))}for(let H of Hi.filter(v=>v!=="width")){let v=f(H);for(let M of c){let P=v[M];if(P===void 0)continue;let[F,k]=d?r[H][M]:sre[H][M];s[F]=Oa(P.value,P.unit),n.push(k)}}let h=Ry(e.textFit?.desktop),I=Ry(e.textFit?.phone),g=H=>{let v=Mi(e.minFont?.[H]);return v===void 0?void 0:e.units?.minFont?.[H]==="vw"?`${v}vw`:String(v)},T=g("desktop"),S=g("phone"),C=Ry(e.textFit?.tablet),y=C!==h||I!==void 0?C:void 0,b=g("tablet"),E=b!==T||S!==void 0?b:void 0;return y?(h==="line"&&n.push(a.desktop),y==="line"&&n.push(a.tablet),(I??y)==="line"&&n.push(a.phone)):(h==="line"&&n.push(zL.desktop),(I??h)==="line"&&n.push(zL.phone)),h&&(l[Er.fit]=h),y&&(l[Er.fitTablet]=y),I&&(l[Er.fitPhone]=I),T!==void 0&&(l[Er.min]=T),E!==void 0&&(l[Er.minTablet]=E),S!==void 0&&(l[Er.minPhone]=S),!o&&(y||E!==void 0)&&(l[Er.edge]=""),n.length===0&&Object.keys(l).length===0?null:{className:[ore,...n].join(" "),style:s,attrs:l}}function uHe(e){if(Mi(e.maxWidth?.desktop)!==void 0)return!0;let o=Su(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function mHe(e){return["desktop","tablet","phone"].some(o=>{let t=Su(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Mi(e.minWidth?.[o])!==void 0})}function hHe(e){let o={};for(let t of Qte){let r=e[t],a=e[WL(t)],n=e[HL(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=wu(t),l={desktop:e[s],tablet:e[WL(s)],phone:e[HL(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var KL={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as pre}from"react/jsx-runtime";import{SITE_SIDE as cre}from"efficient-easel/screen/lib/content/length-units";var VL="sideSpace",pn=cre,bHe=[{value:"box",label:"Box"},{value:pn,label:"Site"}],yHe="box",SHe="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function YL(e){return e===pn?pn:"box"}function wHe(e){return e===pn?pn:void 0}import{isNodeList as fre}from"efficient-easel/data";var By=new Set(["FAQ"]);function qL(e,o){if(!By.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:fre(t)}var Cu={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},XL=new Set(Object.keys(Cu)),JL=new Set(["Flex","Text","Heading","ImageBlock"]),ure=new Set(["Divider"]),mre=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ZL=new Set(["ProductGrid"]);function Dy(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=hf({...UE(a,mf,t),sideSpace:YL(a.sideSpace)}),s=r(a),l=HC(a);return n?pre($d,{className:l?`${n.className} ${l}`:n.className,style:n.style,children:s}):s}}var LHe={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!mre.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){XL.has(o)||ZL.has(o)||(e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,o){if(XL.has(o)){let t=e.render,r=Cu[o];e.render=a=>{let n=xf(a,r);return t({...a,padTop:n.top,padBottom:n.bottom})};return}if(ZL.has(o)){Dy(e);return}JL.has(o)||ure.has(o)||Dy(e,o==="Flex"?t=>Nx(t.bgImage):By.has(o)?t=>qL(o,t):void 0,!0)}},hre=["Heading","Text","ImageBlock"],xre=["LogoBlock"],FHe={name:"blockPadding",applies:(e,o,t)=>(hre.includes(e)||xre.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){JL.has(o)||Dy(e,void 0,!0)}};import{parseHexColor as Ire}from"efficient-shell/format";import{convertLength as gre,isLengthUnit as bre}from"efficient-easel/screen/lib/content/length-units";var Ny=e=>bre(e)?e:"px",aa=(e,o,t,r)=>o===t?e:gre(e,o,t,r,{min:0,max:200,step:4}),un={textFit:"line",textFitPhone:"wrap"},mn={...W,[vt]:""},{label:a2e,href:n2e,...yre}=KL.defaultProps,xo=yre,hn={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},X={...sc,sectionAccent:0},Ns={sectionAccent:-1},te=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",...tO,"anchor",nl,...Zn,...Md,...Up,...Nd(["widthFit",...Hi,...Hi.map(wu)]),...Object.values(po)],Ds="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",J={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Ds,fullWidth:Ds,pageWidth:Ds,backgroundWidth:Ds,contentWidth:Ds,contentMax:Ds},se=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function le(e,o){let t=K(e.sectionPaddingTop)??0,r=K(e.sectionPaddingBottom)??0,a=K(e.sectionPaddingTopTablet),n=K(e.sectionPaddingBottomTablet),s=Ny(e.sectionPaddingUnit),l=Ny(e.sectionPaddingUnitTablet),d=Ny(e.sectionPaddingUnitPhone),c=(u,p,h,I)=>{let g=K(u);if(g!==void 0)return g+aa(I,"px",d,"mobile");let T=p===void 0?{n:h,unit:s}:{n:p,unit:l};return aa(T.n,T.unit,d,"mobile")+aa(I,"px",d,"mobile")},f=(u,p,h,I,g)=>p!==void 0?{[u]:p+aa(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:aa(h,s,l,"tablet")+aa(g,"px",l,"tablet")};return{sectionPaddingTop:t+aa(o.top,"px",s,"desktop"),sectionPaddingBottom:r+aa(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:c(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:c(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var me=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>le(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function Do(e,o){let t=xf(e,Cu[o]);return{sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom}}var na=e=>[["padTop","sectionPaddingTop",(o,t)=>Do(t,e).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,t)=>Do(t,e).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,t)=>Do(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Do(t,e).sectionPaddingBottom]],Sre={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},s2e=e=>o=>Ue(o.props[e])?[Sre]:[],fe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:W,...o?{style:o}:{}}),ku=e=>({kind:"group",name:"Chip",props:{...O,...Zt("main"),...Ne(6,14)},parts:[fe(e,{color:"background",...N("label",12),weight:600,letterSpacing:.16})]}),QL=e=>e.background!=="transparent",wre=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},Wi={align:"right",alignPhone:"left"},Cre=(e,o,t)=>{let r=a=>wre(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},Gi=(e,o,t,r={})=>Cre(e,o,{...mn,...Wi,...r,_partStyles:{text:{...yo,color:"labels",...t,case:yo.case,...Wi}}}),Ms=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:fn(o)?.selected??0,eF="var(--site-surface-2)",vu=(e,o)=>fn(o)?.themes[Ms(e.sectionAccent??0,o)],Yo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Zt(e);let a=vu(t,r)?.[e];return a?{fillColor:a}:{}},Tu=(e,o)=>sa(e,o)>=0,oF=e=>e.startsWith("#")&&Ire(e)!==null,Pu=(e,o,t)=>{let r=e?.trim();if(r&&oF(r))return{fillColor:r};let a=Fx(r);if(a)return Zt(a);let n=r===eF?vu(o,t):void 0;return n?{fillColor:Fd(n)}:{}},Eu=e=>{let o=e?.trim();return!o||o==="transparent"||o===Oo||Fx(o)||o===eF||oF(o)?void 0:"it paints a colour that no Box Fill can hold"},sa=(e,o)=>{let t=fn(o)?.themes;return t&&QL(e)?sC(t,Ms(e.sectionAccent,o)):-1},la=(e,o,t)=>{let r=sa(o,t);return r>=0?r:e},My=(e,o)=>{let t=fn(o)?.themes,r=t?lC(t,Ms(e,o)):-1;return r>=0?r:e},xn=(e,o)=>{let t=sa(e,o);return t>=0?{sectionAccent:t}:{}},ia=(e,o)=>QL(e.props)&&sa(e.props,o)<0?[{kind:"band-preset",page:Ms(e.props.sectionAccent,o)}]:[],zi=e=>cf(e.site?.siteGutter),Ui=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),$i=e=>({top:0,right:0,bottom:0,left:0,...e}),Hy=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...O,...Ui,...Yo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],we.kind,we.duration,we.delay],parts:r});import{phoneKey as Zy,readHidable as Jy}from"efficient-easel/draw";import{isNodeList as nae,newId as sae}from"efficient-easel/data";function tF(e){return Math.min(4,Math.max(2,e??3))}var c2e={eyebrow:"Label",title:"Section *heading.*"},kre={template:wv()},rF={label:"Cards",fields:kre,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var u2e={eyebrow:"Highlight",title:"Key *features.*"},m2e=()=>[{label:i("Feature label one")},{label:i("Feature label two")},{label:i("Feature label three")},{label:i("Feature label four")},{label:i("Feature label five")},{label:i("Feature label six")}],aF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var vre="plain",nF=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],Tre="line",Pre={KeyFeatures:"filled"};function ji(e){return Pre[e]??vre}function sF(e,o){return to(nF,ji(o),e)}function I2e(e){return to(nF,Tre,e)}var Wy="cardPlace";function y2e(e){return e[Wy]==="top-line"?"top-line":""}var S2e="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",w2e="data-sf-top-line",Ere=new Set(["Cards",Fo]);function C2e(e){return typeof e=="string"&&Ere.has(e)}var Ore=e=>{if(!e||typeof e!="object")return!1;let o=e,t=n=>typeof n=="number"&&n>0,r=o.width,a=n=>typeof o[n]=="number"?t(o[n]):t(r);return a("top")&&!a("right")&&!a("bottom")&&!a("left")};function k2e(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Ore(e)?{...e,top:0}:e}var v2e="outsideFramedCard";function _re(e,o){let t=e.trim();if(!Ou(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function E2e(e){return e.startsWith("/")||Ou(e)}function Ou(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Ki=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function lF(e,o){return _re(e,o)?{...Ki}:{}}function O2e(e){return typeof e=="string"?e.trim():""}var _2e="data-sf-box-link",iF="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",A2e="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",Are="data-sf-box-jump";function Rre(e){return`sf-box-jump-${e}`}function R2e(e,o){return e===!0?Lc(o):""}function Lre({box:e,lit:o,first:t}){let r=s=>s.join(`,
370
- `),a=t(e),n=o.flatMap(t);return`
371
- ${e} {
372
- outline: 2px solid transparent;
373
- outline-offset: -2px;
374
- transition: outline-color 600ms ease-out;
375
- }
376
- ${r(a)} { transition: background-color 600ms ease-out; }
377
- ${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
378
- ${r(o)} { outline-color: var(--accent); }
379
- ${r(n)} { background-color: var(--accent); }
380
- ${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
381
- `}function L2e(e){let o=`[${Are}="${e}"]`,t=`.${Rre(e)}`,r=`[id="${e}"]:target`;return Lre({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var Fre=["selected","highlighted"],dF="data-sf-card-state",M2e="pointer-events-none absolute inset-0 border border-accent",H2e="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",W2e="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",G2e="absolute inset-y-0 left-0 w-[3px] bg-accent",z2e="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",U2e="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",cF=e=>{let o=bC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Bre={[cF("muted")]:`var(${cF("fg")})`};function Dre(e){return e?.selected===!0}function Nre(e){return e?Fre.filter(o=>e[o]===!0).join(" "):""}function $2e(e,o="frame"){let t=Nre(e);return t?o==="frame"&&Dre(e)?{[dF]:t,className:"relative isolate",style:{...Bre}}:{[dF]:t,className:"relative"}:{}}var Mre={highlighted:!0},Hre={},_u="badge";function j2e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||yl(t,r)}))}function K2e(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===_u||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function V2e(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[_u]:s===a?t:""})),states:e.map((n,s)=>s===a?Mre:Hre)}}function Y2e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function q2e(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var X2e="data-sf-card-press",fF=`${iF} appearance-none bg-transparent border-0 p-0 m-0`,Z2e=`${fF} cursor-pointer`,J2e=fF;var Au={sectionBorder:{top:0,right:1,bottom:1,left:0},...Zt("background")},Wre={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ru=e=>({direction:"row",columns:e,columnsTablet:e,...Wre}),pF=(e={})=>ae(_u,{...W,tag:"p",[Wy]:"top-line"},e,!0),uF=(e=zr)=>{let o=Dh(e);return{...o,props:{...Au,...o.props},slots:{[ee]:[...o.slots?.[ee]??[],pF()]}}},Gy=(e=!1)=>{let o=Nh(e);return{...o,props:{...Au,...o.props}}},Gre={name:"name",time:"time",note:"note",price:"price"},zre={textStyle:"body-1",...N("body",16),weight:500,lineHeight:1.5},Ure={...yo,...N("label",12),letterSpacing:.18,lineHeight:1.5},$re={textStyle:"body-1",...N("body",14),lineHeight:1.6},jre={textStyle:"body-1",fontRole:"heading",...N("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Kre={...N("label",11),letterSpacing:.25},Vre={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Yre=e=>({direction:"row",columns:e,...Vre}),n4e=[...new Set([...Object.keys(Ru(1)),...Object.keys(Yre(1))])],s4e=()=>{let e=Gre,o={tag:"p",widthFit:"fill"};return{type:U,props:{...O,name:"Card",justify:"between",gap:16,gapPhone:16,...Ne(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Zt("surface"),shadow:!0},slots:{[ee]:[pF(Kre),{type:U,props:{...O,name:"Words",gap:8,gapPhone:8},slots:{[ee]:[ae(e.name,{...W,...o},zre),ae(e.time,{...Y,...o},Ure),ae(e.note,{...Y,...o},$re)]}},ae(e.price,{...W,...o},jre)]}}};import{tabletKey as IF}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Lu}from"efficient-easel/draw";var Fu=Fr,zy=Lu,mF=960,hF=Fr,xF={min:Fu,max:1600,step:10},Bu="stackBelow";function f4e(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<xF.min||e>xF.max))return Math.round(e)}var qre=e=>`sf-stack-${e}`,Xre=e=>`sf-stack-${e}-gutter`,Zre=e=>`sf-stack-${e}-outer`,Hs=e=>`${e-.02}px`;function p4e(e,o={}){let t=o.gutter!==!1,r=`.${qre(e)}`,a=`.${Xre(e)}`,n=`.${Zre(e)}`,s=[];if(e>Fu){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,d=Math.min(e,Lu);s.push(`@media (min-width:${Fu}px) and (max-width:${Hs(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${Fu}px) and (max-width:${Hs(d)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Lu&&s.push(`@media (min-width:${Lu}px) and (max-width:${Hs(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Hs(e)}){${a}${a}{padding-inline:${tr.frame}}}`),t&&e<mF&&s.push(`@media (min-width:${e}px) and (max-width:${Hs(mF)}){${a}${a}{padding-inline:${rt}}}`),e>hF&&s.push(`@media (min-width:${hF}px) and (max-width:${Hs(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}function In(e){if(e==="ProductGrid")return"shelf";let o=Lo[e]?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var Vi={standard:64,editorial:60,simple:36,essay:28,shelf:20},Jre={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Qre(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=Lo[e];if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function Nu(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Du.get(r);if(a)return a;let n=SF({num:e,title:o,description:t,link:!1});return Du.set(r,n),n}var qo={[Bu]:zy},$y={top:0,right:0,bottom:1,left:0},Xo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Mu=(e,o,t={})=>fe(e,{...N("label",o),...t}),Hu=(e,o)=>({kind:"text",key:e,role:"heading",props:W,style:{textStyle:"heading-2",...o}}),jy=800,eae=zy,Ky=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...Y,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:jy}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...N("body",o),...r,...a}}),yF={...xo,align:"right",alignPhone:"left",...hn},Uy=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:yF,style:{...Tt(e),color:"labels"}}),gF=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...W,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?oae(Pt()):{},...t.style}}}}},oae=e=>e._partStyles.text??{},Ws={widthFitPhone:"fill"};function Vy(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...Ws}):{...o,...Ws}}}return{...e,parts:e.parts.map(Vy)}}function tae(e,o){let t=Jre[e],r=t==="accent",a=Mu(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Hu(o.title,r?{...Xo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...N("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...O,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:$y,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...O,...Ws,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...O,...Ws,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[gF(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...O,...Ws},parts:[s,...l?[gF(o.title,`Three ranges,
382
- one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...O,...Ws,gap:12,maxWidth:340,maxWidthPhone:jy},parts:[...o.description?[Ky(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[Uy(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...yF,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:Uy(14).style}}}]:[]]}]}}function Wu(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Wu(t,o))}:e}function SF(e){let o=Hu(e.title,{...Xo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...O,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:$y,sectionPaddingBottom:32,...qo},parts:[{kind:"group",name:"Title",props:{...O,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...qo},parts:[{kind:"group",name:"Number",props:{...O,sectionPaddingBottom:8},parts:[{...Mu(e.num,13),props:{...W,...un}}]},Wu(o,[e.title])]},{kind:"group",name:"Words",props:{...O,sectionPaddingBottom:4,maxWidth:360,[IF("maxWidth")]:eae,maxWidthPhone:jy},parts:e.description?[Ky(e.description,14,void 0,{lineHeight:1.5},{[IF("align")]:"left"})]:[]}]}}function bF(e,o){return{kind:"group",name:"Header",props:{...O,gap:16,gapPhone:16},parts:[Mu(e.num,13),Hu(e.title,o)]}}var wF=[["para",{...Tt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...N("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...N("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...N("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...N("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],rae=e=>wF.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function aae(e){return{kind:"group",name:"Header",props:{...O,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:$y,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...O,direction:"row",align:"end",gap:24,share:"content"},parts:[Mu(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...wF.map(([o,t])=>({...Hu(e.title,t),when:r=>rae(r)===o}))]},{kind:"group",name:"Words",props:{...O,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[Ky(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[Uy(13)]:[]]}]}}function Gu(e){return In(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Du=new Map,Yy={...N("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ut(e){let o=Du.get(e);if(o)return o;let t=Qre(e),r=In(e),a=r==="editorial"?SF(t):r==="simple"?bF(t,Yy):r==="essay"?bF(t,{...N("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?aae(t):tae(e,t);return Du.set(e,a),a}var gn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Oo,Stats:void 0};var Yi=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),BF=e=>o=>tF(K(o.columns)??K(e.columns)),lae="inline is the head the row draws; an own-box node is skipped (`skip`)",iae={kind:"text",key:"title",role:"heading",props:W,style:{textStyle:"heading-3",...Yy}},CF={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Uu=e=>{let o=rr(typeof e.background=="string"?e.background:void 0,gn.Series);return o&&o!=="transparent"?o:void 0},zu=e=>Uu(e)===Oo,dae={...O,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},kF={...O,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[Zy("share")]:"content"},cae=e=>{let o=Uu(e)?1:2;return{...O,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},qy={...Tt(12),letterSpacing:.22,lineHeight:1.5},vF=e=>Ue(e.viewLabel)&&!Jy(e.viewLabel).hidden,mt=e=>Jy(e).text?.trim?.()??"",$u=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>q(o)!==void 0)),Qy=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),fae=Qy([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),pae=Qy([["label","Label"],["value","Value"],["body","Card body",!0]]),qi=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Fo,headless:!0,keep:s,derive:{reads:n,props:l=>gc(r(l),t)},slots:(l,d)=>({[fo]:[a(l,d)]})}]}),DF=e=>Array.isArray(e.cards)?e.cards:[],TF={top:76,bottom:76,topPhone:76,bottomPhone:76},NF=e=>(Array.isArray(e.items)?e.items:[]).map(o=>$u({title:mt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:yl(Zh(o),t),...o})),uae=e=>NF(e).some(o=>q(o.href)!==void 0),MF=[{key:pl.label,label:"Feature label"},{key:pl.href,label:"Link",kind:"link"}],PF=e=>sF(e.eyebrowLook,"KeyFeatures")==="filled",mae={name:"Key Features",boxProps:(e,o)=>({...X,direction:"column",gap:44,gapPhone:32,...Yo("surface")(e,o),...Yi(1,0,1,0),...le(e,TF)}),box:[...te,...me(TF)],parts:[{kind:"group",name:"Heading",props:{...O,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[Zy("share")]:"content"},parts:[{...ku("eyebrow"),when:PF},{...fe("eyebrow"),when:e=>!PF(e)},iae]},qi("Cards",e=>({...O,...Ru(BF(aF.defaultProps)(e))}),MF,NF,e=>Gy(uae(e)),{reads:["items"]})],drop:{...J,...se,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},EF={top:72,bottom:72,topPhone:72,bottomPhone:72},OF=(e,o)=>({...Au,...Yo("background")(e,o)}),_F=e=>{let o=BF(rF.defaultProps)(e);return{...O,...Ru(o)}},hae=Qy([["title","Card title"],["body","Card body",!0]]),HF=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:yl(Zh(o),t),title:mt(o?.title),body:mt(o?.body)})),WF=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(nae(a)?t[r]=a.map(WF):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},AF=(e,o)=>{let t=Xy(e)?Gy(xae(e)):uF(),r=Array.isArray(e.template)?e.template.map(WF):[t],[a]=r;return r.length===1&&a.type===U?{...a,props:{...OF(e,o),...a.props}}:{type:U,props:{...O,...OF(e,o),name:"Card"},slots:{[ee]:r}}},Xy=e=>e.cardStyle==="label-only",GF=e=>HF(e).map((o,t)=>{let r=e.items[t]?.href;return $u({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),xae=e=>GF(e).some(o=>q(o.href)!==void 0),RF=e=>Array.isArray(e.template)&&e.template.length===0,LF=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function zF(){let e=t=>({key:sae("card"),title:i(t),body:i("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:i("Label"),title:i("Section *heading.*"),items:o}}var Iae={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...X,direction:"column",gap:36,gapPhone:28,...Yo("surface")(e,o),...le(e,EF)}),box:[...te,...me(EF)],parts:[{...ut("Cards"),when:e=>!Ay(e)},{...qi("Cards",_F,hae,HF,AF,{reads:["items"],keep:LF}),when:e=>!RF(e)&&!Xy(e)},{...qi("Cards",_F,MF,GF,AF,{reads:["items"],keep:LF}),when:e=>!RF(e)&&Xy(e)}],drop:{...J,...se,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},gae={name:"Recurring Columns",boxProps:(e,o)=>({...X,direction:"column",gap:60,gapPhone:60,...Yi(0,0,1,0),...qo,...zu(e)?xn(e,o):{},...Pu(Uu(e),e,o),...le(e,CF)}),box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>zu(o)?la(e,o,t):e],...me(CF)],skip:e=>Eu(Uu(e)),site:(e,o)=>zu(e.props)?ia(e,o):[],parts:[ut("Series"),qi("Cards",cae,fae,e=>DF(e).map(o=>$u({num:mt(o.num),since:mt(o.since),title:mt(o.title),body:mt(o.desc),count:mt(o.entries),countLabel:mt(o.entriesLabel)})),(e,o)=>({type:U,props:{...dae,...Yo("background",(t,r)=>zu(t)&&Tu(t,r))(e,o),name:"Card"},slots:{[ee]:[{type:U,props:{...O,name:"Words",gap:16,gapPhone:16},slots:{[ee]:[{type:U,props:{...kF,name:"Top"},slots:{[ee]:[ae("num",W,N("label",13),!0),ae("since",W,N("label",13),!0)]}},ae("title",{...W,tag:"h3"},{textStyle:"heading-3",...N("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),ae("body",Y,{textStyle:"body-5",fontRole:"heading",...N("body",14),lineHeight:1.6})]}},{type:U,props:{...kF,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Yi(1,0,0,0),...vF(e)?{}:{[gl]:["count","countLabel"]}},slots:{[ee]:[{type:U,props:{...O,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[Zy("share")]:"content"},slots:{[ee]:[ae("count",W,qy),ae("countLabel",Y,qy)]}},...vF(e)?[{type:U,props:{...O,name:"View",maxWidthPhone:266},slots:{[ee]:[{type:"Text",props:{...W,text:Jy(e.viewLabel).text,_partStyles:{text:{...Pt()._partStyles.text,...qy}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...J,...se,headPlacement:lae}},FF={top:60,bottom:60,topPhone:40,bottomPhone:40},bae={...O,direction:"row",columns:3,gap:40,gapPhone:16},yae={...O,gap:8,gapPhone:8,...Ne(24),...Yi(1,1,1,1)},Sae={name:"Document Detail Cards",boxProps:e=>({...X,direction:"column",gap:40,gapPhone:16,...Yi(0,0,1,0),...le(e,FF)}),box:[...te,...me(FF)],parts:[qi("Cards",bae,pae,e=>DF(e).map(o=>$u({label:mt(o.label),value:mt(o.value),body:mt(o.desc)})),(e,o)=>({type:U,props:{...yae,...Yo("surface")(e,o),name:"Card"},slots:{[ee]:[ae("label",W,{...N("label",12),lineHeight:1.5},!0),{type:U,props:{...O,name:"Words",gap:14,gapPhone:14},slots:{[ee]:[ae("value",W,{textStyle:"heading-3",...N("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),ae("body",Y,{textStyle:"body-5",fontRole:"accent",...N("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...J,...se}},UF={Cards:Iae,KeyFeatures:mae,Series:gae,DocMetaCards:Sae};import{phoneKey as vae}from"efficient-easel/draw";import{newId as Tae}from"efficient-easel/data";import{phoneKey as wae}from"efficient-easel/draw";import{isNode as Xi}from"efficient-easel/data";var Gs="cardStyle";function $F(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var ju={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[wae("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},ht={table:{...ju.table,listCard:$F(ju.table.card)},list:{...ju.list,listCard:$F(ju.list.card)}},Y4e=[{label:"Table",value:"table"},{label:"List",value:"list"}],q4e=e=>e==="table"||e==="list",Cae=e=>[...new Set([...Object.keys(ht.table[e]),...Object.keys(ht.list[e])])];function Zi(e,o,t){let r={...e};for(let a of Cae(o))delete r[a];return{...r,...structuredClone(ht[t][o])}}function kae(e,o,t){let r=e.props??{},a=Array.isArray(r[fo])?r[fo]:[],n=a.findIndex(d=>Xi(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:Zi(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[fo]:l}}}function X4e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>Xi(s)&&s.type===Fo)){let s=a.map(l=>Xi(l)&&l.type===Fo?kae(l,o,t):l);return{...Zi(e,"items",o),[Gs]:o,[r]:s}}let n=a.map(s=>{if(!Xi(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>Xi(c)&&c.type===t?{...c,props:Zi(c.props??{},"card",o)}:c);return{...s,props:{...Zi(l,"row",o),[r]:d}}});return{...Zi(e,"grid",o),[Gs]:o,[r]:n}}var eS=e=>typeof e=="string"?e.trim():"";function jF(e){let o=`${eS(e.prefix)}${eS(e.value)}`,t=eS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var YF={textStyle:"heading-2",...Xo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},oS={kind:"block",type:"Text",props:{...mn,_partStyles:{text:YF}},box:[["value","text",(e,o)=>jF(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&jF(o)!==""},KF=e=>Ue(e?.supSuffix),qF={textStyle:"body-1",fontRole:"heading",...N("body",16),lineHeight:1.5,letterSpacing:-.01},XF={color:"labels",...N("label",12),lineHeight:1.5,letterSpacing:.24},ZF={...O,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[vae("share")]:"content"},JF={textStyle:"body-5",...N("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},tS=e=>rr(e.background,gn.StatsParagraph),Ji=e=>tS(e)===Oo,Ku=e=>({...e,sectionAccent:e.sectionAccent??0}),Pae=(e,o)=>Ji(e)?Yo("background",(t,r)=>Tu(Ku(t),r))(e,o):{},Eae={name:"Stats with Text",skip:e=>tS(e)&&tS(e)!=="transparent"&&!Ji(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...X,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...qo,...Do(e,"StatsParagraph"),...Ji(e)?xn(Ku(e),o):{}}),box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ji(o)?la(e,Ku(o),t):e],...na("StatsParagraph")],site:(e,o)=>Ji(e.props)?ia({props:Ku(e.props)},o):[],parts:[ut("StatsParagraph"),{kind:"group",name:"Stats",props:{...O,...ht.table.grid,[Gs]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...O,direction:"row",share:"equal",phoneRow:2,...ht.table.row},props:(e,o)=>({...O,...ht.table.card,...Pae(e,o)}),parts:[{...oS,when:(e,o)=>!KF(o)&&oS.when(e,o)},{kind:"group",name:"Figure",props:ZF,when:(e,o)=>KF(o),parts:[oS,{kind:"text",key:"supSuffix",props:W,style:JF}]},{kind:"group",name:"Words",props:{...O,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:W,style:qF},fe("sub",XF)]}]}]}],drop:{...J,...se,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},Oae=new Set(["value","label",vt]),VF={top:48,bottom:48,topPhone:48,bottomPhone:48},_ae=e=>{let o=rr(typeof e.background=="string"?e.background:void 0,gn.Stats);return!!o&&o!=="transparent"},Aae={name:"Stats",skip:e=>_ae(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Ue(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Ue(o?.[vt]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!Oae.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...X,direction:"column",gap:24,gapPhone:24,...le(e,VF)}),box:[...te,...me(VF)],parts:[fe("heading",{color:"labels",...N("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...O,...ht.list.grid,[Gs]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>K(e.columns)??4,rowName:"Stats row",rowProps:{...O,direction:"row",share:"equal",phoneRow:2,...ht.list.row},props:{...O,...ht.list.card},parts:[{kind:"text",key:"value",props:mn,style:{textStyle:"heading-2",...N("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},fe("label",{color:"labels",...N("label",12),letterSpacing:.2})]}]}],drop:{...J,...se,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},QF={StatsParagraph:Eae,Stats:Aae};function eB(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var Rae=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function oB(){let e=(o,t,r,a="")=>({key:Tae("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",i("Years in business"),i("Privately held since day one. Same two founders.")),e("==_8_==",i("Operating footprint"),i("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),i("cities")),e("\u221221==_%_==",i("Avg. weight saving"),i("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",i("Finish steps"),i("Specified in California to a 14-step protocol. No two sets are identical."))]}function Lae(e){return{type:U,props:{...O,name:"Card",...structuredClone(ht[e].listCard)},slots:{[ee]:[{type:U,props:{...ZF,name:"Figure"},slots:{[ee]:[ae("figure",mn,YF),ae("superscript",W,JF)]}},{type:U,props:{...O,name:"Words",gap:4,gapPhone:4},slots:{[ee]:[ae("label",{...W,widthFit:"fill"},qF),ae("body",{...W,widthFit:"fill"},XF,!0)]}}]}}}function rS(e,o,t=4){return{type:U,props:{...O,name:"Stats",direction:"row",columns:t,...structuredClone(ht[o].items),[Gs]:o},slots:{[ee]:[{type:Fo,props:gc(e,Rae),slots:{[fo]:[Lae(o)]}}]}}}var tB={heading:"Trusted by *teams worldwide*"},rB=()=>[{src:"",alt:i("Logo one")},{src:"",alt:i("Logo two")},{src:"",alt:i("Logo three")},{src:"",alt:i("Logo four")},{src:"",alt:i("Logo five")}],Fae={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},m5e={label:"Logos",drawsPictures:!0,fields:Fae,defaultProps:{items:[],contained:!0}};var aB={heading:"Ways to pay"},nB=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],sB=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],I5e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};var y5e={left:"justify-start",center:"justify-center",right:"justify-end"},Bae={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},Dae={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},Nae={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},Mae={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Vu(e){return e==="left"||e==="center"||e==="right"?e:void 0}function lB(e){return e==="start"?"left":e==="end"?"right":Vu(e)}function Hae(e,o,t){let r=Vu(e)??"left",a=kt("same",r,Vu(o),Vu(t)),n={};return a.tablet&&a.tablet!==r&&(n.tablet=a.tablet),a.phone&&a.phone!==r&&(n.phone=a.phone),n}function S5e(e,o,t,r,{atSectionLine:a=!1}={}){let n=Hae(o,t,r),s=a?Nae:Bae,l=a?Mae:Dae;return[n.tablet?s[e][n.tablet]:"",n.phone?l[e][n.phone]:""].filter(Boolean).join(" ")}import{phoneKey as nS,readHidable as Wae}from"efficient-easel/draw";var sS={contained:!1},lS=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Ue(r?.src)||Ue(r?.[o])}]}]}),aS=e=>{let o=K(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Gae={...fe("heading",{color:"labels",letterSpacing:.2}),props:{...W,align:"center"}},zae={name:"Logos",boxProps:e=>({...X,direction:"column",gap:32,...le(e,aS(e))}),box:[...te,...me(aS),["bandPadding","sectionPaddingTop",(e,o)=>le(o,aS(o)).sectionPaddingTop]],parts:[Gae,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:sS,slots:lS("items","alt")}],drop:{...J,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},Uae={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:lc(4,"main",{sectionCorners:2})},iB={top:24,bottom:24,topPhone:24,bottomPhone:24},$ae={name:"Payment Methods",boxProps:e=>({...X,direction:"column",...le(e,iB)}),box:[...te,...me(iB)],parts:[{kind:"group",name:"Methods",props:{...O,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...fe("heading",{color:"labels"}),props:{...W,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[bo,pr],props:e=>Ue(e[bo])?{[bo]:e[bo],...e[pr]!==void 0?{[pr]:e[pr]}:{}}:{}},props:{...sS,look:"cards",grayscale:!1},slots:e=>({...lS("badges","label"),...Ue(e[bo])?{[fo]:[cc()]}:{}})},{kind:"group",name:"Reassurance",props:{...O,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[nS("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Ue(o?.text)),props:{...O,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[nS("share")]:"content"},item:e=>Wae(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Uae,{kind:"text",key:"text",props:{...W,align:"center"},style:{...N("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...J,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},jae={left:"start",center:"center",right:"end"},dB=e=>lB(e.align)??"left",cB=e=>e.size==="md"?"md":"sm",fB=12,pB={name:"Payment logos",boxProps:e=>({...O,direction:"row",wrap:!0,align:"center",justify:jae[dB(e)],gap:fB,gapPhone:fB,phoneRow:2,[nS("share")]:"content"}),parts:[{kind:"text",key:"lead",props:Y,styleFrom:e=>({size:Fs[cB(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[bo,pr],props:e=>({logoHeight:OL[cB(e)].mark,align:dB(e),...Ue(e[bo])?{[bo]:e[bo],...e[pr]!==void 0?{[pr]:e[pr]}:{}}:{}})},props:{...sS,look:"marks",grayscale:!1,sectionAccent:jt},slots:e=>({...lS("methods","label"),...Ue(e[bo])?{[fo]:[cc()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},uB={Logos:zae,PaymentBadges:$ae,FooterPayment:pB,PaymentLogosBlock:pB},mB=()=>({heading:tB.heading,items:rB()}),hB=()=>({heading:aB.heading,badges:nB(),assurances:sB()}),xB=()=>({...sf,methods:[]});import{mixHex as Vae}from"efficient-shell/format";var M5e="none",H5e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function IB(e){return e==="above"||e==="below"?e:null}var W5e="sf-ticker-join";function Kae(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function G5e(e){return`absolute inset-x-0 ${Kae(e)}`}var bn={direction:"row",share:"content",align:"center"},Qi={top:14,bottom:14,topPhone:12,bottomPhone:12},Yu={wrap:"nowrap",loop:"scroll",sectionAccent:wC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},gB={gap:120,gapPhone:64},qu={...yo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},bB={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},ed={top:16,bottom:16,topPhone:12,bottomPhone:12},od={justify:"between",wrap:"wrap",gap:32,separator:"none"},td={...yo,letterSpacing:.1,lineHeight:1.5};var yB=e=>e.size==="display",Yae=(e,o)=>{let t=vu(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Vae(t.text,t.background,.3):null;return r?{color:r}:{}},qae=(e,o)=>e.tone!=="plain"&&Kt(e.sectionAccent)===null?Yo("background")(e,o):{},SB=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:Y,style:e,styleFrom:Yae}]}),Xae={name:"Scrolling Bar",boxProps:(e,o)=>({...X,...bn,...Yu,...Vw[jm(e.separator)]===""?gB:{},...le(e,Qi),...qae(e,o)}),box:[["scrollDirection","scrollDirection",e=>SR(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>jm(e)],["join","join",e=>IB(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...te,["tone","sectionAccent",(e,o)=>Kt(o.sectionAccent)??jt],...me(Qi)],parts:[SB(qu,e=>!yB(e)),SB(bB,yB)],drop:{...J,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},wB=e=>e?.tone==="muted",CB=e=>Bd(fn(e)),Zae={name:"Spec Strip",boxProps:(e,o)=>({...X,...bn,...od,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:CB(o)},...le(e,ed)}),box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:CB(t)],...me(ed)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:W,style:td,when:(e,o)=>!wB(o)},{kind:"text",key:"text",props:Y,style:td,when:(e,o)=>wB(o)}]}],drop:{...J,...se,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},kB={Ticker:Xae,SpecStrip:Zae};import{jsxs as Sn,jsx as $e}from"react/jsx-runtime";import{Fragment as xS}from"react";import{Fragment as fne,jsx as fS}from"react/jsx-runtime";import{Fragment as EB,jsx as ad,jsxs as rne}from"react/jsx-runtime";import{createContext as cS,useContext as nd,useEffect as ane,useId as nne,useMemo as sne,useRef as lne}from"react";import{armEntrance as ine}from"efficient-shell/format";import{jsx as Jae}from"react/jsx-runtime";import{useEffect as TB,useRef as vB,useState as Qae}from"react";import{armEntrance as ene,entranceAttrs as one,playEntrance as tne}from"efficient-shell/format";function PB({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=vB(null),c=Ud(),f=Dr(),u=n?f:Hn,p=rd(d,!0,s),{attrs:h,style:I}=one(e[p]),g=vB(iS.seed(e)),T=JSON.stringify(e);return TB(()=>{let S=d.current;if(S){if(o){let C=iS.next(g.current,e,p);g.current=C.seen,C.play&&tne(S);return}return ene(S)}},[T,p,o]),u.scope(Jae("div",{ref:d,className:Nr(`${Nn}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:c.inner(l)}))}var iS={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=iS.seed(o);return{play:r[t]!==e[t],seen:r}}};function rd(e,o=!0,t=!1){let[r,a]=Qae("desktop"),n=zd()||t,{phone:s,tablet:l}=Xg(n);return TB(()=>{if(!o)return;let d=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!d?.matchMedia)return;let c=d.matchMedia(s),f=d.matchMedia(l),u=()=>a(c.matches?"phone":f.matches?"tablet":"desktop");return u(),c.addEventListener("change",u),f.addEventListener("change",u),()=>{c.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,l]),r}var Xu=cS(null),_B=cS(null),AB=cS(null);function g6e({needles:e,styles:o,motions:t=k1,type:r,atEdge:a=!1,children:n}){let s=nne(),l=zd()||a,d=JSON.stringify([s,e,o,t,r]),c=sne(()=>{let u=Object.keys(t).filter(p=>T1(t[p]));return W_(e,o,s,p=>Ti(r,p),p=>B_(r,p),p=>u.includes(p)?uy(t[p]):null,u)},[d]);if(!c)return ad(EB,{children:n});let f=G_(c,{inBox:l});return rne(EB,{children:[f&&ad("style",{href:`${dne}${s}-${cne(f)}`,precedence:LB,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),ad(Xu.Provider,{value:c,children:n})]})}var dS=new WeakMap;function OB(e,o){let t=my(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:my(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(_1(e.ownerDocument),e.setAttribute(Jp,"")):e.removeAttribute(Jp)}function RB(e){let o=lne(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=rd(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,d=JSON.stringify([s,l]);return ane(()=>{let c=o.current,f=O1(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let I=P1(f,s),g=ine(f);return()=>{g?.(),I()}}:null,p=dS.get(f)??[];dS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>E1(f,l):null,lift:a};return p.push(h),OB(f,p),()=>{let I=p.indexOf(h);I<0||(p.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,OB(f,p),p.length||dS.delete(f))}},[d,a]),o}var LB="sf-part-styles",dne=`${LB}-`;function cne(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function FB(e){let o=nd(Xu),t=nd(_B),r=z_(o,e);return r&&r.stamp!==t?r:null}function b6e(e){return qg(nd(Xu),e)}function BB({stamp:e,children:o}){return ad(_B.Provider,{value:e,children:o})}function y6e({children:e}){let o=nd(Xu);return ad(AB.Provider,{value:o,children:e})}function S6e(e){return qg(nd(AB),e)}function sd({value:e,children:o}){let t=FB(e),r=RB(t);return t?fS(BB,{stamp:t.stamp,children:fS("span",{ref:r,[Hg]:t.stamp,...t.textStyle?{[Is]:t.textStyle}:{},children:o})}):fS(fne,{children:o})}import{jsx as pS,Fragment as pne}from"react/jsx-runtime";function DB({className:e=""}){return pS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Zu(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(pS(DB,{},`r${a}`))}),pS(pne,{children:t})}var E6e=DB;import{jsx as yn}from"react/jsx-runtime";import{Component as xne,createContext as Ine,lazy as N6e,Suspense as M6e,useContext as gne,useSyncExternalStore as bne}from"react";var une="hrefRewrite";function mne(){return Vt("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function hne(){return typeof process<"u"&&!0}function A6e(e){let o=e?.[une];return typeof o=="string"?o.trim():""}function NB(e){if(!e)return null;let o=mne(),t=o.rewrites.get(e);return!t&&!hne()&&o.missed.add(e),t??null}var yne={Link:zC,Image:GC},MB=Ine(yne);function $6e({runtime:e,children:o}){return yn(MB.Provider,{value:e,children:o})}function mS(){return gne(MB)}function j6e(){return mS().pagePath??null}var Sne=()=>()=>{},wne=()=>Kd()||null,Cne=()=>null;function kne(){return bne(Sne,wne,Cne)}function HB({hrefRewrite:e,newTab:o,...t}){let{Link:r}=mS(),a=kne(),n=o===!0?{...t,...Ki}:o==="auto"?{...t,...lF(t.href,a)}:t,s=NB(e);return s?yn(uS,{name:s.name,href:n.href,fallback:yn(r,{...n}),children:yn(vne,{Link:r,rewrite:s.rewrite,...n})},s.key):yn(r,{...n})}function vne({Link:e,rewrite:o,...t}){let r=q(o(t.href)),a=r&&Tk(r)?r:t.href;return yn(e,{...t,href:a})}var uS=class extends xne{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function WB(e){let{Image:o}=mS();return yn(o,{...e})}function Or(e,o=!1,t){let r=Rne(o),a=Wn(e);if(a.length===1){let[s]=a,l=yh(s),d=l?_ne(l,s.children):s.children;return Sn(sd,{value:e,children:[t,Ju(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push($e("span",{"data-sf-bullet":"",className:Tne,children:Ju(s.children,r)},l));return}if(s.number!=null){n.push(Sn("span",{"data-sf-number":s.number,className:Pne,children:[Sn("span",{className:Ene,children:[s.number,"."]}),Ju(s.children,r)]},l));return}l>0&&!One(a[l-1])&&n.push($e("br",{},`br${l}`)),n.push($e(xS,{children:Ju(s.children,r)},l))}),Sn(sd,{value:e,children:[t,n]})}var Tne="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",Pne="relative block pl-[2em]",Ene="absolute left-0 w-[1.6em] text-right tabular-nums";function One(e){return e.bullet||e.number!=null}var GB="text-accent underline underline-offset-[0.18em]";function _ne(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Ane(e){return qn(e)||void 0}function Ju(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push($e("span",{children:Zu(a.text)},n)),r=!0;return}r||t.push($e("span",{},`e${n}`)),t.push(UB(a,n,o)),r=!1}),r||t.push($e("span",{},"end")),t}function hS(e,o){return e.length===1&&e[0].kind==="text"?Zu(e[0].text):e.map((t,r)=>t.kind==="text"?$e(xS,{children:Zu(t.text)},r):UB(t,r,o))}function Rne(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function tWe(e){return zB(e)}function zB(e,o){let t=e.split(`
383
- `);return Sn(sd,{value:e,children:[o,t.map((r,a)=>Sn(xS,{children:[a>0?$e("br",{}):null,$e("span",{children:r})]},a))]})}function UB(e,o,t){if(e.kind==="link")return Ou(e.href)?$e(HB,{newTab:"auto",href:e.href,className:GB,children:hS(e.children,t)},o):$e("a",{href:e.href,className:GB,children:hS(e.children,t)},o);let r=hS(e.children,t),a=Ck[e.kind];if(a)return $e("span",{[kk]:a,children:r},o);switch(e.kind){case"underline":return $e("u",{children:r},o);case"sup":return $e("sup",{children:r},o);case"sub":return $e("sub",{children:r},o);case"color":{let n=Ane(e.color);return n?$e("span",{style:{color:n},children:r},o):$e("span",{children:r},o)}case"accent":case"highlight":return $e("em",{className:t,children:r},o);case"bold":return $e("strong",{className:"font-semibold",children:r},o);case"italic":return $e("em",{className:"italic",children:r},o);case"strike":return $e("s",{className:"line-through",children:r},o);default:return $e("span",{children:r},o)}}function rWe(e,o=!0,t=!1){let r=e.split(`
384
- `);return $e(sd,{value:e,children:r.map((a,n)=>Sn("span",{children:[t?zB(a):Or(a,o),n<r.length-1?$e("br",{}):null]},n))})}function $B(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{tabletKey as jB}from"efficient-easel/screen/lib/content/view-tiers";var KB={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[jB("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[jB("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},IS={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Lne}from"efficient-easel/draw";var Qe={text:"Button label",href:"#"},lr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Fe={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var Qu={eyebrow:Fe.eyebrow,title:`Section heading
385
- *Highlight line*`,intro:Fe.body,imageCaption:Fe.imageCaption,imageMeta:Fe.imageMeta,cta:Qe.text},VB=()=>[{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")}],cWe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var em={eyebrow:Fe.eyebrow,title:Fe.headingAccent,intro:Fe.body,cta:Qe.text},YB=()=>[{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year \u2192"),title:i("Upcoming"),blurb:i("A milestone still to come."),future:!0}],hWe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Vl,padTop:120,padBottom:120}};var eD={buttonBorder:{width:0}},rm=(e,o,t={})=>({textStyle:"body-5",...N("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),zs=(e,o,t={})=>({...rm(e,o),...yo,...t}),am=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ld=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),xt=(e,o,t={})=>({kind:"text",key:e,props:W,style:o,...t}),qB=(e,o)=>o?.future===!0,om=e=>$B(typeof e?.body=="string"?e.body:""),wS=e=>rr(typeof e.background=="string"?e.background:void 0,gn.TimelineTrack),gS=e=>wS(e)===Oo?e:{...e,background:"transparent"},Fne={name:"Milestone Timeline",skip:e=>Eu(wS(e)),boxProps:(e,o)=>{let t=sa(gS(e),o);return{...X,direction:"column",gap:60,[Lne("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...qo,...Do(e,"TimelineTrack"),...Pu(wS(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>la(e,gS(o),t)],...na("TimelineTrack")],parts:[Vy(Wu(Nu("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...O,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...O,direction:"row",share:"equal",gap:0,line:!0,...qo},parts:[{kind:"list",key:"entries",name:"Year",props:{...O,...KB},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:IS.name,props:{...O,...IS},parts:[xt("date",rm(13,.22,{color:"accent"}),{when:(e,o)=>!qB(e,o)}),xt("date",rm(13,.22,{color:"labels"}),{when:qB}),xt("title",{textStyle:"heading-3",...am(N("headingSmall",20),-.02,1.1)},{role:"heading"})]},xt("blurb",ld(N("body",13),1.55),{props:Y,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...O,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...xo,align:"right",...eD},style:zs(13,.3)}]}]}],site:(e,o)=>ia({props:gS(e.props)},o),drop:{...J,...se,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},kS=e=>typeof e.layout=="string"?e.layout:"split",tm=e=>kS(e)==="split",CS=e=>!tm(e),oD=e=>kS(e)==="spine",Bne=e=>CS(e)&&!oD(e),XB=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...O,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Ne(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...O,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[xt("imageCaption",zs(11,.24,{color:"text"})),xt("imageMeta",zs(11,.24,{color:"accent"}),{props:{...W,align:"right"}})]}]}),ZB=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...xo,...e,...eD},style:zs(13,.3)}),bS=()=>[xt("title",{textStyle:"heading-3",...am(N("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...W,_partStyles:{text:ld(N("body",17,16),1.6)}},box:[["body","text",(e,o)=>Sa(om(o)[0]??"")]],when:(e,o)=>om(o).length>0},{kind:"block",type:"Text",props:{...Y,_partStyles:{text:ld(N("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Sa(om(o).slice(1).join(`
386
-
387
- `))]],when:(e,o)=>om(o).length>1}],yS=()=>xt("date",rm(13,.24,{color:"accent"})),SS=(e,o,t={})=>xt(e,o,{...t,props:{...W,...t.props??{},align:"center"}}),JB=Xo("headingMedium",40,5,76),QB={sectionBorder:{bottom:1}},Dne={name:"Story Timeline",skip:e=>kS(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>tm(e)?{...X,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...QB,...Do(e,"Timeline")}:{...X,direction:"column",gap:48,gapPhone:48,align:"center",...QB,...Do(e,"Timeline")},box:[...te,...na("Timeline")],parts:[{kind:"group",name:"Heading",props:{...O,gap:24,gapPhone:24},when:tm,parts:[xt("eyebrow",zs(12,.3,{color:"accent"}),{role:"eyebrow"}),xt("title",{textStyle:"heading-2",...am(JB,-.03,.94)},{role:"heading",mark:"accentItalic"}),xt("intro",ld(N("body",14),1.6),{props:{...Y,maxWidth:360},mark:"accentItalic"}),XB(667,419,{},()=>!0),ZB()]},{kind:"group",name:"Chapters",props:{...O,gap:48,gapPhone:48,line:!1},when:tm,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...O,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[yS(),{kind:"group",name:"Words",props:{...O,gap:14,gapPhone:14},parts:bS()}]}]},{kind:"group",name:"Heading",props:{...O,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:CS,parts:[SS("eyebrow",zs(12,.3,{color:"accent"}),{role:"eyebrow"}),SS("title",{textStyle:"heading-2",...am(JB,-.03,.94)},{role:"heading",mark:"accentItalic"}),SS("intro",ld(N("body",14),1.6),{props:{...Y,maxWidth:520},mark:"accentItalic"}),ZB({align:"center"})]},XB(506,192,{maxWidth:900,widthFit:"fill"},CS),{kind:"group",name:"Chapters",props:{...O,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:oD,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...O,gap:8,gapPhone:8},parts:[yS(),{kind:"group",name:"Words",props:{...O,gap:14,gapPhone:14},parts:bS()}]}]},{kind:"group",name:"Chapters",props:{...O,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Bne,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...O,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...O,gap:8,gapPhone:8},parts:[yS(),{kind:"group",name:"Words",props:{...O,gap:14,gapPhone:14},parts:bS()}]},{kind:"group",name:"Spacer",props:{...O},keepEmpty:!0,parts:[]}]}]}],drop:{...J,...se,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},tD=()=>({eyebrow:Qu.eyebrow,title:lr(Qu.title),intro:Qu.intro,ctaText:Qe.text,ctaHref:Qe.href,entries:VB()}),rD=()=>({eyebrow:em.eyebrow,title:lr(em.title),intro:em.intro,ctaText:Qe.text,ctaHref:Qe.href,entries:YB()}),aD={TimelineTrack:Fne,Timeline:Dne};import{tabletKey as Gne}from"efficient-easel/draw";import{rootIsDark as Nne}from"efficient-shell/format";function AWe(e="auto"){return e==="light"?!0:e==="dark"?!1:!Nne({whenUnset:!0})}function nD(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function vS(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var Mne=["tall","square","wide"],Hne="tall";function sD(e){return Mne.includes(String(e??""))?String(e):Hne}var FWe={sectionNumber:"\xB7 Locations",heading:"Our *locations.*",tagline:"Visit us in person \u2014 find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour \xB7 click to jump",mapTheme:"auto"},BWe=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
388
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
389
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],Wne=/^https?:\/\//i;function DWe(e){let o=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:vS(e.lat),lng:vS(e.lng),mapsUrl:Wne.test(o)?o:""}}function TS(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var NWe="other",MWe={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function lD(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var It=e=>typeof e=="string"?e:e==null?"":String(e),ES=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Us=e=>It(e.group),xD=e=>`loc-${e}`,ID=e=>It(e.state).trim()||TS(It(e.region)).state,gD=e=>It(e.country).trim()||TS(It(e.region)).country,iD=e=>[ID(e),gD(e)].filter(Boolean).join(" \xB7 "),zne=e=>ES(e).some(o=>It(o.photo).trim()!==""),Une=e=>ES(e).some(o=>nD(Number(o.lat),Number(o.lng))),$ne=(e,o)=>ES(e).filter(t=>Us(t)===Us(o)).length,jne=(e,o)=>$ne(e,o)===1?"wide":sD(e.imageShape),PS={top:100,bottom:100,topPhone:60,bottomPhone:60},dD=48,Ht=(e,o={})=>({...Tt(e),...o}),OS={top:1,right:1,bottom:1,left:1},_S={...O,direction:"row",share:"equal",gap:0},Kne=e=>o=>o>Di(o)?{...O,gap:0}:{..._S,...o>1?{phoneRow:e}:{}},Vne={kind:"group",name:"Gallery",props:{...O,gap:20,_hidden:!0},when:zne,parts:[{kind:"group",name:"Gallery head",props:{...O,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[fe("galleryKicker",Ht(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...Y,align:"right",alignPhone:"left"},style:Ht(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...O,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...O,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:OS,...Ne(12,12)},item:(e,o,t)=>({props:{...It(e.photo).trim()?{bgImage:It(e.photo),hover:"mono"}:{},link:`#${xD(o)}`,boxShape:jne(t,e)}}),parts:[{kind:"text",key:"name",props:W,style:Ht(11,{letterSpacing:.22,color:"text"})}],groups:{of:Us,name:"Group",props:{...O,gap:10},head:e=>({label:Us(e[0]??{})}),parts:[fe("label",Ht(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Kne(2),perRow:Di,rowName:"Row",rowProps:{..._S,phoneRow:2}}}]}]},Yne={kind:"group",name:"Words",props:{...O,gap:12,gapPhone:12,...Ne(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...O,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...O,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:W,style:{textStyle:"heading-3",...N("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...W,_partStyles:{text:Ht(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>iD(t)]),when:(e,o)=>iD(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...O,sectionBorder:OS,...Ne(6,10)},parts:[{kind:"text",key:"timezone",props:{...Y,textFit:"line"},style:Ht(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:Y,style:{textStyle:"body-5",fontRole:"heading",...N("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...xo,...hn,variant:"ghost",arrow:!1,_partStyles:{label:Ht(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>lD(It(e))??"#"]],when:(e,o)=>It(o?.phone).trim()!==""},{kind:"text",key:"hours",props:Y,style:Ht(12,{letterSpacing:.18,lineHeight:1.7})}]},qne={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>ID(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>gD(t)])]},Xne={kind:"group",name:"Map",props:{...O,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[qne]},Zne={kind:"list",key:"locations",name:"City",props:(e,o)=>({...O,gap:0,justify:"between",sectionBorder:OS,jumpHighlight:!0,sectionAccent:sa(e,o)>=0?Ms(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:xD(o)}}),parts:[Yne,Xne],groups:{of:Us,name:"Group",props:{...O,gap:20},head:e=>{let o=e[0]??{};return{key:Us(o),groupName:It(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...O,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>It(o?.key).trim()!=="",parts:[fe("key",Ht(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:W,style:{textStyle:"heading-3",...N("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:Y,style:Ht(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({..._S,columns:Di(e),[Gne("columns")]:1})}},cD=Ht(10,{letterSpacing:.25}),Jne={kind:"block",type:nr,props:{...O,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Une,slot:sr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...Y,text:"Location coordinates \xA9",_partStyles:{text:cD}}},{kind:"block",type:"ButtonBlock",props:{...xo,...hn,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...cD,color:"labels"}}}}]},fD=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),pD=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],uD=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],mD=e=>e.map(o=>[o,o,(t,r)=>le(r,PS)[o]]),hD=["sectionAccent","sectionAccent",la],Qne=["gridSpan",...Zn,...Object.values(po)],ese={name:"City pictures",skip:e=>ro(e)?`fed by the data source "${ro(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...X,direction:"column",gap:40,anchor:"studios",...qo,...fD(le(e,PS),pD),sectionPaddingBottom:dD,sectionPaddingBottomPhone:dD,...xn(e,o)}),box:[...te.filter(e=>e!=="sectionAccent"&&e!=="anchor"),hD,["anchor","anchor",e=>Ol(e).trim()?e:"studios"],...mD(pD)],parts:[Nu("sectionNumber","heading","tagline"),Vne],also:[{name:"City maps",boxProps:(e,o)=>({...X,direction:"column",gap:40,sectionBorder:{bottom:1},...qo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...fD(le(e,PS),uD),...xn(e,o)}),box:[...Qne,hD,...mD(uD)],parts:[Zne,Jne]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ia,drop:{...J,...se,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},bD={ContactLocations:ese};import{SITE_SIDE as SD}from"efficient-easel/screen/lib/content/length-units";var nm="boxes",AS=3,RS=()=>({type:U,props:{direction:"column"},slots:{[ee]:[{type:"ImageBlock"},{type:U,props:{direction:"column"},slots:{[ee]:[{type:"Text",props:Gr()},{type:"Text"}]}}]}}),yD=()=>Array.from({length:AS},RS);var ose=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"];var da=(e,o)=>()=>({top:e,topPhone:o}),wD=e=>o=>{let t=Do(o,e).sectionPaddingTop;return{top:t,topPhone:t}},tse={Collections:da(120,70),Events:da(120,70),FAQ:da(120,70),GalleryB:da(120,70),FitmentTable:da(120,80),SpecTable:da(120,80),LongRead:da(120,80),RelatedProducts:da(0,0),Footprint:wD("Footprint"),ProcessSteps:wD("ProcessSteps"),ProductGrid:e=>({top:K(e.padTop)??120,topPhone:0})};function rse(e,o={}){let t=Lo[e],r=tse[e];if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=ut(e),s=Gu(e),l=t.headRows.filter(c=>![t.num,t.title,t.description,"linkText","linkHref"].includes(c)),d={...Object.fromEntries(l.filter(c=>!(c in s)).map(c=>[c,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:Jd[e]??e,boxProps:(c,f)=>{let u=r(c),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(c,f):o.boxProps??{},I=In(e)==="editorial"?qo:{};return{...X,direction:"column",gap:Vi[In(e)],sectionPaddingTop:u.top,sectionPaddingTopPhone:u.topPhone,...I,...p,...h}},box:[...te,...a?[[a,"sectionPaddingTop",(c,f)=>r(f).top]]:[]],parts:[n,...(()=>{let c={...a?{[a]:0}:{},...o.coreProps},f={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[f]}:f]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var ase={...O,direction:"accordion",rowStyle:"numbered"},nse={sectionPaddingLeft:SD,sectionPaddingRight:SD},sse={Footprint:{slots:{[fo]:[hv()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[nm]:yD().map(t=>({...t,props:{...t.props,...nse}}))}:{},boxProps:{gapPhone:Vi.editorial}},FAQ:{slots:{[fo]:[zh()]},pressHeading:!0,coreBox:{name:"Questions",props:ase},coreProps:{sectionAccent:jt},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[VL]:pn},skip:e=>{let o=e._partStyles??{},t=cv().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},CD=Object.fromEntries(ose.map(e=>[e,rse(e,sse[e])]));import{BLOCK_WIDTH_LIMIT as ise}from"efficient-easel/draw";var sm={eyebrow:Fe.eyebrow,title:Fe.headingAccent,deck:"Add a sentence or two introducing this document."},b3e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var LS="titleLevel",lse=e=>e===2?"h2":"h1",FS=e=>lse(e?.[LS])==="h2";var AD={minWidth:ise.min},kD=(e,o,t)=>({...fe(e,{...o,...Wi}),props:{...W,align:"right",...un,...t}}),RD={top:1,bottom:0},DS=(e,o,t,r)=>({kind:"group",name:e,props:{...O,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),vD={widthFit:"fill",...AD},TD={top:100,bottom:60,topPhone:60,bottomPhone:40},dse={...N("label",13),letterSpacing:.22,lineHeight:1.8},PD={textStyle:"heading-1",...Xo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},cse=()=>({name:"Page Header",boxProps:e=>({...X,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,TD)}),box:[...te,...me(TD)],parts:[{kind:"group",name:"Header",props:{...O,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[DS("Eyebrow",12,0,{...fe("eyebrow",N("label",13)),props:{...W,...un}}),{kind:"text",key:"title",role:"heading",props:{...W,tag:"h1",...vD},style:PD,mark:"accentItalic",when:e=>!FS(e)},{kind:"text",key:"title",role:"heading",props:{...W,tag:"h2",...vD},style:PD,mark:"accentItalic",when:FS},{kind:"group",name:"Details",props:{...O,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Gi("label","value",dse,un)]}]}]},{kind:"group",name:"Deck",props:{...O,maxWidth:760,sectionBorder:RD,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:Y,style:{textStyle:"body-1",fontRole:"accent",...N("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...J,...se,[LS]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),LD=()=>({eyebrow:sm.eyebrow,title:lr(sm.title),deck:sm.deck,meta:[{label:Fe.label,value:Fe.value},{label:Fe.label,value:Fe.value}]}),ED={top:80,bottom:40,topPhone:60,bottomPhone:32},fse={...N("label",13),letterSpacing:.18,lineHeight:1.8},OD={...N("label",13),letterSpacing:.22,lineHeight:1.9},pse=()=>({name:"Issue Header",boxProps:e=>({...X,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,ED)}),box:[...te,...me(ED)],parts:[{kind:"group",name:"Top",props:{...O,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[DS("Eyebrow",14,14,fe("eyebrow",N("label",14))),{kind:"group",name:"Issue",props:{...O,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Gi("lead","rest",fse)]}]}]},{kind:"group",name:"Bottom",props:{...O,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:RD,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...W,maxWidth:720,...AD},style:{textStyle:"body-1",fontRole:"heading3",...N("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...O,align:"stretch",gap:0},parts:[DS("Heading",6,6,{kind:"text",key:"issueHeading",props:{...W,align:"right",...un},style:{textStyle:"body-1",fontRole:"heading",...N("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Wi}}),{kind:"group",name:"Lines",props:{...O,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[kD("text",{color:"labels",...OD})]}]},kD("issueTotal",OD)]}]}],drop:{...J,...se}}),_D={top:24,bottom:24,topPhone:16,bottomPhone:16},BS={color:"labels",...N("label",13),letterSpacing:.2},FD=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),NS=(e,o)=>o!==void 0&&FD(e).at(-1)===o,BD=(e,o)=>o!==void 0&&FD(e).includes(o),use=(e,o)=>BD(e,o)&&!NS(e,o)&&Ue(o?.href),mse=()=>({name:"Breadcrumb",skip:e=>Ue(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...X,...bn,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...le(e,_D)}),box:[...te,...me(_D)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:use,props:{...xo,...hn,icon:"none"},style:BS},{...fe("label",BS),when:(e,o)=>BD(e,o)&&!NS(e,o)&&!Ue(o?.href)},{...fe("label",{...BS,color:"text"}),when:NS}]}],drop:{...J,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),DD={DocMasthead:cse(),Masthead:pse(),Breadcrumb:mse()};import{BLOCK_WIDTH_LIMIT as xse,hiddenKeyOf as Ise}from"efficient-easel/draw";import{readHidable as MS}from"efficient-easel/draw";function hse(e,o,t){return e||(t?.isEditing?i(o):void 0)}function F3e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function ND(e,o,t){let r=MS(e);if(!r.hidden)return hse(r.text,o,t)}function MD(e){if(e==null)return;let o=MS(e);return o.hidden?"":o.text}function B3e(e,o,t){return MS(e).hidden?"":ND(e,o,t)}function D3e(e,o,t){return{text:ND(e,Qe.text,t),href:o||Qe.href}}var zD="MenuBlock",HS=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Ue(o.label)),HD=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(MD(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},WD={top:0,bottom:0,topPhone:0,bottomPhone:0},gse={...yo,color:"labels",...N("label",12),letterSpacing:.24},bse={kind:"group",name:"Note",props:{...O,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Ise("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>HD(e)!=="",props:e=>({...W,textFit:"line",text:HD(e),[ai]:{text:gse}})}]},UD=()=>({tabs:[],metaLabel:Fe.label,metaValue:Fe.value}),GD="the note Text inside the Box (the label, then the value in the accent); no words, no Text",$D={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:xse.min},jD=e=>({...e,boxProps:o=>({...X,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Na]:0,[Ul]:!0,sectionBorder:{bottom:1},...le(o,WD)}),box:[...te,...me(WD)]}),yse=()=>jD({name:"Tab Bar",skip:e=>HS(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:GD,metaValue:GD},parts:[{kind:"block",type:zD,props:$D},bse],drop:{...J,...se,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),Sse=()=>jD({name:"Category Bar",skip:e=>{if(HS(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(HS(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:zD,props:{...$D,[bo]:dk}}],drop:{...J,...se,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),KD={DocTabs:yse(),CategoryBar:Sse()};import{jsx as wn,jsxs as GS}from"react/jsx-runtime";import{slugify as wse}from"efficient-shell/format";import{jsx as WS,jsxs as VD}from"react/jsx-runtime";var Y3e="sticky top-[120px]";var YD=(e,o)=>e?{[pc]:o}:{},qD=(e,o)=>uc(e?.[xl(o)]?.role,ru[o],Rn),XD=120;function ZD({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=gg,takesViewHide:l=!1}){let d=s==="plain",c=Dr(),f=l?c:Hn;return f.scope(VD("aside",{className:Nr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&WS("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Or(e)}),o.map((u,p)=>{let h=WS("span",{...YD(a,"number"),style:qD(n,"number"),className:"text-accent",children:Xf(s,p)});return VD("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${p===0?" border-t":""}`,children:[d&&h,WS("span",{...YD(a,"entry"),style:qD(n,"entry"),children:Or(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function Cse(e,o){return wse(e)||`section-${o+1}`}var zS=e=>typeof e=="string"&&e.trim()!=="";function US(e){return(e??[]).filter(o=>zS(o.heading)||zS(o.label)||zS(o.body))}function $S(e){let o=new Set;return e.map((t,r)=>{let a=Cse(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function jS(e){let o=[];for(let t of e.replace(/\r\n?/g,`
390
- `).split(/\n[ \t]*\n/))t.split(`
391
- `).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=Wn(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let d=r.slice(2);!l&&s?.type==="ul"?s.items.push(d):o.push({type:"ul",items:[d]})}else!l&&s?.type==="p"?s.text+=`
392
- ${r}`:o.push({type:"p",text:r})});return o}var kse=()=>[{label:i("First section"),heading:i("Your *first* section."),body:i(`Write the opening paragraph here.
393
-
394
- - Start a line with a dash for a bullet.
395
- - Add as many as you like.`)},{label:i("Second section"),heading:i("Your *second* section."),body:i("Leave a blank line between paragraphs to start a new one.")}],vse=XD;function uGe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=vse}){let a=US(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?kse():a,s=$S(n);return wn($d,{as:"section",className:"relative z-[2] bg-bg",children:GS("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[wn(ZD,{title:e,entries:n.map((l,d)=>({label:l.label||"Section",anchor:s[d]})),stickyTop:r}),wn("div",{className:"flex flex-col gap-16",children:n.map((l,d)=>GS("article",{id:s[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[GS("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Ig(d)," \xB7 ",Or(l.label||"Section")]}),l.heading&&wn("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Or(l.heading)}),jS(l.body??"").map((c,f)=>c.type==="ul"?wn("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:c.items.map((u,p)=>wn("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Or(u)},p))},f):wn("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Or(c.text)},f))]},s[d]))})]})})}var JD={top:80,bottom:80,topPhone:60,bottomPhone:60},QD=18,eN=18,oN=8,Tse=10,KS=e=>typeof e=="string"&&e.trim()!=="",tN=e=>US(e.sections),Pse=e=>jS(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
396
- `)}:{kind:"p",text:o.text}),VS={...Tt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},rN={textStyle:"body-1",fontRole:"accent",...N("body",17)},Ese=[fe("label",VS),{...fe("title",VS),when:(e,o)=>!KS(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!KS(o?.label)&&!KS(o?.title),props:{...W,text:"Section",_partStyles:{text:VS}}},{kind:"group",name:"Heading",props:{...O,sectionPaddingBottom:oN,sectionPaddingBottomPhone:oN},parts:[{kind:"group",name:"Heading line",props:{...O,sectionBorder:{bottom:1},sectionPaddingBottom:eN,sectionPaddingBottomPhone:eN},parts:[{kind:"text",key:"heading",role:"heading",props:W,style:{textStyle:"heading-2",...Xo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Pse,parts:[{kind:"text",key:"text",props:Y,style:{...rN,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:Y,style:{...rN,lineHeight:1.65,paragraphSpacing:Tse},when:(e,o)=>o?.kind==="ul"}]}],Ose=900,_se={name:"Document Text",boxProps:e=>({...X,direction:"row",gap:80,gapPhone:40,[Bu]:Ose,sectionBorder:{bottom:1},...le(e,JD)}),box:["anchor","sectionAccent",...Zn,...Object.values(po),...me(JD)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...O,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>tN(e),props:{...O,gap:QD,gapPhone:QD},item:(e,o,t)=>({props:{anchor:$S(tN(t))[o]??`section-${o+1}`}}),parts:Ese}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...J,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},aN={DocBody:_se};import{phoneKey as Lse}from"efficient-easel/draw";import{SITE_SIDE as Fse}from"efficient-easel/screen/lib/content/length-units";var kGe="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",Ase="overlay",Rse=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function nN(e){return to(Rse,Ase,e)}var vGe={desktop:40,mobile:45,min:20,max:80,step:5};function TGe(e,o){return`${typeof e=="number"?e:o}%`}var sN=(e,o)=>{let t=K(e),r=K(o);return{...t===void 0?{}:{size:t},...r===void 0?{}:{sizePhone:r}}},Bse=e=>nN(e.layout)==="stacked",lN=e=>Math.min(Math.max(K(e.overlay)??60,0),100),lm=e=>K(e)??100,Dse={textStyle:"heading-1",sizeToken:{...Xo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},Nse=[fe("eyebrow",N("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:W,style:{...Dse,case:e?"upper":"none"},styleFrom:o=>sN(o.titleSizeDesktop,o.titleSizeMobile),when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...Y,maxWidth:560},style:{textStyle:"body-1",...N("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>sN(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...O,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:xo}]}],iN=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,Mse=()=>({name:"Scroll-Over Text",skip:e=>Bse(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...X,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...Ui,placement:"left",darken:lN(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:lm(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:lm(e.heightMobile)}),box:[...te.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>lN(o)],["heightDesktop","sectionHeightValue",e=>lm(e)],["heightMobile","sectionHeightValuePhone",e=>lm(e)]],parts:Nse,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:iN("Button color"),buttonTextColor:iN("Button text color"),...J}}),fN={textStyle:"heading-2",...N("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},Hse={textStyle:"body-1",...N("body",16),lineHeight:1.7},pN=e=>({kind:"text",key:"body",props:{...Y,maxWidth:520},style:{...Hse,paragraphSpacing:e}}),dm={top:0,bottom:0,topPhone:0,bottomPhone:0},YS=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},Wse=(e,o)=>{let t=YS(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},uN={boxShapePhone:"landscape"},mN="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",Gse=(e,o)=>({[e]:o,[Lse(e)]:o}),zse={textStyle:"heading-2",...N("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},dN=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),Use=()=>({name:"Brand Text",boxProps:(e,o)=>({...X,...Yo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,dm),...YS(e,100)}),box:[...te,...me(dm)],parts:[{kind:"group",name:"Words",props:()=>({...O,justify:"center",gap:28,gapPhone:28,sectionBorder:$i({right:1}),sectionBorderPhone:$i({}),...Ui,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Fse}),parts:[fe("eyebrow",N("label",14)),{kind:"text",key:"heading",role:"heading",props:W,style:{...fN,case:"none"},mark:"accentItalic"},pN(28),{kind:"group",name:"Stats",props:{...O,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...O,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(dN(e).length,1),3),...Gse("sectionBorder",$i({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:dN,props:{...O,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:mn,style:zse},fe("label",{...N("label",13),color:"labels",letterSpacing:.2})]}]}]}]},Hy("Picture","imageSrc",uN)],drop:{...J,grayscale:mN,...se}}),im=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},$se=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",jse=e=>Math.min(Math.max(K(e.overlay)??60,0),100),hN=e=>typeof e=="string"&&e.trim()!=="",Kse={...xo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},cN=e=>({...Hy("Picture","imageSrc",(o,t)=>({...hN(o.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...uN,sectionBorder:$i(e?{left:1}:{right:1}),...xN(e?"left":"right",zi(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Kse,style:{...Tt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),xN=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Vse={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...O,justify:"center",align:$se(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Wse(e,72),gap:24,gapPhone:24,...hN(e.textBgSrc)?{darken:jse(e),darkenStyle:"even"}:{},...Ui,sectionPaddingTop:100,sectionPaddingBottom:100,...xN(t?"right":"left",zi(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...fe("eyebrow",N("label",14)),styleFrom:im},{kind:"text",key:"title",role:"heading",props:W,style:fN,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...im(e)})},{...pN(24),styleFrom:im},{kind:"group",name:"Button",props:{...O,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=im(e);return{...xo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Yse=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...X,...Yo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,dm),...YS(e,72)}),box:[...te,...me(dm)],parts:[cN(!1),Vse,cN(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:mN,...J,...se}}),IN={IntroBleed:Mse(),Manifesto:Use(),Split:Yse()};var yN={headPlacement:void 0},gN={top:0,bottom:0,topPhone:0,bottomPhone:0},qse=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...X,direction:"column",...le(e,gN)}),box:[...te,...me(gN)],parts:[{kind:"core",keep:"rest",props:yN}],drop:{...J,...se}}),bN={top:120,bottom:120,topPhone:60,bottomPhone:60},Xse=()=>({name:"Photo Submission Form",boxProps:e=>({...X,direction:"column",gap:24,...le(e,bN)}),box:[...te,...me(bN)],parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:W,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:Y},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:yN}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...J,...se,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),SN={Form:qse(),SubmitBuild:Xse()};import{phoneKey as wN}from"efficient-easel/draw";var kN=1.5,CN={textStyle:"body-1",...N("body",15),lineHeight:kN},Zse={...yo,...N("label",12),letterSpacing:.12,lineHeight:kN},vN=()=>({type:U,props:{...O,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[wN("share")]:"content",[wN("wrap")]:"nowrap",...Ne(12,0),sectionBorder:{top:1},name:"Item"},slots:{[ee]:[{type:U,props:{...O,gap:0,gapPhone:0,name:"Item words"},slots:{[ee]:[ae("label",{...W,tag:"p"},CN),ae("meta",{...Y,tag:"p"},Zse)]}},ae("amount",{...W,tag:"p"},CN)]}});var Jse=()=>({name:"Order Table",boxProps:()=>({...X,direction:"column"}),box:[...te],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[fo]:[vN()]}}],drop:{...J}}),TN={OrderSummary:Jse()};import{phoneKey as Qse}from"efficient-easel/draw";var VGe={eyebrow:"By the numbers",title:`A picture worth
397
- *a thousand rows.*`},PN=["eyebrow","title","body","caption"],YGe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var EN=["eyebrow","title","body"],XGe={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};var AN={top:76,bottom:76,topPhone:76,bottomPhone:76},RN=()=>({kind:"group",name:"Words",props:{...O,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...O,direction:"row",phoneRow:2,[Qse("share")]:"content"},parts:[ku("eyebrow")]},{kind:"text",key:"title",role:"heading",props:W,style:{textStyle:"heading-2",...N("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...Y,maxWidth:435},style:{textStyle:"body-1",...N("body",15),lineHeight:1.625}}]}),LN=e=>(o,t)=>({...X,sectionAccent:My(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...le(o,AN)}),FN=[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>My(e,t)],...me(AN)],ele=()=>({name:"Chart",boxProps:LN([42]),box:FN,parts:[RN(),{kind:"group",name:"Chart",props:{...O,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Ns},fe("caption",{color:"muted",...N("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...PN],drop:{...J,...se}}),ON=e=>e.align==="left",_N={kind:"group",name:"Card",keepEmpty:!0,props:O,parts:[{kind:"core",keep:"rest",props:Ns}]},ole=()=>({name:"Mockup Card",boxProps:LN("equal"),box:FN,parts:[{..._N,when:ON},RN(),{..._N,when:e=>!ON(e)}],pressKeepsEmpty:[...EN],drop:{...J,...se}}),BN={Chart:ele(),Mockup:ole()};var tle={title:"Back online in",zeroText:"Almost done. Back very soon."},DN=["title"],aze={label:"Countdown",defaultProps:{...tle,endsAt:"",showUnits:!0}};var NN={top:48,bottom:48,topPhone:48,bottomPhone:48},rle={...fe("title",{...fl(12),color:"muted"}),props:{...W,align:"center"}},ale=()=>({name:"Countdown",boxProps:e=>({...X,direction:"column",align:"center",gap:16,gapPhone:16,...le(e,NN)}),box:[...te,...me(NN)],parts:[rle,{kind:"core",keep:"rest",props:Ns}],pressKeepsEmpty:[...DN],drop:{...J,...se}}),MN={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},nle=()=>({name:"Feature Banner",boxProps:e=>({...X,direction:"column",sectionBorder:{bottom:1},...le(e,MN)}),box:[...te,...me(MN)],parts:[{kind:"core",keep:"rest",props:Ns}],drop:{...J,...se}}),HN={Countdown:ale(),FeaturedCover:nle()};var WN={top:80,bottom:80,topPhone:60,bottomPhone:60},sle=()=>{let e=Gu("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...X,direction:"column",gap:Vi[In("FitmentFinder")],...le(o,WN)}),box:[...te,...me(WN)],parts:[ut("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...J,...se,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},GN={FitmentFinder:sle()};var cm={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},uze={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var id={eyebrow:Fe.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},xze={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var zN={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},gze={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var UN={title:`Section heading
398
- *Highlight line*`},$N=[{label:Qe.text,href:Qe.href,variant:"primary"},{label:Qe.text,href:Qe.href,variant:"outline"}],Sze={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var qS="solid",lle=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function kze(e){return to(lle,qS,e)}var ile="sf-secnum-outline",vze="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",Tze=`@supports (-webkit-text-stroke: 1px currentColor){.${ile}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var fm="standard",YN=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ZS=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],XS=[...ZS,"description"],jN={standard:["eyebrowLook"],editorial:[...ZS,"eyebrowLook"],simple:XS,statement:XS,natural:ZS,essay:XS},KN=["gap-5","gap-3"],VN=["text-[length:var(--size-body,16px)]","text-[15px]"];function _ze(e){return to(KN,KN[0],e)}function Aze(e){return to(VN,VN[0],e)}function Rze(e){return to(YN,fm,e)}function Lze(e){let o=YN.map(r=>r.value),t=[...new Set(Object.values(jN).flat())];return va(e,t.map(r=>[[r],Wh("headStyle",o,fm,o.filter(a=>!jN[a].includes(r)))]))}var _r={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Fe.viewAll},Mze={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:fm,num:_r.num,numStyle:qS,title:_r.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var qN={top:72,bottom:72,topPhone:72,bottomPhone:72},dle={name:"Editorial Text",boxProps:e=>({...X,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,qN)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...te,...me(qN)],parts:[ut("Prose"),{kind:"text",key:"body",props:Y,style:{textStyle:"body-1",...N("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...J,...se,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},XN={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},ZN=(e,o)=>o?.variant==="primary",JN=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:ZN,variant:"primary",style:{letterSpacing:.3},props:{...xo,...XN,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!ZN(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...xo,...XN,...o}}]}),pm=e=>Ue(e.title),cle={name:"Call-to-Action Heading",boxProps:e=>({...X,direction:"row",align:"center",justify:pm(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Do(e,"TitleWithButtons")}),box:[...te,...na("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...O,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:W,style:{textStyle:"heading-1",...Xo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...O,gap:14,gapPhone:14,widthFitPhone:"fill",...pm(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[JN(pm,{widthFit:"fill",iconPosition:"end"}),JN(e=>!pm(e),{})]}],drop:{...J,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function fle(e){let{siteGutter:o,siteGutterPhone:t}=e.site??{},r=zi(e),a=Math.min(20,ff(t)??pf(o));return{sectionPaddingLeft:r,sectionPaddingRight:r,sectionPaddingLeftPhone:a,sectionPaddingRightPhone:a}}var QN={top:40,bottom:64,topPhone:24,bottomPhone:36},ple={name:"Section Header",boxProps:(e,o)=>({...X,direction:"column",gap:0,...le(e,QN),...fle(o)}),box:[...te,...me(QN)],parts:[ut("SectionHeader")],drop:{...J,...se,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},eM={...O,direction:"row",share:[67],gap:32},oM={...O,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},tM=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),ule={name:"Lead Text",boxProps:e=>({...X,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Do(e,"ParagraphsA")}),box:[...te,...na("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...eM,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...O,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[fe("eyebrow",{color:"labels",...N("label",12),letterSpacing:.24})]},tM("Stats column",O,{kind:"group",name:"Stats",props:{...oM,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Gi("value","label",{...N("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...eM,gapPhone:28},parts:[{kind:"group",name:"Lead",props:O,parts:[{kind:"group",name:"Measure",props:{...O,maxWidth:780},parts:[{kind:"text",key:"lead",props:W,style:{textStyle:"heading-3",...N("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},tM("Note column",{...O,justify:"end"},{kind:"group",name:"Founders",props:{...oM,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...O,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:W,style:{textStyle:"body-1",fontRole:"heading",...N("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:Y,style:{textStyle:"body-5",fontRole:"heading",...N("body",14,12),lineHeight:1.7}}]},fe("attribution",{...N("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...J}},rM={top:24,bottom:24,topPhone:24,bottomPhone:24},mle={name:"Banner",boxProps:e=>({...X,direction:"column",gap:0,...le(e,rM)}),box:[...te,"contained",...me(rM)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...O,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Zt("surface"),...Ne(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(K(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...O,gap:20,gapPhone:20},parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...W,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...N("headingMedium",44,32)}},{kind:"text",key:"body",props:{...W,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...N("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:xo}]}],drop:{...J,...se}},JS={Prose:dle,TitleWithButtons:cle,SectionHeader:ple,ParagraphsA:ule,Banner:mle},aM={Prose:()=>({eyebrow:cm.eyebrow,title:lr(cm.title),body:cm.body}),TitleWithButtons:()=>({title:lr(UN.title),buttons:$N.map(e=>({...e}))}),SectionHeader:()=>({num:_r.num,title:lr(_r.title),description:_r.description,linkText:_r.linkText,linkHref:Qe.href}),ParagraphsA:()=>({eyebrow:id.eyebrow,lead:Fe.body,foundersHeading:id.foundersHeading,foundersBody:id.foundersBody,attribution:id.attribution}),Banner:()=>({...zN,ctaText:Qe.text,ctaHref:Qe.href}),ProcessSteps:()=>({num:_r.num,title:lr(_r.title)})};function nM(){ho(JS),ho(QF),ho(uB),ho(UF),ho(kB),ho(aD),ho(bD),ho(CD),ho(DD),ho(KD),ho(aN),ho(IN),ho(SN),ho(TN),ho(GN),ho(BN),ho(HN)}var xle=["FooterPayment"];function sM(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))hle(n)&&(r[a]=n.map(s=>sM(s,o)));return o(e.type,r)}var dd=(e,o)=>{if(!xle.includes(e.type))return null;nM();let t=ra(e.type);return t?Bs({type:e.type,props:{...e.props}},t).nodes.map(r=>sM(r,o)):null};function lM(){let{appState:e,dispatch:o,config:t}=wle(f=>f),{readOnly:r}=kle(),[a,n]=ble(!1),s=e.data.content;if(r||s.some(f=>f.type===Re))return null;let l=s.find(f=>f.type===He)??null,d=(f,u)=>yle(t,f,u),c=()=>{let f=Bi(l,d,Sle(Re),dd);o({type:"setData",data:u=>({...u,content:[...wc(u.content,f)]}),recordHistory:!0}),n(!1)};return um(Cle,{tone:"info",title:i("This footer uses the old layout"),action:a?gle(Ile,{children:[um(QS,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),um(QS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):um(QS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:i("Switch to Box footer")}),children:i("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as ew,jsxs as vle}from"react/jsx-runtime";import{InspectorUpLevel as iM}from"efficient-easel/chrome";function dM({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Op(),n=As(e,o,"picture");return vle("div",{children:[o!=="media"?ew(iM,{inline:!0,name:i(en.media),onSelect:()=>a(xi(e,"media"))}):ew(iM,{inline:!0,name:i(t),onSelect:r}),ew(Nt,{part:o,motion:n,itemWord:i(en[o])})]})}import{HintsToggle as Hle,SettingsSwitch as Wle,hintsFoldClass as Gle}from"efficient-easel/panel";import{useHints as zle}from"efficient-easel/screen/lib/hints";var hM={kind:"header"},rw={kind:"website"},xM={kind:"website",tab:ks,revealPageGroup:!0},IM={kind:"chat"},gM={kind:"social"},cd="Part";function Ule(e){return i("Part of {name}",{name:i(e)})}function $le(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ule(r.label):i(cd)}}function jle(e){switch(e){case"Header":return{title:i("Header settings belong to a website."),own:i("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:i("Appearance settings belong to a website."),own:i("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:i("Live chat settings belong to a website."),own:i("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:i("Social link settings belong to a website."),own:i("Each website created from this template sets its own social link afterwards.")};default:return{title:i("{what} settings belong to a website.",{what:e}),own:i("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function bM({what:e}){let o=jle(e);return ca("div",{className:"sf-note",children:[ke("p",{children:ke("strong",{children:o.title})}),ca("p",{children:[i("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function tw(e){let o=hi[e];return{name:en[e],kindLabel:cd,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=mM({name:i(Ap(e,a.props)),tier:"part",of:i(a.label)},{partOf:({name:s})=>i("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?ke(dM,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Kle={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?ke(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>ke(yp,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>ke(fR,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>ke(IR,{unavailable:ke(bM,{what:"Social link"})})},ticker:{name:pi,kindLabel:cd,icon:"ticker",head:(e,o)=>e.kind==="ticker"?$le(o,e.heroId,i(pi)):null,render:e=>ke(F1,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:tw("media"),heroImage:tw("image"),heroImage2:tw("image2"),part:{name:cd,kindLabel:cd,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Ft(e.propKey),n=a?ms(t.fields[r],a):t.fields[r],s=au(t.type),l=s?Il(s,e.propKey):null,d=s&&l?s[l].label:U1[e.propKey],c=d?i(d):P0(i(hg(Yf(n??{},r))),a),f=mM({name:c,tier:"part",of:i(t.label)},{partOf:({name:u})=>i("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?ke(dL,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Vle=new Set(["header","website","chat"]);function Yle(e,o){if(e==="selection")return null;let t=Kle[e];return Vle.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>ke(bM,{what:t.name})}:t}function yM({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:l}){let{capabilities:d,tokenRef:c,notifyParent:f,currentSlug:u,siteId:p,runAuthed:h,readOnly:I,navigate:g}=Ble(),{rows:T}=di(),S=T?.find(D=>D.slug===u)??null,C=Ple(),y=Object.keys(C.fields).some(D=>!D.startsWith("_")&&!li.includes(D)),{websiteName:b}=xe(),E=Dle({readOnly:I}),{select:H}=Nle(),{selectedItem:v,getItemById:M,getSelectorForId:P,config:F,appState:k}=Tle(D=>D),A=Lle(F,v?{type:v.type,props:v.props}:null),L=v?L0(A??F.components[v.type]?.fields,v.props):[],R=D=>F.components[D]?.label??D,G=v?P(v.props.id):void 0,$=Yle(e.kind,d),oe=Fle(),re={capabilities:d,tokenRef:c,hostPanels:oe.chrome?.panels,describeNode:D=>{let Pe=M(D);if(!Pe)return null;let Se=F.components[Pe.type];return{type:Pe.type,label:Se?.label??Pe.type,fields:Se?.fields??{},props:Pe.props??{}}},siteId:p,websiteName:b??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},be=$?.head?.(e,re)??null,de=nR({kind:S?.kind,pageName:S?.label}),_e=be?.name??($?i($.name):v?i(R(v.type)):de.name),je=be?.kindLabel??($?i($.kindLabel):v?G&&G.zone!==uM?i("Block"):i("Section"):de.kindLabel),ge=$?$.icon:v?v.type:"page",Ae=ow(e)&&v?Pi(v.type):null,Le=!!v&&!!G&&G.zone===uM&&v.type!==He&&v.type!==Mle,De=gu(k?.data,v),so=()=>{De||G&&E.duplicateComponent(G.zone,G.index)},No=()=>{G&&(E.removeComponent(G.zone,G.index),E.select(null))},he=v?F.components[v.type]?.defaultProps?.previewHover:void 0,Ke=ow(e)&&!!v&&!!G&&he!==void 0,Te=Ke&&v.props.previewHover===!0,Oe=()=>{!v||!G||E.replaceComponent(G.zone,G.index,{...v,props:{...v.props,previewHover:!Te}})},{shown:Ze,setShown:Gt}=zle(),Zo=!!($||v||y);return ca("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Gle(Ze)}`.trim(),children:[ke(_le,{icon:ke(on,{type:ge,size:15}),name:_e,kind:je,actions:!n&&ow(e)&&v&&v.type!==He?ca(cM,{children:[ke(fM,{label:i("Duplicate section"),title:De??void 0,disabled:De!==null,onClick:so,children:ke(Ale,{size:15})}),Le&&d.hasSiteSettings&&ke(SL,{node:v,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),ke(fM,{label:i("Remove section"),danger:!0,onClick:No,children:ke(Rle,{size:15})}),l?ke(pM,{side:"right",onHide:l,divider:!0}):null]}):l?ke(pM,{side:"right",onHide:l}):void 0}),Ke&&ca("div",{className:"sf-preview-pin",children:[ca("div",{className:"sf-preview-pin-text",children:[ke("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),ke("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),ke(Wle,{checked:Te,onChange:Oe,ariaLabel:i("Preview hover state")})]}),ca("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,re):v?ca(cM,{children:[v.type===He&&d.hasSiteSettings&&ke(lM,{}),ke(OP,{children:ke(Nt,{entries:ke(wL,{parts:L,heading:!1,onOpen:D=>H(Kf(v.props.id,D))}),entryCount:Ey(L).length,itemWord:_e})}),Ae&&ke(iu,{source:Ae,slug:Rs(v?.props),menuId:tu(v?.props)})]}):y?ke(Nt,{omit:li}):ke(Ole,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&ke(Ele,{variant:"secondary",onClick:r,children:i("This page")})}),Zo&&ke(Hle,{shown:Ze,onChange:Gt,label:i("Show hints")})]})]})}import{jsx as m,jsxs as _,Fragment as vM}from"react/jsx-runtime";var co={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},aw="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function z({w:e,h:o,tone:t="dark",r=2,style:a}){return m("div",{style:{width:e,height:o,borderRadius:r,background:co[t],flex:"none",...a}})}var qle={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},x={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Be=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Rr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return _("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",x.mark1)}),m("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function hm({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function SM({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return _(vM,{children:[e&&m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),m("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function nw({name:e,price:o}){return _("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Be(x.paper,x.paper2,150)},children:m(Rr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Ar({k:e,v:o,ok:t}){return _("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[m("span",{children:e}),_("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:x.text,fontWeight:700},children:o}),t&&m("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function Ee({title:e,children:o}){return _("div",{style:{...V,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(hm,{children:e}),o]})}function wM({size:e=14}){return m("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function sw({filled:e=5,size:o=6}){return _("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function fd({n:e,label:o,tone:t=x.text}){return _("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function no({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function mm({label:e,w:o="100%",filled:t}){return _("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function CM({children:e}){return m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Xle={wheelslisting:m(Ee,{title:"All wheels",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Be(x.paper,x.paper2,150)},children:m(Rr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:_("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>_("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Be(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),_("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>_("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(Ee,{title:"Tyres that suit",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:m(Ee,{title:"Available sizes",children:m("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>m("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:_(Ee,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>_("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:_("div",{style:{...V,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:_("div",{style:{...V,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(hm,{children:"Buy it with"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>m("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:m(Rr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Be(x.ink,x.ink2)},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(Ee,{title:"Who do you need?",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(Ee,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>_("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(Ee,{title:"Our studios",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>_("div",{style:{position:"relative",minHeight:0},children:[m(z,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${Be(x.ink,x.inkSoft2).background}`}}),m("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:m(Ee,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>_("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(z,{r:4,style:{...V,background:"none",border:`1px solid ${x.rule}`}}),m("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),_("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(z,{r:3,style:{...V,...Be(x.paper,x.paper2,150)}}),m(z,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),m(z,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:m(Ee,{title:"Send us a message",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[_("div",{style:{display:"flex",gap:5},children:[m(mm,{label:"Name"}),m(mm,{label:"Email"})]}),m(mm,{label:"Message",filled:!0}),m(CM,{children:"SEND"})]})}),appointmentbooking:m(Ee,{title:"Book a fitting",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),m("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(Ee,{title:"Leave a review",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(sw,{filled:4,size:14}),m(mm,{label:"Your review",filled:!0}),m(CM,{children:"POST"})]})}),submitbuild:m(Ee,{title:"Show us your build",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:_("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:x.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),_("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:x.rule}})]}),featuredcover:_("div",{style:{...V,overflow:"hidden",...Be(x.ink,x.inkSoft2)},children:[m(Rr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),_("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:_("div",{style:{...V,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),m(no,{children:"Every failure starts in the same place:"}),m(no,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:_("div",{style:{...V,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[m("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),m(no,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(no,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(no,{w:"80%",children:"Width follows from the space left."})]}),series:m(Ee,{title:"Recurring columns",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:m(Ee,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Be(e,o,150)}}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:_("div",{style:{...V,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:m("div",{style:{...V,background:x.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>_("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),m(no,{children:o})]},e))}),docmetacards:m(Ee,{title:"At a glance",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>_("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:_("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:x.rule}}),_("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(no,{children:"Unfitted wheels come back within 30 days, no questions."}),m(no,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:_("div",{style:{...V,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[m("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(no,{children:"Forged, correctly offset, rated for what you actually"}),m(no,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(Ee,{title:"Key features",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:_("div",{style:{...V,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(fd,{n:"27k",label:"Rigs"}),m(fd,{n:"4.9",label:"Rating"})]}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(no,{children:"Twelve years of fitting the same three questions, and the"}),m(no,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:_(Ee,{title:"Load vs weight",children:[m("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>m("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),m("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:m("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Be(x.inkSoft,x.ink)},children:_("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[m("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>m("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),_("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),m("span",{style:{height:14,borderRadius:2,...Be(x.paper,x.paper2,150)}}),m("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:m("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Be(x.ink,x.ink2)},children:_("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",m("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:m(Ee,{title:"Our story",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>_("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&m("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),_("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m(no,{children:o})]})]},e))})}),timelinetrack:_("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Be(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),_("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[m("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[m("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:_("div",{style:{...V,overflow:"hidden",...Be(x.paper,x.paper2,150)},children:[m("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),m("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>m("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:_("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[m("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),_("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...V,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Be(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),m("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...V,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:_("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:_("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),m("span",{style:{height:1,background:x.rule}})]}),intro:_("div",{style:{...V,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...Be(x.ink,x.inkSoft2)}}),m(Rr,{size:64,style:{right:8,top:6}}),_("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),m(no,{children:"One shed, one lathe, one idea."}),m(no,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(Ee,{title:"Photo gallery",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...Be(e,o,140+t*22)}},t))})}),gallery:_(Ee,{title:"Gallery",children:[m("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...Be(e,o,150+t*20)}},t))})]}),ordersummary:_(Ee,{title:"Order summary",children:[_("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Be(x.paper,x.paper2,150)},children:m(Rr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),_("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Ar,{k:"Subtotal",v:"$1,956"}),m(Ar,{k:"Fitting",v:"Free"}),_("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:x.text},children:"Total"}),m("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(Ee,{title:"Delivery",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:_("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(hm,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Be(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),_("div",{style:{display:"flex",gap:8},children:[m(fd,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(fd,{n:"12",label:"Years",tone:x.onInk}),m(fd,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:_("div",{style:{...V,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[m("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),m(sw,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(wM,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:_(Ee,{title:"Reviews",children:[m("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>m("div",{style:{flex:1,borderRadius:3,...Be(e,o,140+t*15)}},t))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(wM,{size:12}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(sw,{filled:o})]}),m(no,{children:t})]})]},e))})]}),logos:_("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Be(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),m("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>m("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:_("div",{style:{...V,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),_("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),_("div",{style:{display:"flex",flexDirection:"column"},children:[m(no,{children:"he number on the back of your wheel decides whether the"}),m(no,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(Ee,{title:"What you get",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>_("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(no,{children:o})]},e))})}),faq:m(Ee,{title:"Questions",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>_("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(no,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:_("div",{style:{...V,overflow:"hidden",...Be(x.ink,x.ink2)},children:[m("div",{style:{...V,background:`linear-gradient(90deg,${x.scrim},transparent 70%)`}}),m("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:m(SM,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),m(Rr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:_("div",{style:{...V,display:"flex",background:x.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(SM,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),m("div",{style:{flex:1,position:"relative",...Be(x.inkSoft,x.inkSoft2)},children:m(Rr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(Ee,{title:"Best sellers",children:_("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(nw,{name:"Ridge 19",price:"$365"}),m(nw,{name:"Ridge 29",price:"$410"}),m(nw,{name:"Ridge 39",price:"$455"})]})}),collections:m(Ee,{title:"Shop by category",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>m("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...Be(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:_("div",{style:{...V,display:"flex",background:x.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...Be(x.paper,x.paper2,150)},children:m(Rr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:m(Ee,{title:"Specifications",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Ar,{k:"Diameter",v:'20"'}),m(Ar,{k:"Width",v:"9.0J"}),m(Ar,{k:"Offset",v:"+12"}),m(Ar,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(Ee,{title:"Will it fit?",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Ar,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Ar,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Ar,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:_("div",{style:{...V,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(hm,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=m("div",{style:{flex:1,...Be(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=_("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return m("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:m("div",{style:{...V,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[m("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},kM={subscribe:_("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(z,{w:8,h:8,r:2,tone:"accent"}),m(z,{w:38,h:7,r:3,tone:"dark"}),m(z,{w:16,h:7,r:3,tone:"accent"})]}),m(z,{w:38,h:4,r:2,tone:"soft"})]}),m("div",{style:{height:1,background:co.line,marginBottom:10}}),_("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${co.line}`,borderRadius:7,padding:10},children:[_("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[m(z,{w:"46%",h:3,r:2,tone:"accent"}),m(z,{w:"84%",h:8,r:4,tone:"dark"}),m(z,{w:"56%",h:8,r:4,tone:"accent"}),m(z,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),_("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${co.line}`,background:co.block}}),m(z,{w:34,h:13,r:5,tone:"accent"})]})]}),_("div",{style:{flex:1,background:co.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[m(z,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${co.line}`:"none",paddingTop:o?4:0},children:[m(z,{w:34,h:4,r:2,tone:"dark"}),m(z,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:_("div",{style:{...V,display:"flex"},children:[m("div",{style:{width:"44%",background:aw}}),_("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(z,{w:"44%",h:5,r:3,tone:"accent"}),m(z,{w:"88%",h:8,r:4,tone:"dark"}),m(z,{w:"70%",h:8,r:4,tone:"dark"}),m(z,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),m(z,{w:"80%",h:5,r:2,tone:"soft"}),m(z,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:_(vM,{children:[m(z,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[_("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(z,{w:16,h:16,r:4,tone:"accent"}),m(z,{w:"20%",h:9,r:4,tone:"dark"})]}),m(z,{w:"62%",h:10,r:5,tone:"dark"}),m(z,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:m("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(z,{w:"22%",h:12,r:4,tone:"dark"}),_("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[m(z,{w:26,h:6,r:3,tone:"soft"}),m(z,{w:26,h:6,r:3,tone:"soft"}),m(z,{w:26,h:6,r:3,tone:"soft"}),m(z,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:_("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[_("div",{style:{display:"flex",gap:14},children:[_("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(z,{w:"60%",h:9,r:4,tone:"dark"}),m(z,{w:"90%",h:5,r:2,tone:"soft"}),m(z,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[m(z,{w:"50%",h:6,r:3,tone:"dark"}),m(z,{w:"80%",h:5,r:2,tone:"soft"}),m(z,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),m("div",{style:{height:1,background:co.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(z,{w:"30%",h:5,r:2,tone:"soft"}),m(z,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:m("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>m("div",{style:{borderRadius:6,background:co.block}},o))}),blanksection:m("div",{style:{...V,padding:14,display:"flex"},children:_("div",{style:{flex:1,border:`1px dashed ${co.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[m(z,{w:14,h:2,r:1,tone:"tint"}),m(z,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m(z,{w:"100%",h:6,r:3,tone:"soft"}),m(z,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),m(z,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:m("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:m(z,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:aw},children:[m(z,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),m(z,{w:16,h:10,r:3,tone:"accent"}),m(z,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:m("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:m(z,{w:"64%",h:13,r:4,tone:"dark"})}),text:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(z,{w:"100%",h:6,r:3,tone:"soft"}),m(z,{w:"96%",h:6,r:3,tone:"soft"}),m(z,{w:"100%",h:6,r:3,tone:"soft"}),m(z,{w:"58%",h:6,r:3,tone:"soft"})]}),image:m("div",{style:{position:"absolute",inset:14,borderRadius:7,background:aw}}),button:m("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:m(z,{w:"34%",h:16,r:8,tone:"accent"})}),menu:_("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(z,{w:"48%",h:7,r:3,tone:"dark"}),m(z,{w:"82%",h:5,r:2,tone:"soft"}),m(z,{w:"66%",h:5,r:2,tone:"soft"}),m(z,{w:"74%",h:5,r:2,tone:"soft"}),m(z,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(z,{w:"56%",h:8,r:3,tone:"dark"}),_("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${co.line}`}}),m(z,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:m("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>m(z,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m(z,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>m(z,{w:20,h:13,r:3,tone:"dark"},e))]}),search:m("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:_("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${co.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${co.dark}`}}),m(z,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${co.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${co.dark}`},children:m(z,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${co.line}`},children:[m(z,{w:22,h:6,r:2,tone:"dark"}),m(z,{w:6,h:4,r:1,tone:"soft"})]}),_("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${co.line}`},children:[m(z,{w:"80%",h:4,r:2,tone:"accent"}),m(z,{w:"64%",h:4,r:2,tone:"soft"}),m(z,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:co.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(z,{w:"38%",h:5,r:2,tone:"soft"}),_("div",{style:{display:"flex",gap:5},children:[m(z,{w:14,h:5,r:2,tone:"soft"}),m(z,{w:14,h:5,r:2,tone:"soft"}),m(z,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:m("div",{style:{position:"absolute",inset:14,borderRadius:8,background:co.block}})};function TM({type:e}){let o=qle[e]??"",t=Xle[o]??kM[o]??kM.fallback;return m("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as Wm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as $s,jsxs as PM}from"react/jsx-runtime";import Zle from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Jle}from"efficient-easel/rail";import{Tooltip as Qle}from"efficient-shell/ui";import{HintsToggle as eie,hintsFoldClass as oie}from"efficient-easel/panel";import{useHints as tie}from"efficient-easel/screen/lib/hints";function EM({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=vs(),{shown:c,setShown:f}=tie();return PM("div",{className:`sf-styles ${oie(c)}`.trim(),children:[$s(Zle,{icon:$s(Jle,{}),title:i("Styles"),context:$s(Qle,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:$s("span",{className:"sf-name-text",children:d})})}),PM("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$s(yp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),$s(eie,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as Io,jsxs as kn,Fragment as iie}from"react/jsx-runtime";import{Fragment as zM,useEffect as UM,useRef as pw}from"react";import{useTreeDrag as $M}from"efficient-easel/drag";import{GlobeIcon as die,ImageIcon as cie,LocationIcon as fie,MapIcon as pie,TextLinesIcon as uie,TrashIcon as jM}from"efficient-easel/icons";import{Subtree as KM,TreeRow as ud,TreeRowAction as VM,TreeSeam as YM}from"efficient-easel/tree";import{useEaselStrings as mie}from"efficient-easel/strings";import{createPreviewSelectionContext as rie}from"efficient-easel/draw/client";var{Provider:z$e,useSelection:OM}=rie("selectedLocationPartId");function _M(e,o,t){return`${e}::${o}::${t}`}function AM(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}import{isSelectionMode as hie}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as aie}from"react";var nie={level:"groups"},LM=nie,lw=new Set;function Wt(e){LM=e;for(let o of lw)o()}function sie(e){return lw.add(e),()=>{lw.delete(e)}}var RM=()=>LM;function FM(){return aie(sie,RM,RM)}var pd=e=>String(e?.group??""),iw=new WeakMap,lie=0;function xm(e){let o=iw.get(e);return o||(o=`loc${++lie}`,iw.set(e,o)),o}var BM=(e,o)=>o||e||"Ungrouped",DM={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
399
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Cn(e){return yu(e,pd,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var dw=e=>e.flatMap(o=>o.cards),NM=(e,o,t)=>Math.min(Math.max(e,o),t);function Im(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(pd(e[a])===o){if(r===t)return a;r++}return-1}function cw(e,o,t){let r=Cn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=NM(o<t?t-1:t,0,r.length);return r.splice(n,0,a),dw(r)}function fw(e,o,t,r,a){let n=Cn(e),s=n.find(u=>u.key===o),l=n.find(u=>u.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[d]=s.cards.splice(t,1),c=o===r?d:{...d,group:l.key,groupName:l.name};c!==d&&iw.set(c,xm(d));let f=NM(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),dw(n)}function MM(e,o){let t=Cn(e),r=t.find(n=>n.key===o),a={...DM,group:o,groupName:r?.name??""};return r?(r.cards.push(a),dw(t)):[...e,a]}function HM(e){let o=new Set(Cn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...DM,group:r,groupName:""}],key:r}}function WM(e,o){return e.filter(t=>pd(t)!==o)}function GM(e,o,t){let r=Im(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function V$e(e,o,t){let r=e.flatMap((s,l)=>pd(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function Y$e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>pd(n)===r);return a.length?a:t(r)})}var bm="ContactLocations",gm=e=>({parentId:`locations-${e}`,slot:"groups"}),uw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function qM(e,o){let{readOnly:t,selected:r}=o,a=mie().tree,n=o.data?.content??[],s=hie(e),l=pw(null);UM(()=>{let y=r?.type===bm?String(r.props.id):null;y&&y!==l.current&&Wt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=OM(),u=FM(),p=(y,b)=>{let E=n[y];E&&o.replace(y,{type:E.type,props:{...E.props,locations:b}})},h=y=>{let b=n[y]?.props?.locations;return Array.isArray(b)?b:[]},I=$M({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===gm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,cw(h(y.si),y.index,b.index)),u.level==="city"&&Wt({level:"groups"})},onStep:(y,b)=>{p(y.si,cw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&Wt({level:"groups"})}}),g=$M({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===gm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let E=b.slot.slice(7);p(y.si,fw(h(y.si),y.group,y.index,E,b.index)),Wt({level:"group",key:E})},onStep:(y,b)=>{p(y.si,fw(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&Wt({level:"group",key:y.group})}}),T=pw(n);T.current=n;let S=pw(()=>{});UM(()=>{f(y=>{let b=AM(y);if(!b)return;let E=T.current.findIndex(H=>H.props?.id===b.nodeId);E<0||S.current(E,{level:b.part,index:b.index})})},[f]);let C=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),Wt(b),e.reveal();let E=n[y]?.props?.id;typeof E=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(_M(E,b.index,b.level)):c(null),typeof E=="string"&&o.scrollTo(E)};return S.current=C,{renderLocationTree:(y,b,{rowClick:E,isCollapsed:H,toggleCollapse:v})=>{let M=h(b),P=Cn(M),F=String(y.props.id),k=s&&r?.props.id===F,A=R=>Io(YM,{...t?{}:I.seam({place:{...gm(b),index:R}})},`seam:${F}:groups:${R}`),L=(R,G)=>Io(YM,{...t?{}:g.seam({place:{...uw(b,R),index:G}})},`seam:${F}:cities:${R}:${G}`);return kn(iie,{children:[Io(ud,{icon:Io(uie,{size:13}),name:i("Texts"),words:a,onSelect:()=>C(b,{level:"texts"}),selected:k&&u.level==="texts",rowProps:{onClick:E(()=>C(b,{level:"texts"}))}}),P.map((R,G)=>{let $=`${F}::grp::${R.key}`,oe=H($),re=k&&u.level==="group"&&u.key===R.key,be=R.name||R.key?BM(R.key,R.name):i("Ungrouped"),de={...uw(b,R.key),index:R.cards.length},_e=g.row({item:{si:b,group:R.key,index:-1},place:de,into:de,canDrag:!1},{onClick:E(()=>C(b,{level:"group",key:R.key}))}),je=I.row({item:{si:b,index:G},place:{...gm(b),index:G}},_e.rowProps);return kn(zM,{children:[G===0&&A(0),Io(ud,{icon:Io(die,{size:13}),name:be,words:a,onSelect:()=>C(b,{level:"group",key:R.key}),selected:re,draggable:je.draggable,dragging:je.dragging,drop:je.drop??_e.drop,fold:{open:!oe,label:i("group"),onToggle:()=>v($)},actions:Io(VM,{kind:"delete",label:Ro("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",R.cards.length,{label:be}),onClick:()=>{p(b,WM(M,R.key)),Wt({level:"groups"})},children:Io(jM,{size:15})}),rowProps:je.rowProps,count:R.cards.length,countLabel:Ro("{n} city","{n} cities",R.cards.length)}),!oe&&kn(KM,{children:[R.cards.map((ge,Ae)=>{let Le=Im(M,R.key,Ae),De=k&&u.level==="city"&&u.index===Le,so=String(ge?.name??"")||i("City"),No=`${F}::city::${xm(ge)}`,he=H(No),{rowProps:Ke,...Te}=g.row({item:{si:b,group:R.key,index:Ae},place:{...uw(b,R.key),index:Ae}},{onClick:E(()=>C(b,{level:"city",index:Le}))});return kn(zM,{children:[Ae===0&&L(R.key,0),Io(ud,{icon:Io(fie,{size:13}),name:so,words:a,onSelect:()=>C(b,{level:"city",index:Le}),selected:De,...Te,fold:{open:!he,label:so,onToggle:()=>v(No)},actions:Io(VM,{kind:"delete",label:i("Delete {name}",{name:so}),onClick:()=>{p(b,GM(M,R.key,Ae)),Wt({level:"group",key:R.key})},children:Io(jM,{size:15})}),rowProps:Ke}),!he&&kn(KM,{children:[Io(ud,{icon:Io(cie,{size:13}),name:i("Image"),words:a,onSelect:()=>C(b,{level:"image",index:Le}),selected:k&&u.level==="image"&&u.index===Le,rowProps:{onClick:E(()=>C(b,{level:"image",index:Le}))}}),Io(ud,{icon:Io(pie,{size:13}),name:i("Map"),words:a,onSelect:()=>C(b,{level:"map",index:Le}),selected:k&&u.level==="map"&&u.index===Le,rowProps:{onClick:E(()=>C(b,{level:"map",index:Le}))}})]}),L(R.key,Ae+1)]},xm(ge))}),kn("button",{type:"button",className:"sf-add-card",onClick:()=>{let ge=MM(M,R.key);p(b,ge);let Ae=Cn(ge).find(Le=>Le.key===R.key);Wt(Ae&&Ae.cards.length?{level:"city",index:Im(ge,R.key,Ae.cards.length-1)}:{level:"group",key:R.key})},children:[Io("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),A(G+1)]},$)}),kn("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:R,key:G}=HM(M);p(b,R),C(b,{level:"group",key:G})},children:[Io("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:y=>{y?.type===bm&&Wt({level:"groups"})}}}import{useEffect as bie,useRef as yie}from"react";import{createNode as hw,newId as xw}from"efficient-easel/data";import{useEaselApi as Sie}from"efficient-easel/easel";import{useScreenDocument as wie}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Cie}from"efficient-easel/screen/lib/session-context";import{useEffect as JM,useRef as xie}from"react";import{useEasel as Iie}from"efficient-easel/easel";import{ROOT_ZONE as mw}from"efficient-easel/draw";var md={};function XM(e){return md=e?.theme?{theme:e.theme}:{},md}function ZM(e){md===e&&(md={})}function ym(){return md}function eH(e){let o=Iie(s=>s.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a}=xe(),n=xie(new Set);JM(()=>{let s=QM({theme:t,themeRow:r,themeFromDocument:a});s&&gie(NL(o,void 0,s),e,n.current)},[o,e,t,r,a]),JM(()=>{let s=XM(QM({theme:t,themeRow:r,themeFromDocument:a}));return()=>ZM(s)},[t,r,a])}function QM(e){return e.themeFromDocument||e.themeRow==="none"?{}:e.themeRow==="read"?{theme:e.theme}:null}function gie(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(mw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(mw,r+1+l,s),o.replaceComponent(mw,r+1+l,s)}))}}import{ROOT_ZONE as js,missingPinnedTypes as kie,pinnedDuplicateIds as Iw}from"efficient-easel/draw";function oH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function tH(e,o){let t=e.some(l=>l?.type===Re),r=e[e.length-1],a=!t&&r?.type===He?r:null,n=e.filter(l=>l?.type===He&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Vo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Me)}}async function rH(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Me||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Me)?!1:(e.write(wc(r,t)),!0)}function aH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=wie(),f=Cie(),{hasSiteSettings:u,hasPinnedChrome:p}=r;eH(e);let h=!!r.editsPinnedInPlace&&a!==At,I=a===At,g=Sie().getState,T=yie(null);bie(()=>{if(!oH({docId:n,saveStatus:l,seededDocId:T.current})||(T.current=n,!p))return;let S=g().appState.data,C=S.content,y=s?.content??[],b=(M,P)=>M.some(F=>F?.type===P);if(!u){let M=new Set(Iw(C)),P=M.size?C.filter(k=>!M.has(k.props.id)):C;if(M.size&&e.setDocument({...S,content:P}),I)return;let F=kie(P,y);if(F.includes(He)){let k=P.length,A=e.insertSection(He,k);e.replaceComponent(js,k,{type:He,props:{id:A,blocks:Iu()}})}F.includes(Vo)&&e.insertNode(js,0,xu());return}if(I){let M=Kn(C);if(M!==C&&e.setDocument({...S,content:[...M]}),!M.find(P=>P.type===He)&&!b(y,He)&&!b(M,Re)&&!b(y,Re)){let P=(k,A)=>hw(o,k,A),F={type:He,props:{blocks:Iu()}};e.insertNode(js,M.length,Bi(F,P,xw(Re),dd))}return}if(h){let M=!!t?.pinnedChrome?.state().docId,P=tH(C,{hasChromeDoc:M}),F=new Set([...P.remove,...Iw(C.filter(A=>!P.remove.includes(String(A.props.id))))]),k=F.size?C.filter(A=>!F.has(String(A.props.id))):C;if(k.length!==C.length&&e.setDocument({...S,content:k}),P.seedFooter&&!b(y,He)&&!b(y,Re)){let A=(R,G)=>hw(o,R,G),L={type:He,props:{blocks:Iu()}};e.insertNode(js,k.length,Bi(L,A,xw(Re),dd))}if(P.seedHeader&&!b(y,Vo)){let A=k[0]?.type===Me?1:0;e.insertNode(js,A,xu())}if(P.seedSiteHeader&&!b(y,Me)&&!b(y,He)&&!b(y,Re)){let A=n;rH({blocks:$c(f),make:(L,R)=>hw(o,L,R),id:xw(Me),siteId:d??null,token:c.current,latest:()=>g().appState.data.content,stillOpen:()=>T.current===A,write:L=>{let R=g().appState.data;e.setDocument({...R,content:[...L]})}})}return}let E=C.filter(M=>M.type!==He),H=new Set(Iw(E)),v=H.size?E.filter(M=>!H.has(M.props.id)):E;v.length!==C.length&&e.setDocument({...S,content:v}),!b(v,Vo)&&!b(y,Vo)&&e.insertNode(js,0,xu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as wH,useMemo as Mie,useRef as CH}from"react";import{useEasel as Hie}from"efficient-easel/easel";import{useEaselHost as Wie}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Rie}from"efficient-easel/screen/lib/host";import{isNode as gw}from"efficient-easel/data";import{SITE_SIDE as lH}from"efficient-easel/screen/lib/content/length-units";var nH=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],zje={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:jw,separator:Kw,scrollDirection:Si}};var sH=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],jje={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function To(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function iH(e,o,t){return To(U,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Sm={Manifesto:(e,o)=>({type:U,props:{...e(U),id:o(U),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[To(U,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:lH,sectionPaddingRight:lH,content:[To("Text",e,o,Pt()),To("Text",e,o,Gr()),To("Text",e,o),To("Stats",e,o)]}),iH(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:U,props:{...e(U),id:o(U),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[To(U,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[To("Text",e,o,Pt()),To("Text",e,o,Gr()),To("Text",e,o),To("ButtonBlock",e,o)]}),iH(e,o,{direction:"column",name:"Image",content:[To("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:U,props:{...e(U),id:o(U),direction:"column",name:"Subscribe",content:[To("Text",e,o,Gr()),To("Text",e,o),To("Form",e,o)]}}),Ticker:(e,o)=>dH("Scrolling Bar",Yu,Qi,nH.map(t=>({text:t.text,style:qu,muted:!0})),e,o),SpecStrip:(e,o,t)=>dH("Spec Strip",t?.theme?{...od,sectionAccent:Bd(lo(t.theme))}:{...od,sectionBorder:{top:1}},ed,sH().map(r=>({text:r.text??"",style:td,muted:r.tone==="muted"})),e,o)};function dH(e,o,t,r,a,n){return To(U,a,n,{...bn,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>To("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function cH(e){return Sm[e]??null}import{isNodeList as wm}from"efficient-easel/data";var pKe=Object.keys(JS),vie={Logos:mB,DocMasthead:LD,DocTabs:UD,Timeline:tD,TimelineTrack:rD},Tie={PaymentBadges:hB,PaymentLogosBlock:xB};function Cm(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=wm(n)?n.map(s=>Cm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var fH=e=>({...e?.theme?{theme:e.theme}:{},press:!0});function km(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Bs({type:e,props:{...a(e),...r(),id:n(e)}},o,fH(s));return Cm(l[t],a,n)}}var Pie={Stats:Oie,Cards:Eie};function Eie(){let e=ra("Cards");if(!e)return null;let o=km("Cards",e,0,zF);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Oie(){let e=ra("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Bs({type:"StatsParagraph",props:{...o("StatsParagraph"),...eB(),id:t("StatsParagraph")}},e,fH(r)),n=a[0],s=wm(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=uH(rS(oB(),"table")),d=s.map(pH),c=Cm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function pH(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:wm(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(pH)}}:e}var uH=e=>Je([e],(o,t)=>`${o}-seed-${t}`)[0];function _ie(e,o){if(!DL(e,o))return null;let t=Pie[e];if(t)return t();let r=ra(e);return r?km(e,r,0,vie[e]??aM[e]??Tie[e]):null}function Aie(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let d=Cm(uH(rS([],"list")),o,t);return{...d,props:{...d.props,name:"Numbers"}}}let s=!1,l={};for(let[d,c]of Object.entries(n.props))if(wm(c)){let f=c.map(a);s||=f.some((u,p)=>u!==c[p]),l[d]=f}else l[d]=c;return s?{type:n.type,props:l}:n};return a(e(o,t,r))}}function Ks(e,o=Ni){let t=cH(e);return t?Aie(t):_ie(e,o)}function hd(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Lie(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function bw(e,o,t,r){e.forEach((a,n)=>{if(gw(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let[s,l]of Object.entries(a.props))Array.isArray(l)&&l.some(gw)&&bw(l,a,s,r)}})}function Fie(e){let o=[];bw(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&bw(t,null,"",o);return o}function xH(e,o){return Fie(e).find(t=>String(t.node.props.id)===o)}function IH(e,o,t){if(!t)return null;let r=xH(o,t);if(!r)return null;let a=hd(e,r.node.type),n=r.parent?`${hd(e,r.parent.type)} \xB7 ${Lie(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Bie=e=>e.filter(o=>!!o&&typeof o=="object"&&"value"in o).map(o=>typeof o.label=="string"?{value:o.value,label:o.label}:{value:o.value});function Die(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Rie]:void 0,r={type:t?.type??o.type},a=t?.label??o.label;typeof a=="string"&&(r.label=a);let n=t?.options??o.options;Array.isArray(n)&&(r.options=Bie(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=gH(l))}return r}function gH(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Die(r);a&&(o[t]=a)}return o}function bH(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:hd(e,t),fields:gH(r.fields),...yH(t)?{retired:!0}:{}});return o}function yH(e){return Object.prototype.hasOwnProperty.call(mh,e)}function mH(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Nie(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function yw(e,o){return e.findIndex(t=>gw(t)&&String(t.props.id)===o)}function hH(e,o,t){let r=o||t;if(!r)return e.length;let a=yw(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function SH(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,d)=>{let c=f=>{throw new Error(`change ${d+1}: ${f}`)};switch(l.op){case"set_props":{let f=xH(n,l.block_id)??c(`there is no block ${l.block_id}`);"id"in l.props&&c("a block's id is never changed");let u=Nie(f.node.props,l.path)??c(`there is no ${l.path} in that block`);Object.assign(u,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??c(`there is no block type ${l.type}`),yH(l.type)&&c(`${hd(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Ks(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${hd(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(h=>mH(e,h),r,a):{type:l.type,props:{...mH(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(hH(s,l.after,l.before),0,p);break}case"remove_block":{let f=yw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=yw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(hH(s,l.after,l.before),0,u);break}default:c(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var Sw=e=>q(e.requestId)??null;function kH(){let e=Wie(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Hie(p=>p),s=n,l=CH({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=CH(new Map),c=t?.props?.id,f=Mie(()=>IH(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";wH(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),wH(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:T}=l.current;switch(p.type){case"storefront-editor:request-document":{let S=Sw(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:h.data,blocks:bH(T)});return}case"storefront-editor:apply-page-edits":{let S=Sw(p);if(!S)return;let C=Array.isArray(p.ops)?p.ops:[],y=C.length?SH(T,h.data,C,b=>`${b}-${crypto.randomUUID()}`,ym()):{ok:!1,reason:"no changes"};y.ok&&(I({type:"setData",data:y.document,recordHistory:!0}),d.current.set(S,JSON.stringify(y.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:y.ok,reason:y.ok?null:y.reason});return}case"storefront-editor:undo-page-edits":{let S=Sw(p);if(!S)return;let C=d.current.get(S),y=C!==void 0&&C===JSON.stringify(h.data.content??[]);y&&g.hasPast&&(g.back(),d.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:y&&g.hasPast,reason:y?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as PH,useState as EH}from"react";var vm=new Map;async function Gie(e,o){try{return(await Ve().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function vH(e,o){let t=vm.get(o);return t||(t=Gie(e,o),vm.set(o,t),t.catch(()=>{vm.get(o)===t&&vm.delete(o)})),t}var zie=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function ww(e){return!!e&&zie.test(e)}function TH(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Fc?"/":`/${encodeURIComponent(o)}`;if(!ww(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function OH(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=EH(null),[s,l]=EH(null),d=UC();PH(()=>{try{l(new URL(jd()).hostname)}catch{l(null)}},[d]),PH(()=>{if(!ww(s)||!t||!r){n(null);return}let f=!1;return vH(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=TH({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as xd}from"react/jsx-runtime";import{useEffect as Uie,useRef as _H,useState as $ie}from"react";import{ExternalIcon as AH}from"efficient-easel/icons";import{EaselIconButton as jie}from"efficient-easel/chrome";import{Tooltip as Kie,iconButtonClasses as Vie}from"efficient-shell/ui";import{useSettledPress as Yie}from"efficient-easel/easel";import{useScreenDocument as qie}from"efficient-easel/screen/components/ScreenDocumentContext";async function Xie({pageId:e,liveHref:o,draftLink:t,ready:r=async()=>!0,win:a=window}){let n=a.open("","_blank");if(n)try{n.opener=null}catch{}let s=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function RH({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=qie(),a=_H(r);a.current=r;let n=Yie(),[s,l]=$ie(!1),d=_H(null);if(Uie(()=>()=>d.current?.(),[]),t&&o){let c=()=>new Promise((u,p)=>{d.current=()=>u(!1),n.run(()=>{d.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(l(!0),Xie({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return xd(jie,{label:i("Preview your saved draft in a new tab"),tip:i("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:xd(AH,{})})}return xd(Kie,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:xd("a",{className:Vie({className:"es-iconbtn"}),href:e,...Ki,"aria-label":i("Preview the live site in a new tab"),children:xd(AH,{})})})}import{createElement as ode,useCallback as tde,useEffect as qH,useRef as XH,useState as rde}from"react";import{ClockIcon as ade}from"efficient-shell/icons/efficient";import{useScreenDocument as nde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as Zie}from"react";import{useScreenDocument as Jie}from"efficient-easel/screen/components/ScreenDocumentContext";var Qie=()=>()=>{},LH=()=>null;function Tm(e){return Zie(e?e.subscribe:Qie,e?e.state:LH,e?e.state:LH)}function Pm(){let{adapter:e}=Jie();return e?.pinnedChrome}import{useSyncExternalStore as DH}from"react";var Id=!1,Vs=null,Cw=new Set;function bd(){for(let e of Cw)e()}function NH(e){return Cw.add(e),()=>{Cw.delete(e)}}function MH(){Id||(Id=!0,bd())}function HH(){Id&&(Id=!1,bd())}function FH(){return Id}function WH(){return DH(NH,FH,FH)}function BH(){return Vs}function Em(){Vs&&(Vs=null,bd())}function GH(){return DH(NH,BH,BH)}var gd=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function zH(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new gd;let n=await e.restore(o,t);return of(n.liveState),a(),n}async function UH({access:e,version:o,page:t,...r}){let a=await zH(e,o.id,t?{page:t.id}:{},r);Vs={title:ede(o,t??null),undo:a.undo},bd()}async function $H({access:e,...o}){let t=Vs?.undo;t&&(await zH(e,t,{},o),Vs=null,bd())}function jH(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function ede(e,o){return e.kind==="draft_before_restore"?i("Your drafts from before the restore are back"):o?i("{page} from version {n} is now your draft",{page:o.name,n:e.number}):i("Version {n} is now your draft",{n:e.number})}function KH(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Ro("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(dh(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function VH(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function YH(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=dh(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return i("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return i("{day}, {time}",{day:n,time:a})}function ZH(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=nde(),s=pL(fL(o??null),r),l=Tm(Pm()),d=n.siteLiveState;qH(()=>{if(d)return lI(d),br(0),()=>lI(null)},[d]);let c=tf(),[f,u]=rde(!1),p=XH(e);p.current=e;let h=XH(!0);qH(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=tde(()=>{u(!0),a(p.current).then(()=>{Em()}).finally(()=>{h.current&&u(!1)})},[a]);if(t.canPublish){if(d){let g=c===void 0?void 0:r||c.state==="changed"?"changed":"live",T=Cy({live:g,onPress:I,busy:f,goingLive:uL(c?.changes??[])});return n.siteVersions?{...T,menuItems:sde()}:T}return Cy({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function sde(){return[{key:"version-history",label:i("Version history"),icon:ode(ade),onSelect:MH}]}import{jsx as Q,jsxs as nt,Fragment as wd}from"react/jsx-runtime";import{useCallback as lde,useEffect as ide,useId as e2,useRef as dde,useState as gt}from"react";import{useSettledAction as cde}from"efficient-easel/easel";import{Avatar as fde,Banner as yd,Button as vn,ColoredBadge as kw,Dialog as o2,Drawer as pde,DropdownMenu as ude,FormField as t2,iconButtonClasses as mde,Inline as vw,Input as hde,ListRow as xde,Select as Ide,SortableList as gde,Stack as Sd}from"efficient-shell/ui";import{EditIcon as bde,EyeIcon as JH,MenuIcon as yde,MoreIcon as Sde,PageIcon as r2,RevertIcon as QH,StylesIcon as wde}from"efficient-shell/icons/efficient";import{useScreenDocument as a2}from"efficient-easel/screen/components/ScreenDocumentContext";var Cde={page:r2,menu:yde};function kde(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function vde(e,o){let t=window.open("","_blank");if(t)try{t.opener=null}catch{}return e.preview(o).then(({url:r})=>{t&&!t.closed?t.location.href=r:window.open(r,"_blank","noopener,noreferrer")},r=>{throw t?.close(),r})}function Tde({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=e2();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=KH(e),p=c?i("Put your drafts back?"):o?i("Restore {page} from version {n}?",{page:o.name,n:f}):i("Restore version {n}?",{n:f}),h=c?i("Your drafts go back to how they were before the restore."):o?i("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?i("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):i("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(o2,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:nt(wd,{children:[Q(vn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),Q(vn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:nt(Sd,{gap:4,children:[o&&e.pages.length>1?Q(t2,{label:i("Page"),htmlFor:d,children:Q(Ide,{id:d,value:o.id,options:e.pages.map(g=>({value:g.id,label:g.name})),onChange:l,disabled:r})}):null,Q("p",{children:h}),Q("p",{children:i("Your live website does not change until you press Publish.")}),I>0?Q(yd,{tone:"warning",children:Ro("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?Q(yd,{tone:"info",title:i("Your unpublished changes are kept"),children:i("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?Q(yd,{tone:"danger",children:a}):null]})})}function Pde({version:e,onCancel:o,onSave:t}){let r=e2(),[a,n]=gt(null),[s,l]=gt(""),[d,c]=gt(!1),[f,u]=gt(null);if(e!==a&&(n(e),l(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,h=async()=>{if(!(d||p)){c(!0),u(null);try{await t(s.trim())}catch{u(i("The name was not saved. Try again."))}finally{c(!1)}}};return Q(o2,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:nt(wd,{children:[Q(vn,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),Q(vn,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:Q(t2,{label:i("Name"),htmlFor:r,hint:i("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:Q(hde,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Ede({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",d=!e.live,c=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:Q(JH,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:Q(QH,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:Q(r2,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:Q(bde,{}),onSelect:s}]];return Q(xde,{title:nt("span",{className:"sf-version-title",children:[Q("span",{children:jH(e)}),e.live?Q(kw,{tone:"success",size:"xs",children:i("Live")}):null,e.name?Q(kw,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?Q(kw,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(ude,{align:"end","aria-label":i("More"),items:f,triggerClassName:mde({variant:"ghost",size:"sm"}),trigger:Q(Sde,{})}),below:nt(Sd,{gap:3,children:[nt(vw,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(fde,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:YH(e.createdAt)}),c?nt(wd,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:Ro("{n} change","{n} changes",c)})]}):null]}),o?nt(Sd,{gap:3,children:[c?Q(Sd,{gap:2,children:e.changes.map(u=>{let p=Cde[u.kind]??wde;return nt(vw,{gap:2,align:"center",children:[Q(p,{size:16}),Q("span",{children:VH(u)})]},`${u.kind}:${u.id}`)})}):null,nt(vw,{gap:2,children:[l?null:Q(vn,{variant:"secondary",size:"sm",leftIcon:Q(JH,{}),onClick:r,children:i("Preview")}),d?Q(vn,{variant:"secondary",size:"sm",leftIcon:Q(QH,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function Ode({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=a2(),[l,d]=gt(null),[c,f]=gt(!1),[u,p]=gt(null),[h,I]=gt(null),[g,T]=gt(!1),[S,C]=gt(null),[y,b]=gt(null),[E,H]=gt(!1),v=dde(0),M=lde(()=>{let A=++v.current;f(!1),t.list().then(L=>{A===v.current&&d(L)},()=>{A===v.current&&f(!0)})},[t]);ide(()=>{e&&M()},[e,M]);let P=A=>{H(!1),vde(t,A.id).catch(()=>H(!0))},F=async()=>{if(!(!h||g)){T(!0),C(null);try{await UH({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(A){C(A instanceof gd?i("Your last changes did not save, so nothing was restored. Try again."):i("The version was not restored. Nothing changed. Try again."))}finally{T(!1)}}},k=cde({onPress:()=>{F()},busy:g});return nt(wd,{children:[Q(pde,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:nt(wd,{children:[i("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",i("Products, prices and forms always show as they are now.")]}),footer:Q("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:nt(Sd,{gap:3,children:[E?Q(yd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?Q(yd,{tone:"danger",action:Q(vn,{variant:"secondary",size:"sm",onClick:M,children:i("Try again")}),children:i("Version history did not load.")}):l===null?Q("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?Q("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):Q(gde,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(A=>Q(Ede,{version:A,expanded:u===A.id,onToggle:()=>p(L=>L===A.id?null:A.id),onPreview:()=>P(A),onRestore:()=>{C(null),I({version:A,page:null})},onRestorePage:()=>{C(null),I({version:A,page:kde(A,s)})},onName:()=>b(A)},A.id))})]})}),Q(Tde,{version:h?.version??null,page:h?.page??null,waiting:r,busy:k.busy===!0,error:S,onCancel:()=>I(null),onConfirm:k.onPress,onPage:A=>I(L=>L&&{...L,page:L.version.pages.find(R=>R.id===A)??L.page})}),Q(Pde,{version:y,onCancel:()=>b(null),onSave:async A=>{await t.name(y.id,A),b(null),M()}})]})}function n2(){let{adapter:e,hasUnsavedEdits:o}=a2(),t=e.siteVersions,r=WH(),a=tf();return t?Q(Ode,{open:r,onClose:HH,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as e5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as gVe,categoryLabel as bVe,paletteWithoutPinned as yVe,pinnedSection as SVe}from"efficient-easel/screen/lib/document/palette-sections";var _de={openers:{label:"Hero & intros",icon:"image"},shop:{label:"Shop & galleries",icon:"bag"},product:{label:"Product page",icon:"box"},checkout:{label:"Checkout & ordering",icon:"bag"},about:{label:"About & brand story",icon:"book"},content:{label:"Text & content",icon:"type"},proof:{label:"Stats & social proof",icon:"star"},promo:{label:"Promotions & sign-ups",icon:"sparkles"},blog:{label:"Blog & journal",icon:"newspaper"},navigation:{label:"Navigation & wayfinding",icon:"bookmark"},legal:{label:"Legal & documents",icon:"file"},contact:{label:"Contact, FAQ & forms",icon:"mail"},structure:{label:"Layout, structure & embeds",icon:"grid"},layouts:{label:"Layouts",icon:"layers"}};function s2(e){return _de[e]?.label}var l2=xh;import{currentEaselSession as i4}from"efficient-easel/screen/lib/session";import{blockTypesIn as n4}from"efficient-easel/screen/lib/document/block-types-in";import{jsx as bt,jsxs as J2}from"react/jsx-runtime";import{createContext as vce,useContext as Tce,useEffect as Pce,useRef as Ece,useState as Q2}from"react";import{jsx as Ys,jsxs as b2}from"react/jsx-runtime";import{useEffect as qs,useRef as $de,useState as Tn}from"react";import{jsx as i2,Fragment as Ade,jsxs as Rde}from"react/jsx-runtime";import{useEffect as Lde,useRef as d2,useState as Fde}from"react";var Bde="#t=0.001",Dde=2;function Nde(e,o){if(e.readyState<Dde||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function c2({src:e,objectPosition:o="50% 50%",onError:t}){let r=d2(null),a=d2(null),[n,s]=Fde(!1);return Lde(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{Nde(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),Rde(Ade,{children:[i2("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&i2("video",{ref:r,src:`${e}${Bde}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as u2,imageSrcSet as Mde}from"efficient-shell/image-copies";var f2;function Tw(){return f2===void 0?{}:{host:f2}}var EVe="(max-width: 800px) 100vw, min(100vw, 1600px)",OVe="(max-width: 960px) 100vw, 50vw";function m2(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Mde(e,{...Tw(),...t===void 0?{}:{maxWidth:t}});return r?{src:u2(e,o,Tw()),srcSet:r}:{src:e}}var Hde=/[\s"'()\\;]/,Wde={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function p2(e){return e.replace(/[\\"\n\r\f]/g,o=>Wde[o]??o)}function _Ve(e){let o=u2(e,1920,Tw());return o===e?Hde.test(e)?`url("${p2(e)}")`:`url(${e})`:`url("${p2(o)}")`}import{jsx as h2}from"react/jsx-runtime";import{createContext as Gde,useContext as zde,useMemo as FVe}from"react";var x2=Gde(null);function I2({children:e}){return h2(x2.Provider,{value:"below",children:e})}function Cd(){return zde(x2)}function Ude(){return Cd()==="below"?{loading:"lazy"}:{}}function g2(e){let o=Ude();return h2("img",{...e,...o})}var BVe="laterSlideIds";var jde=.5;function kd({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=jde,objectPosition:a="50% 50%",objectPositionPhone:n,objectPositionTablet:s,quiet:l=!1,slideShown:d,laterSlide:c=!1,laterOfLead:f=!1}){let u=BP(n,s),p=Cd(),[h,I]=Tn(!1),g=p==="below"&&!h,T=p==="first",S=o||"",C=e||"",[y,b]=Tn(!1),[E,H]=Tn(!1),[v,M]=Tn(!1),[P,F]=Tn(!1),k=d??!0,[A,L]=Tn(!1),R=p!=="first"&&!f,[G,$]=Tn(!1),oe=$de(null);qs(()=>{if(!R)return;if(document.readyState==="complete"){$(!0);return}let de=()=>$(!0);return window.addEventListener("load",de,{once:!0}),()=>window.removeEventListener("load",de)},[R]),qs(()=>{b(!1),H(!1),M(!1),F(!1)},[e,o]),qs(()=>{k&&L(!0)},[k]),qs(()=>{let de=oe.current;de&&(k?de.play()?.catch(()=>{}):de.pause())},[k,A,G]),qs(()=>{if(!c||R&&!G)return;let de=()=>I(!0);if(typeof window.requestIdleCallback=="function"){let je=window.requestIdleCallback(de,{timeout:2e3});return()=>window.cancelIdleCallback(je)}let _e=setTimeout(de,800);return()=>clearTimeout(_e)},[c,R,G]),qs(()=>{let de=oe.current;if(!de)return;let _e=()=>{de.playbackRate=r};return _e(),de.addEventListener("loadedmetadata",_e),()=>de.removeEventListener("loadedmetadata",_e)},[e,r]);let re=$C(S),be=S&&re&&!E?m2(S):{src:S};return b2("div",{className:"absolute inset-0 z-[1]",children:[Ys("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),S&&(re?Ys("img",{src:be.src,...be.srcSet?{srcSet:be.srcSet,sizes:"100vw"}:{},alt:"",...g?{loading:"lazy"}:{},...T?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${u.className}`.trim(),style:{display:y?"none":"block",objectPosition:a,...u.style},onError:()=>be.srcSet?H(!0):b(!0)},S):Ys(WB,{src:S,alt:"",fill:!0,...g?{}:h?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${u.className}`.trim(),style:{display:y?"none":"block",objectPosition:a,...u.style},onError:()=>b(!0)},S)),t&&!l&&C&&A&&(!R||G)&&!v&&b2("video",{ref:oe,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:a},onError:()=>M(!0),children:[jC(C)&&Ys("source",{src:C.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),Ys("source",{src:C,type:"video/mp4"})]},C),t&&l&&C&&A&&(!R||G)&&!P&&(!S||y)&&Ys(c2,{src:C,objectPosition:a,onError:()=>F(!0)},C)]})}import{jsx as Po,Fragment as P2,jsxs as _w}from"react/jsx-runtime";import{jsx as Xs}from"react/jsx-runtime";import{useRef as Kde}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Vde,scrollAttrs as Yde}from"efficient-shell/format";function y2({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:d,children:c}){let f=Kde(null),u=Ud(),p=Dr(),h=n?p:Hn,I=rd(f,!0,s),{attrs:g,style:T}=Yde(e[I],o[I]),S=Vde.includes(e[I].effect),C=Nr(`${Nn}${u.fill}${t?` ${t}`:""}`,h.className);if(S&&l==="picture")return h.scope(Xs("div",{ref:f,className:C,...r,...h.attrs,...a?{style:a}:{},children:Xs(AC,{attrs:g,style:T,children:u.inner(c)})}));let y=Xs(RC,{children:u.inner(c)});if(S){let E=d??(u.fill?"h-full":void 0);return h.scope(Xs("div",{ref:f,className:C,...r,...h.attrs,style:{...a,overflow:"clip"},children:Xs("div",{...E?{className:E}:{},...g,style:T,children:y})}))}let b=Object.keys(T).length||a?{style:{...a,...T}}:{};return h.scope(Xs("div",{ref:f,className:C,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as qde}from"efficient-shell/format";var k2="grayscale(1) contrast(1.03)",t8e="Black and white";function Xde(e){return e===!0?{filter:k2}:{}}function Zde(e){let{filter:o}=Xde(e);return o?{style:{filter:o}}:{}}var Pn="sf-photo-grayscale",Ow="data-sf-photo-host",S2={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Am=`@media (hover:hover){.${Pn}{filter:${k2};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Pn}:hover,[data-sf-photo-host]:hover .${Pn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Pn}{transition:none}}`;function v2(e){let o=qde.hover,t={...e.duration!==o.duration.default?{[S2.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[S2.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function T2(e,o,t){if(e===!0)return Zde(!0);if(t?.kind==="mono"){let r=v2(t);return{className:Pn,sheet:Am,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pn}:{}}var w2="data-sf-repeat",Pw="sf-photo-zoom",Jde="--sf-photo-zoom",r8e="sf-photo-wash",Om="sf-photo-wash-rest",vd="sf-photo-wash-hover",_m="sf-photo-frame",Ew=(e,o)=>{let t=`:not([${w2}]:not(:hover) .${e})`;return`${o},[${w2}]:hover .${e}${t},[${Ow}]:hover .${e}${t}`},C2=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,Qde=`.${vd}{opacity:0}@media (hover:hover){.${Om},.${vd}{transition:${C2("opacity")}}${Ew(vd,`.${_m}:hover .${vd}`)}{opacity:1}${Ew(Om,`.${_m}:hover .${Om}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Pw}{transition:${C2("transform")}}${Ew(Pw,`.${_m}:hover .${Pw}`)}{transform:scale(var(${Jde}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Om},.${vd}{transition:none}}`,a8e="sf-photo-move";function n8e(e){if(!e||!e.zoom&&!e.darken)return null;let o=v2(e);return{className:_m,sheet:Qde,...o?{style:o}:{}}}function s8e(e){return e===!0?{[Pn]:Am}:{}}import{hidableText as ece}from"efficient-easel/draw";var oce={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},tce={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function E2(e){let o=e.isVideo&&Mv(e.videoSource)==="youtube",t=e.isVideo&&Hv(e.videoPlayback)==="click",r=o?Wv(ece(e.youtubeUrl)):null,a=_p(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:bb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&mi(e)>1}}function Td(e,o){return Hd(ln({_partMotion:e},o))}function Pd(e,o){return $p(ln({_partMotion:e},o))}var Rm=e=>ey({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),O2=lh.img;function _2({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Po(PB,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Po(y2,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:d}):Po("div",{className:a,...n,...s?{style:s}:{},children:d})}function Zs(e,o){return T2(void 0,void 0,jk(ln({_partMotion:e},o)))}function A2(e){return Qa.some(o=>Zs(e,o).className)?{hostAttrs:{[Ow]:""},sheet:Am}:{}}function Lm({treatment:e,children:o}){return e.className?Po("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Po(P2,{children:o})}function Fm({color:e,opacity:o,passClicks:t=!0}){return o>0?Po("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function Bm({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[aR]:e}:void 0;return Po(_2,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:O2,children:l})}function R2({partMotion:e,editing:o,children:t}){let r=Td(e,"media"),a=Pd(e,"media"),n=Zs(e,"media"),s=Po(LC,{fill:lh,children:t}),l=n.className?Po("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Po(_2,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:O2,children:l}):Po(P2,{children:l})}function L2({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return _w("div",{className:`absolute inset-0 z-[1] grid ${oce[o]} ${tce[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Po(Bm,{part:"image",editing:t,marked:r,entrance:Td(a,"image"),scroll:Pd(a,"image"),origins:Rm(n),className:"relative overflow-hidden",children:_w(Lm,{treatment:Zs(a,"image"),children:[Po(kd,{posterSrc:Mr(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Po(Fm,{color:n.tintColor,opacity:n.tintOpacity})]})}),Po(Bm,{part:"image2",editing:t,marked:r,entrance:Td(a,"image2"),scroll:Pd(a,"image2"),origins:Rm(s),className:`relative overflow-hidden ${zc({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:_w(Lm,{treatment:Zs(a,"image2"),children:[Po(kd,{posterSrc:Mr(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Po(Fm,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as En,Fragment as rce,jsxs as ace}from"react/jsx-runtime";import{useEffect as nce,useState as sce}from"react";import{PlaySolidIcon as lce}from"efficient-shell/icons/efficient-looks";function F2({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=sce("large");return nce(()=>n("large"),[e]),e?ace(rce,{children:[!o&&a!=="none"&&En(g2,{src:a==="large"?Gv(e):zv(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&En("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:En("iframe",{src:ax(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function B2({youTubeId:e,fileSrc:o,playing:t,onPlay:r,editing:a}){return!e&&!o?null:t&&!a?e?En("iframe",{src:ax(e,"click"),title:nx,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):En("video",{src:o,controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain"}):En("button",{type:"button","aria-label":nx,onClick:a?void 0:r,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${a?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:En(lce,{size:28})})}function D2(e,o){if(!e)return[];let t=`[${o}]`;return Array.from(e.querySelectorAll(t)).filter(r=>{let a=r.parentElement?.closest(t);return!a||a===e||!e.contains(a)})}var N2=["top","middle","bottom"],M2=["left","center","right"],H2="bottom",W2="left",ice={top:"Top",middle:"Middle",bottom:"Bottom"},dce={left:"Left",center:"Center",right:"Right"},L8e="Up and down",F8e="Sideways",cce={top:"flex-start",middle:"center",bottom:"flex-end"},fce={left:"flex-start",center:"center",right:"flex-end"},pce="--sf-hero-phone-y",uce="--sf-hero-phone-x";function mce(e){return N2.includes(e)?e:H2}function hce(e){return M2.includes(e)?e:W2}function G2(e,o){let t=mce(e),r=hce(o),a={};return t!==H2&&(a[pce]=cce[t]),r!==W2&&(a[uce]=fce[r]),a}function B8e(){return N2.map(e=>({label:ice[e],value:e}))}function D8e(){return M2.map(e=>({label:dce[e],value:e}))}import{hexToRgb as xce}from"efficient-shell/format";var Ice=!0;var gce=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function z2(e){let o=xce(e);return o?`${o.r},${o.g},${o.b}`:null}function U2(e){return e==null?Ice:e!==!1}function $2(e){let o=(e?z2(e):null)??z2(_t);return`linear-gradient(180deg, ${gce.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as j2}from"efficient-shell/format";var K2="bottom";var bce=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],yce={bottom:180,top:0,left:270,right:90},Sce=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],wce=[[null,33],[.6,67],[.94,100]];function Cce(e,o){let{r:t,g:r,b:a}=j2(e)??j2(_t);return`rgba(${t},${r},${a},${o})`}function V2(e){return to(bce,K2,e)}function Y2(e=_t,o=K2){let t=V2(o),r=(t==="top"||t==="bottom"?Sce:wce).map(([a,n])=>`${a===null?"transparent":Cce(e,a)} ${n}%`);return`linear-gradient(${yce[t]}deg, ${r.join(", ")})`}function q2(e,o){let t=q(e.overlayColor),r=q(e.overlayPosition),a=q(o)??_t;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:V2(r)}}import{jsx as kce}from"react/jsx-runtime";var X2="sf-photo-hover";function Z2({sheet:e,name:o=X2}){return e?kce("style",{href:o,precedence:X2,dangerouslySetInnerHTML:{__html:e}}):null}var Oce=vce({});function dYe({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,objectPositionPhone:l,objectPositionTablet:d,tintColor:c=_t,tintOpacity:f=0,groups:u,editing:p=!1,themeClassName:h,themeStyle:I,overlayColor:g,overlayPosition:T,mediaLayout:S,mediaLayoutPhone:C,mediaImage2:y,objectPosition2:b,objectPosition2Phone:E,objectPosition2Tablet:H,tintColor2:v=_t,tintOpacity2:M=0,videoSource:P,youtubeUrl:F,videoPlayback:k,partMotion:A,laterSlide:L=!1}){let R=Dr(),{alignment:G="left",textureOpacity:$,textureOn:oe,textureColor:re,quietVideo:be,phoneUpDown:de,phoneSideways:_e,holdReel:je,reelHeld:ge,shownSlide:Ae,ratioMin:Le}=Tce(Oce),De=Cd(),so=L&&De==="first",No=Ece(null),[he,Ke]=Q2(Ae===void 0?void 0:!1);Pce(()=>{let _n=No.current;Ke(Ae===void 0||!_n?void 0:D2(_n.closest(".hero-track"),"data-slide-name")[Ae]===_n)});let Te=t==="video",Oe=Te?Mr(r):void 0,Ze=Te?Mr(n):Mr(r)??Mr(n),Gt=typeof a=="number"?a/100:1,{fromYouTube:Zo,onClick:D,youTubeId:Pe,backgroundFile:Se,desktopLayout:eo,phoneLayout:We,twoPictures:yt}=E2({isVideo:Te,videoSource:P,videoPlayback:k,youtubeUrl:F,mediaLayout:S,mediaLayoutPhone:C}),[zt,oo]=Q2(!1);zt&&ge===!1&&oo(!1);let St=!zt,Ut=q2({overlayColor:g,overlayPosition:T},re),On=Te?null:Td(A,"image"),Qs=Te?null:Pd(A,"image"),cr=A2(A),fa=bt(Lm,{treatment:Te?{}:Zs(A,"image"),children:bt(kd,{videoSrc:Se?Oe:void 0,posterSrc:Ze,showVideo:Se,playbackRate:Gt,objectPosition:s,objectPositionPhone:Te?void 0:l,objectPositionTablet:Te?void 0:d,quiet:be,slideShown:he,laterSlide:L,laterOfLead:so})}),el=J2("section",{ref:No,className:Nr(`${Le?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${h?` ${h}`:""}`,R.className),...R.attrs,style:I,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Se&&Oe?"video":"still",...cr.hostAttrs,children:[bt(Z2,{sheet:cr.sheet}),bt(R2,{partMotion:A,editing:p,children:yt?bt(L2,{laterSlide:L,desktopLayout:eo,phoneLayout:We,editing:p,marked:!1,partMotion:A,first:{src:r,objectPosition:s,objectPositionPhone:l,objectPositionTablet:d,tintColor:c,tintOpacity:f},second:{src:y,objectPosition:b,objectPositionPhone:E,objectPositionTablet:H,tintColor:v,tintOpacity:M}}):Zo||On||Qs?J2(Bm,{part:Te?"media":"image",editing:p,marked:!1,entrance:On,scroll:Qs,origins:Rm({objectPosition:s,objectPositionTablet:d,objectPositionPhone:l}),className:"absolute inset-0 z-[1]",children:[fa,Zo&&bt(F2,{youTubeId:Pe,ownPoster:!!Ze,background:!D,editing:p})]}):fa}),D&&bt(B2,{youTubeId:Pe,fileSrc:Zo?void 0:Oe,playing:zt,onPlay:()=>{oo(!0),je?.()},editing:p}),St&&!yt&&bt(Fm,{color:c,opacity:f,passClicks:!1}),St&&U2(oe)&&bt("div",{className:"absolute inset-0 z-[2]",style:{background:Ut.own?Y2(Ut.color,Ut.position??void 0):$2(Ut.color),...$!==void 0?{opacity:$/100}:null}}),St&&bt("div",{className:[Le?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",p?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...yC,...G2(de,_e)},children:u&&bt(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return R.scope(so?bt(I2,{children:el}):el)}var e4=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as t4}from"efficient-easel/draw";import{isNodeList as _ce}from"efficient-easel/data";var r4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,_ce(r)?r.map(a=>r4(a,o)):r]))}}),Ace=e=>{let[o]=Je([RS()],a=>t4(a)),{id:t,...r}=r4(o,e).props;return r},ir={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>e4.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${ur.toLowerCase()}`,seeds:()=>[],addBlocked:nh,notice:sh},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${ur.toLowerCase()}`,seeds:()=>[],addBlocked:nh,notice:sh},ProcessSteps:{slot:nm,childType:U,addLabel:`Add ${ur.toLowerCase()}`,seeds:e=>Array.from({length:AS},()=>Ace(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},o4=1,Rce={slot:ui,childType:U,addLabel:`Add ${ur.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=o4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>o4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},a4={Hero:{[ui]:Rce}};function yYe(e){for(let[o,t]of Object.entries(e)){if(o in ir&&ir[o]!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ir[o]=t}}function SYe(e,o){let t=ir[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:t4(t.childType),...r}}))}:null}var s4=()=>({}),l4=new Map;function Lce(e){let o=l4.get(e);if(o)return o;let t=new Set,r=ir[e];if(r)for(let s of r.seeds(s4))for(let l of n4({type:r.childType,props:s}))t.add(l);let a=Ks(e);if(a){let s=0;for(let l of n4(a(s4,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return l4.set(e,n),n}function Fce(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=yy(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=d=>{if(r.has(d))return!1;if(a.has(d))return!0;let c=xk(d);return!c||!o[c]?!1:t?t.has(d):!0},s=new Map,l=d=>{let c=s.get(d);if(c!==void 0)return c;s.set(d,!1);let f=n(d)&&Lce(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var Bce="block-offer";function Aw(e=i4()){return e.cache(Bce,()=>Fce($c(e)))}function d4(e,o=i4()){let t=Aw(o);return t?t.offers(e):!0}function Dce(e){let o=Sm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Ib.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Ib.sectionAccent}}}var Nce={Hero:{[ui]:{newChild:Dce,childLabel:Jd.Ticker}}},c4=Object.fromEntries(Object.entries(a4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...Nce[e]?.[t]}]))]));function f4(e,o=0,t,r){let a=Hce(Wce(e,o,r),t),n=a?Aw():null;return a&&n?Mce(a,n):a}function Mce(e,o){if(e.spec)return o.offers(e.spec.childType)?e:null;let t=e.choices??[],r=t.filter(a=>o.offers(a.type));return r.length===t.length?e:r.length>0?{...e,choices:r}:null}function Hce(e,o){if(!e||e.source!=="container"||!o||!vv())return e;let t=Cl({data:o.data},o.id),r=typeof t?.type=="string"?Tv(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function Wce(e,o,t){let r=t?c4[e]?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=ir[e];if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=bk(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=vL(e);return s?{source:"footer",slot:kL,choices:s,spec:null}:null}function p4(e,o=qh(e.type)){return Ev(e.type)?o.map(t=>{let r=Ov(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as Gce}from"react";var Rw=null,Lw=new Set;function u4(e){if(Rw!==e){Rw=e;for(let o of Lw)o()}}function zce(e){return Lw.add(e),()=>{Lw.delete(e)}}function YYe(){return Gce(zce,()=>Rw,()=>null)}function m4(e){return vl(e)?.ownerId??null}function h4(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||i("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:i("Text")}return e.type==="FooterEmailSignup"?t.heading||i("Email signup"):o(e.type)}var x4="sf-editor-left-view";function I4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(x4);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function g4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(x4,e)}catch{}}function b4(e,o){return e==="styles"&&!o?"sections":e}function y4(e,o){return e?"sections":o}import{copyNode as Uce}from"efficient-easel/data";function S4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Et(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?i("On 1 page"):i("On {count} pages",{count:a.length}):i("On other pages")}var w4={usedOn:e=>{let o=Et(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>vc()?.openPage(e),adopt:(e,o)=>Et()?.adopt(e.props.id,o),nodeOf:e=>Et()?.place(e)??null,detach:e=>{let o=vc()?.config;return o?Uce(e,o):e},removed:()=>vc()?.reload()};import{sharedSectionsOf as Xfe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Zfe,scrollPreviewToTop as V4}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as Dw,Fragment as hfe,jsxs as xfe}from"react/jsx-runtime";import{useContext as Ife,useEffect as gfe,useMemo as Hw,useRef as L4}from"react";import{EaselCanvas as bfe,repeatCopyAt as yfe,useEasel as Sfe}from"efficient-easel/easel";import{jsx as T4,Fragment as Xce,jsxs as Zce}from"react/jsx-runtime";import{useEffect as P4,useLayoutEffect as Jce}from"react";var Dm="data-theme",C4="light";function $ce(e){return e.getAttribute(Dm)===C4?"light":"dark"}function jce(e,o){return $ce(e)===o?!1:(o==="light"?e.setAttribute(Dm,C4):e.removeAttribute(Dm),!0)}function Kce(e){return ih(e).getItem(Zm)}function n7e(e,o){ih(e).setItem(Zm,o)}function Vce(e,o,t=new Date().getHours()){return Qw({mode:o.mode,override:Kce(e),switchShown:o.switchShown,hour:t})}function k4(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>jce(t,Vce(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Dm]}),()=>n.disconnect()}var Yce="style";function qce(e,o){let t=dC(o),r=!1;for(let a of iC){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function v4(e,o){let t=e.body;if(!t)return()=>{};let r=()=>qce(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Yce]}),()=>n.disconnect()}var Qce=`
400
- [${Bt}][${Bt}] { cursor: text; }
401
- `;function E4({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=xe(),n=lo(t);return P4(()=>{if(o)return k4(o,{mode:r,switchShown:a})},[o,r,a]),P4(()=>{if(o)return v4(o,n)},[o,n]),Jce(()=>{if(o)return ML(o)},[o]),Zce(Xce,{children:[T4(rk,{}),T4("style",{children:Qce}),e]})}import{jsx as Fw}from"react/jsx-runtime";import{useEffect as efe,useState as ofe}from"react";import{Banner as tfe}from"efficient-shell/ui";var Nm={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},rfe={load:"{section} could not load. It stays on the page as it was. Reload to try again.",lock:"{name} is editing {section}. Nothing you change in it here is saved.",conflict:"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.",save:"{section} did not save. It is sent again with your next change."},afe=Nm.load,nfe=Nm.lock,sfe=Nm.conflict,lfe=Nm.save;function ife(e){if(!e)return null;if(e.loadFailed)return i(afe);if(e.lockHolder)return i(nfe,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(sfe);if(e.saveFailed)return i(lfe);let o=e.sections?.[0];if(!o)return null;let t=o.title||i("A shared section"),r=o.holder?.name||i("Somebody else");return i(rfe[o.problem],{section:t,name:r})}function dfe({report:e}){let o=ife(Tm(e)),[t,r]=ofe(null);return efe(()=>{o||r(null)},[o]),!o||t===o?null:Fw("aside",{className:"sf-canvas-notice",children:Fw(tfe,{tone:"warning",onDismiss:()=>r(o),children:o})})}function O4(){return Fw(dfe,{report:Pm()})}import{jsx as Mm}from"react/jsx-runtime";import{useState as _4}from"react";import{Banner as cfe,Button as ffe}from"efficient-shell/ui";import{UndoIcon as pfe}from"efficient-shell/icons/efficient";import{useScreenDocument as ufe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as mfe}from"efficient-easel/easel";function A4(){let e=GH(),{adapter:o,flushSave:t,reloadFromServer:r}=ufe(),a=o.siteVersions,[n,s]=_4(!1),[l,d]=_4(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await $H({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=mfe({onPress:()=>{c()},busy:n});return e?Mm("aside",{className:"sf-canvas-notice",children:Mm(cfe,{tone:l?"danger":"info",title:e.title,onDismiss:Em,action:a&&e.undo?Mm(ffe,{variant:"secondary",size:"sm",leftIcon:Mm(pfe,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:i("Undo")}):void 0,children:l?i("Undo did not work. Nothing changed. Try again."):i("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as wfe,REPEAT_ATTRIBUTE as Nw,REPEAT_INDEX_ATTRIBUTE as Mw}from"efficient-easel/draw";import{usePreviewParts as Cfe}from"efficient-easel/draw/client";var R4=null;function Bw(e){R4=e}function A7e(){return R4}import{ScreenDocumentContext as kfe}from"efficient-easel/screen/components/ScreenDocumentContext";function F4(e){let{mirrorHostStyles:o}=fh(),t=nk(),{sectionBackgroundWidth:r,themeFromDocument:a}=xe(),n=VC(),s=Ife(kfe),l=Tc(s?.docId??null),d=Sfe(S=>S.appState.data),c=cT(l,d),f=JSON.stringify(c),u=Hw(()=>c,[f]),p=Hw(()=>({...e.metadata??t??{},...wO(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);gfe(()=>(Bw(n),()=>Bw(null)),[n]);let h=L4(null),I=vfe(h),{onDocument:g}=e,T=S=>{h.current=S,g?.(S)};return xfe(hfe,{children:[Dw(A4,{}),Dw(O4,{}),Dw(bfe,{...e,onDocument:T,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:E4})]})}function vfe(e){let o=qd(),t=Cfe(),r=L4({parts:t});return r.current={parts:t},Hw(()=>{let a=(n,s)=>{let l=Zf(n,o),d,c=null,f=s??(l?null:kg(null,e.current,n)),u=!l&&f?yfe(f):null,p=u?wfe(n):null;if(u&&f&&p?.propKey){l=Qf({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let T=f.closest(`[${Nw}][${Mw}]`),S=`[${Nw}="${Jf(T?.getAttribute(Nw)??"")}"][${Mw}="${Jf(T?.getAttribute(Mw)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!l)return null;let h=f,I=()=>(h=kg(h,c?c():h?.ownerDocument??e.current,n),h),g=I();return g?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:d,toolbar:{offered:l.offered,colors:l.offered.length>0?Xn(cP(g)):void 0,colorNameOf:et}}:null};return{at:n=>{let s=n.closest(`[${Bt}]`),l=s?.getAttribute(Bt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>q0(n,o),copyValue:n=>Y0(n,o),onChange:n=>{if(!n.typing){vg(null);return}let s=n.element.closest(`[${Bt}]`)?.getAttribute(Bt)??null;vg(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Tfe=KC.mediaFields,Pfe=/video|poster|focal|phone/i;function Efe(e){return(Tfe[e]??[]).find(o=>!o.includes("[]")&&!Pfe.test(o))??null}function Ofe(e){let o=Efe(e.type);return e.type!==U?o&&Sl(e.type,e.props,o)?{fromData:!0}:o:Mc(e.props)?{fromData:!0}:o}var B4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Ofe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var D4={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as Hm}from"react/jsx-runtime";import{useState as _fe}from"react";import{Button as Afe,Tooltip as Rfe,toast as N4}from"efficient-shell/ui";import{TemplateIcon as Lfe}from"efficient-easel/icons";import{useSettledAction as Ffe}from"efficient-easel/easel";import{useScreenDocument as Bfe}from"efficient-easel/screen/components/ScreenDocumentContext";function H4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Bfe(),[a,n]=_fe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():N4.error(i(M4))}catch{N4.error(i(M4))}finally{n(!1)}}},l=Ffe({onPress:()=>{s()},busy:a});return Hm(Rfe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:Hm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Hm(Afe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Hm(Lfe,{size:15}),children:i("Save as Template")})})})}var M4="Your last changes did not save, so the template was not made. Try again.";var Dfe="Save your page changes first";function W4(e){return e.hasTrustedConsole?e.canCreatePlatformTemplate?!e.capabilities.canPublish||!e.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:e.siteId?e.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:Dfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var G4="storefront-editor:save-as-template";var Ed="ContactLocations",Nfe="CityPictures",Mfe="CityMaps",Hfe=[{key:Nfe,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:Mfe,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function z4(e=Ni){let o=Hr.find(t=>t.sections.some(r=>r.type===Ed))?.key;return!e.includes(Ed)||!o?[]:Hfe.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:Ed,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ra(Ed);return l?km(Ed,l,n)(s.nodeDefaults,s.newNodeId):null}}))}function $4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Ks(e);if(n)return n(o,t,ym());if(sv(e)&&a(U)&&a(zn))return{type:U,props:{...o(U),id:t(U),direction:"column",name:`${r(e)} section`,content:[{type:zn,props:{...o(zn),id:t(zn),...Lo[e]?.headStyle?{headStyle:Lo[e].headStyle}:{},...Lo[e]?.headRowGap?{rowGap:Lo[e].headRowGap}:{},...Lo[e]?.headDescriptionSize?{descriptionSize:Lo[e].headDescriptionSize}:{},...ji(e)!==ji(zn)?{eyebrowLook:ji(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...U4(e,t)}}]}};if(ir[e]?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=U4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function U4(e,o){return e==="Cards"?{template:dc(t=>o(t))}:e===ml?{template:Mh(t=>o(t))}:{}}import{useEffect as Wfe,useState as Gfe}from"react";import{useEaselSession as zfe}from"efficient-easel/screen/lib/session-context";function j4(){let e=zfe().chrome?.products?.list,[o,t]=Gfe(null);return Wfe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function o5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=qA(),a=Q4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Js(d=>{d&&(o({kind:"ticker",heroId:d}),Zfe(d))},[o]);return dr(()=>{t(s)},[s,t]),dr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&gb(d.props)&&go(Z4,{icon:go(on,{type:"ticker",size:13}),name:i(pi),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function t5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Op(),a=Q4().tree,{appState:n}=J4(p=>p),s=n.data.content??[],l=Ufe(s);l.current=s;let d=e,c=Qa.find(p=>hi[p]===d.kind),f=c&&"nodeId"in d?xi(String(d.nodeId),c):null,u=Js(p=>{let h=rR(p);if(!h)return;let I=l.current.findIndex(T=>String(T.props.id)===h.nodeId);if(I<0)return;let g={kind:hi[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return dr(()=>{t(f)},[f,t]),dr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=tR(p);if(g.length===0)return null;let T=y=>{let b=xi(I,y.part);return go(Z4,{icon:go(on,{type:y.part==="media"?"heroMedia":"heroImage",size:13}),name:i(y.label),onSelect:()=>u(b),selected:f===b,rowProps:{onClick:h(()=>u(b))},words:a},b)},[S,...C]=g;return Od(X4,{children:[T(S),C.length>0&&go(Yfe,{children:C.map(T)})]})}}}function r5(e,o){return{partRows:(t,r)=>Od(X4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Jfe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=Wm(),{hasPreviewLink:f}=t,u=Ve(e5()).preview?.draftLink,p=ZH(e.data),h=W4({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Js(()=>{!a||!r||d(G4,{siteId:a,slug:r})},[d,a,r]),g=OH({pageSlug:r,siteId:a,token:c}),T=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&go(H4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&go(RH,{liveHref:T,pageId:n??null,draftLink:u}),mainAction:p}}function Qfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Wm(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=K4(ws[0].id),[p,h]=K4(!1),{surface:I,setSurface:g}=YA(),T=()=>{if(l){c("styles"),o.reveal(),V4();return}e.show(rw),e.reveal(),V4()},S={id:"pages",label:i("Pages"),icon:go(jfe,{}),panel:({onHide:y})=>go(MA,{activeSurface:I,onPreviewSurface:g,onNavigate:b=>{g(null),s(r?{kind:"template",id:r,pageSlug:b}:{kind:"page",slug:b,siteId:a??void 0})},onClose:y})},C=[];return!l&&d&&C.push({id:"appearance",label:i("Appearance"),icon:go(Vfe,{}),active:e.kind==="website",onSelect:T}),l&&C.push({id:"styles",label:i("Styles"),icon:go(Kfe,{}),panel:({onHide:y,notify:b})=>go(EM,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[S],railTrail:C,resolveLeftView:y=>b4(y,l),openSettings:T,openStyles:()=>{u(yA),c("styles")},openPageStyles:l?()=>{u(ks),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(xM),e.reveal()}:void 0}}function epe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Wm(),a=J4(s=>s.config),n=e5();dr(()=>(px({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>px(null)),[e,o,t,a]),dr(()=>{let s=Et();if(!s||!r)return;let l=!1;return Xfe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function a5(){let e=qd();return Js(o=>{X0(o,e)},[e])}function ope(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;dr(()=>{u4(s?.type==="BookingBox"&&s.props.region==="confirm"?m4(l(String(s.props.id))):null)},[s?.props.id]);let d=qM(e,o),{capabilities:{hasSiteSettings:c}}=Wm();epe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Ep(),I=Js(()=>n(IM),[n]),g=a==="chat";dr(()=>{p(g)},[g,p]),dr(()=>{h(I)},[h,I]);let{setOpenHandler:T}=fi(),S=Js(()=>n(gM),[n]);dr(()=>{T(S)},[T,S]);let C=r5(o5(e),t5(e)),y=Jfe(o),b=Qfe(e,r),E=t.device,H=a5();return{...C,...y,...b,hasOwnRows:v=>v.type===bm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:v=>go(ph.Provider,{value:!0,children:Od(qfe.Provider,{value:E,children:[v,go(n2,{})]})}),addPanelRow:v=>c?Od("div",{className:"sf-addside-sitewide",children:[go("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:go(on,{type:"chat",size:16})}),Od("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{v(),I()},children:[i("Live chat"),go("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),go($fe,{checked:f.enabled,onChange:M=>u({enabled:M}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var Y4=null,Ww=new WeakMap;function tpe(e){let o=ok();if(!e||!o)return e;Y4!==o&&(Y4=o,Ww=new WeakMap);let t=Ww.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:i(r.label)})):null,spec:e.spec?{...e.spec,addLabel:i(e.spec.addLabel),...e.spec.childLabel?{childLabel:i(e.spec.childLabel)}:{}}:null},Ww.set(e,t)),t}var rpe={isLockedBlock:(e,o)=>Vp(e,o)||!!(o&&Et()?.heldElsewhere(o.props.id)),duplicateBlocked:gu,nestDepth:(e,o,t)=>o===TC?OC(e,t):0,newSectionNode:$4,canAddTo:(e,o,t,r)=>tpe(f4(e,o,r,t)),blockIsOffered:d4,slotsOf:p4,resolveOnInsert:!0},ape=new Proxy(D4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),npe={labelAtLevel:(e,o,t)=>i(Ih(e,o,t)),descriptions:ape,categoryLabel:e=>{let o=s2(e);return o===void 0?void 0:i(o)},firstSection:l2,blockRowName:h4,rowName:Yp,plainText:mr,Icon:on,Thumbnail:TM,useProducts:j4,presets:z4()},spe={desktop:2e3,tablet:800,mobile:390},q4="desktop",lpe={options:$A,initial:q4,fluid:q4,widths:spe,hidesPerView:!0},ipe={read:I4,write:e=>g4(e),forSelection:(e,o)=>y4(e,o)},dpe={first:Vo,last:He,firstGroup:Me,lastGroup:Re,isSectionGroup:jn,sectionGroupZone:jv,panelOf:e=>e===Vo?hM:null,get sharedReach(){return sn()?fpe:void 0},get shared(){return Et()?w4:void 0},get groupTab(){return sn()?TL:void 0},get groupBadge(){return sn()?Oy({type:Re})??void 0:void 0},get changeNotice(){return sn()?PL():void 0},get band(){return sn()?cpe:void 0},get groupAccepts(){return sn()?Yv:void 0}},cpe={foldable:!0},fpe=e=>Oy(e)??S4(e);function ppe(e){return{...r5(o5(e),t5(e)),onCopyItem:a5(),openSettings:()=>e.show(rw)}}function upe(e,o){aH(e,o),kH()}var U9e={useOwnerName:vs,useDocumentLabel:TA,useBridges:ope,useStandaloneBridges:ppe,useDocumentPass:upe,blockRules:rpe,blockLook:npe,devices:lpe,leftView:ipe,pinned:dpe,Canvas:F4,canvasDrag:{media:B4},Inspector:yM};export{Vt as a,q as b,bo as c,A5 as d,vt as e,ll as f,Hpe as g,ik as h,Wpe as i,uh as j,R5 as k,Gpe as l,zpe as m,fk as n,Xd as o,pk as p,Upe as q,ro as r,N5 as s,$pe as t,Kpe as u,Vpe as v,Ype as w,Jd as x,ur as y,ee as z,U as A,Ik as B,oue as C,bk as D,aue as E,nue as F,ya as G,_k as H,mr as I,bue as J,K,Fk as L,Cue as M,Xe as N,Ca as O,Oue as P,_ue as Q,Aue as R,we as S,Mk as T,Rue as U,Lue as V,jk as W,Yk as X,W as Y,Y as Z,sc as _,O as $,Ne as aa,Zt as ba,lc as ca,N as da,yo as ea,fl as fa,Tt as ga,Je as ha,ul as ia,ae as ja,zr as ka,ic as la,Dh as ma,Nh as na,Xk as oa,Jk as pa,ov as qa,mme as ra,Hh as sa,Wh as ta,G6 as ua,va,Gn as wa,Ge as xa,gme as ya,hl as za,Lo as Aa,fc as Ba,wme as Ca,lv as Da,Cme as Ea,kme as Fa,pc as Ga,uc as Ha,Un as Ia,xl as Ja,j6 as Ka,Gh as La,J6 as Ma,Ur as Na,yv as Oa,fo as Pa,Fo as Qa,Eo as Ra,Jt as Sa,wv as Ta,bl as Ua,Cv as Va,she as Wa,lhe as Xa,cW as Ya,kv as Za,Tv as _a,ihe as $a,dhe as ab,Ev as bb,qh as cb,pW as db,uW as eb,hW as fb,_v as gb,xc as hb,che as ib,Qo as jb,yl as kb,Zh as lb,gl as mb,fhe as nb,phe as ob,wl as pb,gW as qb,uhe as rb,Cl as sb,Qh as tb,ex as ub,mhe as vb,Rv as wb,yy as xb,Ve as yb,$c as zb,yu as Ab,KMe as Bb,nr as Cb,sr as Db,ho as Eb,tHe as Fb,Ay as Gb,J1e as Hb,Bp as Ib,yi as Jb,Si as Kb,SR as Lb,Q1e as Mb,wR as Nb,eLe as Ob,$Z as Pb,CR as Qb,oLe as Rb,vR as Sb,nH as Tb,zje as Ub,xpe as Vb,ne as Wb,i as Xb,Ro as Yb,sH as Zb,jje as _b,wo as $b,c$ as ac,II as bc,xwe as cc,FE as dc,bwe as ec,rt as fc,gI as gc,Swe as hc,wwe as ic,Cwe as jc,cf as kc,kwe as lc,ff as mc,vwe as nc,Twe as oc,ME as pc,HE as qc,g$ as rc,b$ as sc,_we as tc,Rwe as uc,Lwe as vc,Fwe as wc,Bwe as xc,yO as yc,Wa as zc,Lj as Ac,FCe as Bc,Fj as Cc,BCe as Dc,po as Ec,Bj as Fc,DCe as Gc,NCe as Hc,MCe as Ic,HCe as Jc,WCe as Kc,GCe as Lc,ls as Mc,zCe as Nc,fHe as Oc,pHe as Pc,uHe as Qc,mHe as Rc,hHe as Sc,oQ as Tc,ZR as Uc,JR as Vc,QR as Wc,_s as Xc,$p as Yc,mFe as Zc,lCe as _c,Na as $c,sj as ad,EI as bd,Ul as cd,iCe as dd,dCe as ed,_I as fd,rO as gd,cCe as hd,hf as id,j$ as jd,zwe as kd,SI as ld,UE as md,Uwe as nd,$we as od,KL as pd,cP as qd,sge as rd,Yr as sd,rG as td,lge as ud,ige as vd,Nx as wd,dge as xd,cge as yd,fge as zd,pP as Ad,Dx as Bd,nG as Cd,pge as Dd,uge as Ed,mge as Fd,hge as Gd,VL as Hd,pn as Id,bHe as Jd,yHe as Kd,SHe as Ld,YL as Md,wHe as Nd,qL as Od,Cu as Pd,JL as Qd,LHe as Rd,FHe as Sd,Vl as Td,rr as Ud,Al as Vd,bge as Wd,yge as Xd,xo as Yd,hn as Zd,X as _d,Ns as $d,te as ae,J as be,se as ce,le as de,me as ee,s2e as fe,fe as ge,Ms as he,My as ie,Ui as je,$i as ke,tF as le,c2e as me,kre as ne,rF as oe,u2e as pe,m2e as qe,aF as re,vre as se,nF as te,Tre as ue,ji as ve,sF as we,I2e as xe,Wy as ye,y2e as ze,S2e as Ae,w2e as Be,C2e as Ce,k2e as De,v2e as Ee,Lc as Fe,E2e as Ge,Ou as He,Ki as Ie,O2e as Je,_2e as Ke,iF as Le,A2e as Me,Are as Ne,Rre as Oe,R2e as Pe,Lre as Qe,L2e as Re,dF as Se,M2e as Te,H2e as Ue,W2e as Ve,G2e as We,z2e as Xe,U2e as Ye,Dre as Ze,Nre as _e,$2e as $e,j2e as af,K2e as bf,V2e as cf,Y2e as df,q2e as ef,X2e as ff,Z2e as gf,J2e as hf,Ru as if,uF as jf,Yre as kf,n4e as lf,s4e as mf,Fu as nf,zy as of,xF as pf,Bu as qf,f4e as rf,qre as sf,Xre as tf,Zre as uf,p4e as vf,Xo as wf,gn as xf,Gs as yf,Y4e as zf,q4e as Af,X4e as Bf,tB as Cf,rB as Df,Fae as Ef,m5e as Ff,aB as Gf,nB as Hf,sB as If,I5e as Jf,y5e as Kf,Vu as Lf,lB as Mf,Hae as Nf,S5e as Of,UU as Pf,At as Qf,FSe as Rf,BSe as Sf,DSe as Tf,NSe as Uf,nf as Vf,MSe as Wf,bf as Xf,jl as Yf,gCe as Zf,bCe as _f,yCe as $f,iO as ag,dO as bg,cO as cg,SCe as dg,Me as eg,Re as fg,Lhe as gg,Kv as hg,wc as ig,OL as jg,M5e as kg,H5e as lg,IB as mg,W5e as ng,G5e as og,ps as pg,Ll as qg,cg as rg,ug as sg,Kf as tg,Bt as ug,ePe as vg,oPe as wg,tPe as xg,rPe as yg,O8 as zg,_8 as Ag,aPe as Bg,us as Cg,hg as Dg,nPe as Eg,sPe as Fg,cp as Gg,ai as Hg,Hg as Ig,Is as Jg,Ya as Kg,MOe as Lg,ni as Mg,B_ as Ng,HOe as Og,Yg as Pg,WOe as Qg,GOe as Rg,zOe as Sg,D7 as Tg,UOe as Ug,W7 as Vg,G7 as Wg,$Oe as Xg,jOe as Yg,U7 as Zg,PB as _g,iS as $g,vi as ah,G1 as bh,z1 as ch,Ti as dh,k1 as eh,fy as fh,NBe as gh,ln as hh,uy as ih,P1 as jh,E1 as kh,my as lh,Lee as mh,O1 as nh,Jp as oh,_1 as ph,g6e as qh,RB as rh,b6e as sh,y6e as th,S6e as uh,sd as vh,Zu as wh,E6e as xh,A6e as yh,$6e as zh,mS as Ah,j6e as Bh,HB as Ch,WB as Dh,Or as Eh,tWe as Fh,zB as Gh,rWe as Hh,$B as Ih,Qe as Jh,Fe as Kh,Qu as Lh,VB as Mh,cWe as Nh,em as Oh,YB as Ph,hWe as Qh,AWe as Rh,nD as Sh,vS as Th,sD as Uh,FWe as Vh,BWe as Wh,DWe as Xh,TS as Yh,NWe as Zh,MWe as _h,lD as $h,nm as ai,rse as bi,sm as ci,b3e as di,LS as ei,lse as fi,FS as gi,hse as hi,F3e as ii,ND as ji,MD as ki,B3e as li,D3e as mi,Ig as ni,mPe as oi,gg as pi,F0 as qi,Y3e as ri,XD as si,ZD as ti,uGe as ui,kGe as vi,Ase as wi,Rse as xi,nN as yi,vGe as zi,TGe as Ai,VGe as Bi,PN as Ci,YGe as Di,EN as Ei,XGe as Fi,tle as Gi,DN as Hi,aze as Ii,cm as Ji,uze as Ki,id as Li,xze as Mi,zN as Ni,gze as Oi,UN as Pi,$N as Qi,Sze as Ri,qS as Si,lle as Ti,kze as Ui,ile as Vi,vze as Wi,Tze as Xi,fm as Yi,YN as Zi,_ze as _i,Aze as $i,Rze as aj,Lze as bj,_r as cj,Mze as dj,nM as ej,EVe as fj,OVe as gj,m2 as hj,_Ve as ij,BP as jj,cA as kj,A0e as lj,R0e as mj,bq as nj,L0e as oj,F0e as pj,B0e as qj,D0e as rj,yq as sj,N0e as tj,M0e as uj,H0e as vj,W0e as wj,kq as xj,G0e as yj,Ude as zj,g2 as Aj,BVe as Bj,kd as Cj,y2 as Dj,jr as Ej,uxe as Fj,qW as Gj,yx as Hj,Pl as Ij,mxe as Jj,Ixe as Kj,ZW as Lj,wT as Mj,gxe as Nj,Ea as Oj,t3 as Pj,kxe as Qj,vxe as Rj,El as Sj,Txe as Tj,Pxe as Uj,vx as Vj,PT as Wj,Fxe as Xj,QA as Yj,XAe as Zj,bb as _j,en as $j,eRe as ak,oRe as bk,yX as ck,tRe as dk,xi as ek,rR as fk,aR as gk,t8e as hk,Ow as ik,T2 as jk,w2 as kk,Pw as lk,Jde as mk,r8e as nk,Om as ok,vd as pk,a8e as qk,n8e as rk,s8e as sk,kW as tk,whe as uk,vW as vk,TW as wk,vhe as xk,PW as yk,EW as zk,The as Ak,Phe as Bk,Ehe as Ck,Ohe as Dk,E2 as Ek,Td as Fk,Pd as Gk,Rm as Hk,_2 as Ik,Zs as Jk,A2 as Kk,Lm as Lk,Fm as Mk,Bm as Nk,R2 as Ok,L2 as Pk,F2 as Qk,B2 as Rk,D2 as Sk,H2 as Tk,W2 as Uk,L8e as Vk,F8e as Wk,B8e as Xk,D8e as Yk,_t as Zk,Ice as _k,K2 as $k,bce as al,Y2 as bl,q2 as cl,Z2 as dl,Oce as el,dYe as fl,ZA as gl,jAe as hl,yYe as il,SYe as jl,Fce as kl,fj as ll,rs as ml,pCe as nl,xr as ol,MT as pl,FT as ql,Ox as rl,u3 as sl,qxe as tl,Ac as ul,WT as vl,m3 as wl,h3 as xl,x3 as yl,Jxe as zl,Qxe as Al,eIe as Bl,oIe as Cl,mCe as Dl,hCe as El,xCe as Fl,qhe as Gl,Qhe as Hl,A7e as Il,PDe as Jl,W1 as Kl,pi as Ll,HAe as Ml,qA as Nl,WAe as Ol,GAe as Pl,zAe as Ql,z$e as Rl,OM as Sl,_M as Tl,AM as Ul,CO as Vl,Yj as Wl,Co as Xl,it as Yl,kf as Zl,ql as _l,JCe as $l,QCe as am,oke as bm,tke as cm,rke as dm,ake as em,nke as fm,lke as gm,Tf as hm,TO as im,GI as jm,Xj as km,PO as lm,EO as mm,zxe as nm,Kxe as om,Rc as pm,Fc as qm,_l as rm,jT as sm,fIe as tm,pIe as um,ZT as vm,Rx as wm,eG as xm,XIe as ym,Cge as zm,_ge as Am,Age as Bm,EG as Cm,Uo as Dm,Rl as Em,qx as Fm,Xx as Gm,ybe as Hm,AP as Im,Sbe as Jm,wbe as Km,Cbe as Lm,MP as Mm,WP as Nm,br as Om,YP as Pm,pU as Qm,zye as Rm,rE as Sm,qye as Tm,nE as Um,dE as Vm,cE as Wm,fE as Xm,pE as Ym,uE as Zm,mE as _m,fI as $m,AU as an,RU as bn,Ml as cn,pI as dn,xE as en,ISe as fn,FU as gn,gSe as hn,bSe as in,ySe as jn,gE as kn,kSe as ln,NU as mn,vSe as nn,TSe as on,HU as pn,uI as qn,GU as rn,_Se as sn,zU as tn,ASe as un,xI as vn,KSe as wn,CE as xn,VU as yn,YSe as zn,Hl as An,l$ as Bn,mwe as Cn,Q$ as Dn,Qwe as En,oj as Fn,eCe as Gn,oCe as Hn,tCe as In,ss as Jn,wf as Kn,PCe as Ln,ECe as Mn,OCe as Nn,gO as On,ACe as Pn,ea as Qn,tK as Rn,oa as Sn,Ua as Tn,Hve as Un,Wve as Vn,Gve as Wn,zve as Xn,Uve as Yn,$ve as Zn,jve as _n,qve as $n,Xve as ao,iV as bo,Zve as co,Jve as do,Qve as eo,eTe as fo,oTe as go,tTe as ho,rTe as io,aTe as jo,pV as ko,nTe as lo,og as mo,sTe as no,Bf as oo,jo as po,vr as qo,s0 as ro,Dl as so,l0 as to,Nf as uo,lTe as vo,iTe as wo,BV as xo,dTe as yo,cTe as zo,fTe as Ao,pTe as Bo,uTe as Co,mTe as Do,ot as Eo,hTe as Fo,xTe as Go,Ef as Ho,Mf as Io,Hf as Jo,ag as Ko,Gf as Lo,ITe as Mo,u0 as No,gTe as Oo,r8 as Po,bTe as Qo,yTe as Ro,x0 as So,STe as To,wTe as Uo,CTe as Vo,kTe as Wo,vTe as Xo,TTe as Yo,ig as Zo,PTe as _o,g0 as $o,ETe as ap,OTe as bp,cs as cp,y0 as dp,_Te as ep,ATe as fp,RTe as gp,HFe as hp,WFe as ip,Yp as jp,sy as kp,sBe as lp,lBe as mp,w1 as np,ct as op,Mp as pp,AJ as qp,RJ as rp,RLe as sp,LLe as tp,FLe as up,BLe as vp,HR as wp,MLe as xp,HLe as yp,WLe as zp,b_ as Ap,y_ as Bp,Tp as Cp,HA as Dp,WA as Ep,zA as Fp,Pp as Gp,SAe as Hp,wAe as Ip,Ep as Jp,fX as Kp,RAe as Lp,fi as Mp,DAe as Np,YA as Op,$n as Pp,wW as Qp,bhe as Rp,yhe as Sp,lMe as Tp,iMe as Up,dMe as Vp,YAe as Wp,Op as Xp,Ppe as Yp,L8 as Zp,vPe as _p,TPe as $p,M0 as aq,PPe as bq,EPe as cq,Lg as dq,U_ as eq,n0e as fq,s0e as gq,l0e as hq,i0e as iq,dA as jq,J0e as kq,Q0e as lq,sR as mq,H1e as nq,uR as oq,Ei as pq,Ioe as qq,WDe as rq,VDe as sq,au as tq,He as uq,Iu as vq,Wt as wq,FM as xq,pd as yq,BM as zq,DM as Aq,V$e as Bq,Y$e as Cq,vH as Dq,ww as Eq,TH as Fq,f4 as Gq,YYe as Hq,Dm as Iq,$ce as Jq,jce as Kq,n7e as Lq,ype as Mq,kpe as Nq,U9e as Oq};