efficient-web-builder 74.2.0 → 74.4.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 (127) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
  3. package/dist/editor/components/SectionTextPartBridge.js +1 -1
  4. package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
  6. package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
  7. package/dist/editor/lib/document/own-pad-fields.js +1 -1
  8. package/dist/format/lib/content/faq-row-anchor.d.ts +1 -0
  9. package/dist/format/lib/content/faq-row-anchor.js +1 -0
  10. package/dist/format/lib/content/unique-ids.d.ts +1 -0
  11. package/dist/format/lib/content/unique-ids.js +1 -0
  12. package/dist/format/lib/document/passes/types.d.ts +3 -2
  13. package/dist/format/lib/document/section-catalog.js +2 -2
  14. package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
  15. package/dist/format/lib/editor-words-catalogue.js +3 -3
  16. package/dist/render/components/Banner.d.ts +3 -1
  17. package/dist/render/components/Banner.js +1 -1
  18. package/dist/render/components/BoxAccordionRow.d.ts +2 -1
  19. package/dist/render/components/BoxAccordionRow.js +1 -1
  20. package/dist/render/components/BoxTabPaneContext.d.ts +12 -0
  21. package/dist/render/components/BoxTabPaneContext.js +1 -1
  22. package/dist/render/components/Cards.d.ts +3 -1
  23. package/dist/render/components/Cards.js +1 -1
  24. package/dist/render/components/ChartSection.d.ts +3 -1
  25. package/dist/render/components/ChartSection.js +1 -1
  26. package/dist/render/components/ContactLocations.d.ts +3 -1
  27. package/dist/render/components/ContactLocations.js +2 -2
  28. package/dist/render/components/ContentsCurrentMark.d.ts +7 -0
  29. package/dist/render/components/ContentsCurrentMark.js +1 -0
  30. package/dist/render/components/ContentsList.d.ts +2 -1
  31. package/dist/render/components/ContentsList.js +1 -1
  32. package/dist/render/components/Countdown.d.ts +3 -1
  33. package/dist/render/components/Countdown.js +1 -1
  34. package/dist/render/components/DocBody.d.ts +3 -1
  35. package/dist/render/components/DocBody.js +5 -5
  36. package/dist/render/components/DocMasthead.d.ts +3 -1
  37. package/dist/render/components/DocMasthead.js +1 -1
  38. package/dist/render/components/DocMetaCards.d.ts +3 -1
  39. package/dist/render/components/DocMetaCards.js +1 -1
  40. package/dist/render/components/FAQ.d.ts +5 -1
  41. package/dist/render/components/FAQ.js +1 -1
  42. package/dist/render/components/FeaturedCover.d.ts +3 -1
  43. package/dist/render/components/FeaturedCover.js +1 -1
  44. package/dist/render/components/Flex.js +1 -1
  45. package/dist/render/components/Grid.d.ts +3 -1
  46. package/dist/render/components/Grid.js +1 -1
  47. package/dist/render/components/IntegrationsSection.d.ts +3 -1
  48. package/dist/render/components/IntegrationsSection.js +1 -1
  49. package/dist/render/components/KeyFeatures.d.ts +3 -1
  50. package/dist/render/components/KeyFeatures.js +1 -1
  51. package/dist/render/components/Logos.d.ts +3 -1
  52. package/dist/render/components/Logos.js +1 -1
  53. package/dist/render/components/LongRead.d.ts +3 -1
  54. package/dist/render/components/LongRead.js +1 -1
  55. package/dist/render/components/Masthead.d.ts +3 -1
  56. package/dist/render/components/Masthead.js +1 -1
  57. package/dist/render/components/MockupSection.d.ts +3 -1
  58. package/dist/render/components/MockupSection.js +1 -1
  59. package/dist/render/components/OpenFromLink.d.ts +3 -0
  60. package/dist/render/components/OpenFromLink.js +1 -0
  61. package/dist/render/components/OrderSummary.d.ts +3 -1
  62. package/dist/render/components/OrderSummary.js +1 -1
  63. package/dist/render/components/PaymentBadges.d.ts +3 -1
  64. package/dist/render/components/PaymentBadges.js +1 -1
  65. package/dist/render/components/Prose.d.ts +3 -1
  66. package/dist/render/components/Prose.js +1 -1
  67. package/dist/render/components/SectionHeader.d.ts +2 -1
  68. package/dist/render/components/SectionHeader.js +1 -1
  69. package/dist/render/components/Series.d.ts +3 -1
  70. package/dist/render/components/Series.js +1 -1
  71. package/dist/render/components/Stats.d.ts +3 -1
  72. package/dist/render/components/Stats.js +1 -1
  73. package/dist/render/components/Testimonials.d.ts +3 -1
  74. package/dist/render/components/Testimonials.js +1 -1
  75. package/dist/render/components/TickerSection.d.ts +3 -1
  76. package/dist/render/components/TickerSection.js +1 -1
  77. package/dist/render/lib/content/section-own-pads.d.ts +35 -0
  78. package/dist/render/lib/content/section-own-pads.js +1 -0
  79. package/dist/render/lib/content/section-padding.d.ts +9 -3
  80. package/dist/render/lib/content/section-padding.js +1 -1
  81. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  82. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  83. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  84. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  85. package/dist/render/lib/document/blocks/general/Contents/render.js +1 -1
  86. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  87. package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
  88. package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
  89. package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
  90. package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
  91. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  92. package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
  93. package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
  94. package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
  95. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  96. package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
  97. package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
  98. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  99. package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
  100. package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
  101. package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
  102. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  103. package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
  104. package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
  105. package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
  106. package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
  107. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  108. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  109. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  110. package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +1 -1
  111. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  112. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  113. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  114. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
  115. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  116. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  117. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  118. package/dist/render/lib/document/editing-bridges.d.ts +5 -1
  119. package/dist/render/lib/document/editing-bridges.js +1 -1
  120. package/dist/render/lib/document/part-styles.d.ts +3 -1
  121. package/dist/render/lib/document/part-styles.js +2 -2
  122. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  123. package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
  124. package/dist/render/lib/document/passes/section-padding.js +1 -1
  125. package/dist/routine-index.json +1 -1
  126. package/dist/value-index.json +1 -1
  127. package/package.json +1 -1
