efficient-web-builder 73.0.0 → 73.2.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 (129) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/editor/components/SlotChildRows.js +1 -1
  3. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  4. package/dist/editor/components/StorefrontEditor.js +1 -1
  5. package/dist/editor/components/TickerSettingsPanel.js +1 -1
  6. package/dist/editor/components/storefront-editor.css +5 -4
  7. package/dist/editor/components/useHostDocumentBridge.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +5 -0
  12. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  13. package/dist/editor/lib/document/controls.d.ts +1 -0
  14. package/dist/editor/lib/document/controls.js +1 -1
  15. package/dist/editor/lib/document/field-groups.js +1 -1
  16. package/dist/editor/lib/document/footer-blocks.js +1 -1
  17. package/dist/editor/lib/document/own-pad-fields.d.ts +5 -0
  18. package/dist/editor/lib/document/own-pad-fields.js +1 -0
  19. package/dist/editor/lib/document/passes/inspector.js +1 -1
  20. package/dist/editor/lib/editor-document-adapter.js +1 -1
  21. package/dist/format/lib/animation/hover.js +1 -1
  22. package/dist/format/lib/content/accordion-row-style.d.ts +3 -1
  23. package/dist/format/lib/content/accordion-row-style.js +1 -1
  24. package/dist/format/lib/content/box-layout.js +1 -1
  25. package/dist/format/lib/content/box-shape.d.ts +1 -1
  26. package/dist/format/lib/content/button-icon.d.ts +3 -1
  27. package/dist/format/lib/content/button-icon.js +1 -1
  28. package/dist/format/lib/content/card-place.d.ts +3 -1
  29. package/dist/format/lib/content/card-place.js +1 -1
  30. package/dist/format/lib/content/chat-launcher.js +1 -1
  31. package/dist/format/lib/content/container-direction.js +1 -1
  32. package/dist/format/lib/content/footprint.d.ts +22 -0
  33. package/dist/format/lib/content/footprint.js +1 -1
  34. package/dist/format/lib/content/image-fit.js +1 -1
  35. package/dist/format/lib/content/image-text-rows.d.ts +5 -2
  36. package/dist/format/lib/content/image-text-rows.js +1 -1
  37. package/dist/format/lib/content/list-number.js +1 -1
  38. package/dist/format/lib/content/list-position.js +1 -1
  39. package/dist/format/lib/content/part-names.d.ts +27 -0
  40. package/dist/format/lib/content/part-names.js +1 -0
  41. package/dist/format/lib/content/section-css.d.ts +3 -0
  42. package/dist/format/lib/content/section-css.js +1 -0
  43. package/dist/format/lib/content/text-tag.js +1 -1
  44. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  45. package/dist/format/lib/document/box-footer.js +1 -1
  46. package/dist/format/lib/document/left-view.js +1 -1
  47. package/dist/format/lib/document/mockup-variant-fields.js +1 -1
  48. package/dist/format/lib/document/passes/types.d.ts +2 -0
  49. package/dist/format/lib/document/section-groups.js +1 -1
  50. package/dist/format/lib/editor-words-catalogue.d.ts +13 -0
  51. package/dist/format/lib/editor-words-catalogue.js +4 -4
  52. package/dist/format/lib/hero-arrows.js +1 -1
  53. package/dist/format/lib/hero-group-placement.js +1 -1
  54. package/dist/format/lib/hero-media-layout.js +1 -1
  55. package/dist/format/lib/hero-phone-stack.d.ts +12 -0
  56. package/dist/format/lib/hero-phone-stack.js +1 -1
  57. package/dist/format/lib/hero-video.js +1 -1
  58. package/dist/format/lib/reel.js +1 -1
  59. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  60. package/dist/format/lib/sections/section-head-placement.d.ts +3 -1
  61. package/dist/format/lib/sections/section-head-placement.js +1 -1
  62. package/dist/format/lib/source-rules/one-option-parser.d.ts +12 -0
  63. package/dist/format/lib/source-rules/one-option-parser.js +12 -0
  64. package/dist/format/lib/theme.d.ts +2 -1
  65. package/dist/format/lib/theme.js +4 -4
  66. package/dist/render/components/BlockFrame.d.ts +3 -1
  67. package/dist/render/components/BlockFrame.js +1 -1
  68. package/dist/render/components/BoxTabPaneContext.d.ts +2 -3
  69. package/dist/render/components/Btn.d.ts +3 -0
  70. package/dist/render/components/Btn.js +1 -1
  71. package/dist/render/components/ButtonBlock.d.ts +2 -0
  72. package/dist/render/components/ButtonBlock.js +1 -1
  73. package/dist/render/components/DealerFinder.d.ts +7 -1
  74. package/dist/render/components/DealerFinder.js +1 -1
  75. package/dist/render/components/Flex.js +1 -1
  76. package/dist/render/components/Footprint.d.ts +6 -2
  77. package/dist/render/components/Footprint.js +1 -1
  78. package/dist/render/components/Grid.js +1 -1
  79. package/dist/render/components/Heading.d.ts +1 -1
  80. package/dist/render/components/Heading.js +1 -1
  81. package/dist/render/components/HeroArrows.d.ts +4 -1
  82. package/dist/render/components/HeroArrows.js +1 -1
  83. package/dist/render/components/HeroPictures.js +1 -1
  84. package/dist/render/components/HeroPoster.js +1 -1
  85. package/dist/render/components/HeroSection.d.ts +4 -1
  86. package/dist/render/components/HeroSection.js +1 -1
  87. package/dist/render/components/HeroSingle.d.ts +4 -1
  88. package/dist/render/components/HeroSingle.js +1 -1
  89. package/dist/render/components/HeroSlide.d.ts +3 -0
  90. package/dist/render/components/HeroSlide.js +1 -1
  91. package/dist/render/components/ImageBlock.js +1 -1
  92. package/dist/render/components/Logo.d.ts +3 -1
  93. package/dist/render/components/Logo.js +1 -1
  94. package/dist/render/components/LogoBlock.js +1 -1
  95. package/dist/render/components/SideListLayout.d.ts +8 -2
  96. package/dist/render/components/SideListLayout.js +1 -1
  97. package/dist/render/components/SiteGutterFrame.d.ts +3 -1
  98. package/dist/render/components/SiteGutterFrame.js +1 -1
  99. package/dist/render/components/Text.d.ts +1 -1
  100. package/dist/render/components/Text.js +1 -1
  101. package/dist/render/lib/content/section-padding.d.ts +36 -2
  102. package/dist/render/lib/content/section-padding.js +1 -1
  103. package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
  104. package/dist/render/lib/document/blocks/general/CustomHTML/render.js +1 -1
  105. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  106. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  107. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  108. package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -1
  109. package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
  110. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  111. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  112. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  113. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  114. package/dist/render/lib/document/custom-css.d.ts +7 -3
  115. package/dist/render/lib/document/custom-css.js +2 -2
  116. package/dist/render/lib/document/header-clearance.js +1 -1
  117. package/dist/render/lib/document/header-ink.js +1 -1
  118. package/dist/render/lib/document/passes/index.js +1 -1
  119. package/dist/render/lib/document/passes/section-custom-css.d.ts +2 -0
  120. package/dist/render/lib/document/passes/section-custom-css.js +1 -0
  121. package/dist/render/lib/document/passes/section-padding.d.ts +4 -0
  122. package/dist/render/lib/document/passes/section-padding.js +1 -1
  123. package/dist/render/lib/document/sanitize.d.ts +4 -1
  124. package/dist/render/lib/document/sanitize.js +1 -1
  125. package/dist/render/lib/document/section-css-style.d.ts +4 -0
  126. package/dist/render/lib/document/section-css-style.js +1 -0
  127. package/dist/routine-index.json +1 -0
  128. package/dist/value-index.json +1 -0
  129. package/package.json +7 -6
