efficient-web-builder 74.2.0 → 74.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/editor/components/SectionTextPartBridge.d.ts +2 -8
- package/dist/editor/components/SectionTextPartBridge.js +1 -1
- package/dist/editor/lib/document/own-pad-fields.d.ts +4 -3
- package/dist/editor/lib/document/own-pad-fields.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +3 -2
- package/dist/render/components/Banner.d.ts +3 -1
- package/dist/render/components/Banner.js +1 -1
- package/dist/render/components/Cards.d.ts +3 -1
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ChartSection.d.ts +3 -1
- package/dist/render/components/ChartSection.js +1 -1
- package/dist/render/components/ContactLocations.d.ts +3 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/Countdown.d.ts +3 -1
- package/dist/render/components/Countdown.js +1 -1
- package/dist/render/components/DocBody.d.ts +3 -1
- package/dist/render/components/DocBody.js +5 -5
- package/dist/render/components/DocMasthead.d.ts +3 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocMetaCards.d.ts +3 -1
- package/dist/render/components/DocMetaCards.js +1 -1
- package/dist/render/components/FAQ.d.ts +3 -1
- package/dist/render/components/FAQ.js +1 -1
- package/dist/render/components/FeaturedCover.d.ts +3 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Grid.d.ts +3 -1
- package/dist/render/components/Grid.js +1 -1
- package/dist/render/components/IntegrationsSection.d.ts +3 -1
- package/dist/render/components/IntegrationsSection.js +1 -1
- package/dist/render/components/KeyFeatures.d.ts +3 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/Logos.d.ts +3 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.d.ts +3 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Masthead.d.ts +3 -1
- package/dist/render/components/Masthead.js +1 -1
- package/dist/render/components/MockupSection.d.ts +3 -1
- package/dist/render/components/MockupSection.js +1 -1
- package/dist/render/components/OrderSummary.d.ts +3 -1
- package/dist/render/components/OrderSummary.js +1 -1
- package/dist/render/components/PaymentBadges.d.ts +3 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/Prose.d.ts +3 -1
- package/dist/render/components/Prose.js +1 -1
- package/dist/render/components/SectionHeader.d.ts +2 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/Series.d.ts +3 -1
- package/dist/render/components/Series.js +1 -1
- package/dist/render/components/Stats.d.ts +3 -1
- package/dist/render/components/Stats.js +1 -1
- package/dist/render/components/Testimonials.d.ts +3 -1
- package/dist/render/components/Testimonials.js +1 -1
- package/dist/render/components/TickerSection.d.ts +3 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/content/section-own-pads.d.ts +35 -0
- package/dist/render/lib/content/section-own-pads.js +1 -0
- package/dist/render/lib/content/section-padding.d.ts +9 -3
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocBody/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMasthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/DocMetaCards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
- package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Integrations/render.js +2 -2
- package/dist/render/lib/document/blocks/general/KeyFeatures/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Masthead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
- package/dist/render/lib/document/blocks/general/OrderSummary/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Prose/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Series/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Stats/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Testimonials/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/editing-bridges.d.ts +5 -1
- package/dist/render/lib/document/editing-bridges.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +3 -1
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/section-padding.d.ts +3 -3
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import { type OwnFrame, type RootPadAttrs } from "./section-padding.js";
|
|
3
|
+
import type { OwnPad } from "../document/blocks/general/section-to-box-row-parts.js";
|
|
4
|
+
export declare const BANNER_OWN: OwnPad;
|
|
5
|
+
export declare const CARDS_OWN: OwnPad;
|
|
6
|
+
export declare const CONTACT_LOCATIONS_OWN: OwnPad;
|
|
7
|
+
export declare const FAQ_OWN: OwnPad;
|
|
8
|
+
export declare const LONG_READ_OWN: OwnPad;
|
|
9
|
+
export declare const PAYMENT_BADGES_OWN: OwnPad;
|
|
10
|
+
export declare const COUNTDOWN_OWN: OwnPad;
|
|
11
|
+
export declare const DOC_BODY_OWN: OwnPad;
|
|
12
|
+
export declare const DOC_MASTHEAD_OWN: OwnPad;
|
|
13
|
+
export declare const DOC_META_CARDS_OWN: OwnPad;
|
|
14
|
+
export declare const FEATURED_COVER_OWN: OwnPad;
|
|
15
|
+
export declare const INTEGRATIONS_OWN: OwnPad;
|
|
16
|
+
export declare const KEY_FEATURES_OWN: OwnPad;
|
|
17
|
+
export declare const MASTHEAD_OWN: OwnPad;
|
|
18
|
+
export declare const PROOF_OWN: OwnPad;
|
|
19
|
+
export declare const PROSE_OWN: OwnPad;
|
|
20
|
+
export declare const SECTION_HEADER_OWN: OwnPad;
|
|
21
|
+
export declare const SERIES_OWN: OwnPad;
|
|
22
|
+
export declare const STATS_OWN: OwnPad;
|
|
23
|
+
type Props = Record<string, unknown>;
|
|
24
|
+
export declare const logosBandOwn: (props: Props) => OwnPad;
|
|
25
|
+
type SectionOwnPad = {
|
|
26
|
+
readonly frame: (props: Props) => OwnFrame;
|
|
27
|
+
readonly edge?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare const SECTION_OWN_PADS: Readonly<Record<string, SectionOwnPad>>;
|
|
30
|
+
export declare function sectionRootPad(type: string, props: Props): RootPadAttrs | null;
|
|
31
|
+
export declare function withRootPad(className: string, pad: RootPadAttrs | null | undefined, style?: CSSProperties): {
|
|
32
|
+
className: string;
|
|
33
|
+
style?: CSSProperties;
|
|
34
|
+
} & Readonly<Record<string, unknown>>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{framePadAttrs as f,padValuesOf as _,SECTION_PAD_KEYS as d}from"./section-padding.js";import{parseSectionHeadPlacement as i}from"../../../format/lib/sections/section-head-placement.js";import{parseSectionHeadStyle as N}from"../../../format/lib/sections/section-head-style.js";import{readHidable as T}from"efficient-easel/draw";import{TICKER_PAD as S}from"../../../format/lib/sections/strip-shape.js";import{finiteNumber as A}from"../../../format/lib/finite-number.js";import{ownEntry as l}from"../../../format/lib/own-entry.js";const E={top:24,bottom:24,topPhone:24,bottomPhone:24},u={top:72,bottom:72,topPhone:72,bottomPhone:72},s={top:100,bottom:100,topPhone:60,bottomPhone:60},x={top:120,bottom:120,topPhone:70,bottomPhone:70},W={top:24,bottom:24,topPhone:24,bottomPhone:24},D=40,C={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},R={top:24,bottom:24,topPhone:24,bottomPhone:24},g={top:24,bottom:24,topPhone:24,bottomPhone:24},I={top:84,bottom:84,topPhone:84,bottomPhone:84},B={top:48,bottom:48,topPhone:48,bottomPhone:48},M={top:80,bottom:80,topPhone:60,bottomPhone:60},y={top:100,bottom:60,topPhone:60,bottomPhone:40},L={top:60,bottom:60,topPhone:40,bottomPhone:40},F={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},H={top:76,bottom:76,topPhone:76,bottomPhone:76},G={top:76,bottom:76,topPhone:76,bottomPhone:76},P={top:80,bottom:40,topPhone:60,bottomPhone:32},h={top:76,bottom:76,topPhone:76,bottomPhone:76},k={top:72,bottom:72,topPhone:72,bottomPhone:72},Y={top:40,bottom:64,topPhone:24,bottomPhone:36},w={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},K={top:48,bottom:48,topPhone:48,bottomPhone:48},U=o=>{const t=A(o.bandPadding)??D;return{top:t,bottom:t,topPhone:t,bottomPhone:t}},c=(o,t,n)=>({desktop:o,tablet:t,mobile:n}),p=o=>i(o.headPlacement)==="own-box",e=(o,t)=>({top:c(o.top,t?.top??o.topTablet??o.top,o.topPhone),bottom:c(o.bottom,t?.bottom??o.bottomTablet??o.bottom,o.bottomPhone)}),O=o=>({top:o.topPhone,bottom:o.bottomPhone}),r=o=>t=>p(t)?{top:0,bottom:o.bottom}:o,V=(o,t)=>{const n=T(o[t]);return n.hidden?!1:!!n.text||o.editor?.isEditing===!0},j={Banner:{frame:()=>e(E)},Cards:{frame:r(e(u))},Chart:{frame:()=>e(h)},ContactLocations:{frame:()=>e(s,O(s))},Countdown:{frame:()=>e(B)},DocBody:{frame:()=>e(M)},DocMasthead:{frame:()=>e(y)},DocMetaCards:{frame:()=>e(L)},FAQ:{frame:o=>{const t=p(o)||!["num","title","linkText"].some(m=>V(o,m)),n=e(x);return t?{top:0,bottom:n.bottom}:n},edge:!0},FeaturedCover:{frame:()=>e(F)},Grid:{frame:()=>e(W)},Integrations:{frame:()=>e(H)},KeyFeatures:{frame:()=>e(G)},Logos:{frame:o=>p(o)?0:e(U(o))},LongRead:{frame:r(e(C))},Masthead:{frame:()=>e(P,O(P))},Mockup:{frame:()=>e(h)},OrderSummary:{frame:()=>e(R)},PaymentBadges:{frame:()=>e(g)},Prose:{frame:r(e(k))},SectionHeader:{frame:o=>{const t=e(Y);return N(o.headStyle)==="standard"?t:{top:t.top,bottom:0}},edge:!0},Series:{frame:r(e(w))},Stats:{frame:()=>e(K)},Testimonials:{frame:r(e(I))},Ticker:{frame:()=>e(S),edge:!0}};function oo(o,t){const n=l(j,o);return n?f({values:_(t,d,!0),frame:n.frame(t),drawsFrame:!0,edge:n.edge},!0).root:null}const v=/^(?:[^\s]*:)?p[ytb]-/;function to(o,t,n){if(!t)return n?{className:o,style:n}:{className:o};const m=o.split(/\s+/).filter(b=>b&&!v.test(b)),a={...n,...t.style};return{className:[...m,t.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...t.attrs}}export{E as BANNER_OWN,u as CARDS_OWN,s as CONTACT_LOCATIONS_OWN,B as COUNTDOWN_OWN,M as DOC_BODY_OWN,y as DOC_MASTHEAD_OWN,L as DOC_META_CARDS_OWN,x as FAQ_OWN,F as FEATURED_COVER_OWN,H as INTEGRATIONS_OWN,G as KEY_FEATURES_OWN,C as LONG_READ_OWN,P as MASTHEAD_OWN,g as PAYMENT_BADGES_OWN,h as PROOF_OWN,k as PROSE_OWN,Y as SECTION_HEADER_OWN,j as SECTION_OWN_PADS,w as SERIES_OWN,K as STATS_OWN,U as logosBandOwn,oo as sectionRootPad,to as withRootPad};
|
|
@@ -10,6 +10,12 @@ export declare function sectionPadStyle(pt: unknown, pb: unknown, unit?: unknown
|
|
|
10
10
|
type SideFrames = (side: "top" | "bottom", tier: ViewTier) => number;
|
|
11
11
|
export type TierFrames = Readonly<Record<ViewTier, number>>;
|
|
12
12
|
export declare const frameAt: (frame: number | TierFrames | undefined, tier: ViewTier) => number;
|
|
13
|
+
type SidedFrames = Readonly<{
|
|
14
|
+
top: number | TierFrames;
|
|
15
|
+
bottom: number | TierFrames;
|
|
16
|
+
}>;
|
|
17
|
+
export type OwnFrame = number | TierFrames | SidedFrames;
|
|
18
|
+
export declare const sideFrameAt: (frame: OwnFrame | undefined, side: "top" | "bottom", tier: ViewTier) => number;
|
|
13
19
|
export declare const PAD_TOP_PHONE_CLASS = "sf-pad-top-phone";
|
|
14
20
|
export declare const PAD_BOTTOM_PHONE_CLASS = "sf-pad-bottom-phone";
|
|
15
21
|
export declare const PAD_TOP_PHONE_VAR = "--sf-pad-t-phone";
|
|
@@ -100,7 +106,7 @@ export type PadValues = {
|
|
|
100
106
|
unit?: unknown;
|
|
101
107
|
unitTablet?: unknown;
|
|
102
108
|
unitPhone?: unknown;
|
|
103
|
-
frame?:
|
|
109
|
+
frame?: OwnFrame;
|
|
104
110
|
totals?: readonly string[];
|
|
105
111
|
sideSpace?: "box" | "site";
|
|
106
112
|
};
|
|
@@ -136,7 +142,7 @@ export declare const tierFramesOf: (own: {
|
|
|
136
142
|
}) => TierFrames;
|
|
137
143
|
export type FramePad = {
|
|
138
144
|
values: PadValues;
|
|
139
|
-
frame:
|
|
145
|
+
frame: OwnFrame;
|
|
140
146
|
drawsFrame?: boolean;
|
|
141
147
|
edge?: boolean;
|
|
142
148
|
};
|
|
@@ -155,7 +161,7 @@ export declare function wrapperPadAttrs(v: PadValues): {
|
|
|
155
161
|
className: string;
|
|
156
162
|
style: CSSProperties;
|
|
157
163
|
} | null;
|
|
158
|
-
export declare function rootPadAttrs(pad: PadValues, frame:
|
|
164
|
+
export declare function rootPadAttrs(pad: PadValues, frame: OwnFrame): {
|
|
159
165
|
className: string;
|
|
160
166
|
style: CSSProperties;
|
|
161
167
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{storedUnit as
|
|
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
|
|
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{
|
|
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
|
|
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
|
|
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{jsx as m}from"react/jsx-runtime";import
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1
|
+
import{jsx as i,jsxs as g}from"react/jsx-runtime";import{HideTaker as A}from"../../../../../components/ViewHideRoot.js";import R,{faqPageJsonLd as T,faqRows as _}from"../../../../../components/FAQ.js";import{CardTemplateRows as q}from"../../../../../components/CardRowContext.js";import{BoxTabPaneContext as x,FirstCopyOpensContext as P}from"../../../../../components/BoxTabPaneContext.js";import{BOX_ITEMS_ATTR as S}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 F}from"../../../part-styles.js";import{hidableText as Y}from"efficient-easel/draw";import{parseSectionHeadPlacement as C}from"../../../../../../format/lib/sections/section-head-placement.js";import{sectionRootPad as H}from"../../../../content/section-own-pads.js";import{phRows as L,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 b,FAQ_PH as c}from"../../../../../../format/lib/document/blocks/general/FAQ/meta.js";const j=()=>[{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.")}],E=[{}],Q={[I]:""};function K({id:e,items:d,defaultOpen:a,listKey:s,Template:n,editing:o,dragRef:f,fallback:m}){const r=_(Array.isArray(d)?d:[]),l=r.length?r:o?E:r,h=o?null:T(r);return!l.length&&n&&(n.blockCount??0)>0?null:i(q,{ownerId:e,ownerType:"FAQ",Template:n,rows:l.map(O),items:l,copyAttrs:Q,fallback:m,children:w=>g(x.Provider,{value:"accordion",children:[i(P.Provider,{value:a,children:i(A,{ref:f,className:"contents",[S]:"",...s?{[k]:s}:{},children:w})}),h&&i("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:h}})]})})}const te={...b,render:e=>{const d=typeof e[y]=="string"?e[y]:void 0,a=e.editor?.dragRef??void 0,s=e.editor?.isEditing===!0,n=C(e.headPlacement)==="own-box",o=r=>n?void 0:r,f=u(e.linkText,c.link,e.editor),m=i(R,{num:o(u(e.num,c.num,e.editor)),title:o(u(e.title,c.title,e.editor)),link:o(f?{text:f,href:Y(e.linkHref)||"/faq"}:void 0),omitHead:n,nodeId:typeof e.id=="string"?e.id:void 0,partStyles:F(e),items:L(e.items,j(),e.editor),defaultOpen:e.defaultOpen,listKey:d,editing:e.editor?.isEditing,rootRef:a,pad:H("FAQ",e)});return i(K,{id:String(e.id??""),items:e.items,defaultOpen:e.defaultOpen!==!1,listKey:d,Template:e.template,editing:s,dragRef:a,fallback:m})}};export{te as FAQRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
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
|
|
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
|
|
2
|
-
*your favourite apps.*`,e),body:t(n),apps:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2
|
-
*the counter.*`,e)),body:t(o(
|
|
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
|
|
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
|
|
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{
|
|
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
|
|
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
|
|
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
|
|
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{
|
|
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
|
|
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
|
|
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
|
|
2
|
-
`)}:{kind:"p",text:
|
|
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};
|