efficient-web-builder 67.4.0 → 67.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/editor/components/storefront-editor.css +3 -1
  3. package/dist/editor/lib/document/ColourControl.d.ts +2 -1
  4. package/dist/editor/lib/document/ColourControl.js +1 -1
  5. package/dist/editor/lib/document/block-offer.d.ts +6 -0
  6. package/dist/editor/lib/document/block-offer.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/ParagraphsA/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/TimelineTrack/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
  16. package/dist/editor/lib/document/controls.js +1 -1
  17. package/dist/editor/lib/document/field-groups.js +1 -1
  18. package/dist/format/lib/content/accordion-row-style.d.ts +4 -1
  19. package/dist/format/lib/content/accordion-row-style.js +1 -1
  20. package/dist/format/lib/content/box-background.d.ts +12 -0
  21. package/dist/format/lib/content/box-background.js +1 -1
  22. package/dist/format/lib/content/image-treatment.js +1 -1
  23. package/dist/format/lib/content/view-lines.d.ts +1 -0
  24. package/dist/format/lib/content/view-lines.js +1 -1
  25. package/dist/format/lib/document/passes/types.d.ts +2 -0
  26. package/dist/format/lib/document/seed-parts.d.ts +1 -1
  27. package/dist/format/lib/document/seed-parts.js +1 -1
  28. package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
  29. package/dist/format/lib/editor-words-catalogue.js +3 -3
  30. package/dist/format/lib/hero-video.d.ts +1 -1
  31. package/dist/format/lib/hero-video.js +1 -1
  32. package/dist/render/components/BoxAccordionRow.d.ts +2 -1
  33. package/dist/render/components/BoxAccordionRow.js +1 -1
  34. package/dist/render/components/Flex.d.ts +2 -1
  35. package/dist/render/components/Flex.js +1 -1
  36. package/dist/render/components/Footprint.d.ts +3 -1
  37. package/dist/render/components/Footprint.js +1 -1
  38. package/dist/render/components/HeroPoster.d.ts +5 -1
  39. package/dist/render/components/HeroPoster.js +1 -1
  40. package/dist/render/components/HeroSlide.d.ts +5 -1
  41. package/dist/render/components/HeroSlide.js +1 -1
  42. package/dist/render/components/HeroVideoPlay.d.ts +4 -1
  43. package/dist/render/components/HeroVideoPlay.js +1 -1
  44. package/dist/render/components/ParagraphsA.d.ts +3 -1
  45. package/dist/render/components/ParagraphsA.js +1 -1
  46. package/dist/render/components/ProcessSteps.d.ts +3 -1
  47. package/dist/render/components/ProcessSteps.js +1 -1
  48. package/dist/render/components/SectionAnimation.d.ts +3 -0
  49. package/dist/render/components/SectionAnimation.js +1 -1
  50. package/dist/render/components/StatsParagraph.d.ts +3 -1
  51. package/dist/render/components/StatsParagraph.js +1 -1
  52. package/dist/render/components/Timeline.d.ts +3 -1
  53. package/dist/render/components/Timeline.js +1 -1
  54. package/dist/render/components/TimelineTrack.d.ts +3 -1
  55. package/dist/render/components/TimelineTrack.js +1 -1
  56. package/dist/render/components/TitleWithButtons.d.ts +3 -1
  57. package/dist/render/components/TitleWithButtons.js +1 -1
  58. package/dist/render/lib/content/section-padding.d.ts +20 -0
  59. package/dist/render/lib/content/section-padding.js +1 -1
  60. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  61. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  62. package/dist/render/lib/document/blocks/general/HeroSlide/render.js +1 -1
  63. package/dist/render/lib/document/blocks/general/ParagraphsA/render.js +1 -1
  64. package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
  65. package/dist/render/lib/document/blocks/general/StatsParagraph/render.js +1 -1
  66. package/dist/render/lib/document/blocks/general/Timeline/render.js +1 -1
  67. package/dist/render/lib/document/blocks/general/TimelineTrack/render.js +1 -1
  68. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  69. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  70. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  71. package/dist/render/lib/document/hero-media-parts.d.ts +2 -0
  72. package/dist/render/lib/document/hero-media-parts.js +1 -1
  73. package/dist/render/lib/document/passes/section-padding.d.ts +4 -0
  74. package/dist/render/lib/document/passes/section-padding.js +1 -1
  75. package/dist/render/lib/media.d.ts +15 -0
  76. package/dist/render/lib/media.js +1 -1
  77. package/dist/render/lib/sections/section-to-box.d.ts +1 -0
  78. package/dist/render/lib/sections/section-to-box.js +1 -1
  79. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 67.6.0 - 2026-11-11