@@ -1 +1 @@
1
- import{storedUnit as v}from"../../../format/lib/content/css-length.js";import{VIEW_TIERS as D,phoneKey as k,resolveViewValue as tt,tabletKey as H,viewKeyAt as p}from"efficient-easel/draw";import{ownEntry as ot}from"../../../format/lib/own-entry.js";import{SECTION_PAD_UNIT_KEY as M,SITE_SIDE as et,VIEW_ABOVE as nt,convertLength as j,isLengthUnit as st,isSiteSide as G,sideLengthAt as it,sideValueAt as rt,withLength as O}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as K}from"../../../format/lib/content/page-width.js";import{viewRules as dt}from"../../../format/lib/content/view-overrides.js";import{EDGE_LINE_ATTRS as at}from"../../../format/lib/content/view-lines.js";import{finiteNumber as c}from"../../../format/lib/finite-number.js";const Y={min:10,max:200,step:10};function pt(t,e,o,i=0){const n=c(t),r=c(e);if(n===void 0&&r===void 0)return;const s=x(o),d=a=>a===void 0?void 0:s==="px"?a:O(a,s,i);return{paddingTop:d(n),paddingBottom:d(r)}}const x=t=>v(t),L=(t,e)=>typeof t=="object"?t[e]:t??0,ct={top:"top",bottom:"bottom"};function lt(t,e,o,i){const n=c(t),r=c(e);if(n===void 0&&r===void 0)return;const s=x(o),d=(a,u)=>a===void 0?void 0:s==="px"?a:O(a,s,u);return{paddingTop:d(n,i("top","desktop")),paddingBottom:d(r,i("bottom","desktop"))}}const ft="sf-pad-top-phone",ut="sf-pad-bottom-phone",mt="--sf-pad-t-phone",bt="--sf-pad-b-phone",Tt="sf-pad-left-phone",_t="sf-pad-right-phone",At="--sf-pad-l-phone",Pt="--sf-pad-r-phone",ht="sf-pad-top-tablet",xt="sf-pad-bottom-tablet",gt="sf-pad-left-tablet",Et="sf-pad-right-tablet",St="--sf-pad-t-tablet",Dt="--sf-pad-b-tablet",Ot="--sf-pad-l-tablet",Lt="--sf-pad-r-tablet",w="sf-section-pad";function R(t){const e={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},o=t.totals?.length||typeof t.frame=="object"?(r,s)=>t.totals?.includes(p(r,s))?0:L(t.frame,s):t.frame,i=typeof o=="function"?lt(t.top,t.bottom,t.unit,o):pt(t.top,t.bottom,t.unit,o),n=wt({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},e,o,t.sideSpace);return i===void 0&&!n.classes.length&&!Object.keys(n.style).length?null:{className:[w,...n.classes].join(" "),style:{...i,...n.style}}}const Nt=t=>G(t)?t:c(t),Bt=[["top","paddingTop",[ht,St],[ft,mt]],["bottom","paddingBottom",[xt,Dt],[ut,bt]],["left","paddingLeft",[gt,Ot],[Tt,At]],["right","paddingRight",[Et,Lt],[_t,Pt]]];function I(t,e,o){return!st(e)||e==="px"?t:j(t,"px",e,o,{min:0,max:Y.max,step:1})}const U=t=>{const e=nt[t];return e?[t,...U(e)]:[t]},N=Object.fromEntries(D.map(t=>[t,U(t)]));function yt(t,e,o,i={},n=0){const r={desktop:!0,tablet:e!==void 0,mobile:o!==void 0},s=(_,m,A)=>{if(m==="px")return`${_}px`;const l=N[A].find(E=>r[E])??"desktop",f=O(_,m,L(n,l));return typeof f=="number"?`${f}px`:f},d={n:t,[H("n")]:e,[k("n")]:o,u:i.desktop,[H("u")]:i.tablet,[k("u")]:i.phone},a=tt("spacing",c(t),c(e),c(o),dt()),u=(_,m,A)=>{if(rt(d,{side:"n"},_,"side",["side"])?.value===et)return K().value;const l=it(d,{side:"n"},"u",_,"side");if(!l)return;const f=m!==null&&!A&&l.unit==="px"&&typeof a[m]=="number";return s(f?a[m]:l.value,l.unit,_)},b=u("desktop",null,!0),P={},T=u("tablet","tablet",e!==void 0);T!==void 0&&(e!==void 0||T!==b)&&(P.tablet=T);const h=u("mobile","phone",o!==void 0);return h!==void 0&&(o!==void 0||h!==b)&&(P.phone=h),P}function wt(t,e,o={},i=t,n={},r=0,s="box"){const d={},a={},u=[],b=K(s);let P=!1;for(const[T,h,..._]of Bt){const m=T==="left"||T==="right"?Nt:c,A=m(t[T]),l=ot(ct,T),f=l?typeof r=="function"?{desktop:r(l,"desktop"),tablet:r(l,"tablet"),mobile:r(l,"mobile")}:r:0,E=typeof f=="object"?f.desktop:f;G(A)?(d[h]=b.value,P=!0):A!==void 0&&(d[h]=x(n.desktop)==="px"?A:O(A,x(n.desktop),E));const g=yt(m(i[T]),m(o[T]),m(e[T]),n,f);for(const[S,[Q,Z]]of[["tablet",_[0]],["phone",_[1]]]){const y=g[S];y!==void 0&&(u.push(Q),a[Z]=y,y===b.value&&(P=!0))}}return P&&u.push(...b.className.split(" ")),{classes:u,style:{...d,...a}}}function W(t,e,o){const i=c(t)??o,n=c(e);return i===void 0?n:n===void 0?i:i+n}function Xt(t,e={}){return{top:W(t.padTop,t.sectionPaddingTop,e.top),bottom:W(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const $={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},C="padUnit";function Rt(t,e){const o=t[C],i=(n,r,s)=>{const d=c(n)??(s===void 0?void 0:I(s,o,"desktop")),a=c(r);return a===void 0?d:(d??0)+I(a,o,"desktop")};return{top:i(t.padTop,t.sectionPaddingTop,e.top),bottom:i(t.padBottom,t.sectionPaddingBottom,e.bottom)}}function qt(t,e,o={}){const i=Rt(t,e),n={...It(t,$,!0,C),top:i.top,bottom:i.bottom};o.noTop&&Object.assign(n,{top:0,topTablet:void 0,topPhone:void 0});const r=R(n),s=r?r.className.split(" ").filter(d=>d!==w):[];return{...s.length?{className:s.join(" ")}:{},style:r?.style??{}}}const B={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},zt=[...["top","bottom","left","right"].map(t=>[$[t],B[t]]),[C,M]].flatMap(([t,e])=>[[t,e],...["tablet","mobile"].map(o=>[p(t,o),p(e,o)])]);function It(t,e=B,o=!0,i=e===B?M:void 0){const n={};if(i){t[i]!==void 0&&(n.unit=t[i]);for(const s of["tablet","mobile"])t[p(i,s)]!==void 0&&(n[p("unit",s)]=t[p(i,s)])}for(const s of o?["top","bottom","left","right"]:["top","bottom"]){n[s]=t[e[s]];for(const d of["tablet","mobile"])n[p(s,d)]=t[p(e[s],d)]}const r=t[Ct];if(Array.isArray(r)){const s=X.flatMap(d=>D.filter(a=>r.includes(p(e[d],a))).map(a=>p(d,a)));s.length&&(n.totals=s)}return n}const Ct="padTotal",X=["top","bottom"];function Jt(t=B){return X.flatMap(e=>D.map(o=>p(t[e],o)))}const V=16,F=24,Vt={text:V,heading:F,line:0},q={all:{12:"py-3",16:"py-4",24:"py-6"},edge:{12:"max-view-wide:py-3"}},Ft={[V]:q.all[V],[F]:q.all[F],[Vt.line]:""};function Qt(t,e){return{className:Ft[e]??"",...t?{pad:{values:t,frame:e}}:{}}}const Zt=t=>({desktop:t.top,tablet:t.top,mobile:t.topPhone});function vt(t,e){if(!e)return{root:J(t.values,t.frame),outer:null};if(!t.values.totals?.length)return{root:null,outer:z(t.values)};const o=t.values,{top:i,bottom:n,topTablet:r,bottomTablet:s,topPhone:d,bottomPhone:a,left:u,right:b,leftTablet:P,rightTablet:T,leftPhone:h,rightPhone:_,...m}=o,A={...m,top:i,bottom:n,topTablet:r,bottomTablet:s,topPhone:d,bottomPhone:a},l=J(t.drawsFrame?kt(A,t.frame):A,t.frame),f=l&&t.drawsFrame?{...l,className:l.className.split(" ").filter(g=>g!==w).join(" ")}:l,E=["tablet","mobile"].some(g=>["top","bottom"].some(S=>typeof o[p(S,g)]=="number"&&!o.totals?.includes(p(S,g))));return{root:f&&t.edge&&f.className&&!E?{...f,attrs:at}:f,outer:z({...m,totals:void 0,left:u,right:b,leftTablet:P,rightTablet:T,leftPhone:h,rightPhone:_})}}function kt(t,e){const o=r=>L(e,r),i={...t},n=[...t.totals??[]];for(const r of D)for(const s of["top","bottom"]){if(N[r].some(a=>c(t[p(s,a)])!==void 0))continue;const d=N[r][1];d&&o(d)===o(r)||(i[p(s,r)]=I(o(r),t[p("unit",r)],r),n.push(p(s,r)))}return{...i,totals:n}}function Ht(t,e){const o={...t};for(const i of["tablet","mobile"]){const n=p("unit",i),r=["top","bottom","left","right"].some(s=>c(t[p(s,i)])!==void 0);for(const s of["top","bottom"]){if(c(o[p(s,i)])!==void 0)continue;const d=N[i].slice(1).find(b=>c(o[p(s,b)])!==void 0);if(!d||e[d]===e[i]||t.totals?.includes(p(s,d)))continue;const a=c(o[p(s,d)]),u=x(o[p("unit",d)]);if(r){const b=x(o[n]);o[p(s,i)]=u===b?a:j(a,u,b,i,{min:0,max:Y.max,step:1})}else o[p(s,i)]=a,o[n]=o[p("unit",d)]}}return o}function z(t){return R(t)}function J(t,e){const o=typeof e=="object"?Ht(t,e):t,i=r=>L(e,r),n=(r,s,d,a)=>typeof r!="number"?void 0:x(s)==="px"&&!o.totals?.includes(d)?r+i(a):r;return R({...o,frame:e,top:n(o.top,o.unit,"top","desktop"),bottom:n(o.bottom,o.unit,"bottom","desktop"),topTablet:n(o.topTablet,o.unitTablet,"topTablet","tablet"),bottomTablet:n(o.bottomTablet,o.unitTablet,"bottomTablet","tablet"),topPhone:n(o.topPhone,o.unitPhone,"topPhone","mobile"),bottomPhone:n(o.bottomPhone,o.unitPhone,"bottomPhone","mobile")})}export{$ as BAND_PAD_KEYS,C as BAND_PAD_UNIT_KEY,zt as BAND_TO_SECTION_PAD,Vt as BLOCK_PAD_FRAME,Ft as FRAME_CLASS,F as HEADING_PAD_FRAME,ut as PAD_BOTTOM_PHONE_CLASS,bt as PAD_BOTTOM_PHONE_VAR,xt as PAD_BOTTOM_TABLET_CLASS,Dt as PAD_BOTTOM_TABLET_VAR,Tt as PAD_LEFT_PHONE_CLASS,At as PAD_LEFT_PHONE_VAR,gt as PAD_LEFT_TABLET_CLASS,Ot as PAD_LEFT_TABLET_VAR,_t as PAD_RIGHT_PHONE_CLASS,Pt as PAD_RIGHT_PHONE_VAR,Et as PAD_RIGHT_TABLET_CLASS,Lt as PAD_RIGHT_TABLET_VAR,ft as PAD_TOP_PHONE_CLASS,mt as PAD_TOP_PHONE_VAR,ht as PAD_TOP_TABLET_CLASS,St as PAD_TOP_TABLET_VAR,Ct as PAD_TOTAL_KEY,q as PY_CLASS,Y as SECTION_PADDING,w as SECTION_PAD_CLASS,B as SECTION_PAD_KEYS,V as TEXT_PAD_FRAME,qt as bandPadAttrs,Rt as bandTopBottom,L as frameAt,vt as framePadAttrs,Qt as ownPadOf,I as padDefaultIn,wt as padSideAttrs,Nt as padSideValue,Jt as padTotalKeys,It as padValuesOf,Xt as resolveSectionPadding,J as rootPadAttrs,R as sectionPadAttrs,pt as sectionPadStyle,yt as sideViewLengths,Zt as tierFramesOf,z as wrapperPadAttrs};
1
+ import{storedUnit as tt}from"../../../format/lib/content/css-length.js";import{VIEW_TIERS as O,phoneKey as H,resolveViewValue as ot,tabletKey as M,viewKeyAt as a}from"efficient-easel/draw";import{ownEntry as et}from"../../../format/lib/own-entry.js";import{SECTION_PAD_UNIT_KEY as j,SITE_SIDE as nt,VIEW_ABOVE as st,convertLength as G,isLengthUnit as it,isSiteSide as K,sideLengthAt as rt,sideValueAt as dt,withLength as L}from"efficient-easel/screen/lib/content/length-units";import{siteSideRoom as Y}from"../../../format/lib/content/page-width.js";import{viewRules as pt}from"../../../format/lib/content/view-overrides.js";import{EDGE_LINE_ATTRS as at}from"../../../format/lib/content/view-lines.js";import{finiteNumber as c}from"../../../format/lib/finite-number.js";const U={min:10,max:200,step:10};function ct(t,e,o,n=0){const s=c(t),d=c(e);if(s===void 0&&d===void 0)return;const i=x(o),r=p=>p===void 0?void 0:i==="px"?p:L(p,i,n);return{paddingTop:r(s),paddingBottom:r(d)}}const x=t=>tt(t),w=(t,e)=>typeof t=="object"?t[e]:t??0,lt=t=>typeof t=="object"&&t!==null&&"top"in t,S=(t,e,o)=>lt(t)?w(t[e],o):w(t,o),ft={top:"top",bottom:"bottom"};function ut(t,e,o,n){const s=c(t),d=c(e);if(s===void 0&&d===void 0)return;const i=x(o),r=(p,u)=>p===void 0?void 0:i==="px"?p:L(p,i,u);return{paddingTop:r(s,n("top","desktop")),paddingBottom:r(d,n("bottom","desktop"))}}const mt="sf-pad-top-phone",bt="sf-pad-bottom-phone",Tt="--sf-pad-t-phone",At="--sf-pad-b-phone",_t="sf-pad-left-phone",Pt="sf-pad-right-phone",ht="--sf-pad-l-phone",xt="--sf-pad-r-phone",gt="sf-pad-top-tablet",Et="sf-pad-bottom-tablet",St="sf-pad-left-tablet",Dt="sf-pad-right-tablet",Ot="--sf-pad-t-tablet",Lt="--sf-pad-b-tablet",Nt="--sf-pad-l-tablet",Bt="--sf-pad-r-tablet",R="sf-section-pad";function I(t){const e={desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},o=t.totals?.length||typeof t.frame=="object"?(d,i)=>t.totals?.includes(a(d,i))?0:S(t.frame,d,i):t.frame,n=typeof o=="function"?ut(t.top,t.bottom,t.unit,o):ct(t.top,t.bottom,t.unit,o),s=It({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},e,o,t.sideSpace);return n===void 0&&!s.classes.length&&!Object.keys(s.style).length?null:{className:[R,...s.classes].join(" "),style:{...n,...s.style}}}const yt=t=>K(t)?t:c(t),wt=[["top","paddingTop",[gt,Ot],[mt,Tt]],["bottom","paddingBottom",[Et,Lt],[bt,At]],["left","paddingLeft",[St,Nt],[_t,ht]],["right","paddingRight",[Dt,Bt],[Pt,xt]]];function C(t,e,o){return!it(e)||e==="px"?t:G(t,"px",e,o,{min:0,max:U.max,step:1})}const W=t=>{const e=st[t];return e?[t,...W(e)]:[t]},N=Object.fromEntries(O.map(t=>[t,W(t)]));function Rt(t,e,o,n={},s=0){const d={desktop:!0,tablet:e!==void 0,mobile:o!==void 0},i=(A,m,_)=>{if(m==="px")return`${A}px`;const l=N[_].find(E=>d[E])??"desktop",f=L(A,m,w(s,l));return typeof f=="number"?`${f}px`:f},r={n:t,[M("n")]:e,[H("n")]:o,u:n.desktop,[M("u")]:n.tablet,[H("u")]:n.phone},p=ot("spacing",c(t),c(e),c(o),pt()),u=(A,m,_)=>{if(dt(r,{side:"n"},A,"side",["side"])?.value===nt)return Y().value;const l=rt(r,{side:"n"},"u",A,"side");if(!l)return;const f=m!==null&&!_&&l.unit==="px"&&typeof p[m]=="number";return i(f?p[m]:l.value,l.unit,A)},b=u("desktop",null,!0),P={},T=u("tablet","tablet",e!==void 0);T!==void 0&&(e!==void 0||T!==b)&&(P.tablet=T);const h=u("mobile","phone",o!==void 0);return h!==void 0&&(o!==void 0||h!==b)&&(P.phone=h),P}function It(t,e,o={},n=t,s={},d=0,i="box"){const r={},p={},u=[],b=Y(i);let P=!1;for(const[T,h,...A]of wt){const m=T==="left"||T==="right"?yt:c,_=m(t[T]),l=et(ft,T),f=l?typeof d=="function"?{desktop:d(l,"desktop"),tablet:d(l,"tablet"),mobile:d(l,"mobile")}:d:0,E=typeof f=="object"?f.desktop:f;K(_)?(r[h]=b.value,P=!0):_!==void 0&&(r[h]=x(s.desktop)==="px"?_:L(_,x(s.desktop),E));const g=Rt(m(n[T]),m(o[T]),m(e[T]),s,f);for(const[D,[Z,v]]of[["tablet",A[0]],["phone",A[1]]]){const y=g[D];y!==void 0&&(u.push(Z),p[v]=y,y===b.value&&(P=!0))}}return P&&u.push(...b.className.split(" ")),{classes:u,style:{...r,...p}}}function $(t,e,o){const n=c(t)??o,s=c(e);return n===void 0?s:s===void 0?n:n+s}function zt(t,e={}){return{top:$(t.padTop,t.sectionPaddingTop,e.top),bottom:$(t.padBottom,t.sectionPaddingBottom,e.bottom)}}const X={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},V="padUnit";function Ct(t,e){const o=t[V],n=(s,d,i)=>{const r=c(s)??(i===void 0?void 0:C(i,o,"desktop")),p=c(d);return p===void 0?r:(r??0)+C(p,o,"desktop")};return{top:n(t.padTop,t.sectionPaddingTop,e.top),bottom:n(t.padBottom,t.sectionPaddingBottom,e.bottom)}}function Jt(t,e,o={}){const n=Ct(t,e),s={...Vt(t,X,!0,V),top:n.top,bottom:n.bottom};o.noTop&&Object.assign(s,{top:0,topTablet:void 0,topPhone:void 0});const d=I(s),i=d?d.className.split(" ").filter(r=>r!==R):[];return{...i.length?{className:i.join(" ")}:{},style:d?.style??{}}}const B={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},Qt=[...["top","bottom","left","right"].map(t=>[X[t],B[t]]),[V,j]].flatMap(([t,e])=>[[t,e],...["tablet","mobile"].map(o=>[a(t,o),a(e,o)])]);function Vt(t,e=B,o=!0,n=e===B?j:void 0){const s={};if(n){t[n]!==void 0&&(s.unit=t[n]);for(const i of["tablet","mobile"])t[a(n,i)]!==void 0&&(s[a("unit",i)]=t[a(n,i)])}for(const i of o?["top","bottom","left","right"]:["top","bottom"]){s[i]=t[e[i]];for(const r of["tablet","mobile"])s[a(i,r)]=t[a(e[i],r)]}const d=t[Ft];if(Array.isArray(d)){const i=q.flatMap(r=>O.filter(p=>d.includes(a(e[r],p))).map(p=>a(r,p)));i.length&&(s.totals=i)}return s}const Ft="padTotal",q=["top","bottom"];function Zt(t=B){return q.flatMap(e=>O.map(o=>a(t[e],o)))}const F=16,k=24,kt={text:F,heading:k,line:0},z={all:{12:"py-3",16:"py-4",24:"py-6"},edge:{12:"max-view-wide:py-3"}},Ht={[F]:z.all[F],[k]:z.all[k],[kt.line]:""};function vt(t,e){return{className:Ht[e]??"",...t?{pad:{values:t,frame:e}}:{}}}const to=t=>({desktop:t.top,tablet:t.top,mobile:t.topPhone});function oo(t,e){if(!e)return{root:Q(t.values,t.frame),outer:null};if(!t.values.totals?.length)return{root:null,outer:J(t.values)};const o=t.values,{top:n,bottom:s,topTablet:d,bottomTablet:i,topPhone:r,bottomPhone:p,left:u,right:b,leftTablet:P,rightTablet:T,leftPhone:h,rightPhone:A,...m}=o,_={...m,top:n,bottom:s,topTablet:d,bottomTablet:i,topPhone:r,bottomPhone:p},l=Q(t.drawsFrame?Mt(_,t.frame):_,t.frame),f=l&&t.drawsFrame?{...l,className:l.className.split(" ").filter(g=>g!==R).join(" ")}:l,E=["tablet","mobile"].some(g=>["top","bottom"].some(D=>typeof o[a(D,g)]=="number"&&!o.totals?.includes(a(D,g))));return{root:f&&t.edge&&f.className&&!E?{...f,attrs:at}:f,outer:J({...m,totals:void 0,left:u,right:b,leftTablet:P,rightTablet:T,leftPhone:h,rightPhone:A})}}function Mt(t,e){const o={...t},n=[...t.totals??[]];for(const s of O)for(const d of["top","bottom"]){if(N[s].some(p=>c(t[a(d,p)])!==void 0))continue;const i=p=>S(e,d,p),r=N[s][1];r&&i(r)===i(s)||(o[a(d,s)]=C(i(s),t[a("unit",s)],s),n.push(a(d,s)))}return{...o,totals:n}}function jt(t,e){const o={...t};for(const n of["tablet","mobile"]){const s=a("unit",n),d=["top","bottom","left","right"].some(i=>c(t[a(i,n)])!==void 0);for(const i of["top","bottom"]){if(c(o[a(i,n)])!==void 0)continue;const r=N[n].slice(1).find(b=>c(o[a(i,b)])!==void 0);if(!r||S(e,i,r)===S(e,i,n)||t.totals?.includes(a(i,r)))continue;const p=c(o[a(i,r)]),u=x(o[a("unit",r)]);if(d){const b=x(o[s]);o[a(i,n)]=u===b?p:G(p,u,b,n,{min:0,max:U.max,step:1})}else o[a(i,n)]=p,o[s]=o[a("unit",r)]}}return o}function J(t){return I(t)}function Q(t,e){const o=typeof e=="object"?jt(t,e):t,n=(s,d,i,r,p)=>typeof s!="number"?void 0:x(d)==="px"&&!o.totals?.includes(i)?s+S(e,r,p):s;return I({...o,frame:e,top:n(o.top,o.unit,"top","top","desktop"),bottom:n(o.bottom,o.unit,"bottom","bottom","desktop"),topTablet:n(o.topTablet,o.unitTablet,"topTablet","top","tablet"),bottomTablet:n(o.bottomTablet,o.unitTablet,"bottomTablet","bottom","tablet"),topPhone:n(o.topPhone,o.unitPhone,"topPhone","top","mobile"),bottomPhone:n(o.bottomPhone,o.unitPhone,"bottomPhone","bottom","mobile")})}export{X as BAND_PAD_KEYS,V as BAND_PAD_UNIT_KEY,Qt as BAND_TO_SECTION_PAD,kt as BLOCK_PAD_FRAME,Ht as FRAME_CLASS,k as HEADING_PAD_FRAME,bt as PAD_BOTTOM_PHONE_CLASS,At as PAD_BOTTOM_PHONE_VAR,Et as PAD_BOTTOM_TABLET_CLASS,Lt as PAD_BOTTOM_TABLET_VAR,_t as PAD_LEFT_PHONE_CLASS,ht as PAD_LEFT_PHONE_VAR,St as PAD_LEFT_TABLET_CLASS,Nt as PAD_LEFT_TABLET_VAR,Pt as PAD_RIGHT_PHONE_CLASS,xt as PAD_RIGHT_PHONE_VAR,Dt as PAD_RIGHT_TABLET_CLASS,Bt as PAD_RIGHT_TABLET_VAR,mt as PAD_TOP_PHONE_CLASS,Tt as PAD_TOP_PHONE_VAR,gt as PAD_TOP_TABLET_CLASS,Ot as PAD_TOP_TABLET_VAR,Ft as PAD_TOTAL_KEY,z as PY_CLASS,U as SECTION_PADDING,R as SECTION_PAD_CLASS,B as SECTION_PAD_KEYS,F as TEXT_PAD_FRAME,Jt as bandPadAttrs,Ct as bandTopBottom,w as frameAt,oo as framePadAttrs,vt as ownPadOf,C as padDefaultIn,It as padSideAttrs,yt as padSideValue,Zt as padTotalKeys,Vt as padValuesOf,zt as resolveSectionPadding,Q as rootPadAttrs,I as sectionPadAttrs,ct as sectionPadStyle,S as sideFrameAt,Rt as sideViewLengths,to as tierFramesOf,J as wrapperPadAttrs};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import x from"../../../../../components/Banner.js";import{phHide as r,ctaHide as y}from"../../scaffold.js";import{BannerMeta as d,BANNER_PH as t}from"../../../../../../format/lib/document/blocks/general/Banner/meta.js";const l={...d,render:({eyebrow:a,title:m,body:c,imageSrc:f,ctaText:i,ctaHref:p,contained:b,overlay:n,editor:e})=>{const o=y(i,p,e);return s(x,{eyebrow:r(a,t.eyebrow,e),title:r(m,t.title,e),body:r(c,t.body,e),imageSrc:f,overlay:typeof n=="number"?n:60,ctaText:o.text,ctaHref:o.href,contained:b})}};export{l as BannerRender};
1
+ import{jsx as p}from"react/jsx-runtime";import s from"../../../../../components/Banner.js";import{sectionRootPad as x}from"../../../../content/section-own-pads.js";import{phHide as t,ctaHide as l}from"../../scaffold.js";import{BannerMeta as B,BANNER_PH as r}from"../../../../../../format/lib/document/blocks/general/Banner/meta.js";const j={...B,render:o=>{const{eyebrow:i,title:c,body:m,imageSrc:d,ctaText:f,ctaHref:y,contained:b,overlay:n,editor:e}=o,a=l(f,y,e);return p(s,{eyebrow:t(i,r.eyebrow,e),title:t(c,r.title,e),body:t(m,r.body,e),imageSrc:d,overlay:typeof n=="number"?n:60,ctaText:a.text,ctaHref:a.href,contained:b,pad:x("Banner",o)})}};export{j as BannerRender};
@@ -1 +1 @@
1
- import{jsx as s,Fragment as m}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as E}from"../../../../../../format/lib/content/section-min-height.js";import _,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{CardTemplateRows as A}from"../../../../../components/CardRowContext.js";import{cardRow as D}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as H,keyedRows as u,markedRows as f,rowHoldsContent as h}from"../../../../../../format/lib/content/card-state.js";import{declaredBlockSource as b,sourceChoices as I,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{parseSectionHeadPlacement as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as F}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as T,phHide as y}from"../../scaffold.js";import{say as n}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as a}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as v,CARDS_PH as C}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const g=()=>[{title:n("Card title one"),body:n("A short line about this card.")},{title:n("Card title two"),body:n("A short line about this card.")},{title:n("Card title three"),body:n("A short line about this card.")}],S=()=>g().map(t=>({[a.title]:t.title??"",[a.body]:t.body??""}));function N(t){return b(t)?w(t,t.editor?.isEditing===!0,S()).rows.filter(e=>e[a.title]||e[a.body]).map(e=>({title:e[a.title]??"",body:e[a.body]??""})):null}function O(t){const e=t.editor?.isEditing===!0,o=b(t),d=H(t);if(o){const r=w(t,e,S());return f(u(r.rows,r.sample?I(o):[]).filter(h),d)}const l=T(t.items,g(),t.editor).map(D);return f(u(l).filter(r=>e||h(r)),d)}function P(t,e){const o=`relative grid ${E} bg-bg`;return s("div",{className:e?`${o} ${e}`:o,children:t})}const X={...v,render:t=>{const e=L(t.headPlacement)==="own-box",o=i=>e?void 0:i,d=(t.template?.blockCount??0)>0,l=N(t);if(!d&&l&&!l.length)return s(m,{});const r=i=>s(_,{look:F(t.eyebrowLook,t.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(y(t.eyebrow,C.eyebrow,t.editor)),title:o(y(t.title,C.title,t.editor)),columns:t.columns,omitHead:e,editing:t.editor?.isEditing,cards:i}),{rows:c,states:R}=d?O(t):{rows:[],states:[]};return d&&l&&!c.length?s(m,{}):s(A,{ownerId:String(t.id??""),ownerType:"Cards",Template:t.template,rows:c,states:R,fallback:r(),wrapCopy:(i,k)=>P(i,x(k.index,c.length,t.columns)),children:i=>c.length?r(i):r()})}};export{X as CardsRender};
1
+ import{jsx as s,Fragment as m}from"react/jsx-runtime";import{SECTION_GRID_COLUMN_CLASS as E}from"../../../../../../format/lib/content/section-min-height.js";import _,{cardGridCornerClasses as x}from"../../../../../components/Cards.js";import{sectionRootPad as A}from"../../../../content/section-own-pads.js";import{CardTemplateRows as D}from"../../../../../components/CardRowContext.js";import{cardRow as H}from"../../../../../../format/lib/content/card-template.js";import{highlightOf as I,keyedRows as u,markedRows as f,rowHoldsContent as h}from"../../../../../../format/lib/content/card-state.js";import{declaredBlockSource as b,sourceChoices as L,sourcedRows as w}from"../../../../../../format/lib/content/block-sources.js";import{parseSectionHeadPlacement as F}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as P}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as T,phHide as C}from"../../scaffold.js";import{say as n}from"../../../../../../format/lib/editor-words.js";import{SERVED_CARD_FIELDS as a}from"../../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CardsMeta as v,CARDS_PH as y}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const g=()=>[{title:n("Card title one"),body:n("A short line about this card.")},{title:n("Card title two"),body:n("A short line about this card.")},{title:n("Card title three"),body:n("A short line about this card.")}],S=()=>g().map(t=>({[a.title]:t.title??"",[a.body]:t.body??""}));function N(t){return b(t)?w(t,t.editor?.isEditing===!0,S()).rows.filter(e=>e[a.title]||e[a.body]).map(e=>({title:e[a.title]??"",body:e[a.body]??""})):null}function O(t){const e=t.editor?.isEditing===!0,o=b(t),d=I(t);if(o){const r=w(t,e,S());return f(u(r.rows,r.sample?L(o):[]).filter(h),d)}const l=T(t.items,g(),t.editor).map(H);return f(u(l).filter(r=>e||h(r)),d)}function $(t,e){const o=`relative grid ${E} bg-bg`;return s("div",{className:e?`${o} ${e}`:o,children:t})}const Z={...v,render:t=>{const e=F(t.headPlacement)==="own-box",o=i=>e?void 0:i,d=(t.template?.blockCount??0)>0,l=N(t);if(!d&&l&&!l.length)return s(m,{});const r=i=>s(_,{look:P(t.eyebrowLook,t.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(C(t.eyebrow,y.eyebrow,t.editor)),title:o(C(t.title,y.title,t.editor)),columns:t.columns,omitHead:e,editing:t.editor?.isEditing,cards:i,pad:A("Cards",t)}),{rows:c,states:R}=d?O(t):{rows:[],states:[]};return d&&l&&!c.length?s(m,{}):s(D,{ownerId:String(t.id??""),ownerType:"Cards",Template:t.template,rows:c,states:R,fallback:r(),wrapCopy:(i,k)=>$(i,x(k.index,c.length,t.columns)),children:i=>c.length?r(i):r()})}};export{Z as CardsRender};
@@ -1 +1 @@
1
- import{jsx as u}from"react/jsx-runtime";import w from"../../../../../components/ChartSection.js";import{phRows as x,phHide as i,hidableRow as o}from"../../scaffold.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{parseSectionHeadPlacement as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{ChartMeta as H,CHART_PH as n}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const S=()=>[{label:r("Before"),value:"9"},{label:r("After"),value:"3"},{label:r("With us"),value:"1"}],B={...H,render:({eyebrow:l,title:m,body:s,items:f,caption:c,chartStyle:p,valueSuffix:d,headPlacement:h,editor:e})=>{const a=y(h)==="own-box",t=b=>a?void 0:b;return u(w,{eyebrow:t(i(l,n.eyebrow,e)),title:t(i(m,n.title,e)),body:t(o(s)),items:x(f,S(),e),chartStyle:p,valueSuffix:o(d),caption:t(o(c)),editing:e?.isEditing,omitHead:a})}};export{B as ChartRender};
1
+ import{jsx as w}from"react/jsx-runtime";import y from"../../../../../components/ChartSection.js";import{phRows as x,phHide as n,hidableRow as o}from"../../scaffold.js";import{say as r}from"../../../../../../format/lib/editor-words.js";import{parseSectionHeadPlacement as S}from"../../../../../../format/lib/sections/section-head-placement.js";import{sectionRootPad as v}from"../../../../content/section-own-pads.js";import{ChartMeta as C,CHART_PH as l}from"../../../../../../format/lib/document/blocks/general/Chart/meta.js";const H=()=>[{label:r("Before"),value:"9"},{label:r("After"),value:"3"},{label:r("With us"),value:"1"}],E={...C,render:a=>{const{eyebrow:m,title:d,body:s,items:c,caption:f,chartStyle:h,valueSuffix:p,headPlacement:b,editor:e}=a,i=S(b)==="own-box",t=u=>i?void 0:u;return w(y,{eyebrow:t(n(m,l.eyebrow,e)),title:t(n(d,l.title,e)),body:t(o(s)),items:x(c,H(),e),chartStyle:h,valueSuffix:o(p),caption:t(o(f)),editing:e?.isEditing,omitHead:i,pad:v("Chart",a)})}};export{E as ChartRender};
@@ -1 +1 @@
1
- import{jsx as a,Fragment as u}from"react/jsx-runtime";import l from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as g,CONTACT_LOCATIONS_DEFAULTS as i,contactLocationCardOfRow as s}from"../../../../../../format/lib/content/contact.js";import{SITE_OFFICES_SOURCE as m,declaredBlockSource as c,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as h}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{pictureHoverOf as L}from"../../../../../../format/lib/animation/hover.js";import{contactLocationOfOffice as O}from"../../../../../../format/lib/content/site-offices.js";import{SiteOffices as S}from"../../../../../components/SiteOffices.js";import{ContactLocationsMeta as T}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const y=()=>[{name:o("Location name"),address:o("Street address"),state:o("State"),country:o("Country"),phone:"+00 000 0000",hours:o("Opening hours")}];function E(t,e=[]){if(!c(t))return t.locations??g;if(c(t)===m&&e.length)return e.map(O);const n=C(t,t.editor?.isEditing===!0,y());return n.rows.length?n.rows.map(s):null}function r(t,e,n){const d=h(t,e,n);return d!==void 0?d:t==null?void 0:""}const b={...T,render:t=>c(t)===m?a(S,{children:e=>f(t,e)}):f(t)};function f(t,e){const n=E(t,e);return n?a(l,{sectionNumber:r(t.sectionNumber,i.sectionNumber,t.editor),heading:r(t.heading,i.heading,t.editor),tagline:r(t.tagline,i.tagline,t.editor),galleryKicker:r(t.galleryKicker,i.galleryKicker,t.editor),galleryHint:r(t.galleryHint,i.galleryHint,t.editor),locations:n,mapTheme:t.mapTheme??i.mapTheme,imageShape:t.imageShape,pictureHover:L(t,"ContactLocations"),editing:t.editor?.isEditing,nodeId:t.editor?.isEditing?t.id:void 0}):a(u,{})}export{b as ContactLocationsRender};
1
+ import{jsx as r,Fragment as u}from"react/jsx-runtime";import l from"../../../../../components/ContactLocations.js";import{CONTACT_LOCATIONS_CARDS_PLACEHOLDER as g,CONTACT_LOCATIONS_DEFAULTS as i,contactLocationCardOfRow as s}from"../../../../../../format/lib/content/contact.js";import{SITE_OFFICES_SOURCE as m,declaredBlockSource as c,sourcedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{phHideDefault as L}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{pictureHoverOf as h}from"../../../../../../format/lib/animation/hover.js";import{contactLocationOfOffice as O}from"../../../../../../format/lib/content/site-offices.js";import{SiteOffices as S}from"../../../../../components/SiteOffices.js";import{sectionRootPad as T}from"../../../../content/section-own-pads.js";import{ContactLocationsMeta as y}from"../../../../../../format/lib/document/blocks/general/ContactLocations/meta.js";const E=()=>[{name:o("Location name"),address:o("Street address"),state:o("State"),country:o("Country"),phone:"+00 000 0000",hours:o("Opening hours")}];function _(t,e=[]){if(!c(t))return t.locations??g;if(c(t)===m&&e.length)return e.map(O);const n=C(t,t.editor?.isEditing===!0,E());return n.rows.length?n.rows.map(s):null}function a(t,e,n){const d=L(t,e,n);return d!==void 0?d:t==null?void 0:""}const K={...y,render:t=>c(t)===m?r(S,{children:e=>f(t,e)}):f(t)};function f(t,e){const n=_(t,e);return n?r(l,{sectionNumber:a(t.sectionNumber,i.sectionNumber,t.editor),heading:a(t.heading,i.heading,t.editor),tagline:a(t.tagline,i.tagline,t.editor),galleryKicker:a(t.galleryKicker,i.galleryKicker,t.editor),galleryHint:a(t.galleryHint,i.galleryHint,t.editor),locations:n,mapTheme:t.mapTheme??i.mapTheme,imageShape:t.imageShape,pictureHover:h(t,"ContactLocations"),editing:t.editor?.isEditing,nodeId:t.editor?.isEditing?t.id:void 0,pad:T("ContactLocations",t)}):r(u,{})}export{K as ContactLocationsRender};
@@ -1 +1 @@
1
- import{Fragment as c,jsx as r}from"react/jsx-runtime";import l,{CONTENTS_STICKY_TOP as f}from"../../../../../components/ContentsList.js";import{ContentsEntriesDrawn as T}from"../../../../../components/PageContentsContext.js";import{readHidable as _}from"efficient-easel/draw";import{readListNumberForm as E}from"../../../../../../format/lib/content/list-number.js";import{CONTENTS_ENTRIES_PROP as N,CONTENTS_NUMBER_FORM_KEY as C}from"../../../../content/page-contents.js";import{say as a}from"../../../../../../format/lib/editor-words.js";import{ContentsMeta as S}from"../../../../../../format/lib/document/blocks/general/Contents/meta.js";const g=()=>[{label:a("First section"),anchor:"first-section"},{label:a("Second section"),anchor:"second-section"}],p={...S,render:t=>{const e=t,i=_(t.title),n=!!t.editor?.isEditing,o=d=>{const m=d?.length?d:n?g():[];return!m.length&&!n?r(c,{}):r(l,{title:i.hidden?void 0:i.text,entries:m,stickyTop:f,sticky:t.sticky!==!1,editing:n,partStyles:e._partStyles,numberForm:E(e[C]),takesViewHide:!0})},s=e[N];return s?o(s):r(T,{id:t.id,children:o})}};export{p as ContentsRender};
1
+ import{Fragment as c,jsx as n}from"react/jsx-runtime";import l,{CONTENTS_STICKY_TOP as f}from"../../../../../components/ContentsList.js";import{ContentsEntriesDrawn as u}from"../../../../../components/PageContentsContext.js";import{readHidable as C}from"efficient-easel/draw";import{readListNumberForm as T}from"../../../../../../format/lib/content/list-number.js";import{CONTENTS_ENTRIES_PROP as _,CONTENTS_NUMBER_FORM_KEY as E}from"../../../../content/page-contents.js";import{say as d}from"../../../../../../format/lib/editor-words.js";import{ContentsMeta as N}from"../../../../../../format/lib/document/blocks/general/Contents/meta.js";const S=()=>[{label:d("First section"),anchor:"first-section"},{label:d("Second section"),anchor:"second-section"}],x={...N,render:t=>{const e=t,i=C(t.title),r=!!t.editor?.isEditing,o=m=>{const a=m?.length?m:r?S():[];return!a.length&&!r?n(c,{}):n(l,{title:i.hidden?void 0:i.text,entries:a,stickyTop:f,sticky:t.sticky!==!1,editing:r,partStyles:e._partStyles,numberForm:T(e[E]),markCurrent:t.markCurrent===!0,takesViewHide:!0})},s=e[_];return s?o(s):n(u,{id:t.id,children:o})}};export{x as ContentsRender};
@@ -1 +1 @@
1
- import{jsx as m}from"react/jsx-runtime";import s from"../../../../../components/Countdown.js";import{parseSectionHeadPlacement as a}from"../../../../../../format/lib/sections/section-head-placement.js";import{CountdownMeta as p}from"../../../../../../format/lib/document/blocks/general/Countdown/meta.js";const c={...p,render:({title:t,zeroText:n,endsAt:e,showUnits:r,headPlacement:i,editor:d})=>{const o=a(i)==="own-box";return m(s,{title:o?void 0:t,zeroText:n,endsAt:e,showUnits:r,editing:d?.isEditing,omitHead:o})}};export{c as CountdownRender};
1
+ import{jsx as m}from"react/jsx-runtime";import a from"../../../../../components/Countdown.js";import{parseSectionHeadPlacement as w}from"../../../../../../format/lib/sections/section-head-placement.js";import{sectionRootPad as c}from"../../../../content/section-own-pads.js";import{CountdownMeta as x}from"../../../../../../format/lib/document/blocks/general/Countdown/meta.js";const h={...x,render:o=>{const{title:e,zeroText:n,endsAt:i,showUnits:r,headPlacement:d,editor:s}=o,t=w(d)==="own-box";return m(a,{title:t?void 0:e,zeroText:n,endsAt:i,showUnits:r,editing:s?.isEditing,omitHead:t,pad:c("Countdown",o)})}};export{h as CountdownRender};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import t from"../../../../../components/DocBody.js";import{phRows as d,phHide as n}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{DocBodyMeta as c,DOC_BODY_PH as r}from"../../../../../../format/lib/document/blocks/general/DocBody/meta.js";const s=()=>[{label:e("Section"),heading:e("Section heading *here.*"),body:e("Add this section's copy here. A blank line starts a new paragraph.")},{label:e("Section"),heading:e("Section heading *here.*"),body:e("Add this section's copy here.")}],f={...c,render:o=>i(t,{tocTitle:n(o.tocTitle,r.toc,o.editor),sections:d(o.sections,s(),o.editor),editing:o.editor?.isEditing})};export{f as DocBodyRender};
1
+ import{jsx as t}from"react/jsx-runtime";import i from"../../../../../components/DocBody.js";import{sectionRootPad as d}from"../../../../content/section-own-pads.js";import{phRows as c,phHide as n}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{DocBodyMeta as r,DOC_BODY_PH as a}from"../../../../../../format/lib/document/blocks/general/DocBody/meta.js";const s=()=>[{label:e("Section"),heading:e("Section heading *here.*"),body:e("Add this section's copy here. A blank line starts a new paragraph.")},{label:e("Section"),heading:e("Section heading *here.*"),body:e("Add this section's copy here.")}],B={...r,render:o=>t(i,{tocTitle:n(o.tocTitle,a.toc,o.editor),sections:c(o.sections,s(),o.editor),editing:o.editor?.isEditing,pad:d("DocBody",o)})};export{B as DocBodyRender};
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import l from"../../../../../components/DocMasthead.js";import{phRows as o,phHide as a}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{DocMastheadMeta as r,DOC_MASTHEAD_PH as i}from"../../../../../../format/lib/document/blocks/general/DocMasthead/meta.js";const m=()=>[{label:t("Label"),value:t("Value")},{label:t("Label"),value:t("Value")}],n={...r,render:e=>d(l,{titleLevel:e.titleLevel,eyebrow:a(e.eyebrow,i.eyebrow,e.editor),title:a(e.title,i.title,e.editor),deck:a(e.deck,i.deck,e.editor),meta:o(e.meta,m(),e.editor),editing:e.editor?.isEditing})};export{n as DocMastheadRender};
1
+ import{jsx as o}from"react/jsx-runtime";import d from"../../../../../components/DocMasthead.js";import{sectionRootPad as l}from"../../../../content/section-own-pads.js";import{phRows as m,phHide as a}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{DocMastheadMeta as r,DOC_MASTHEAD_PH as i}from"../../../../../../format/lib/document/blocks/general/DocMasthead/meta.js";const c=()=>[{label:t("Label"),value:t("Value")},{label:t("Label"),value:t("Value")}],s={...r,render:e=>o(d,{titleLevel:e.titleLevel,eyebrow:a(e.eyebrow,i.eyebrow,e.editor),title:a(e.title,i.title,e.editor),deck:a(e.deck,i.deck,e.editor),meta:m(e.meta,c(),e.editor),editing:e.editor?.isEditing,pad:l("DocMasthead",e)})};export{s as DocMastheadRender};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import t from"../../../../../components/DocMetaCards.js";import{phRows as e}from"../../scaffold.js";import{DocMetaCardsMeta as d,DOC_META_SCAFFOLD_CARDS as i}from"../../../../../../format/lib/document/blocks/general/DocMetaCards/meta.js";const C={...d,render:r=>o(t,{cards:e(r.cards,i,r.editor),editing:r.editor?.isEditing})};export{C as DocMetaCardsRender};
1
+ import{jsx as r}from"react/jsx-runtime";import t from"../../../../../components/DocMetaCards.js";import{sectionRootPad as a}from"../../../../content/section-own-pads.js";import{phRows as d}from"../../scaffold.js";import{DocMetaCardsMeta as e,DOC_META_SCAFFOLD_CARDS as i}from"../../../../../../format/lib/document/blocks/general/DocMetaCards/meta.js";const n={...e,render:o=>r(t,{cards:d(o.cards,i,o.editor),editing:o.editor?.isEditing,pad:a("DocMetaCards",o)})};export{n as DocMetaCardsRender};
@@ -1 +1 @@
1
- import{jsx as i,jsxs as g}from"react/jsx-runtime";import{HideTaker as A}from"../../../../../components/ViewHideRoot.js";import T,{faqPageJsonLd as _,faqRows as R}from"../../../../../components/FAQ.js";import{CardTemplateRows as q}from"../../../../../components/CardRowContext.js";import{BoxTabPaneContext as x,FirstCopyOpensContext as S}from"../../../../../components/BoxTabPaneContext.js";import{BOX_ITEMS_ATTR as P}from"../../../../../../format/lib/content/box-layout.js";import{cardRow as O}from"../../../../../../format/lib/content/card-template.js";import{LIST_KEY_ATTR as k,LIST_ROW_ATTR as I}from"../../../../../../format/lib/content/list-query.js";import{readPartStyles as Y}from"../../../part-styles.js";import{hidableText as C}from"efficient-easel/draw";import{parseSectionHeadPlacement as F}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as H,phHide as u}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{LIST_KEY_PROP as y}from"../../../../../../format/lib/document/list-search-scopes.js";import{FAQMeta as L,FAQ_PH as c}from"../../../../../../format/lib/document/blocks/general/FAQ/meta.js";const b=()=>[{question:t("Your first question goes here?"),answer:t("Add your answer here — a sentence or two is plenty.")},{question:t("Your second question goes here?"),answer:t("Add your answer here. Keep it clear and concise so it stays easy to scan.")},{question:t("Your third question goes here?"),answer:t("Add your answer here.")},{question:t("Your fourth question goes here?"),answer:t("Add your answer here.")},{question:t("Your fifth question goes here?"),answer:t("Add your answer here.")}],j=[{}],E={[I]:""};function K({id:e,items:d,defaultOpen:a,listKey:s,Template:n,editing:r,dragRef:f,fallback:l}){const o=R(Array.isArray(d)?d:[]),m=o.length?o:r?j:o,h=r?null:_(o);return!m.length&&n&&(n.blockCount??0)>0?null:i(q,{ownerId:e,ownerType:"FAQ",Template:n,rows:m.map(O),items:m,copyAttrs:E,fallback:l,children:w=>g(x.Provider,{value:"accordion",children:[i(S.Provider,{value:a,children:i(A,{ref:f,className:"contents",[P]:"",...s?{[k]:s}:{},children:w})}),h&&i("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:h}})]})})}const p={...L,render:e=>{const d=typeof e[y]=="string"?e[y]:void 0,a=e.editor?.dragRef??void 0,s=e.editor?.isEditing===!0,n=F(e.headPlacement)==="own-box",r=o=>n?void 0:o,f=u(e.linkText,c.link,e.editor),l=i(T,{num:r(u(e.num,c.num,e.editor)),title:r(u(e.title,c.title,e.editor)),link:r(f?{text:f,href:C(e.linkHref)||"/faq"}:void 0),omitHead:n,nodeId:typeof e.id=="string"?e.id:void 0,partStyles:Y(e),items:H(e.items,b(),e.editor),defaultOpen:e.defaultOpen,listKey:d,editing:e.editor?.isEditing,rootRef:a});return i(K,{id:String(e.id??""),items:e.items,defaultOpen:e.defaultOpen!==!1,listKey:d,Template:e.template,editing:s,dragRef:a,fallback:l})}};export{p as FAQRender};
1
+ import{jsx as n,jsxs as _}from"react/jsx-runtime";import{HideTaker as q}from"../../../../../components/ViewHideRoot.js";import x,{faqPageJsonLd as k,faqRows as F}from"../../../../../components/FAQ.js";import{CardTemplateRows as P}from"../../../../../components/CardRowContext.js";import{BoxTabPaneContext as O,CopyAnchorsContext as S,FirstCopyOpensContext as L,useBoxAnchor as C}from"../../../../../components/BoxTabPaneContext.js";import I from"../../../../../components/OpenFromLink.js";import{faqRowAnchors as Y}from"../../../../../../format/lib/content/faq-row-anchor.js";import{BOX_ITEMS_ATTR as b}from"../../../../../../format/lib/content/box-layout.js";import{cardRow as E}from"../../../../../../format/lib/content/card-template.js";import{LIST_KEY_ATTR as H,LIST_ROW_ATTR as Q}from"../../../../../../format/lib/content/list-query.js";import{readPartStyles as j}from"../../../part-styles.js";import{hidableText as v}from"efficient-easel/draw";import{parseSectionHeadPlacement as K}from"../../../../../../format/lib/sections/section-head-placement.js";import{sectionRootPad as B}from"../../../../content/section-own-pads.js";import{phRows as M,phHide as h}from"../../scaffold.js";import{say as t}from"../../../../../../format/lib/editor-words.js";import{LIST_KEY_PROP as R}from"../../../../../../format/lib/document/list-search-scopes.js";import{FAQMeta as W,FAQ_PH as y}from"../../../../../../format/lib/document/blocks/general/FAQ/meta.js";const N=()=>[{question:t("Your first question goes here?"),answer:t("Add your answer here — a sentence or two is plenty.")},{question:t("Your second question goes here?"),answer:t("Add your answer here. Keep it clear and concise so it stays easy to scan.")},{question:t("Your third question goes here?"),answer:t("Add your answer here.")},{question:t("Your fourth question goes here?"),answer:t("Add your answer here.")},{question:t("Your fifth question goes here?"),answer:t("Add your answer here.")}],J=[{}],g="FAQ",X={[Q]:""};function p({id:e,items:i,defaultOpen:a,openFromLink:f,listKey:d,Template:o,editing:r,dragRef:c,fallback:l}){const s=F(Array.isArray(i)?i:[]),m=s.length?s:r?J:s,A=r?null:k(s),T=C(),w=f?{ownerType:g,ids:Y(m.map(u=>u.question),T)}:null;return!m.length&&o&&(o.blockCount??0)>0?null:n(P,{ownerId:e,ownerType:g,Template:o,rows:m.map(E),items:m,copyAttrs:X,fallback:l,children:u=>_(O.Provider,{value:"accordion",children:[n(L.Provider,{value:a,children:n(S.Provider,{value:w,children:n(q,{ref:c,className:"contents",[b]:"",...d?{[H]:d}:{},children:u})})}),A&&n("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:A}}),w&&!r&&n(I,{})]})})}const ce={...W,render:e=>{const i=typeof e[R]=="string"?e[R]:void 0,a=e.editor?.dragRef??void 0,f=e.editor?.isEditing===!0,d=K(e.headPlacement)==="own-box",o=l=>d?void 0:l,r=h(e.linkText,y.link,e.editor),c=n(x,{num:o(h(e.num,y.num,e.editor)),title:o(h(e.title,y.title,e.editor)),link:o(r?{text:r,href:v(e.linkHref)||"/faq"}:void 0),omitHead:d,nodeId:typeof e.id=="string"?e.id:void 0,partStyles:j(e),items:M(e.items,N(),e.editor),defaultOpen:e.defaultOpen,openFromLink:e.openFromLink===!0,anchor:e.anchor,listKey:i,editing:e.editor?.isEditing,rootRef:a,pad:B("FAQ",e)});return n(p,{id:String(e.id??""),items:e.items,defaultOpen:e.defaultOpen!==!1,openFromLink:e.openFromLink===!0,listKey:i,Template:e.template,editing:f,dragRef:a,fallback:c})}};export{ce as FAQRender};
@@ -1 +1 @@
1
- import{jsx as x}from"react/jsx-runtime";import H from"../../../../../components/FeaturedCover.js";import{hidableText as h}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{parseSectionHeadPlacement as k}from"../../../../../../format/lib/sections/section-head-placement.js";import{FeaturedCoverMeta as C,FEATUREDCOVER_PH as r}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const R={...C,render:({source:m,image:o,badge:i,imageDate:n,category:c,readLabel:f,date:l,title:p,dek:s,ctaText:g,ctaHref:u,headPlacement:b,editor:e})=>{const t=m,d=!!t?.slug;return x(H,{image:d?t.image:o,badge:a(i,r.badge,e),imageDate:d?t.date:a(n,r.imageDate,e),category:a(c,r.category,e),readLabel:a(f,r.readLabel,e),date:d?t.date:a(l,r.date,e),dateAt:d&&t.publishedAt||void 0,title:d?t.title:a(p,r.title,e),dek:d?t.dek:a(s,r.dek,e),ctaText:a(g,r.ctaText,e),ctaHref:d?t.href:h(u),omitHead:k(b)==="own-box"})}};export{R as FeaturedCoverRender};
1
+ import{jsx as H}from"react/jsx-runtime";import h from"../../../../../components/FeaturedCover.js";import{hidableText as k}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{parseSectionHeadPlacement as C}from"../../../../../../format/lib/sections/section-head-placement.js";import{sectionRootPad as F}from"../../../../content/section-own-pads.js";import{FeaturedCoverMeta as T,FEATUREDCOVER_PH as r}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const L={...T,render:o=>{const{source:i,image:m,badge:c,imageDate:n,category:g,readLabel:l,date:f,title:s,dek:p,ctaText:u,ctaHref:b,headPlacement:x,editor:e}=o,t=i,d=!!t?.slug;return H(h,{image:d?t.image:m,badge:a(c,r.badge,e),imageDate:d?t.date:a(n,r.imageDate,e),category:a(g,r.category,e),readLabel:a(l,r.readLabel,e),date:d?t.date:a(f,r.date,e),dateAt:d&&t.publishedAt||void 0,title:d?t.title:a(s,r.title,e),dek:d?t.dek:a(p,r.dek,e),ctaText:a(u,r.ctaText,e),ctaHref:d?t.href:k(b),omitHead:C(x)==="own-box",pad:F("FeaturedCover",o)})}};export{L as FeaturedCoverRender};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{phoneKey as n,tabletKey as o}from"efficient-easel/draw";import{sectionFillsHeight as i}from"../../../../../../format/lib/content/section-min-height.js";import m from"../../../../../components/Grid.js";import{GridMeta as a}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const f={...a,render:e=>t(m,{columns:e.columns,mobileColumns:e.mobileColumns,gap:e.gap,gapPhone:e[n("gap")],gapTablet:e[o("gap")],contained:e.contained,fillHeight:i(e),content:e.content})};export{f as GridRender};
1
+ import{jsx as e}from"react/jsx-runtime";import{phoneKey as o,tabletKey as i}from"efficient-easel/draw";import{sectionFillsHeight as n}from"../../../../../../format/lib/content/section-min-height.js";import{sectionRootPad as m}from"../../../../content/section-own-pads.js";import a from"../../../../../components/Grid.js";import{GridMeta as l}from"../../../../../../format/lib/document/blocks/general/Grid/meta.js";const h={...l,render:t=>e(a,{columns:t.columns,mobileColumns:t.mobileColumns,gap:t.gap,gapPhone:t[o("gap")],gapTablet:t[i("gap")],contained:t.contained,fillHeight:n(t),content:t.content,pad:m("Grid",t)})};export{h as GridRender};
@@ -1,2 +1,2 @@
1
- import{jsx as l}from"react/jsx-runtime";import g from"../../../../../components/IntegrationsSection.js";import{phHide as o,hidableRow as t}from"../../scaffold.js";import{IntegrationsMeta as d}from"../../../../../../format/lib/document/blocks/general/Integrations/meta.js";const I={...d,render:({eyebrow:i,title:r,body:n,apps:a,statValue:s,statLabel:p,note:m,editor:e})=>l(g,{eyebrow:o(i,"Integrations",e),title:o(r,`Plays well with
2
- *your favourite apps.*`,e),body:t(n),apps:a,statValue:t(s),statLabel:t(p),note:t(m),editing:e?.isEditing})};export{I as IntegrationsRender};
1
+ import{jsx as m}from"react/jsx-runtime";import b from"../../../../../components/IntegrationsSection.js";import{sectionRootPad as g}from"../../../../content/section-own-pads.js";import{phHide as r,hidableRow as t}from"../../scaffold.js";import{IntegrationsMeta as f}from"../../../../../../format/lib/document/blocks/general/Integrations/meta.js";const h={...f,render:o=>{const{eyebrow:i,title:a,body:n,apps:s,statValue:p,statLabel:d,note:l,editor:e}=o;return m(b,{eyebrow:r(i,"Integrations",e),title:r(a,`Plays well with
2
+ *your favourite apps.*`,e),body:t(n),apps:s,statValue:t(p),statLabel:t(d),note:t(l),editing:e?.isEditing,pad:g("Integrations",o)})}};export{h as IntegrationsRender};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import y from"../../../../../components/KeyFeatures.js";import{parseSectionEyebrowLook as f}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as n,phHide as o}from"../../scaffold.js";import{KeyFeaturesMeta as u,KEY_FEATURES_PH as r,keyFeaturesScaffoldItems as F}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";const b={...u,render:({eyebrow:t,title:s,items:m,columns:i,eyebrowLook:a,editor:e})=>p(y,{look:f(a,"KeyFeatures"),eyebrow:o(t,r.eyebrow,e),title:o(s,r.title,e),items:n(m,F(),e),columns:i,editing:e?.isEditing})};export{b as KeyFeaturesRender};
1
+ import{jsx as y}from"react/jsx-runtime";import d from"../../../../../components/KeyFeatures.js";import{sectionRootPad as p}from"../../../../content/section-own-pads.js";import{parseSectionEyebrowLook as u}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as f,phHide as t}from"../../scaffold.js";import{KeyFeaturesMeta as c,KEY_FEATURES_PH as r,keyFeaturesScaffoldItems as l}from"../../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";const R={...c,render:o=>{const{eyebrow:i,title:s,items:m,columns:a,eyebrowLook:n,editor:e}=o;return y(d,{look:u(n,"KeyFeatures"),eyebrow:t(i,r.eyebrow,e),title:t(s,r.title,e),items:f(m,l(),e),columns:a,editing:e?.isEditing,pad:p("KeyFeatures",o)})}};export{R as KeyFeaturesRender};
@@ -1 +1 @@
1
- import{jsx as i,Fragment as k}from"react/jsx-runtime";import B from"../../../../../components/Logos.js";import{CardTemplateRows as H}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as _}from"../../../../../../format/lib/content/block-sources.js";import{phRows as x,phHide as R}from"../../scaffold.js";import{parseLogoLook as S}from"../../../../../../format/lib/sections/logo-look.js";import{parseSectionHeadPlacement as T}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as A,LogosMeta as E,logosScaffoldItems as O}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";import{wallRows as j}from"./wall-rows.js";import{WALL_LABELLED_BY_PROP as C}from"../../../wall-labels.js";const K={...E,render:o=>{const{items:t,contained:g,heading:s,columns:c,logoHeight:f,bandPadding:h,grayscale:L,logos:p,look:u,headPlacement:w,editor:n,align:b,alignTablet:P,alignPhone:y}=o,l=o[C],e=T(w)==="own-box",a=r=>i(B,{items:e?Array.isArray(t)?t:[]:x(t,O(),n),contained:g,heading:e?void 0:R(s,A.heading,n),columns:c,logoHeight:f,bandPadding:h,grayscale:L,logos:e?p:void 0,look:S(u),omitHead:e,cards:r,align:b,alignTablet:P,alignPhone:y,labelledBy:typeof l=="string"?l:void 0});if(_(o)==="")return a();const d=n?.isEditing===!0,m=(o.template?.blockCount??0)>0?j(o,d):[];return!d&&!m.length?i(k,{}):i(H,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:m,fallback:a([]),children:r=>a(r)})}};export{K as LogosRender};
1
+ import{jsx as r,Fragment as k}from"react/jsx-runtime";import B from"../../../../../components/Logos.js";import{CardTemplateRows as H}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as R}from"../../../../../../format/lib/content/block-sources.js";import{sectionRootPad as _}from"../../../../content/section-own-pads.js";import{phRows as x,phHide as S}from"../../scaffold.js";import{parseLogoLook as T}from"../../../../../../format/lib/sections/logo-look.js";import{parseSectionHeadPlacement as A}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as E,LogosMeta as O,logosScaffoldItems as j}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";import{wallRows as C}from"./wall-rows.js";import{WALL_LABELLED_BY_PROP as F}from"../../../wall-labels.js";const Q={...O,render:o=>{const{items:t,contained:g,heading:s,columns:c,logoHeight:f,bandPadding:L,grayscale:h,logos:p,look:u,headPlacement:w,editor:n,align:P,alignTablet:b,alignPhone:y}=o,l=o[F],e=A(w)==="own-box",a=i=>r(B,{items:e?Array.isArray(t)?t:[]:x(t,j(),n),contained:g,heading:e?void 0:S(s,E.heading,n),columns:c,logoHeight:f,bandPadding:L,grayscale:h,logos:e?p:void 0,look:T(u),omitHead:e,cards:i,align:P,alignTablet:b,alignPhone:y,labelledBy:typeof l=="string"?l:void 0,pad:_("Logos",o)});if(R(o)==="")return a();const d=n?.isEditing===!0,m=(o.template?.blockCount??0)>0?C(o,d):[];return!d&&!m.length?r(k,{}):r(H,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:m,fallback:a([]),children:i=>a(i)})}};export{Q as LogosRender};
@@ -1 +1 @@
1
- import{jsx as q}from"react/jsx-runtime";import D from"../../../../../components/LongRead.js";import{hidableText as M}from"efficient-easel/draw";import{parseSectionHeadPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{phHide as a}from"../../scaffold.js";import{LongReadMeta as j,LONGREAD_PH as t}from"../../../../../../format/lib/document/blocks/general/LongRead/meta.js";const O={...j,render:({source:i,headNum:l,headTitle:s,headDesc:u,category:c,metaMiddle:h,readLabel:r,title:b,dek:f,quote:g,quoteAttribution:p,ctaText:x,ctaHref:L,image:R,imageLabel:A,metaPublished:H,metaReads:P,headPlacement:T,editor:e})=>{const o=N(T)==="own-box",n=k=>o?void 0:k,m=i,d=!!m?.slug;return q(D,{headNum:n(a(l,t.headNum,e)),headTitle:n(a(s,t.headTitle,e)),headDesc:n(a(u,t.headDesc,e)),omitHead:o,category:a(c,t.category,e),metaMiddle:a(h,t.metaMiddle,e),readLabel:a(r,t.readLabel,e),title:d?m.title:a(b,t.title,e),dek:d?m.dek:a(f,t.dek,e),quote:a(g,t.quote,e),quoteAttribution:a(p,t.quoteAttribution,e),ctaText:a(x,t.ctaText,e),ctaHref:d?m.href:M(L),image:d?m.image:R,imageLabel:a(A,t.imageLabel,e),metaPublished:d?m.date:a(H,t.metaPublished,e),metaPublishedAt:d&&m.publishedAt||void 0,metaReads:a(P,t.metaReads,e)})}};export{O as LongReadRender};
1
+ import{jsx as D}from"react/jsx-runtime";import M from"../../../../../components/LongRead.js";import{hidableText as N}from"efficient-easel/draw";import{parseSectionHeadPlacement as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{sectionRootPad as j}from"../../../../content/section-own-pads.js";import{phHide as t}from"../../scaffold.js";import{LongReadMeta as w,LONGREAD_PH as a}from"../../../../../../format/lib/document/blocks/general/LongRead/meta.js";const z={...w,render:m=>{const{source:n,headNum:l,headTitle:s,headDesc:u,category:c,metaMiddle:h,readLabel:b,title:g,dek:f,quote:L,quoteAttribution:p,ctaText:R,ctaHref:x,image:P,imageLabel:T,metaPublished:q,metaReads:A,headPlacement:H,editor:e}=m,r=y(H)==="own-box",i=k=>r?void 0:k,d=n,o=!!d?.slug;return D(M,{headNum:i(t(l,a.headNum,e)),headTitle:i(t(s,a.headTitle,e)),headDesc:i(t(u,a.headDesc,e)),omitHead:r,category:t(c,a.category,e),metaMiddle:t(h,a.metaMiddle,e),readLabel:t(b,a.readLabel,e),title:o?d.title:t(g,a.title,e),dek:o?d.dek:t(f,a.dek,e),quote:t(L,a.quote,e),quoteAttribution:t(p,a.quoteAttribution,e),ctaText:t(R,a.ctaText,e),ctaHref:o?d.href:N(x),image:o?d.image:P,imageLabel:t(T,a.imageLabel,e),metaPublished:o?d.date:t(q,a.metaPublished,e),metaPublishedAt:o&&d.publishedAt||void 0,metaReads:t(A,a.metaReads,e),pad:j("LongRead",m)})}};export{z as LongReadRender};
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import u from"../../../../../components/Masthead.js";import{phRows as o,phHide as t}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{MastheadMeta as h,MASTHEAD_PH as a}from"../../../../../../format/lib/document/blocks/general/Masthead/meta.js";const p=()=>[{lead:e("Volume"),rest:e("No. 1")},{lead:e("Season"),rest:e("Year")},{lead:e("Frequency"),rest:""}],c=()=>[{text:e("Article headline")},{text:e("Feature story")},{text:e("Interview")},{text:e("Field notes")}],w={...h,render:({eyebrow:i,issueMeta:r,lead:d,issueHeading:n,issueList:l,issueTotal:m,editor:s})=>f(u,{eyebrow:t(i,a.eyebrow,s),issueMeta:o(r,p(),s),lead:t(d,a.lead,s),issueHeading:t(n,a.issueHeading,s),issueList:o(l,c(),s),issueTotal:t(m,a.issueTotal,s),editing:s?.isEditing})};export{w as MastheadRender};
1
+ import{jsx as f}from"react/jsx-runtime";import c from"../../../../../components/Masthead.js";import{sectionRootPad as h}from"../../../../content/section-own-pads.js";import{phRows as o,phHide as s}from"../../scaffold.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{MastheadMeta as M,MASTHEAD_PH as a}from"../../../../../../format/lib/document/blocks/general/Masthead/meta.js";const p=()=>[{lead:e("Volume"),rest:e("No. 1")},{lead:e("Season"),rest:e("Year")},{lead:e("Frequency"),rest:""}],x=()=>[{text:e("Article headline")},{text:e("Feature story")},{text:e("Interview")},{text:e("Field notes")}],b={...M,render:i=>{const{eyebrow:r,issueMeta:d,lead:n,issueHeading:l,issueList:m,issueTotal:u,editor:t}=i;return f(c,{eyebrow:s(r,a.eyebrow,t),issueMeta:o(d,p(),t),lead:s(n,a.lead,t),issueHeading:s(l,a.issueHeading,t),issueList:o(m,x(),t),issueTotal:s(u,a.issueTotal,t),editing:t?.isEditing,pad:h("Masthead",i)})}};export{b as MastheadRender};
@@ -1,2 +1,2 @@
1
- import{jsx as q}from"react/jsx-runtime";import z from"../../../../../components/MockupSection.js";import{phHide as i,hidableRow as o}from"../../scaffold.js";import{parseSectionHeadPlacement as A}from"../../../../../../format/lib/sections/section-head-placement.js";import{MockupMeta as D}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const O={...D,render:({eyebrow:n,title:c,body:l,variant:a,cardHeader:d,badge:s,cardTitle:m,cardSubtitle:p,pills:u,tiles:b,rows:f,button:T,footnote:h,col1Title:w,col1Cards:x,col2Title:g,col2Cards:H,col3Title:C,col3Cards:M,col4Title:S,col4Cards:k,barsHeading:j,bars:y,termLines:B,urlText:R,heroTitle:v,heroButton:E,products:I,align:L,headPlacement:P,editor:e})=>{const r=A(P)==="own-box",t=_=>r?void 0:_;return q(z,{eyebrow:t(i(n,"In the product",e)),title:t(i(c,`Seen from
2
- *the counter.*`,e)),body:t(o(l)),variant:a,cardHeader:o(d),badge:o(s),cardTitle:o(m),cardSubtitle:o(p),pills:u,tiles:b,rows:f,button:o(T),footnote:o(h),col1Title:o(w),col1Cards:x,col2Title:o(g),col2Cards:H,col3Title:o(C),col3Cards:M,col4Title:o(S),col4Cards:k,barsHeading:o(j),bars:y,termLines:B,urlText:o(R),heroTitle:o(v),heroButton:o(E),products:I,align:L,editing:e?.isEditing,omitHead:r})}};export{O as MockupRender};
1
+ import{jsx as z}from"react/jsx-runtime";import A from"../../../../../components/MockupSection.js";import{sectionRootPad as D}from"../../../../content/section-own-pads.js";import{phHide as l,hidableRow as o}from"../../scaffold.js";import{parseSectionHeadPlacement as F}from"../../../../../../format/lib/sections/section-head-placement.js";import{MockupMeta as G}from"../../../../../../format/lib/document/blocks/general/Mockup/meta.js";const V={...G,render:r=>{const{eyebrow:a,title:d,body:c,variant:n,cardHeader:s,badge:m,cardTitle:u,cardSubtitle:p,pills:b,tiles:T,rows:f,button:h,footnote:g,col1Title:w,col1Cards:C,col2Title:x,col2Cards:H,col3Title:M,col3Cards:S,col4Title:k,col4Cards:y,barsHeading:B,bars:P,termLines:R,urlText:j,heroTitle:v,heroButton:L,products:E,align:I,headPlacement:_,editor:e}=r,i=F(_)==="own-box",t=q=>i?void 0:q;return z(A,{eyebrow:t(l(a,"In the product",e)),title:t(l(d,`Seen from
2
+ *the counter.*`,e)),body:t(o(c)),variant:n,cardHeader:o(s),badge:o(m),cardTitle:o(u),cardSubtitle:o(p),pills:b,tiles:T,rows:f,button:o(h),footnote:o(g),col1Title:o(w),col1Cards:C,col2Title:o(x),col2Cards:H,col3Title:o(M),col3Cards:S,col4Title:o(k),col4Cards:y,barsHeading:o(B),bars:P,termLines:R,urlText:o(j),heroTitle:o(v),heroButton:o(L),products:E,align:I,editing:e?.isEditing,omitHead:i,pad:D("Mockup",r)})}};export{V as MockupRender};
@@ -1 +1 @@
1
- import{jsx as l,Fragment as h}from"react/jsx-runtime";import{CardTemplateRows as T}from"../../../../../components/CardRowContext.js";import f from"../../../../../components/OrderSummary.js";import{cardRow as g}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as O,sourcedRows as F}from"../../../../../../format/lib/content/block-sources.js";import{PH as R}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as p,phHide as r}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{OrderSummaryMeta as _,ORDER_SUMMARY_PH as d}from"../../../../../../format/lib/document/blocks/general/OrderSummary/meta.js";const x=()=>[{label:o("Product name"),meta:o("Finish · Size · ×1"),amount:"$0,000"},{label:o("Second item"),meta:o("Detail line"),amount:"$000"}],D=()=>[{label:o("Subtotal"),amount:"$0,000"},{label:o("Delivery"),amount:"$00"}],H=()=>[{label:o("First item"),meta:o("A detail line"),amount:"$000"},{label:o("Second item"),meta:o("A detail line"),amount:"$000"},{label:o("Third item"),meta:o("A detail line"),amount:"$000"}],L=t=>({label:t.label,meta:t.meta,amount:t.amount});function A(t,m,a){return l(T,{ownerId:String(t.id??""),ownerType:"OrderSummary",Template:t.template,rows:m.map(g),fallback:a(),children:i=>a(i)})}const U={..._,render:t=>{const{eyebrow:m,title:a,rows:i,subRows:s,totalLabel:u,totalAmount:c,note:b,contained:w,editor:e}=t;if(O(t)!==""){const n=F(t,!!e?.isEditing,H());if(!n.rows.length)return l(h,{});const y=n.rows.map(L);return A(t,y,$=>l(f,{eyebrow:r(m,R.eyebrow,e),title:r(a,d.title,e),rows:y,subRows:Array.isArray(s)?s:[],totalLabel:r(u,"",e),totalAmount:r(c,"",e),note:r(b,"",e),contained:w,cards:$}))}const S=p(i,x(),e);return A(t,S,n=>l(f,{eyebrow:r(m,R.eyebrow,e),title:r(a,d.title,e),rows:S,subRows:p(s,D(),e),totalLabel:r(u,"Total",e),totalAmount:r(c,"$0,000",e),note:r(b,d.note,e),contained:w,cards:n}))}};export{U as OrderSummaryRender};
1
+ import{jsx as l,Fragment as O}from"react/jsx-runtime";import{CardTemplateRows as T}from"../../../../../components/CardRowContext.js";import p from"../../../../../components/OrderSummary.js";import{cardRow as g}from"../../../../../../format/lib/content/card-template.js";import{sectionRootPad as F}from"../../../../content/section-own-pads.js";import{declaredBlockSource as P,sourcedRows as _}from"../../../../../../format/lib/content/block-sources.js";import{PH as R}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as A,phHide as r}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{OrderSummaryMeta as x,ORDER_SUMMARY_PH as s}from"../../../../../../format/lib/document/blocks/general/OrderSummary/meta.js";const D=()=>[{label:o("Product name"),meta:o("Finish · Size · ×1"),amount:"$0,000"},{label:o("Second item"),meta:o("Detail line"),amount:"$000"}],H=()=>[{label:o("Subtotal"),amount:"$0,000"},{label:o("Delivery"),amount:"$00"}],L=()=>[{label:o("First item"),meta:o("A detail line"),amount:"$000"},{label:o("Second item"),meta:o("A detail line"),amount:"$000"},{label:o("Third item"),meta:o("A detail line"),amount:"$000"}],M=e=>({label:e.label,meta:e.meta,amount:e.amount});function $(e,m,a){return l(T,{ownerId:String(e.id??""),ownerType:"OrderSummary",Template:e.template,rows:m.map(g),fallback:a(),children:i=>a(i)})}const G={...x,render:e=>{const{eyebrow:m,title:a,rows:i,subRows:d,totalLabel:u,totalAmount:c,note:b,contained:w,editor:t}=e,S=F("OrderSummary",e);if(P(e)!==""){const n=_(e,!!t?.isEditing,L());if(!n.rows.length)return l(O,{});const f=n.rows.map(M);return $(e,f,h=>l(p,{eyebrow:r(m,R.eyebrow,t),title:r(a,s.title,t),rows:f,subRows:Array.isArray(d)?d:[],totalLabel:r(u,"",t),totalAmount:r(c,"",t),note:r(b,"",t),contained:w,cards:h,pad:S}))}const y=A(i,D(),t);return $(e,y,n=>l(p,{eyebrow:r(m,R.eyebrow,t),title:r(a,s.title,t),rows:y,subRows:A(d,H(),t),totalLabel:r(u,"Total",t),totalAmount:r(c,"$0,000",t),note:r(b,s.note,t),contained:w,cards:n,pad:S}))}};export{G as OrderSummaryRender};
@@ -1 +1 @@
1
- import{Fragment as u,jsx as s}from"react/jsx-runtime";import m from"../../../../../components/PaymentBadges.js";import{declaredBlockSource as h,sourcedRows as p}from"../../../../../../format/lib/content/block-sources.js";import{phRows as c,phHide as l}from"../../scaffold.js";import{say as d}from"../../../../../../format/lib/editor-words.js";import{PaymentBadgesMeta as b,PAYMENT_PH as g,paymentScaffoldAssurances as y,paymentScaffoldBadges as k}from"../../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";const B=()=>[{label:d("Cash"),kind:"cash"},{label:d("Card"),kind:"card"},{label:d("Bank transfer"),kind:"wire"}],j={...b,render:r=>{const{heading:t,badges:f,assurances:n,contained:o,editor:e}=r;if(h(r)!==""){const i=p(r,!!e?.isEditing,B()).rows.filter(a=>a.label).map(a=>({label:a.label,kind:a.kind}));return i.length?s(m,{heading:l(t,g.heading,e),badges:i,assurances:Array.isArray(n)?n:[],contained:o,sourced:!0}):s(u,{})}return s(m,{heading:l(t,g.heading,e),badges:c(f,k(),e),assurances:c(n,y(),e),contained:o})}};export{j as PaymentBadgesRender};
1
+ import{Fragment as h,jsx as s}from"react/jsx-runtime";import c from"../../../../../components/PaymentBadges.js";import{sectionRootPad as p}from"../../../../content/section-own-pads.js";import{declaredBlockSource as y,sourcedRows as b}from"../../../../../../format/lib/content/block-sources.js";import{phRows as l,phHide as g}from"../../scaffold.js";import{say as d}from"../../../../../../format/lib/editor-words.js";import{PaymentBadgesMeta as B,PAYMENT_PH as f,paymentScaffoldAssurances as k,paymentScaffoldBadges as P}from"../../../../../../format/lib/document/blocks/general/PaymentBadges/meta.js";const S=()=>[{label:d("Cash"),kind:"cash"},{label:d("Card"),kind:"card"},{label:d("Bank transfer"),kind:"wire"}],F={...B,render:a=>{const{heading:t,badges:u,assurances:r,contained:o,editor:e}=a,i=p("PaymentBadges",a);if(y(a)!==""){const m=b(a,!!e?.isEditing,S()).rows.filter(n=>n.label).map(n=>({label:n.label,kind:n.kind}));return m.length?s(c,{heading:g(t,f.heading,e),badges:m,assurances:Array.isArray(r)?r:[],contained:o,sourced:!0,pad:i}):s(h,{})}return s(c,{heading:g(t,f.heading,e),badges:l(u,P(),e),assurances:l(r,k(),e),contained:o,pad:i})}};export{F as PaymentBadgesRender};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import m from"../../../../../components/Prose.js";import{parseSectionHeadPlacement as a}from"../../../../../../format/lib/sections/section-head-placement.js";import{phHide as o}from"../../scaffold.js";import{ProseMeta as b,PROSE_PH as t}from"../../../../../../format/lib/document/blocks/general/Prose/meta.js";const w={...b,render:e=>{const r=a(e.headPlacement)==="own-box",i=d=>r?void 0:d;return n(m,{eyebrow:i(o(e.eyebrow,t.eyebrow,e.editor)),title:i(o(e.title,t.title,e.editor)),omitHead:r,body:o(e.body,t.body,e.editor),topBorder:e.topBorder,editing:e.editor?.isEditing})}};export{w as ProseRender};
1
+ import{jsx as n}from"react/jsx-runtime";import m from"../../../../../components/Prose.js";import{sectionRootPad as a}from"../../../../content/section-own-pads.js";import{parseSectionHeadPlacement as P}from"../../../../../../format/lib/sections/section-head-placement.js";import{phHide as o}from"../../scaffold.js";import{ProseMeta as b,PROSE_PH as t}from"../../../../../../format/lib/document/blocks/general/Prose/meta.js";const s={...b,render:e=>{const r=P(e.headPlacement)==="own-box",i=d=>r?void 0:d;return n(m,{eyebrow:i(o(e.eyebrow,t.eyebrow,e.editor)),title:i(o(e.title,t.title,e.editor)),omitHead:r,body:o(e.body,t.body,e.editor),topBorder:e.topBorder,editing:e.editor?.isEditing,pad:a("Prose",e)})}};export{s as ProseRender};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{HideTaker as R}from"../../../../../components/ViewHideRoot.js";import{SideOnceClass as T}from"../../../../../components/SideSpaceOnce.js";import{resolveWidth as b}from"../../../../../../format/lib/content/section-width.js";import{FRAME as g}from"../../../../../components/BlockFrame.js";import G from"../../../../../components/EditorialSectionHead.js";import{renderGold as _,renderHeadline as j}from"../../../../../components/goldPhrases.js";import s from"../../../../../components/SectionHeader.js";import{hidableText as f}from"efficient-easel/draw";import{parseNaturalDescriptionSize as z,parseNaturalRowGap as A,parseSectionHeadStyle as C}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as p}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as D,SECTION_HEADER_PH as r}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const V={...D,render:({headStyle:S,num:i,numStyle:H,eyebrowLook:l,title:o,description:c,logoSrc:d,logoAlt:x,linkText:k,linkHref:w,rowGap:h,descriptionSize:v,widthMode:y,editor:e})=>{const u=t(k,r.linkText,e),E=b({widthMode:y},"full"),a=C(S);return n(T,{className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:N=>n(R,{as:"section",className:N,children:n("div",{className:E.mode==="page"?g:void 0,children:a==="editorial"?n(G,{num:t(i,r.num,e),title:(()=>{const m=t(o,r.title,e);return m?j(m,!0):void 0})(),desc:(()=>{const m=t(c,r.description,e);return m?_(m):void 0})(),spaceBelow:""}):a==="simple"?n(s,{look:"simple",num:t(i,r.num,e),title:t(o,r.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="statement"?n(s,{look:"statement",num:t(i,r.num,e),title:t(o,r.title,e),eyebrowLook:p(l,"SectionHeader")}):a==="natural"?n(s,{look:"natural",num:t(i,r.num,e),title:t(o,r.title,e),description:t(c,r.description,e),eyebrowLook:p(l,"SectionHeader"),rowGap:A(h),descriptionSize:z(v)}):a==="essay"?n(s,{look:"essay",num:t(i,r.num,e),title:t(o,r.title,e),eyebrowLook:p(l,"SectionHeader")}):n(s,{num:t(i,r.num,e),title:t(o,r.title,e),description:t(c,r.description,e),logo:d?{src:d,alt:f(x)}:void 0,link:u?{text:u,href:f(w)||"#"}:void 0,numStyle:H,accent:!0})})})})}};export{V as SectionHeaderRender};
1
+ import{jsx as i}from"react/jsx-runtime";import{HideTaker as R}from"../../../../../components/ViewHideRoot.js";import{SideOnceClass as N}from"../../../../../components/SideSpaceOnce.js";import{resolveWidth as T}from"../../../../../../format/lib/content/section-width.js";import{sectionRootPad as G,withRootPad as P}from"../../../../content/section-own-pads.js";import{FRAME as z}from"../../../../../components/BlockFrame.js";import A from"../../../../../components/EditorialSectionHead.js";import{renderGold as M,renderHeadline as _}from"../../../../../components/goldPhrases.js";import l from"../../../../../components/SectionHeader.js";import{hidableText as w}from"efficient-easel/draw";import{parseNaturalDescriptionSize as j,parseNaturalRowGap as B,parseSectionHeadStyle as C}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as s}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as D,SECTION_HEADER_PH as o}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const ee={...D,render:p=>{const{headStyle:k,num:r,numStyle:H,eyebrowLook:m,title:n,description:c,logoSrc:u,logoAlt:x,linkText:y,linkHref:h,rowGap:b,descriptionSize:g,widthMode:v,editor:e}=p,f=t(y,o.linkText,e),E=T({widthMode:v},"full"),d=C(k),S=G("SectionHeader",p);return i(N,{className:"px-[var(--sf-site-gutter,40px)] pt-10 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:pt-6",children:L=>i(R,{as:"section",...P(L,S),children:i("div",{className:E.mode==="page"?z:void 0,children:d==="editorial"?i(A,{num:t(r,o.num,e),title:(()=>{const a=t(n,o.title,e);return a?_(a,!0):void 0})(),desc:(()=>{const a=t(c,o.description,e);return a?M(a):void 0})(),spaceBelow:""}):d==="simple"?i(l,{look:"simple",num:t(r,o.num,e),title:t(n,o.title,e),eyebrowLook:s(m,"SectionHeader")}):d==="statement"?i(l,{look:"statement",num:t(r,o.num,e),title:t(n,o.title,e),eyebrowLook:s(m,"SectionHeader")}):d==="natural"?i(l,{look:"natural",num:t(r,o.num,e),title:t(n,o.title,e),description:t(c,o.description,e),eyebrowLook:s(m,"SectionHeader"),rowGap:B(b),descriptionSize:j(g)}):d==="essay"?i(l,{look:"essay",num:t(r,o.num,e),title:t(n,o.title,e),eyebrowLook:s(m,"SectionHeader")}):i(l,{num:t(r,o.num,e),title:t(n,o.title,e),description:t(c,o.description,e),logo:u?{src:u,alt:w(x)}:void 0,link:f?{text:f,href:w(h)||"#"}:void 0,numStyle:H,accent:!0,rootPadsBottom:S!==null})})})})}};export{ee as SectionHeaderRender};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import f from"../../../../../components/Series.js";import{resolveSectionBackground as S}from"../../../../../../format/lib/content/section-background.js";import{parseSectionHeadPlacement as b}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as g,phHide as i}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as L}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{SeriesMeta as w,SERIES_PH as t}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const x=()=>[{num:"01",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"02",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"03",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")}],v={...w,render:({headNum:o,headTitle:m,headDesc:c,cards:a,viewLabel:d,background:l,headPlacement:u,editor:r})=>{const n=b(u)==="own-box",s=h=>n?void 0:h;return p(f,{headNum:s(i(o,t.headNum,r)),headTitle:s(i(m,t.headTitle,r)),headDesc:s(i(c,t.headDesc,r)),omitHead:n,cards:g(a,x(),r),viewLabel:i(d,t.viewLabel,r),background:S(l,L.Series),editing:r?.isEditing})}};export{v as SeriesRender};
1
+ import{jsx as p}from"react/jsx-runtime";import S from"../../../../../components/Series.js";import{resolveSectionBackground as b}from"../../../../../../format/lib/content/section-background.js";import{sectionRootPad as g}from"../../../../content/section-own-pads.js";import{parseSectionHeadPlacement as L}from"../../../../../../format/lib/sections/section-head-placement.js";import{phRows as w,phHide as i}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as x}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{say as e}from"../../../../../../format/lib/editor-words.js";import{SeriesMeta as C,SERIES_PH as t}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const N=()=>[{num:"01",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"02",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")},{num:"03",since:e("Year"),title:e("Column *title.*"),desc:e("A short description of this recurring column."),entries:"0",entriesLabel:e("entries")}],k={...C,render:s=>{const{headNum:a,headTitle:d,headDesc:c,cards:m,viewLabel:l,background:u,headPlacement:h,editor:r}=s,n=L(h)==="own-box",o=f=>n?void 0:f;return p(S,{headNum:o(i(a,t.headNum,r)),headTitle:o(i(d,t.headTitle,r)),headDesc:o(i(c,t.headDesc,r)),omitHead:n,cards:w(m,N(),r),viewLabel:i(l,t.viewLabel,r),background:b(u,x.Series),editing:r?.isEditing,pad:g("Series",s)})}};export{k as SeriesRender};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import s from"../../../../../components/Stats.js";import{resolveSectionBackground as n}from"../../../../../../format/lib/content/section-background.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as p}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as S}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{StatsMeta as u}from"../../../../../../format/lib/document/blocks/general/Stats/meta.js";const c=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],B={...u,render:({items:a,contained:l,heading:o,columns:r,background:m,editor:t})=>i(s,{items:b(a,c,t),contained:l,heading:p(o,"By the *numbers*",t),columns:r,background:n(m,S.Stats),editing:t?.isEditing})};export{B as StatsRender};
1
+ import{jsx as m}from"react/jsx-runtime";import s from"../../../../../components/Stats.js";import{resolveSectionBackground as d}from"../../../../../../format/lib/content/section-background.js";import{sectionRootPad as c}from"../../../../content/section-own-pads.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as u}from"../../scaffold.js";import{SECTION_BG_BUILT_IN as S}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{StatsMeta as p}from"../../../../../../format/lib/document/blocks/general/Stats/meta.js";const f=[{value:"00",label:t.label},{value:"00",label:t.label},{value:"00",label:t.label},{value:"00",label:t.label}],x={...p,render:o=>{const{items:a,contained:r,heading:i,columns:l,background:n,editor:e}=o;return m(s,{items:b(a,f,e),contained:r,heading:u(i,"By the *numbers*",e),columns:l,background:d(n,S.Stats),editing:e?.isEditing,pad:c("Stats",o)})}};export{x as StatsRender};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import s from"../../../../../components/Testimonials.js";import{parseSectionHeadPlacement as l}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as d,phHide as r}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{TestimonialsMeta as u,TESTIMONIALS_PH as m}from"../../../../../../format/lib/document/blocks/general/Testimonials/meta.js";const h=()=>[{quote:o("A short customer quote goes here — replace it with a real testimonial from your customers."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A second customer quote — what they loved, in a sentence or two."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A third short quote to round out the row."),name:o("Customer name"),role:o("Role · Location")}],x={...u,render:e=>{const t=l(e.headPlacement)==="own-box",i=n=>t?void 0:n;return a(s,{look:c(e.eyebrowLook,"Testimonials"),eyebrow:i(r(e.eyebrow,m.eyebrow,e.editor)),title:i(r(e.title,m.title,e.editor)),omitHead:t,items:d(e.items,h(),e.editor),columns:e.columns,editing:e.editor?.isEditing})}};export{x as TestimonialsRender};
1
+ import{jsx as a}from"react/jsx-runtime";import s from"../../../../../components/Testimonials.js";import{sectionRootPad as l}from"../../../../content/section-own-pads.js";import{parseSectionHeadPlacement as d}from"../../../../../../format/lib/sections/section-head-placement.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phRows as u,phHide as m}from"../../scaffold.js";import{say as o}from"../../../../../../format/lib/editor-words.js";import{TestimonialsMeta as f,TESTIMONIALS_PH as r}from"../../../../../../format/lib/document/blocks/general/Testimonials/meta.js";const h=()=>[{quote:o("A short customer quote goes here — replace it with a real testimonial from your customers."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A second customer quote — what they loved, in a sentence or two."),name:o("Customer name"),role:o("Role · Location")},{quote:o("A third short quote to round out the row."),name:o("Customer name"),role:o("Role · Location")}],S={...f,render:e=>{const t=d(e.headPlacement)==="own-box",i=n=>t?void 0:n;return a(s,{look:c(e.eyebrowLook,"Testimonials"),eyebrow:i(m(e.eyebrow,r.eyebrow,e.editor)),title:i(m(e.title,r.title,e.editor)),omitHead:t,items:u(e.items,h(),e.editor),columns:e.columns,editing:e.editor?.isEditing,pad:l("Testimonials",e)})}};export{S as TestimonialsRender};
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import f from"../../../../../components/TickerSection.js";import{loopDelayOf as l,loopSecondsOf as T,parseLoopDirection as S}from"../../../../../../format/lib/animation/index.js";import{phRows as j}from"../../scaffold.js";import{TickerMeta as k,TICKER_SCAFFOLD_ITEMS as x}from"../../../../../../format/lib/document/blocks/general/Ticker/meta.js";const g={...k,render:({items:r,tone:e,borders:i,size:s,separator:t,scrollDirection:p,speed:m,loopDuration:n,loopDelay:c,join:a,editor:o})=>d(f,{items:j(r,x,o),tone:e,borders:i,size:s,separator:t,scroll:S(p),seconds:T({loopDuration:n,speed:m}),delay:l({loopDelay:c}),join:a,editing:o?.isEditing})};export{g as TickerRender};
1
+ import{jsx as l}from"react/jsx-runtime";import f from"../../../../../components/TickerSection.js";import{loopDelayOf as D,loopSecondsOf as T,parseLoopDirection as j}from"../../../../../../format/lib/animation/index.js";import{sectionRootPad as k}from"../../../../content/section-own-pads.js";import{phRows as R}from"../../scaffold.js";import{TickerMeta as S,TICKER_SCAFFOLD_ITEMS as x}from"../../../../../../format/lib/document/blocks/general/Ticker/meta.js";const u={...S,render:o=>{const{items:e,tone:i,borders:t,size:s,separator:n,scrollDirection:p,speed:c,loopDuration:m,loopDelay:a,join:d,editor:r}=o;return l(f,{items:R(e,x,r),tone:i,borders:t,size:s,separator:n,scroll:j(p),seconds:T({loopDuration:m,speed:c}),delay:D({loopDelay:a}),join:d,editing:r?.isEditing,pad:k("Ticker",o)})}};export{u as TickerRender};
@@ -1 +1 @@
1
- import{phoneKey as E,readHidable as k}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as u}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as be}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ue}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as ye,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Pe,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as _e,cardKeyOf as H,cardListProps as Le,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Oe,bandProps as Ee,onBandPreset as ke,bandWrites as xe,DIM as T,DROP_COMMON as y,DROP_SIDE_PADDING as g,INNER_BOX as r,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Te,fillNoBoxHolds as Re,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as P}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as Ie,headTree as M,SIMPLE_HEADING_LOOK as Be,token as p}from"./section-head-looks.js";import{boxPadding as Ne,labelStyle as Fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as He}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";const h=(e,t,o,n)=>({sectionBorder:{top:e,right:t,bottom:o,left:n}}),v=e=>t=>ce(I(t.columns)??I(e.columns)),We="inline is the head the row draws; an own-box node is skipped (`skip`)",Me={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Be}},K={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,He.Series);return t&&t!=="transparent"?t:void 0},_=e=>w(e)===me,ve={...r,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},G={...r,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[E("share")]:"content"},Ke=e=>{const t=w(e)?1:2;return{...r,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},R={...Fe(12),letterSpacing:.22,lineHeight:1.5},j=e=>ye(e.viewLabel)&&!k(e.viewLabel).hidden,s=e=>k(e).text?.trim?.()??"",L=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,n])=>({key:t,label:o,...n?{multiline:!0}:{}})),Ge=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),je=A([["label","Label"],["value","Value"],["body","Card body",!0]]),b=(e,t,o,n,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:O=>Le(n(O),o)},slots:(O,ie)=>({[_e]:[i(O,ie)]})}]}),X=e=>Array.isArray(e.cards)?e.cards:[],Y={top:76,bottom:76,topPhone:76,bottomPhone:76},V=e=>(Array.isArray(e.items)?e.items:[]).map(t=>L({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),Xe=e=>V(e).some(t=>x(t.href)!==void 0),U=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],q=e=>ue(e.eyebrowLook,"KeyFeatures")==="filled",Ye={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,Y)}),box:[...f,...P(Y)],parts:[{kind:"group",name:"Heading",props:{...r,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[E("share")]:"content"},parts:[{...Te("eyebrow"),when:q},{...De("eyebrow"),when:e=>!q(e)},Me]},b("Cards",e=>({...r,...N(v(be.defaultProps)(e))}),U,V,e=>F(Xe(e)),{reads:["items"]})],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},z={top:72,bottom:72,topPhone:72,bottomPhone:72},J=(e,t)=>({...Ce,...m("background")(e,t)}),Q=e=>{const t=v(he.defaultProps)(e);return{...r,...N(t)}},Ve=A([["title","Card title"],["body","Card body",!0]]),Z=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),$=e=>{const t={},o={};for(const[n,i]of Object.entries(e.props??{}))n!=="id"&&(le(i)?o[n]=i.map($):t[n]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},ee=(e,t)=>{const o=D(e)?F(Ue(e)):Se(),n=Array.isArray(e.template)?e.template.map($):[o],[i]=n;return n.length===1&&i.type===a?{...i,props:{...J(e,t),...i.props}}:{type:a,props:{...r,...J(e,t),name:"Card"},slots:{[l]:n}}},D=e=>e.cardStyle==="label-only",te=e=>Z(e).map((t,o)=>{const n=e.items[o]?.href;return L({key:t.key,title:t.title,href:typeof n=="string"?n.trim():""})}),Ue=e=>te(e).some(t=>x(t.href)!==void 0),oe=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function Ct(){const e=o=>({key:de("card"),title:u(o),body:u("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:u("Label"),title:u("Section *heading.*"),items:t}}const qe={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,z)}),box:[...f,...P(z)],parts:[{...M("Cards"),when:e=>!ge(e)},{...b("Cards",Q,Ve,Z,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&!D(e)},{...b("Cards",Q,U,te,ee,{reads:["items"],keep:ne}),when:e=>!oe(e)&&D(e)}],drop:{...y,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},ze={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),...Ie,..._(e)?Ee(e,t):{},...Ae(w(e),e,t),...S(e,K)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>_(t)?Oe(e,t,o):e],...P(K)],skip:e=>Re(w(e)),site:(e,t)=>_(e.props)?xe(e,t):[],parts:[M("Series"),b("Cards",Ke,Ge,e=>X(e).map(t=>L({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...ve,...m("background",(o,n)=>_(o)&&ke(o,n))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...r,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...G,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",T,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...G,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...j(e)?{}:{[Pe]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...r,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[E("share")]:"content"},slots:{[l]:[d("count",c,R),d("countLabel",T,R)]}},...j(e)?[{type:a,props:{...r,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:k(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...R}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...y,...g,headPlacement:We}},re={top:60,bottom:60,topPhone:40,bottomPhone:40},Je={...r,direction:"row",columns:3,gap:40,gapPhone:16},Qe={...r,gap:8,gapPhone:8,...Ne(24),...h(1,1,1,1)},Ze={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,re)}),box:[...f,...P(re)],parts:[b("Cards",Je,je,e=>X(e).map(t=>L({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Qe,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...r,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",T,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...y,...g}},St={Cards:qe,KeyFeatures:Ye,Series:ze,DocMetaCards:Ze};export{St as CARDS_SECTION_TO_BOX,Ct as cardsPressStarter};
1
+ import{phoneKey as O,readHidable as k}from"efficient-easel/draw";import{isNodeList as le,newId as de}from"efficient-easel/data";import{say as y}from"../../../../../format/lib/editor-words.js";import{cardColumns as ce}from"../../../../../format/lib/content/card-columns.js";import{resolveSectionBackground as pe,THEME_SECTION_BG as me}from"../../../../../format/lib/content/section-background.js";import{CardsMeta as he}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as ue}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as I}from"../../../../../format/lib/finite-number.js";import{nonEmptyString as x}from"../../../../../format/lib/non-empty-string.js";import{parseSectionEyebrowLook as ye}from"../../../../../format/lib/sections/section-eyebrow-look.js";import{hasWords as be,headInOwnBox as ge}from"../../../sections/section-to-box.js";import{BOX_TYPE as a,CONTAINER_BLOCKS_SLOT as l}from"../../../../../format/lib/document/container-blocks.js";import{labelTextSeed as fe}from"../../../../../format/lib/document/text-seeds.js";import{LABEL_ONLY_CARD_FIELDS as B,rowFieldTextSeed as d}from"../../../../../format/lib/document/blocks/general/Cards/card-seed.js";import{CARDS_CELL as Ce,cardListCardSeed as Se,cardsGridLook as N,labelOnlyListCardSeed as F}from"../../../../../format/lib/document/blocks/general/Cards/card-list-seed.js";import{BOX_HIDE_WHEN_ROW_EMPTY as _e,CARD_LIST_TYPE as we,CARD_TEMPLATE_SLOT as Pe,cardKeyOf as H,cardListProps as Ee,cardRow as W}from"../../../../../format/lib/content/card-template.js";import{bandAccent as Le,bandProps as Oe,onBandPreset as ke,bandWrites as xe,DIM as R,DROP_COMMON as b,DROP_SIDE_PADDING as g,INNER_BOX as n,SAME_KEYS as f,SECTION_BOX as C,fillFrom as m,filledChip as Re,fillNoBoxHolds as Te,ownFill as Ae,TEXT as c,smallText as De,wrapperPad as S,wrapperPadKeys as _}from"./section-to-box-row-parts.js";import{EDITORIAL_LINE as Ie,headTree as M,SIMPLE_HEADING_LOOK as Be,token as p}from"./section-head-looks.js";import{boxPadding as Ne,labelStyle as Fe}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_BG_BUILT_IN as He}from"../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{CARDS_OWN as v,DOC_META_CARDS_OWN as K,KEY_FEATURES_OWN as G,SERIES_OWN as Y}from"../../../content/section-own-pads.js";const h=(e,t,o,r)=>({sectionBorder:{top:e,right:t,bottom:o,left:r}}),j=e=>t=>ce(I(t.columns)??I(e.columns)),We="inline is the head the row draws; an own-box node is skipped (`skip`)",Me={kind:"text",key:"title",role:"heading",props:c,style:{textStyle:"heading-3",...Be}},w=e=>{const t=pe(typeof e.background=="string"?e.background:void 0,He.Series);return t&&t!=="transparent"?t:void 0},P=e=>w(e)===me,ve={...n,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},X={...n,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[O("share")]:"content"},Ke=e=>{const t=w(e)?1:2;return{...n,direction:"row",columns:4,columnsTablet:2,gap:t,gapPhone:t}},T={...Fe(12),letterSpacing:.22,lineHeight:1.5},V=e=>be(e.viewLabel)&&!k(e.viewLabel).hidden,s=e=>k(e).text?.trim?.()??"",E=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>x(t)!==void 0)),A=e=>e.map(([t,o,r])=>({key:t,label:o,...r?{multiline:!0}:{}})),Ge=A([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Ye=A([["label","Label"],["value","Value"],["body","Card body",!0]]),u=(e,t,o,r,i,{reads:se=["cards"],keep:ae=[]}={})=>({kind:"group",name:e,props:t,parts:[{kind:"core",as:we,headless:!0,keep:ae,derive:{reads:se,props:L=>Ee(r(L),o)},slots:(L,ie)=>({[Pe]:[i(L,ie)]})}]}),U=e=>Array.isArray(e.cards)?e.cards:[],q=e=>(Array.isArray(e.items)?e.items:[]).map(t=>E({title:s(t?.label),href:typeof t?.href=="string"?t.href.trim():""})).filter(t=>t.title!==void 0).map((t,o)=>({key:H(W(t),o),...t})),je=e=>q(e).some(t=>x(t.href)!==void 0),z=[{key:B.label,label:"Feature label"},{key:B.href,label:"Link",kind:"link"}],J=e=>ye(e.eyebrowLook,"KeyFeatures")==="filled",Xe={name:"Key Features",boxProps:(e,t)=>({...C,direction:"column",gap:44,gapPhone:32,...m("surface")(e,t),...h(1,0,1,0),...S(e,G)}),box:[...f,..._(G)],parts:[{kind:"group",name:"Heading",props:{...n,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[O("share")]:"content"},parts:[{...Re("eyebrow"),when:J},{...De("eyebrow"),when:e=>!J(e)},Me]},u("Cards",e=>({...n,...N(j(ue.defaultProps)(e))}),z,q,e=>F(je(e)),{reads:["items"]})],drop:{...b,...g,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},Q=(e,t)=>({...Ce,...m("background")(e,t)}),Z=e=>{const t=j(he.defaultProps)(e);return{...n,...N(t)}},Ve=A([["title","Card title"],["body","Card body",!0]]),$=e=>(Array.isArray(e.items)?e.items:[]).map((t,o)=>({key:typeof t?.key=="string"&&t.key?t.key:H(W(t),o),title:s(t?.title),body:s(t?.body)})),ee=e=>{const t={},o={};for(const[r,i]of Object.entries(e.props??{}))r!=="id"&&(le(i)?o[r]=i.map(ee):t[r]=i);return{type:String(e.type),props:t,...Object.keys(o).length?{slots:o}:{}}},te=(e,t)=>{const o=D(e)?F(Ue(e)):Se(),r=Array.isArray(e.template)?e.template.map(ee):[o],[i]=r;return r.length===1&&i.type===a?{...i,props:{...Q(e,t),...i.props}}:{type:a,props:{...n,...Q(e,t),name:"Card"},slots:{[l]:r}}},D=e=>e.cardStyle==="label-only",oe=e=>$(e).map((t,o)=>{const r=e.items[o]?.href;return E({key:t.key,title:t.title,href:typeof r=="string"?r.trim():""})}),Ue=e=>oe(e).some(t=>x(t.href)!==void 0),re=e=>Array.isArray(e.template)&&e.template.length===0,ne=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function St(){const e=o=>({key:de("card"),title:y(o),body:y("A short line about this card.")}),t=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:y("Label"),title:y("Section *heading.*"),items:t}}const qe={name:"Cards",ownBoxConverts:!0,boxProps:(e,t)=>({...C,direction:"column",gap:36,gapPhone:28,...m("surface")(e,t),...S(e,v)}),box:[...f,..._(v)],parts:[{...M("Cards"),when:e=>!ge(e)},{...u("Cards",Z,Ve,$,te,{reads:["items"],keep:ne}),when:e=>!re(e)&&!D(e)},{...u("Cards",Z,z,oe,te,{reads:["items"],keep:ne}),when:e=>!re(e)&&D(e)}],drop:{...b,...g,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},ze={name:"Recurring Columns",boxProps:(e,t)=>({...C,direction:"column",gap:60,gapPhone:60,...h(0,0,1,0),...Ie,...P(e)?Oe(e,t):{},...Ae(w(e),e,t),...S(e,Y)}),box:[...f.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,o)=>P(t)?Le(e,t,o):e],..._(Y)],skip:e=>Te(w(e)),site:(e,t)=>P(e.props)?xe(e,t):[],parts:[M("Series"),u("Cards",Ke,Ge,e=>U(e).map(t=>E({num:s(t.num),since:s(t.since),title:s(t.title),body:s(t.desc),count:s(t.entries),countLabel:s(t.entriesLabel)})),(e,t)=>({type:a,props:{...ve,...m("background",(o,r)=>P(o)&&ke(o,r))(e,t),name:"Card"},slots:{[l]:[{type:a,props:{...n,name:"Words",gap:16,gapPhone:16},slots:{[l]:[{type:a,props:{...X,name:"Top"},slots:{[l]:[d("num",c,p("label",13),!0),d("since",c,p("label",13),!0)]}},d("title",{...c,tag:"h3"},{textStyle:"heading-3",...p("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),d("body",R,{textStyle:"body-5",fontRole:"heading",...p("body",14),lineHeight:1.6})]}},{type:a,props:{...X,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...h(1,0,0,0),...V(e)?{}:{[_e]:["count","countLabel"]}},slots:{[l]:[{type:a,props:{...n,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[O("share")]:"content"},slots:{[l]:[d("count",c,T),d("countLabel",R,T)]}},...V(e)?[{type:a,props:{...n,name:"View",maxWidthPhone:266},slots:{[l]:[{type:"Text",props:{...c,text:k(e.viewLabel).text,_partStyles:{text:{...fe()._partStyles.text,...T}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...b,...g,headPlacement:We}},Je={...n,direction:"row",columns:3,gap:40,gapPhone:16},Qe={...n,gap:8,gapPhone:8,...Ne(24),...h(1,1,1,1)},Ze={name:"Document Detail Cards",boxProps:e=>({...C,direction:"column",gap:40,gapPhone:16,...h(0,0,1,0),...S(e,K)}),box:[...f,..._(K)],parts:[u("Cards",Je,Ye,e=>U(e).map(t=>E({label:s(t.label),value:s(t.value),body:s(t.desc)})),(e,t)=>({type:a,props:{...Qe,...m("surface")(e,t),name:"Card"},slots:{[l]:[d("label",c,{...p("label",12),lineHeight:1.5},!0),{type:a,props:{...n,name:"Words",gap:14,gapPhone:14},slots:{[l]:[d("value",c,{textStyle:"heading-3",...p("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),d("body",R,{textStyle:"body-5",fontRole:"accent",...p("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...b,...g}},_t={Cards:qe,KeyFeatures:Xe,Series:ze,DocMetaCards:Ze};export{_t as CARDS_SECTION_TO_BOX,St as cardsPressStarter};
@@ -1,2 +1,2 @@
1
- import{parseBlocks as k,sectionAnchorIds as y,shownSections as _}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as P}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as b}from"../../../../../format/lib/content/grid-span.js";import{STACK_BELOW_PROP as S}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as f,INNER_BOX as e,SECTION_BOX as x,TEXT as r,smallText as a,wrapperPad as B,wrapperPadKeys as O}from"./section-to-box-row-parts.js";import{fluidToken as E,token as T}from"./section-head-looks.js";import{labelStyle as D}from"../../../../../format/lib/document/seed-parts.js";import{VIEW_HIDE_KEYS as I}from"../../../../../format/lib/content/view-hide-class.js";const c={top:80,bottom:80,topPhone:60,bottomPhone:60},d=18,l=18,m=8,u=10,i=t=>typeof t=="string"&&t.trim()!=="",h=t=>_(t.sections),w=t=>k(typeof t.body=="string"?t.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(n=>`- ${n}`).join(`
2
- `)}:{kind:"p",text:o.text}),s={...D(12),letterSpacing:.3,color:"accent",lineHeight:1.5},g={textStyle:"body-1",fontRole:"accent",...T("body",17)},C=[a("label",s),{...a("title",s),when:(t,o)=>!i(o?.label)},{kind:"block",type:"Text",when:(t,o)=>!i(o?.label)&&!i(o?.title),props:{...r,text:"Section",_partStyles:{text:s}}},{kind:"group",name:"Heading",props:{...e,sectionPaddingBottom:m,sectionPaddingBottomPhone:m},parts:[{kind:"group",name:"Heading line",props:{...e,sectionBorder:{bottom:1},sectionPaddingBottom:l,sectionPaddingBottomPhone:l},parts:[{kind:"text",key:"heading",role:"heading",props:r,style:{textStyle:"heading-2",...E("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:w,parts:[{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.7},when:(t,o)=>o?.kind==="p"},{kind:"text",key:"text",props:p,style:{...g,lineHeight:1.65,paragraphSpacing:u},when:(t,o)=>o?.kind==="ul"}]}],A=900,N={name:"Document Text",boxProps:t=>({...x,direction:"row",gap:80,gapPhone:40,[S]:A,sectionBorder:{bottom:1},...B(t,c)}),box:["anchor","sectionAccent",...b,...I,...Object.values(P),...O(c)],parts:[{kind:"block",type:"Contents",props:t=>({title:t.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...e,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:t=>h(t),props:{...e,gap:d,gapPhone:d},item:(t,o,n)=>({props:{anchor:y(h(n))[o]??`section-${o+1}`}}),parts:C}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...f,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},X={DocBody:N};export{X as DOCBODY_SECTION_TO_BOX};
1
+ import{parseBlocks as k,sectionAnchorIds as y,shownSections as _}from"../../../../components/DocBody.js";import{SECTION_WIDTH_KEYS as O}from"../../../../../format/lib/content/section-width.js";import{CELL_SPAN_KEYS as P}from"../../../../../format/lib/content/grid-span.js";import{STACK_BELOW_PROP as f}from"../../../content/box-stack-line.js";import{DIM as p,DROP_COMMON as B,INNER_BOX as o,SECTION_BOX as S,TEXT as r,smallText as a,wrapperPad as x,wrapperPadKeys as b}from"./section-to-box-row-parts.js";import{fluidToken as E,token as T}from"./section-head-looks.js";import{labelStyle as D}from"../../../../../format/lib/document/seed-parts.js";import{VIEW_HIDE_KEYS as C}from"../../../../../format/lib/content/view-hide-class.js";import{DOC_BODY_OWN as c}from"../../../content/section-own-pads.js";const d=18,l=18,m=8,I=10,i=t=>typeof t=="string"&&t.trim()!=="",g=t=>_(t.sections),u=t=>k(typeof t.body=="string"?t.body:"").map(e=>e.type==="ul"?{kind:"ul",text:e.items.map(n=>`- ${n}`).join(`
2
+ `)}:{kind:"p",text:e.text}),s={...D(12),letterSpacing:.3,color:"accent",lineHeight:1.5},h={textStyle:"body-1",fontRole:"accent",...T("body",17)},w=[a("label",s),{...a("title",s),when:(t,e)=>!i(e?.label)},{kind:"block",type:"Text",when:(t,e)=>!i(e?.label)&&!i(e?.title),props:{...r,text:"Section",_partStyles:{text:s}}},{kind:"group",name:"Heading",props:{...o,sectionPaddingBottom:m,sectionPaddingBottomPhone:m},parts:[{kind:"group",name:"Heading line",props:{...o,sectionBorder:{bottom:1},sectionPaddingBottom:l,sectionPaddingBottomPhone:l},parts:[{kind:"text",key:"heading",role:"heading",props:r,style:{textStyle:"heading-2",...E("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:u,parts:[{kind:"text",key:"text",props:p,style:{...h,lineHeight:1.7},when:(t,e)=>e?.kind==="p"},{kind:"text",key:"text",props:p,style:{...h,lineHeight:1.65,paragraphSpacing:I},when:(t,e)=>e?.kind==="ul"}]}],A=900,N={name:"Document Text",boxProps:t=>({...S,direction:"row",gap:80,gapPhone:40,[f]:A,sectionBorder:{bottom:1},...x(t,c)}),box:["anchor","sectionAccent",...P,...C,...Object.values(O),...b(c)],parts:[{kind:"block",type:"Contents",props:t=>({title:t.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...o,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:t=>g(t),props:{...o,gap:d,gapPhone:d},item:(t,e,n)=>({props:{anchor:y(g(n))[e]??`section-${e+1}`}}),parts:w}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...B,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},F={DocBody:N};export{F as DOCBODY_SECTION_TO_BOX};
@@ -1 +1 @@
1
- import{SPLITTABLE_SECTIONS as B}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as N}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as R,SECTION_BOX as I}from"./section-to-box-row-parts.js";import{SITE_SIDE as S,sideLengthAt as C}from"efficient-easel/screen/lib/content/length-units";import{EDITORIAL_LINE as L,HEAD_BELOW as f,headLookOf as u,headReads as w,headTree as D}from"./section-head-looks.js";import{finiteNumber as T}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as b}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as k}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as H,faqRunStyleKeys as F}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{PROCESS_COLUMNS_SLOT as x,processColumnSeeds as y}from"../../../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{BOX_SIDE_SPACE_PROP as Y,BOX_SIDE_SPACE_SITE as K}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as j}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as X}from"../../../../../format/lib/content/section-surface.js";import{ownEntry as _}from"../../../../../format/lib/own-entry.js";import{BAND_PAD_KEYS as E,BAND_PAD_UNIT_KEY as v,bandTopBottom as M}from"../../../content/section-padding.js";import{SECTION_PAD_INNER as Q,innerPaddingFallback as G}from"../../passes/section-padding.js";import{viewKeyAt as P}from"efficient-easel/draw";const U=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"],So=["Collections","Events","FitmentTable","GalleryB","ProductGrid","SpecTable"],p=(e,o)=>()=>({top:e,topPhone:o}),h=e=>o=>{const t=G(e),s={...o,[E.top]:M(o,t).top},r=d=>{const n=C(s,E,v,d,"top");return n?.unit==="px"?n.value:void 0},m=d=>T(o[P(E.top,d)])===void 0?void 0:r(d),a=m("tablet"),l=m("mobile");return{top:r("desktop")??t.top??0,...a!==void 0?{topTablet:a}:{},...l!==void 0?{topPhone:l}:{}}},W={Collections:p(120,70),Events:p(120,70),FAQ:p(120,70),GalleryB:p(120,70),FitmentTable:p(120,80),SpecTable:p(120,80),LongRead:p(120,80),RelatedProducts:p(0,0),Footprint:h("Footprint"),ProcessSteps:h("ProcessSteps"),ProductGrid:e=>({top:T(e.padTop)??120,topPhone:0})};function $(e,o={}){const t=_(B,e),s=_(W,e);if(!t||!s)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);const r=t.padKey,m=D(e),a=w(e),l=t.headRows.filter(n=>![t.num,t.title,t.description,"linkText","linkHref"].includes(n)),d={...Object.fromEntries(l.filter(n=>!(n in a)).map(n=>[n,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:_(N,e)??e,boxProps:(n,c)=>{const i=s(n),O=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},A=typeof o.boxProps=="function"?o.boxProps(n,c):o.boxProps??{},g=u(e)==="editorial"?L:{};return{...I,direction:"column",gap:f[u(e)],sectionPaddingTop:i.top,...i.topTablet!==void 0?{sectionPaddingTopTablet:i.topTablet}:{},...i.topPhone!==void 0?{sectionPaddingTopPhone:i.topPhone}:{},...g,...O,...A}},box:[...R,...r?[[r,"sectionPaddingTop",(n,c)=>s(c).top]]:[]],parts:[m,...(()=>{const n=r&&Q.has(e)?{[P(r,"tablet")]:0,[P(r,"mobile")]:0}:{},c={...r?{[r]:0}:{},...n,...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(a).length?{reads:a}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}const q={...j,direction:"accordion",rowStyle:"numbered"},z={sectionPaddingLeft:S,sectionPaddingRight:S},J={Footprint:{slots:{[b]:[k()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[x]:y().map(t=>({...t,props:{...t.props,...z}}))}:{},boxProps:{gapPhone:f.editorial}},FAQ:{slots:{[b]:[H()]},pressHeading:!0,coreBox:{name:"Questions",props:q},coreProps:{sectionAccent:X},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[Y]:K},skip:e=>{const o=e._partStyles??{},t=F().filter(s=>o[s]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(s=>`"${s}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},fo=Object.fromEntries(U.map(e=>[e,$(e,_(J,e))]));export{q as FAQ_ROWS_BOX,J as HEAD_ONLY_CARD_SEEDS,fo as HEAD_ONLY_SECTION_TO_BOX,U as HEAD_ONLY_TYPES,So as HOST_ROW_HEAD_TYPES,$ as headOnlyRow};
1
+ import{SPLITTABLE_SECTIONS as R}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as I}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as L,SECTION_BOX as C}from"./section-to-box-row-parts.js";import{SITE_SIDE as S,sideLengthAt as D}from"efficient-easel/screen/lib/content/length-units";import{EDITORIAL_LINE as w,HEAD_BELOW as f,headLookOf as h,headReads as k,headTree as H}from"./section-head-looks.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";import{CARD_TEMPLATE_SLOT as O}from"../../../../../format/lib/content/card-template.js";import{footprintCardSeed as F}from"../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";import{faqCardSeed as x,faqRunStyleKeys as y}from"../../../../../format/lib/document/blocks/general/FAQ/card-seed.js";import{PROCESS_COLUMNS_SLOT as Y,processColumnSeeds as K}from"../../../../../format/lib/document/blocks/general/ProcessSteps/column-seed.js";import{BOX_SIDE_SPACE_PROP as j,BOX_SIDE_SPACE_SITE as Q}from"../../../../../format/lib/content/box-side-space.js";import{INNER_BOX as X}from"../../../../../format/lib/document/seed-parts.js";import{SECTION_ACCENT_INHERIT as v}from"../../../../../format/lib/content/section-surface.js";import{ownEntry as _}from"../../../../../format/lib/own-entry.js";import{BAND_PAD_KEYS as E,BAND_PAD_UNIT_KEY as G,bandTopBottom as M}from"../../../content/section-padding.js";import{SECTION_PAD_INNER as W,innerPaddingFallback as U}from"../../passes/section-padding.js";import{viewKeyAt as P}from"efficient-easel/draw";import{FAQ_OWN as T,LONG_READ_OWN as b}from"../../../content/section-own-pads.js";const $=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"],uo=["Collections","Events","FitmentTable","GalleryB","ProductGrid","SpecTable"],p=(t,o)=>()=>({top:t,topPhone:o}),A=t=>o=>{const e=U(t),s={...o,[E.top]:M(o,e).top},r=d=>{const n=D(s,E,G,d,"top");return n?.unit==="px"?n.value:void 0},m=d=>u(o[P(E.top,d)])===void 0?void 0:r(d),a=m("tablet"),l=m("mobile");return{top:r("desktop")??e.top??0,...a!==void 0?{topTablet:a}:{},...l!==void 0?{topPhone:l}:{}}},q={Collections:p(120,70),Events:p(120,70),FAQ:p(T.top,T.topPhone),GalleryB:p(120,70),FitmentTable:p(120,80),SpecTable:p(120,80),LongRead:p(b.top,b.topPhone),RelatedProducts:p(0,0),Footprint:A("Footprint"),ProcessSteps:A("ProcessSteps"),ProductGrid:t=>({top:u(t.padTop)??120,topPhone:0})};function z(t,o={}){const e=_(R,t),s=_(q,t);if(!e||!s)throw new Error(`section-to-box-rows-head: "${t}" has no head row or no head room`);const r=e.padKey,m=H(t),a=k(t),l=e.headRows.filter(n=>![e.num,e.title,e.description,"linkText","linkHref"].includes(n)),d={...Object.fromEntries(l.filter(n=>!(n in a)).map(n=>[n,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:_(I,t)??t,boxProps:(n,c)=>{const i=s(n),g=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},B=typeof o.boxProps=="function"?o.boxProps(n,c):o.boxProps??{},N=h(t)==="editorial"?w:{};return{...C,direction:"column",gap:f[h(t)],sectionPaddingTop:i.top,...i.topTablet!==void 0?{sectionPaddingTopTablet:i.topTablet}:{},...i.topPhone!==void 0?{sectionPaddingTopPhone:i.topPhone}:{},...N,...g,...B}},box:[...L,...r?[[r,"sectionPaddingTop",(n,c)=>s(c).top]]:[]],parts:[m,...(()=>{const n=r&&W.has(t)?{[P(r,"tablet")]:0,[P(r,"mobile")]:0}:{},c={...r?{[r]:0}:{},...n,...o.coreProps},i={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[i]}:i]})(),...o.partsAfter??[]],...Object.keys(a).length?{reads:a}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[e.title]}:{},...o.skip?{skip:o.skip}:{}}}const J={...X,direction:"accordion",rowStyle:"numbered"},V={sectionPaddingLeft:S,sectionPaddingRight:S},Z={Footprint:{slots:{[O]:[F()]},pressHeading:!0},ProcessSteps:{slots:(t,o)=>o.press?{[Y]:K().map(e=>({...e,props:{...e.props,...V}}))}:{},boxProps:{gapPhone:f.editorial}},FAQ:{slots:{[O]:[x()]},pressHeading:!0,coreBox:{name:"Questions",props:J},coreProps:{sectionAccent:v},roomBelow:{bottom:120,bottomPhone:70},boxProps:(t,o)=>o.press?{}:{[j]:Q},skip:t=>{const o=t._partStyles??{},e=y().filter(s=>o[s]!==void 0);return e.length?`held: its rows carry their own run style (_partStyles ${e.map(s=>`"${s}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},Oo=Object.fromEntries($.map(t=>[t,z(t,_(Z,t))]));export{J as FAQ_ROWS_BOX,Z as HEAD_ONLY_CARD_SEEDS,Oo as HEAD_ONLY_SECTION_TO_BOX,$ as HEAD_ONLY_TYPES,uo as HOST_ROW_HEAD_TYPES,z as headOnlyRow};
@@ -1,2 +1,2 @@
1
- import{phoneKey as c}from"efficient-easel/draw";import{DIM as g,DROP_COMMON as d,DROP_SIDE_PADDING as h,INNER_BOX as o,SAME_KEYS as y,SECTION_BOX as m,TEXT as n,filledChip as k,surfaceAccent as i,wrapperPad as u,wrapperPadKeys as S}from"./section-to-box-row-parts.js";import{relaxedBodyLook as w,token as r}from"../../../../../format/lib/document/seed-parts.js";import{say as s}from"../../../../../format/lib/editor-words.js";import{loopSecondsOf as f}from"../../../../../format/lib/animation/loop.js";import{INTEGRATION_ROWS as b,dealRows as x,rowTurnSeconds as P}from"../../../../../format/lib/sections/integrations-rows.js";const l={top:76,bottom:76,topPhone:76,bottomPhone:76},A=e=>(Array.isArray(e.apps)?e.apps:[]).map(t=>t&&typeof t=="object"&&typeof t.text=="string"?t.text.trim():"").filter(Boolean),a=e=>x(A(e)),O=e=>f({loopDuration:P(e)}),N={kind:"group",name:"Header",props:{...o,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...o,direction:"row",justify:"center",phoneRow:2,[c("share")]:"content"},parts:[k("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...n,align:"center"},style:{textStyle:"heading-2",...r("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...g,align:"center",maxWidth:568},style:w(16)}]},_=e=>({kind:"group",name:`Row ${e+1}`,when:t=>a(t)[e].length>0,props:t=>({...o,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:O(a(t)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:t=>a(t)[e].map(p=>({alt:p})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),I={kind:"group",name:"Stat",props:{...o,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...o,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...n,align:"center"},style:{textStyle:"heading-1",...r("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...n,align:"center"},style:{textStyle:"heading-3",...r("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...n,align:"center",maxWidth:428},style:{textStyle:"body-1",...r("label",14),lineHeight:1.625,color:"muted"}}]},D=[...y.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,p)=>i(e,p)],...S(l)],E={name:"Integrations",boxProps:(e,t)=>({...m,sectionAccent:i(e.sectionAccent??0,t),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...u(e,l)}),box:D,parts:[N,{kind:"group",name:"Rows",props:{...o,gap:12,gapPhone:12},parts:Array.from({length:b},(e,t)=>_(t))},I],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...d,...h}},H={Integrations:E},K=()=>({eyebrow:s("Integrations"),title:s(`Plays well with
1
+ import{phoneKey as c}from"efficient-easel/draw";import{DIM as g,DROP_COMMON as d,DROP_SIDE_PADDING as h,INNER_BOX as o,SAME_KEYS as y,SECTION_BOX as m,TEXT as r,filledChip as k,surfaceAccent as i,wrapperPad as u,wrapperPadKeys as S}from"./section-to-box-row-parts.js";import{relaxedBodyLook as f,token as n}from"../../../../../format/lib/document/seed-parts.js";import{say as s}from"../../../../../format/lib/editor-words.js";import{loopSecondsOf as w}from"../../../../../format/lib/animation/loop.js";import{INTEGRATION_ROWS as x,dealRows as b,rowTurnSeconds as A}from"../../../../../format/lib/sections/integrations-rows.js";import{INTEGRATIONS_OWN as l}from"../../../content/section-own-pads.js";const P=e=>(Array.isArray(e.apps)?e.apps:[]).map(t=>t&&typeof t=="object"&&typeof t.text=="string"?t.text.trim():"").filter(Boolean),p=e=>b(P(e)),O=e=>w({loopDuration:A(e)}),I={kind:"group",name:"Header",props:{...o,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...o,direction:"row",justify:"center",phoneRow:2,[c("share")]:"content"},parts:[k("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...r,align:"center"},style:{textStyle:"heading-2",...n("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...g,align:"center",maxWidth:568},style:f(16)}]},N=e=>({kind:"group",name:`Row ${e+1}`,when:t=>p(t)[e].length>0,props:t=>({...o,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:O(p(t)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:t=>p(t)[e].map(a=>({alt:a})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),_={kind:"group",name:"Stat",props:{...o,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...o,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...r,align:"center"},style:{textStyle:"heading-1",...n("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...r,align:"center"},style:{textStyle:"heading-3",...n("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...r,align:"center",maxWidth:428},style:{textStyle:"body-1",...n("label",14),lineHeight:1.625,color:"muted"}}]},E=[...y.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,t,a)=>i(e,a)],...S(l)],R={name:"Integrations",boxProps:(e,t)=>({...m,sectionAccent:i(e.sectionAccent??0,t),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...u(e,l)}),box:E,parts:[I,{kind:"group",name:"Rows",props:{...o,gap:12,gapPhone:12},parts:Array.from({length:x},(e,t)=>N(t))},_],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...d,...h}},H={Integrations:R},K=()=>({eyebrow:s("Integrations"),title:s(`Plays well with
2
2
  *your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});export{H as INTEGRATIONS_SECTION_TO_BOX,K as integrationsPressStarter};