@@ -1 +1 @@
1
- import{storedUnit as M}from"../../../format/lib/content/css-length.js";import{phoneKey as O,resolveViewValue as U,tabletKey as L,viewKeyAt as _}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as N,SITE_SIDE as j,convertLength as Y,isLengthUnit as k,isSiteSide as B,sideLengthAt as K,sideValueAt as $,withLength as g}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as R}from"../../../format/lib/content/page-width.js";import{viewRules as q}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as f}from"../../../format/lib/finite-number.js";const z={min:10,max:200,step:10};function J(t,o,e,n=0){const s=f(t),i=f(o);if(s===void 0&&i===void 0)return;const d=h(e),r=p=>p===void 0?void 0:d==="px"?p:g(p,d,n);return{paddingTop:r(s),paddingBottom:r(i)}}const h=t=>M(t),Q="sf-pad-top-phone",W="sf-pad-bottom-phone",X="--sf-pad-t-phone",Z="--sf-pad-b-phone",v="sf-pad-left-phone",tt="sf-pad-right-phone",ot="--sf-pad-l-phone",et="--sf-pad-r-phone",nt="sf-pad-top-tablet",st="sf-pad-bottom-tablet",it="sf-pad-left-tablet",dt="sf-pad-right-tablet",rt="--sf-pad-t-tablet",pt="--sf-pad-b-tablet",at="--sf-pad-l-tablet",ft="--sf-pad-r-tablet",C="sf-section-pad";function S(t){const o={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},e=J(t.top,t.bottom,t.unit,t.frame),n=mt({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},o,t.frame,t.sideSpace);return e===void 0&&!n.classes.length&&!Object.keys(n.style).length?null:{className:[C,...n.classes].join(" "),style:{...e,...n.style}}}const ct=t=>B(t)?t:f(t),ut=[["top","paddingTop",[nt,rt],[Q,X]],["bottom","paddingBottom",[st,pt],[W,Z]],["left","paddingLeft",[it,at],[v,ot]],["right","paddingRight",[dt,ft],[tt,et]]];function I(t,o,e){return!k(o)||o==="px"?t:Y(t,"px",o,e,{min:0,max:z.max,step:1})}function lt(t,o,e,n={},s=0){const i=(m,u)=>{if(u==="px")return`${m}px`;const c=g(m,u,s);return typeof c=="number"?`${c}px`:c},d={n:t,[L("n")]:o,[O("n")]:e,u:n.desktop,[L("u")]:n.tablet,[O("u")]:n.phone},r=U("spacing",f(t),f(o),f(e),q()),p=(m,u,c)=>{if($(d,{side:"n"},m,"side",["side"])?.value===j)return R().value;const l=K(d,{side:"n"},"u",m,"side");if(!l)return;const A=u!==null&&!c&&l.unit==="px"&&typeof r[u]=="number";return i(A?r[u]:l.value,l.unit)},P=p("desktop",null,!0),b={},T=p("tablet","tablet",o!==void 0);T!==void 0&&(o!==void 0||T!==P)&&(b.tablet=T);const a=p("mobile","phone",e!==void 0);return a!==void 0&&(e!==void 0||a!==P)&&(b.phone=a),b}function mt(t,o,e={},n=t,s={},i=0,d="box"){const r={},p={},P=[],b=R(d);let T=!1;for(const[a,m,...u]of ut){const c=a==="left"||a==="right"?ct:f,l=c(t[a]),A=a==="top"||a==="bottom"?i:0;B(l)?(r[m]=b.value,T=!0):l!==void 0&&(r[m]=h(s.desktop)==="px"?l:g(l,h(s.desktop),A));const w=lt(c(n[a]),c(e[a]),c(o[a]),s,A);for(const[y,[F,G]]of[["tablet",u[0]],["phone",u[1]]]){const x=w[y];x!==void 0&&(P.push(F),p[G]=x,x===b.value&&(T=!0))}}return T&&P.push(...b.className.split(" ")),{classes:P,style:{...r,...p}}}function V(t,o,e){const n=f(t)??e,s=f(o);return n===void 0?s:s===void 0?n:n+s}function St(t,o={}){return{top:V(t.padTop,t.sectionPaddingTop,o.top),bottom:V(t.padBottom,t.sectionPaddingBottom,o.bottom)}}const H={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},E="padUnit";function bt(t,o){const e=t[E],n=(s,i,d)=>{const r=f(s)??(d===void 0?void 0:I(d,e,"desktop")),p=f(i);return p===void 0?r:(r??0)+I(p,e,"desktop")};return{top:n(t.padTop,t.sectionPaddingTop,o.top),bottom:n(t.padBottom,t.sectionPaddingBottom,o.bottom)}}function Et(t,o,e={}){const n=bt(t,o),s={...Tt(t,H,!0,E),top:n.top,bottom:n.bottom};e.noTop&&Object.assign(s,{top:0,topTablet:void 0,topPhone:void 0});const i=S(s),d=i?i.className.split(" ").filter(r=>r!==C):[];return{...d.length?{className:d.join(" ")}:{},style:i?.style??{}}}const D={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},Dt=[...["top","bottom","left","right"].map(t=>[H[t],D[t]]),[E,N]].flatMap(([t,o])=>[[t,o],...["tablet","mobile"].map(e=>[_(t,e),_(o,e)])]);function Tt(t,o=D,e=!0,n=o===D?N:void 0){const s={};if(n){t[n]!==void 0&&(s.unit=t[n]);for(const i of["tablet","mobile"])t[_(n,i)]!==void 0&&(s[_("unit",i)]=t[_(n,i)])}for(const i of e?["top","bottom","left","right"]:["top","bottom"]){s[i]=t[o[i]];for(const d of["tablet","mobile"])s[_(i,d)]=t[_(o[i],d)]}return s}function Ot(t){return S(t)}function Lt(t,o){const e=(n,s)=>typeof n!="number"?void 0:h(s)==="px"?n+o:n;return S({...t,frame:o,top:e(t.top,t.unit),bottom:e(t.bottom,t.unit),topTablet:e(t.topTablet,t.unitTablet),bottomTablet:e(t.bottomTablet,t.unitTablet),topPhone:e(t.topPhone,t.unitPhone),bottomPhone:e(t.bottomPhone,t.unitPhone)})}export{H as BAND_PAD_KEYS,E as BAND_PAD_UNIT_KEY,Dt as BAND_TO_SECTION_PAD,W as PAD_BOTTOM_PHONE_CLASS,Z as PAD_BOTTOM_PHONE_VAR,st as PAD_BOTTOM_TABLET_CLASS,pt as PAD_BOTTOM_TABLET_VAR,v as PAD_LEFT_PHONE_CLASS,ot as PAD_LEFT_PHONE_VAR,it as PAD_LEFT_TABLET_CLASS,at as PAD_LEFT_TABLET_VAR,tt as PAD_RIGHT_PHONE_CLASS,et as PAD_RIGHT_PHONE_VAR,dt as PAD_RIGHT_TABLET_CLASS,ft as PAD_RIGHT_TABLET_VAR,Q as PAD_TOP_PHONE_CLASS,X as PAD_TOP_PHONE_VAR,nt as PAD_TOP_TABLET_CLASS,rt as PAD_TOP_TABLET_VAR,z as SECTION_PADDING,C as SECTION_PAD_CLASS,D as SECTION_PAD_KEYS,Et as bandPadAttrs,bt as bandTopBottom,I as padDefaultIn,mt as padSideAttrs,ct as padSideValue,Tt as padValuesOf,St as resolveSectionPadding,Lt as rootPadAttrs,S as sectionPadAttrs,J as sectionPadStyle,lt as sideViewLengths,Ot as wrapperPadAttrs};
1
+ import{storedUnit as X}from"../../../format/lib/content/css-length.js";import{VIEW_TIERS as R,phoneKey as I,resolveViewValue as q,tabletKey as y,viewKeyAt as b}from"efficient-easel/draw";import{ownEntry as z}from"../../../format/lib/own-entry.js";import{SECTION_PAD_UNIT_KEY as C,SITE_SIDE as J,convertLength as Q,isLengthUnit as Z,isSiteSide as V,sideLengthAt as v,sideValueAt as tt,withLength as S}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as k}from"../../../format/lib/content/page-width.js";import{viewRules as ot}from"../../../format/lib/content/view-overrides.js";import{finiteNumber as l}from"../../../format/lib/finite-number.js";const et={min:10,max:200,step:10};function nt(t,o,e,s=0){const n=l(t),d=l(o);if(n===void 0&&d===void 0)return;const i=E(e),r=p=>p===void 0?void 0:i==="px"?p:S(p,i,s);return{paddingTop:r(n),paddingBottom:r(d)}}const E=t=>X(t),st={top:"top",bottom:"bottom"};function it(t,o,e,s){const n=l(t),d=l(o);if(n===void 0&&d===void 0)return;const i=E(e),r=(p,m)=>p===void 0?void 0:i==="px"?p:S(p,i,m);return{paddingTop:r(n,s("top","desktop")),paddingBottom:r(d,s("bottom","desktop"))}}const dt="sf-pad-top-phone",rt="sf-pad-bottom-phone",pt="--sf-pad-t-phone",at="--sf-pad-b-phone",lt="sf-pad-left-phone",ft="sf-pad-right-phone",ct="--sf-pad-l-phone",ut="--sf-pad-r-phone",bt="sf-pad-top-tablet",mt="sf-pad-bottom-tablet",Tt="sf-pad-left-tablet",At="sf-pad-right-tablet",_t="--sf-pad-t-tablet",Pt="--sf-pad-b-tablet",ht="--sf-pad-l-tablet",xt="--sf-pad-r-tablet",w="sf-section-pad";function N(t){const o={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},e=t.totals?.length?(d,i)=>t.totals.includes(b(d,i))?0:t.frame??0:t.frame,s=typeof e=="function"?it(t.top,t.bottom,t.unit,e):nt(t.top,t.bottom,t.unit,t.frame),n=Dt({left:t.left,right:t.right},{top:t.topPhone,bottom:t.bottomPhone,left:t.leftPhone,right:t.rightPhone},{top:t.topTablet,bottom:t.bottomTablet,left:t.leftTablet,right:t.rightTablet},{top:t.top,bottom:t.bottom,left:t.left,right:t.right},o,e,t.sideSpace);return s===void 0&&!n.classes.length&&!Object.keys(n.style).length?null:{className:[w,...n.classes].join(" "),style:{...s,...n.style}}}const gt=t=>V(t)?t:l(t),Et=[["top","paddingTop",[bt,_t],[dt,pt]],["bottom","paddingBottom",[mt,Pt],[rt,at]],["left","paddingLeft",[Tt,ht],[lt,ct]],["right","paddingRight",[At,xt],[ft,ut]]];function H(t,o,e){return!Z(o)||o==="px"?t:Q(t,"px",o,e,{min:0,max:et.max,step:1})}function St(t,o,e,s={},n=0){const d={desktop:!0,tablet:o!==void 0,mobile:e!==void 0},i={desktop:["desktop"],tablet:["tablet","desktop"],mobile:["mobile","tablet","desktop"]},r=a=>typeof n=="object"?n[a]:n,p=(a,u,h)=>{if(u==="px")return`${a}px`;const x=i[h].find(O=>d[O])??"desktop",g=S(a,u,r(x));return typeof g=="number"?`${g}px`:g},m={n:t,[y("n")]:o,[I("n")]:e,u:s.desktop,[y("u")]:s.tablet,[I("u")]:s.phone},A=q("spacing",l(t),l(o),l(e),ot()),T=(a,u,h)=>{if(tt(m,{side:"n"},a,"side",["side"])?.value===J)return k().value;const x=v(m,{side:"n"},"u",a,"side");if(!x)return;const g=u!==null&&!h&&x.unit==="px"&&typeof A[u]=="number";return p(g?A[u]:x.value,x.unit,a)},f=T("desktop",null,!0),_={},P=T("tablet","tablet",o!==void 0);P!==void 0&&(o!==void 0||P!==f)&&(_.tablet=P);const c=T("mobile","phone",e!==void 0);return c!==void 0&&(e!==void 0||c!==f)&&(_.phone=c),_}function Dt(t,o,e={},s=t,n={},d=0,i="box"){const r={},p={},m=[],A=k(i);let T=!1;for(const[f,_,...P]of Et){const c=f==="left"||f==="right"?gt:l,a=c(t[f]),u=z(st,f),h=u?typeof d=="function"?{desktop:d(u,"desktop"),tablet:d(u,"tablet"),mobile:d(u,"mobile")}:d:0,x=typeof h=="object"?h.desktop:h;V(a)?(r[_]=A.value,T=!0):a!==void 0&&(r[_]=E(n.desktop)==="px"?a:S(a,E(n.desktop),x));const g=St(c(s[f]),c(e[f]),c(o[f]),n,h);for(const[O,[$,W]]of[["tablet",P[0]],["phone",P[1]]]){const L=g[O];L!==void 0&&(m.push($),p[W]=L,L===A.value&&(T=!0))}}return T&&m.push(...A.className.split(" ")),{classes:m,style:{...r,...p}}}function M(t,o,e){const s=l(t)??e,n=l(o);return s===void 0?n:n===void 0?s:s+n}function Mt(t,o={}){return{top:M(t.padTop,t.sectionPaddingTop,o.top),bottom:M(t.padBottom,t.sectionPaddingBottom,o.bottom)}}const F={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},B="padUnit";function Ot(t,o){const e=t[B],s=(n,d,i)=>{const r=l(n)??(i===void 0?void 0:H(i,e,"desktop")),p=l(d);return p===void 0?r:(r??0)+H(p,e,"desktop")};return{top:s(t.padTop,t.sectionPaddingTop,o.top),bottom:s(t.padBottom,t.sectionPaddingBottom,o.bottom)}}function Ft(t,o,e={}){const s=Ot(t,o),n={...Lt(t,F,!0,B),top:s.top,bottom:s.bottom};e.noTop&&Object.assign(n,{top:0,topTablet:void 0,topPhone:void 0});const d=N(n),i=d?d.className.split(" ").filter(r=>r!==w):[];return{...i.length?{className:i.join(" ")}:{},style:d?.style??{}}}const D={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},jt=[...["top","bottom","left","right"].map(t=>[F[t],D[t]]),[B,C]].flatMap(([t,o])=>[[t,o],...["tablet","mobile"].map(e=>[b(t,e),b(o,e)])]);function Lt(t,o=D,e=!0,s=o===D?C:void 0){const n={};if(s){t[s]!==void 0&&(n.unit=t[s]);for(const i of["tablet","mobile"])t[b(s,i)]!==void 0&&(n[b("unit",i)]=t[b(s,i)])}for(const i of e?["top","bottom","left","right"]:["top","bottom"]){n[i]=t[o[i]];for(const r of["tablet","mobile"])n[b(i,r)]=t[b(o[i],r)]}const d=t[Nt];if(Array.isArray(d)){const i=j.flatMap(r=>R.filter(p=>d.includes(b(o[r],p))).map(p=>b(r,p)));i.length&&(n.totals=i)}return n}const Nt="padTotal",j=["top","bottom"];function Gt(t=D){return j.flatMap(o=>R.map(e=>b(t[o],e)))}const G=16,K=24,Bt={text:G,heading:K,line:0},Rt={[G]:"py-4",[K]:"py-6",[Bt.line]:""};function Kt(t,o){return{className:Rt[o]??"",...t?{pad:{values:t,frame:o}}:{}}}function Ut(t,o){if(!o)return{root:Y(t.values,t.frame),outer:null};if(!t.values.totals?.length)return{root:null,outer:U(t.values)};const e=t.values,{top:s,bottom:n,topTablet:d,bottomTablet:i,topPhone:r,bottomPhone:p,left:m,right:A,leftTablet:T,rightTablet:f,leftPhone:_,rightPhone:P,...c}=e;return{root:Y({...c,top:s,bottom:n,topTablet:d,bottomTablet:i,topPhone:r,bottomPhone:p},t.frame),outer:U({...c,totals:void 0,left:m,right:A,leftTablet:T,rightTablet:f,leftPhone:_,rightPhone:P})}}function U(t){return N(t)}function Y(t,o){const e=(s,n,d)=>typeof s!="number"?void 0:E(n)==="px"&&!t.totals?.includes(d)?s+o:s;return N({...t,frame:o,top:e(t.top,t.unit,"top"),bottom:e(t.bottom,t.unit,"bottom"),topTablet:e(t.topTablet,t.unitTablet,"topTablet"),bottomTablet:e(t.bottomTablet,t.unitTablet,"bottomTablet"),topPhone:e(t.topPhone,t.unitPhone,"topPhone"),bottomPhone:e(t.bottomPhone,t.unitPhone,"bottomPhone")})}export{F as BAND_PAD_KEYS,B as BAND_PAD_UNIT_KEY,jt as BAND_TO_SECTION_PAD,Bt as BLOCK_PAD_FRAME,Rt as FRAME_CLASS,K as HEADING_PAD_FRAME,rt as PAD_BOTTOM_PHONE_CLASS,at as PAD_BOTTOM_PHONE_VAR,mt as PAD_BOTTOM_TABLET_CLASS,Pt as PAD_BOTTOM_TABLET_VAR,lt as PAD_LEFT_PHONE_CLASS,ct as PAD_LEFT_PHONE_VAR,Tt as PAD_LEFT_TABLET_CLASS,ht as PAD_LEFT_TABLET_VAR,ft as PAD_RIGHT_PHONE_CLASS,ut as PAD_RIGHT_PHONE_VAR,At as PAD_RIGHT_TABLET_CLASS,xt as PAD_RIGHT_TABLET_VAR,dt as PAD_TOP_PHONE_CLASS,pt as PAD_TOP_PHONE_VAR,bt as PAD_TOP_TABLET_CLASS,_t as PAD_TOP_TABLET_VAR,Nt as PAD_TOTAL_KEY,et as SECTION_PADDING,w as SECTION_PAD_CLASS,D as SECTION_PAD_KEYS,G as TEXT_PAD_FRAME,Ft as bandPadAttrs,Ot as bandTopBottom,Ut as framePadAttrs,Kt as ownPadOf,H as padDefaultIn,Dt as padSideAttrs,gt as padSideValue,Gt as padTotalKeys,Lt as padValuesOf,Mt as resolveSectionPadding,Y as rootPadAttrs,N as sectionPadAttrs,nt as sectionPadStyle,St as sideViewLengths,U as wrapperPadAttrs};
@@ -1 +1 @@
1
- import{jsx as n,Fragment as O}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import j from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as y,namedRowField as a}from"../../../../../../format/lib/content/card-template.js";import{namedLinkHrefRewrite as k}from"../../../../../../format/lib/links/link-href-rewrites.js";import{CTA_PH as v}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as A}from"../../scaffold.js";import{phoneKey as D}from"efficient-easel/draw";import{ButtonBlockMeta as E}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const z={...E,render:o=>{const{label:m,href:c,variant:b,align:d,alignTablet:f,alignPhone:s,contained:h,arrow:u,icon:g,iconPosition:w,widthFit:P,buttonColor:B,buttonTextColor:C,editor:r}=o,F=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t==="buttonCorners"||t==="buttonCornerSides"||t.startsWith("buttonPadding"))),i=k(o),R=i?{hrefRewrite:i}:{},e=(t,l)=>n(j,{label:A(t,v.text,r)??"",href:l,variant:b,align:d,alignTablet:f,alignPhone:s,contained:h,arrow:u,icon:g,iconPosition:w,widthFit:P,widthFitPhone:o[D("widthFit")],buttonColor:B,buttonTextColor:C,...F,...R}),_=a(o),x=a(o,y);return!_&&!x?e(m,c):n(T,{type:"ButtonBlock",props:o,children:(t,l,p)=>p&&!r?.isEditing&&!(typeof t.label=="string"&&t.label.trim())?n(O,{}):e(t.label,t.href)})}};export{z as ButtonBlockRender};
1
+ import{jsx as n,Fragment as p}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import j from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as k,namedRowField as l}from"../../../../../../format/lib/content/card-template.js";import{namedLinkHrefRewrite as y}from"../../../../../../format/lib/links/link-href-rewrites.js";import{CTA_PH as v}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as A}from"../../scaffold.js";import{phoneKey as D}from"efficient-easel/draw";import{padValuesOf as E}from"../../../../content/section-padding.js";import{ButtonBlockMeta as H}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const G={...H,render:o=>{const{label:m,href:c,variant:d,align:f,alignTablet:b,alignPhone:s,contained:u,arrow:h,icon:g,iconPosition:w,widthFit:P,buttonColor:B,buttonTextColor:C,editor:r}=o,F=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t==="buttonCorners"||t==="buttonCornerSides"||t.startsWith("buttonPadding"))),i=y(o),R=i?{hrefRewrite:i}:{},e=(t,a)=>n(j,{label:A(t,v.text,r)??"",href:a,variant:d,align:f,alignTablet:b,alignPhone:s,contained:u,arrow:h,icon:g,iconPosition:w,widthFit:P,widthFitPhone:o[D("widthFit")],buttonColor:B,buttonTextColor:C,...F,...R,blockPad:E(o)}),_=l(o),x=l(o,k);return!_&&!x?e(m,c):n(T,{type:"ButtonBlock",props:o,children:(t,a,O)=>O&&!r?.isEditing&&!(typeof t.label=="string"&&t.label.trim())?n(p,{}):e(t.label,t.href)})}};export{G as ButtonBlockRender};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{HideTaker as m}from"../../../../../components/ViewHideRoot.js";import{CUSTOM_HTML_SCOPE_ATTR as p,scopeCustomCss as T,splitCustomHtml as l}from"../../../custom-css.js";import{CustomHTMLMeta as u}from"../../../../../../format/lib/document/blocks/general/CustomHTML/meta.js";const a={...u,render:({html:n,id:t})=>{const{css:r,markup:s}=l(n??""),o=r?T(r,String(t??"")):"";return o?e(m,{[p]:t,dangerouslySetInnerHTML:{__html:`<style>${o}</style>${s}`}}):e(m,{dangerouslySetInnerHTML:{__html:s}})}};export{a as CustomHTMLRender};
1
+ import{jsx as o}from"react/jsx-runtime";import{HideTaker as m}from"../../../../../components/ViewHideRoot.js";import{CUSTOM_HTML_SCOPE_ATTR as u,scopeCustomCss as T,splitCustomHtml as i}from"../../../custom-css.js";import{CustomHTMLMeta as l}from"../../../../../../format/lib/document/blocks/general/CustomHTML/meta.js";const M={...l,render:({html:n,id:t})=>{const{css:r,markup:s,ids:p}=i(n??"",String(t??"")),e=r?T(r,String(t??""),void 0,p):"";return e?o(m,{[u]:t,dangerouslySetInnerHTML:{__html:`<style>${e}</style>${s}`}}):o(m,{dangerouslySetInnerHTML:{__html:s}})}};export{M as CustomHTMLRender};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import{bandPadAttrs as l}from"../../../../content/section-padding.js";import{innerPaddingFallback as u}from"../../../passes/section-padding.js";import h from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as y,footprintOfficeOfRow as T}from"../../../../../../format/lib/content/footprint.js";import{DEALERS_SOURCE as s,declaredBlockSource as c,sourcedRows as g}from"../../../../../../format/lib/content/block-sources.js";import{parseDealerListPosition as S}from"../../../../dealer-source.js";import{hidableText as m}from"efficient-easel/draw";import{parseSectionHeadPlacement as O}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as P,phHide as a}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{CARD_TEMPLATE_SLOT as w}from"../../../../../../format/lib/content/card-template.js";import{cardPressTitlesOf as C}from"../../../card-press-titles.js";import{FootprintMeta as R,FOOTPRINT_PH as d}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const b=()=>[{role:e("Headquarters"),city:e("City"),country:e("Country"),address:e("Street address"),lat:0,lng:0,hq:!0},{role:e("Office"),city:e("City"),country:e("Country"),address:e("Street address"),lat:0,lng:0,hq:!1}],x=()=>[{role:e("Headquarters"),city:e("City"),country:e("Country"),address:e("Street address"),hq:"true"},{role:e("Office"),city:e("City"),country:e("Country"),address:e("Street address")}];function E(t){const i=()=>P(t.offices,b(),t.editor),r=c(t);if(!r||r===s)return i();const n=t.editor?.isEditing===!0,o=g(t,n,x());return!o.sample&&!o.rows.length?i():o.rows.map(T)}const v={...R,render:t=>{const i=O(t.headPlacement)==="own-box",r=o=>i?void 0:o,n=E(t);return f(h,{sectionNumber:r(a(t.sectionNumber,d.sectionNumber,t.editor)),heading:r(a(t.heading,d.heading,t.editor)),tagline:r(a(t.tagline,d.tagline,t.editor)),omitHead:i,offices:n,mapTheme:t.mapTheme??y.mapTheme,bandPad:l(t,u("Footprint"),{noTop:i}),editing:t.editor?.isEditing,dealers:c(t)===s,search:t.search===!0,searchHint:m(t.searchHint),noMatchText:m(t.noMatchText),listPosition:S(t.listPosition),showDistance:t.showDistance!==!1,template:t.template,ownerId:String(t.id??""),pressTitles:C(t,w)})}};export{v as FootprintRender};
1
+ import{jsx as m}from"react/jsx-runtime";import{bandPadAttrs as l}from"../../../../content/section-padding.js";import{innerPaddingFallback as h}from"../../../passes/section-padding.js";import u from"../../../../../components/Footprint.js";import{FOOTPRINT_DEFAULTS as y,footprintHeadInList as g,footprintListColumns as T,footprintListPosition as S,footprintMapHeight as O,footprintOfficeOfRow as w,footprintShows as C}from"../../../../../../format/lib/content/footprint.js";import{DEALERS_SOURCE as s,declaredBlockSource as c,sourcedRows as P}from"../../../../../../format/lib/content/block-sources.js";import{hidableText as f}from"efficient-easel/draw";import{parseSectionHeadPlacement as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as R,phHide as a}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{CARD_TEMPLATE_SLOT as b}from"../../../../../../format/lib/content/card-template.js";import{cardPressTitlesOf as x}from"../../../card-press-titles.js";import{FootprintMeta as E,FOOTPRINT_PH as d}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";const F=()=>[{role:e("Headquarters"),city:e("City"),country:e("Country"),address:e("Street address"),lat:0,lng:0,hq:!0},{role:e("Office"),city:e("City"),country:e("Country"),address:e("Street address"),lat:0,lng:0,hq:!1}],L=()=>[{role:e("Headquarters"),city:e("City"),country:e("Country"),address:e("Street address"),hq:"true"},{role:e("Office"),city:e("City"),country:e("Country"),address:e("Street address")}];function _(t){const i=()=>R(t.offices,F(),t.editor),o=c(t);if(!o||o===s)return i();const n=t.editor?.isEditing===!0,r=P(t,n,L());return!r.sample&&!r.rows.length?i():r.rows.map(w)}const J={...E,render:t=>{const i=H(t.headPlacement)==="own-box",o=r=>i?void 0:r,n=_(t);return m(u,{sectionNumber:o(a(t.sectionNumber,d.sectionNumber,t.editor)),heading:o(a(t.heading,d.heading,t.editor)),tagline:o(a(t.tagline,d.tagline,t.editor)),omitHead:i,offices:n,mapTheme:t.mapTheme??y.mapTheme,bandPad:l(t,h("Footprint"),{noTop:i}),editing:t.editor?.isEditing,dealers:c(t)===s,search:t.search===!0,searchHint:f(t.searchHint),noMatchText:f(t.noMatchText),listPosition:S(t),showDistance:t.showDistance!==!1,shows:C(t),listColumns:T(t),mapHeight:O(t),headInList:g(t),template:t.template,ownerId:String(t.id??""),pressTitles:x(t,b)})}};export{J as FootprintRender};
@@ -1 +1 @@
1
- import{jsx as H}from"react/jsx-runtime";import P from"../../../../../components/HeroSection.js";import{HeroMeta as j}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const A={...j,render:({slides:e,strip:t,alignment:i,textureOpacity:o,showTexture:r,textureColor:h,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:l,tickerItems:c,heightDesktop:m,heightTablet:d,heightMobile:g,heightFixed:w,heightFixedTablet:x,heightFixedMobile:k,showPicker:u,pickerShape:b,pickerPlacement:y,showArrows:M,arrowsShape:S,arrowsPlacement:T,_partMotion:f,editor:F})=>H(P,{slides:e,strip:t,alignment:i,textureOpacity:o,showTexture:r,textureColor:h,phoneUpDown:a,phoneSideways:s,autoplay:p,autoplayInterval:n,showTicker:l,tickerItems:c,heightDesktop:m,heightTablet:d,heightMobile:g,heightFixed:w,heightFixedTablet:x,heightFixedMobile:k,showPicker:u,pickerShape:b,pickerPlacement:y,showArrows:M,arrowsShape:S,arrowsPlacement:T,editing:F?.isEditing,partMotion:f})};export{A as HeroRender};
1
+ import{jsx as B}from"react/jsx-runtime";import D from"../../../../../components/HeroSection.js";import{HeroMeta as I}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const C={...I,render:({slides:e,strip:o,alignment:t,textureOpacity:r,showTexture:i,textureColor:h,phoneUpDown:p,phoneSideways:a,phoneWordsTop:s,phoneWordsBottom:n,phoneBoxGap:l,autoplay:d,autoplayInterval:m,showTicker:c,tickerItems:x,heightDesktop:g,heightTablet:w,heightMobile:k,heightFixed:u,heightFixedTablet:T,heightFixedMobile:b,showPicker:y,pickerShape:M,pickerPlacement:S,showArrows:f,arrowsShape:F,arrowsPlacement:H,_partMotion:P,editor:j})=>B(D,{slides:e,strip:o,alignment:t,textureOpacity:r,showTexture:i,textureColor:h,phoneUpDown:p,phoneSideways:a,phoneWordsTop:s,phoneWordsBottom:n,phoneBoxGap:l,autoplay:d,autoplayInterval:m,showTicker:c,tickerItems:x,heightDesktop:g,heightTablet:w,heightMobile:k,heightFixed:u,heightFixedTablet:T,heightFixedMobile:b,showPicker:y,pickerShape:M,pickerPlacement:S,showArrows:f,arrowsShape:F,arrowsPlacement:H,editing:j?.isEditing,partMotion:P})};export{C as HeroRender};
@@ -1 +1 @@
1
- import{jsx as I}from"react/jsx-runtime";import U from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as V}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as d}from"../../../../../../format/lib/content/picture-focus-rows.js";import{HERO_FOCUS as r}from"../../../../../../format/lib/hero-media-layout.js";import{editorVideoFrame as _}from"../../../../../../format/lib/hero-video.js";const A={...V,render:i=>{const{mediaType:e,mediaImage:m,mediaVideo:a,poster:l,tintColor:g,tintOpacity:h,overlay:s,overlayColor:b,overlayPosition:c,heightDesktop:u,heightMobile:y,heightFixed:p,heightFixedTablet:P,heightFixedMobile:f,boxes:v,videoSource:x,youtubeUrl:F,videoPlayback:j,mediaLayout:k,mediaLayoutPhone:C,mediaImage2:M,tintColor2:S,tintOpacity2:O,_partMotion:T,editor:n,id:H}=i,o=d(i,r.image),t=d(i,r.image2),L=e==="image"?void 0:_(H,a,n?.metadata);return I(U,{mediaType:e,videoSource:x,youtubeUrl:F,videoPlayback:j,mediaLayout:k,mediaLayoutPhone:C,mediaImage2:M||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:S,tintOpacity2:O,mediaSrc:(e==="image"?m:a)||void 0,poster:l||L||void 0,objectPosition:e==="image"?o.desktop:void 0,objectPositionPhone:e==="image"?o.phone:void 0,objectPositionTablet:e==="image"?o.tablet:void 0,tintColor:g,tintOpacity:e==="image"?h:0,overlay:s,overlayColor:b,overlayPosition:c,heightDesktop:u,heightMobile:y,heightFixed:p,heightFixedTablet:P,heightFixedMobile:f,boxes:v,editing:n?.isEditing,partMotion:T})}};export{A as HeroSingleRender};
1
+ import{jsx as U}from"react/jsx-runtime";import V from"../../../../../components/HeroSingle.js";import{HeroSingleMeta as _}from"../../../../../../format/lib/document/blocks/general/HeroSingle/meta.js";import{viewFocusValues as d}from"../../../../../../format/lib/content/picture-focus-rows.js";import{HERO_FOCUS as r}from"../../../../../../format/lib/hero-media-layout.js";import{editorVideoFrame as w}from"../../../../../../format/lib/hero-video.js";const A={..._,render:o=>{const{mediaType:e,mediaImage:m,mediaVideo:a,poster:h,tintColor:l,tintOpacity:p,overlay:s,overlayColor:g,overlayPosition:b,heightDesktop:c,heightMobile:u,heightFixed:y,heightFixedTablet:P,heightFixedMobile:f,phoneWordsTop:x,phoneWordsBottom:v,phoneBoxGap:F,boxes:j,videoSource:T,youtubeUrl:k,videoPlayback:C,mediaLayout:M,mediaLayoutPhone:S,mediaImage2:O,tintColor2:B,tintOpacity2:H,_partMotion:L,editor:n,id:W}=o,i=d(o,r.image),t=d(o,r.image2),I=e==="image"?void 0:w(W,a,n?.metadata);return U(V,{mediaType:e,videoSource:T,youtubeUrl:k,videoPlayback:C,mediaLayout:M,mediaLayoutPhone:S,mediaImage2:O||void 0,objectPosition2:t.desktop,objectPosition2Phone:t.phone,objectPosition2Tablet:t.tablet,tintColor2:B,tintOpacity2:H,mediaSrc:(e==="image"?m:a)||void 0,poster:h||I||void 0,objectPosition:e==="image"?i.desktop:void 0,objectPositionPhone:e==="image"?i.phone:void 0,objectPositionTablet:e==="image"?i.tablet:void 0,tintColor:l,tintOpacity:e==="image"?p:0,overlay:s,overlayColor:g,overlayPosition:b,heightDesktop:c,heightMobile:u,heightFixed:y,heightFixedTablet:P,heightFixedMobile:f,phoneWordsTop:x,phoneWordsBottom:v,phoneBoxGap:F,boxes:j,editing:n?.isEditing,partMotion:L})}};export{A as HeroSingleRender};
@@ -1 +1 @@
1
- import{jsx as a,Fragment as m}from"react/jsx-runtime";import{readHidable as s}from"efficient-easel/draw";import{useBoxCell as d}from"../../../../../components/InBoxContext.js";import l from"../../../../../components/LocationMap.js";import{hasMapCoords as u}from"../../../../../../format/lib/map-styles.js";import{LocationMapMeta as c}from"../../../../../../format/lib/document/blocks/general/LocationMap/meta.js";const h="relative overflow-hidden h-full min-h-[560px] max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",x="relative overflow-hidden grow shrink-0 max-view-wide:shrink basis-0 min-h-[560px] max-view-desktop:basis-auto max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",w=new Set(["auto","dark","light"]),t=e=>s(e).text.trim();function p(e){return a(l,{...e,takesViewHide:!0,boxClass:d()?.fillingColumn?x:h})}const C={...c,render:e=>{const o=Number(e.lat),i=Number(e.lng),n=e.editor?.isEditing===!0;if(!n&&!u(o,i))return a(m,{});const r=e.mapTheme;return a(p,{name:t(e.name),state:t(e.state),country:t(e.country),lat:o,lng:i,mapsUrl:t(e.mapsUrl),mapTheme:w.has(r)?r:"auto",editing:n})}};export{C as LocationMapRender};
1
+ import{jsx as a,Fragment as m}from"react/jsx-runtime";import{readHidable as s}from"efficient-easel/draw";import{useBoxCell as d}from"../../../../../components/InBoxContext.js";import l from"../../../../../components/LocationMap.js";import{hasMapCoords as u}from"../../../../../../format/lib/map-styles.js";import{LocationMapMeta as c}from"../../../../../../format/lib/document/blocks/general/LocationMap/meta.js";import{parseOption as x}from"../../../../../../format/lib/parse-option.js";const h="relative overflow-hidden h-full min-h-[560px] max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",p="relative overflow-hidden grow shrink-0 max-view-wide:shrink basis-0 min-h-[560px] max-view-desktop:basis-auto max-view-desktop:h-auto max-view-desktop:min-h-0 max-view-desktop:aspect-square",w=new Set(["auto","dark","light"]),t=e=>s(e).text.trim();function f(e){return a(l,{...e,takesViewHide:!0,boxClass:d()?.fillingColumn?p:h})}const L={...c,render:e=>{const o=Number(e.lat),i=Number(e.lng),n=e.editor?.isEditing===!0;if(!n&&!u(o,i))return a(m,{});const r=e.mapTheme;return a(f,{name:t(e.name),state:t(e.state),country:t(e.country),lat:o,lng:i,mapsUrl:t(e.mapsUrl),mapTheme:x([...w],"auto",r),editing:n})}};export{L as LocationMapRender};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import a from"../../../../../components/LogoBlock.js";import{CardRowDrawn as s}from"../../../../../components/CardRowContext.js";import{readHidable as g}from"efficient-easel/draw";import{readLogoColor as h}from"../../../../../../format/lib/logo/logo-color.js";import{LogoBlockMeta as u}from"../../../../../../format/lib/document/blocks/general/LogoBlock/meta.js";const j={...u,render:t=>e(s,{type:"LogoBlock",props:t,children:({src:n,alt:d,href:i,heightPx:l,reverse:f,customColor:m,align:o,alignTablet:c,alignPhone:p})=>{const r=h(f,m);return e(a,{src:n||void 0,alt:g(d).text||void 0,href:i||void 0,heightPx:l,reverse:r.reverse,color:r.color,align:o==="left"||o==="center"||o==="right"?o:void 0,alignTablet:c,alignPhone:p})}})};export{j as LogoBlockRender};
1
+ import{jsx as r}from"react/jsx-runtime";import g from"../../../../../components/LogoBlock.js";import{CardRowDrawn as p}from"../../../../../components/CardRowContext.js";import{readHidable as s}from"efficient-easel/draw";import{readLogoColor as h}from"../../../../../../format/lib/logo/logo-color.js";import{blockAlignOf as k}from"../../../../../../format/lib/content/block-align.js";import{LogoBlockMeta as x}from"../../../../../../format/lib/document/blocks/general/LogoBlock/meta.js";const w={...x,render:e=>r(p,{type:"LogoBlock",props:e,children:({src:l,alt:n,href:t,heightPx:i,reverse:m,customColor:d,align:a,alignTablet:f,alignPhone:c})=>{const o=h(m,d);return r(g,{src:l||void 0,alt:s(n).text||void 0,href:t||void 0,heightPx:i,reverse:o.reverse,color:o.color,align:k(a),alignTablet:f,alignPhone:c})}})};export{w as LogoBlockRender};
@@ -1,2 +1,2 @@
1
- import{SPLITTABLE_SECTIONS as P}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as A,BUTTON as M,DIM as W,INNER_BOX as r,SH_LINK as C,TEXT as h,smallText as R}from"./section-to-box-row-parts.js";import{labelTextSeed as D}from"../../../../../format/lib/document/text-seeds.js";import{labelStyle as x,token as a}from"../../../../../format/lib/document/seed-parts.js";import{tabletKey as H}from"efficient-easel/draw";import{BOX_DESKTOP_LINE as w,STACK_BELOW_PROP as F}from"../../../content/box-stack-line.js";import{PHONE_EDGE as K}from"../../../../../format/lib/content/view-lines.js";import{ownEntry as u}from"../../../../../format/lib/own-entry.js";function E(e){if(e==="ProductGrid")return"shelf";const t=u(P,e)?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const oe={standard:64,editorial:60,simple:36,essay:28,shelf:20},z={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function U(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=u(P,e);if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function re(e,t,n){const i=`editorial:${e}|${t}|${n}`,o=p.get(i);if(o)return o;const l=L({num:e,title:t,description:n,link:!1});return p.set(i,l),l}const b={[F]:w},m={top:0,right:0,bottom:1,left:0};import{token as de}from"../../../../../format/lib/document/seed-parts.js";const _=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),c=(e,t,n={})=>R(e,{...a("label",t),...n}),d=(e,t)=>({kind:"text",key:e,role:"heading",props:h,style:{textStyle:"heading-2",...t}}),f=K,j=w,T=(e,t,n,i,o={})=>({kind:"text",key:e,props:{...W,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:f}:{},...o},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i,...o}}),N={...M,align:"right",alignPhone:"left",...C},S=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:N,style:{...x(e),color:"labels"}}),O=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:o=>o[e]===void 0,props:{...h,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?$(D()):{},...n.style}}}}},$=e=>e._partStyles.text??{},s={widthFitPhone:"fill"};function v(e){if(e.kind!=="group")return e;if(e.name==="Words"){const t=e.props;return{...e,props:typeof t=="function"?(n,i)=>({...t(n,i),...s}):{...t,...s}}}return{...e,parts:e.parts.map(v)}}function G(e,t){const n=u(z,e),i=n==="accent",o=c(t.num,14,{color:i?"accent":"labels"}),l=n==="accentNum"&&o.kind==="text"?{...o,mark:"accentLead"}:o,k=d(t.title,i?{..._("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:m,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...r,...s,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...r,...s,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},l,...g?[O(t.num,"==01== / Collections",l)]:[]]},{kind:"group",name:"Heading",props:{...r,...s},parts:[k,...g?[O(t.title,`Three ranges,
2
- one standard.`,k)]:[]]}]},{kind:"group",name:"Words",props:{...r,...s,gap:12,maxWidth:340,maxWidthPhone:f},parts:[...t.description?[T(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[S(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...N,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:S(14).style}}}]:[]]}]}}function y(e,t){return e.kind==="text"?t.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(n=>y(n,t))}:e}function L(e){const t=d(e.title,{..._("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:m,sectionPaddingBottom:32,...b},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...b},parts:[{kind:"group",name:"Number",props:{...r,sectionPaddingBottom:8},parts:[{...c(e.num,13),props:{...h,...A}}]},y(t,[e.title])]},{kind:"group",name:"Words",props:{...r,sectionPaddingBottom:4,maxWidth:360,[H("maxWidth")]:j,maxWidthPhone:f},parts:e.description?[T(e.description,14,void 0,{lineHeight:1.5},{[H("align")]:"left"})]:[]}]}}function B(e,t){return{kind:"group",name:"Header",props:{...r,gap:16,gapPhone:16},parts:[c(e.num,13),d(e.title,t)]}}const I=[["para",{...x(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],X=e=>I.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function Q(e){return{kind:"group",name:"Header",props:{...r,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:m,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:24,share:"content"},parts:[c(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...I.map(([t,n])=>({...d(e.title,n),when:i=>X(i)===t}))]},{kind:"group",name:"Words",props:{...r,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[T(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[S(13)]:[]]}]}}function ae(e){return E(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)"}:{}}const p=new Map,V={...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function se(e){const t=p.get(e);if(t)return t;const n=U(e),i=E(e),o=i==="editorial"?L(n):i==="simple"?B(n,V):i==="essay"?B(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?Q(n):G(e,n);return p.set(e,o),o}export{b as EDITORIAL_LINE,oe as HEAD_BELOW,V as SIMPLE_HEADING_LOOK,re as editorialHeadTree,_ as fluidToken,E as headLookOf,ae as headReads,se as headTree,v as headWordsOnPhoneLine,de as token,y as withAccentItalic};
1
+ import{SPLITTABLE_SECTIONS as P}from"../../../../../format/lib/sections/section-head-placement.js";import{AUTO_COLUMN as A,BUTTON as M,DIM as W,INNER_BOX as r,SH_LINK as R,TEXT as h,smallText as C}from"./section-to-box-row-parts.js";import{labelTextSeed as D}from"../../../../../format/lib/document/text-seeds.js";import{labelStyle as x,token as a}from"../../../../../format/lib/document/seed-parts.js";import{tabletKey as H}from"efficient-easel/draw";import{BOX_DESKTOP_LINE as w,STACK_BELOW_PROP as K}from"../../../content/box-stack-line.js";import{PHONE_EDGE as F}from"../../../../../format/lib/content/view-lines.js";import{ownEntry as u}from"../../../../../format/lib/own-entry.js";import{parseOption as z}from"../../../../../format/lib/parse-option.js";const U=["standard","editorial","simple","essay"];function E(e){if(e==="ProductGrid")return"shelf";const t=u(P,e)?.headStyle;return z(U,"standard",t)}const se={standard:64,editorial:60,simple:36,essay:28,shelf:20},j={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function $(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=u(P,e);if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function le(e,t,n){const i=`editorial:${e}|${t}|${n}`,o=p.get(i);if(o)return o;const l=y({num:e,title:t,description:n,link:!1});return p.set(i,l),l}const O={[K]:w},m={top:0,right:0,bottom:1,left:0};import{token as he}from"../../../../../format/lib/document/seed-parts.js";const _=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),c=(e,t,n={})=>C(e,{...a("label",t),...n}),d=(e,t)=>({kind:"text",key:e,role:"heading",props:h,style:{textStyle:"heading-2",...t}}),f=F,v=w,T=(e,t,n,i,o={})=>({kind:"text",key:e,props:{...W,align:"right",alignPhone:"left",...n?{maxWidth:n,maxWidthPhone:f}:{},...o},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...a("body",t),...i,...o}}),b={...M,align:"right",alignPhone:"left",...R},S=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b,style:{...x(e),color:"labels"}}),N=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:o=>o[e]===void 0,props:{...h,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?G(D()):{},...n.style}}}}},G=e=>e._partStyles.text??{},s={widthFitPhone:"fill"};function X(e){if(e.kind!=="group")return e;if(e.name==="Words"){const t=e.props;return{...e,props:typeof t=="function"?(n,i)=>({...t(n,i),...s}):{...t,...s}}}return{...e,parts:e.parts.map(X)}}function Q(e,t){const n=u(j,e),i=n==="accent",o=c(t.num,14,{color:i?"accent":"labels"}),l=n==="accentNum"&&o.kind==="text"?{...o,mark:"accentLead"}:o,k=d(t.title,i?{..._("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),g=e==="Collections";return{kind:"group",name:"Header",props:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:m,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...r,...s,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...r,...s,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},l,...g?[N(t.num,"==01== / Collections",l)]:[]]},{kind:"group",name:"Heading",props:{...r,...s},parts:[k,...g?[N(t.title,`Three ranges,
2
+ one standard.`,k)]:[]]}]},{kind:"group",name:"Words",props:{...r,...s,gap:12,maxWidth:340,maxWidthPhone:f},parts:[...t.description?[T(t.description,14,void 0,{lineHeight:1.5})]:[],...t.link?[S(14)]:[],...g?[{kind:"block",type:"ButtonBlock",props:{...b,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:S(14).style}}}]:[]]}]}}function L(e,t){return e.kind==="text"?t.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(n=>L(n,t))}:e}function y(e){const t=d(e.title,{..._("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...r,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:m,sectionPaddingBottom:32,...O},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...O},parts:[{kind:"group",name:"Number",props:{...r,sectionPaddingBottom:8},parts:[{...c(e.num,13),props:{...h,...A}}]},L(t,[e.title])]},{kind:"group",name:"Words",props:{...r,sectionPaddingBottom:4,maxWidth:360,[H("maxWidth")]:v,maxWidthPhone:f},parts:e.description?[T(e.description,14,void 0,{lineHeight:1.5},{[H("align")]:"left"})]:[]}]}}function B(e,t){return{kind:"group",name:"Header",props:{...r,gap:16,gapPhone:16},parts:[c(e.num,13),d(e.title,t)]}}const I=[["para",{...x(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],V=e=>I.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function q(e){return{kind:"group",name:"Header",props:{...r,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:m,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...r,direction:"row",align:"end",gap:24,share:"content"},parts:[c(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...I.map(([t,n])=>({...d(e.title,n),when:i=>V(i)===t}))]},{kind:"group",name:"Words",props:{...r,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[T(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[S(13)]:[]]}]}}function ce(e){return E(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)"}:{}}const p=new Map,J={...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function de(e){const t=p.get(e);if(t)return t;const n=$(e),i=E(e),o=i==="editorial"?y(n):i==="simple"?B(n,J):i==="essay"?B(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?q(n):Q(e,n);return p.set(e,o),o}export{O as EDITORIAL_LINE,se as HEAD_BELOW,J as SIMPLE_HEADING_LOOK,le as editorialHeadTree,_ as fluidToken,E as headLookOf,ce as headReads,de as headTree,X as headWordsOnPhoneLine,he as token,L as withAccentItalic};
@@ -1 +1 @@
1
- import{siteLengthHeld as G,storedUnit as b}from"../../../../../format/lib/content/css-length.js";import{SECTION_WIDTH_KEYS as M}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as W}from"../../../../../format/lib/content/grid-span.js";import{BLOCK_LENGTH_KEYS as C,blockLengthUnitKey as Y}from"../../../content/block-size.js";import{viewStoreKeys as F}from"../../../../../format/lib/animation/views.js";import{BOX as v,INNER_BOX as I,LABEL_FACE as U,TEXT as R,boxPadding as w,fillSlot as O,token as X}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_STORE_KEYS as V,LEGACY_ENTRANCE_KEY as $}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as j}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_KEYS as z}from"../../../../../format/lib/content/section-sticky.js";import{SECTION_CORNERS_ROW as J}from"../../../../../format/lib/content/section-corners.js";import{SECTION_BORDER_UNIT_KEYS as q}from"../../../../../format/lib/content/borders.js";import{CARD_HOVER_KEYS as S}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as Q}from"../../../../../format/lib/content/block-sources.js";import{SITE_GUTTER as Z,SITE_GUTTER_PHONE as tt,normalizeSiteGutter as ot,normalizeSiteGutterPhone as et,siteGutterPhoneFollows as nt}from"../../../../../format/lib/content/page-width.js";import{BAND_TO_SECTION_PAD as A,bandTopBottom as it}from"../../../content/section-padding.js";import{ButtonBlockMeta as rt}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{innerPaddingFallback as st}from"../../passes/section-padding.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";import{convertTheme as x,hasWords as dt}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as ct}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as H}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as at}from"efficient-shell/format";import{convertLength as pt}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as lt,surfacePresetIndex as mt,surfaceTwoTone as gt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as Pt}from"../../../../../format/lib/content/view-hide-class.js";import{tierOfView as ft}from"../../../../../format/lib/content/view-tier.js";const s=(t,o,e,n)=>o===e?t:pt(t,o,e,n,{min:0,max:200,step:4});import{BOX as Bo,DIM as No,INNER_BOX as Co,TEXT as Io}from"../../../../../format/lib/document/seed-parts.js";const qt={textFit:"line",textFitPhone:"wrap"},ht={...R,[Q]:""},{label:Qt,href:Zt,...ut}=rt.defaultProps,to=ut,oo={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},eo={...v,sectionAccent:0},no={sectionAccent:-1},io=[...W,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",J.unitKey,...q,...z,"anchor",$,...Pt,...V,...j,...F(["widthFit",...C,...C.map(Y)]),...Object.values(M)],P="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",ro={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:P,fullWidth:P,pageWidth:P,backgroundWidth:P,contentWidth:P,contentMax:P},so=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"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 Tt(t,o){const e=u(t.sectionPaddingTop)??0,n=u(t.sectionPaddingBottom)??0,i=u(t.sectionPaddingTopTablet),r=u(t.sectionPaddingBottomTablet),c=b(t.sectionPaddingUnit),l=b(t.sectionPaddingUnitTablet),m=b(t.sectionPaddingUnitPhone),f=(g,a,h,p)=>{const d=u(g);if(d!==void 0)return d+s(p,"px",m,"mobile");const N=a===void 0?{n:h,unit:c}:{n:a,unit:l};return s(N.n,N.unit,m,"mobile")+s(p,"px",m,"mobile")},T=(g,a,h,p,d)=>a!==void 0?{[g]:a+s(d??p,"px",l,"tablet")}:d===void 0?{}:{[g]:s(h,c,l,"tablet")+s(d,"px",l,"tablet")};return{sectionPaddingTop:e+s(o.top,"px",c,"desktop"),sectionPaddingBottom:n+s(o.bottom,"px",c,"desktop"),...T("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...T("sectionPaddingBottomTablet",r,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:f(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:f(t.sectionPaddingBottomPhone,r,n,o.bottomPhone)}}const co=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>Tt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function B(t,o){const e={};for(const[i,r]of A)t[i]!==void 0&&(e[r]=t[i]);const n=it(t,st(o));return{...e,sectionPaddingTop:n.top,sectionPaddingBottom:n.bottom}}const ao=t=>[...A.map(([o,e])=>[o,e,(n,i)=>B(i,t)[e]]),["sectionPaddingTop","sectionPaddingTop",(o,e)=>B(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>B(e,t).sectionPaddingBottom]],bt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},po=t=>o=>dt(o.props[t])?[bt]:[],xt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:R,...o?{style:o}:{}}),lo=t=>({kind:"group",name:"Chip",props:{...I,...O("main"),...w(6,14)},parts:[xt(t,{color:"background",...X("label",12),weight:600,letterSpacing:.16})]}),L=t=>t.background!=="transparent",_t=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},k={align:"right",alignPhone:"left"},Et=(t,o,e)=>{const n=i=>_t(i[t],i[o]);return{kind:"block",type:"Text",when:(i,r)=>r!==void 0&&n(r)!=="",box:[[t,"text",(i,r)=>n(r)],[o,"text",(i,r)=>n(r)]],props:e}},mo=(t,o,e,n={})=>Et(t,o,{...ht,...k,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...k}}}),_=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:x(o)?.selected??0,K="var(--site-surface-2)",y=(t,o)=>x(o)?.themes[_(t.sectionAccent??0,o)],Ot=(t,o)=>(e,n)=>{if(!o?.(e,n))return O(t);const i=y(e,n)?.[t];return i?{fillColor:i}:{}},go=(t,o)=>E(t,o)>=0,D=t=>t.startsWith("#")&&at(t)!==null,Po=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};const i=H(n);if(i)return O(i);const r=n===K?y(o,e):void 0;return r?{fillColor:gt(r)}:{}},fo=t=>{const o=t?.trim();return!o||o==="transparent"||o===ct||H(o)||o===K||D(o)?void 0:"it paints a colour that no Box Fill can hold"},E=(t,o)=>{const e=x(o)?.themes;return e&&L(t)?lt(e,_(t.sectionAccent,o)):-1},ho=(t,o,e)=>{const n=E(o,e);return n>=0?n:t},uo=(t,o)=>{const e=x(o)?.themes,n=e?mt(e,_(t,o)):-1;return n>=0?n:t},To=(t,o)=>{const e=E(t,o);return e>=0?{sectionAccent:e}:{}},bo=(t,o)=>L(t.props)&&E(t.props,o)<0?[{kind:"band-preset",page:_(t.props.sectionAccent,o)}]:[],xo=(t,{view:o="desktop",to:e="px",maxPx:n=1/0}={})=>{const{siteGutter:i,siteGutterUnit:r,siteGutterPhone:c,siteGutterPhoneUnit:l}=t.site??{},m=ft(o),f=(g,a,h)=>{const p=b(a),d=G(g,p,"spacing",h);return d===null?null:s(d,p,"px",m)},T=o==="desktop"?f(i,r,Z)??ot(i):f(c,l,tt)??et(c)??nt(i,r);return s(Math.min(n,T),"px",e,m)},St=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),_o=t=>({top:0,right:0,bottom:0,left:0,...t}),Eo=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,r)=>({...I,...St,...Ot("surface")(i,r),...typeof e=="function"?e(i,r):e}),box:[[o,"bgImage"],S.kind,S.duration,S.delay],parts:n});export{qt as AUTO_COLUMN,Bo as BOX,to as BUTTON,No as DIM,ro as DROP_COMMON,so as DROP_SIDE_PADDING,no as FOLLOW_THE_BOX,bt as HEADING_CASE_UPPER,Co as INNER_BOX,St as NO_PAD,ht as NUMBER_TEXT,k as RIGHT_WORDS,io as SAME_KEYS,eo as SECTION_BOX,oo as SH_LINK,Io as TEXT,ho as bandAccent,E as bandIndex,_ as bandPage,To as bandProps,bo as bandWrites,Ot as fillFrom,fo as fillNoBoxHolds,lo as filledChip,po as headingCaseOf,B as innerPad,ao as innerPadKeys,mo as leadLine,Et as leadText,_o as lineSides,_t as numberAndUnit,go as onBandPreset,Po as ownFill,Eo as pictureCell,y as sectionPage,xo as siteGutterOf,xt as smallText,uo as surfaceAccent,Tt as wrapperPad,co as wrapperPadKeys};
1
+ import{SECTION_CSS_KEY as G}from"../../../../../format/lib/content/section-css.js";import{siteLengthHeld as M,storedUnit as b}from"../../../../../format/lib/content/css-length.js";import{SECTION_WIDTH_KEYS as Y}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as W}from"../../../../../format/lib/content/grid-span.js";import{BLOCK_LENGTH_KEYS as C,blockLengthUnitKey as F}from"../../../content/block-size.js";import{viewStoreKeys as v}from"../../../../../format/lib/animation/views.js";import{BOX as w,INNER_BOX as I,LABEL_FACE as U,TEXT as R,boxPadding as X,fillSlot as O,token as V}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_STORE_KEYS as $,LEGACY_ENTRANCE_KEY as j}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as z}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_KEYS as J}from"../../../../../format/lib/content/section-sticky.js";import{SECTION_CORNERS_ROW as q}from"../../../../../format/lib/content/section-corners.js";import{SECTION_BORDER_UNIT_KEYS as Q}from"../../../../../format/lib/content/borders.js";import{CARD_HOVER_KEYS as S}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as Z}from"../../../../../format/lib/content/block-sources.js";import{SITE_GUTTER as tt,SITE_GUTTER_PHONE as ot,normalizeSiteGutter as et,normalizeSiteGutterPhone as nt,siteGutterPhoneFollows as it}from"../../../../../format/lib/content/page-width.js";import{BAND_TO_SECTION_PAD as A,bandTopBottom as rt}from"../../../content/section-padding.js";import{ButtonBlockMeta as st}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{innerPaddingFallback as dt}from"../../passes/section-padding.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";import{convertTheme as _,hasWords as ct}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as at}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as H}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as pt}from"efficient-shell/format";import{convertLength as lt}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as mt,surfacePresetIndex as gt,surfaceTwoTone as Pt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as ft}from"../../../../../format/lib/content/view-hide-class.js";import{tierOfView as ht}from"../../../../../format/lib/content/view-tier.js";const s=(t,o,e,n)=>o===e?t:lt(t,o,e,n,{min:0,max:200,step:4});import{BOX as Co,DIM as Io,INNER_BOX as Uo,TEXT as Ro}from"../../../../../format/lib/document/seed-parts.js";const Zt={textFit:"line",textFitPhone:"wrap"},ut={...R,[Z]:""},{label:to,href:oo,...Tt}=st.defaultProps,eo=Tt,no={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},io={...w,sectionAccent:0},ro={sectionAccent:-1},so=[...W,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",q.unitKey,...Q,...J,"anchor",j,...ft,G,...$,...z,...v(["widthFit",...C,...C.map(F)]),...Object.values(Y)],P="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",co={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:P,fullWidth:P,pageWidth:P,backgroundWidth:P,contentWidth:P,contentMax:P},ao=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"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 bt(t,o){const e=u(t.sectionPaddingTop)??0,n=u(t.sectionPaddingBottom)??0,i=u(t.sectionPaddingTopTablet),r=u(t.sectionPaddingBottomTablet),c=b(t.sectionPaddingUnit),l=b(t.sectionPaddingUnitTablet),m=b(t.sectionPaddingUnitPhone),f=(g,a,h,p)=>{const d=u(g);if(d!==void 0)return d+s(p,"px",m,"mobile");const N=a===void 0?{n:h,unit:c}:{n:a,unit:l};return s(N.n,N.unit,m,"mobile")+s(p,"px",m,"mobile")},T=(g,a,h,p,d)=>a!==void 0?{[g]:a+s(d??p,"px",l,"tablet")}:d===void 0?{}:{[g]:s(h,c,l,"tablet")+s(d,"px",l,"tablet")};return{sectionPaddingTop:e+s(o.top,"px",c,"desktop"),sectionPaddingBottom:n+s(o.bottom,"px",c,"desktop"),...T("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...T("sectionPaddingBottomTablet",r,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:f(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:f(t.sectionPaddingBottomPhone,r,n,o.bottomPhone)}}const po=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>bt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function B(t,o){const e={};for(const[i,r]of A)t[i]!==void 0&&(e[r]=t[i]);const n=rt(t,dt(o));return{...e,sectionPaddingTop:n.top,sectionPaddingBottom:n.bottom}}const lo=t=>[...A.map(([o,e])=>[o,e,(n,i)=>B(i,t)[e]]),["sectionPaddingTop","sectionPaddingTop",(o,e)=>B(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>B(e,t).sectionPaddingBottom]],_t={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},mo=t=>o=>ct(o.props[t])?[_t]:[],xt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:R,...o?{style:o}:{}}),go=t=>({kind:"group",name:"Chip",props:{...I,...O("main"),...X(6,14)},parts:[xt(t,{color:"background",...V("label",12),weight:600,letterSpacing:.16})]}),L=t=>t.background!=="transparent",Et=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},k={align:"right",alignPhone:"left"},Ot=(t,o,e)=>{const n=i=>Et(i[t],i[o]);return{kind:"block",type:"Text",when:(i,r)=>r!==void 0&&n(r)!=="",box:[[t,"text",(i,r)=>n(r)],[o,"text",(i,r)=>n(r)]],props:e}},Po=(t,o,e,n={})=>Ot(t,o,{...ut,...k,...n,_partStyles:{text:{...U,color:"labels",...e,case:U.case,...k}}}),x=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:_(o)?.selected??0,K="var(--site-surface-2)",y=(t,o)=>_(o)?.themes[x(t.sectionAccent??0,o)],St=(t,o)=>(e,n)=>{if(!o?.(e,n))return O(t);const i=y(e,n)?.[t];return i?{fillColor:i}:{}},fo=(t,o)=>E(t,o)>=0,D=t=>t.startsWith("#")&&pt(t)!==null,ho=(t,o,e)=>{const n=t?.trim();if(n&&D(n))return{fillColor:n};const i=H(n);if(i)return O(i);const r=n===K?y(o,e):void 0;return r?{fillColor:Pt(r)}:{}},uo=t=>{const o=t?.trim();return!o||o==="transparent"||o===at||H(o)||o===K||D(o)?void 0:"it paints a colour that no Box Fill can hold"},E=(t,o)=>{const e=_(o)?.themes;return e&&L(t)?mt(e,x(t.sectionAccent,o)):-1},To=(t,o,e)=>{const n=E(o,e);return n>=0?n:t},bo=(t,o)=>{const e=_(o)?.themes,n=e?gt(e,x(t,o)):-1;return n>=0?n:t},_o=(t,o)=>{const e=E(t,o);return e>=0?{sectionAccent:e}:{}},xo=(t,o)=>L(t.props)&&E(t.props,o)<0?[{kind:"band-preset",page:x(t.props.sectionAccent,o)}]:[],Eo=(t,{view:o="desktop",to:e="px",maxPx:n=1/0}={})=>{const{siteGutter:i,siteGutterUnit:r,siteGutterPhone:c,siteGutterPhoneUnit:l}=t.site??{},m=ht(o),f=(g,a,h)=>{const p=b(a),d=M(g,p,"spacing",h);return d===null?null:s(d,p,"px",m)},T=o==="desktop"?f(i,r,tt)??et(i):f(c,l,ot)??nt(c)??it(i,r);return s(Math.min(n,T),"px",e,m)},Bt=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Oo=t=>({top:0,right:0,bottom:0,left:0,...t}),So=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,r)=>({...I,...Bt,...St("surface")(i,r),...typeof e=="function"?e(i,r):e}),box:[[o,"bgImage"],S.kind,S.duration,S.delay],parts:n});export{Zt as AUTO_COLUMN,Co as BOX,eo as BUTTON,Io as DIM,co as DROP_COMMON,ao as DROP_SIDE_PADDING,ro as FOLLOW_THE_BOX,_t as HEADING_CASE_UPPER,Uo as INNER_BOX,Bt as NO_PAD,ut as NUMBER_TEXT,k as RIGHT_WORDS,so as SAME_KEYS,io as SECTION_BOX,no as SH_LINK,Ro as TEXT,To as bandAccent,E as bandIndex,x as bandPage,_o as bandProps,xo as bandWrites,St as fillFrom,uo as fillNoBoxHolds,go as filledChip,mo as headingCaseOf,B as innerPad,lo as innerPadKeys,Po as leadLine,Ot as leadText,Oo as lineSides,Et as numberAndUnit,fo as onBandPreset,ho as ownFill,So as pictureCell,y as sectionPage,Eo as siteGutterOf,xt as smallText,bo as surfaceAccent,bt as wrapperPad,po as wrapperPadKeys};
@@ -1 +1 @@
1
- import{phoneKey as K}from"efficient-easel/draw";import{SITE_SIDE as Y}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as r}from"../../../../../format/lib/finite-number.js";import{BLOCK_ALIGN_BOX_WORD as X}from"../../../../../format/lib/content/block-align.js";import{splitImageOverlay as x}from"../../../../../format/lib/document/blocks/general/Split/meta.js";import{INTRO_SIZE_UNIT_KEYS as j,introSizeUnitsOf as T}from"../../../../../format/lib/content/section-type-size.js";import{PART_UNIT_KEY_OF as w}from"../../part-styles.js";import{parseIntroBleedLayout as G}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{SECTION_PIN_STOP_KEY as q,SECTION_PIN_STOP_SCREEN as Z}from"../../../../../format/lib/content/section-sticky.js";import{fluidToken as $,token as n}from"./section-head-looks.js";import{labelStyle as J}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as c,DIM as B,DROP_COMMON as p,DROP_SIDE_PADDING as O,INNER_BOX as i,NO_PAD as u,NUMBER_TEXT as Q,SAME_KEYS as m,SECTION_BOX as y,TEXT as P,fillFrom as _,lineSides as a,pictureCell as H,siteGutterOf as A,smallText as s,wrapperPad as I,wrapperPadKeys as M}from"./section-to-box-row-parts.js";const v=(e,t,o)=>{const k=r(e),f=r(t),S=(V,g)=>g&&g!=="px"?{[V]:g}:{};return{...k===void 0?{}:{size:k,...S(w.size,o?.desktop)},...f===void 0?{}:{sizePhone:f,...S(w.sizePhone,o?.phone)}}},ee=e=>G(e.layout)==="stacked",E=e=>Math.min(Math.max(r(e.overlay)??60,0),100),d=e=>r(e)??100,te={textStyle:"heading-1",sizeToken:{...$("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},oe=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...te,case:e?"upper":"none"},styleFrom:t=>{const o=T(t);return v(t.titleSizeDesktop,t.titleSizeMobile,{desktop:o.titleDesktop,phone:o.titleMobile})},when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...B,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{const t=T(e);return v(e.bodySizeDesktop,e.bodySizeMobile,{desktop:t.bodyDesktop,phone:t.bodyMobile})}},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:c}]}],N=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)`,ne=()=>({name:"Scroll-Over Text",skip:e=>ee(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=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...u,placement:"left",darken:E(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile),[q]:Z}),box:[...m.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>E(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:oe,drop:{uppercase:"not a value of its own: it picks the heading part — 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",...Object.fromEntries(j.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:N("Button color"),buttonTextColor:N("Button text color"),...p}}),D={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},ie={textStyle:"body-1",...n("body",16),lineHeight:1.7},z=e=>({kind:"text",key:"body",props:{...B,maxWidth:520},style:{...ie,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},re=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},R={boxShapePhone:"landscape"},U="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)",ae=(e,t)=>({[e]:t,[K(e)]:t}),se={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},C=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),de=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,..._("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...I(e,l),...b(e,100)}),box:[...m,...M(l)],parts:[{kind:"group",name:"Words",props:()=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:a({right:1}),sectionBorderPhone:a({}),...u,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Y}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...D,case:"none"},mark:"accentItalic"},z(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(C(e).length,1),3),...ae("sectionBorder",a({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:C,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Q,style:se},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},H("Picture","imageSrc",R)],drop:{...p,grayscale:U,...O}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},le=e=>e.textAlign==="center"||e.textAlign==="right"?X[e.textAlign]:"stretch",he=e=>Math.min(Math.max(r(e.overlay)??60,0),100),F=e=>typeof e=="string"&&e.trim()!=="",ge={...c,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},L=e=>({...H("Picture","imageSrc",(t,o)=>({...F(t.imageSrc)&&x(t.imageOverlay)>0?{darken:x(t.imageOverlay),darkenStyle:"even"}:{},placement:"center",...R,sectionBorder:a(e?{left:1}:{right:1}),...W(e?"left":"right",A(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:ge,style:{...J(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),W=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},ce={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:le(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...re(e,72),gap:24,gapPhone:24,...F(e.textBgSrc)?{darken:he(e),darkenStyle:"even"}:{},...u,sectionPaddingTop:100,sectionPaddingBottom:100,...W(o?"right":"left",A(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:D,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...z(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...c,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},pe=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,..._("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...I(e,l),...b(e,72)}),box:[...m,...M(l)],parts:[L(!1),ce,L(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — 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",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:U,...p,...O}}),Oe={IntroBleed:ne(),Manifesto:de(),Split:pe()};export{Oe as EDITORIAL_SECTION_TO_BOX};
1
+ import{phoneKey as K}from"efficient-easel/draw";import{SITE_SIDE as Y}from"efficient-easel/screen/lib/content/length-units";import{finiteNumber as r}from"../../../../../format/lib/finite-number.js";import{BLOCK_ALIGN_BOX_WORD as X}from"../../../../../format/lib/content/block-align.js";import{splitImageOverlay as x}from"../../../../../format/lib/document/blocks/general/Split/meta.js";import{INTRO_SIZE_UNIT_KEYS as j,introSizeUnitsOf as T}from"../../../../../format/lib/content/section-type-size.js";import{PART_UNIT_KEY_OF as w}from"../../part-styles.js";import{parseIntroBleedLayout as G}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{SECTION_PIN_STOP_KEY as q,SECTION_PIN_STOP_SCREEN as Z}from"../../../../../format/lib/content/section-sticky.js";import{fluidToken as $,token as n}from"./section-head-looks.js";import{labelStyle as J}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as c,DIM as B,DROP_COMMON as p,DROP_SIDE_PADDING as O,INNER_BOX as i,NO_PAD as u,NUMBER_TEXT as Q,SAME_KEYS as m,SECTION_BOX as y,TEXT as P,fillFrom as _,lineSides as a,pictureCell as H,siteGutterOf as I,smallText as s,wrapperPad as M,wrapperPadKeys as A}from"./section-to-box-row-parts.js";import{parseOption as ee}from"../../../../../format/lib/parse-option.js";const v=(e,t,o)=>{const f=r(e),k=r(t),S=(V,g)=>g&&g!=="px"?{[V]:g}:{};return{...f===void 0?{}:{size:f,...S(w.size,o?.desktop)},...k===void 0?{}:{sizePhone:k,...S(w.sizePhone,o?.phone)}}},te=e=>G(e.layout)==="stacked",E=e=>Math.min(Math.max(r(e.overlay)??60,0),100),d=e=>r(e)??100,oe={textStyle:"heading-1",sizeToken:{...$("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},ne=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...oe,case:e?"upper":"none"},styleFrom:t=>{const o=T(t);return v(t.titleSizeDesktop,t.titleSizeMobile,{desktop:o.titleDesktop,phone:o.titleMobile})},when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...B,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{const t=T(e);return v(e.bodySizeDesktop,e.bodySizeMobile,{desktop:t.bodyDesktop,phone:t.bodyMobile})}},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:c}]}],N=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)`,ie=()=>({name:"Scroll-Over Text",skip:e=>te(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=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...u,placement:"left",darken:E(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile),[q]:Z}),box:[...m.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>E(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:ne,drop:{uppercase:"not a value of its own: it picks the heading part — 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",...Object.fromEntries(j.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:N("Button color"),buttonTextColor:N("Button text color"),...p}}),D={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},re={textStyle:"body-1",...n("body",16),lineHeight:1.7},z=e=>({kind:"text",key:"body",props:{...B,maxWidth:520},style:{...re,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},ae=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},R={boxShapePhone:"landscape"},U="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)",se=(e,t)=>({[e]:t,[K(e)]:t}),de={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},C=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),le=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,..._("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...M(e,l),...b(e,100)}),box:[...m,...A(l)],parts:[{kind:"group",name:"Words",props:()=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:a({right:1}),sectionBorderPhone:a({}),...u,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Y}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...D,case:"none"},mark:"accentItalic"},z(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(C(e).length,1),3),...se("sectionBorder",a({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:C,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Q,style:de},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},H("Picture","imageSrc",R)],drop:{...p,grayscale:U,...O}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},he=e=>e.textAlign==="center"||e.textAlign==="right"?X[e.textAlign]:"stretch",ge=e=>Math.min(Math.max(r(e.overlay)??60,0),100),F=e=>typeof e=="string"&&e.trim()!=="",ce={...c,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},L=e=>({...H("Picture","imageSrc",(t,o)=>({...F(t.imageSrc)&&x(t.imageOverlay)>0?{darken:x(t.imageOverlay),darkenStyle:"even"}:{},placement:"center",...R,sectionBorder:a(e?{left:1}:{right:1}),...W(e?"left":"right",I(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:ce,style:{...J(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),W=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},pe={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:he(e),placement:ee(["left","center","right"],"left",e.textAlign),...ae(e,72),gap:24,gapPhone:24,...F(e.textBgSrc)?{darken:ge(e),darkenStyle:"even"}:{},...u,sectionPaddingTop:100,sectionPaddingBottom:100,...W(o?"right":"left",I(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:D,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...z(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...c,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},ue=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,..._("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...M(e,l),...b(e,72)}),box:[...m,...A(l)],parts:[L(!1),pe,L(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — 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",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:U,...p,...O}}),He={IntroBleed:ie(),Manifesto:le(),Split:ue()};export{He as EDITORIAL_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{hasWords as s}from"../../../sections/section-to-box.js";import{DIM as L,DROP_COMMON as g,DROP_SIDE_PADDING as h,INNER_BOX as r,SAME_KEYS as P,SECTION_BOX as f,TEXT as a,smallText as O,wrapperPad as i,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{markBoxProps as w,token as A}from"../../../../../format/lib/document/seed-parts.js";import{LOGOS_PH as R,logosScaffoldItems as B}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as b}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{PAYMENT_PH as N,paymentScaffoldAssurances as C,paymentScaffoldBadges as I}from"../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";import{BLOCK_SOURCE_OPTIONS_PROP as n,BLOCK_SOURCE_PROP as t}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as k}from"../../../../../format/lib/content/card-template.js";import{BLOCK_ALIGN_BOX_WORD as M,legacyBlockAlignOf as D}from"../../../../../format/lib/content/block-align.js";import{FOOTER_PAYMENT_SEED as H}from"../../../../../format/lib/content/footer.js";import{CELL_SPAN_KEYS as K}from"../../../../../format/lib/content/grid-span.js";import{SECTION_ACCENT_INHERIT as X}from"../../../../../format/lib/content/section-surface.js";import{FOOTER_MARK_SIZES as v,FOOTER_TEXT_PX as z}from"../../../../../format/lib/document/box-footer.js";import{phoneKey as d,readHidable as F}from"efficient-easel/draw";const l={contained:!1},p=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(U,m)=>s(m?.src)||s(m?.[e])}]}]}),c=o=>{const e=x(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},G={...O("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},Y={name:"Logos",boxProps:o=>({...f,direction:"column",gap:32,...i(o,c(o))}),box:[...P,..._(c),["bandPadding","sectionPaddingTop",(o,e)=>i(e,c(e)).sectionPaddingTop]],parts:[G,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:l,slots:p("items","alt")}],drop:{...g,...h,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"}},j={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:w(4,"main",{sectionCorners:2})},E={top:24,bottom:24,topPhone:24,bottomPhone:24},W={name:"Payment Methods",boxProps:o=>({...f,direction:"column",...i(o,E)}),box:[...P,..._(E)],parts:[{kind:"group",name:"Methods",props:{...r,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...O("heading",{color:"labels"}),props:{...a,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,n],props:o=>s(o[t])?{[t]:o[t],...o[n]!==void 0?{[n]:o[n]}:{}}:{}},props:{...l,look:"cards",grayscale:!1},slots:o=>({...p("badges","label"),...s(o[t])?{[k]:[b()]}:{}})},{kind:"group",name:"Reassurance",props:{...r,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[d("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:o=>(Array.isArray(o.assurances)?o.assurances:[]).filter(e=>s(e?.text)),props:{...r,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[d("share")]:"content"},item:o=>F(o.text).hidden?{props:{_hidden:!0}}:{},parts:[j,{kind:"text",key:"text",props:{...a,align:"center"},style:{...A("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...g,...h,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},S=o=>D(o.align)??"left",T=o=>o.size==="md"?"md":"sm",y=12,u={name:"Payment logos",boxProps:o=>({...r,direction:"row",wrap:!0,align:"center",justify:M[S(o)],gap:y,gapPhone:y,phoneRow:2,[d("share")]:"content"}),box:[...K],parts:[{kind:"text",key:"lead",props:L,styleFrom:o=>({size:z[T(o)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,n],props:o=>({logoHeight:v[T(o)].mark,align:S(o),...s(o[t])?{[t]:o[t],...o[n]!==void 0?{[n]:o[n]}:{}}:{}})},props:{...l,look:"marks",grayscale:!1,sectionAccent:X},slots:o=>({...p("methods","label"),...s(o[t])?{[k]:[b()]}:{}})}],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"}},po={Logos:Y,PaymentBadges:W,FooterPayment:u,PaymentLogosBlock:u},co=()=>({heading:R.heading,items:B()}),mo=()=>({heading:N.heading,badges:I(),assurances:C()}),go=()=>({...H,methods:[]});export{po as LOGOS_SECTION_TO_BOX,go as footerPaymentPressStarter,co as logosPressStarter,mo as paymentPressStarter};
1
+ import{hasWords as n}from"../../../sections/section-to-box.js";import{DIM as L,DROP_COMMON as g,DROP_SIDE_PADDING as h,INNER_BOX as r,SAME_KEYS as P,SECTION_BOX as f,TEXT as a,smallText as O,wrapperPad as i,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{finiteNumber as x}from"../../../../../format/lib/finite-number.js";import{markBoxProps as w,token as A}from"../../../../../format/lib/document/seed-parts.js";import{LOGOS_PH as R,logosScaffoldItems as B}from"../../../../../format/lib/document/blocks/general/Logos/meta.js";import{logosCardSeed as b}from"../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{PAYMENT_PH as N,paymentScaffoldAssurances as C,paymentScaffoldBadges as I}from"../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";import{BLOCK_SOURCE_OPTIONS_PROP as s,BLOCK_SOURCE_PROP as t}from"../../../../../format/lib/content/block-sources.js";import{CARD_TEMPLATE_SLOT as k}from"../../../../../format/lib/content/card-template.js";import{BLOCK_ALIGN_BOX_WORD as M,legacyBlockAlignOf as D}from"../../../../../format/lib/content/block-align.js";import{FOOTER_PAYMENT_SEED as H}from"../../../../../format/lib/content/footer.js";import{CELL_SPAN_KEYS as K}from"../../../../../format/lib/content/grid-span.js";import{SECTION_ACCENT_INHERIT as X}from"../../../../../format/lib/content/section-surface.js";import{FOOTER_MARK_SIZES as v,FOOTER_TEXT_PX as z}from"../../../../../format/lib/document/box-footer.js";import{phoneKey as d,readHidable as F}from"efficient-easel/draw";import{parseOption as G}from"../../../../../format/lib/parse-option.js";const l={contained:!1},p=(o,e)=>({logos:[{kind:"list",key:o,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[e,"alt"]],when:(Z,m)=>n(m?.src)||n(m?.[e])}]}]}),c=o=>{const e=x(o.bandPadding)??40;return{top:e,bottom:e,topPhone:e,bottomPhone:e}},Y={...O("heading",{color:"labels",letterSpacing:.2}),props:{...a,align:"center"}},j={name:"Logos",boxProps:o=>({...f,direction:"column",gap:32,...i(o,c(o))}),box:[...P,..._(c),["bandPadding","sectionPaddingTop",(o,e)=>i(e,c(e)).sectionPaddingTop]],parts:[Y,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:l,slots:p("items","alt")}],drop:{...g,...h,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"}},W={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:w(4,"main",{sectionCorners:2})},E={top:24,bottom:24,topPhone:24,bottomPhone:24},U={name:"Payment Methods",boxProps:o=>({...f,direction:"column",...i(o,E)}),box:[...P,..._(E)],parts:[{kind:"group",name:"Methods",props:{...r,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...O("heading",{color:"labels"}),props:{...a,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,s],props:o=>n(o[t])?{[t]:o[t],...o[s]!==void 0?{[s]:o[s]}:{}}:{}},props:{...l,look:"cards",grayscale:!1},slots:o=>({...p("badges","label"),...n(o[t])?{[k]:[b()]}:{}})},{kind:"group",name:"Reassurance",props:{...r,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[d("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:o=>(Array.isArray(o.assurances)?o.assurances:[]).filter(e=>n(e?.text)),props:{...r,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[d("share")]:"content"},item:o=>F(o.text).hidden?{props:{_hidden:!0}}:{},parts:[W,{kind:"text",key:"text",props:{...a,align:"center"},style:{...A("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...g,...h,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},S=o=>D(o.align)??"left",T=o=>G(["sm","md"],"sm",o.size),y=12,u={name:"Payment logos",boxProps:o=>({...r,direction:"row",wrap:!0,align:"center",justify:M[S(o)],gap:y,gapPhone:y,phoneRow:2,[d("share")]:"content"}),box:[...K],parts:[{kind:"text",key:"lead",props:L,styleFrom:o=>({size:z[T(o)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[t,s],props:o=>({logoHeight:v[T(o)].mark,align:S(o),...n(o[t])?{[t]:o[t],...o[s]!==void 0?{[s]:o[s]}:{}}:{}})},props:{...l,look:"marks",grayscale:!1,sectionAccent:X},slots:o=>({...p("methods","label"),...n(o[t])?{[k]:[b()]}:{}})}],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"}},mo={Logos:j,PaymentBadges:U,FooterPayment:u,PaymentLogosBlock:u},go=()=>({heading:R.heading,items:B()}),ho=()=>({heading:N.heading,badges:I(),assurances:C()}),Po=()=>({...H,methods:[]});export{mo as LOGOS_SECTION_TO_BOX,Po as footerPaymentPressStarter,go as logosPressStarter,ho as paymentPressStarter};
@@ -1,7 +1,11 @@
1
+ import { SECTION_CSS_SCOPE_ATTR } from "../../../format/lib/content/section-css.js";
1
2
  export declare const CUSTOM_HTML_SCOPE_ATTR = "data-sf-custom-html";
2
- export declare function customHtmlScope(id: string): string;
3
- export declare function scopeCustomCss(css: string, id: string): string;
4
- export declare function splitCustomHtml(html: string): {
3
+ export type CssScopeAttr = typeof CUSTOM_HTML_SCOPE_ATTR | typeof SECTION_CSS_SCOPE_ATTR;
4
+ export declare function customHtmlIdPrefix(id: string): string;
5
+ export declare function customHtmlScope(id: string, attr?: CssScopeAttr): string;
6
+ export declare function scopeCustomCss(css: string, id: string, attr?: CssScopeAttr, ownIds?: ReadonlySet<string>): string;
7
+ export declare function splitCustomHtml(html: string, id?: string): {
5
8
  css: string;
6
9
  markup: string;
10
+ ids: ReadonlySet<string>;
7
11
  };
@@ -1,2 +1,2 @@
1
- import y from"isomorphic-dompurify";import S from"postcss";import w from"postcss-selector-parser";import{sanitizeHtml as C}from"./sanitize.js";import{styleElementText as d}from"../../../format/lib/document/style-text.js";const O="data-sf-custom-html",g=/^[A-Za-z][\w-]*$/;function E(n){return`[${O}="${n}"]`}const m=new Set(["media","supports","container"]),_=new Set(["behavior","-moz-binding"]),h=/expression\s*\(|javascript:|vbscript:/i,T=/^[a-z][a-z0-9+.-]*:/i,A=new Set(["none","initial","inherit","unset","revert","revert-layer","default","auto","normal","ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end","infinite","reverse","alternate","alternate-reverse","forwards","backwards","both","running","paused"]);function $(n){return n.replace(/\\([0-9a-f]{1,6})\s?|\\(.)/gi,(s,r,o)=>r?String.fromCodePoint(Math.min(+`0x${r}`,1114111)||65533):o??"")}function p(n){const s=n.trim();return s.startsWith("//")?!0:T.test(s)&&!/^https:\/\//i.test(s)}const v=/\/\*[\s\S]*?(?:\*\/|$)/g;function N(n,s){const r=$(s.replace(v,"")).replace(v,"");if(h.test(r))return!1;for(const o of r.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi))if(p(o[2]))return!1;if(n.startsWith("--")||/(?:image-set|image|src)\(/i.test(r)){for(const o of r.matchAll(/(['"])(.*?)\1/g))if(p(o[2]))return!1}return!0}function R(n){const s=n.find(r=>r.type==="combinator");return s?s.value.trim()||" ":null}function L(n,s){let r;try{r=w().astSync(n)}catch{return null}const o=[];for(const i of r.nodes){const l=i.nodes;if(l.length===0)return null;let c=!1;if(i.walkNesting(()=>{c=!0}),c)continue;const t=l[0],e=t.type==="tag"&&/^(html|body)$/i.test(t.value)||t.type==="pseudo"&&t.value.toLowerCase()===":root",a=t.type==="universal",u=R(l.slice(1));if((e||a)&&(u==="~"||u==="+"))a&&o.push(`${s} ${String(i).trim()}`);else if(e||a){const f=l.slice(1).map(String).join("").trimEnd();o.push(f?s+f:a?`${s} *`:s)}else{if(t.type==="combinator"&&/^[~+]$/.test(t.value.trim()))continue;o.push(`${s} ${String(i).trim()}`)}}return o.length?o.join(", "):null}function k(n,s){if(!g.test(s))return"";let r;try{r=S.parse(n)}catch{return""}const o=E(s),i=new Map;r.walkComments(t=>{t.remove()});const l=t=>{for(const e of[...t.nodes??[]])e.type==="atrule"?m.has(e.name.toLowerCase())&&e.nodes?l(e):e.remove():e.type==="rule"&&e.remove()},c=t=>{for(const e of[...t.nodes??[]])if(e.type==="atrule"){const a=e.name.toLowerCase();if(/^(-[a-z]+-)?keyframes$/.test(a)){const u=e.params.trim();if(!/^[A-Za-z_][\w-]*$/.test(u)||A.has(u.toLowerCase()))e.remove();else{const f=`${u}-${s}`;i.set(u,f),e.params=f}}else m.has(a)&&e.nodes?c(e):e.remove()}else if(e.type==="rule"){const a=L(e.selector,o);a===null?e.remove():(e.selector=a,l(e))}else e.type==="decl"&&e.remove()};return c(r),r.walkDecls(t=>{if(_.has(t.prop.toLowerCase())||!N(t.prop,t.raws.value?.raw??t.value)){t.remove();return}i.size>0&&/^(-[a-z]+-)?animation(-name)?$/i.test(t.prop)&&(t.value=t.value.replace(/(?<![\w-])[A-Za-z_][\w-]*(?![\w(-])/g,e=>i.get(e)??e))}),r.walkAtRules(t=>{t.nodes&&t.nodes.length===0&&t.remove()}),d(r.toString()).trim()}const x={ALLOWED_TAGS:["style","#text"],ALLOWED_ATTR:[],KEEP_CONTENT:!1,FORBID_CONTENTS:[],FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0};function I(n){const s=C(n);if(!/<style/i.test(n))return{css:"",markup:s};const r=y.sanitize(n,x).querySelectorAll("style");return{css:Array.from(r,i=>i.textContent??"").join(`
2
- `),markup:s}}export{O as CUSTOM_HTML_SCOPE_ATTR,E as customHtmlScope,k as scopeCustomCss,I as splitCustomHtml};
1
+ import O from"isomorphic-dompurify";import g from"postcss";import E from"postcss-selector-parser";import{sanitizeHtml as _,sectionIds as h}from"./sanitize.js";import{styleElementText as T}from"../../../format/lib/document/style-text.js";const v="data-sf-custom-html",w=/^[A-Za-z][\w-]*$/;function S(r){return w.test(r)?`${r}-`:""}function $(r,s=v){return`[${s}="${r}"]`}const d=new Set(["media","supports","container"]),A=new Set(["behavior","-moz-binding"]),x=/expression\s*\(|javascript:|vbscript:/i,N=/^[a-z][a-z0-9+.-]*:/i,R=new Set(["none","initial","inherit","unset","revert","revert-layer","default","auto","normal","ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end","infinite","reverse","alternate","alternate-reverse","forwards","backwards","both","running","paused"]);function L(r){return r.replace(/\\([0-9a-f]{1,6})\s?|\\(.)/gi,(s,n,o)=>n?String.fromCodePoint(Math.min(+`0x${n}`,1114111)||65533):o??"")}function y(r){const s=r.trim();return s.startsWith("//")?!0:N.test(s)&&!/^https:\/\//i.test(s)}const C=/\/\*[\s\S]*?(?:\*\/|$)/g;function P(r,s){const n=L(s.replace(C,"")).replace(C,"");if(x.test(n))return!1;for(const o of n.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi))if(y(o[2]))return!1;if(r.startsWith("--")||/(?:image-set|image|src)\(/i.test(n)){for(const o of n.matchAll(/(['"])(.*?)\1/g))if(y(o[2]))return!1}return!0}function D(r){const s=r.find(n=>n.type==="combinator");return s?s.value.trim()||" ":null}function z(r,s,n="",o=new Set){let i;try{i=E().astSync(r)}catch{return null}const c=[];for(const a of i.nodes){const f=a.nodes;if(f.length===0)return null;let p=!1;if(a.walkNesting(()=>{p=!0}),p)continue;n&&a.walkIds(u=>{o.has(u.value)&&(u.value=n+u.value)});const t=f[0],e=t.type==="tag"&&/^(html|body)$/i.test(t.value)||t.type==="pseudo"&&t.value.toLowerCase()===":root",l=t.type==="universal",m=D(f.slice(1));if((e||l)&&(m==="~"||m==="+"))l&&c.push(`${s} ${String(a).trim()}`);else if(e||l){const u=f.slice(1).map(String).join("").trimEnd();c.push(u?s+u:l?`${s} *`:s)}else{if(t.type==="combinator"&&/^[~+]$/.test(t.value.trim()))continue;c.push(`${s} ${String(a).trim()}`)}}return c.length?c.join(", "):null}function G(r,s,n=v,o=new Set){if(!w.test(s))return"";let i;try{i=g.parse(r)}catch{return""}const c=$(s,n),a=new Map;i.walkComments(t=>{t.remove()});const f=t=>{for(const e of[...t.nodes??[]])e.type==="atrule"?d.has(e.name.toLowerCase())&&e.nodes?f(e):e.remove():e.type==="rule"&&e.remove()},p=t=>{for(const e of[...t.nodes??[]])if(e.type==="atrule"){const l=e.name.toLowerCase();if(/^(-[a-z]+-)?keyframes$/.test(l)){const m=e.params.trim();if(!/^[A-Za-z_][\w-]*$/.test(m)||R.has(m.toLowerCase()))e.remove();else{const u=`${m}-${s}`;a.set(m,u),e.params=u}}else d.has(l)&&e.nodes?p(e):e.remove()}else if(e.type==="rule"){const l=z(e.selector,c,n===v?S(s):"",o);l===null?e.remove():(e.selector=l,f(e))}else e.type==="decl"&&e.remove()};return p(i),i.walkDecls(t=>{if(A.has(t.prop.toLowerCase())||!P(t.prop,t.raws.value?.raw??t.value)){t.remove();return}a.size>0&&/^(-[a-z]+-)?animation(-name)?$/i.test(t.prop)&&(t.value=t.value.replace(/(?<![\w-])[A-Za-z_][\w-]*(?![\w(-])/g,e=>a.get(e)??e))}),i.walkAtRules(t=>{t.nodes&&t.nodes.length===0&&t.remove()}),T(i.toString()).trim()}const M={ALLOWED_TAGS:["style","#text"],ALLOWED_ATTR:[],KEEP_CONTENT:!1,FORBID_CONTENTS:[],FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0};function W(r,s=""){const n=_(r,{idPrefix:S(s)});if(!/<style/i.test(r))return{css:"",markup:n,ids:new Set};const o=h(r),i=O.sanitize(r,M).querySelectorAll("style");return{css:Array.from(i,a=>a.textContent??"").join(`
2
+ `),markup:n,ids:o}}export{v as CUSTOM_HTML_SCOPE_ATTR,S as customHtmlIdPrefix,$ as customHtmlScope,G as scopeCustomCss,W as splitCustomHtml};
@@ -1 +1 @@
1
- import{HEADER_TYPE as o,FOOTER_TYPE as a}from"efficient-easel/draw";const E=new Set(["Hero","HeroSingle","IntroBleed"]),n={min:56,max:140,default:88},A={min:0,max:120,step:2,default:32},H=`var(--sf-header-h, ${n.default}px)`,s="--sf-header-set-h",d="--sf-header-h",l=`var(${s}, ${n.default}px)`,T="sf-header-clearance",R="sf-sticky-underheader";function c(e){return e?.find(t=>t?.type&&t.type!==o)??null}function p(e){const t=c(e)?.type;return!t||!E.has(t)}function D(e){return!p(e)}function P(e){return!!e?.some(t=>t?.type===o)}function h(e){return!e||e.length===0?!1:!e.some(t=>t?.type===o||t?.type===a)}const u=["auto","shared","own"],_="auto",S="topSpace",C="data-top-space";function f(e){return u.includes(e)?e:_}function x(e,t){const r=f(e?.props?.[S]);return r==="own"?!0:r==="shared"?!1:p(t)}function m(e,t){return x(e,t)?"own":null}export{_ as DEFAULT_TOP_SPACE,E as FULLBLEED_LEAD_SECTIONS,T as HEADER_CLEARANCE_CLASS,d as HEADER_DRAWN_HEIGHT_VAR,H as HEADER_HEIGHT_CSS,n as HEADER_HEIGHT_PX,A as HEADER_MENU_GAP_PX,l as HEADER_SET_HEIGHT_CSS,s as HEADER_SET_HEIGHT_VAR,R as STICKY_UNDERHEADER_CLASS,C as TOP_SPACE_ATTR,u as TOP_SPACE_MODES,S as TOP_SPACE_PROP,h as isStandaloneSectionDocument,c as leadSection,p as pageClearsHeader,P as pageHasHeaderSection,D as pageLeadsWithFullBleed,x as pageTakesTopSpace,f as resolveTopSpace,m as topSpaceMarker};
1
+ import{HEADER_TYPE as o,FOOTER_TYPE as a}from"efficient-easel/draw";import{parseOption as E}from"../../../format/lib/parse-option.js";const s=new Set(["Hero","HeroSingle","IntroBleed"]),n={min:56,max:140,default:88},d={min:0,max:120,step:2,default:32},l=`var(--sf-header-h, ${n.default}px)`,_="--sf-header-set-h",T="--sf-header-h",R=`var(${_}, ${n.default}px)`,D="sf-header-clearance",P="sf-sticky-underheader";function c(e){return e?.find(t=>t?.type&&t.type!==o)??null}function p(e){const t=c(e)?.type;return!t||!s.has(t)}function h(e){return!p(e)}function C(e){return!!e?.some(t=>t?.type===o)}function m(e){return!e||e.length===0?!1:!e.some(t=>t?.type===o||t?.type===a)}const u=["auto","shared","own"],S="auto",f="topSpace",O="data-top-space";function i(e){return E(u,S,e)}function x(e,t){const r=i(e?.props?.[f]);return r==="own"?!0:r==="shared"?!1:p(t)}function L(e,t){return x(e,t)?"own":null}export{S as DEFAULT_TOP_SPACE,s as FULLBLEED_LEAD_SECTIONS,D as HEADER_CLEARANCE_CLASS,T as HEADER_DRAWN_HEIGHT_VAR,l as HEADER_HEIGHT_CSS,n as HEADER_HEIGHT_PX,d as HEADER_MENU_GAP_PX,R as HEADER_SET_HEIGHT_CSS,_ as HEADER_SET_HEIGHT_VAR,P as STICKY_UNDERHEADER_CLASS,O as TOP_SPACE_ATTR,u as TOP_SPACE_MODES,f as TOP_SPACE_PROP,m as isStandaloneSectionDocument,c as leadSection,p as pageClearsHeader,C as pageHasHeaderSection,h as pageLeadsWithFullBleed,x as pageTakesTopSpace,i as resolveTopSpace,L as topSpaceMarker};
@@ -1 +1 @@
1
- import{parseIntroBleedLayout as o}from"../../../format/lib/sections/intro-bleed-layout.js";import{leadSection as n,pageLeadsWithFullBleed as a}from"./header-clearance.js";const c="data-lead-ink",E="data-header-ink",I=["auto","light","dark"],l="auto";function d(e){return e.type==="IntroBleed"?o(e.props?.layout)!=="stacked":!0}function u(e){const t=n(e);return t&&a(e)&&d(t)?"light":null}function i(e){return e==="light"||e==="dark"?e:l}function k(e,t){const r=i(e);return r==="auto"?u(t):r}export{l as DEFAULT_HEADER_INK,c as HEADER_INK_ATTR,I as HEADER_INK_MODES,E as HEADER_INK_OVERRIDE_ATTR,u as leadSectionInk,k as resolveHeaderInk,i as resolveHeaderInkMode};
1
+ import{parseIntroBleedLayout as r}from"../../../format/lib/sections/intro-bleed-layout.js";import{leadSection as n,pageLeadsWithFullBleed as a}from"./header-clearance.js";import{parseOption as l}from"../../../format/lib/parse-option.js";const _="data-lead-ink",f="data-header-ink",u=["auto","light","dark"],d="auto";function i(e){return e.type==="IntroBleed"?r(e.props?.layout)!=="stacked":!0}function p(e){const t=n(e);return t&&a(e)&&i(t)?"light":null}function s(e){return l(u,d,e)}function k(e,t){const o=s(e);return o==="auto"?p(t):o}export{d as DEFAULT_HEADER_INK,_ as HEADER_INK_ATTR,u as HEADER_INK_MODES,f as HEADER_INK_OVERRIDE_ATTR,p as leadSectionInk,k as resolveHeaderInk,s as resolveHeaderInkMode};
@@ -1 +1 @@
1
- import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{boxJoin as s}from"./box-join.js";import{cardTemplateOnInsert as p}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as c}from"./cell-width.js";import{clickableParts as f}from"./clickable-parts.js";import{cardCorners as l,sectionCorners as a}from"./corners.js";import{emptyHeadings as d}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as h}from"../../../../format/lib/document/passes/show-when-rows.js";import{headBox as S,headCore as u}from"./head-core.js";import{hiddenNodes as b}from"./hidden-nodes.js";import{showFor as g}from"./show-for.js";import{mediaValues as w}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as k}from"./section-anchor.js";import{blockEntrance as A,sectionAnimation as P}from"./section-animation.js";import{blockScroll as C,sectionScroll as B}from"./scroll-effect.js";import{sectionHeight as W,sectionHeightFillRoot as y}from"./section-height.js";import{cardSticky as G,sectionSticky as H}from"./section-sticky.js";import{sectionBorder as R}from"./borders.js";import{blockPadding as T,sectionPadding as x}from"./section-padding.js";import{sectionTheme as E,slideTheme as F}from"./section-theme.js";import{buttonAlignInRow as I,containedWidth as L,sectionWidth as O}from"./section-width.js";import{blockGroups as z,sectionGroups as D}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as J}from"./slots-start-afresh.js";import{openSlotDisallow as K,sectionGroupAllow as N}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as go}from"../../../../format/lib/document/passes/registry-context.js";const V=[J,w,u,N,K,x,a,R,l,T,A,C,c,O,L,I,W,k,E,P,B,H,G,s,F,n,D,z,h,d,f,S,g,y,b,e,p];function So(r,m,o){const t=m;for(const i of V)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{V as BLOCK_PASSES,So as applyBlockPasses,go as registryPassContext};
1
+ import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as s}from"./block-size.js";import{boxJoin as n}from"./box-join.js";import{cardTemplateOnInsert as p}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as c}from"./cell-width.js";import{clickableParts as f}from"./clickable-parts.js";import{cardCorners as l,sectionCorners as a}from"./corners.js";import{emptyHeadings as d}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as h}from"../../../../format/lib/document/passes/show-when-rows.js";import{headBox as u,headCore as S}from"./head-core.js";import{hiddenNodes as b}from"./hidden-nodes.js";import{showFor as g}from"./show-for.js";import{mediaValues as w}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as C}from"./section-anchor.js";import{sectionCustomCss as k}from"./section-custom-css.js";import{blockEntrance as A,sectionAnimation as P}from"./section-animation.js";import{blockScroll as B,sectionScroll as W}from"./scroll-effect.js";import{sectionHeight as y,sectionHeightFillRoot as G}from"./section-height.js";import{cardSticky as H,sectionSticky as R}from"./section-sticky.js";import{sectionBorder as T}from"./borders.js";import{blockPadding as x,sectionPadding as E}from"./section-padding.js";import{sectionTheme as F,slideTheme as I}from"./section-theme.js";import{buttonAlignInRow as L,containedWidth as O,sectionWidth as z}from"./section-width.js";import{blockGroups as D,sectionGroups as J}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as K}from"./slots-start-afresh.js";import{openSlotDisallow as N,sectionGroupAllow as V}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as Co}from"../../../../format/lib/document/passes/registry-context.js";const _=[K,w,S,V,N,E,a,T,l,x,A,B,c,z,O,L,y,k,C,F,P,W,R,H,n,I,s,J,D,h,d,f,u,g,G,b,e,p];function bo(r,m,o){const t=m;for(const i of _)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{_ as BLOCK_PASSES,bo as applyBlockPasses,Co as registryPassContext};
@@ -0,0 +1,2 @@
1
+ import type { BlockPass } from "../../../../format/lib/document/passes/types.js";
2
+ export declare const sectionCustomCss: BlockPass;
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as o}from"react/jsx-runtime";import{lazy as a}from"react";import{CellWrap as d}from"../../../components/InBoxContext.js";import{SECTION_CSS_KEY as f,SECTION_CSS_SCOPE_ATTR as l,sectionCssOf as c}from"../../../../format/lib/content/section-css.js";const C=a(()=>import("../section-css-style.js")),x={name:"sectionCustomCss",applies:(e,t,s)=>t.isSection(e)&&!!s&&typeof s.render=="function",panel(e,t,s){e.fields={...e.fields,...s.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[f]:""};const t=e.render;e.render=s=>{const n=c(s),i=typeof s.id=="string"?s.id:"";return!n||!i?t(s):o(d,{className:"sf-section-css",attrs:{[l]:i},children:[r(C,{css:n,id:i}),t(s)]})}}};export{x as sectionCustomCss};
@@ -13,5 +13,9 @@ export declare const ownPairDefault: (key: string) => InnerPadding | undefined;
13
13
  export declare const PAD_ON_ROOT: ReadonlySet<string>;
14
14
  export declare const PADS_ITS_OWN_SPACE: ReadonlySet<string>;
15
15
  export declare const sectionPadding: BlockPass;
16
+ export declare const OWN_PAD_FRAME: Readonly<Record<string, (props: Record<string, unknown>) => number>>;
17
+ export declare const OWN_PAD_LABEL: Readonly<Record<string, string>>;
18
+ export declare function withPadTotals(props: Record<string, unknown>, changed: Readonly<Record<string, unknown>> | undefined): Record<string, unknown>;
19
+ export declare function olderPadNote(props: Record<string, unknown>, frame: number): string | null;
16
20
  export declare const blockPadding: BlockPass;
17
21
  export {};
@@ -1 +1 @@
1
- import{jsx as _}from"react/jsx-runtime";import{HideTaker as E}from"../../../components/ViewHideRoot.js";import{LineChoice as w}from"../../../components/InBoxContext.js";import{isBackgroundBox as T}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as D}from"../../../../format/lib/content/box-side-space.js";import{BAND_PAD_KEYS as d,BAND_PAD_UNIT_KEY as I,SECTION_PAD_KEYS as x,padValuesOf as A,sectionPadAttrs as N}from"../../content/section-padding.js";import{sectionFillPassClass as S}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as O,drawsCopiesInTheBox as h}from"../../../../format/lib/content/copies-in-box.js";import{ownEntry as m}from"../../../../format/lib/own-entry.js";const g={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}},V=new Set(Object.keys(g));function l(e,t){return t?.innerPadding??m(g,e)}const X=e=>l(e)??{},v=e=>m({DetailRows:{top:100,bottom:100}},e),b=new Set(["Flex","Text","Heading","ImageBlock"]),B=new Set(["Divider"]),C=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),p=new Set(["ProductGrid"]);function c(e,t,n=!1){const r=e.render;e.render=i=>{if(t?.(i))return r(i);const o=N({...A(i,x,n),sideSpace:D(i.sideSpace)}),f=r(i);if(!o)return f;const P=a=>_(E,{className:a?`${o.className} ${a}`:o.className,style:o.style,children:f}),s=S(i,{atSectionLine:!0}),u=S(i);return s===u?P(s):_(w,{line:"by-box",draw:a=>P(a?u:s)})}}const y={name:"sectionPadding",applies:(e,t,n)=>t.isSection(e)&&!C.has(e)&&!!n&&typeof n.render=="function",panel(e,t,n){const r=l(t,e);if(r){e.fields={...e.fields,...n.sidesPaddingFields({keys:d,unitKey:I,fallback:r,tablet:!0,siteSide:!0})};return}if(p.has(t))return;const i=[d.top,d.bottom].filter(o=>e.fields!=null&&o in e.fields);if(i.length)throw new Error(`section-padding: ${t} declares its own ${i.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);e.fields={...e.fields,...n.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){if(!l(t,e)){if(p.has(t)){c(e);return}b.has(t)||B.has(t)||c(e,t==="Flex"?n=>T(n.bgImage):O.has(t)?n=>h(t,n):void 0,!0)}}},F=["Heading","Text","ImageBlock"],L=["LogoBlock"],G={name:"blockPadding",applies:(e,t,n)=>(F.includes(e)||L.includes(e))&&!!n&&typeof n.render=="function",panel(e,t,n){e.fields={...e.fields,...n.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){b.has(t)||c(e,void 0,!0)}};export{B as PADS_ITS_OWN_SPACE,b as PAD_ON_ROOT,V as SECTION_PAD_INNER,g as SECTION_PAD_INNER_DEFAULTS,G as blockPadding,X as innerPaddingFallback,v as ownPairDefault,y as sectionPadding};
1
+ import{jsx as A}from"react/jsx-runtime";import{HideTaker as D}from"../../../components/ViewHideRoot.js";import{LineChoice as E}from"../../../components/InBoxContext.js";import{isBackgroundBox as T}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as w}from"../../../../format/lib/content/box-side-space.js";import{BAND_PAD_KEYS as g,BAND_PAD_UNIT_KEY as O,BLOCK_PAD_FRAME as u,PAD_TOTAL_KEY as c,SECTION_PAD_KEYS as p,padTotalKeys as x,padValuesOf as N,sectionPadAttrs as I}from"../../content/section-padding.js";import{readPartStyle as C}from"../part-styles.js";import{say as F}from"../../../../format/lib/editor-words.js";import{sectionFillPassClass as b}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as L,drawsCopiesInTheBox as R}from"../../../../format/lib/content/copies-in-box.js";import{ownEntry as P}from"../../../../format/lib/own-entry.js";const m={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}},tt=new Set(Object.keys(m));function _(t,e){return e?.innerPadding??P(m,t)}const et=t=>_(t)??{},nt=t=>P({DetailRows:{top:100,bottom:100}},t),h=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),y=new Set(["Divider"]),K=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),B=new Set(["ProductGrid"]);function S(t,e,n=!1){const s=t.render;t.render=o=>{if(e?.(o))return s(o);const i=I({...N(o,p,n),sideSpace:w(o.sideSpace)}),d=s(o);if(!i)return d;const a=f=>A(D,{className:f?`${i.className} ${f}`:i.className,style:i.style,children:d}),r=b(o,{atSectionLine:!0}),l=b(o);return r===l?a(r):A(E,{line:"by-box",draw:f=>a(f?l:r)})}}const ot={name:"sectionPadding",applies:(t,e,n)=>e.isSection(t)&&!K.has(t)&&!!n&&typeof n.render=="function",panel(t,e,n){const s=_(e,t);if(s){t.fields={...t.fields,...n.sidesPaddingFields({keys:g,unitKey:O,fallback:s,tablet:!0,siteSide:!0})};return}if(B.has(e))return;const o=[g.top,g.bottom].filter(i=>t.fields!=null&&i in t.fields);if(o.length)throw new Error(`section-padding: ${e} declares its own ${o.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);t.fields={...t.fields,...n.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(t,e){if(!_(e,t)){if(B.has(e)){S(t);return}h.has(e)||y.has(e)||S(t,e==="Flex"?n=>T(n.bgImage):L.has(e)?n=>R(e,n):void 0,!0)}}},H=["Heading","Text","ImageBlock","ButtonBlock"],W=["LogoBlock"],v={Text:t=>C(t,"text").textStyle?.startsWith("heading-")?u.heading:u.text,Heading:()=>u.heading,ButtonBlock:()=>u.text},Y={ButtonBlock:"Outer padding"};function j(t,e){const n=t[c],s=Array.isArray(n)?n.filter(r=>typeof r=="string"):[],o=x().filter(r=>e?.[r]);if(!o.length)return t;const i=[...s.filter(r=>!o.includes(r)),...o.filter(r=>typeof t[r]=="number")];if(i.length===s.length&&i.every((r,l)=>r===s[l]))return t;const{[c]:d,...a}=t;return i.length?{...a,[c]:i}:a}function k(t,e){if(e<=0)return null;const n=Array.isArray(t[c])?t[c]:[];return x().some(o=>typeof t[o]=="number"&&!n.includes(o))?F("plus {n} px (older setting)",{n:e}):null}const rt={name:"blockPadding",applies:(t,e,n)=>(H.includes(t)||W.includes(t))&&!!n&&typeof n.render=="function",panel(t,e,n){const s=P(v,e);if(!s){t.fields={...t.fields,...n.sidesPaddingFields({tablet:!0,siteSide:!0})};return}t.fields={...t.fields,...n.ownPaddingFields?.(s,k,P(Y,e))??n.sidesPaddingFields({tablet:!0,siteSide:!0})};const o=t.resolveData;t.resolveData=(i,d)=>{const a=i.props??{},r=d?.trigger==="replace"?j(a,d.changed):a,l=r===a?i:{...i,props:r};return o?o(l,d):l}},draw(t,e){h.has(e)||S(t,void 0,!0)}};export{v as OWN_PAD_FRAME,Y as OWN_PAD_LABEL,y as PADS_ITS_OWN_SPACE,h as PAD_ON_ROOT,tt as SECTION_PAD_INNER,m as SECTION_PAD_INNER_DEFAULTS,rt as blockPadding,et as innerPaddingFallback,k as olderPadNote,nt as ownPairDefault,ot as sectionPadding,j as withPadTotals};
@@ -1,2 +1,5 @@
1
- export declare function sanitizeHtml(html: string): string;
1
+ export declare function sanitizeHtml(html: string, opts?: {
2
+ idPrefix?: string;
3
+ }): string;
4
+ export declare function sectionIds(html: string): ReadonlySet<string>;
2
5
  export declare function sanitizeHtmlFragment(html: string): DocumentFragment;
@@ -1 +1 @@
1
- import e from"isomorphic-dompurify";e.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener noreferrer")});const r={ALLOWED_TAGS:["p","br","hr","span","div","section","article","header","footer","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","small","sup","sub","mark","ul","ol","li","blockquote","a","img","picture","source","figure","figcaption","video","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","title","alt","src","srcset","sizes","class","style","target","rel","width","height","loading","poster","controls"],ALLOW_DATA_ATTR:!1};function a(t){return e.sanitize(t,r)}function o(t){return e.sanitize(t,{...r,RETURN_DOM_FRAGMENT:!0})}export{a as sanitizeHtml,o as sanitizeHtmlFragment};
1
+ import n from"isomorphic-dompurify";n.addHook("afterSanitizeAttributes",t=>{if(t.tagName==="A"&&t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener noreferrer"),!r)return;for(const i of u){const s=t.getAttribute?.(i);if(s==null)continue;const c=a=>i==="id"||l.has(a);t.setAttribute(i,s.trim().split(/\s+/).filter(Boolean).map(a=>c(a)?r+a:a).join(" "))}const e=t.tagName==="A"?t.getAttribute("href"):null;e&&e.startsWith("#")&&l.has(e.slice(1))&&t.setAttribute("href",`#${r}${e.slice(1)}`)});const u=["id","popovertarget","aria-controls","aria-labelledby","aria-describedby"];let r="",l=new Set;const o={ALLOWED_TAGS:["p","br","hr","span","div","section","article","header","footer","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","small","sup","sub","mark","ul","ol","li","blockquote","a","img","picture","source","figure","figcaption","video","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","title","alt","src","srcset","sizes","class","style","target","rel","width","height","loading","poster","controls"],ALLOW_DATA_ATTR:!1},f={...o,ALLOWED_TAGS:[...o.ALLOWED_TAGS,"button","details","summary"],ALLOWED_ATTR:[...o.ALLOWED_ATTR,"id","type","popover","popovertarget","popovertargetaction","open","aria-controls","aria-labelledby","aria-describedby"]};function b(t,e={}){const i=e.idPrefix&&/^[A-Za-z][\w-]*$/.test(e.idPrefix)?e.idPrefix:"";l=i?A(t):new Set,r=i;try{return n.sanitize(t,r?f:o)}finally{r="",l=new Set}}function A(t){const e=new Set,i=r;r="";try{const s=n.sanitize(t,{...f,RETURN_DOM_FRAGMENT:!0});for(const c of Array.from(s.querySelectorAll("[id]")))for(const a of(c.getAttribute("id")??"").trim().split(/\s+/))a&&e.add(a)}finally{r=i}return e}function p(t){return n.sanitize(t,{...o,RETURN_DOM_FRAGMENT:!0})}export{b as sanitizeHtml,p as sanitizeHtmlFragment,A as sectionIds};
@@ -0,0 +1,4 @@
1
+ export default function SectionCssStyle({ css, id }: {
2
+ css: string;
3
+ id: string;
4
+ }): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{SECTION_CSS_SCOPE_ATTR as r}from"../../../format/lib/content/section-css.js";import{scopeCustomCss as n}from"./custom-css.js";function m({css:t,id:s}){const o=n(t,s,r);return o?e("style",{dangerouslySetInnerHTML:{__html:o}}):null}export{m as default};