4
+
5
+ From main at `a2c1240e`: #721, #724, #722. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.1.0` and `efficient-shell` `^12.33.0`. New exports, one optional parameter and optional props only. No stored key or value moves.
6
+
7
+ **For hosts:**
8
+ - Nothing to change. Stored Hero slides draw the bytes they drew (#721). A caller of `markBoxProps` that passes a Fill gets the same props (#724). A Box with no fade keeps its flat Fill (#722).
9
+ - storefront: take this release to draw a Hero slide's phone video and phone poster (#721).
10
+ - storefront-blocks: `squareBox` can drop its cast now that the Fill is optional (#724).
11
+
12
+ ### Added
13
+
14
+ - **A Hero slide can carry its own phone video and phone poster** (#721): slide fields `mediaVideoPhone` and its own first frame `videoFramePhone`. The poster preloads per view; the AV1 source list is written only when there are two sources. New exports `EDGE_WIDE_MEDIA` (view-lines), `videoForView`, `videoSources`, `VideoFileSource`, `ViewVideoFiles` (media), `AV1_FILE_LABEL`, `AV1_FILE_PROMPT` (hero-media-parts) and `useViewWidthRead` (SectionAnimation); `loadingStill` takes an optional view argument; `HeroSlide`, `HeroPoster` and `HeroVideoPlayer` take optional phone and AV1 source props.
15
+ - **A Box's Fill can fade from the top down** (#722): the Fill takes Flat or Fade. New exports `BOX_FILL_FADES`, `BOX_FILL_FADE_PROP`, `boxFillFadeOf`, `boxFillFadeStyle` (lib/content/box-background); `InheritedColourRow` takes optional `children`; `Flex` reads the optional `fillFade` prop.
16
+
17
+ ### Changed
18
+
19
+ - **A Mark Box takes no Fill when a host gives none** (#724): `markBoxProps(size, fill?, look?)`. With no Fill, the props have no `fillColor` key.
20
+
21
+ ## 67.5.0 - 2026-11-11
22
+
23
+ From main at `bd876886`: #718, #719, #720. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.1.0` and `efficient-shell` `^12.33.0`. New exports, one widened type and optional props only. No stored key or value moves.
24
+
25
+ **For hosts:**
26
+ - Nothing to change. Plain and Numbered accordion rows draw the bytes they drew (#720). An inner section with no band padding keeps its old top and bottom padding (#719).
27
+ - The `padTop` / `padBottom` component props of the seven inner sections are deprecated (#719); they still work. Move to the band's Padding row; they are removed in a later major.
28
+ - storefront-blocks: check each host row with `hostPressOutsideItsList` (#718); the side filter rail can fold with row style `chevron` (#720); DetailRows, ProductGrid and FooterLogo can take the band padding (#719).
29
+
30
+ ### Added
31
+
32
+ - **Each host press names its blocks** (#718): new `HOST_PRESS_BLOCKS` (each host-row press type and the host blocks its row lays down), `HostPressFault` and `hostPressOutsideItsList`. `HOST_PRESS_TYPES` is now `Object.keys(HOST_PRESS_BLOCKS)`: same names, order and type. A guard checks every named block for a set before a release.
33
+ - **Inner sections join the one Padding row** (#719): the seven inner sections take the four-side Padding row on their band. New exports `BAND_PAD_KEYS`, `BAND_PAD_UNIT_KEY`, `BandPad`, `bandPadAttrs`, `bandTopBottom`, `BAND_TO_SECTION_PAD`, `SECTION_PAD_CLASS`, `innerPaddingFallback`; optional `bandPad` on 7 components.
34
+ - **A chevron row style for an accordion** (#720): `AccordionRowStyle` gains `"chevron"` (set by a host's template, not a panel choice): a rule above each row, 12 px rows, the shell's chevron that turns when open. New exports `CHEVRON_ROW_CLASS`, `CHEVRON_ROW_SUMMARY_CLASS`, `CHEVRON_ROW_MARK_CLASS`; `BoxAccordionRow` optional prop `chevron`. A Box that stores chevron hides the Row style choice.
35
+
3
36
  ## 67.4.0 - 2026-11-11
4
37
 
5
38
  From main at `95e3acc7`: #715, #716. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.1.0` and `efficient-shell` `^12.33.0`. One new export and one optional field. No stored key or value moves.
@@ -2873,8 +2873,10 @@
2873
2873
  color: var(--sf-muted);
2874
2874
  }
2875
2875
 
2876
+ /* Under the swatch and the hex, in the colour row's one column
2877
+ (lib/document/ColourControl `ColourRow`): the column's gap (8) is the
2878
+ space above it. */
2876
2879
  .sf-readability {
2877
- margin-top: var(--space-12);
2878
2880
  padding: var(--space-12) var(--space-12) var(--space-12);
2879
2881
  border: 1px solid var(--sf-divider);
2880
2882
  border-radius: var(--sf-row-radius);
@@ -25,7 +25,7 @@ export declare function ColourRow({ label, icon, changed, hint, onReset, resetTo
25
25
  resetTo?: string;
26
26
  children?: ReactNode;
27
27
  }): import("react").JSX.Element;
28
- export declare function InheritedColourRow({ label, icon, value, inherited, resetTo, onChange, onReset, hint, choices, }: {
28
+ export declare function InheritedColourRow({ label, icon, value, inherited, resetTo, onChange, onReset, hint, choices, children, }: {
29
29
  label: string;
30
30
  icon?: ReactElement;
31
31
  value: string;
@@ -35,4 +35,5 @@ export declare function InheritedColourRow({ label, icon, value, inherited, rese
35
35
  onReset: () => void;
36
36
  hint?: ReactNode;
37
37
  choices?: readonly ColourChoice[];
38
+ children?: ReactNode;
38
39
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as r,jsxs as m}from"react/jsx-runtime";import{useRef as C}from"react";import{ColorPicker as w,ColorPickerPanel as x,ColorSwatch as b,HexInput as S,Popover as N,Tooltip as P,colorFill as k,colorSwatchClasses as T,useShellStrings as E}from"efficient-shell/ui";import{SettingsDefaultReset as R,SettingsField as _}from"efficient-easel/panel";import{typedHex as p}from"efficient-easel/pick";import{usePreviewHeader as j}from"../../../render/components/PreviewHeaderContext.js";import{editorEaselWords as F,say as g}from"../../../format/lib/editor-words.js";import{themePresets as I}from"../../../format/lib/document/theme-slots.js";import{SITE_STYLE_UNSET_LABEL as L}from"../../../format/components/SiteStyleUnset.js";function y({value:e,onChange:i,label:o,id:a,caption:s,inherited:c,ariaLabel:t,choices:n}){return r(B,{value:e,onChange:i,label:g(t??o),id:a,caption:s,inherited:c,choices:n})}function z(){const{theme:e}=j();return I(e)}function B({value:e,onChange:i,label:o,id:a,caption:s,inherited:c,choices:t}){const n=z(),l=e?null:p(c??""),d=s!==void 0&&(!e||p(s)!==p(e))?s:null,f=h=>{h!==e&&i(h)};return m("div",{className:"sf-colour",children:[t?r(H,{id:a,value:e,onChange:i,label:o,presets:n,follows:l,choices:t}):r(w,{id:a,value:e,onChange:f,label:o,presets:n,fallback:l??void 0,size:"md",align:"start"}),d!==null?r("span",{className:"sf-colour-caption",children:d}):r("span",{className:"sf-colour-hexwrap",children:r(S,{value:e||l||"",onChange:f,label:g("{label} hex code",{label:o}),placeholder:e||l?void 0:g(L),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function H({value:e,onChange:i,label:o,id:a,presets:s,follows:c,choices:t}){const n=E().color,l=e||c||"",d=t.findIndex(u=>u.selected),f=d>=0,h=C(d);return f&&(h.current=d),r(N,{id:a,trigger:r("span",{"aria-hidden":"true",className:"absolute inset-0",style:k(l)}),triggerLabel:n.swatch(o,l.toUpperCase()||n.none),triggerClassName:T({size:"md"}),"aria-label":n.panel(o),align:"start",children:m("div",{className:"sf-colour-window",children:[r("div",{role:"group","aria-label":o,className:"sf-colour-choices",children:t.map(u=>r(P,{content:u.label,children:r(b,{color:u.color,"aria-label":u.label,selected:u.selected,onClick:()=>{u.selected||u.onPick()}})},u.label))}),r(x,{value:f?"":e,onChange:i,label:o,presets:s,fallback:(f?l:c)??void 0},h.current)]})})}function W({label:e,icon:i,changed:o,hint:a,onReset:s,resetTo:c,children:t,...n}){return m(_,{label:e,icon:i,htmlFor:n.id,changed:o,hint:a,action:s?r(R,{words:F()?.panel,label:e,changed:!!o,detail:c,onReset:s}):void 0,children:[y({...n,label:e}),t]})}function M({label:e,icon:i,value:o,inherited:a,resetTo:s,onChange:c,onReset:t,hint:n,choices:l}){const d=!!o;return r(W,{label:e,icon:i,value:o,inherited:d?void 0:a,onChange:c,changed:d,onReset:t,resetTo:s,hint:n,choices:l})}export{y as ColourControl,W as ColourRow,M as InheritedColourRow,z as useThemePresets};
1
+ "use client";import{jsx as r,jsxs as m}from"react/jsx-runtime";import{useRef as w}from"react";import{ColorPicker as x,ColorPickerPanel as b,ColorSwatch as N,HexInput as S,Popover as P,Tooltip as k,colorFill as T,colorSwatchClasses as E,useShellStrings as R}from"efficient-shell/ui";import{SettingsDefaultReset as _,SettingsField as j}from"efficient-easel/panel";import{typedHex as p}from"efficient-easel/pick";import{usePreviewHeader as F}from"../../../render/components/PreviewHeaderContext.js";import{editorEaselWords as I,say as g}from"../../../format/lib/editor-words.js";import{themePresets as L}from"../../../format/lib/document/theme-slots.js";import{SITE_STYLE_UNSET_LABEL as v}from"../../../format/components/SiteStyleUnset.js";function C({value:e,onChange:i,label:o,id:a,caption:s,inherited:c,ariaLabel:t,choices:n}){return r(z,{value:e,onChange:i,label:g(t??o),id:a,caption:s,inherited:c,choices:n})}function y(){const{theme:e}=F();return L(e)}function z({value:e,onChange:i,label:o,id:a,caption:s,inherited:c,choices:t}){const n=y(),l=e?null:p(c??""),f=s!==void 0&&(!e||p(s)!==p(e))?s:null,d=h=>{h!==e&&i(h)};return m("div",{className:"sf-colour",children:[t?r(B,{id:a,value:e,onChange:i,label:o,presets:n,follows:l,choices:t}):r(x,{id:a,value:e,onChange:d,label:o,presets:n,fallback:l??void 0,size:"md",align:"start"}),f!==null?r("span",{className:"sf-colour-caption",children:f}):r("span",{className:"sf-colour-hexwrap",children:r(S,{value:e||l||"",onChange:d,label:g("{label} hex code",{label:o}),placeholder:e||l?void 0:g(v),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function B({value:e,onChange:i,label:o,id:a,presets:s,follows:c,choices:t}){const n=R().color,l=e||c||"",f=t.findIndex(u=>u.selected),d=f>=0,h=w(f);return d&&(h.current=f),r(P,{id:a,trigger:r("span",{"aria-hidden":"true",className:"absolute inset-0",style:T(l)}),triggerLabel:n.swatch(o,l.toUpperCase()||n.none),triggerClassName:E({size:"md"}),"aria-label":n.panel(o),align:"start",children:m("div",{className:"sf-colour-window",children:[r("div",{role:"group","aria-label":o,className:"sf-colour-choices",children:t.map(u=>r(k,{content:u.label,children:r(N,{color:u.color,"aria-label":u.label,selected:u.selected,onClick:()=>{u.selected||u.onPick()}})},u.label))}),r(b,{value:d?"":e,onChange:i,label:o,presets:s,fallback:(d?l:c)??void 0},h.current)]})})}function H({label:e,icon:i,changed:o,hint:a,onReset:s,resetTo:c,children:t,...n}){return r(j,{label:e,icon:i,htmlFor:n.id,changed:o,hint:a,action:s?r(_,{words:I()?.panel,label:e,changed:!!o,detail:c,onReset:s}):void 0,children:t?m("div",{className:"es-width-stack",children:[C({...n,label:e}),t]}):C({...n,label:e})})}function M({label:e,icon:i,value:o,inherited:a,resetTo:s,onChange:c,onReset:t,hint:n,choices:l,children:f}){const d=!!o;return r(H,{label:e,icon:i,value:o,inherited:d?void 0:a,onChange:c,changed:d,onReset:t,resetTo:s,hint:n,choices:l,children:f})}export{C as ColourControl,H as ColourRow,M as InheritedColourRow,y as useThemePresets};
@@ -7,6 +7,12 @@ export interface BlockOffer {
7
7
  }
8
8
  export declare function blocksLaidDownBy(type: string): readonly string[];
9
9
  export declare function blocksOutsideItsSet(type: string, laid?: readonly string[], setOf?: (type: string) => BlockSet | undefined, needs?: Readonly<Record<string, PressNeedsSet>>): readonly string[];
10
+ export type HostPressFault = {
11
+ readonly type: string;
12
+ readonly block: string;
13
+ readonly fault: "unlisted" | "not laid down";
14
+ };
15
+ export declare function hostPressOutsideItsList(list?: Readonly<Record<string, readonly string[]>>, laidOf?: (type: string) => readonly string[], setOf?: (type: string) => BlockSet | undefined): readonly HostPressFault[];
10
16
  export declare function resolveBlockOffer(blocks: EditorBlocks | null | undefined): BlockOffer | null;
11
17
  export declare function blockOfferOf(session?: EditorSession): BlockOffer | null;
12
18
  export declare function blockIsOffered(type: string, session?: EditorSession): boolean;
@@ -1 +1 @@
1
- import{offeredSets as h}from"../editor-blocks.js";import{currentEaselSession as d}from"efficient-easel/screen/lib/session";import{blocksOf as p}from"../website-session.js";import{layoutPresetFor as k}from"../sections/text-layouts.js";import{blockTypesIn as u}from"efficient-easel/screen/lib/document/block-types-in";import{blockSetOf as w,PRESS_NEEDS_SET as T}from"../../../format/lib/document/section-catalog.js";import{SLOT_SECTION_SPECS as _}from"../../../render/lib/document/slot-specs.js";import{ownEntry as S}from"../../../format/lib/own-entry.js";const m=()=>({}),E=new Map;function O(e){const s=E.get(e);if(s)return s;const t=new Set,i=S(_,e);if(i)for(const o of i.seeds(m))for(const c of u({type:i.childType,props:o}))t.add(c);const f=k(e);if(f){let o=0;for(const c of u(f(m,n=>`${n}-${o+=1}`)))t.add(c)}t.delete(e);const l=[...t].sort();return E.set(e,l),l}function C(e,s=O(e),t=w,i=T){const f=new Set(["general"]),l=t(e);l&&f.add(l);const o=S(i,e);o&&!o.blocks&&f.add(o.set);const c=new Set(o?.blocks??[]);return s.filter(n=>{const r=t(n);return r&&r===o?.set&&c.has(n)?!1:!r||!f.has(r)})}function x(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;const s=h(e),t=e.allow?new Set(e.allow):null,i=new Set(e.deny??[]),f=new Set(Object.keys(e.host??{})),l=n=>{if(i.has(n))return!1;if(f.has(n))return!0;const r=w(n);return!r||!s[r]?!1:t?t.has(n):!0},o=new Map,c=n=>{const r=o.get(n);if(r!==void 0)return r;o.set(n,!1);const a=l(n)&&O(n).every(c);return o.set(n,a),a};return{sets:s,offers:c}}const b="block-offer";function g(e=d()){return e.cache(b,()=>x(p(e)))}function M(e,s=d()){const t=g(s);return t?t.offers(e):!0}export{M as blockIsOffered,g as blockOfferOf,O as blocksLaidDownBy,C as blocksOutsideItsSet,x as resolveBlockOffer};
1
+ import{offeredSets as h}from"../editor-blocks.js";import{currentEaselSession as S}from"efficient-easel/screen/lib/session";import{blocksOf as E}from"../website-session.js";import{layoutPresetFor as k}from"../sections/text-layouts.js";import{blockTypesIn as w}from"efficient-easel/screen/lib/document/block-types-in";import{blockSetOf as u,PRESS_NEEDS_SET as _}from"../../../format/lib/document/section-catalog.js";import{SLOT_SECTION_SPECS as b}from"../../../render/lib/document/slot-specs.js";import{ownEntry as m}from"../../../format/lib/own-entry.js";import{HOST_PRESS_BLOCKS as T}from"../../../render/lib/sections/section-to-box.js";const p=()=>({}),O=new Map;function d(e){const f=O.get(e);if(f)return f;const o=new Set,c=m(b,e);if(c)for(const t of c.seeds(p))for(const n of w({type:c.childType,props:t}))o.add(n);const s=k(e);if(s){let t=0;for(const n of w(s(p,r=>`${r}-${t+=1}`)))o.add(n)}o.delete(e);const i=[...o].sort();return O.set(e,i),i}function v(e,f=d(e),o=u,c=_){const s=new Set(["general"]),i=o(e);i&&s.add(i);const t=m(c,e);t&&!t.blocks&&s.add(t.set);const n=new Set(t?.blocks??[]);return f.filter(r=>{const l=o(r);return l&&l===t?.set&&n.has(r)?!1:!l||!s.has(l)})}function K(e=T,f=d,o=u){const c=[];for(const[s,i]of Object.entries(e)){const t=f(s);if(t.length!==0){for(const n of t)o(n)!=="general"&&!i.includes(n)&&c.push({type:s,block:n,fault:"unlisted"});for(const n of i)t.includes(n)||c.push({type:s,block:n,fault:"not laid down"})}}return c}function g(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;const f=h(e),o=e.allow?new Set(e.allow):null,c=new Set(e.deny??[]),s=new Set(Object.keys(e.host??{})),i=r=>{if(c.has(r))return!1;if(s.has(r))return!0;const l=u(r);return!l||!f[l]?!1:o?o.has(r):!0},t=new Map,n=r=>{const l=t.get(r);if(l!==void 0)return l;t.set(r,!1);const a=i(r)&&d(r).every(n);return t.set(r,a),a};return{sets:f,offers:n}}const x="block-offer";function I(e=S()){return e.cache(x,()=>g(E(e)))}function M(e,f=S()){const o=I(f);return o?o.offers(e):!0}export{M as blockIsOffered,I as blockOfferOf,d as blocksLaidDownBy,v as blocksOutsideItsSet,K as hostPressOutsideItsList,g as resolveBlockOffer};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{phoneKey as i,tabletKey as l}from"efficient-easel/draw";import{BOX_CARD_PAD as E,BOX_SWATCH_PROP as ko,boxCardProps as Ho,boxIsCard as I}from"../../../../../../format/lib/content/box-background.js";import{BOX_IS_CARD_RULE as Fo,BOX_IS_NOT_CARD_RULE as Wo,BOX_ROW_IMAGE_PROP as yo}from"../../../../../../format/lib/content/box-card-rule.js";import{CARD_ROW_FACTS as Bo,cardRowField as M,cardRowFields as xo,cardRowLinkField as Uo,typedLinkField as Mo}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Ko,cardCopyPlace as K,cardTemplateCardOwner as Xo}from"../../../../../../format/lib/content/card-template.js";import{BOX_SHOW_KEY as Go,HOVER_GROUP_KEY as Yo,HOVER_KEY as T}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as vo,BOX_NEXT_PICTURE_ROW as jo}from"../../../../animation/hover-fields.js";import{darkenFields as Vo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as Jo,REEL_SHAPE_LABELS as zo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as X,CARD_LIST_STYLE_PICTURES as qo,TAB_SHAPE_PICTURES as Qo}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as A,CARD_STYLE_POINTS as Zo,applyCardStyle as $o,isCardStyle as oe}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as ee,ClockIcon as ne,CropIcon as G,GapIcon as te,MediaLayoutStackedIcon as Y,LineBetweenIcon as re,LineSolidIcon as ie,ListIcon as le,NumberedListIcon as v,ShadowIcon as ae,StylesIcon as j,TableIcon as V,TargetIcon as se,WrapIcon as J}from"efficient-easel/icons";import{boxBlockSpacingField as de,boxFillField as ce,boxColumnsFields as _e,boxShareField as pe,boxSharePhoneField as Oe,boxShareTabletField as Se,containerDirectionField as me,containerGapRows as fe,linkField as Re,plainText as ue,swapPadding as z,toggle as c,upload as q,withPanelOnly as he}from"../../../controls.js";import{BOX_STACK_LINE as L,BOX_STACK_RANGE as R,STACK_BELOW_PROP as N}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as Q,boxShapeOf as Ce}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as Ae}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as Z}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as $}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as we,ACCORDION_PHONE_COLUMN_COUNTS as Ee,BOX_COLUMNS_MAX as g,BOX_COLUMNS_MIN as b,boxPhoneRowOneLine as Te,boxWrapWordOf as oo}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as eo}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as no,VIEW_KEY_ACCESS as s,group as u,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as Ne,boxAlignField as De,boxJustifyField as Ie,boxWrapField as D,iconPickerRow as P,placementField as Le,select as k,sidesPaddingFields as to,slider as ro}from"../../../box-fields.js";import{withRowRules as ge,withShowWhen as H}from"../../../../../../render/lib/document/show-when.js";import{separatorField as be}from"../../../separator-field.js";import{LOOP_SCROLLS as Pe}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as ke,TICKER_JOIN_OPTIONS as He}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as io}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as lo}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as Fe}from"../../../box-side-space-field.js";import{accordionOnSet as We}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as ye,ACCORDION_ROW_STYLE_PROP as F}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as ao}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as Be,CONTAINER_BLOCKS_SLOT as xe}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as Ue}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Me,ON_A_CARD as so,ON_A_PICTURE_OR_CARD as Ke,cardDisplayField as W}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Xe,MIRROR_CARDS_MIRRORS as Ge,mirrorCardsField as Ye}from"../../../mirror-cards-field.js";import{handedRowOf as co}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as ve,showForField as je,showForFields as Ve}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as h,SHARED_COLUMNS_LABEL as _o,SHARED_COLUMNS_OFF as po,sharedColumnsDrawn as Oo,sharedColumnsFits as So,SHARED_COLUMNS_PHONE_POINTS as Je,SHARED_COLUMNS_POINTS as ze,sharedRowsDrawn as qe}from"../../../../../../render/lib/content/box-shared-columns.js";const mo=Fo,fo={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Qe={field:"direction",is:"tabs"},Ze={field:"line",in:[!0,!1]},$e={field:"anchor",set:!0},y=["fixed","screen","fill"],on={not:{any:[{field:"sectionHeightMode",in:y},{field:"sectionHeightModeTablet",in:y},{field:"sectionHeightModePhone",in:y}]}},en={context:"parent.line",is:!0},_={not:{field:"direction",is:"accordion"}},Ro={field:"direction",is:"accordion"},uo={any:[_,{not:{field:F,is:"numbered"}},{field:"columns",in:[...we]},{field:"phoneRow",in:[...Ee]}]},ho="notAccordionRow",nn={not:{context:ho,is:!0}},tn={[ho]:(o,e)=>e.parent?.props?.direction!=="accordion"},B={field:"direction",is:"row",default:"row"},p={not:Pe},O={all:[B,p,{not:{field:"separator",in:eo.map(o=>o.value)}},{not:{field:"line",is:!0}}]},rn={field:"direction",is:"column"},Co={all:[O,...["columns",l("columns")].map(o=>({not:{field:o,in:Array.from({length:g},(e,n)=>n+b)}}))]},ln={all:[p,{not:{all:[B,{field:"separator",in:eo.map(o=>o.value)}]}}]},x={not:{all:[O,{field:"columns",in:Array.from({length:g},(o,e)=>e+b)}]}},an="sharedColumnsFits",Ao="sharedColumnsMisfit",wo="sharedColumnsDraws",Eo="sharedColumnsPhoneDraws";function S(o,e){return Ho(o.props??{},K(e.appState,o.props?.id)?.inCopy!==!1)}const sn={[an]:(o,e)=>So(S(o,e)),[Ao]:(o,e)=>!So(S(o,e)),[wo]:(o,e)=>Oo(S(o,e)).desktop,[Eo]:(o,e)=>Oo(S(o,e)).phone};function To(o){return{all:[{not:{context:Ao,is:!0}},{any:[so,{field:o,set:!0}]}]}}const m={not:{context:wo,is:!0}},C={not:{context:Eo,is:!0}},No="sharedRowsDraws",dn={[No]:(o,e)=>qe(S(o,e))&&co(e.appState,o.props?.id)?.row===void 0},w={not:{context:No,is:!0}},cn={any:[m,C]},U=Wo,_n={not:{context:Ge,is:!0}},Do="rowHanded",pn={not:{context:Do,is:!0}},On={[Do]:(o,e)=>{const n=co(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},Io={all:[_,U,m,C,_n]},Sn={field:"direction",is:"row"},mn={field:"align",in:["start","center","end"]},fn={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function Rn(){const{darken:o,darkenStyle:e}=Vo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const Lo={not:{all:[O,{field:l("columns"),in:Array.from({length:g},(o,e)=>e+b)}]}};function un(){const o=c(no,!1,r(J,{})),e=n=>{const t=oo(n);return t===void 0?void 0:t==="wrap"};return{...D(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:t=>n.onChange(t===void 0?void 0:t?"wrap":"nowrap")})}}function hn(){const o=c(no,!0,r(J,{})),e=n=>{const t=oo(n);return t===void 0?void 0:t==="wrap"};return{...D(),render:n=>{const t=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!Te(void 0,t?n.follows:void 0),followsNoView:!t,onChange:f=>n.onChange(f===void 0?void 0:f?"wrap":"nowrap")})}}}const go={hint:L},bo={all:[U,{any:[rn,{all:[O,Lo,{not:{all:[Co,{field:l("share"),set:!0}]}}]}]}]},Cn=H(a("desktop",ro("Narrows below",r(Y,{}),R.min,R.max,R.step,L,{kind:"breakpoint"},{clear:go,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),bo);function An(o,e){const n=o;return!(N in n)||e.direction!=="column"?o:{...n,[N]:Cn}}const St={fields:ge({_gContent:u("Content"),rowTitle:ao.rowTitle,content:ao.content,_gCardDisplay:u("Display"),cardDisplay:W("desktop"),cardDisplayTablet:W("tablet"),cardDisplayPhone:W("mobile"),showFor:je(),_gLayout:u("Layout"),direction:me("Flex"),tabShape:P("Tab shape",r(j,{}),Jo.map(o=>({label:zo[o],value:o,picture:Qo[o]})),"tabs",{columns:2,cell:X}),mirrorCards:Ye(),[N]:a("desktop",ro("Stacks below",r(Y,{}),R.min,R.max,R.step,L,{kind:"breakpoint"},{clear:go,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[lo]:Fe(),startsOpen:a("desktop",c("Starts open",!1,r(ee,{}))),[F]:a("desktop",P("Row style",r(v,{}),ye.map(o=>({...o,picture:o.value==="numbered"?r(v,{}):r(le,{})})),"plain",{columns:2})),label:he(ue("Tab name")),...fe("Flex"),...d("justify",Ie(),s),...d("align",De(),s),...(()=>{const o=d("wrap",D(),s,{phoneRow:hn()}),e=d("wrap",D(),s,{phoneRow:un()});return{wrap:e.wrap,[l("wrap")]:e[l("wrap")],[i("wrap")]:o[i("wrap")]}})(),[i("order")]:Ue(),...d("boxShape",$("Box shape",r(G,{}),Z(Q),"shape","auto"),s,{phoneRow:$("Box shape",r(G,{}),Z(Q),"shape","auto",{phoneRest:o=>Ce(o)})}),[Ae]:a("desktop",Ne(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:be(r(re,{size:18}),"none"),[A]:a("desktop",P("Card style",r(j,{}),Zo.map(o=>({...o,picture:qo[o.value]})),"table",{columns:2,cell:X})),share:a("desktop",pe()),[l("share")]:Se(),[i("share")]:Oe(),[h]:a("desktop",k(_o,r(V,{}),[...ze],po)),[i(h)]:a("mobile",k(_o,r(V,{}),[...Je],po)),..._e(),...d("blockSpacing",de(),s),line:c("Line",!1,r(ie,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,r(ne,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:k("Join",r(te,{}),He,ke),_gShadow:u("Shadow"),...d("shadow",c("Shadow",!1,r(ae,{})),s),...d("fillColor",ce(),s),[ko]:M("Fill content","colour"),_gBackground:u("Background image"),bgImage:a("desktop",q("Image","image/*")),bgImagePhone:a("mobile",q("Image","image/*")),[yo]:M("Image content","image",{content:!0}),...Rn(),placement:Le("Content position"),_gLink:u("Link"),link:Mo(Re("Link to")),[Ko]:Uo(),jumpHighlight:c("Highlight when a link jumps here",!1,r(se,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],mo],[[i("share")],{all:[fo,C]}],[[h],To(h)],[[i(h)],To(i(h))],[[i("wrap")],{all:[fo,p,C,w]}],[[i("order")],{all:[O,C,m]}],[["phoneRow"],C],[[F],Ro],[["tabShape"],Qe],[["rowTitle","startsOpen"],nn],[["align","blockSpacing",l("blockSpacing"),i("blockSpacing")],_],[[l("justify"),i("justify")],{all:[p,Io,w]}],[[l("align"),i("align")],{all:[Sn,mn,Io]}],[[l("wrap")],{all:[p,x,Lo,m,_,w]}],[[l("shadow"),i("shadow")],U],[[l("darken"),i("darken"),l("darkenStyle"),i("darkenStyle")],{all:[mo,fn]}],[["separator"],B],[[A],{field:A,set:!0}],[["columns"],{any:[O,Ro]}],[[l("columns")],O],[[N],bo],[[l("gap")],{all:[ln,uo]}],[["gap",i("gap")],uo],[["justify"],{all:[p,cn,_,w]}],[["wrap"],{all:[p,x,m,_,w]}],[["share"],{all:[x,m,_]}],[[l("share")],{all:[Co,m]}],[["line"],Ze],[["upcoming"],en],[["jumpHighlight"],$e],[["boxShape",l("boxShape"),i("boxShape")],on],[["direction","share",i("order")],pn],[["join"],io],[[lo],io]]),resolveData:(o,e)=>{const n=o.props,t=n[A];return e.changed?.[A]===!0&&oe(t)?{...o,props:$o(n,t,Be,xe)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:We(n)}:o},resolveFields:(o,e)=>{const n=K(e.appState,o.props?.id)?.inCopy===!0,t=n&&Xo(e.appState,o.props?.id)===null;return An(Tn(Nn(Ve(Dn(o,{...e,fields:xo(e.fields,o,e)}),o.props),S(o,e),n),t),o.props)},showWhenFacts:{...Bo,...Me,...Xe,...On,...sn,...dn,...ve,...tn}},wn=H(vo,so),En=["darken","darkenStyle",Yo,Go];function Tn(o,e){if(!e)return o;const n={...o};for(const t of En){if(!(t in n))continue;const{showWhen:f,...Po}=n[t];n[t]=Po}return n}function Nn(o,e,n=!1){const t=o;return T in t&&I(e)&&n?{...t,[T]:H(jo,Ke)}:!(T in t)||I(e)?o:{...t,[T]:wn}}function Dn(...[o,e]){const{fields:n}=e;{if(I(S(o,e))){const f=to({fallback:{top:E.desktop,bottom:E.desktop,left:E.side,right:E.side},tablet:!0,siteSide:!0});return z(n,f)}return o.props.padV2!==!0?z(n,to({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):n}}export{St as FlexFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{phoneKey as i,tabletKey as l}from"efficient-easel/draw";import{keptByRow as ko}from"efficient-easel/screen/lib/document/style-fields";import{BOX_CARD_PAD as E,BOX_FILL_FADE_PROP as Fo,BOX_SWATCH_PROP as Ho,boxCardProps as Wo,boxIsCard as I}from"../../../../../../format/lib/content/box-background.js";import{BOX_IS_CARD_RULE as yo,BOX_IS_NOT_CARD_RULE as Bo,BOX_ROW_IMAGE_PROP as xo}from"../../../../../../format/lib/content/box-card-rule.js";import{CARD_ROW_FACTS as Uo,cardRowField as M,cardRowFields as Mo,cardRowLinkField as Ko,typedLinkField as Xo}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Go,cardCopyPlace as K,cardTemplateCardOwner as Yo}from"../../../../../../format/lib/content/card-template.js";import{BOX_SHOW_KEY as vo,HOVER_GROUP_KEY as jo,HOVER_KEY as T}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as Vo,BOX_NEXT_PICTURE_ROW as Jo}from"../../../../animation/hover-fields.js";import{darkenFields as zo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as qo,REEL_SHAPE_LABELS as Qo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as X,CARD_LIST_STYLE_PICTURES as Zo,TAB_SHAPE_PICTURES as $o}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as A,CARD_STYLE_POINTS as oe,applyCardStyle as ee,isCardStyle as ne}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as te,ClockIcon as re,CropIcon as G,GapIcon as ie,MediaLayoutStackedIcon as Y,LineBetweenIcon as le,LineSolidIcon as ae,ListIcon as se,NumberedListIcon as v,ShadowIcon as de,StylesIcon as j,TableIcon as V,TargetIcon as ce,WrapIcon as J}from"efficient-easel/icons";import{boxBlockSpacingField as _e,boxFillField as pe,boxColumnsFields as Oe,boxShareField as Se,boxSharePhoneField as me,boxShareTabletField as fe,containerDirectionField as Re,containerGapRows as he,linkField as ue,plainText as Ce,swapPadding as z,toggle as c,upload as q,withPanelOnly as Ae}from"../../../controls.js";import{BOX_STACK_LINE as g,BOX_STACK_RANGE as R,STACK_BELOW_PROP as N}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as Q,boxShapeOf as we}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as Ee}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as Z}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as $}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as Te,ACCORDION_PHONE_COLUMN_COUNTS as Ne,BOX_COLUMNS_MAX as P,BOX_COLUMNS_MIN as b,boxPhoneRowOneLine as De,boxWrapWordOf as oo}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as eo}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as no,VIEW_KEY_ACCESS as s,group as h,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as Le,boxAlignField as Ie,boxJustifyField as ge,boxWrapField as D,iconPickerRow as k,placementField as Pe,select as F,sidesPaddingFields as to,slider as ro}from"../../../box-fields.js";import{withRowRules as be,withShowWhen as H}from"../../../../../../render/lib/document/show-when.js";import{separatorField as ke}from"../../../separator-field.js";import{LOOP_SCROLLS as Fe}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as He,TICKER_JOIN_OPTIONS as We}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as io}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as lo}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as ye}from"../../../box-side-space-field.js";import{accordionOnSet as Be}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as xe,ACCORDION_ROW_STYLE_PROP as L}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as ao}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as Ue,CONTAINER_BLOCKS_SLOT as Me}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as Ke}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Xe,ON_A_CARD as so,ON_A_PICTURE_OR_CARD as Ge,cardDisplayField as W}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Ye,MIRROR_CARDS_MIRRORS as ve,mirrorCardsField as je}from"../../../mirror-cards-field.js";import{handedRowOf as co}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Ve,showForField as Je,showForFields as ze}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as u,SHARED_COLUMNS_LABEL as _o,SHARED_COLUMNS_OFF as po,sharedColumnsDrawn as Oo,sharedColumnsFits as So,SHARED_COLUMNS_PHONE_POINTS as qe,SHARED_COLUMNS_POINTS as Qe,sharedRowsDrawn as Ze}from"../../../../../../render/lib/content/box-shared-columns.js";const mo=yo,fo={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},$e={field:"direction",is:"tabs"},on={field:"line",in:[!0,!1]},en={field:"anchor",set:!0},y=["fixed","screen","fill"],nn={not:{any:[{field:"sectionHeightMode",in:y},{field:"sectionHeightModeTablet",in:y},{field:"sectionHeightModePhone",in:y}]}},tn={context:"parent.line",is:!0},_={not:{field:"direction",is:"accordion"}},Ro={field:"direction",is:"accordion"},ho={any:[_,{not:{field:L,in:["numbered","chevron"]}},{field:"columns",in:[...Te]},{field:"phoneRow",in:[...Ne]}]},uo="notAccordionRow",rn={not:{context:uo,is:!0}},ln={[uo]:(o,e)=>e.parent?.props?.direction!=="accordion"},B={field:"direction",is:"row",default:"row"},p={not:Fe},O={all:[B,p,{not:{field:"separator",in:eo.map(o=>o.value)}},{not:{field:"line",is:!0}}]},an={field:"direction",is:"column"},Co={all:[O,...["columns",l("columns")].map(o=>({not:{field:o,in:Array.from({length:P},(e,n)=>n+b)}}))]},sn={all:[p,{not:{all:[B,{field:"separator",in:eo.map(o=>o.value)}]}}]},x={not:{all:[O,{field:"columns",in:Array.from({length:P},(o,e)=>e+b)}]}},dn="sharedColumnsFits",Ao="sharedColumnsMisfit",wo="sharedColumnsDraws",Eo="sharedColumnsPhoneDraws";function S(o,e){return Wo(o.props??{},K(e.appState,o.props?.id)?.inCopy!==!1)}const cn={[dn]:(o,e)=>So(S(o,e)),[Ao]:(o,e)=>!So(S(o,e)),[wo]:(o,e)=>Oo(S(o,e)).desktop,[Eo]:(o,e)=>Oo(S(o,e)).phone};function To(o){return{all:[{not:{context:Ao,is:!0}},{any:[so,{field:o,set:!0}]}]}}const m={not:{context:wo,is:!0}},C={not:{context:Eo,is:!0}},No="sharedRowsDraws",_n={[No]:(o,e)=>Ze(S(o,e))&&co(e.appState,o.props?.id)?.row===void 0},w={not:{context:No,is:!0}},pn={any:[m,C]},U=Bo,On={not:{context:ve,is:!0}},Do="rowHanded",Sn={not:{context:Do,is:!0}},mn={[Do]:(o,e)=>{const n=co(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},Lo={all:[_,U,m,C,On]},fn={field:"direction",is:"row"},Rn={field:"align",in:["start","center","end"]},hn={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function un(){const{darken:o,darkenStyle:e}=zo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const Io={not:{all:[O,{field:l("columns"),in:Array.from({length:P},(o,e)=>e+b)}]}};function Cn(){const o=c(no,!1,r(J,{})),e=n=>{const t=oo(n);return t===void 0?void 0:t==="wrap"};return{...D(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:t=>n.onChange(t===void 0?void 0:t?"wrap":"nowrap")})}}function An(){const o=c(no,!0,r(J,{})),e=n=>{const t=oo(n);return t===void 0?void 0:t==="wrap"};return{...D(),render:n=>{const t=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!De(void 0,t?n.follows:void 0),followsNoView:!t,onChange:f=>n.onChange(f===void 0?void 0:f?"wrap":"nowrap")})}}}const go={hint:g},Po={all:[U,{any:[an,{all:[O,Io,{not:{all:[Co,{field:l("share"),set:!0}]}}]}]}]},wn=H(a("desktop",ro("Narrows below",r(Y,{}),R.min,R.max,R.step,g,{kind:"breakpoint"},{clear:go,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Po);function En(o,e){const n=o;return!(N in n)||e.direction!=="column"?o:{...n,[N]:wn}}const Rt={fields:be({_gContent:h("Content"),rowTitle:ao.rowTitle,content:ao.content,_gCardDisplay:h("Display"),cardDisplay:W("desktop"),cardDisplayTablet:W("tablet"),cardDisplayPhone:W("mobile"),showFor:Je(),_gLayout:h("Layout"),direction:Re("Flex"),tabShape:k("Tab shape",r(j,{}),qo.map(o=>({label:Qo[o],value:o,picture:$o[o]})),"tabs",{columns:2,cell:X}),mirrorCards:je(),[N]:a("desktop",ro("Stacks below",r(Y,{}),R.min,R.max,R.step,g,{kind:"breakpoint"},{clear:go,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[lo]:ye(),startsOpen:a("desktop",c("Starts open",!1,r(te,{}))),[L]:a("desktop",k("Row style",r(v,{}),xe.map(o=>({...o,picture:o.value==="numbered"?r(v,{}):r(se,{})})),"plain",{columns:2})),label:Ae(Ce("Tab name")),...he("Flex"),...d("justify",ge(),s),...d("align",Ie(),s),...(()=>{const o=d("wrap",D(),s,{phoneRow:An()}),e=d("wrap",D(),s,{phoneRow:Cn()});return{wrap:e.wrap,[l("wrap")]:e[l("wrap")],[i("wrap")]:o[i("wrap")]}})(),[i("order")]:Ke(),...d("boxShape",$("Box shape",r(G,{}),Z(Q),"shape","auto"),s,{phoneRow:$("Box shape",r(G,{}),Z(Q),"shape","auto",{phoneRest:o=>we(o)})}),[Ee]:a("desktop",Le(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:ke(r(le,{size:18}),"none"),[A]:a("desktop",k("Card style",r(j,{}),oe.map(o=>({...o,picture:Zo[o.value]})),"table",{columns:2,cell:X})),share:a("desktop",Se()),[l("share")]:fe(),[i("share")]:me(),[u]:a("desktop",F(_o,r(V,{}),[...Qe],po)),[i(u)]:a("mobile",F(_o,r(V,{}),[...qe],po)),...Oe(),...d("blockSpacing",_e(),s),line:c("Line",!1,r(ae,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,r(re,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:F("Join",r(ie,{}),We,He),_gShadow:h("Shadow"),...d("shadow",c("Shadow",!1,r(de,{})),s),...d("fillColor",pe(),s),[Ho]:M("Fill content","colour"),[Fo]:ko("fillColor"),_gBackground:h("Background image"),bgImage:a("desktop",q("Image","image/*")),bgImagePhone:a("mobile",q("Image","image/*")),[xo]:M("Image content","image",{content:!0}),...un(),placement:Pe("Content position"),_gLink:h("Link"),link:Xo(ue("Link to")),[Go]:Ko(),jumpHighlight:c("Highlight when a link jumps here",!1,r(ce,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],mo],[[i("share")],{all:[fo,C]}],[[u],To(u)],[[i(u)],To(i(u))],[[i("wrap")],{all:[fo,p,C,w]}],[[i("order")],{all:[O,C,m]}],[["phoneRow"],C],[[L],{all:[Ro,{not:{field:L,is:"chevron"}}]}],[["tabShape"],$e],[["rowTitle","startsOpen"],rn],[["align","blockSpacing",l("blockSpacing"),i("blockSpacing")],_],[[l("justify"),i("justify")],{all:[p,Lo,w]}],[[l("align"),i("align")],{all:[fn,Rn,Lo]}],[[l("wrap")],{all:[p,x,Io,m,_,w]}],[[l("shadow"),i("shadow")],U],[[l("darken"),i("darken"),l("darkenStyle"),i("darkenStyle")],{all:[mo,hn]}],[["separator"],B],[[A],{field:A,set:!0}],[["columns"],{any:[O,Ro]}],[[l("columns")],O],[[N],Po],[[l("gap")],{all:[sn,ho]}],[["gap",i("gap")],ho],[["justify"],{all:[p,pn,_,w]}],[["wrap"],{all:[p,x,m,_,w]}],[["share"],{all:[x,m,_]}],[[l("share")],{all:[Co,m]}],[["line"],on],[["upcoming"],tn],[["jumpHighlight"],en],[["boxShape",l("boxShape"),i("boxShape")],nn],[["direction","share",i("order")],Sn],[["join"],io],[[lo],io]]),resolveData:(o,e)=>{const n=o.props,t=n[A];return e.changed?.[A]===!0&&ne(t)?{...o,props:ee(n,t,Ue,Me)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:Be(n)}:o},resolveFields:(o,e)=>{const n=K(e.appState,o.props?.id)?.inCopy===!0,t=n&&Yo(e.appState,o.props?.id)===null;return En(Dn(Ln(ze(In(o,{...e,fields:Mo(e.fields,o,e)}),o.props),S(o,e),n),t),o.props)},showWhenFacts:{...Uo,...Xe,...Ye,...mn,...cn,..._n,...Ve,...ln}},Tn=H(Vo,so),Nn=["darken","darkenStyle",jo,vo];function Dn(o,e){if(!e)return o;const n={...o};for(const t of Nn){if(!(t in n))continue;const{showWhen:f,...bo}=n[t];n[t]=bo}return n}function Ln(o,e,n=!1){const t=o;return T in t&&I(e)&&n?{...t,[T]:H(Jo,Ge)}:!(T in t)||I(e)?o:{...t,[T]:Tn}}function In(...[o,e]){const{fields:n}=e;{if(I(S(o,e))){const f=to({fallback:{top:E.desktop,bottom:E.desktop,left:E.side,right:E.side},tablet:!0,siteSide:!0});return z(n,f)}return o.props.padV2!==!0?z(n,to({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):n}}export{Rt as FlexFields};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{FOOTPRINT_DEFAULTS as T}from"../../../../../../format/lib/content/footprint.js";import{HeadquartersIcon as R,LayoutIcon as P,LocationIcon as C,SearchIcon as _,ThemeIcon as w}from"efficient-easel/icons";import{CoordsField as I,copyText as v,plainText as r,sourceField as k,text as n,textarea as g,toggle as a,withPanelOnly as S}from"../../../controls.js";import{group as c,section as A}from"efficient-easel/screen/lib/document/box-fields";import{segmented as y}from"../../../box-fields.js";import{withShowWhen as i}from"../../../../../../render/lib/document/show-when.js";import{needsGeocodeWork as D,resolveGeocodeRows as x}from"../../../geocode-resolve.js";import{deviceField as s}from"efficient-easel/screen/lib/document/device-fields";import{SPLITTABLE_SECTIONS as B,headFieldsForPlacement as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as N}from"../../shared-fields.js";import{BLOCK_SOURCE_PROP as p,DEALERS_SOURCE as U,registerBlockSources as j}from"../../../../../../format/lib/content/block-sources.js";import{blockSourceField as q,blockSourceFields as G}from"../../../block-source-fields.js";import{DEALERS_BLOCK_SOURCE as M}from"../../../../../../render/lib/dealer-source.js";import{FOOTPRINT_PH as f,FootprintSlots as K}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";import{withFootprintListTemplate as W}from"../../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const F={field:p,is:U,default:""},Q={field:"listPosition",in:["left","right"],default:"below"},L={any:[F,Q]},O={all:[L,{field:"search",is:!0,default:!1}]};j([M]);const ce={fields:{_gContent:c("Section"),sectionNumber:n("Section number",f.sectionNumber),heading:g("Heading",f.heading),tagline:g("Body",f.tagline),_gOffices:c("Offices"),[p]:q("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:r("Role"),city:r("City"),country:r("Region · country"),address:v("Address"),phone:r("Phone"),group:r("Group"),hq:a("HQ",!1,t(R,{})),geocode:k(I,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...K,mapTheme:y("Map theme",t(w,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],T.mapTheme),_gList:c("List"),listPosition:s("desktop",y("Position",t(P,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:s("desktop",i(a("Search",!1,t(_,{})),L)),searchHint:s("desktop",i(S(n("Hint","Type a postcode or address")),O)),noMatchText:s("desktop",i(S(n("No match","No place found. Try another postcode.")),O)),showDistance:i(a("Distance",!0,t(C,{})),F),_dLayout:A("Layout"),...N("Footprint")},resolveData:async(e,l)=>{const d=l?.changed,m=e.props;if(d?.listPosition===!0||d?.[p]===!0){const o=W(m);o!==m&&(e={...e,props:o})}const u=e.props,h=u.offices??[];if(!D(h))return e;const b=await x(h,o=>[o.address,o.city,o.country].map(E=>String(E??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...u,offices:b}}},resolveFields:(e,{fields:l})=>H(G("Footprint",l,e.props,{hides:["offices"]}),e.props.headPlacement,B.Footprint.headRows)};export{ce as FootprintFields};
1
+ import{jsx as t}from"react/jsx-runtime";import{FOOTPRINT_DEFAULTS as L}from"../../../../../../format/lib/content/footprint.js";import{HeadquartersIcon as R,LayoutIcon as P,LocationIcon as C,SearchIcon as _,ThemeIcon as w}from"efficient-easel/icons";import{CoordsField as I,copyText as v,plainText as r,sourceField as k,text as n,textarea as g,toggle as a,withPanelOnly as S}from"../../../controls.js";import{group as c}from"efficient-easel/screen/lib/document/box-fields";import{segmented as y}from"../../../box-fields.js";import{withShowWhen as i}from"../../../../../../render/lib/document/show-when.js";import{needsGeocodeWork as A,resolveGeocodeRows as D}from"../../../geocode-resolve.js";import{deviceField as s}from"efficient-easel/screen/lib/document/device-fields";import{SPLITTABLE_SECTIONS as x,headFieldsForPlacement as B}from"../../../../../../format/lib/sections/section-head-placement.js";import{BLOCK_SOURCE_PROP as p,DEALERS_SOURCE as H,registerBlockSources as N}from"../../../../../../format/lib/content/block-sources.js";import{blockSourceField as U,blockSourceFields as j}from"../../../block-source-fields.js";import{DEALERS_BLOCK_SOURCE as q}from"../../../../../../render/lib/dealer-source.js";import{FOOTPRINT_PH as f,FootprintSlots as G}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";import{withFootprintListTemplate as M}from"../../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const F={field:p,is:H,default:""},K={field:"listPosition",in:["left","right"],default:"below"},O={any:[F,K]},b={all:[O,{field:"search",is:!0,default:!1}]};N([q]);const le={fields:{_gContent:c("Section"),sectionNumber:n("Section number",f.sectionNumber),heading:g("Heading",f.heading),tagline:g("Body",f.tagline),_gOffices:c("Offices"),[p]:U("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:r("Role"),city:r("City"),country:r("Region · country"),address:v("Address"),phone:r("Phone"),group:r("Group"),hq:a("HQ",!1,t(R,{})),geocode:k(I,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...G,mapTheme:y("Map theme",t(w,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],L.mapTheme),_gList:c("List"),listPosition:s("desktop",y("Position",t(P,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:s("desktop",i(a("Search",!1,t(_,{})),O)),searchHint:s("desktop",i(S(n("Hint","Type a postcode or address")),b)),noMatchText:s("desktop",i(S(n("No match","No place found. Try another postcode.")),b)),showDistance:i(a("Distance",!0,t(C,{})),F)},resolveData:async(e,l)=>{const d=l?.changed,m=e.props;if(d?.listPosition===!0||d?.[p]===!0){const o=M(m);o!==m&&(e={...e,props:o})}const u=e.props,h=u.offices??[];if(!A(h))return e;const E=await D(h,o=>[o.address,o.city,o.country].map(T=>String(T??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...u,offices:E}}},resolveFields:(e,{fields:l})=>B(j("Footprint",l,e.props,{hides:["offices"]}),e.props.headPlacement,x.Footprint.headRows)};export{le as FootprintFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as n,ClockIcon as g,ImageIcon as p,MediaIcon as s,OpacityIcon as u,PlayIcon as v}from"efficient-easel/icons";import{colorInput as f,focusKeptField as o,loadingShowsField as I,MEDIA_TYPE_OPTIONS as y,plainText as _,text as S,upload as a,withIdentifier as O,withPanelOnly as m}from"../../../controls.js";import{group as i}from"efficient-easel/screen/lib/document/box-fields";import{segmented as F,slider as t}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as E,VIDEO_PLAYBACK_DEFAULT as T,VIDEO_SOURCE_DEFAULT as l}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as c,HERO_VIDEO_ROWS as d}from"../../hero-shared-fields.js";import{PH as P}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as b}from"../../shared-fields.js";import{forMediaType as L,heroMediaFields as D,VIDEO_FILE_LABEL as h,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{DEFAULT_TINT as A}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const r=L("video","video"),G={fields:D({_gContent:i("Content"),name:m(O(_("Slide name",P.slideName))),process:m(S("Reel label","Label")),groupNotice:b("HeroSlide"),groups:C.groups,_gMedia:i("Media"),mediaType:F("Type",e(s,{}),y,"video"),videoSource:d.videoSource,mediaVideo:a(h,"video/*",k,{frame:"videoFrame"}),youtubeUrl:d.youtubeUrl,videoPlayback:d.videoPlayback,videoSpeed:t("Playback speed",e(v,{}),25,100,5,100,"%"),loadingShows:I("Show while loading",e(g,{}),{frame:e(n,{}),image:e(p,{})}),videoFrame:o(),mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:o(),imageFocalTablet:o(),imageFocalPhone:o(),poster:a("Image","image/*","Choose an image"),_gTint:i("Image tint"),tintColor:f("Tint color",A),overlay:t("Tint",e(u,{}),0,100,5,0,"%"),_gOverlay:i("Overlay"),overlayColor:c.overlayColor,overlayPosition:c.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[r,{field:"videoSource",is:"upload",default:l}]},youtubeUrl:{all:[r,{field:"videoSource",is:"youtube",default:l}]},videoSpeed:{all:[r,{field:"videoSource",is:"upload",default:l},{field:"videoPlayback",is:"background",default:T}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},E]}}})};export{G as HeroSlideFields};
1
+ import{jsx as o}from"react/jsx-runtime";import{BlockVideoIcon as g,ClockIcon as I,ImageIcon as _,MediaIcon as P,OpacityIcon as S,PlayIcon as y}from"efficient-easel/icons";import{colorInput as F,focusKeptField as l,loadingShowsField as E,MEDIA_TYPE_OPTIONS as O,plainText as T,text as h,upload as e,withIdentifier as b,withPanelOnly as t}from"../../../controls.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{segmented as V,slider as n}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as p,VIDEO_PLAYBACK_DEFAULT as A,VIDEO_SOURCE_DEFAULT as i}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as v,HERO_VIDEO_ROWS as m}from"../../hero-shared-fields.js";import{PH as L}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as k}from"../../shared-fields.js";import{AV1_FILE_LABEL as c,AV1_FILE_PROMPT as s,forMediaType as D,heroMediaFields as C,VIDEO_FILE_LABEL as u,VIDEO_FILE_PROMPT as f}from"../../../../../../render/lib/document/hero-media-parts.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{DEFAULT_TINT as M}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as R}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const d=D("video","video"),J={fields:C({_gContent:r("Content"),name:t(b(T("Slide name",L.slideName))),process:t(h("Reel label","Label")),groupNotice:k("HeroSlide"),groups:R.groups,_gMedia:r("Media"),mediaType:V("Type",o(P,{}),O,"video"),videoSource:m.videoSource,mediaVideo:a("desktop",e(u,"video/*",f,{frame:"videoFrame"})),mediaVideoPhone:a("mobile",e(u,"video/*",f,{frame:"videoFramePhone"})),videoFramePhone:l(),mediaVideoAv1:a("desktop",e(c,"video/mp4",s)),mediaVideoAv1Phone:a("mobile",e(c,"video/mp4",s)),youtubeUrl:m.youtubeUrl,videoPlayback:m.videoPlayback,videoSpeed:n("Playback speed",o(y,{}),25,100,5,100,"%"),loadingShows:E("Show while loading",o(I,{}),{frame:o(g,{}),image:o(_,{})}),videoFrame:l(),mediaImage:e("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:l(),imageFocalTablet:l(),imageFocalPhone:l(),poster:a("desktop",e("Image","image/*","Choose an image")),posterPhone:a("mobile",e("Image","image/*","Choose an image")),_gTint:r("Image tint"),tintColor:F("Tint color",M),overlay:n("Tint",o(S,{}),0,100,5,0,"%"),_gOverlay:r("Overlay"),overlayColor:v.overlayColor,overlayPosition:v.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalTablet","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[d,{field:"videoSource",is:"upload",default:i}]},mediaVideoPhone:{all:[d,{field:"videoSource",is:"upload",default:i}]},mediaVideoAv1:{all:[d,{field:"videoSource",is:"upload",default:i}]},mediaVideoAv1Phone:{all:[d,{field:"videoSource",is:"upload",default:i}]},youtubeUrl:{all:[d,{field:"videoSource",is:"youtube",default:i}]},videoSpeed:{all:[d,{field:"videoSource",is:"upload",default:i},{field:"videoPlayback",is:"background",default:A}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},p]},posterPhone:{all:[{field:"mediaType",is:"video",default:"video"},p]}}})};export{J as HeroSlideFields};
@@ -1 +1 @@
1
- import{copyText as a,text as n,textarea as t}from"../../../controls.js";import{group as r}from"efficient-easel/screen/lib/document/box-fields";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{innerSpacingFields as i}from"../../shared-fields.js";import{PARAGRAPHS_A_PH as e}from"../../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";const p={fields:{_gContent:r("Content"),eyebrow:n("Eyebrow",e.eyebrow),lead:t("Lead",d.body),stats:{type:"array",label:"Stats",arrayFields:{value:a("Number"),label:a("Unit")},getItemSummary:o=>o.label||o.value||"Stat"},_gFounders:r("Founders"),foundersHeading:t("Founders heading",e.foundersHeading),foundersBody:t("Founders statement",e.foundersBody),attribution:n("Attribution",e.attribution),_gStyle:r("Style"),...i("ParagraphsA")}};export{p as ParagraphsAFields};
1
+ import{copyText as o,text as a,textarea as t}from"../../../controls.js";import{group as n}from"efficient-easel/screen/lib/document/box-fields";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{PARAGRAPHS_A_PH as e}from"../../../../../../format/lib/document/blocks/general/ParagraphsA/meta.js";const m={fields:{_gContent:n("Content"),eyebrow:a("Eyebrow",e.eyebrow),lead:t("Lead",d.body),stats:{type:"array",label:"Stats",arrayFields:{value:o("Number"),label:o("Unit")},getItemSummary:r=>r.label||r.value||"Stat"},_gFounders:n("Founders"),foundersHeading:t("Founders heading",e.foundersHeading),foundersBody:t("Founders statement",e.foundersBody),attribution:a("Attribution",e.attribution)}};export{m as ParagraphsAFields};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as T,PlacementIcon as g}from"efficient-easel/icons";import{deviceField as E}from"efficient-easel/screen/lib/document/device-fields";import{cardImageFields as O,text as i,textarea as b}from"../../../controls.js";import{group as n,section as s}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,segmented as l,slider as R}from"../../../box-fields.js";import{IMAGE_TEXT_ARRANGEMENT_PICTURES as h,LAYOUT_CELL as C}from"../../../choice-pictures.js";import{BLOCK_SOURCE_EDIT_PROP as L,blockSourceEditField as x,blockSourceField as A,blockSourceFields as w}from"../../../block-source-fields.js";import{declaredBlockSource as a}from"../../../../../../format/lib/content/block-sources.js";import{ARRANGEMENT_OPTIONS as N,IMAGE_WIDTH_OPTIONS as v,PHONE_ORDER_OPTIONS as F}from"../../../../../../format/lib/content/image-text-rows.js";import{imageTextRowTemplate as y}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/row-seed.js";import{SPLITTABLE_SECTIONS as D,headFieldsForPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as H}from"../../../../../../format/lib/document/blocks/placeholders.js";import{innerSpacingFields as W}from"../../shared-fields.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{isNodeList as m}from"efficient-easel/data";import{PROCESS_PH as p,ProcessStepsSlots as c}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const u={field:"arrangement",in:["rows-left","rows-right"]},d="drawsLegacySteps",S={not:{context:d,is:!0}},M={[d]:e=>{const o=e.props??{};return!a(o)&&!m(o.boxes)}},B=e=>e?.data?.root?.props??null,le={fields:k({_gSource:n("Source"),dataSource:A("Item content","Manual"),[L]:x(),_sHeader:s("Header"),_gContent:n("Content"),num:i("Number",p.num),title:i("Heading",p.title),description:b("Body",H.body),boxes:c.boxes,template:c.template,_dDesign:s("Design"),arrangement:I("Arrangement",r(P,{}),N.map(e=>({label:e.label,value:e.value,picture:h[e.value]})),"columns",{columns:3,cell:C}),imageWidth:l("Image width",r(f,{}),v.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:E("mobile",l("Order",r(T,{}),F.map(e=>({label:e.label,value:e.value})),"picture")),columns:R("Columns",r(_,{}),2,4,1,3),...O(),cardText:l("Text position",r(g,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below"),_dLayout:s("Layout"),...W("ProcessSteps")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],S],[["imageWidth","phoneOrder"],{all:[u,S]}],[["columns"],{not:u}]]),showWhenFacts:M,resolveFields:(e,o)=>w("ProcessSteps",G(o.fields,e.props.headPlacement,D.ProcessSteps.headRows),e.props,{root:B(o.appState)}),resolveData:(e,o)=>{const t=e.props;return o?.changed?.dataSource!==!0||!a(t)||m(t.template)?e:{...e,props:{...t,template:y(String(t.id??"ProcessSteps"))}}}};export{le as ProcessStepsFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as T,PlacementIcon as E}from"efficient-easel/icons";import{deviceField as g}from"efficient-easel/screen/lib/document/device-fields";import{cardImageFields as O,text as s,textarea as b}from"../../../controls.js";import{group as i,section as n}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,segmented as l,slider as R}from"../../../box-fields.js";import{IMAGE_TEXT_ARRANGEMENT_PICTURES as h,LAYOUT_CELL as C}from"../../../choice-pictures.js";import{BLOCK_SOURCE_EDIT_PROP as x,blockSourceEditField as A,blockSourceField as w,blockSourceFields as L}from"../../../block-source-fields.js";import{declaredBlockSource as m}from"../../../../../../format/lib/content/block-sources.js";import{ARRANGEMENT_OPTIONS as N,IMAGE_WIDTH_OPTIONS as v,PHONE_ORDER_OPTIONS as F}from"../../../../../../format/lib/content/image-text-rows.js";import{imageTextRowTemplate as D}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/row-seed.js";import{SPLITTABLE_SECTIONS as G,headFieldsForPlacement as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as W}from"../../../../../../format/lib/document/blocks/placeholders.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{isNodeList as a}from"efficient-easel/data";import{PROCESS_PH as p,ProcessStepsSlots as c}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const u={field:"arrangement",in:["rows-left","rows-right"]},d="drawsLegacySteps",S={not:{context:d,is:!0}},M={[d]:e=>{const o=e.props??{};return!m(o)&&!a(o.boxes)}},y=e=>e?.data?.root?.props??null,te={fields:k({_gSource:i("Source"),dataSource:w("Item content","Manual"),[x]:A(),_sHeader:n("Header"),_gContent:i("Content"),num:s("Number",p.num),title:s("Heading",p.title),description:b("Body",W.body),boxes:c.boxes,template:c.template,_dDesign:n("Design"),arrangement:I("Arrangement",r(P,{}),N.map(e=>({label:e.label,value:e.value,picture:h[e.value]})),"columns",{columns:3,cell:C}),imageWidth:l("Image width",r(f,{}),v.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:g("mobile",l("Order",r(T,{}),F.map(e=>({label:e.label,value:e.value})),"picture")),columns:R("Columns",r(_,{}),2,4,1,3),...O(),cardText:l("Text position",r(E,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],S],[["imageWidth","phoneOrder"],{all:[u,S]}],[["columns"],{not:u}]]),showWhenFacts:M,resolveFields:(e,o)=>L("ProcessSteps",H(o.fields,e.props.headPlacement,G.ProcessSteps.headRows),e.props,{root:y(o.appState)}),resolveData:(e,o)=>{const t=e.props;return o?.changed?.dataSource!==!0||!m(t)||a(t.template)?e:{...e,props:{...t,template:D(String(t.id??"ProcessSteps"))}}}};export{te as ProcessStepsFields};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{AccentIcon as i}from"efficient-easel/icons";import{backgroundField as p,plainText as e,plainTextarea as m,text as f,textarea as t,toggle as u}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as d,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as S}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as g}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{STATS_PARAGRAPH_PH as r}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const A={fields:{_gContent:o("Content"),eyebrow:f("Eyebrow",r.eyebrow),title:t("Heading",r.title),desc:t("Body",r.desc),stats:{type:"array",label:"Stats",arrayFields:{value:e("Number"),prefix:e("Prefix"),suffix:e("Unit"),supSuffix:e("Superscript"),emphasizeAll:u("Whole number Theme Color",!1,s(i,{})),label:e("Label"),sub:m("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:a=>a.label||a.value||"Stat"},_gStyle:o("Style"),background:p("Background color",g.StatsParagraph,!0),...S("StatsParagraph")},resolveFields:(a,{fields:l})=>n(l,a.props.headPlacement,d.StatsParagraph.headRows)};export{A as StatsParagraphFields};
1
+ import{jsx as s}from"react/jsx-runtime";import{AccentIcon as i}from"efficient-easel/icons";import{backgroundField as p,plainText as e,plainTextarea as m,text as f,textarea as t,toggle as u}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as d,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_BG_BUILT_IN as S}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{STATS_PARAGRAPH_PH as r}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const T={fields:{_gContent:l("Content"),eyebrow:f("Eyebrow",r.eyebrow),title:t("Heading",r.title),desc:t("Body",r.desc),stats:{type:"array",label:"Stats",arrayFields:{value:e("Number"),prefix:e("Prefix"),suffix:e("Unit"),supSuffix:e("Superscript"),emphasizeAll:u("Whole number Theme Color",!1,s(i,{})),label:e("Label"),sub:m("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:a=>a.label||a.value||"Stat"},_gStyle:l("Style"),background:p("Background color",S.StatsParagraph,!0)},resolveFields:(a,{fields:o})=>n(o,a.props.headPlacement,d.StatsParagraph.headRows)};export{T as StatsParagraphFields};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{ClockIcon as g,EyeIcon as u}from"efficient-easel/icons";import{backgroundField as d,copyText as y,plainTextarea as m,text as o,textarea as p,toggle as T,upload as I}from"../../../controls.js";import{group as s,section as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as b}from"../../../box-fields.js";import{LAYOUT_CELL as f,TIMELINE_PICTURES as r}from"../../../choice-pictures.js";import{ctaField as _,innerSpacingFields as k}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as E}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{withRowRules as C}from"../../../../../../render/lib/document/show-when.js";import{TIMELINE_PH as e}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";const c={field:"layout",is:"track"},S={not:c},N={fields:C({_dLayout:i("Layout"),layout:b("Display",l(u,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:r.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:r.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:r.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:r.track}],"split",{columns:2,cell:f}),...k("Timeline"),_dDesign:i("Design"),background:d("Background color",E.TimelineTrack),_sHeader:i("Header"),_gContent:s("Content"),eyebrow:o("Eyebrow",e.eyebrow),title:p("Heading",e.title),intro:p("Intro",e.intro),imageSrc:I("Image","image/*"),imageCaption:o("Image caption",e.imageCaption),imageMeta:o("Image meta",e.imageMeta),_gButton:s("Button"),..._,_sEntries:i("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:y("Sub-title"),title:m("Title"),body:m("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:t=>t?.date||t?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],S],[["background"],c]]),resolveFields:(t,{fields:a})=>{if(t.props.layout!=="track")return a;const n=a.entries;return{...a,entries:{...n,arrayFields:{...n?.arrayFields,future:T("Upcoming",!1,l(g,{}))}}}}};export{N as TimelineFields};
1
+ import{jsx as l}from"react/jsx-runtime";import{ClockIcon as g,EyeIcon as u}from"efficient-easel/icons";import{backgroundField as d,copyText as y,plainTextarea as m,text as o,textarea as p,toggle as T,upload as I}from"../../../controls.js";import{group as s,section as i}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as b}from"../../../box-fields.js";import{LAYOUT_CELL as f,TIMELINE_PICTURES as r}from"../../../choice-pictures.js";import{ctaField as _}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as k}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{withRowRules as E}from"../../../../../../render/lib/document/show-when.js";import{TIMELINE_PH as e}from"../../../../../../format/lib/document/blocks/general/Timeline/meta.js";const c={field:"layout",is:"track"},C={not:c},M={fields:E({_dLayout:i("Layout"),layout:b("Display",l(u,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:r.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:r.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:r.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:r.track}],"split",{columns:2,cell:f}),_dDesign:i("Design"),background:d("Background color",k.TimelineTrack),_sHeader:i("Header"),_gContent:s("Content"),eyebrow:o("Eyebrow",e.eyebrow),title:p("Heading",e.title),intro:p("Intro",e.intro),imageSrc:I("Image","image/*"),imageCaption:o("Image caption",e.imageCaption),imageMeta:o("Image meta",e.imageMeta),_gButton:s("Button"),..._,_sEntries:i("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:y("Sub-title"),title:m("Title"),body:m("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:t=>t?.date||t?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],C],[["background"],c]]),resolveFields:(t,{fields:a})=>{if(t.props.layout!=="track")return a;const n=a.entries;return{...a,entries:{...n,arrayFields:{...n?.arrayFields,future:T("Upcoming",!1,l(g,{}))}}}}};export{M as TimelineFields};
@@ -1 +1 @@
1
- import{jsx as l}from"react/jsx-runtime";import{ClockIcon as n}from"efficient-easel/icons";import{backgroundField as s,plainText as d,plainTextarea as o,text as m,textarea as i,toggle as T}from"../../../controls.js";import{section as e}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as c,headFieldsForPlacement as p}from"../../../../../../format/lib/sections/section-head-placement.js";import{ctaField as f,innerSpacingFields as u}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as _}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{TIMELINE_TRACK_PH as r}from"../../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";const E={fields:{_sHeader:e("Header"),eyebrow:m("Eyebrow",r.eyebrow),title:i("Heading",r.title),intro:i("Body",r.intro),_sEntries:e("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:d("Year"),title:o("Title"),blurb:o("Body"),future:T("Upcoming",!1,l(n,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:t=>t?.date||t?.title||"Milestone"},_sButton:e("Button"),...f,_dDesign:e("Design"),background:s("Background color",_.TimelineTrack),_dLayout:e("Layout"),...u("TimelineTrack")},resolveFields:(t,{fields:a})=>p(a,t.props.headPlacement,c.TimelineTrack.headRows)};export{E as TimelineTrackFields};
1
+ import{jsx as l}from"react/jsx-runtime";import{ClockIcon as s}from"efficient-easel/icons";import{backgroundField as n,plainText as d,plainTextarea as o,text as m,textarea as i,toggle as p}from"../../../controls.js";import{section as e}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as T,headFieldsForPlacement as c}from"../../../../../../format/lib/sections/section-head-placement.js";import{ctaField as f}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as u}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{TIMELINE_TRACK_PH as r}from"../../../../../../format/lib/document/blocks/general/TimelineTrack/meta.js";const E={fields:{_sHeader:e("Header"),eyebrow:m("Eyebrow",r.eyebrow),title:i("Heading",r.title),intro:i("Body",r.intro),_sEntries:e("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:d("Year"),title:o("Title"),blurb:o("Body"),future:p("Upcoming",!1,l(s,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:t=>t?.date||t?.title||"Milestone"},_sButton:e("Button"),...f,_dDesign:e("Design"),background:n("Background color",u.TimelineTrack),_dLayout:e("Layout")},resolveFields:(t,{fields:a})=>c(a,t.props.headPlacement,T.TimelineTrack.headRows)};export{E as TimelineTrackFields};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{StylesIcon as a}from"efficient-easel/icons";import{plainText as i,readHidable as s,textarea as m,withOffPage as u}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentFields as d,select as p}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as f}from"efficient-easel/screen/lib/document/box-fields";import{innerSpacingFields as b}from"../../shared-fields.js";import{TITLE_WITH_BUTTONS_PH as g}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const A={fields:{_gContent:o("Content"),title:m("Heading",g.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:i("Button"),href:u(i("Button link")),variant:p("Style",r(a,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:t=>t?.label||"Button"},_gStyle:o("Style"),...d("buttonsAlign",{fallback:"right",access:f}),...b("TitleWithButtons")},resolveFields:(t,{fields:e})=>{const l=s(t.props.title);if(!(!l.hidden&&!!l.text.trim()))return e;const{buttonsAlign:h,buttonsAlignPhone:_,...n}=e;return n}};export{A as TitleWithButtonsFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{StylesIcon as a}from"efficient-easel/icons";import{plainText as i,readHidable as s,textarea as m,withOffPage as u}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentFields as d,select as p}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as f}from"efficient-easel/screen/lib/document/box-fields";import{TITLE_WITH_BUTTONS_PH as b}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const v={fields:{_gContent:o("Content"),title:m("Heading",b.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:i("Button"),href:u(i("Button link")),variant:p("Style",r(a,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:t=>t?.label||"Button"},_gStyle:o("Style"),...d("buttonsAlign",{fallback:"right",access:f})},resolveFields:(t,{fields:e})=>{const l=s(t.props.title);if(!(!l.hidden&&!!l.text.trim()))return e;const{buttonsAlign:c,buttonsAlignPhone:h,...n}=e;return n}};export{v as TitleWithButtonsFields};