efficient-web-builder 55.2.0 → 55.3.1
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 +38 -0
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/lib/document/block-source-fields.d.ts +1 -0
- package/dist/editor/lib/document/block-source-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/live-number-field.d.ts +5 -0
- package/dist/editor/lib/document/live-number-field.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.js +1 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +12 -1
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +3 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +6 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/count-numbers.d.ts +1 -1
- package/dist/format/lib/content/count-numbers.js +1 -1
- package/dist/format/lib/content/footer.js +1 -1
- package/dist/format/lib/content/image-text-rows.d.ts +22 -0
- package/dist/format/lib/content/image-text-rows.js +1 -0
- package/dist/format/lib/content/mirror-cards.d.ts +17 -0
- package/dist/format/lib/content/mirror-cards.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +7 -0
- package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +11 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -0
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/passes/document-position.d.ts +8 -0
- package/dist/format/lib/document/passes/document-position.js +1 -1
- package/dist/format/lib/document/row-hand.d.ts +5 -0
- package/dist/format/lib/document/row-hand.js +1 -0
- package/dist/format/lib/document/section-catalog.js +17 -3
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/document/seed-parts.d.ts +3 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/document/text-seeds.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +38 -1
- package/dist/format/lib/editor-words-catalogue.js +6 -6
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/sections/strip-shape.js +1 -1
- package/dist/format/lib/sections/ticker-join.d.ts +1 -0
- package/dist/format/lib/sections/ticker-join.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +2 -2
- package/dist/format/lib/theme.d.ts +1 -0
- package/dist/format/lib/theme.js +3 -3
- package/dist/render/components/CardRowContext.d.ts +5 -0
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/ClientRows.d.ts +8 -0
- package/dist/render/components/ClientRows.js +1 -0
- package/dist/render/components/Flex.d.ts +2 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/JoinBox.d.ts +4 -0
- package/dist/render/components/JoinBox.js +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +4 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/MirrorContext.d.ts +12 -0
- package/dist/render/components/MirrorContext.js +1 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +5 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.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-editorial.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.d.ts +1 -0
- 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-stats.d.ts +5 -0
- 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-strip.d.ts +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +2 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/box-join.d.ts +2 -0
- package/dist/render/lib/document/passes/box-join.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/card-list-style.d.ts +18 -0
- package/dist/render/lib/sections/card-list-style.js +1 -0
- package/dist/render/lib/sections/payment-rows.d.ts +16 -0
- package/dist/render/lib/sections/payment-rows.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
package/dist/format/lib/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{contrastRatio as
|
|
1
|
+
import{contrastRatio as j,hexToRgb as h,parseHexColor as f,readableInk as V,relativeLuminance as x}from"efficient-shell/format";const Z="storefront-theme",Le="sf:theme-mode",ke="sf:theme-switch",Pe="hide",$e="light",Fe=!1,R=7,D=18;function q(e){return e>=R&&e<D}function Ue(e){const{mode:t,override:n,switchShown:r,hour:o}=e;return r&&(n==="light"||n==="dark")?n:t==="auto"?q(o)?"light":"dark":t==="light"?"light":"dark"}function Ge(e){const{mode:t,switchShown:n}=e;return`
|
|
2
2
|
try {
|
|
3
3
|
var mode = ${JSON.stringify(t)};
|
|
4
4
|
var shown = ${n?"true":"false"};
|
|
@@ -8,11 +8,11 @@ import{contrastRatio as K,hexToRgb as h,parseHexColor as f,readableInk as j,rela
|
|
|
8
8
|
theme = override;
|
|
9
9
|
} else if (mode === 'auto') {
|
|
10
10
|
var h = new Date().getHours();
|
|
11
|
-
theme = (h >= ${
|
|
11
|
+
theme = (h >= ${R} && h < ${D}) ? 'light' : 'dark';
|
|
12
12
|
} else {
|
|
13
13
|
theme = mode === 'light' ? 'light' : 'dark';
|
|
14
14
|
}
|
|
15
15
|
if (theme === 'light') document.documentElement.setAttribute('data-theme', 'light');
|
|
16
16
|
else document.documentElement.removeAttribute('data-theme');
|
|
17
17
|
} catch (e) {}
|
|
18
|
-
`}const s={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},J=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Q={selected:0,themes:J};function D(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Q}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function x(e,t,n){const r=h(e),o=h(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const v={light:"#ffffff",dark:"#0a0a0a"},Ue=["light","dark"];function Ye(e,t){const n=v[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:x(e,r,.1),line:x(e,r,.22),muted:x(n,e,.35),brandInk:t}}function u(e){const t=D(e);return t.themes[t.selected]}function l(e){return{text:e.text,accent:e.accent,background:e.background||s.background,surface:e.surface||s.surface,line:e.line||s.line,muted:e.muted||s.muted}}function ze(e){return{fill:l(e).background,accent:e.accent}}const ee=.4,te=4.5,ne=3,Be={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Xe(e){return e>=te?"good":e>=ne?"large-only":"hard"}const re=["#000000","#ffffff"];function d(e){return j(e,re)}const oe=[.25,.4,.55];function We(e){const t=h(e);return t===null?[]:oe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function Ke(e){const t=u(e),n={"--theme-fg":t.text},r=V(t.text);return(r===null||r>=ee)&&(n["--overlay-fg"]=t.text),n}const ce=82;function p(e){return`color-mix(in srgb, ${e} ${ce}%, #000)`}function je(e){const t=u(e);return{"--theme-accent":t.accent,"--theme-accent-2":p(t.accent),"--theme-accent-ink":d(t.accent)}}function _(e){const t=e?.button;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function Ve(e){const t=u(e),n=_(t),r=H(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=p(n)),o["--theme-btn-ink"]=r??d(n),o}function H(e){const t=e?.buttonInk;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function ie(e,t){return H(e)??d(_(e)??t)}function Ze(e){const t=u(e);return{fill:_(t)??t.accent.toLowerCase(),ink:ie(t,t.accent)}}function qe(e){const t={};return D(e).themes.forEach((n,r)=>{const o=l(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=p(o.accent),t[`--theme-preset-${r}-accent-ink`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const E=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},S=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function N([e,t,n]){const[r,o,c]=[E(e),E(t),E(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),m=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*m,1.9779984951*i-2.428592205*a+.4505937099*m,.0259040371*i+.7827717662*a-.808675766*m]}function se([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[S(4.0767416621*r-3.3077115913*o+.2309699292*c),S(-1.2684380046*r+2.6097574011*o-.3413193965*c),S(-.0041960863*r-.7034186147*o+1.707614701*c)]}const A=e=>{const t=h(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},O=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],L=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,k=e=>O(A(e.surface),A(e.line),.6);function Je(e){return L(k(l(e)))}function P(e){const t=l(e);return L(se(O(N(k(t)),N(A(t.text)),.92)))}function Qe(e){return{...e,background:P(e)}}function ve(e,t){const n=e[t];if(!n)return-1;const r=P(n);return e.findIndex((o,c)=>c!==t&&f(o.background??"")===r)}const et=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function tt(e){const t=l(u(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==s.surface||t.line!==s.line)&&(r["--theme-surface-2"]=n),r}const ae=["heading","body","label"],nt={heading:"Headings",body:"Body",label:"Labels"};function rt(e){if(!e)return null;for(const t of ae)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const $=["headingLarge","headingMedium","headingSmall","accent","body","label"],ot={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},ct={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ue=8,le=200;function he(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=ue&&t<=le?t:null}function fe(e){const t={};for(const n of $)t[n]=he(e?.[n]);return t}function it(e){const t=fe(e),n={};for(const r of $){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const de=["square","small","large"],ge="small";function me(e){return de.includes(e??"")?e:ge}function st(e){return G(pe[me(e)])}const T=0,xe=40,pe={square:0,small:null,large:16},F={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function b(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(xe,Math.max(T,Math.round(t))):null}function G(e){const t=b(e);return t===null?{}:Object.fromEntries(Object.entries(F).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function at(e){return(b(e)??T)*F["--sf-button-radius"]}function ut(e){return G(b(e)??T)}const _e=["none","soft","lifted"],Ee="soft",U="none",Se=["tight","normal","roomy"],Ae="normal",Te="normal",be=["none","lift","highlight"],Ce="lift",we="highlight",Y="#141416";function z(e){return _e.includes(e??"")?e:Ee}function Ie(e){return Se.includes(e??"")?e:Ae}function B(e){return be.includes(e??"")?e:Ce}function ye(e){return e&&f(e)===e.toLowerCase()?e.toLowerCase():Y}function lt(e){const t=z(e);return t===U?void 0:t}function ht(e){const t=Ie(e);return t===Te?void 0:t}function ft(e){const t=B(e);return t===we?void 0:t}function dt(e,t,n){const r=ye(t);return r===Y?{}:z(e)!==U||B(n)==="lift"?{"--sf-shadow-color":r}:{}}const Me=["normal","tight","compressed"],X="normal";function W(e){return Me.includes(e??"")?e:X}function gt(e){const t=W(e);return t===X?void 0:t}function mt(e){switch(W(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const xt=["authored","sentence"],pt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},C=100,w=900,Re=24,De=200;function g(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function I(e){const t=g(e?.weight,C,w),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:g(c,C,w),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:g(e?.weightStrong,C,w),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:g(e?.maxPx,Re,De),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function _t(e){const t=I(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function Et(e){return I({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function St(e){const t=I(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const y="siteTheme";function He(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[y]:{selected:n,themes:t.themes}}}function At(e){return He(e?.[y])[y]}export{oe as ACCENT_DARKEN_STEPS,Ue as BRAND_INKS,Se as CARD_GAPS,_e as CARD_SHADOWS,xe as CORNER_RADIUS_MAX,T as CORNER_RADIUS_MIN,de as CORNER_STYLES,pe as CORNER_STYLE_TO_PX,Ae as DEFAULT_CARD_GAP,Ee as DEFAULT_CARD_SHADOW,ge as DEFAULT_CORNER_STYLE,X as DEFAULT_HEADING_COMPRESSION,pt as DEFAULT_HEADING_TYPOGRAPHY,Ce as DEFAULT_HOVER_EFFECT,Y as DEFAULT_SHADOW_COLOR,ct as DEFAULT_SIZES,s as DEFAULT_SURFACES,$e as DEFAULT_SWITCH_SHOWN,J as DEFAULT_THEMES,Pe as DEFAULT_THEME_MODE,Q as DEFAULT_THEME_VALUE,Be as GRADE_LABEL,xt as HEADING_CASES,Me as HEADING_COMPRESSIONS,De as HEADING_MAX_PX_MAX,Re as HEADING_MAX_PX_MIN,w as HEADING_WEIGHT_MAX,C as HEADING_WEIGHT_MIN,be as HOVER_EFFECTS,Te as IDENTITY_CARD_GAP,U as IDENTITY_CARD_SHADOW,we as IDENTITY_HOVER_EFFECT,te as READABILITY_AA,ne as READABILITY_AA_LARGE,ot as SCALE_OF_STEP,y as SITE_THEME_KEY,$ as SIZE_STEPS,le as TEXT_SIZE_MAX,ue as TEXT_SIZE_MIN,R as THEME_DAY_END_HOUR,M as THEME_DAY_START_HOUR,Oe as THEME_MODE_KEY,Z as THEME_STORAGE_KEY,et as THEME_SURFACE_KEYS,ke as THEME_SWITCH_HIDE,Le as THEME_SWITCH_KEY,ae as TYPE_GROUPS,nt as TYPE_GROUP_LABELS,d as accentInk,Qe as bandPresetFor,ve as bandPresetIndex,Ye as brandTheme,Ge as buildThemeBootScript,ht as cardGapAttr,lt as cardShadowAttr,mt as compressionMetrics,K as contrastRatio,G as cornerRadiusTokens,st as cornerStyleTokens,We as darkerAccents,Xe as gradeContrast,gt as headingCompressionAttr,Et as headingTypographyFromRow,_t as headingTypographyStyle,St as headingTypographyToRow,ft as hoverEffectAttr,q as isDayHour,Ie as normalizeCardGap,z as normalizeCardShadow,b as normalizeCornerRadius,me as normalizeCornerStyle,W as normalizeHeadingCompression,I as normalizeHeadingTypography,B as normalizeHoverEffect,ye as normalizeShadowColor,he as normalizeSize,fe as normalizeSizes,D as normalizeTheme,l as normalizeThemeColors,Fe as resolveTheme,ie as resolvedButtonInk,P as sectionBandTone,u as selectedThemeColors,dt as shadowColorTokens,Ze as siteButtonPaint,at as siteButtonRadiusPx,ut as siteCornerRadiusTokens,He as siteThemeMetadata,At as siteThemeOf,Je as surfaceTwoTone,je as themeAccentStyle,_ as themeButtonColour,H as themeButtonInk,Ve as themeButtonStyle,Ke as themeColorStyle,qe as themePresetAccentVars,tt as themeSurfaceStyle,ze as themeSwatchColors,rt as typeScaleGroupOfClassName,it as typeSizesStyle};
|
|
18
|
+
`}const s={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},J=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Q={selected:0,themes:J};function H(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Q}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function p(e,t,n){const r=h(e),o=h(t);if(r===null||o===null)return e;const c=(i,a)=>Math.max(0,Math.min(255,Math.round(i+(a-i)*n))).toString(16).padStart(2,"0");return`#${c(r.r,o.r)}${c(r.g,o.g)}${c(r.b,o.b)}`}const v={light:"#ffffff",dark:"#0a0a0a"},Ye=["light","dark"];function ze(e,t){const n=v[t],r=t==="light"?"#ffffff":"#000000";return{text:n,accent:n,background:e,surface:p(e,r,.1),line:p(e,r,.22),muted:p(n,e,.35),brandInk:t}}function u(e){const t=H(e);return t.themes[t.selected]}function l(e){return{text:e.text,accent:e.accent,background:e.background||s.background,surface:e.surface||s.surface,line:e.line||s.line,muted:e.muted||s.muted}}function Be(e){return{fill:l(e).background,accent:e.accent}}const ee=.4,te=4.5,ne=3,Xe={good:"Good","large-only":"Large text only",hard:"Hard to read"};function We(e){return e>=te?"good":e>=ne?"large-only":"hard"}const re=["#000000","#ffffff"];function d(e){return V(e,re)}const oe=[.25,.4,.55];function Ke(e){const t=h(e);return t===null?[]:oe.map(n=>"#"+[t.r,t.g,t.b].map(r=>Math.round(r*(1-n)).toString(16).padStart(2,"0")).join(""))}function je(e){const t=u(e),n={"--theme-fg":t.text},r=x(t.text);return(r===null||r>=ee)&&(n["--overlay-fg"]=t.text),n}const ce=82;function _(e){return`color-mix(in srgb, ${e} ${ce}%, #000)`}function Ve(e){const t=u(e);return{"--theme-accent":t.accent,"--theme-accent-2":_(t.accent),"--theme-accent-ink":d(t.accent)}}function E(e){const t=e?.button;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function Ze(e){const t=u(e),n=E(t),r=N(t);if(n===null&&r===null)return{};const o={};return n!==null&&(o["--theme-btn"]=n,o["--theme-btn-2"]=_(n)),o["--theme-btn-ink"]=r??d(n),o}function N(e){const t=e?.buttonInk;return t&&f(t)===t.toLowerCase()?t.toLowerCase():null}function ie(e,t){return N(e)??d(E(e)??t)}function qe(e){const t=u(e);return{fill:E(t)??t.accent.toLowerCase(),ink:ie(t,t.accent)}}function Je(e){const t={};return H(e).themes.forEach((n,r)=>{const o=l(n);t[`--theme-preset-${r}-accent`]=o.accent,t[`--theme-preset-${r}-accent-2`]=_(o.accent),t[`--theme-preset-${r}-accent-ink`]=d(o.accent),t[`--theme-preset-${r}-bg`]=o.background,t[`--theme-preset-${r}-fg`]=o.text,t[`--theme-preset-${r}-surface`]=o.surface,t[`--theme-preset-${r}-surface-2`]=`color-mix(in srgb, ${o.surface} 60%, ${o.line})`,t[`--theme-preset-${r}-line`]=o.line,t[`--theme-preset-${r}-muted`]=o.muted}),t}const S=e=>{const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},A=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function O([e,t,n]){const[r,o,c]=[S(e),S(t),S(n)],i=Math.cbrt(.4122214708*r+.5363325363*o+.0514459929*c),a=Math.cbrt(.2119034982*r+.6806995451*o+.1073969566*c),m=Math.cbrt(.0883024619*r+.2817188376*o+.6299787005*c);return[.2104542553*i+.793617785*a-.0040720468*m,1.9779984951*i-2.428592205*a+.4505937099*m,.0259040371*i+.7827717662*a-.808675766*m]}function se([e,t,n]){const r=(e+.3963377774*t+.2158037573*n)**3,o=(e-.1055613458*t-.0638541728*n)**3,c=(e-.0894841775*t-1.291485548*n)**3;return[A(4.0767416621*r-3.3077115913*o+.2309699292*c),A(-1.2684380046*r+2.6097574011*o-.3413193965*c),A(-.0041960863*r-.7034186147*o+1.707614701*c)]}const T=e=>{const t=h(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},L=(e,t,n)=>[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n)],k=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,P=e=>L(T(e.surface),T(e.line),.6);function Qe(e){return k(P(l(e)))}function $(e){const t=l(e);return k(se(L(O(P(t)),O(T(t.text)),.92)))}function ve(e){return{...e,background:$(e)}}function et(e,t){const n=e[t];if(!n)return-1;const r=$(n);return e.findIndex((o,c)=>c!==t&&f(o.background??"")===r)}const ae=1;function tt(e){const t=(e??[]).findIndex(n=>{const r=x(n.background??""),o=x(n.text??"");return r!==null&&o!==null&&r<o});return t>=0?t:ae}const nt=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function rt(e){const t=l(u(e)),n=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,r={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==s.surface||t.line!==s.line)&&(r["--theme-surface-2"]=n),r}const ue=["heading","body","label"],ot={heading:"Headings",body:"Body",label:"Labels"};function ct(e){if(!e)return null;for(const t of ue)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}const F=["headingLarge","headingMedium","headingSmall","accent","body","label"],it={headingLarge:"heading",headingMedium:"heading",headingSmall:"heading",accent:"heading",body:"body",label:"label"},st={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},le=8,he=200;function fe(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.round(e);return t>=le&&t<=he?t:null}function de(e){const t={};for(const n of F)t[n]=fe(e?.[n]);return t}function at(e){const t=de(e),n={};for(const r of F){const o=t[r];o!==null&&(n[`--size-${r}`]=`${o}px`)}return n}const ge=["square","small","large"],me="small";function xe(e){return ge.includes(e??"")?e:me}function ut(e){return G(_e[xe(e)])}const b=0,pe=40,_e={square:0,small:null,large:16},U={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function C(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;const t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(pe,Math.max(b,Math.round(t))):null}function G(e){const t=C(e);return t===null?{}:Object.fromEntries(Object.entries(U).map(([n,r])=>{const o=t*r/16;return[n,o===0?"0":`${o}rem`]}))}function lt(e){return(C(e)??b)*U["--sf-button-radius"]}function ht(e){return G(C(e)??b)}const Ee=["none","soft","lifted"],Se="soft",Y="none",Ae=["tight","normal","roomy"],Te="normal",be="normal",Ce=["none","lift","highlight"],Ie="lift",we="highlight",z="#141416";function B(e){return Ee.includes(e??"")?e:Se}function ye(e){return Ae.includes(e??"")?e:Te}function X(e){return Ce.includes(e??"")?e:Ie}function Me(e){return e&&f(e)===e.toLowerCase()?e.toLowerCase():z}function ft(e){const t=B(e);return t===Y?void 0:t}function dt(e){const t=ye(e);return t===be?void 0:t}function gt(e){const t=X(e);return t===we?void 0:t}function mt(e,t,n){const r=Me(t);return r===z?{}:B(e)!==Y||X(n)==="lift"?{"--sf-shadow-color":r}:{}}const Re=["normal","tight","compressed"],W="normal";function K(e){return Re.includes(e??"")?e:W}function xt(e){const t=K(e);return t===W?void 0:t}function pt(e){switch(K(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}const _t=["authored","sentence"],Et={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},I=100,w=900,De=24,He=200;function g(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function y(e){const t=g(e?.weight,I,w),n=e?.case==="sentence"?"sentence":"authored",r=c=>c==null?t:g(c,I,w),o=c=>c==="sentence"?"sentence":c==="authored"?"authored":n;return{case:n,weight:t,weightStrong:g(e?.weightStrong,I,w),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:g(e?.maxPx,De,He),weight2:r(e?.weight2),weight3:r(e?.weight3),case2:o(e?.case2),case3:o(e?.case3)}}function St(e){const t=y(e),n={};return t.case==="sentence"&&(n["--sf-heading-case"]="none"),t.weight!==null&&(n["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(n["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(n["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(n["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(n["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(n["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(n["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),n}function At(e){return y({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}function Tt(e){const t=y(e);return{heading_case:t.case,heading_weight:t.weight,heading_weight_strong:t.weightStrong,heading_max_px:t.maxPx,heading_2_weight:t.weight2,heading_3_weight:t.weight3,heading_2_case:t.case2,heading_3_case:t.case3}}const M="siteTheme";function Ne(e){const t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(r=>!!r&&typeof r=="object"))return{};const n=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[M]:{selected:n,themes:t.themes}}}function bt(e){return Ne(e?.[M])[M]}export{oe as ACCENT_DARKEN_STEPS,Ye as BRAND_INKS,Ae as CARD_GAPS,Ee as CARD_SHADOWS,pe as CORNER_RADIUS_MAX,b as CORNER_RADIUS_MIN,ge as CORNER_STYLES,_e as CORNER_STYLE_TO_PX,Te as DEFAULT_CARD_GAP,Se as DEFAULT_CARD_SHADOW,me as DEFAULT_CORNER_STYLE,W as DEFAULT_HEADING_COMPRESSION,Et as DEFAULT_HEADING_TYPOGRAPHY,Ie as DEFAULT_HOVER_EFFECT,z as DEFAULT_SHADOW_COLOR,st as DEFAULT_SIZES,s as DEFAULT_SURFACES,Fe as DEFAULT_SWITCH_SHOWN,J as DEFAULT_THEMES,$e as DEFAULT_THEME_MODE,Q as DEFAULT_THEME_VALUE,Xe as GRADE_LABEL,_t as HEADING_CASES,Re as HEADING_COMPRESSIONS,He as HEADING_MAX_PX_MAX,De as HEADING_MAX_PX_MIN,w as HEADING_WEIGHT_MAX,I as HEADING_WEIGHT_MIN,Ce as HOVER_EFFECTS,be as IDENTITY_CARD_GAP,Y as IDENTITY_CARD_SHADOW,we as IDENTITY_HOVER_EFFECT,te as READABILITY_AA,ne as READABILITY_AA_LARGE,it as SCALE_OF_STEP,M as SITE_THEME_KEY,F as SIZE_STEPS,he as TEXT_SIZE_MAX,le as TEXT_SIZE_MIN,D as THEME_DAY_END_HOUR,R as THEME_DAY_START_HOUR,Le as THEME_MODE_KEY,Z as THEME_STORAGE_KEY,nt as THEME_SURFACE_KEYS,Pe as THEME_SWITCH_HIDE,ke as THEME_SWITCH_KEY,ue as TYPE_GROUPS,ot as TYPE_GROUP_LABELS,d as accentInk,ve as bandPresetFor,et as bandPresetIndex,ze as brandTheme,Ge as buildThemeBootScript,dt as cardGapAttr,ft as cardShadowAttr,pt as compressionMetrics,j as contrastRatio,G as cornerRadiusTokens,ut as cornerStyleTokens,tt as darkPresetIndex,Ke as darkerAccents,We as gradeContrast,xt as headingCompressionAttr,At as headingTypographyFromRow,St as headingTypographyStyle,Tt as headingTypographyToRow,gt as hoverEffectAttr,q as isDayHour,ye as normalizeCardGap,B as normalizeCardShadow,C as normalizeCornerRadius,xe as normalizeCornerStyle,K as normalizeHeadingCompression,y as normalizeHeadingTypography,X as normalizeHoverEffect,Me as normalizeShadowColor,fe as normalizeSize,de as normalizeSizes,H as normalizeTheme,l as normalizeThemeColors,Ue as resolveTheme,ie as resolvedButtonInk,$ as sectionBandTone,u as selectedThemeColors,mt as shadowColorTokens,qe as siteButtonPaint,lt as siteButtonRadiusPx,ht as siteCornerRadiusTokens,Ne as siteThemeMetadata,bt as siteThemeOf,Qe as surfaceTwoTone,Ve as themeAccentStyle,E as themeButtonColour,N as themeButtonInk,Ze as themeButtonStyle,je as themeColorStyle,Je as themePresetAccentVars,rt as themeSurfaceStyle,Be as themeSwatchColors,ct as typeScaleGroupOfClassName,at as typeSizesStyle};
|
|
@@ -11,6 +11,11 @@ export type CardRow = {
|
|
|
11
11
|
nested?: boolean;
|
|
12
12
|
state?: CardRowState;
|
|
13
13
|
};
|
|
14
|
+
export declare function RowEmptyGate({ props, editing, children }: {
|
|
15
|
+
props: Record<string, unknown>;
|
|
16
|
+
editing: boolean;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}): import("react").JSX.Element | null;
|
|
14
19
|
export declare const CardRowContext: import("react").Context<CardRow | null>;
|
|
15
20
|
export declare function useCardRow(): CardRow | null;
|
|
16
21
|
export declare function CardRowDrawn({ type, props, children, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Fragment as
|
|
1
|
+
"use client";import{Fragment as i,jsx as t,jsxs as E}from"react/jsx-runtime";import{createContext as x,useContext as d,useId as y}from"react";import{REPEAT_ATTRIBUTE as P,REPEAT_INDEX_ATTRIBUTE as b}from"efficient-easel/draw";import{BOX_LINKED_CLASS as g}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as j,rowFilledProps as v,templateBoxIsEmpty as B}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as O,CARD_ACTION_CLASS as k,CARD_STATE_LINE_CLASS as F,CARD_STATE_UNDER_LINE_CLASS as U,cardStateAttrs as X,cardStateValue as $}from"../../format/lib/content/card-state.js";import{usePageRecordRow as G}from"./CurrentRecord.js";function W({props:o,editing:n,children:r}){const e=d(l);return!n&&B(o,e?.row)?null:t(i,{children:r})}const l=x(null);function Y(){return d(l)}function Z({type:o,props:n,children:r}){const e=d(l),s=G(),u=e?.row??s;return t(i,{children:r(v(o,n,u,e?.ownerType),e,u)})}function K({attrs:o,selected:n,press:r,children:e}){const s=y();return E("div",{...o,id:s,className:g,children:[t("button",{type:"button",[O]:"",className:k,"aria-pressed":n,"aria-labelledby":s,onClick:r}),e]})}function tt({ownerId:o,ownerType:n,Template:r,rows:e,items:s,states:u,stateLine:f,actions:S,fallback:w,wrapCopy:m,children:h}){const I=d(l);if(!r||(r.blockCount??0)<=0)return t(i,{children:w});const N=I!==null,D=e.map((L,c)=>{const a=u?.[c],p={row:L,index:c,ownerType:n,item:s?.[c],nested:N,...a?{state:a}:null},A=$(a)?E(i,{children:[t(r,{}),t("span",{"aria-hidden":"true",className:f==="under"?U:F})]}):t(r,{}),_={[P]:`${o}:${j}`,[b]:c},C=S?.[c],R=X(a),T=C?t(K,{attrs:{..._,...R},selected:a?.selected===!0,press:C.press,children:A}):t("div",{..._,...R,children:A});return t(l.Provider,{value:p,children:m?m(T,p):T},c)});return t(i,{children:h(D)})}export{l as CardRowContext,Z as CardRowDrawn,tt as CardTemplateRows,W as RowEmptyGate,Y as useCardRow};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type ClientRows } from "../../format/lib/content/block-sources.js";
|
|
3
|
+
export declare function clientRowsKey(source: string): string;
|
|
4
|
+
export declare function ClientRowsReader({ source, props, children, }: {
|
|
5
|
+
source: string;
|
|
6
|
+
props: Readonly<Record<string, unknown>>;
|
|
7
|
+
children: (rows: ClientRows | null) => ReactNode;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as t,jsx as n}from"react/jsx-runtime";import{blockSourceSpec as c,blockSourcesRevision as u}from"../../format/lib/content/block-sources.js";function m(e){return`${e}:${u()}`}function i({use:e,props:r,children:o}){return n(t,{children:o(e(r))})}function R({source:e,props:r,children:o}){const s=c(e)?.useRows;return s?n(i,{use:s,props:r,children:o}):n(t,{children:o(null)})}export{R as ClientRowsReader,m as clientRowsKey};
|
|
@@ -62,6 +62,7 @@ interface FlexProps {
|
|
|
62
62
|
fillColor?: unknown;
|
|
63
63
|
fillColorTablet?: unknown;
|
|
64
64
|
fillColorPhone?: unknown;
|
|
65
|
+
swatch?: unknown;
|
|
65
66
|
line?: unknown;
|
|
66
67
|
upcoming?: unknown;
|
|
67
68
|
link?: unknown;
|
|
@@ -81,5 +82,5 @@ interface FlexProps {
|
|
|
81
82
|
rowTitle?: SlotComponent;
|
|
82
83
|
startsOpen?: unknown;
|
|
83
84
|
}
|
|
84
|
-
export default function Flex({ direction, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share, sharePhone, shareTablet, wrapPhone, orderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, sharedRows, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
85
|
+
export default function Flex({ direction: storedDirection, label, tabShape, gap, gapPhone, gapTablet, justify, align, wrap, share: storedShare, sharePhone, shareTablet, wrapPhone, orderPhone: storedOrderPhone, phoneRow, columns, columnsTablet, separator, stackBelow, blockSpacing, bgImage, bgImagePhone, pictureHover, darken, darkenStyle, darkenTablet, darkenPhone, darkenStyleTablet, darkenStylePhone, placement, padV2, border, borderTablet, borderPhone, pad, contained, fillHeight, shadow, shadowTablet, shadowPhone, justifyTablet, justifyPhone, alignTablet, alignPhone, wrapTablet, blockSpacingTablet, blockSpacingPhone, loop, scrollDirection, loopSeconds, loopDelay, editing, fillColor, fillColorTablet, fillColorPhone, swatch, line, upcoming, link, boxShape, boxShapePhone, boxShapeTablet, jumpHighlight, anchor, sharedSides, sharedRows, boxId, mirrorCards, content: Content, rowTitle: RowTitle, startsOpen, }: FlexProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
85
86
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as Y,jsx as s,jsxs as So}from"react/jsx-runtime";import{useId as ge}from"react";import De from"./BoxTabs.js";import{BoxTabPaneContext as $o,useBoxPaneKind as Ie,useIsTabPane as Ve}from"./BoxTabPaneContext.js";import We from"./BoxAccordionRow.js";import{boxPhoneCell as Me,boxPhoneOrder as Ge}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as _s,InBoxContext as Rs,useCellOfStretchedRow as Xe,useFillsCell as je}from"./InBoxContext.js";import He,{InsideSiteColumn as Ls,useInsideSiteGutter as Ue,useSectionRoot as Ke}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Je}from"./BoxSurfaceContext.js";import ze from"./PictureWash.js";import{BoxCellWidthContext as Ye}from"./BoxCellWidthContext.js";import{useInSiteHeader as qe}from"./PhoneMenuTools.js";import{useCardRow as Qe}from"./CardRowContext.js";import{framesItsCards as Ze}from"../../format/lib/content/card-place.js";import{MirrorContext as ot,useMirroredCopy as st,useUnderCardBox as et}from"./MirrorContext.js";import{isMirroredCopy as tt,mirrorCardsActs as ys,mirrorCardsOf as nt,mirroredBoxClass as rt,MIRROR_ROW_CLASS as lt,ownsCard as at}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as ho,FRAME_GUTTER as wo}from"./BlockFrame.js";import{containerGapProps as ct}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as it,boxAlignViewClasses as mt,boxBlockSpacingClass as ut,boxBlockSpacingViewClasses as dt,boxJustifyViewClasses as ft,boxWrapTabletClass as Ct,boxFitContentClass as bt,boxRowColumnsClass as pt,boxRowTabletColumnsClass as xt,boxRowTabletShareClass as St,boxPhoneCellsShareLine as $t,boxPhoneRowClasses as X,boxPhoneRowFits as ht,boxShareClasses as E,boxShareVars as wt,boxWrapClass as Pt,BOX_GAP_ONLY_CLASS as _t}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Rt,boxSeparatorSeamClass as Lt,boxSeparatorStyle as yt,isStripBox as At}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as kt,DEFAULT_LOOP_DIRECTION as Nt,DEFAULT_LOOP_SECONDS as Ot,isVerticalLoop as vt}from"../../format/lib/animation/index.js";import{LoopTrack as Bt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as p,BOX_OWNS_SIDES_CLASS as Et,boxDarkenStyle as Ft,boxFillOf as Tt,boxFillViews as gt,boxPlacementClasses as Dt,boxWashViews as It,CARD_SHADOW_CLASS as Vt,isBackgroundBox as As}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as Wt,boxShadowOnAnyView as Mt,boxShadowViewAttrs as Gt}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Xt,drawsSiteGutter as jt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Ht,boxShapeClasses as Ut}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as Kt,BOX_LINK_ATTR as ks,BOX_LINK_CLASS as Ns,BOX_LINKED_CLASS as Jt,boxJumpBlocksClass as zt,boxJumpCss as Yt,boxJumpSlug as qt,boxLinkOf as Qt}from"../../format/lib/content/box-link.js";import{SiteLink as Zt}from"../lib/site-runtime.js";import{sectionBorderStyle as Os}from"../../format/lib/content/borders.js";import{finiteNumber as x}from"../../format/lib/finite-number.js";import{padDefaultIn as S,sectionPadAttrs as on}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as q}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as sn}from"../../format/lib/content/ink.js";import{sizedBackground as Po}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as en,resolveImageTreatment as tn}from"../../format/lib/content/image-treatment.js";import{BoxRail as nn,BoxRailStop as rn,RAIL_STOPS_CLASS as ln,useTimelineRail as an}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as cn,sharedColumnsClasses as mn,sharedColumnsCss as un,sharedRowsClasses as dn,sharedRowsCss as fn}from"../lib/content/box-shared-columns.js";import Cn from"./PhotoHoverSheet.js";import{stackGutterClass as bn,stackLineCss as pn,stackOuterClass as xn,stackRowClass as Sn,storedStackLine as $n}from"../lib/content/box-stack-line.js";const _o={"--sf-site-gutter":"0px"},hn={overflowX:"clip",overflowY:"visible"},wn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},Pn={desktop:!1,phone:!1},vs="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",Ro=o=>o==null||o==="",Lo=o=>!Ro(o)&&Number(o)===0;function _n({children:o}){return s(Y,{children:o(ge())})}function Rn({direction:o,label:Bs,tabShape:Es,gap:yo,gapPhone:Fs,gapTablet:Q,justify:F,align:$,wrap:j,share:a,sharePhone:H,shareTablet:T,wrapPhone:Ts,orderPhone:gs,phoneRow:g,columns:L,columnsTablet:y,separator:d,stackBelow:Ds,blockSpacing:Ao,bgImage:A,bgImagePhone:ko,pictureHover:Is,darken:No,darkenStyle:Oo,darkenTablet:Vs,darkenPhone:Ws,darkenStyleTablet:Ms,darkenStylePhone:Gs,placement:Xs,padV2:vo=!1,border:Bo,borderTablet:Eo,borderPhone:Fo,pad:t={},contained:Z=!0,fillHeight:h=!1,shadow:oo,shadowTablet:To,shadowPhone:go,justifyTablet:js,justifyPhone:Hs,alignTablet:Us,alignPhone:Ks,wrapTablet:Js,blockSpacingTablet:zs,blockSpacingPhone:Ys,loop:w,scrollDirection:so=Nt,loopSeconds:qs=Ot,loopDelay:Qs=kt,editing:k=!1,fillColor:Do,fillColorTablet:Zs,fillColorPhone:oe,line:P,upcoming:se,link:ee,boxShape:Io,boxShapePhone:te,boxShapeTablet:ne,jumpHighlight:re,anchor:le,sharedSides:c=Pn,sharedRows:eo=!1,boxId:Vo,mirrorCards:Wo,content:i,rowTitle:to,startsOpen:ae}){const N=k?"":Qt(ee),f=h?"":Ut(Io,te,ne),ce=!h&&Ht(Io)!=="",_=qt(re,le),U=Tt(Do),O=gt(Do,Zs,oe),Mo=U||O.className?{...U?{backgroundColor:U}:{},...O.style}:void 0,Go=an(),K=P===!0&&o!=="tabs"&&o!=="accordion",n=As(A),J=qe(),ie=Ke(),me=Ve(),Xo=Ie(),l=o==="accordion",no=je(),ue=Xe(),v=At(o,d),r=w==="scroll"&&o!=="tabs"&&!l,m=Qe(),de=st(),fe=et(),D=at({inCopy:m!==null,nestedCopy:m?.nested===!0,underBox:fe}),ro=D&&Ze(m?.ownerType),jo=ys({direction:o,separator:d,loop:w,line:P,bgImage:A,columns:L,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&tt(Wo,m?.index),Ho=n||D?"":rt(de,o,r?void 0:F,$),Ce=ys({direction:o,separator:d,loop:w,line:P,bgImage:A,columns:L,columnsTablet:y,share:a,wrap:j},D,c.desktop)&&nt(Wo)!==null,B=pt({direction:o,separator:d,loop:w,line:P,columns:L}),C=xt({direction:o,separator:d,loop:w,line:P,columnsTablet:y}),I=St({direction:o,separator:d,loop:w,line:P,columns:L,columnsTablet:y,share:a,shareTablet:T}),u=o==="row"&&!n&&!v&&!r&&!K&&C===""&&I===""?$n(Ds):void 0,be=Ue(),z=mn(c,i.blockCount??0,u),pe=(z&&(!m||m.index===0)?un(c,i.blockCount??0,u):"")+(eo&&(!m||m.index===0)?fn(eo,i.blockCount??0):""),Uo=dn(eo,i.blockCount??0),Ko=C!==""?Number(y)>=2:I===""||E(T)!=="",lo=C!==""||I!=="",xe=lo&&!(C!==""&&Number(y)<2),Jo=o==="row"&&!v&&!r&&P!==!0,ao=Jo&&!c.phone&&!c.desktop?Me(Ge(gs,i.blockIds??[]),{tabletKeepsRow:xe,editing:k}):void 0,zo=ao!==void 0&&!k,Se=B!==""?Number(L)>=2:E(a)!=="",Yo=!n&&!l&&!Ce&&!c.desktop&&!c.phone,qo=Yo&&!r?ft(F,js,Hs):"",$e=Yo&&o==="row"?mt($,Us,Ks):"",he=!r&&!l&&B===""&&C===""&&!c.desktop?Ct(j,Js):"",Qo=[l?"":E(a),o==="row"?bt(a):"",B,C,I,ut(l?"gap":Ao),Rt(o,d),l?"border-t border-line":"",qo,$e,he,l?"":dt(Ao,zs,Ys)].filter(Boolean).join(" "),we=Qo?` ${Qo}`:"",Zo=["flex",o==="row"?v||r?"flex-row":`flex-row ${X(g,H,Ts)}`:"flex-col",Pt(r||l?!1:j),n?Dt(Xs??"center",o):it(r||l?void 0:F,l?void 0:$)+(Ho?` ${Ho}`:"")].join(" ")+we,V=h||n||f||no?` ${q}`:"",co=ce?` ${f}`:f?`${V} ${f}`:V,os=ue&&o==="column"&&!n&&!r&&E(a)===""&&(typeof F=="string"&&F!=="start"||qo!==""),ss=V||(os?` ${q}`:""),io=N?` ${Jt}`:"",mo=n||J||vo?"":" py-6",Pe=u===void 0?"":` ${Sn(u)}`,es=u===void 0?"":` ${bn(u)}`,uo=u===void 0?"":` ${xn(u)}`,_e=`${ho}${mo} ${wo}${co}${io}${es}${uo}`,Re=J?`${co}${io}${uo}`.trim():`w-full${mo}${co}${io}${uo}`,W=ct("Flex",yo,o==="row"?"inline":"block",Fs,v||r?void 0:Q),ts=wt(a,T,o==="row"?i.blockCount??0:0),ns=v?{...W.style,...yt(o,d)}:W.style,Le=ts?{...ns,...ts}:ns,rs=(e="")=>s(i,{className:`${Zo}${jo?` ${lt}`:""}${W.className}${ss}${Pe}${e?` ${e}`:""}${K?` ${ln}`:""}${_?` ${zt(_)}`:""}${z}${Uo}`,style:Le,minEmptyHeight:120,...ao?{cell:ao}:null}),ls=vt(so)?"":Lt(o,d),as=r?s(Bt,{direction:so,seconds:qs,delay:Qs,editing:k,copy:e=>rs(e&&ls?`${e} ${ls}`:e)}):rs(),fo=o==="tabs"?s(De,{className:`${Zo}${W.className}${no&&!h&&!n&&!f?"":V}`,style:W.style,shape:Es,children:as}):as,cs=l?s($o.Provider,{value:"accordion",children:fo}):Xo?s($o.Provider,{value:!1,children:fo}):fo,is=o==="row"&&!n&&($===void 0||$==="stretch"),ye={stretchedRow:is,fillingColumn:o==="column"&&(no||os),columnsRow:B!==""||C!==""||z!==""||Uo!==""||o==="row"&&(Array.isArray(a)||Array.isArray(T))||zo,...zo?{phoneCells:!0}:null,...is&&Jo&&(i.blockCount??0)>=2&&Se?{picturesFillRow:!0}:null,...lo?{fillFrom:Ko?"tablet":"desktop"}:null,...$t(g,H)&&(!lo||Ko)?{phoneRowFills:!0}:null,...Vo?{id:Vo}:null},ms=s(Rs.Provider,{value:ye,children:s(_s.Provider,{value:!1,children:D?s(ot.Provider,{value:jo,children:cs}):cs})}),Ae=to?.blockCount??0,us=Xo==="accordion"&&!!to&&(k||Ae>0)?s(We,{startsOpen:ae===!0,editing:k,title:s(Rs.Provider,{value:wn,children:s(_s.Provider,{value:!1,children:s($o.Provider,{value:!1,children:s(to,{className:`min-w-0 flex-1 ${_t}`,minEmptyHeight:24})})})}),children:ms}):ms,Co=K?s(nn,{row:o==="row",stops:i.blockCount??0,children:us}):us,ke=Bs?.trim()||(me?"":void 0),Ne={values:t,frame:mo?24:0},Oe=e=>Go?s(rn,{on:Go,future:se===!0,children:e}):e,ve=e=>N.startsWith("/")?s(Zt,{href:N,className:Ns,"aria-labelledby":e,[ks]:""}):s("a",{href:N,className:Ns,"aria-labelledby":e,[ks]:""}),ds=(_?Yt(_):"")+pe+(u===void 0||m&&m.index!==0?"":pn(u)),fs=ds?s("style",{dangerouslySetInnerHTML:{__html:ds}}):null,M=Xt({loop:w,direction:o,scrollDirection:so,bgImage:A}),Be=c.desktop&&z!==""&&!U&&!O.className&&!Os(Bo,Fo,Eo)&&!Mt(oo,To,go)&&!N&&!f&&!h&&!_&&!jt(Z&&!M,be)&&Lo(yo)&&(Ro(Q)||Lo(Q))&&vo&&Object.values(t).every(e=>Ro(e)||Lo(e)),Ee=e=>({...Be?{[cn]:""}:null,...n?null:{...Wt(oo),...Gt(oo,To,go)},..._?{[Kt]:_}:null,...e?{id:e}:null}),Cs=B!==""?Number(L):0,Fe=X(g,H)===X(void 0),Te=(o==="column"||o==="row"&&!v&&!r&&(Cs===1&&Fe||Cs===0&&i.blockCount===1))&&!n&&!K&&!J,bs=n&&ie&&!J,ps=(e,b)=>Oe(s(He,{contained:Z&&!M,style:M?_o:void 0,framedClass:_e,fillClass:Re,columnClass:`${ho} ${wo}${ss}${es}`,tabLabel:ke,pad:n?void 0:Ne,border:Os(Bo,Fo,Eo),outerAttrs:Ee(b),box:!0,edge:Te,outerStyle:n?void 0:Mo,outerClass:n?void 0:O.className||void 0,bleed:bs,children:fs||b?So(Y,{children:[fs,b?ve(b):null,M?s(Ls,{children:e}):e]}):M?s(Ls,{children:e}):e})),xs=e=>N?s(_n,{children:b=>ps(e,b)}):ps(e);if(!n){const e=$===void 0||$==="stretch",b=(E(a)!==""||B!==""||C!=="")&&!ht(g,H)&&!(I!==""&&E(T)==="")&&(e||X(g)!==X(void 0));return xs((o==="row"?b:o==="column"&&e)?s(Ye.Provider,{value:!0,children:Co}):Co)}const G=Ft(No,Oo),bo=It({darken:No,darkenStyle:Oo,darkenTablet:Vs,darkenStyleTablet:Ms,darkenPhone:Ws,darkenStylePhone:Gs}),Ss=[ro?"rounded-[inherit]":"",bo.className].filter(Boolean).join(" "),po=As(ko),$s=po?{"--sf-box-bg":Po(A??""),"--sf-box-bg-p":Po(ko??"")}:{backgroundImage:Po(A??""),backgroundSize:"cover",backgroundPosition:"center"},hs=tn(void 0,void 0,Is),R=hs.className?hs:null,xo=on({...t,top:x(t.top)??S(p.desktop,t.unit,"desktop"),bottom:x(t.bottom)??S(p.desktop,t.unit,"desktop"),topPhone:x(t.topPhone)??S(p.phone,t.unitPhone,"mobile"),bottomPhone:x(t.bottomPhone)??S(p.phone,t.unitPhone,"mobile"),left:x(t.left)??S(p.side,t.unit,"desktop"),right:x(t.right)??S(p.side,t.unit,"desktop"),leftPhone:x(t.leftPhone)??S(p.sidePhone,t.unitPhone,"mobile"),rightPhone:x(t.rightPhone)??S(p.sidePhone,t.unitPhone,"mobile")}),ws=s("div",{className:`relative z-[1] ${Et} ${xo?.className??""}${h||f?` ${q}`:""}`.trimEnd(),style:G?{...xo?.style,..._o,...sn}:{...xo?.style,..._o},children:Co}),Ps=bs&&Z?s("div",{className:`${ho} ${wo}${h||f?` ${q}`:""}`,children:ws}):ws;return xs(s(Y,{children:So("div",{className:`relative isolate overflow-hidden ${Vt}${V}${po&&!R?` ${vs}`:""}${O.className?` ${O.className}`:""}`,style:{...ro?hn:{},...Mo,...R?{}:$s},...R?{[en]:""}:{},children:[R&&So(Y,{children:[s(Cn,{sheet:R.sheet}),s("div",{"aria-hidden":!0,className:`absolute inset-0${ro?" rounded-[inherit]":""}${po?` ${vs}`:""} ${R.className}`,style:{...$s,...R.style??{}}})]}),s(ze,{wash:G&&bo.className?{...G,...bo.style}:G,...Ss?{className:Ss}:{}}),G?s(Je,{children:Ps}):Ps]})}))}export{Rn as default};
|
|
1
|
+
import{Fragment as so,jsx as e,jsxs as vo}from"react/jsx-runtime";import{useId as Zs}from"react";import ot from"./BoxTabs.js";import{BoxTabPaneContext as Ao,useBoxPaneKind as et,useIsTabPane as st}from"./BoxTabPaneContext.js";import tt from"./BoxAccordionRow.js";import{boxPhoneCell as nt,boxPhoneOrder as rt}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as Fe,InBoxContext as Te,useCellOfStretchedRow as lt,useFillsCell as it}from"./InBoxContext.js";import ct,{InsideSiteColumn as De,useInsideSiteGutter as at,useSectionRoot as dt}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as ut}from"./BoxSurfaceContext.js";import mt from"./PictureWash.js";import{BoxCellWidthContext as ft}from"./BoxCellWidthContext.js";import{useInSiteHeader as Ct}from"./PhoneMenuTools.js";import{useCardRow as ht}from"./CardRowContext.js";import{framesItsCards as bt}from"../../format/lib/content/card-place.js";import{HandedMirrorContext as xt,MirrorContext as pt,RowHandContext as Ie,boxPlace as wt,useHandedMirrorAbove as St,useHandedRows as $t,useMirroredCopy as Pt,useUnderCardBox as Rt}from"./MirrorContext.js";import{boxChildrenHand as _t,isMirroredCopy as vt,mirrorCardsActs as ge,mirrorCardsOf as At,mirroredBoxClass as Lt,MIRROR_ROW_CLASS as yt,ownsCard as kt}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as Lo,FRAME_GUTTER as yo}from"./BlockFrame.js";import{containerGapProps as Ot}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as Nt,boxAlignViewClasses as Bt,boxBlockSpacingClass as Et,boxBlockSpacingViewClasses as Ft,boxJustifyViewClasses as Tt,boxWrapTabletClass as Dt,boxFitContentClass as It,boxRowColumnsClass as gt,boxRowTabletColumnsClass as Mt,boxRowTabletShareClass as Vt,boxPhoneCellsShareLine as Ht,boxPhoneRowClasses as U,boxPhoneRowFits as Wt,boxShareClasses as I,boxShareVars as Gt,boxWrapClass as Xt,BOX_GAP_ONLY_CLASS as jt}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as Ut,boxSeparatorSeamClass as Kt,boxSeparatorStyle as Jt,isStripBox as zt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as Yt,DEFAULT_LOOP_DIRECTION as qt,DEFAULT_LOOP_SECONDS as Qt,isVerticalLoop as Zt}from"../../format/lib/animation/index.js";import{LoopTrack as on}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as S,BOX_OWNS_SIDES_CLASS as en,boxDarkenStyle as sn,boxFillOf as tn,boxFillViews as nn,boxPlacementClasses as rn,boxSwatchFill as ln,boxWashViews as cn,CARD_SHADOW_CLASS as an,isBackgroundBox as Me}from"../../format/lib/content/box-background.js";import{boxShadowAttrs as dn,boxShadowOnAnyView as un,boxShadowViewAttrs as mn}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as fn,drawsSiteGutter as Cn}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as hn,boxShapeClasses as bn}from"../../format/lib/content/box-shape.js";import{BOX_JUMP_ATTR as xn,BOX_LINK_ATTR as Ve,BOX_LINK_CLASS as He,BOX_LINKED_CLASS as pn,boxJumpBlocksClass as wn,boxJumpCss as Sn,boxJumpSlug as $n,boxLinkOf as Pn}from"../../format/lib/content/box-link.js";import{SiteLink as Rn}from"../lib/site-runtime.js";import{sectionBorderStyle as We}from"../../format/lib/content/borders.js";import{finiteNumber as $}from"../../format/lib/finite-number.js";import{padDefaultIn as P,sectionPadAttrs as _n}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as to}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as vn}from"../../format/lib/content/ink.js";import{sizedBackground as ko}from"../../format/lib/sized-image.js";import{PHOTO_HOST_ATTR as An,resolveImageTreatment as Ln}from"../../format/lib/content/image-treatment.js";import{BoxRail as yn,BoxRailStop as kn,RAIL_STOPS_CLASS as On,useTimelineRail as Nn}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as Bn,sharedColumnsClasses as En,sharedColumnsCss as Fn,sharedRowsClasses as Tn,sharedRowsCss as Dn}from"../lib/content/box-shared-columns.js";import In from"./PhotoHoverSheet.js";import{stackGutterClass as gn,stackLineCss as Mn,stackOuterClass as Vn,stackRowClass as Hn,storedStackLine as Wn}from"../lib/content/box-stack-line.js";const Oo={"--sf-site-gutter":"0px"},Gn={overflowX:"clip",overflowY:"visible"},Xn={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},jn={desktop:!1,phone:!1},Ge="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-tablet:bg-[image:var(--sf-box-bg-p)]",No=a=>a==null||a==="",Bo=a=>!No(a)&&Number(a)===0;function Un({children:a}){return e(so,{children:a(Zs())})}function Kn({direction:a,label:Xe,tabShape:je,gap:Eo,gapPhone:Ue,gapTablet:no,justify:g,align:R,wrap:K,share:Ke,sharePhone:J,shareTablet:M,wrapPhone:Je,orderPhone:ze,phoneRow:V,columns:_,columnsTablet:O,separator:f,stackBelow:Ye,blockSpacing:Fo,bgImage:v,bgImagePhone:To,pictureHover:qe,darken:Do,darkenStyle:Io,darkenTablet:Qe,darkenPhone:Ze,darkenStyleTablet:os,darkenStylePhone:es,placement:ss,padV2:go=!1,border:Mo,borderTablet:Vo,borderPhone:Ho,pad:t={},contained:ro=!0,fillHeight:A=!1,shadow:lo,shadowTablet:Wo,shadowPhone:Go,justifyTablet:ts,justifyPhone:ns,alignTablet:rs,alignPhone:ls,wrapTablet:is,blockSpacingTablet:cs,blockSpacingPhone:as,loop:h,scrollDirection:io=qt,loopSeconds:ds=Qt,loopDelay:us=Yt,editing:N=!1,fillColor:Xo,fillColorTablet:ms,fillColorPhone:fs,swatch:Cs,line:L,upcoming:hs,link:bs,boxShape:jo,boxShapePhone:xs,boxShapeTablet:ps,jumpHighlight:ws,anchor:Ss,sharedSides:d=jn,sharedRows:$s=!1,boxId:B,mirrorCards:Uo,content:l,rowTitle:co,startsOpen:Ps}){const r=ht(),Rs=St(),Ko=Rt()&&!(Rs&&r!==null),b=$t(),z=kt({inCopy:r!==null,nestedCopy:r?.nested===!0,underBox:Ko}),Jo=r===null&&!Ko&&b?.ids&&B?b.ids.indexOf(B):-1,Y=Jo>=0&&b&&B?wt(b,B,Jo):-1,C=Y>=0?b?.hand??null:z&&b?.copies===!0?b.hand:null,o=C?.row?"row":a,u=C?.row?C.row.share:Ke,_s=C?.row?C.row.phoneReverse?[...l.blockIds??[]].reverse():void 0:ze,ao=$s&&!C?.row,E=N?"":Pn(bs),x=A?"":bn(jo,xs,ps),vs=!A&&hn(jo)!=="",y=$n(ws,Ss),zo=ln({swatch:Cs},r?.row),q=zo??tn(Xo),F=zo?{className:"",style:{}}:nn(Xo,ms,fs),Yo=q||F.className?{...q?{backgroundColor:q}:{},...F.style}:void 0,qo=Nn(),Q=L===!0&&o!=="tabs"&&o!=="accordion",n=Me(v),Z=Ct(),As=dt(),Ls=st(),Qo=et(),c=o==="accordion",uo=it(),ys=lt(),T=zt(o,f),i=h==="scroll"&&o!=="tabs"&&!c,ks=Pt(),oo=z||Y>=0&&C!==null,Zo=C?C.mirror:Uo,Os=Y>=0?Y:r?.index,mo=z&&bt(r?.ownerType),oe=ge({direction:o,separator:f,loop:h,line:L,bgImage:v,columns:_,columnsTablet:O,share:u,wrap:K},oo,d.desktop)&&vt(Zo,Os),ee=n||oo?"":Lt(ks,o,i?void 0:g,R),Ns=ge({direction:o,separator:f,loop:h,line:L,bgImage:v,columns:_,columnsTablet:O,share:u,wrap:K},oo,d.desktop)&&At(Zo)!==null,D=gt({direction:o,separator:f,loop:h,line:L,columns:_}),p=Mt({direction:o,separator:f,loop:h,line:L,columnsTablet:O}),H=Vt({direction:o,separator:f,loop:h,line:L,columns:_,columnsTablet:O,share:u,shareTablet:M}),m=o==="row"&&!n&&!T&&!i&&!Q&&p===""&&H===""?Wn(Ye):void 0,Bs=at(),eo=En(d,l.blockCount??0,m),Es=(eo&&(!r||r.index===0)?Fn(d,l.blockCount??0,m):"")+(ao&&(!r||r.index===0)?Dn(ao,l.blockCount??0):""),se=Tn(ao,l.blockCount??0),te=p!==""?Number(O)>=2:H===""||I(M)!=="",fo=p!==""||H!=="",Fs=fo&&!(p!==""&&Number(O)<2),ne=o==="row"&&!T&&!i&&L!==!0,Co=ne&&!d.phone&&!d.desktop?nt(rt(_s,l.blockIds??[]),{tabletKeepsRow:Fs,editing:N}):void 0,re=Co!==void 0&&!N,Ts=D!==""?Number(_)>=2:I(u)!=="",le=!n&&!c&&!Ns&&!d.desktop&&!d.phone,ie=le&&!i?Tt(g,ts,ns):"",Ds=le&&o==="row"?Bt(R,rs,ls):"",Is=!i&&!c&&D===""&&p===""&&!d.desktop?Dt(K,is):"",ce=[c?"":I(u),o==="row"?It(u):"",D,p,H,Et(c?"gap":Fo),Ut(o,f),c?"border-t border-line":"",ie,Ds,Is,c?"":Ft(Fo,cs,as)].filter(Boolean).join(" "),gs=ce?` ${ce}`:"",ae=["flex",o==="row"?T||i?"flex-row":`flex-row ${U(V,J,Je)}`:"flex-col",Xt(i||c?!1:K),n?rn(ss??"center",o):Nt(i||c?void 0:g,c?void 0:R)+(ee?` ${ee}`:"")].join(" ")+gs,W=A||n||x||uo?` ${to}`:"",ho=vs?` ${x}`:x?`${W} ${x}`:W,de=ys&&o==="column"&&!n&&!i&&I(u)===""&&(typeof g=="string"&&g!=="start"||ie!==""),ue=W||(de?` ${to}`:""),bo=E?` ${pn}`:"",xo=n||Z||go?"":" py-6",Ms=m===void 0?"":` ${Hn(m)}`,me=m===void 0?"":` ${gn(m)}`,po=m===void 0?"":` ${Vn(m)}`,Vs=`${Lo}${xo} ${yo}${ho}${bo}${me}${po}`,Hs=Z?`${ho}${bo}${po}`.trim():`w-full${xo}${ho}${bo}${po}`,G=Ot("Flex",Eo,o==="row"?"inline":"block",Ue,T||i?void 0:no),fe=Gt(u,M,o==="row"?l.blockCount??0:0),Ce=T?{...G.style,...Jt(o,f)}:G.style,Ws=fe?{...Ce,...fe}:Ce,he=(s="")=>e(l,{className:`${ae}${oe?` ${yt}`:""}${G.className}${ue}${Ms}${s?` ${s}`:""}${Q?` ${On}`:""}${y?` ${wn(y)}`:""}${eo}${se}`,style:Ws,minEmptyHeight:120,...Co?{cell:Co}:null}),be=Zt(io)?"":Kt(o,f),xe=i?e(on,{direction:io,seconds:ds,delay:us,editing:N,copy:s=>he(s&&be?`${s} ${be}`:s)}):he(),wo=o==="tabs"?e(ot,{className:`${ae}${G.className}${uo&&!A&&!n&&!x?"":W}`,style:G.style,shape:je,children:xe}):xe,So=c?e(Ao.Provider,{value:"accordion",children:wo}):Qo?e(Ao.Provider,{value:!1,children:wo}):wo,pe=o==="row"&&!n&&(R===void 0||R==="stretch"),Gs={stretchedRow:pe,fillingColumn:o==="column"&&(uo||de),columnsRow:D!==""||p!==""||eo!==""||se!==""||o==="row"&&(Array.isArray(u)||Array.isArray(M))||re,...re?{phoneCells:!0}:null,...pe&&ne&&(l.blockCount??0)>=2&&Ts?{picturesFillRow:!0}:null,...fo?{fillFrom:te?"tablet":"desktop"}:null,...Ht(V,J)&&(!fo||te)?{phoneRowFills:!0}:null,...B?{id:B}:null},we=r===null?_t({direction:o,loop:h,bgImage:v,columns:_,mirrorCards:Uo},!1):null,Se=we?e(Ie.Provider,{value:{hand:we,ids:l.blockIds??[],boxes:[]},children:So}):b?e(Ie.Provider,{value:null,children:So}):So,$e=e(Te.Provider,{value:Gs,children:e(Fe.Provider,{value:!1,children:oo?e(pt.Provider,{value:oe,children:e(xt.Provider,{value:!z,children:Se})}):Se})}),Xs=co?.blockCount??0,Pe=Qo==="accordion"&&!!co&&(N||Xs>0)?e(tt,{startsOpen:Ps===!0,editing:N,title:e(Te.Provider,{value:Xn,children:e(Fe.Provider,{value:!1,children:e(Ao.Provider,{value:!1,children:e(co,{className:`min-w-0 flex-1 ${jt}`,minEmptyHeight:24})})})}),children:$e}):$e,$o=Q?e(yn,{row:o==="row",stops:l.blockCount??0,children:Pe}):Pe,js=Xe?.trim()||(Ls?"":void 0),Us={values:t,frame:xo?24:0},Ks=s=>qo?e(kn,{on:qo,future:hs===!0,children:s}):s,Js=s=>E.startsWith("/")?e(Rn,{href:E,className:He,"aria-labelledby":s,[Ve]:""}):e("a",{href:E,className:He,"aria-labelledby":s,[Ve]:""}),Re=(y?Sn(y):"")+Es+(m===void 0||r&&r.index!==0?"":Mn(m)),_e=Re?e("style",{dangerouslySetInnerHTML:{__html:Re}}):null,X=fn({loop:h,direction:o,scrollDirection:io,bgImage:v}),zs=d.desktop&&eo!==""&&!q&&!F.className&&!We(Mo,Ho,Vo)&&!un(lo,Wo,Go)&&!E&&!x&&!A&&!y&&!Cn(ro&&!X,Bs)&&Bo(Eo)&&(No(no)||Bo(no))&&go&&Object.values(t).every(s=>No(s)||Bo(s)),Ys=s=>({...zs?{[Bn]:""}:null,...n?null:{...dn(lo),...mn(lo,Wo,Go)},...y?{[xn]:y}:null,...s?{id:s}:null}),ve=D!==""?Number(_):0,qs=U(V,J)===U(void 0),Qs=(o==="column"||o==="row"&&!T&&!i&&(ve===1&&qs||ve===0&&l.blockCount===1))&&!n&&!Q&&!Z,Ae=n&&As&&!Z,Le=(s,w)=>Ks(e(ct,{contained:ro&&!X,style:X?Oo:void 0,framedClass:Vs,fillClass:Hs,columnClass:`${Lo} ${yo}${ue}${me}`,tabLabel:js,pad:n?void 0:Us,border:We(Mo,Ho,Vo),outerAttrs:Ys(w),box:!0,edge:Qs,outerStyle:n?void 0:Yo,outerClass:n?void 0:F.className||void 0,bleed:Ae,children:_e||w?vo(so,{children:[_e,w?Js(w):null,X?e(De,{children:s}):s]}):X?e(De,{children:s}):s})),ye=s=>E?e(Un,{children:w=>Le(s,w)}):Le(s);if(!n){const s=R===void 0||R==="stretch",w=(I(u)!==""||D!==""||p!=="")&&!Wt(V,J)&&!(H!==""&&I(M)==="")&&(s||U(V)!==U(void 0));return ye((o==="row"?w:o==="column"&&s)?e(ft.Provider,{value:!0,children:$o}):$o)}const j=sn(Do,Io),Po=cn({darken:Do,darkenStyle:Io,darkenTablet:Qe,darkenStyleTablet:os,darkenPhone:Ze,darkenStylePhone:es}),ke=[mo?"rounded-[inherit]":"",Po.className].filter(Boolean).join(" "),Ro=Me(To),Oe=Ro?{"--sf-box-bg":ko(v??""),"--sf-box-bg-p":ko(To??"")}:{backgroundImage:ko(v??""),backgroundSize:"cover",backgroundPosition:"center"},Ne=Ln(void 0,void 0,qe),k=Ne.className?Ne:null,_o=_n({...t,top:$(t.top)??P(S.desktop,t.unit,"desktop"),bottom:$(t.bottom)??P(S.desktop,t.unit,"desktop"),topPhone:$(t.topPhone)??P(S.phone,t.unitPhone,"mobile"),bottomPhone:$(t.bottomPhone)??P(S.phone,t.unitPhone,"mobile"),left:$(t.left)??P(S.side,t.unit,"desktop"),right:$(t.right)??P(S.side,t.unit,"desktop"),leftPhone:$(t.leftPhone)??P(S.sidePhone,t.unitPhone,"mobile"),rightPhone:$(t.rightPhone)??P(S.sidePhone,t.unitPhone,"mobile")}),Be=e("div",{className:`relative z-[1] ${en} ${_o?.className??""}${A||x?` ${to}`:""}`.trimEnd(),style:j?{..._o?.style,...Oo,...vn}:{..._o?.style,...Oo},children:$o}),Ee=Ae&&ro?e("div",{className:`${Lo} ${yo}${A||x?` ${to}`:""}`,children:Be}):Be;return ye(e(so,{children:vo("div",{className:`relative isolate overflow-hidden ${an}${W}${Ro&&!k?` ${Ge}`:""}${F.className?` ${F.className}`:""}`,style:{...mo?Gn:{},...Yo,...k?{}:Oe},...k?{[An]:""}:{},children:[k&&vo(so,{children:[e(In,{sheet:k.sheet}),e("div",{"aria-hidden":!0,className:`absolute inset-0${mo?" rounded-[inherit]":""}${Ro?` ${Ge}`:""} ${k.className}`,style:{...Oe,...k.style??{}}})]}),e(mt,{wash:j&&Po.className?{...j,...Po.style}:j,...ke?{className:ke}:{}}),j?e(ut,{children:Ee}):Ee]})}))}export{Kn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{TICKER_JOIN_BOX_CLASS as i}from"../../format/lib/sections/ticker-join.js";function s({children:o}){return r("div",{className:i,children:o})}export{s as JoinBox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r}from"react/jsx-runtime";import{useContext as I}from"react";import{SiteLink as g}from"../lib/site-runtime.js";import h,{FOOTER_LOGO_PX as O,WORDMARK_FIT_FLOOR_PX as _}from"./Logo.js";import{media as N}from"../lib/media.js";import{BoxSurfaceContext as B}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as D}from"./BoxCellWidthContext.js";import{useInSiteHeader as H}from"./PhoneMenuTools.js";import{useSiteLogo as W}from"./SiteLogoContext.js";import{useLogoWall as j}from"./LogoWallContext.js";import{LogoWallMark as y}from"./Logos.js";import{alignViewClasses as x,BLOCK_ALIGN_JUSTIFY as
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import{useContext as I}from"react";import{SiteLink as g}from"../lib/site-runtime.js";import h,{FOOTER_LOGO_PX as O,WORDMARK_FIT_FLOOR_PX as _}from"./Logo.js";import{media as N}from"../lib/media.js";import{BoxSurfaceContext as B}from"./BoxSurfaceContext.js";import{useBoxCellHasWidth as D}from"./BoxCellWidthContext.js";import{useInSiteHeader as H}from"./PhoneMenuTools.js";import{useSiteLogo as W}from"./SiteLogoContext.js";import{useLogoWall as j}from"./LogoWallContext.js";import{LogoWallMark as y}from"./Logos.js";import{useCardRow as F}from"./CardRowContext.js";import{alignViewClasses as x,BLOCK_ALIGN_JUSTIFY as R}from"../../format/lib/content/block-align.js";function T(t){const o=j(),n=F();if(!o)return r(P,{...t});const l=(t.src??"").trim();return r("div",{className:"text-center",children:r(y,{src:l||void 0,alt:t.alt,look:o.look,logoHeight:o.logoHeight,grayscale:o.grayscale,kind:n?.row.kind})})}function P({src:t,alt:o,href:n,heightPx:l=O,reverse:p=!0,align:i,alignTablet:m,alignPhone:f,color:L=null}){const s=W(),d=(t??"").trim(),a=d?{src:N(d),reversedSrc:null,inkIsDark:null,wordmark:o?.trim()||null}:{src:s.src,reversedSrc:s.reversedSrc,inkIsDark:s.inkIsDark,wordmark:s.wordmark},S=I(B),k=H(),v=D(),e=!k&&v,c=r(h,{variant:"footer",sizePx:l,src:a.src,reverse:p,color:L,reversedSrc:a.reversedSrc,inkIsDark:a.inkIsDark,wordmark:a.wordmark,siteName:s.siteName,fitToContainer:k,fitWordmarkToContainer:e,fitFloorPx:e?_:void 0,...S?.dark?{onLightSurface:!1}:{}}),u=e?"inline-flex max-w-full overflow-x-clip":"inline-flex",w=n?r(g,{href:n,className:u,children:c}):e?r("span",{className:u,children:c}):c;if(!i&&!e&&!x("justify",i,m,f))return w;const C=["flex min-w-0",i?R[i]:"",x("justify",i,m,f),e?"[container-type:inline-size]":""].filter(Boolean).join(" ");return r("div",{className:C,children:w})}export{T as default};
|
|
@@ -16,15 +16,17 @@ interface LogosProps {
|
|
|
16
16
|
logos?: SlotComponent;
|
|
17
17
|
look?: LogoLook;
|
|
18
18
|
omitHead?: boolean;
|
|
19
|
+
cards?: ReactNode;
|
|
19
20
|
}
|
|
20
|
-
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, }: LogosProps): import("react").JSX.Element;
|
|
21
|
+
export default function Logos({ items, contained, heading, columns, grayscale, logoHeight, bandPadding, logos: LogoBlocks, look, omitHead, cards, }: LogosProps): import("react").JSX.Element;
|
|
21
22
|
export declare const CARD_WORDS_CLASS = "font-mono text-[12px] uppercase tracking-[0.18em]";
|
|
22
|
-
export declare function LogoWallMark({ src, alt, look, logoHeight, grayscale, mark, }: {
|
|
23
|
+
export declare function LogoWallMark({ src, alt, look, logoHeight, grayscale, kind, mark, }: {
|
|
23
24
|
src?: string;
|
|
24
25
|
alt?: string;
|
|
25
26
|
look: LogoLook;
|
|
26
27
|
logoHeight?: number;
|
|
27
28
|
grayscale?: boolean;
|
|
29
|
+
kind?: string;
|
|
28
30
|
mark?: ReactNode;
|
|
29
31
|
}): import("react").JSX.Element;
|
|
30
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l,jsxs as f}from"react/jsx-runtime";import{PaymentMark as L,paymentMarkItems as C}from"efficient-shell/icons/payment";import M from"./BlockFrame.js";import{renderChrome as j,renderGold as z,renderHeadline as R}from"./goldPhrases.js";import{LogoWallProvider as N}from"./LogoWallContext.js";import{EMPTY_ELSE_CLASS as T,EMPTY_HIDES_CLASS as G,EmptyHidesStyle as I}from"../lib/content/empty-hides.js";import{media as E}from"../lib/media.js";import{sizedImage as O}from"../../format/lib/sized-image.js";import{stripMarkup as v}from"../../format/lib/markup.js";import{DEFAULT_LOGO_LOOK as k}from"../../format/lib/sections/logo-look.js";import{paymentRowMark as B}from"../lib/sections/payment-rows.js";const w={label:"text-[length:var(--size-label,13px)]"},c="sf-logo-wall",D="sf-logo-items",d="flex flex-wrap items-center justify-center",u="plain",x={plain:{x:3.5,y:2},cards:{x:.75,y:.75}},y=t=>({columnGap:`${x[t].x}rem`,rowGap:`${x[t].y}rem`}),S=(t,e)=>`calc((100% - ${(t-1)*x[e].x}rem) / ${t})`;function P({items:t,contained:e,heading:n,columns:r,grayscale:s,logoHeight:i,bandPadding:a,logos:m,look:o=k,omitHead:$=!1,cards:p}){const W=r!=null?{flex:`0 0 ${S(r,u)}`}:void 0,_=!$;return f(M,{contained:e,className:_&&a==null?"py-10":"",style:!_||a==null?void 0:{paddingTop:`${a}px`,paddingBottom:`${a}px`},children:[!$&&n!=null&&n!==""?l("h2",{className:`mb-8 text-center font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:R(n,!1)}):null,p!==void 0?f(N,{value:{look:o,logoHeight:i,grayscale:s},children:[r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l("div",{className:[c,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),children:p})]}):m?f(N,{value:{look:o,logoHeight:i,grayscale:s},children:[l(I,{}),r!=null?l("style",{children:`.${c}-c${r}>*{flex:0 0 ${S(r,o)}}`}):null,l(m,{className:[c,G,r!=null?`${c}-c${r}`:"",d].filter(Boolean).join(" "),style:y(o),minEmptyHeight:80})]}):null,p!==void 0?null:l("div",{className:`${D} ${T} ${d}`,style:y(u),children:(t??[]).map((g,b)=>l("div",{className:"text-center",style:W,children:l(Y,{src:g.src,alt:g.alt,look:u,logoHeight:i,grayscale:s})},b))})]})}const h="font-mono text-[12px] uppercase tracking-[0.18em]";function A(t){const e=C({name:v(t)});return!e.length||e.length===1&&e[0].kind==="words"&&!e[0].glyph?null:l("span",{className:"flex items-center gap-3",children:e.map((n,r)=>l(L,{item:n,size:20,className:h},r))})}function Y({src:t,alt:e,look:n,logoHeight:r,grayscale:s,kind:i,mark:a}){if(n==="cards"){const m=!t&&i!==void 0?B({label:e,kind:i}):null;return l("div",{className:"sf-card flex h-10 items-center border border-line bg-surface px-4",children:a||(m?l(L,{item:m,size:20,className:h}):!t&&e&&A(e)?A(e):t?l("img",{...F(E(t)),alt:v(e||""),className:s===!1?"max-h-5 w-auto opacity-90":"max-h-5 w-auto opacity-90 grayscale"}):e&&l("span",{className:h,children:z(e)}))})}return t?l("img",{...K(E(t)),alt:e,className:["mx-auto w-auto opacity-60 transition-opacity hover:opacity-100",r==null?"h-7":"",s===!1?"":"grayscale"].filter(Boolean).join(" "),style:r==null?void 0:{height:`${r}px`}}):l("span",{className:`font-mono ${w.label} uppercase tracking-[0.2em] text-fg-dim`,children:j(e||"Logo")})}function F(t){const e=O(t,{fallbackWidth:320,maxWidth:640});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"120px"}:{src:t}}function K(t){const e=O(t,{fallbackWidth:640,maxWidth:960});return e.srcSet?{src:e.src,srcSet:e.srcSet,sizes:"240px"}:{src:t}}export{h as CARD_WORDS_CLASS,Y as LogoWallMark,P as default};
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import type { RowHand } from "../../format/lib/content/mirror-cards.js";
|
|
1
2
|
export declare const MirrorContext: import("react").Context<boolean | null>;
|
|
2
3
|
export declare function useMirroredCopy(): boolean;
|
|
3
4
|
export declare function useUnderCardBox(): boolean;
|
|
5
|
+
export declare const HandedMirrorContext: import("react").Context<boolean>;
|
|
6
|
+
export declare function useHandedMirrorAbove(): boolean;
|
|
7
|
+
export type HandedRows = {
|
|
8
|
+
hand: RowHand;
|
|
9
|
+
ids?: readonly string[];
|
|
10
|
+
copies?: boolean;
|
|
11
|
+
boxes?: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare function boxPlace(handed: HandedRows, id: string, slotIndex: number): number;
|
|
14
|
+
export declare const RowHandContext: import("react").Context<HandedRows | null>;
|
|
15
|
+
export declare function useHandedRows(): HandedRows | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{createContext as
|
|
1
|
+
"use client";import{createContext as r,useContext as t}from"react";const u=r(null);function d(){return t(u)===!0}function f(){return t(u)!==null}const c=r(!1);function l(){return t(c)}function a(x,n,s){const e=x.boxes;if(!e)return s;const o=e.indexOf(n);return o>=0?o:(e.push(n),e.length-1)}const i=r(null);function C(){return t(i)}export{c as HandedMirrorContext,u as MirrorContext,i as RowHandContext,a as boxPlace,l as useHandedMirrorAbove,C as useHandedRows,d as useMirroredCopy,f as useUnderCardBox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as n}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as a,jsxs as n}from"react/jsx-runtime";import{paymentMarkRows as d}from"../lib/sections/payment-rows.js";import f from"./BlockFrame.js";import{LogoWallMark as o}from"./Logos.js";import{renderGold as m}from"./goldPhrases.js";function x({heading:l,badges:t,assurances:s,contained:i,sourced:p=!1}){const c=p?d(t).map(e=>({row:e})):t.map(e=>({src:e.src,label:e.label||""}));return a(f,{contained:i,className:"py-6",children:n("div",{className:"flex flex-col items-center gap-5 border-y border-line py-8 text-center",children:[l&&a("span",{className:"font-mono text-[13px] uppercase tracking-[0.3em] opacity-70",children:m(l)}),c.length>0&&a("ul",{className:"flex flex-wrap items-center justify-center gap-3",children:c.map((e,r)=>a("li",{children:"row"in e?a(o,{look:"cards",alt:e.row.label,kind:e.row.kind}):a(o,{src:e.src,alt:e.label,look:"cards",grayscale:!1})},r))}),s.length>0&&a("ul",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-1",children:s.map((e,r)=>e.text&&n("li",{className:"flex items-center gap-2 text-[13px] opacity-60",children:[a("span",{className:"h-1 w-1 rounded-full bg-accent","aria-hidden":!0}),m(e.text)]},r))})]})})}export{x as default};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { SlotComponent } from "efficient-easel/blocks";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { RowHand } from "../../format/lib/content/mirror-cards.js";
|
|
2
4
|
export interface ProcessSpec {
|
|
3
5
|
label?: string;
|
|
4
6
|
value?: string;
|
|
@@ -27,7 +29,9 @@ export interface ProcessStepsProps {
|
|
|
27
29
|
editing?: boolean;
|
|
28
30
|
cardImage?: number | null;
|
|
29
31
|
cardText?: "below" | "on-image";
|
|
32
|
+
rows?: RowHand | null;
|
|
33
|
+
copies?: ReactNode;
|
|
30
34
|
omitHead?: boolean;
|
|
31
35
|
}
|
|
32
36
|
export declare function storedStepsShown(steps: readonly ProcessStep[] | undefined): ProcessStep[];
|
|
33
|
-
export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardText, }: ProcessStepsProps): import("react").JSX.Element;
|
|
37
|
+
export default function ProcessSteps({ num, title, description, boxes: Boxes, steps, columns, cta, padTop, padBottom, editing, omitHead, cardImage, cardText, rows: askedRows, copies, }: ProcessStepsProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as M,jsxs as i}from"react/jsx-runtime";import{RowHandContext as w}from"./MirrorContext.js";import{EDITORIAL_COLUMN as O}from"../../format/lib/content/page-width.js";import{cardImageShapeTokens as R}from"../../format/lib/content/card-image-shape.js";import{SiteLink as F}from"../lib/site-runtime.js";import Y from"./EditorialSectionHead.js";import X from"./Placeholder.js";import{withRMark as o}from"./RMark.js";import{renderGold as s}from"./goldPhrases.js";import{say as Z}from"../../format/lib/editor-words.js";import{scrim as f}from"../../format/lib/content/scrim.js";import{EMPTY_ELSE_CLASS as q,EMPTY_HIDES_CLASS as C,EmptyHidesStyle as J}from"../lib/content/empty-hides.js";const l={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},T={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},y="sf-itc-boxes",K="sf-itc-steps";function Q(b){return(b??[]).filter(r=>(r?.tag??"").trim()||(r?.meta??"").trim()||(r?.title??"").trim()||(r?.copy??"").trim()||(r?.image??"").trim()||(r?.specs??[]).some(c=>(c?.label??"").trim()||(c?.value??"").trim()))}function V({num:b,title:r,description:c,boxes:n,steps:I,columns:j=3,cta:h,padTop:S,padBottom:$,editing:A=!1,omitHead:H=!1,cardImage:P,cardText:U,rows:N,copies:g}){const p=g!==void 0,m=N&&(p||(n?.blockCount??0)>0)?N:null,D=typeof S=="number"?S:120,G=typeof $=="number"?$:120,k=p?[]:Q(I),L=k.length>0?k:A&&!n&&!p?[1,2,3].map(a=>({tag:Z("Column {n}",{n:a})})):[],z=T[j]??T[3],u=m?"grid-cols-1":z,E=m?"":" [&>*]:min-h-[560px]",d=U==="on-image";return e("section",{className:"relative z-[2] border-b border-line bg-bg",style:{paddingTop:D,paddingBottom:G,...R(P)},children:i("div",{className:O,children:[H?null:e(Y,{num:b,title:r?.trim()?s(r,!0):void 0,desc:c?.trim()?s(c,!1):void 0}),n&&!p?i(M,{children:[e(J,{}),m?e(w.Provider,{value:{hand:m,ids:n.blockIds??[],boxes:[]},children:e(n,{className:`${y} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line${E} [&>*]:bg-bg`,minEmptyHeight:260})}):e(n,{className:`${y} ${C} sf-card grid ${u} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,p&&g?e("div",{className:`${y} sf-card grid ${u} gap-[2px] border border-line bg-line${E} [&>*]:bg-bg`,children:m?e(w.Provider,{value:{hand:m,copies:!0},children:g}):g}):null,L.length>0&&e("div",{className:`${K} ${q} sf-card grid ${z} gap-[2px] border border-line bg-line`,children:L.map((a,_)=>{const x=(a.specs??[]).filter(t=>(t?.label??"").trim()||(t?.value??"").trim());return i("article",{className:d?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[i("div",{className:d?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[e(X,{label:a.tag?.trim()||a.title?.trim()||`column-${_+1}`,src:a.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...n?{deferFetch:!0}:{}}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${f(.55)} 0%, transparent 30%, transparent 70%, ${f(.65)} 100%)`}}),d&&e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${f(.73)} 55%, ${f(.92)} 100%)`}}),a.tag?.trim()&&e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.3em] text-accent`,children:o(a.tag)}),a.meta?.trim()&&e("span",{className:d?`absolute right-5 top-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${l.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:o(a.meta)}),d&&(a.title?.trim()||a.copy?.trim())&&i("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[a.title?.trim()&&e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${l.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${l.headingSmallUpTo700Small}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`min-h-[3em] font-display ${l.bodySmall} leading-[1.5] text-overlay-fg/85`,children:s(a.copy,!1)})]})]}),d?x.length>0&&e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))}):i("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[a.title?.trim()&&e("h3",{className:`font-heading3 ${l.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${l.headingSmallUpTo700Large}`,children:s(a.title,!0)}),a.copy?.trim()&&e("p",{className:`font-display ${l.bodySmall} leading-[1.55] text-fg-dim`,children:s(a.copy,!1)}),x.length>0&&e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:x.map((t,v)=>i("div",{className:"flex flex-col gap-1",children:[t.label?.trim()&&e("span",{className:`font-mono ${l.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:o(t.label)}),t.value?.trim()&&e("span",{className:`font-display ${l.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:o(t.value)})]},v))})]})]},_)})}),h?.text&&e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:i(F,{href:h.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${l.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(h.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})}export{V as default,Q as storedStepsShown};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r}from"react/jsx-runtime";import x from"./Ticker.js";import{
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import x from"./Ticker.js";import{JoinBox as h}from"./JoinBox.js";import{tickerJoinPinClass as k,tickerJoinSide as y}from"../../format/lib/sections/ticker-join.js";import{say as v}from"../../format/lib/editor-words.js";const g=()=>v("item");function j({items:l,seconds:s,delay:c,tone:a="scrim",borders:d=!0,size:m,separator:p,scroll:f,join:u,editing:b}){const i=(l??[]).map(n=>n?.text?.trim()?n.text:b?g():"").filter(Boolean);if(i.length===0)return null;const o=a!=="plain",e=y(u),t=r("div",{className:[e?k(e):"relative z-[2]","py-3.5 max-view-wide:py-3",o?"bg-bg":"",d?"border-y border-line":""].filter(Boolean).join(" "),children:r(x,{items:i,seconds:s,delay:c,size:m,separator:p,scroll:f,backdrop:o?"themed-band":"themed-section"})});return e?r(h,{children:t}):t}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,Fragment as O}from"react/jsx-runtime";import{CardRowDrawn as T}from"../../../../../components/CardRowContext.js";import j from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as y,namedRowField as a}from"../../../../../../format/lib/content/card-template.js";import{namedLinkHrefRewrite as k}from"../../../../../../format/lib/links/link-href-rewrites.js";import{CTA_PH as v}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as A}from"../../scaffold.js";import{phoneKey as D}from"efficient-easel/draw";import{ButtonBlockMeta as E}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const z={...E,render:o=>{const{label:m,href:c,variant:b,align:d,alignTablet:f,alignPhone:s,contained:h,arrow:u,icon:g,iconPosition:w,widthFit:P,buttonColor:B,buttonTextColor:C,editor:r}=o,F=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t==="buttonCorners"||t==="buttonCornerSides"||t.startsWith("buttonPadding"))),i=k(o),R=i?{hrefRewrite:i}:{},e=(t,l)=>n(j,{label:A(t,v.text,r)??"",href:l,variant:b,align:d,alignTablet:f,alignPhone:s,contained:h,arrow:u,icon:g,iconPosition:w,widthFit:P,widthFitPhone:o[D("widthFit")],buttonColor:B,buttonTextColor:C,...F,...R}),_=a(o),x=a(o,y);return!_&&!x?e(m,c):n(T,{type:"ButtonBlock",props:o,children:(t,l,p)=>p&&!r?.isEditing&&!(typeof t.label=="string"&&t.label.trim())?n(O,{}):e(t.label,t.href)})}};export{z as ButtonBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{CardTemplateRows as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{CardTemplateRows as y,useCardRow as h}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as T}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as S}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as p,CARD_LIST_TYPE as _,cardListShows as L,cardRow as R}from"../../../../../../format/lib/content/card-template.js";import{CardListMeta as g}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function x(e){const o=e&&typeof e=="object"?e.state:void 0;return o&&typeof o=="object"?o:void 0}const A="[&>*]:flex [&>*]:flex-col [&>*>:only-child]:grow [&>*>:only-child]:flex [&>*>:only-child]:flex-col [&>*>*>:only-child]:grow [&>*>*>:only-child]:flex [&>*>*>:only-child]:flex-col [&>*>*>*>:only-child]:grow",C=[{}];function I({id:e,own:o,Template:f,editing:d,dragRef:m}){const t=h(),l=t?L(o,t.ownerType):"",s=t?l&&t.item&&typeof t.item=="object"?t.item[l]:void 0:o[p],r=Array.isArray(s)?s:[],n=r.length?r:d?C:r;if(!n.length)return null;const u=n.map(R),c=n.map(x),a=d?[]:n.map(S);return i(y,{ownerId:e,ownerType:_,Template:f,rows:u,items:n,states:c.some(Boolean)?c:void 0,actions:a.some(Boolean)?a:void 0,fallback:null,children:w=>i("div",{ref:m,className:t?"contents":`contents ${A}`,[T]:"",children:w})})}const O={...g,render:e=>i(I,{id:String(e.id??""),own:e,Template:e.template,editing:e.editor?.isEditing===!0,dragRef:e.editor?.dragRef??void 0})};export{O as CardListRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as n,jsx as o}from"react/jsx-runtime";import p from"../../../../../components/Eyebrow.js";import{hidableText as f,readHidable as l}from"efficient-easel/draw";import{parseEyebrowBlockLook as b}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as s}from"../../scaffold.js";import{EyebrowMeta as g}from"../../../../../../format/lib/document/blocks/general/Eyebrow/meta.js";const c={...g,render:({eyebrow:r,align:e,alignTablet:t,alignPhone:m,eyebrowLook:i,editor:a})=>l(r).hidden?o(n,{}):o(p,{text:s(f(r),d.eyebrow,a)??"",align:e,alignTablet:t,alignPhone:m,look:b(i)})};export{c as EyebrowRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{phoneKey as a,tabletKey as n}from"efficient-easel/draw";import{BOX_SWATCH_PROP as c}from"../../../../../../format/lib/content/box-background.js";import{sharedColumnsDrawn as h,sharedRowsDrawn as m}from"../../../../content/box-shared-columns.js";import{CountRowsContext as b,NO_COUNTS as g}from"../../../../../components/CountRowsContext.js";import{RowEmptyGate as f}from"../../../../../components/CardRowContext.js";import{BOX_HIDE_WHEN_ROW_EMPTY as u}from"../../../../../../format/lib/content/card-template.js";import S from"../../../../../components/Flex.js";import{loopDelayOf as w,loopSecondsOf as k,parseLoop as y,parseLoopDirection as P}from"../../../../../../format/lib/animation/index.js";import{COUNTS_SOURCE as T,declaredBlockSource as x,servedRows as C}from"../../../../../../format/lib/content/block-sources.js";import{padValuesOf as O}from"../../../../content/section-padding.js";import{sectionFillsHeight as D}from"../../../../../../format/lib/content/section-min-height.js";import{pictureHoverOf as R}from"../../../../../../format/lib/animation/hover.js";import{FlexMeta as j}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const X={...j,render:e=>{const t=!!e.editor?.isEditing,d=l(S,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],gapTablet:e[n("gap")],justify:e.justify,justifyTablet:e[n("justify")],justifyPhone:e[a("justify")],align:e.align,alignTablet:e[n("align")],alignPhone:e[a("align")],wrap:e.wrap,wrapTablet:e[n("wrap")],share:e.share,sharePhone:e[a("share")],shareTablet:e[n("share")],wrapPhone:e[a("wrap")],orderPhone:e[a("order")],phoneRow:e.phoneRow,columns:e.columns,columnsTablet:e[n("columns")],separator:e.separator,stackBelow:e.stackBelow,blockSpacing:e.blockSpacing,blockSpacingTablet:e[n("blockSpacing")],blockSpacingPhone:e[a("blockSpacing")],bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,pictureHover:R(e),darken:e.darken,darkenStyle:e.darkenStyle,darkenTablet:e[n("darken")],darkenPhone:e[a("darken")],darkenStyleTablet:e[n("darkenStyle")],darkenStylePhone:e[a("darkenStyle")],placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderTablet:e.sectionBorderTablet,borderPhone:e.sectionBorderPhone,pad:O(e),contained:e.contained,fillHeight:D(e),shadow:e.shadow,shadowTablet:e[n("shadow")],shadowPhone:e[a("shadow")],loop:y(e.loop),scrollDirection:P(e.scrollDirection),loopSeconds:k({loopDuration:e.loopDuration}),loopDelay:w({loopDelay:e.loopDelay}),editing:t,fillColor:e.fillColor,fillColorTablet:e[n("fillColor")],fillColorPhone:e[a("fillColor")],swatch:e[c],line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],boxShapeTablet:e[n("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,sharedSides:h(e),sharedRows:m(e),boxId:typeof e.id=="string"?e.id:void 0,mirrorCards:e.mirrorCards,content:e.content,rowTitle:e.rowTitle,startsOpen:e.startsOpen}),o=x(e),r=o?o===T?C(e):g:null,i=l(b.Provider,{value:r,children:d});return e[u]===void 0?i:l(f,{props:e,editing:t,children:i})}};export{X as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import a from"../../../../../components/LogoBlock.js";import{CardRowDrawn as s}from"../../../../../components/CardRowContext.js";import{readHidable as g}from"efficient-easel/draw";import{readLogoColor as h}from"../../../../../../format/lib/logo/logo-color.js";import{LogoBlockMeta as u}from"../../../../../../format/lib/document/blocks/general/LogoBlock/meta.js";const j={...u,render:t=>e(s,{type:"LogoBlock",props:t,children:({src:n,alt:d,href:i,heightPx:l,reverse:f,customColor:m,align:o,alignTablet:c,alignPhone:p})=>{const r=h(f,m);return e(a,{src:n||void 0,alt:g(d).text||void 0,href:i||void 0,heightPx:l,reverse:r.reverse,color:r.color,align:o==="left"||o==="center"||o==="right"?o:void 0,alignTablet:c,alignPhone:p})}})};export{j as LogoBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m,Fragment as k}from"react/jsx-runtime";import y from"../../../../../components/Logos.js";import{CardTemplateRows as L}from"../../../../../components/CardRowContext.js";import{declaredBlockSource as c,sourcedRows as H}from"../../../../../../format/lib/content/block-sources.js";import{phRows as P,phHide as R}from"../../scaffold.js";import{parseLogoLook as x}from"../../../../../../format/lib/sections/logo-look.js";import{isPaymentMethodSource as M,paymentMarkRows as T}from"../../../../sections/payment-rows.js";import{parseSectionHeadPlacement as _}from"../../../../../../format/lib/sections/section-head-placement.js";import{LOGOS_PH as j,LogosMeta as A,logosScaffoldItems as g}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const B=()=>g().map(o=>({label:o.alt}));function C(o,e){const t=H(o,e,B()).rows.filter(n=>n.label);return M(c(o))?T(t):t}const K={...A,render:o=>{const{items:e,contained:t,heading:n,columns:f,logoHeight:u,bandPadding:w,grayscale:p,logos:h,look:S,headPlacement:b,editor:a}=o,r=_(b)==="own-box",i=l=>m(y,{items:r?Array.isArray(e)?e:[]:P(e,g(),a),contained:t,heading:r?void 0:R(n,j.heading,a),columns:f,logoHeight:u,bandPadding:w,grayscale:p,logos:r?h:void 0,look:x(S),omitHead:r,cards:l});if(c(o)==="")return i();const s=a?.isEditing===!0,d=(o.template?.blockCount??0)>0?C(o,s):[];return!s&&!d.length?m(k,{}):m(L,{ownerId:String(o.id??""),ownerType:"Logos",Template:o.template,rows:d,fallback:i([]),children:l=>i(l)})}};export{K as LogosRender};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { type SourceRow } from "../../../../../../format/lib/content/block-sources.js";
|
|
1
2
|
import type { BlockRender } from "../../../../../../format/lib/document/blocks/block-types.js";
|
|
3
|
+
export declare function imageTextSourceRows(props: Record<string, unknown>, editing: boolean): {
|
|
4
|
+
client: string | null;
|
|
5
|
+
rows: SourceRow[];
|
|
6
|
+
};
|
|
2
7
|
export declare const ProcessStepsRender: BlockRender;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,Fragment as g}from"react/jsx-runtime";import h from"../../../../../components/ProcessSteps.js";import{CardTemplateRows as x}from"../../../../../components/CardRowContext.js";import{ClientRowsReader as R,clientRowsKey as T}from"../../../../../components/ClientRows.js";import{blockSourceSpec as y,declaredBlockSource as b,sourcedRows as P}from"../../../../../../format/lib/content/block-sources.js";import{imageTextRowsHand as H}from"../../../../../../format/lib/content/image-text-rows.js";import{parseSectionHeadPlacement as B}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as C,phHide as s,ctaHide as k}from"../../scaffold.js";import{say as l}from"../../../../../../format/lib/editor-words.js";import{ProcessStepsMeta as p,PROCESS_PH as v}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const D=()=>[{image:"",tag:l("{letter} · Step",{letter:"A"}),meta:l("Short detail line"),title:l("Step *one*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"B"}),meta:l("Short detail line"),title:l("Step *two*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]},{image:"",tag:l("{letter} · Step",{letter:"C"}),meta:l("Short detail line"),title:l("Step *three*"),copy:l("Describe this step in a sentence or two."),specs:[{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value},{label:t.label,value:t.value}]}];function E(e,o){const i=b(e);return!o&&y(i)?.useRows?{client:i,rows:[]}:{client:null,rows:[...P(e,o).rows]}}const J={...p,render:e=>{const o=B(e.headPlacement)==="own-box",i=a=>o?void 0:a,u=e.editor?.isEditing===!0,w=H(e),n=a=>r(h,{rows:w,...a!==void 0?{copies:a}:{},num:i(s(e.num,v.num,e.editor)),title:i(s(e.title,v.title,e.editor)),description:i(s(e.description,t.body,e.editor)),omitHead:o,boxes:e.boxes,steps:C(e.steps,D(),e.editor),columns:typeof e.columns=="number"?e.columns:3,cta:k(e.ctaText,e.ctaHref),padTop:o?0:typeof e.padTop=="number"?e.padTop:120,padBottom:typeof e.padBottom=="number"?e.padBottom:120,cardImage:e.cardImage,cardText:e.cardText,editing:e.editor?.isEditing});if(!b(e))return n();const m=(a,d)=>a.length?r(x,{ownerId:String(e.id??""),ownerType:"ProcessSteps",Template:e.template,rows:a,...d?{items:d}:{},fallback:n(null),children:S=>n(S)}):u?n(null):r(g,{}),{client:c,rows:f}=E(e,u);return c?r(R,{source:c,props:e,children:a=>m(a?.rows??[],a?.items)},T(c)):m(f)}};export{J as ProcessStepsRender,E as imageTextSourceRows};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{pictureHoverOf as d}from"../../../../../../format/lib/animation/hover.js";import m from"../../../../../components/Split.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as f}from"efficient-easel/draw";import{phHide as t,ctaHide as c}from"../../scaffold.js";import{SplitMeta as x,SPLIT_PH as i,IMGBTN_PH as o}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function u(e,l,r){const n=t(e,o.text,r);if(n!==void 0)return{text:n,href:l||"#"}}const v={...x,render:e=>a(m,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:f(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignTablet:e.textAlignTablet,textAlignPhone:e.textAlignPhone,cta:c(e.ctaText,e.ctaHref,e.editor),imageButton:u(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,pictureHover:d(e,"Split"),fillHeight:g(e)})};export{v as SplitRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as
|
|
1
|
+
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as y}from"../../../../../components/CardRowContext.js";import{CountDrawn as T}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as O}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as k}from"../../../../content/page-contents.js";import{namedRowField as A,rowPartByKey as D}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as F,TOP_LINE_CLASS as L,cardPlaceOf as B,framesItsCards as W}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as j,blockSizeValuesOf as v}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as H}from"../../../../content/section-padding.js";import M from"../../../../../components/Text.js";import{hidableText as d,readHidable as U}from"efficient-easel/draw";import{PH as b}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as V}from"../../scaffold.js";import{readPartStyle as z}from"../../../part-styles.js";import{TextMeta as q}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const ct={...q,render:t=>{const{text:a,align:P,alignTablet:p,alignPhone:K,tone:_,tag:C,contained:E,editor:m}=t;if(U(a).hidden)return r(c,{});const{textStyle:f,align:R}=z(t,"text"),S=f?.startsWith("heading-")?b.heading:b.body,I=D("Text",t,"text")?{partKey:"text",partDeclare:!!m?.isEditing}:{},o=(e,n,i)=>r(M,{...I,text:V(e,S,m)??"",number:n,align:P,alignTablet:p,alignPhone:K,tone:_,tag:C,textStyle:f,partAlign:R,ownWidth:j(v(t)),contained:E,pad:H(t),onLine:i}),s=e=>!e?.trim()&&!m?.isEditing,u=A(t),g=w(t);if(g)return r(T,{countKey:g,children:e=>o(e??d(a))});const h=()=>{if(!u){const e=t[k];return typeof e=="string"?o(d(a),e):r(O,{id:t.id,children:n=>o(d(a),n)})}return r(y,{type:"Text",props:t,children:(e,n,i)=>{const l=d(e.text),x=w(t,i);return x?r(T,{countKey:x,children:N=>o(N??l)}):i&&s(l)?r(c,{}):o(l)}})};return B(t)!=="top-line"?h():r(y,{type:"Text",props:t,children:(e,n)=>{if(!n||!W(n.ownerType))return h();const i=d(u?e.text:a);return s(i)?r(c,{}):r("div",{className:L,[F]:"",children:o(i,void 0,!0)})}})}};export{ct as TextRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import u from"../../../../../components/TitleWithButtons.js";import{readHidable as d}from"efficient-easel/draw";import{CTA_PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as b,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as c,TITLE_WITH_BUTTONS_PH as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const x=[{label:t.text,href:t.href,variant:"primary"},{label:t.text,href:t.href,variant:"outline"}],S={...c,render:({title:o,buttons:l,padTop:r,padBottom:i,buttonsAlign:T,buttonsAlignTablet:m,buttonsAlignPhone:f,editor:e})=>{const n=T,a=n==="center"||n==="left",s=d(o),h=s.hidden?"":s.text.trim();return p(u,{title:a&&!h?void 0:_(o,g.title,e),buttons:b(l,x,e),padTop:typeof r=="number"?r:140,padBottom:typeof i=="number"?i:140,buttonsAlign:n,buttonsAlignTablet:m,buttonsAlignPhone:f,editing:e?.isEditing})}};export{S as TitleWithButtonsRender};
|