efficient-web-builder 65.0.0 → 66.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/dist/editor/components/AnchorField.js +1 -1
- package/dist/editor/components/CardShadowField.js +1 -1
- package/dist/editor/components/PagesPanel.js +1 -1
- package/dist/editor/components/SectionEditor.js +1 -1
- package/dist/editor/components/WebsitePreviewButton.js +1 -1
- package/dist/editor/components/storefront-editor.css +16 -24
- package/dist/editor/components/usePreviewHref.js +1 -1
- package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SectionHeader/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/box-fields.d.ts +2 -1
- package/dist/editor/lib/document/box-fields.js +1 -1
- package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +11 -10
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/field-groups.d.ts +0 -3
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +3 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +1 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-link.d.ts +11 -0
- package/dist/format/lib/content/box-link.js +8 -8
- package/dist/format/lib/content/box-phone-place.d.ts +0 -2
- package/dist/format/lib/content/box-phone-place.js +1 -1
- package/dist/format/lib/content/box-side-space.js +1 -1
- package/dist/format/lib/content/card-image-shape.d.ts +5 -1
- package/dist/format/lib/content/card-image-shape.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +1 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/contact.d.ts +0 -1
- package/dist/format/lib/content/contact.js +2 -2
- package/dist/format/lib/content/css-length.d.ts +1 -0
- package/dist/format/lib/content/css-length.js +1 -0
- package/dist/format/lib/content/page-width.d.ts +17 -1
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
- package/dist/format/lib/document/media-drop.js +1 -1
- package/dist/format/lib/document/one-h1.d.ts +2 -0
- package/dist/format/lib/document/one-h1.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.d.ts +1 -0
- package/dist/format/lib/document/renamed-props.js +1 -1
- package/dist/format/lib/document/section-catalog.js +10 -2
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/fit-words.js +4 -1
- package/dist/format/lib/links/page-link-rules.d.ts +0 -1
- package/dist/format/lib/links/page-link-rules.js +1 -1
- package/dist/format/lib/markup.d.ts +1 -0
- package/dist/format/lib/markup.js +2 -2
- package/dist/format/lib/sections/section-presets.js +1 -1
- package/dist/format/lib/sections/timeline-year-shape.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +1 -1
- package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
- package/dist/format/lib/source-rules/one-length-control.js +16 -0
- package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
- package/dist/format/lib/theme.d.ts +0 -1
- package/dist/format/lib/theme.js +3 -3
- package/dist/format/lib/web-runtime.d.ts +2 -0
- package/dist/format/lib/web-runtime.js +1 -1
- package/dist/render/components/BlockFrame.d.ts +3 -3
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/Breadcrumb.js +1 -1
- package/dist/render/components/Btn.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +7 -1
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/CategoryBar.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -2
- package/dist/render/components/DealerFinder.d.ts +4 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Divider.js +1 -1
- package/dist/render/components/DocMasthead.js +1 -1
- package/dist/render/components/DocTabs.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +5 -3
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/Heading.d.ts +0 -1
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LocationMap.js +1 -1
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +1 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +2 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/SideListLayout.d.ts +4 -1
- package/dist/render/components/SideListLayout.js +1 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineRail.d.ts +11 -3
- package/dist/render/components/TimelineRail.js +1 -1
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/components/goldPhrases.js +3 -3
- package/dist/render/lib/content/block-size.d.ts +5 -1
- package/dist/render/lib/content/block-size.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +1 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/button-look.d.ts +2 -0
- package/dist/render/lib/content/button-look.js +1 -1
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/content/section-padding.d.ts +5 -2
- package/dist/render/lib/content/section-padding.js +1 -1
- package/dist/render/lib/dealer-source.d.ts +6 -2
- package/dist/render/lib/dealer-source.js +1 -1
- package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/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.d.ts +2 -0
- 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.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-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/card-press-titles.d.ts +10 -0
- package/dist/render/lib/document/card-press-titles.js +1 -0
- package/dist/render/lib/document/passes/section-height.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/published-passes.js +1 -1
- package/dist/render/lib/document/slot-specs.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +0 -15
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/site-runtime.d.ts +4 -1
- package/dist/render/lib/site-runtime.js +1 -1
- package/package.json +5 -5
- package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
- package/dist/editor/components/TemplateFieldRow.js +0 -1
- package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
- package/dist/editor/lib/document/panel-heading-scope.js +0 -1
- package/dist/editor/lib/document/template-field.d.ts +0 -13
- package/dist/editor/lib/document/template-field.js +0 -1
- package/dist/format/lib/canvas-accent.d.ts +0 -1
- package/dist/format/lib/canvas-accent.js +0 -1
- package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
- package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{cardTemplateOwner as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{CARD_ROW_LINK_PROP as f,cardTemplateOwner as h}from"../../../../../../format/lib/content/card-template.js";import{CARD_ROW_FACTS as u,cardRowField as g,cardRowFields as _,cardRowLinkField as w}from"../../../card-row-fields.js";import{textarea as R}from"../../../controls.js";import{group as b}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as x}from"efficient-easel/screen/lib/document/style-fields";import{segmented as F,select as P}from"../../../box-fields.js";import{withShowWhen as v}from"../../../../../../format/lib/document/show-when-attach.js";import{PH as C}from"../../../../../../format/lib/document/blocks/placeholders.js";import{toneField as T}from"../../shared-fields.js";import{blockAlignmentFields as A}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as O}from"efficient-easel/screen/lib/document/box-fields";import{consentWordsKept as y,withConsentWordsRow as H}from"../../../consent-words-field.js";import{withLiveNumberRow as I}from"../../../live-number-field.js";function W(e,o){const t=o?.textStyle;if(typeof t!="string"||!t.startsWith("heading-"))return e;const{align:S,alignTablet:E,alignPhone:B,...i}=e;return i}const ee={fields:{text:R("Body",C.body),consentWords:y("text"),[s]:x("text"),...A("align",{access:O}),tone:T(),_gText:b("Text"),rowField:g("Shows","text"),[f]:w(),[d]:v(F("Place",r(n,{}),[{label:"In the card",value:"",picture:r(p,{})},{label:"On the top line",value:"top-line",picture:r(a,{})}],""),{not:{context:l,is:!0}}),tag:P("HTML tag",r(m,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,o)=>W(I(H(_(o.fields,e,o),e.props,"text"),e.props),e.props),showWhenFacts:{...u,[l]:(e,o)=>{const t=h(o.appState,e.props?.id);return t===void 0?void 0:!c(t?.type)}}};export{ee as TextFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "
|
|
2
|
-
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "
|
|
1
|
+
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
2
|
+
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
@@ -3,7 +3,7 @@ import { boxFieldBuilders, type BoxFieldSay } from "efficient-easel/screen/lib/d
|
|
|
3
3
|
import type { ShowWhenRule } from "efficient-shell/format";
|
|
4
4
|
type Rows = ReturnType<typeof boxFieldBuilders>;
|
|
5
5
|
export declare const rowSay: BoxFieldSay;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const LENGTH_UNITS_TABLE: Readonly<Record<"size" | "spacing" | "gap" | "letterSpacing" | "fontSize" | "border" | "height" | "position" | "radius" | "breakpoint", readonly ("%" | "px" | "vw")[]>>;
|
|
7
7
|
export declare const slider: Rows["slider"];
|
|
8
8
|
export declare const select: Rows["select"];
|
|
9
9
|
export declare const Segmented: Rows["Segmented"];
|
|
@@ -21,6 +21,7 @@ export declare const placementField: Rows["placementField"];
|
|
|
21
21
|
export declare const PlacementGridView: Rows["PlacementGridView"];
|
|
22
22
|
export declare const positionFields: Rows["positionFields"];
|
|
23
23
|
export declare const sidesPaddingFields: Rows["sidesPaddingFields"];
|
|
24
|
+
export declare const lengthUnitFields: Rows["lengthUnitFields"];
|
|
24
25
|
export declare function angleRow(fallback: number, options?: Parameters<Rows["slider"]>[7]): ReturnType<Rows["slider"]>;
|
|
25
26
|
export declare function ShellIconWord({ value }: {
|
|
26
27
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createElement as l}from"react";import{SettingsDefaultReset as
|
|
1
|
+
import{createElement as l}from"react";import{SettingsDefaultReset as E,SettingsField as I}from"efficient-easel/panel";import{boxFieldBuilders as R,describedAs as W,iconOf as G,onDesktopWords as L}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as P}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as O,Tooltip as T,useShellStrings as _}from"efficient-shell/ui";import{RotateIcon as U}from"efficient-easel/icons";import{ANGLE_RANGE as f}from"../../../format/lib/content/box-angle.js";import{editorEaselWords as C,say as s}from"../../../format/lib/editor-words.js";const h=o=>s(o),V=P,t=R(h,{lengthUnits:V}),D=t.slider,ee=t.select,ne=t.Segmented,te=t.segmented,oe=t.alignmentField,le=t.alignmentFields,ie=t.blockAlignmentField,se=t.blockAlignmentFields,ce=t.boxJustifyField,de=t.boxAlignField,re=t.boxWrapField,ae=t.directionField,pe=t.gapField,fe=t.placementField,me=t.PlacementGridView,ue=t.positionFields,ge=t.sidesPaddingFields,xe=t.lengthUnitFields;function Fe(o,i){return D("Angle",l(U),f.min,f.max,f.step,o,"°",i)}const H={width:"3.5rem",height:"2.75rem"};function B({value:o}){return _().iconNames[o]??o}function J(o,i,e){return l(T,{content:e,className:"sf-pick-tip",children:l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap"},i))})}function K(o){const i=e=>e.label===void 0?l(B,{value:e.value}):s(e.label);return o.map(e=>({value:e.value,...e.label===void 0?{}:{label:s(e.hint??e.label)},icon:J(e.picture,i(e),e.hint===void 0?i(e):s(e.hint))}))}function we(o,i){return l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap sf-pick-cap-closed"},i))}function be(o,i,e,m,c={}){const k=n=>e.some(d=>d.value===n),r=n=>c.resolve?c.resolve(n):k(n)?n:void 0,u=e.map(n=>({value:n.value,...n.label===void 0?{}:{label:n.label},...n.showWhen?{showWhen:n.showWhen}:{}}));return{type:"custom",...W({},{type:"radio",label:o,options:u}),options:u,render:n=>{const{value:d,onChange:g,field:x}=n,F=x?.options,N=K(e.filter(p=>!F||F.some(y=>y.value===p.value))),w="follows"in n,a=w?r(c.phoneRest?c.phoneRest(n.follows):n.follows)??m:void 0,v=x?.currentValue,A=r(d)??a??r(v)??m,S=d!=null&&d!=="",b=a===void 0?void 0:e.find(p=>p.value===a);return l(I,{label:s(o),icon:G(i),action:w?l(E,{words:C()?.panel,label:s(o),changed:S,detail:b?.label!==void 0?L(h,s(b.label),n.followsView):void 0,disabled:n.readOnly===!0,onReset:()=>g(void 0)}):void 0},l(O,{label:s(o),value:A,options:N,onChange:g,columns:c.columns,cell:c.cell??H,tooltips:!1,disabled:n.readOnly===!0}))}}}export{V as LENGTH_UNITS_TABLE,me as PlacementGridView,ne as Segmented,B as ShellIconWord,oe as alignmentField,le as alignmentFields,Fe as angleRow,ie as blockAlignmentField,se as blockAlignmentFields,de as boxAlignField,ce as boxJustifyField,re as boxWrapField,ae as directionField,pe as gapField,be as iconPickerRow,xe as lengthUnitFields,J as pickerCellIcon,K as pickerCellsOf,we as pickerNoneIcon,fe as placementField,ue as positionFields,h as rowSay,te as segmented,ee as select,ge as sidesPaddingFields,D as slider};
|
|
@@ -8,6 +8,9 @@ export declare const CARD_ROW_FACTS: BlockShowWhenFacts;
|
|
|
8
8
|
export declare function cardRowField(label: string, kind: CardRowFieldKind, opts?: {
|
|
9
9
|
content?: boolean;
|
|
10
10
|
}): SelectField;
|
|
11
|
+
export declare function cardRowLinkField(): SelectField;
|
|
12
|
+
export declare const TYPED_LINK_SHOWN: ShowWhenRule;
|
|
13
|
+
export declare function typedLinkField<F extends object>(field: F): F;
|
|
11
14
|
export declare function cardRowItemField(f: CardRowFieldSpec): CustomField<string> | CustomField<import("efficient-easel/draw").HidableValue>;
|
|
12
15
|
export declare function cardRowFields<Fields extends Record<string, unknown>>(fields: Fields, data: {
|
|
13
16
|
props?: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import{GroundIcon as L,ListIcon as $}from"efficient-easel/icons";import{FieldGlyph as G}from"../../components/FieldGlyph.js";import{BOX_IN_COPY as U,BOX_OUTSIDE_COPY as X}from"../../../format/lib/content/box-card-rule.js";import{CARD_LIST_FIELDS as H,CARD_LIST_TYPE as _,CARD_ROW_LINK_PROP as J,cardCopyPlace as F,cardListFieldsOf as q,cardListShows as z,cardTemplateFieldsOf as Q,cardTemplateOwner as x,cardTemplateSlotOf as I}from"../../../format/lib/content/card-template.js";import{copyText as V,plainText as Z,plainTextarea as tt,ThemeFillRow as et,withOffPage as ot}from"./controls.js";import{recordRowFields as A}from"../../../format/lib/content/record-row.js";import{recordTypesRevision as nt}from"../../../format/lib/content/record-types.js";import{editorRecordType as rt}from"../../../format/lib/document/editor-page-context.js";import{blockSourcesRevision as pt,declaredBlockSource as D}from"../../../format/lib/content/block-sources.js";import{select as it}from"./box-fields.js";import{withShowWhen as E}from"../../../format/lib/document/show-when-attach.js";function K(t){const o=t?.data?.root,e=rt(o?.props)??"";return e&&A(e,"text").length?e:""}const O="outsideCardTemplate",ct={not:{context:O,is:!0}},Ct={[O]:(t,o)=>{const e=x(o.appState,t.props?.id);if(e!==void 0)return e===null&&!K(o.appState)},[X]:(t,o)=>{const e=F(o.appState,t.props?.id);return e===void 0?void 0:!e.inCopy},[U]:(t,o)=>F(o.appState,t.props?.id)?.inCopy};function lt(t,o,e){const s=o==="colour"||e?.content===!0,a=o==="link"?m(G,{noun:"link"}):o==="colour"?m(L,{}):m($,{}),n={...it(t,a,[s?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:o,...s?{cardRowContent:!0}:null};return E(n,ct)}function gt(){return lt("Link from","link")}const st={any:[{field:J,set:!1},{context:O,is:!0,default:!0}]};function kt(t){return E(t,st)}function bt(t){return t.kind==="link"?ot(Z(t.label)):t.kind==="colour"?at(t.label):t.multiline?tt(t.label):V(t.label)}function at(t){return{type:"custom",render:({value:o,onChange:e})=>m(et,{label:t,icon:m(L,{}),value:o,shown:typeof o=="string"?o:"",onChange:e})}}function dt(t){return!!(t&&typeof t=="object"&&"cardRowKind"in t)}const P=new WeakMap;function Lt(t,o,e){const s=Object.keys(t).filter(i=>dt(t[i]));if(!s.length)return t;const a=o.props??{},n=x(e.appState,a.id),r=typeof n?.type=="string"?n.type:"",h=n?I(e.appState,a.id)??"":"",d=s.map(i=>typeof a[i]=="string"?a[i].trim():""),N=D(n?.props),p=r===_?x(e.appState,n?.props?.id):null,C=p?I(e.appState,n?.props?.id)??void 0:void 0,j=p?z(n?.props,p.type,C):"",v=p?D(p.props):"",M=p?`${String(p.type??"")}\0${v}\0${C??""}`:"",W=r===_&&!p?JSON.stringify(n?.props?.[H]??null):"",y=n?"":K(e.appState),g=[r,h,N,j,M,W,pt(),y,nt(),...d].join("\0");let w=P.get(t);w||P.set(t,w=new Map);const k=w.get(g);if(k)return k;const R={...t};return s.forEach((i,u)=>{const c=t[i],f=r===_?q(e.appState,n,c.cardRowKind):r?Q(n,c.cardRowKind,h||void 0):A(y,c.cardRowKind),B=c.cardRowKind==="link"&&!!r&&!f.length;if(!d[u]&&(B||(c.cardRowContent?!r||!f.length:!f.length&&!r&&y))){delete R[i];return}const S=d[u]&&!f.some(l=>l.key===d[u])?d[u]:"",b=c.cardRowKind==="list",Y=(l,T)=>b&&T===0&&l.key!==d[u]?"":l.key;R[i]={...c,options:[...b?[]:c.options,...f.map((l,T)=>({label:l.label,value:Y(l,T)})),...S?[{label:S,value:S}]:[]]}}),w.set(g,R),R}export{Ct as CARD_ROW_FACTS,ct as IN_CARD_TEMPLATE,O as OUTSIDE_CARD_TEMPLATE,st as TYPED_LINK_SHOWN,lt as cardRowField,Lt as cardRowFields,bt as cardRowItemField,gt as cardRowLinkField,kt as typedLinkField};
|
|
@@ -5,8 +5,8 @@ import { type KnownVideoFrame, type LoadingShows } from "../../../format/lib/her
|
|
|
5
5
|
import { readHidable, hidableText, type HidableValue } from "efficient-easel/draw";
|
|
6
6
|
import { FOLD_FIELD_MARKER, LINK_FIELD_MARKER, MEDIA_FIELD_MARKER, SCAFFOLD_FIELD_MARKER, TEXT_FIELD_MARKER, foldMetaOf, textFieldIdentifier, type EdgeCell, type FoldFieldMeta, type TextFieldMeta, type TextListRendering } from "efficient-easel/draw";
|
|
7
7
|
import { type ShowWhenRule } from "../../../render/lib/document/show-when.js";
|
|
8
|
-
import {
|
|
9
|
-
import { type AlignmentPoint, FOCAL_DEFAULT } from "efficient-shell/ui";
|
|
8
|
+
import { CARD_IMAGE_RADIUS_ROW } from "../../../format/lib/content/card-image-shape.js";
|
|
9
|
+
import { type AlignmentPoint, FOCAL_DEFAULT, type UnitChoice as ShellUnitChoice } from "efficient-shell/ui";
|
|
10
10
|
import { type ColourChoice } from "./ColourControl.js";
|
|
11
11
|
import type { GeocodeState } from "../../../format/lib/content/contact.js";
|
|
12
12
|
import { SECTION_PIN_SCREENS_KEY } from "../../../format/lib/content/section-sticky.js";
|
|
@@ -132,9 +132,6 @@ export declare function PanelBand({ title, children }: {
|
|
|
132
132
|
title: string;
|
|
133
133
|
children: ReactNode;
|
|
134
134
|
}): import("react").JSX.Element;
|
|
135
|
-
export declare function GroupLabel({ label }: {
|
|
136
|
-
label: string;
|
|
137
|
-
}): import("react").JSX.Element;
|
|
138
135
|
export declare function Swatches({ swatches, current, onPick, names, }: {
|
|
139
136
|
swatches: readonly string[];
|
|
140
137
|
current: string;
|
|
@@ -145,7 +142,7 @@ export declare function backgroundField(label: string, builtIn: SectionBackgroun
|
|
|
145
142
|
export declare function sectionBandChoices(stored: SectionBackground, builtIn: SectionBackground, colors: ReturnType<typeof normalizeThemeColors>, n: number, band: SectionBandColours, onChange: (next: SectionBackground) => void): ColourChoice[];
|
|
146
143
|
export declare function cardImageBackgroundField(label: string, builtIn: string): CustomField<unknown>;
|
|
147
144
|
export declare function sectionThemeFields(readValue?: (v: unknown) => unknown, followLabel?: string): Record<string, CustomField<unknown>>;
|
|
148
|
-
export declare function Slider({ min, max, step, value, onChange, suffix, readout, notch, ariaLabel, disabled, placeholder, placeholderWord, onClear, }: {
|
|
145
|
+
export declare function Slider({ min, max, step, value, onChange, suffix, readout, notch, ariaLabel, disabled, placeholder, placeholderWord, onClear, units, }: {
|
|
149
146
|
min: number;
|
|
150
147
|
max: number;
|
|
151
148
|
step: number;
|
|
@@ -159,6 +156,7 @@ export declare function Slider({ min, max, step, value, onChange, suffix, readou
|
|
|
159
156
|
placeholder?: number;
|
|
160
157
|
placeholderWord?: string;
|
|
161
158
|
onClear?: () => void;
|
|
159
|
+
units?: ShellUnitChoice;
|
|
162
160
|
}): import("react").JSX.Element;
|
|
163
161
|
export declare function pxField(label: string, opts: {
|
|
164
162
|
min: number;
|
|
@@ -192,11 +190,9 @@ export declare function useSelectedPatch(): (patch: FieldsPatch) => void;
|
|
|
192
190
|
export declare function cornerSidesField(): CustomField<string[] | null>;
|
|
193
191
|
export declare function sectionCornersField(): CustomField<number | null>;
|
|
194
192
|
export declare function sectionShapeFields(): Record<string, unknown>;
|
|
195
|
-
export declare function sectionBorderField(tier: "desktop" | "tablet" | "mobile"): CustomField<SettingsBorderValue | undefined>;
|
|
196
193
|
type PanelView = "desktop" | "tablet" | "phone";
|
|
197
194
|
export declare function buttonWordsEntryField(partKey: string): CustomField<undefined>;
|
|
198
195
|
export declare function cardCornersField(): CustomField<number | null>;
|
|
199
|
-
export declare function templateField<V>(inner: CustomField<V>): CustomField<V>;
|
|
200
196
|
export declare function cardShapeFields(): Record<string, unknown>;
|
|
201
197
|
export declare function boxShareField(): CustomField<unknown>;
|
|
202
198
|
export declare function boxBlockSpacingField(): SelectField;
|
|
@@ -263,6 +259,11 @@ export declare function heightFollowedBy(view: PanelView, props: Record<string,
|
|
|
263
259
|
value: number;
|
|
264
260
|
unit: SectionHeightUnit;
|
|
265
261
|
} | null;
|
|
262
|
+
export declare function heightLayersAt(view: PanelView, props: Record<string, unknown>, own: unknown): {
|
|
263
|
+
mode: SectionHeightMode;
|
|
264
|
+
number: boolean;
|
|
265
|
+
unit: boolean;
|
|
266
|
+
};
|
|
266
267
|
export declare function followedHeightPatch(view: PanelView, props: Record<string, unknown>, base: "sectionHeightValue" | "sectionHeightUnit", next: unknown): Record<string, unknown> | null;
|
|
267
268
|
export declare function stickFields(opts?: {
|
|
268
269
|
intro?: boolean;
|
|
@@ -276,7 +277,6 @@ export declare function dateTime(label: string, icon?: ReactNode, hint?: string)
|
|
|
276
277
|
export declare function date(label: string, icon?: ReactNode, hint?: string): CustomField<string>;
|
|
277
278
|
export declare function toggle(label: string, fallback: boolean, icon?: ReactNode, hint?: string): CustomField<boolean>;
|
|
278
279
|
export declare function pageBackgroundField(): CustomField<string>;
|
|
279
|
-
export declare function checkbox(label: string, fallback: boolean): CustomField<boolean>;
|
|
280
280
|
export declare function colorInput(label: string, fallback: string, icon?: ReactElement): CustomField<string>;
|
|
281
281
|
export declare function ThemeFillRow({ label, icon, id, value, shown, onChange, }: {
|
|
282
282
|
label: string;
|
|
@@ -395,6 +395,7 @@ export declare function DisplayRow({ parts, changed, shown, onPress, onReset, de
|
|
|
395
395
|
detail?: string;
|
|
396
396
|
disabledReason?: string;
|
|
397
397
|
}): import("react").JSX.Element;
|
|
398
|
-
export declare function cardImageField(): CustomField<number | null>;
|
|
398
|
+
export declare function cardImageField(row?: typeof CARD_IMAGE_RADIUS_ROW): CustomField<number | null>;
|
|
399
|
+
export declare function cardImageFields(): Record<string, CustomField<unknown>>;
|
|
399
400
|
export declare function imageCornersField(): CustomField<number | null>;
|
|
400
401
|
export declare function galleryLayoutField(): CustomField<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as i,jsxs as L,Fragment as k}from"react/jsx-runtime";import{cloneElement as pe,createContext as nn,useContext as Ke,useEffect as on,useId as $e,useRef as z,useState as q}from"react";import{useEasel as ee,useSelectedHost as M}from"efficient-easel/easel";import{PIN_LENGTH as te,toDateKey as rn,fromDateKey as ln}from"efficient-shell/format";import{say as s,editorEaselWords as C}from"../../../format/lib/editor-words.js";import{finiteNumber as sn}from"../../../format/lib/finite-number.js";import{LOADING_SHOWS_LABELS as Xe,firstFrameHint as an,loadingShowsOf as cn,loadingStillHint as dn}from"../../../format/lib/hero-video.js";import{pageFramesFor as un,usePageVideoFrames as pn}from"../page-video-frames.js";import{ScreenDocumentContext as fn}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as je,hidableText as Ve}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as fe,LINK_FIELD_MARKER as Ye,MEDIA_FIELD_MARKER as ze,SCAFFOLD_FIELD_MARKER as qe,TEXT_FIELD_MARKER as O,foldMetaOf as he,textFieldIdentifier as hn}from"efficient-easel/draw";import mn from"../../components/ApplyCornersToSiblings.js";import{withShowWhen as Je}from"../../../render/lib/document/show-when.js";import gn from"../../components/TemplateFieldRow.js";import{CARD_IMAGE_RADIUS_STEP as bn,CORNER_RADIUS_MAX as Ze,CORNER_RADIUS_MIN as W}from"../../../format/lib/content/card-image-shape.js";import{IMAGE_CORNER_STEP as Sn,IMAGE_CORNERS_LABEL as wn}from"../../../format/lib/content/image-corners.js";import{GRID_MAX_COLUMNS as xn}from"../../../format/lib/content/grid-span.js";import{GALLERY_ACROSS_BUCKETS as Cn,GALLERY_LAYOUTS as ne,GALLERY_LAYOUT_KEYS as yn,galleryChoices as Qe,galleryLayoutRatio as _n,galleryPictureCells as In}from"../../../format/lib/content/gallery-layout.js";import{shellGlyphOf as Tn}from"./shell-glyph.js";import{anchorSiblingsOf as On,placementPoints as En}from"../../../format/lib/hero-group-placement.js";import Rn from"../../components/AnchorField.js";import Nn from"../../components/SourceStatus.js";import{AdjustIcon as kn,EyeIcon as Pn,AnimationIcon as Fn,BackgroundIcon as et,BorderAllIcon as Ln,BlockSectionIcon as An,ColumnWidthsIcon as me,ColumnsIcon as tt,CornerIcon as nt,DirectionDownIcon as vn,DirectionLeftIcon as Bn,DirectionRightIcon as Dn,DirectionUpIcon as Hn,EditIcon as Gn,GapIcon as Mn,GridIcon as Wn,GroundIcon as ge,HashIcon as ot,HeightIcon as rt,ImageIcon as Un,ListIcon as Kn,LocationIcon as it,PaddingBottomIcon as lt,PaddingLeftIcon as st,PaddingRightIcon as at,PaddingTopIcon as be,PageIcon as $n,StickyIcon as ct,SearchIcon as Xn,SquareIcon as jn,TypeIcon as Vn,WidthIcon as Yn}from"efficient-easel/icons";import{FieldGlyph as dt}from"../../components/FieldGlyph.js";import{resolvePageBackground as zn}from"../../../format/lib/content/page-background.js";import{boxFillOf as qn,boxFillSlot as Se}from"../../../format/lib/content/box-background.js";import{CORNER_SIDES as ut,CORNER_SIDE_POINTS as Jn,hasOwnSectionCorners as Zn,normalizeCornerSides as pt}from"../../../format/lib/content/section-corners.js";import{enclosingPath as Qn,enclosingSection as eo}from"./enclosing-section.js";import{SettingsDefaultReset as y,SettingsDrill as to,SettingsField as S,SettingsGroup as no,SettingsGroupSub as oo,SettingsSegmented as ro,SettingsBorder as io,SettingsSidesEach as lo,SettingsSwitch as we,borderSides as so,borderStartEach as ao}from"efficient-easel/panel";import{ListField as co}from"efficient-easel/fields";import{DisplayChips as uo}from"efficient-shell/ui";import{desktopDisplayChanged as po,partShownOnDesktop as fo,partShownOnPhone as ho,phoneDisplayChanged as mo,withDesktopPart as go,withPhonePart as bo}from"../../../format/lib/content/part-display.js";import{AlignmentGrid as So,Checkbox as wo,ColorSwatch as xo,CornersInput as Co,DatePicker as yo,DateTimePicker as _o,FOCAL_DEFAULT as Io,IconPicker as ft,COLUMN_COUNT_MAX as ht,COLUMN_SHARE_MIN as To,COLUMN_SHARES_EQUAL as Oo,resolveColumnShares as mt,WidthsBar as Eo,useShellStrings as Ro,IconButton as gt,InputNumber as bt,Slider as No,Tooltip as xe}from"efficient-shell/ui";import{LOOKUP_BUSY_NOTE as ko}from"./geocode-resolve.js";import{ColourRow as oe,InheritedColourRow as St}from"./ColourControl.js";import{fillThemeColors as Po,slotFill as re}from"../../../format/lib/document/theme-slots.js";import{fillSlotNamed as Ce}from"../../../format/lib/document/part-inks.js";import{keptByRow as Fo}from"efficient-easel/screen/lib/document/style-fields";import wt from"./MarkupToolbar.js";import{deviceField as I}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as Lo,NoControlMark as Ao,noControlField as xt}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{OWN_BOX_FIELD as vo}from"../../../format/lib/document/own-box.js";import{fieldPanelOnly as Bo,PANEL_ONLY_FIELD as Do}from"../../../format/lib/document/panel-only.js";import{PHONE_CLEAR as Ho,resolvePhoneValue as ye}from"../../../format/lib/document/phone-override.js";import{phoneKey as U,tabletKey as _e}from"efficient-easel/draw";import{viewKey as E}from"../../../format/lib/animation/views.js";import{viewRows as A}from"../animation/view-rows.js";import{SuppressibleText as Go}from"./section-text-suppress.js";import{CARD_INDEX_OPTIONS as Mo,CARD_OUTLINE_OPTIONS as Wo,DEFAULT_CARD_INDEX_FORMAT as Uo,DEFAULT_CARD_OUTLINE as Ko}from"../../../format/lib/sections/product-card-style.js";import{COVER_INDEX_OPTIONS as $o,DEFAULT_COVER_INDEX as Xo}from"../../../format/lib/sections/card-cover-index.js";import{SCALAR_TEXT_CONTROLS as jo}from"efficient-easel/draw";import Vo from"../../components/MediaUploadField.js";import Yo from"../../components/MultiSelectField.js";import zo from"../../components/SectionThemePicker.js";import qo from"../../components/SearchSelectField.js";import Jo from"../../components/StorefrontLinkField.js";import{UiIcon as Ct}from"efficient-easel/draw/client";import{SECTION_PADDING as R}from"../../../render/lib/content/section-padding.js";import{buttonWordsSummary as Zo}from"../../../render/lib/content/button-look.js";import{usePreviewParts as Qo}from"efficient-easel/draw/client";import{encodePartId as er}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as tr,useEaselStrings as nr}from"efficient-easel/strings";import{hasPhoneHeight as or,hasTabletHeight as Ie,resolveSectionMinHeight as rr,resolveTabletHeight as ir}from"../../../format/lib/content/section-min-height.js";import{INTRO_OLD_STICKY_PINS as lr,SECTION_PIN_ABOVE_HINT as sr,SECTION_PIN_ABOVE_KEY as ar,SECTION_PIN_ABOVE_LABEL as cr,SECTION_PIN_GROUP as dr,SECTION_PIN_LABEL as yt,SECTION_PIN_SCREENS_KEY as Te,SECTION_PIN_SCREENS_LABEL as _t,SECTION_PIN_STOP_DEFAULT as ur,SECTION_PIN_STOP_HINT as pr,SECTION_PIN_STOP_KEY as fr,SECTION_PIN_STOP_LABEL as hr,SECTION_PIN_STOP_OPTIONS as mr,SECTION_STICK_DISTANCE as ie,SOME_VIEW_PINS as It,hasPhoneStick as gr,hasTabletStick as br,resolveSectionStick as Oe,sectionPinStopOf as Sr,sectionPinStopWrite as wr}from"../../../format/lib/content/section-sticky.js";import{SECTION_MIN_HEIGHT as xr,SECTION_MIN_HEIGHT_GROUP_LABEL as J,SECTION_SCREEN_PCT as Cr}from"../../../format/lib/content/section-min-height.js";import{containerDirectionPoints as yr,resolveContainerDirection as Tt}from"../../../format/lib/content/container-direction.js";import{BOX_BLOCK_SPACING_LABEL as _r,BOX_BLOCK_SPACING_POINTS as Ot,BOX_PHONE_ROW_LABEL as Et,BOX_COLUMNS_MAX as Ir,BOX_COLUMNS_MIN as Rt,BOX_PHONE_ROW_MAX as Tr,BOX_PHONE_ROW_MIN as Ee,BOX_SHARE_CHOICES as Nt,BOX_SHARE_LABEL as K,boxShareChoiceOf as kt,boxShareWidthsOf as Re,BOX_SHARE_PHONE_DEFAULT as Or,BOX_SHARE_PHONE_POINTS as Er}from"../../../format/lib/content/box-layout.js";import{usePreviewHeader as v}from"../../../render/components/PreviewHeaderContext.js";import{BORDER_MAX as Rr,borderBySide as Pt}from"../../../format/lib/content/borders.js";import{DEFAULT_SURFACES as Nr,normalizeTheme as Ft,normalizeThemeColors as kr,sectionBandTone as Pr,surfaceTwoTone as Fr}from"../../../format/lib/theme.js";import{CONTAINER_GAP as Lt,CONTAINER_GAP_BUILT_IN as Lr,CONTAINER_GAP_PHONE as Ne,GAP_FIELD_CONTAINER as ke,followsSitePhoneGap as Ar,hasOwnContainerGap as vr,hasOwnPhoneGap as Pe,resolveContainerGap as At,resolvePhoneContainerGap as vt}from"../../../format/lib/content/container-gap.js";import{CARD_IMAGE_BG_INHERIT as Br,CARD_IMAGE_BG_OFF as Dr,CARD_IMAGE_BG_SWATCH_NAMES as Hr,CARD_IMAGE_BG_SWATCHES as Gr,isCardImageBackgroundInheriting as Mr,cardImageBackgroundChoice as Wr,THEME_CARD_IMAGE_BG as Ur}from"../../../format/lib/content/card-image-background.js";import{SECTION_BG_INHERIT as Kr,SECTION_BG_NO_FILL as $r,sectionBackgroundChoice as Xr,THEME_SECTION_BG as Fe,isSectionBackgroundEmpty as jr,sectionBackgroundHex as Bt}from"../../../format/lib/content/section-background.js";import{SECTION_THEME_GROUP_LABEL as Vr,nestedAccentValue as Dt,resolveSectionAccent as le}from"../../../format/lib/content/section-surface.js";import{TYPE_SIZE_FIXED as Yr,TYPE_SIZE_INHERIT as zr,isTypeSizeInheriting as qr}from"../../../format/lib/content/section-type-size.js";import{SECTION_WIDTH_CHOICES as Jr,WIDTH_CHOICE_LABEL as Zr,WIDTH_INHERIT as Qr}from"../../../format/lib/content/section-width.js";import{useFoldHeadingLevel as ei}from"./panel-heading-scope.js";import{useEaselSession as ti}from"efficient-easel/screen/lib/session-context";import{backendOf as ni}from"../website-session.js";import{BOX_GAP as oi,describedAs as N,group as T,iconOf as $,sharedStyleKinds as Z}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as Ht,onDesktopWords as B,phoneTwinFields as Le}from"efficient-easel/screen/lib/document/box-fields";import{directionField as ri,gapField as Ae,iconPickerRow as ii,pickerCellIcon as li,pickerNoneIcon as si,Segmented as ve,segmented as ai,select as X,slider as j}from"./box-fields.js";function sa({children:e}){return i("div",{className:"sf-field-label",children:typeof e=="string"?s(e):e})}function D(e,t){return s("{value} from {from}",{value:e,from:t})}function ci(){const{blockGap:e}=v();return e===null?s("this container's own spacing"):D(`${e}px`,s("Styles"))}function di({inherited:e,onReset:t,label:n}){return i(y,{words:C()?.panel,label:s(n),changed:!e,detail:ci(),onReset:t})}function ui(e){return Ae({...oi,builtIn:Lr[e],resolve:(t,n)=>At(e,t,n?.siteGap),action:(t,n)=>i(di,{inherited:!vr(e,t),onReset:()=>n(void 0),label:"Gap"}),mark:{[ke]:e}})}function pi(e){return Je(I("mobile",{[ke]:e,type:"custom",render:t=>i(mi,{container:e,...t})}),Gt)}function fi(e){return Je(I("tablet",{[ke]:e,type:"custom",render:t=>i(hi,{container:e,...t})}),Gt)}const Gt={not:{field:"gap",in:Array.from({length:-Lt.min},(e,t)=>Lt.min+t)}};function aa(e){return{gap:I("desktop",ui(e)),[_e("gap")]:fi(e),[U("gap")]:pi(e)}}function hi({container:e,...t}){const[n]=P("gap"),{siteGap:o}=t.field??{},r=Math.max(Ne.min,At(e,n,o));return Ae({...Ne,builtIn:r,resolve:a=>Pe(a)?a:r,action:(a,c)=>i(y,{words:C()?.panel,label:s("Gap"),changed:Pe(a),detail:B(d=>s(d),`${r}px`),onReset:()=>c(void 0)})}).render(t)}function mi({container:e,...t}){const[n]=P("gap"),{siteGap:o,siteGapPhone:r}=t.field??{},l=vt(e,void 0,n,o,r);return Ae({...Ne,builtIn:l,resolve:c=>vt(e,c,n,o,r),action:(c,d)=>i(y,{words:C()?.panel,label:s("Gap"),changed:Pe(c),detail:D(`${l}px`,Ar(e,n,r)?s("Styles"):s("Desktop")),onReset:()=>d(void 0)})}).render(t)}function ca(e){return ri({offered:yr(e),fallback:Tt(e,void 0),resolve:t=>Tt(e,t)})}function da(e,t){return En(t?On(e,t):[],t)}function gi({inherited:e,onReset:t,label:n}){return i(y,{words:C()?.panel,label:s(n),changed:!e,detail:D(s("Full"),s("the page")),onReset:t})}function H({value:e,onChange:t,label:n,placeholder:o,hint:r,multiline:l,hideable:a=!0,markup:c=!0}){const{text:d,hidden:p}=je(e),h=z(null),f=z(null),u=_=>t(a?{text:_,hidden:p}:_),g=()=>t({text:d,hidden:!p}),m=a&&p,w=$e(),x=r?Ci(r)?i("span",{className:"sf-hint-while-typing",children:s(r)}):s(r):void 0,b=p?s("Show {label} on the slide",{label:s(n)}):s("Hide {label} on the slide",{label:s(n)});return i(S,{label:s(n),icon:i(Vn,{}),htmlFor:w,className:m?"is-hidden":void 0,hint:x,action:a?i(xe,{content:b,children:i(gt,{"aria-pressed":p,"aria-label":b,onClick:g,children:p?i(Ct,{name:"eye-off",size:14}):i(Ct,{name:"eye",size:14})})}):void 0,children:L("div",{className:"sf-copybox",children:[c&&i(wt,{target:l?f:h,value:d,onChange:u}),l?i("textarea",{id:w,ref:f,value:d,placeholder:o===void 0?void 0:s(o),onChange:_=>u(_.target.value)}):i("input",{id:w,ref:h,type:"text",value:d,placeholder:o===void 0?void 0:s(o),onChange:_=>u(_.target.value)})]})})}function ua(e,t){return{...e,[qe]:t}}function pa(e){const t=e[O];if(!t)throw new Error("withOffPage: the field holds no authored text");return{...e,[O]:{...t,offPage:!0}}}function fa(e){return!e||typeof e!="object"?!1:e[O]?.offPage===!0}function ha(e){if(!e[O])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Do]:!0}}function ma(e){return Bo(e)}function ga(e){const t=e[O];if(!t)throw new Error("withIdentifier: the field holds no authored text");return{...e,[O]:{...t,identifier:!0}}}import{TEXT_CONTROL_KINDS as Nc,SCALAR_TEXT_CONTROLS as kc}from"efficient-easel/draw";function ba(e,t){if(!e[O])throw new Error("inOwnBox: the field holds no authored text");const{[Lo]:o,...r}=e;return{...r,[vo]:!0,render:t}}const bi=new Set(jo),Q={type:"radio",options:[{value:!0},{value:!1}]},Mt={text:{type:"object",objectFields:{text:{type:"text"},hidden:Q}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Q}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},G=(e,t)=>{const n=N({...t,[O]:e},{...Mt[e.control],label:e.label});if(!bi.has(e.control))return n;const o=t.render;return{...xt(n,"authored-copy"),render:r=>i(Go,{name:r.name,children:o(r)})}},Sa="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Si={field:"source.slug",set:!0},wa={not:Si},wi="Select a word, then press the highlighter.",xi=new Set([wi]),Ci=e=>xi.has(e);function xa(e,t,n){return G({control:"text",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(H,{value:o,onChange:r,label:e,placeholder:t,hint:n})})}function Ca(e,t,n){return G({control:"textarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(H,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0})})}function ya(e,t,n){return G({control:"plainText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(H,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1,markup:!1})})}function _a(e,t,n){return G({control:"copyText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(H,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1})})}function Ia(e){return{type:"custom",[Ye]:{label:e},...N({},{type:"text",label:e}),render:({value:t,onChange:n})=>i(Jo,{value:Ve(t),onChange:n,label:e})}}function Ta(e,t,n){return G({control:"plainTextarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(H,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0,hideable:!1})})}const Oa={Design:kn,Animation:Fn};function Ea(e){return{type:"custom",render:()=>i(yi,{text:e})}}function yi({text:e}){return i("p",{className:"sf-note",children:s(e)})}function Ra(e){return he(e)!==null&&e?.tabs!==void 0}const Wt=new Map;function Na(e,t){const n=`${e}\0${t?t.join(""):""}`,o=Wt.get(n)??{type:"custom",tabs:t,[fe]:{label:e,level:1},bucket:e,marker:!0,render:()=>i(k,{})};return Wt.set(n,o),o}const Ut=new Map;function ka(e){const t=Ut.get(e)??{type:"custom",[fe]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>i(k,{})};return Ut.set(e,t),t}function _i(e){const t=e;return t?.marker===!0&&typeof t.fold=="string"?t.fold:null}function Pa(e,t){return _i(e)===t?e:{...e,marker:!0,fold:t,render:()=>i(k,{})}}function Fa(e){const t=e;if(t.marker===!0&&t.fold===void 0)return e;const{fold:n,...o}=e;return{...o,marker:!0,render:()=>i(k,{})}}function La({title:e,children:t}){const[n,o]=q(()=>!Be.has(e));return i(no,{title:e,open:n,onToggle:r=>{o(r),r?Be.delete(e):Be.add(e)},children:t})}const Be=new Set;function Aa({label:e}){return i(oo,{title:s(e),level:ei(2)})}function Ii({swatches:e,current:t,onPick:n,names:o}){const r=e.find(c=>c.toLowerCase()===t.toLowerCase()),l=r?o?.[r]:void 0,a=l?s(l):t;return L("div",{className:"sf-swatches",children:[e.map(c=>{const d=o?.[c]?s(o[c]):c;return i(xe,{content:d,children:i(xo,{color:c,selected:t.toLowerCase()===c.toLowerCase(),onClick:()=>n(c),"aria-label":d})},c)}),i("span",{className:"sf-swatch-hex",children:a})]})}function va(e,t,n=!1){return{type:"custom",render:({value:o,onChange:r})=>i(Ti,{label:e,builtIn:t,followsBand:n,value:o,onChange:r})}}function Ti({label:e,builtIn:t,followsBand:n,value:o,onChange:r}){const l=typeof o=="string"?o:void 0,{colors:a,n:c}=Me(),d={background:a.background,surface:a.surface,surface2:Fr(a),band:Pr(a)},p=n?Fe:t,h=jr(l,t,p),f=Bt(void 0,p,d),u=n?Kr:void 0,g=p===Fe?s("the theme's section background"):s("Theme {n} background",{n:c}),m=Oi(l,t,a,c,d,r),w=D(f.toUpperCase(),g),x=Ce(l),b=x?re(x,a,c):null;return b?i(oe,{label:s(e),icon:i(et,{}),value:b.hex,caption:b.words,onChange:r,changed:!0,onReset:()=>r(u),resetTo:w,choices:m}):i(St,{label:s(e),icon:i(et,{}),value:h?"":Bt(l,t,d),inherited:f,resetTo:w,onChange:r,onReset:()=>r(u),choices:m})}function Oi(e,t,n,o,r,l){const a=Xr(e,t);return[{label:s("No fill"),color:"",selected:a==="none",onPick:()=>l($r)},{label:`${s("Section band")} · ${r.band.toUpperCase()}`,color:r.band,selected:a==="band",onPick:()=>l(Fe)},...Ge(Ce(e)??"",n,o,l)]}function Ei(e,t){return{type:"custom",render:({value:n,onChange:o})=>{const r=n,l=Mr(r,t);return i(S,{label:s(e),icon:i(ge,{}),changed:!l,action:i(y,{words:C()?.panel,label:s(e),changed:!l,detail:s("the theme's image stage"),onReset:()=>o(Br)}),children:Ii({swatches:Gr,current:l?Ur:Wr(r,t),onPick:o,names:Hr})})}}}function Ba(e=n=>n,t){return Z({_gSectionTheme:T(Vr),sectionAccent:{type:"custom",render:({value:n,onChange:o})=>i(zo,{value:e(n),onChange:o,followLabel:t})}})}function V({min:e,max:t,step:n,value:o,onChange:r,suffix:l="",readout:a=!0,notch:c,ariaLabel:d,disabled:p=!1,placeholder:h,placeholderWord:f,onClear:u}){const g=c!==void 0&&Number.isFinite(c)&&c>=e&&c<=t;return i("div",{className:g?"sf-slider has-notch":"sf-slider",style:g?{"--sf-notch":(c-e)/(t-e)}:void 0,children:i(No,{min:e,max:t,step:n,value:o,...o===null&&h!==void 0?{placeholderValue:h}:{},...f?{emptyLabel:s(f)}:{},suffix:l||void 0,showInput:a,label:d===void 0?void 0:s(d),disabled:p,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:m=>{m===null?u?.():m!==o&&r(m)}})})}function Kt(e,t){const{min:n,max:o,step:r=1,unsetLabel:l,hint:a,restTrack:c,unsetMark:d,icon:p,unit:h="px"}=t;return{type:"custom",render:({value:f,onChange:u})=>{const g=typeof f=="number"?f:null,m=g===null;return i(S,{label:s(e),icon:p?$(p):void 0,value:m?d||l===void 0?void 0:s(l):`${g}${h}`,changed:!m,action:d?pe(d,{changed:!m,onReset:()=>u(null)}):i(y,{words:C()?.panel,label:s(e),changed:!m,onReset:()=>u(null)}),hint:typeof a=="string"?s(a):a,children:c?c({min:n,max:o,step:r,px:g,label:e,onChange:u}):V({min:n,max:o,step:r,value:g??n,readout:!1,ariaLabel:e,onChange:u})})}}}const se="Corners";function De(e){return{type:"custom",render:({value:t,onChange:n})=>{const o=typeof t=="number"&&Number.isFinite(t)?t:null,r=o!==null;return i(S,{label:s(se),icon:i(nt,{}),changed:r,action:pe(e.mark,{changed:r,onReset:()=>n(null)}),hint:e.hint,children:i(Ni,{tier:e,px:o,onRadius:n})})}}}function P(e){const t=M();return[t?.values?.[e],n=>t?.onChange(e,n)]}function $t(){return xt({type:"custom",render:()=>i(Ao,{})},"always")}function Ri(){const e=M();return t=>e?.onChangeMany(t)}function Ni({tier:e,px:t,onRadius:n}){const o=e.useFollowed(),[r,l]=P(e.sidesKey),a=pt(r)??[...ut];return i(Co,{label:s(se),value:a,corners:Jn,onChange:c=>{const d=pt(c)??[];l(d.length===ut.length?null:d)},radius:t,onRadiusChange:n,radiusMin:W,radiusMax:Ze,radiusStep:e.step??1,radiusPlaceholder:String(o)})}function Xt(){return $t()}function ki({label:e,changed:t=!1,onReset:n=()=>{}}){const{cornerRadiusPx:o}=v(),r=typeof o=="number"?`${o}px`:s("not set");return i(y,{words:C()?.panel,label:s(e),changed:t,detail:o==null?s("the built-in corners"):D(r,s("Styles")),onReset:n})}function Pi(){const{cornerRadiusPx:e}=v();return typeof e=="number"?e:W}function Fi(){return De({sidesKey:"sectionCornerSides",useFollowed:Pi,mark:i(ki,{label:se}),hint:Li})}const Li="Follows Styles ▸ Basics ▸ Corners until you set a number here.";function Da(){return Z({_gShape:T("Shape"),sectionCorners:Fi(),sectionCornerSides:Xt(),...A("sectionBorder",jt)})}const Ai=()=>({width:s("Border width"),sides:{top:s("Border top"),right:s("Border right"),bottom:s("Border bottom"),left:s("Border left")},style:s("Border style"),styles:{solid:s("Solid"),dashed:s("Dashed"),dotted:s("Dotted")},color:s("Border color"),unit:"px"});function vi(e){const t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""));return Object.keys(t).length?t:void 0}function Bi(){let e;try{const t=Ft(v().theme);e=t.themes[t.selected]?.line}catch{e=void 0}return e||Nr.line}function Di({value:e,onChange:t,placeholder:n,presets:o,sides:r=!0,styles:l=!0,above:a={}}){const c=e&&typeof e=="object"?e:{},[d,p]=q(()=>r?ao(c,a):!1),h=Ai(),f=u=>vi(r&&l?u:{width:u.width,color:u.color,...l?{style:u.style}:{}});return i(S,{label:s("Border"),icon:i(Ln,{}),action:r?i(lo,{each:d,label:s("Each side"),onChange:p}):void 0,children:i(io,{label:s("Border"),value:c,each:d,onChange:u=>t(f(u)),placeholder:n,presets:o,words:h,styles:l,max:Rr})})}function Hi({value:e,onChange:t,view:n}){const[o]=P("sectionBorder"),[r]=P(_e("sectionBorder")),l=Bi(),a=d=>d&&typeof d=="object"?d:{},c=n==="phone"?{...Pt(a(o)),...Pt(a(r))}:n==="tablet"?a(o):{};return i(Di,{value:e,onChange:t,placeholder:{sides:so(c),style:c.style??"solid",color:c.color||l},presets:[l],above:c})}function Ha(e){return I(e,jt(e==="mobile"?"phone":e))}function jt(e){return{type:"custom",render:({value:t,onChange:n})=>i(Hi,{value:t,onChange:n,view:e})}}function Ga(e){return{type:"custom",render:()=>i(Gi,{partKey:e})}}function Gi({partKey:e}){const[t]=P("id"),[n]=P("_partStyles"),{textStyles:o}=v(),r=nr();let l=null;try{l=Qo().select}catch{l=null}const a=n&&typeof n=="object"?n[e]:void 0,c=Array.isArray(o)?o:null;return i(to,{name:s("Text"),preview:Zo(a,c,{noStyle:s("No style"),styleName:r.textStyles.styleName,cases:(r.copy.panel??tr.copy.panel).cases}),onOpen:()=>{l&&typeof t=="string"&&l(er(t,e))}})}function Vt(e){const{cornerRadiusPx:t}=v(),n=typeof t=="number"?t:e;let o=null;try{const{appState:l,selectedItem:a}=ee(d=>d),c=a?.props?.id?String(a.props.id):void 0;o=c?eo(l?.data,c)?.props??null:null}catch{o=null}if(!o)return n;const r=o.sectionCorners;return Zn(r)?r:n}function Mi({label:e,changed:t=!1,onReset:n=()=>{}}){const o=Vt(W);return i(y,{words:C()?.panel,label:s(e),changed:t,detail:D(`${o}px`,s("the section")),onReset:n})}function Wi(){return i(k,{children:s("Follows the section's Corners until you set a number here.")})}function Ui(){return De({sidesKey:"cardCornerSides",useFollowed:()=>Vt(W),mark:i(Mi,{label:se}),hint:i(Wi,{})})}function Ki(){return{type:"custom",render:()=>i(mn,{})}}function Ma(e){return{...e,render:t=>i(gn,{render:e.render,props:t})}}function Wa(){return{_gShape:T("Shape"),cardCorners:Ui(),cardCornerSides:Xt(),cardCornersApplyAll:Ki()}}function $i(){return N({type:"custom",render:e=>i(ji,{...e})},{type:"select",label:K,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function Xi(e,t){const n=kt(e);if(n!=="custom")return s(Nt.find(r=>r.value===n)?.label??"");const o=mt(Re(e,t),t);return o?[...o,100-o.reduce((r,l)=>r+l,0)].join(" / "):s("Custom")}function ji(e){const{value:t,onChange:n}=e,[o]=P("content"),r=Array.isArray(o)?o.length:0,l="follows"in e,a=t!=null,c=a?t:l?e.follows:void 0,d=kt(c),p=r>=2&&r<=ht,h=()=>[...Oo[r]??[]],f=z(null),u=b=>{const _=f.current;_&&JSON.stringify(b)===JSON.stringify(_.shares)?n(_.value):b&&n(b)},g=b=>{b===d||b==="custom"&&!p||n(b==="custom"?h():b)},m=s("The width bar works for 2 to {count} blocks.",{count:ht}),w=a&&(l||t!=="content"),x=Ro().widths.hint(r,To);return i(S,{label:s(K),icon:i(me,{}),changed:w,hint:d!=="custom"?void 0:p?x:m,action:i(y,{words:C()?.panel,label:s(K),changed:w,disabled:e.readOnly===!0,detail:l?B(b=>s(b),Xi(e.follows,r),e.followsView):s("Fit content"),onReset:()=>n(void 0)}),children:L("div",{className:"sf-share-row",children:[i("div",{className:"sf-share-pick",children:i(ft,{label:s(K),value:d,options:Nt.map(b=>({value:b.value,label:b.value==="custom"&&!p?m:s(b.label),icon:li(i("span",{className:"sf-gallery-pic sf-share-pic",children:Yt(b.weights).map((_,Y)=>i("i",{style:{gridColumn:`span ${_}`}},Y))}),s(b.label),b.value==="custom"&&!p?m:s(b.label))})),onChange:g,columns:3,cell:zt,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&p?i("div",{onFocus:()=>{f.current={value:t,shares:mt(Re(c,r),r)}},onBlur:()=>{f.current=null},children:i(Eo,{label:s(K),count:r,value:Re(c,r),onChange:u,readOnly:e.readOnly===!0})}):null]})})}function Yt(e){if(!e)return[3,4];const t=e.reduce((n,o)=>n+o,0);return e.map(n=>Math.round(n/t*12))}function Ua(){return X(_r,i(Mn,{}),Ot,Ot[0].value)}function Ka(){return I("mobile",ii(K,i(me,{}),Er.map(e=>({label:e.label,value:e.value,picture:i("span",{className:"sf-gallery-pic sf-share-pic",children:Yt(e.weights).map((t,n)=>i("i",{style:{gridColumn:`span ${t}`}},n))})})),Or,{columns:2,cell:zt}))}const zt={width:"5.75rem",height:"3.25rem"};function $a(){return Le("share",$i(),Ht)[_e("share")]}function Vi(){return I("mobile",j(Et,i(tt,{}),Ee,Tr,1,Ee,"",{clear:{phoneFollows:!1,hint:Ee}}))}const qt={read:e=>e.phoneRow,write:(e,t,n)=>({phoneRow:n}),fieldKey:()=>"phoneRow",ownField:!0};function Xa(){const e=j(Et,i(tt,{}),Rt,Ir,1,Rt,"",{clear:{emptyLabel:"Auto"}}),t=Le("columns",e,{...qt,tablet:Ht.tablet}),n=Le("columns",e,qt,{phoneRow:Vi()});return{...t,phoneRow:n.phoneRow}}function ja(e,t,n,o,r,l){return{type:"custom",render:({value:a,onChange:c})=>i(S,{label:s(e),icon:i(dt,{noun:l}),action:i(y,{words:C()?.panel,label:s(e),changed:!qr(a),detail:s("the Text style in Styles"),onReset:()=>c(zr),defaultAction:{onPress:()=>c(Yr),title:s("Keep this section's own built-in size"),icon:i(An,{})}}),children:V({min:t,max:n,step:o,value:typeof a=="number"?a:r,suffix:"px",ariaLabel:e,onChange:c})})}}function Va(){return{_gCellWidth:T("Cell width"),gridSpan:X("Positions",i(me,{}),[{label:"Auto",value:""},...Array.from({length:xn},(e,t)=>({label:t===0?"1 position":`${t+1} positions`,value:String(t+1)}))],"")}}function F(){let e=null,t=null;try{e=Ke(Yi),t=ee(n=>n).selectedItem}catch{t=null}return e??t?.props??{}}const Yi=nn(null);function zi({min:e,max:t,step:n,px:o,label:r,onChange:l,desktopKey:a,fallback:c}){const d=F()[a],p=ye(void 0,d,c);return i(k,{children:V({min:e,max:t,step:n,value:ye(o,d,c),readout:!1,ariaLabel:r,notch:p,onChange:l})})}function qi({label:e,desktopKey:t,fallback:n,unit:o="px",changed:r=!1,onReset:l=()=>{}}){const a=F()[t],c=ye(void 0,a,n);return i(y,{words:C()?.panel,label:s(e),changed:r,detail:B(d=>s(d),`${c}${o}`),onReset:l})}function Ji(e){return Kt(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:i(qi,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:t=>i(zi,{...t,desktopKey:e.desktopKey,fallback:e.fallback})})}const Zi={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Qi={Top:be,Bottom:lt,Left:st,Right:at},el=e=>{const t=Qi[e];return i(t,{})};function Ya(e={}){const t=e.keys?.top??"sectionPaddingTop",n=e.keys?.bottom??"sectionPaddingBottom",o=e.group!==!1,r=x=>Zi[x],l=x=>j(r("Top"),i(be,{}),R.min,R.max,R.step,x,"px"),a=(x,b,_,Y=R)=>I("mobile",Ji({label:r(x),icon:el(x),desktopKey:b,min:Y.min,max:Y.max,step:Y.step,fallback:_})),c=e.top??R.min,d=e.bottom??R.min,p="sectionPaddingLeft",h="sectionPaddingRight",f=e.sideBounds??R,u=e.side??f.min,g=e.sidePhone??u,m=e.phone===!0,w=x=>m?I("desktop",x):x;return Z({...o?{_gSpacing:T("Padding")}:{},[t]:w(l(c)),...m?{[U(t)]:a("Top",t,c)}:{},...e.only==="top"?{}:{[n]:w(j(r("Bottom"),i(lt,{}),R.min,R.max,R.step,d,"px")),...m?{[U(n)]:a("Bottom",n,d)}:{}},...e.sides?{[p]:w(j(r("Left"),i(st,{}),f.min,f.max,f.step,u,"px")),...m?{[U(p)]:a("Left",p,g,f)}:{},[h]:w(j(r("Right"),i(at,{}),f.min,f.max,f.step,u,"px")),...m?{[U(h)]:a("Right",h,g,f)}:{}}:{}})}function za(e,t){const n=Object.fromEntries(Object.entries(t).map(([l,a])=>[l,l in e&&he(a)?e[l]:a])),o={};let r=!1;for(const[l,a]of Object.entries(e)){if(l in t){r||Object.assign(o,n),r=!0;continue}o[l]=a}return r||Object.assign(o,n),o}const ae="Width";function qa(e,t=Jr,n=!0){const o=t.map(r=>({label:Zr[r],value:r}));return Z({...n?{_gWidth:T(ae)}:{},widthMode:{type:"custom",render:({onChange:r,field:l})=>i(S,{label:s(ae),icon:i(Yn,{}),action:n?i(gi,{inherited:l?.inherited??!1,onReset:()=>r(Qr),label:ae}):void 0,children:ve({options:o,value:l?.currentValue||e,onChange:r,ariaLabel:ae})})}})}function Ja(){const e=(o,r)=>({type:"custom",render:({value:l,onChange:a})=>i(tl,{value:l,onChange:a,view:o,badge:r})}),t=o=>({type:"custom",render:({value:r,onChange:l,field:a})=>i(ol,{value:r,onChange:l,unit:a?.unit,view:o})}),n=o=>{const r=ai("Unit",i(ot,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");if(o==="desktop")return r;const l=r.render;return{...r,render:a=>i(rl,{props:a,draw:l,view:o})}};return Z({_gHeight:T(J),...A("sectionHeightMode",o=>o==="desktop"?e(o):e(o,r=>i(il,{view:o,onClear:()=>r(void 0)}))),...A("sectionHeightValue",t),...A("sectionHeightUnit",n)})}function tl({value:e,onChange:t,view:n,badge:o}){const r=F(),l=c=>["auto","fixed","screen"].includes(c),a=ce(n,r)?.mode??"auto";return i(S,{label:J,icon:$(i(rt,{})),action:o?o(t):void 0,children:ve({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:l(e)?e:a,onChange:t,ariaLabel:J})})}function Jt(e,t){return e==="phone"&&Ie(t)?ir(t):rr(t)}function ce(e,t){return e==="desktop"||(e==="tablet"?Ie(t):or(t))?null:Jt(e,t)}function nl(e,t,n,o){const r=ce(e,t);return!r||e==="desktop"?null:o===void 0?{}:{[E("sectionHeightMode",e)]:r.mode,...r.mode==="fixed"?{[E("sectionHeightUnit",e)]:r.unit}:{},...n==="sectionHeightUnit"?{[E("sectionHeightValue",e)]:r.value}:{},[E(n,e)]:o}}function Zt(e,t,n){const o=M(),r=ce(e,F());return!o||!r?{followed:null,write:n}:{followed:r,write:a=>o.onChangeMany(c=>{const d=nl(e,c,t,a);return d===null?{[E(t,e)]:a}:Object.keys(d).length?d:null})}}function ol({value:e,onChange:t,unit:n,view:o}){const{followed:r,write:l}=Zt(o,"sectionHeightValue",t),a=(r?r.unit:n)==="%"?"%":"px",c=a==="%"?Cr:xr;return i("div",{className:"sf-field",children:V({min:c.min,max:c.max,step:c.step,value:r?null:typeof e=="number"?e:c.fallback,...r?{placeholder:r.value}:{},suffix:a,ariaLabel:J,onChange:l})})}function rl({props:e,draw:t,view:n}){const{followed:o,write:r}=Zt(n,"sectionHeightUnit",e.onChange);return t({...e,...o?{value:void 0,storedValue:void 0,follows:o.unit}:{},onChange:r})}function il({view:e,onClear:t}){const n=F(),o=ce(e,n)===null,r=e==="phone"&&Ie(n),l=Jt(e,n),a=B(c=>s(c),l.mode==="auto"?s("Auto"):`${l.value}${l.unit}`,r?"tablet":"desktop");return i(y,{words:C()?.panel,label:s(J),changed:o,detail:a,onReset:t})}function Za(e={}){const t=e.intro===!0,n=l=>({type:"custom",render:({value:a,onChange:c,id:d,name:p})=>i(pl,{value:a,onChange:c,labelId:`${d??p??"stickTop"}-label`,view:l,intro:t})}),o=l=>({type:"custom",render:({value:a,onChange:c})=>i(cl,{value:a,onChange:c,view:l,intro:t})}),r=l=>({type:"custom",render:({value:a,onChange:c})=>i(dl,{value:a,onChange:c,view:l,intro:t})});return{_gStick:T(dr,{dot:t?al:It}),...A("stickTop",n),...A("stickTopDistance",o),...e.screens?A(Te,r):{},...t?{}:{[fr]:ll()},...t||e.above===!1?{}:{[ar]:sl()}}}function ll(){const e=X(hr,i(be,{}),mr,ur);return I("desktop",{...e,render:t=>{const n=e.render({...t,value:Sr(t.value),onChange:o=>t.onChange(wr(o))});return pe(n,{hint:s(pr)})}})}function sl(){const e=tn(cr,!1,i(ct,{}),sr);return I("desktop",{...e,render:t=>e.render({...t,onChange:n=>t.onChange(n===!0?!0:void 0)})})}const al={any:[It,lr]};function Qt(e,t,n,o){const r=M(),l=F(),a=e==="desktop"||de(e,l)?null:He(e,Oe(l,{intro:o}));return{followed:a,write:a&&r?d=>r.onChangeMany(p=>{const h=ul(e,p,d,t,o);return h===null?{[E(t,e)]:d}:Object.keys(h).length?h:null}):n}}function cl({value:e,onChange:t,view:n,intro:o}){const{followed:r,write:l}=Qt(n,"stickTopDistance",t,o);return i("div",{className:"sf-field",children:V({min:ie.min,max:ie.max,step:ie.step,value:r?null:typeof e=="number"?e:ie.fallback,...r?{placeholder:r.distance}:{},suffix:"px",ariaLabel:s("Distance from top"),onChange:l})})}function dl({value:e,onChange:t,view:n,intro:o}){const{followed:r,write:l}=Qt(n,Te,t,o);return i(S,{label:s(_t),icon:$(i(rt,{})),children:V({min:te.min,max:te.max,step:te.step,value:r?null:sn(e)??te.default,...r?{placeholder:r.screens}:{},ariaLabel:s(_t),onChange:l})})}function de(e,t){return e==="tablet"?br(t):gr(t)}function He(e,t){return e==="phone"?{on:t.tablet,distance:t.tabletDistance,screens:t.tabletScreens}:{on:t.desktop,distance:t.desktopDistance,screens:t.desktopScreens}}function ul(e,t,n,o="stickTopDistance",r=!1){if(e==="desktop"||de(e,t))return null;if(n===void 0)return{};const l=He(e,Oe(t,{intro:r})),a=e==="phone"&&de("tablet",t)?d=>E(d,"tablet"):d=>d,c=(d,p)=>t[a(d)]==null?{}:{[E(d,e)]:p};return{[E("stickTop",e)]:!0,...c("stickTopDistance",l.distance),...c(Te,l.screens),[E(o,e)]:n}}function pl({value:e,onChange:t,labelId:n,view:o,intro:r}){const l=F(),a=Oe(l,{intro:r}),c=o==="phone"?a.phone:o==="tablet"?a.tablet:r?a.desktop:e===!0,d=o==="phone"&&a.ownTablet,p=o==="desktop"?null:He(o,a),h=p?.on?`${p.distance}px`:s("Off");return i(S,{label:s(yt),labelId:n,icon:$(i(ct,{})),action:L(k,{children:[o!=="desktop"?i(y,{words:C()?.panel,label:s(yt),changed:de(o,l),detail:B(f=>s(f),h,d?"tablet":"desktop"),onReset:()=>t(void 0)}):null,i(we,{checked:c,onChange:t,ariaLabelledBy:n})]})})}const en="e.g. about";function Qa(){return{_gAnchor:T("Anchor"),anchor:G({control:"plainText",label:"Name",placeholder:en},{type:"custom",render:({value:e,onChange:t})=>i(Rn,{value:e,onChange:t,nameBox:(n,o)=>i(H,{value:n,onChange:o,label:"Name",placeholder:en,hideable:!1,markup:!1})})})}}function ec(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:l,name:a})=>{const c=`${l??a??e}-datetime`,d=Date.parse(typeof o=="string"?o:"");return i(S,{label:s(e),icon:t,htmlFor:c,hint:n===void 0?void 0:s(n),children:i(_o,{id:c,value:Number.isFinite(d)?new Date(d):null,onChange:p=>r(p?p.toISOString():"")})})}}}function tc(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:l,name:a})=>{const c=`${l??a??e}-date`;return i(S,{label:s(e),icon:t,htmlFor:c,hint:n===void 0?void 0:s(n),children:i(yo,{id:c,value:ln(typeof o=="string"?o:null),onChange:d=>r(d?rn(d):"")})})}}}function tn(e,t,n,o){return{type:"custom",...N({},{...Q,label:e}),render:r=>{const{value:l,onChange:a,id:c,name:d}=r,p="follows"in r,h=r,f=typeof l=="boolean",u=typeof h.follows=="boolean"?h.follows:t,g=f?l:p?u:t,m=`${c??d??e}-label`,w=h.readOnly===!0,x=i(we,{checked:g,onChange:a,disabled:w,ariaLabelledBy:m});return i(S,{label:s(e),labelId:m,icon:n,hint:o===void 0?void 0:s(o),action:p?L(k,{children:[i(y,{words:C()?.panel,label:s(e),changed:f,detail:h.followsNoView?s(u?"On":"Off"):B(b=>s(b),s(u?"On":"Off"),h.followsView),disabled:w,onReset:()=>a(void 0)}),x]}):x})}}}function nc(){return{type:"custom",render:({value:e,onChange:t,id:n,name:o})=>{const r=`${String(n??o??"pageBackground")}-colour`;return i(fl,{label:"Background",icon:i($n,{}),id:r,value:e,shown:zn(e),onChange:t})}}}function oc(e,t){return{type:"custom",...N({},{...Q,label:e}),render:({value:n,onChange:o,id:r})=>{const l=typeof n=="boolean"?n:t,a=`${r??e}-checkbox`;return i(S,{label:s(e),htmlFor:a,className:"sf-checkbox",action:i(wo,{id:a,checked:l,onChange:o})})}}}function rc(e,t,n){return{type:"custom",render:({value:o,onChange:r})=>i(oe,{label:s(e),icon:n,value:o||t,onChange:r})}}function fl({label:e,icon:t,id:n,value:o,shown:r,onChange:l}){const{colors:a,n:c}=Me(),d=Ce(o),p=d?re(d,a,c):null;return i(oe,{label:s(e),icon:t,id:n,value:p?p.hex:r,caption:p?.words,onChange:l,choices:Ge(d??"",a,c,l)})}function ic(){return{type:"custom",render:e=>{const{value:t,onChange:n}=e,o=e;return i(hl,{value:typeof t=="string"?t:"",onChange:n,twin:"follows"in e?{follows:o.follows,view:o.followsView}:void 0})}}}function Ge(e,t,n,o){const r=Se(e);return Po(t,n).map(l=>({label:l.label,color:l.value,selected:r===l.name,onPick:()=>o(l.name)}))}function hl({value:e,onChange:t,twin:n}){const{colors:o,n:r}=Me(),l=o.background,a=D(l.toUpperCase(),s("Theme {n} background",{n:r})),c=Se(e),d=c?re(c,o,r):null,p=Ge(e,o,r,t),h=n?()=>t(void 0):()=>t("");let f=l,u=a;if(n){const g=Se(n.follows),m=qn(n.follows),w=g?re(g,o,r):m?{hex:m,words:m.toUpperCase()}:null;f=w?.hex??l,u=B(x=>s(x),w?w.words:a,n.view)}return d?i(oe,{label:s("Fill"),icon:i(ge,{}),value:d.hex,caption:d.words,onChange:t,changed:!0,onReset:h,resetTo:u,choices:p}):i(St,{label:s("Fill"),icon:i(ge,{}),value:e,inherited:f,resetTo:u,onChange:t,onReset:h,choices:p})}function ml(e,t,n){if((e?.content??[]).some(a=>a?.props?.id===t))return le(n);const r=Qn(e,t);if(r.length===0)return null;const l=le(Dt(n));if(l!==null)return l;for(let a=r.length-1;a>0;a-=1){const c=le(Dt(r[a].sectionAccent));if(c!==null)return c}return le(r[0].sectionAccent)}function Me(){const e=Ft(v().theme),[t]=P("sectionAccent");let n=null;try{const{appState:r,selectedItem:l}=ee(c=>c),a=l?.props?.id?String(l.props.id):void 0;n=a?ml(r?.data,a,t):null}catch{n=null}const o=n!==null&&e.themes[n]?n:e.selected;return{colors:kr(e.themes[o]),n:o+1}}const gl=[{value:"0% 0%",label:"Top left"},{value:"50% 0%",label:"Top"},{value:"100% 0%",label:"Top right"},{value:"0% 50%",label:"Left"},{value:"50% 50%",label:"Center"},{value:"100% 50%",label:"Right"},{value:"0% 100%",label:"Bottom left"},{value:"50% 100%",label:"Bottom"},{value:"100% 100%",label:"Bottom right"}];function bl({label:e,value:t,onChange:n,points:o=gl}){const r=o.map(l=>({...l,label:s(l.label),...l.title?{title:s(l.title)}:null}));return i(So,{label:s(e),value:t,points:r,onChange:n})}function lc(){return $t()}const sc={top:i(Hn,{}),right:i(Dn,{}),bottom:i(vn,{}),left:i(Bn,{})};function ac(e,t,n,o,r,l,a){const c=f=>t.find(u=>u.value===f),d=f=>({value:f,label:"",disabled:!0,title:o}),p=f=>{const u=t.find(m=>m.cell===f);if(!u)return d(`missing-${f}`);const g=l?.[f];return g?{value:u.value,label:u.label,icon:g}:{value:u.value,label:u.label}},h=[d("corner-top-left"),p("top"),d("corner-top-right"),p("left"),d("centre"),p("right"),d("corner-bottom-left"),p("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:f,onChange:u})=>{const g=t.some(m=>m.value===f)?f:n;return i(S,{label:s(e),icon:r,value:c(g)?.label?s(c(g).label):a?s(a):"",children:bl({label:e,value:g,onChange:u,points:h})})}}}function cc(e,t,n){return{type:"custom",options:t,render:({value:o,onChange:r,field:l})=>i(Yo,{label:e,options:(l.options??t).map(a=>({...a,label:s(a.label)})),value:Array.isArray(o)?o:[],onChange:r,...n?{emptyLabel:s(n)}:{}})}}function dc(e,t,n,o){return{type:"custom",options:t,fallback:n,...N({},{type:"select",label:e}),render:({value:r,onChange:l,field:a})=>i(qo,{label:e,options:(a.options??t).map(c=>({...c,label:s(c.label)})),fallback:a.fallback??n,value:r,onChange:l,placeholder:o===void 0?void 0:s(o)})}}function uc(e,t={}){return{type:"custom",render:({value:n,onChange:o})=>{const r={value:n,onChange:o,...t};return i(e,{...r})}}}const pc=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function fc(e,t,n){const o=Object.keys(Xe).map(r=>({label:Xe[r],value:r,picture:n[r]}));return{type:"custom",...N({},{type:"radio",label:e,options:o.map(r=>({value:r.value,label:r.label}))}),render:({onChange:r})=>i(wl,{label:e,icon:t,options:o,onChange:r})}}function Sl(e,t,n){const o=an(e,t,n);if(o!==void 0)return o==="save-makes-frame"?s("A frame is made from this video when you save the page."):o==="starts-dark"?s("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="outside"?s("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="unsupported"?s("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="failed"?s("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):o==="image-no-frame"?s("The slide shows your Image while the video loads, because this video has no frame."):void 0;const r=dn(e);return r==="frame-missing-image"?s("This video has no frame yet. The slide shows its image until one is made."):r==="frame-missing-surface"?s("This video has no frame yet. The slide shows its background colour until one is made."):r==="image-missing-frame"?s("No image yet. The slide shows the video's frame until you choose one."):r==="image-missing-surface"?s("No image yet. The slide shows its background colour until you choose one."):void 0}function wl({label:e,icon:t,options:n,onChange:o}){const r=M(),l=r?.values??{},a=cn(l),c=Ke(fn),d=pn(c?.docId??null);let p=null;try{p=ee(f=>f.appState.data)}catch{p=null}const h=un(r?.id,p,d);return i(S,{label:s(e),icon:$(t),hint:Sl(l,h,c?.hasUnsavedEdits??!1),children:ve({options:n,value:a,onChange:o,ariaLabel:e})})}function hc(e,t,n,o={}){const r={type:"custom",[ze]:!0,render:({value:l,onChange:a,name:c})=>i(Vo,{value:l||"",onChange:a,fieldKey:c,label:e,accept:t,placeholder:n,focusKey:o.focus,focusWhen:o.focusWhen,frameKey:o.frame}),...o.focus?{focusKey:o.focus}:{},...o.focusWhen?{focusWhen:o.focusWhen}:{}};return o.focus?I("each",r):r}const mc={HeroSingle:["imageFocal"],HeroSlide:["videoFrame"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function xl(e){const t=s(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${t} · ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:t}function gc({value:e,onChange:t,label:n}){const o=e||{},r=M(),l=r?r.values!==r.node.props:!0,a=!!o.pending&&l,c=!!o.pending&&!l,d=!!ni(ti()).geocode,p=$e(),h=(f,u)=>t({...o,[f]:u??void 0});return L(k,{children:[i(S,{label:s(n),icon:i(it,{}),action:d?i(xe,{content:s("Find from the address (OpenStreetMap)"),children:i(gt,{"aria-label":s("Find from the address"),"aria-busy":a||void 0,disabled:a,onClick:()=>t({...o,pending:!0,ok:!1,status:"Finding…"}),children:i(Xn,{})})}):void 0,children:d&&o.status?i(Nn,{compact:!0,oneLine:!0,spaced:!1,status:a?"busy":o.ok&&!c?"found":"notfound",statusText:a?s("Finding…"):c?s(ko):s(o.status),hint:xl(o)}):null}),i(S,{label:s("Enter by hand"),labelId:p,icon:i(Gn,{}),action:i(we,{checked:!!o.manual,onChange:f=>t({...o,manual:f}),ariaLabelledBy:p})}),o.manual&&i(S,{label:s("Latitude, longitude"),icon:i(it,{}),children:L("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[i(bt,{value:typeof o.lat=="number"?o.lat:null,onChange:f=>h("lat",f),min:-90,max:90,step:1e-4,placeholder:s("Latitude")}),i(bt,{value:typeof o.lng=="number"?o.lng:null,onChange:f=>h("lng",f),min:-180,max:180,step:1e-4,placeholder:s("Longitude")})]})})]})}function Cl(e,t){return t===null||t<0||t>=e.length?"":e[t]?.text??""}function yl(e,t,n){const o=e.map(r=>({text:r?.text??""}));return t===null||t<0||t>=e.length?o:o.map((r,l)=>l===t?{text:n}:r)}function bc(e,t){return e===null?null:t>e?e:null}function _l(e,t,n){if(n===null||n>=t.length)return null;for(let o=0;o<n;o+=1)if(e[o]!==t[o])return null;return e[n]!==t[n]&&t.includes(e[n])||e[n]!==t[n]&&t.length!==e.length?null:n}const Sc={label:"Ticker items",icon:i(Kn,{})};function wc(e,t,n,o){return{type:"custom",[O]:{control:"textList",label:e,placeholder:n,itemKey:"text",rendering:o},...N({},{...Mt.textList,label:e}),render:({value:r,onChange:l})=>i(Il,{label:e,icon:$(t),items:Array.isArray(r)?r:[],placeholder:n,onChange:l,markup:o==="markup"})}}function Il({label:e,icon:t,items:n,placeholder:o,onChange:r,markup:l=!1}){const a=z(null),[c,d]=q(null),p=f=>f.map(u=>({text:u?.text??""})),h=f=>{const u=_l(n,f,c);u===null&&(a.current=null),d(u),r(p(f))};return i(co,{label:s(e),icon:t,noun:s("item"),items:n,onChange:h,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:l?i(wt,{target:a,value:Cl(n,c),onChange:f=>r(yl(n,c??-1,f)),disabled:c===null,label:c===null?s("Formatting — click a row first"):s("Formatting — row {n}",{n:c+1})}):void 0,renderRow:(f,u,g)=>i("input",{type:"text",className:l&&c===u?"sf-list-marking":void 0,value:f?.text??"",placeholder:s(o),"aria-label":s("{label} {n}",{label:s(e),n:u+1}),onChange:m=>g({text:m.target.value}),onFocus:m=>{a.current=m.currentTarget,d(u)}})})}function xc(e,t){const n=`${e.label} — row ${t+1}`;return G({control:"plainText",label:n,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:o,onChange:r})=>i(H,{value:o,onChange:r,label:s("{label} — row {n}",{label:s(e.label),n:t+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Cc(e){return{_gCards:T("Cards"),coverIndex:X("Cover image",i(Un,{}),$o,String(Xo),e?.coverHint??"A card's opening picture — a card pinned to a finish keeps its own."),imageBackground:Ei("Image background",Dr),cardImage:El()}}function yc(){return{outline:X("Card outline",i(jn,{}),Wo,Ko),indexBadge:X("Card number",i(ot,{}),Mo,Uo),showBadge:tn("Product badge",!0,i(dt,{noun:"tag"}))}}function _c(e){const t=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},n=r=>({...Q,label:ue.find(l=>l.id===r).label}),o=r=>N(Fo(We),n(r));return{_gShowOnCard:T("Show on a card"),[We]:N({type:"custom",render:()=>i(Tl,{rest:{showCardPrice:!0,showCardFinishes:!0,...t}})},n(We)),showCardFinishes:o("showCardFinishes"),showCardSizes:o("showCardSizes"),showCardBuy:o("showCardBuy"),showCardPage:o("showCardPage")}}const We="showCardPrice",ue=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function Tl({rest:e}){const t=F(),n=Ri(),o=a=>typeof t[a]=="boolean"?t[a]:void 0,r=a=>o(a)??e[a],l=ue.some(({id:a})=>o(a)!==void 0&&o(a)!==e[a]);return i(Ue,{parts:ue,changed:l,shown:r,onPress:(a,c)=>n({[a]:c}),onReset:()=>n(Object.fromEntries(ue.map(({id:a})=>[a,void 0])))})}function Ic(e,t="display"){const n=U(t);return{[t]:I("desktop",{type:"custom",render:({value:o,onChange:r})=>i(Ue,{parts:e,changed:po(o),shown:l=>fo(o,l),onPress:(l,a)=>r(go(o,l,a)),onReset:()=>r(void 0)})}),[n]:I("mobile",{type:"custom",render:({value:o,onChange:r})=>i(Ol,{parts:e,desktopKey:t,value:o,onChange:r})})}}function Ue({parts:e,changed:t,shown:n,onPress:o,onReset:r,detail:l,disabledReason:a}){const c=s("Display");return i(S,{label:c,icon:i(Pn,{}),changed:t,action:i(y,{words:C()?.panel,label:c,changed:t,detail:l,onReset:r}),children:i(uo,{label:c,items:e.map(d=>({id:d.id,label:s(d.label),shown:n(d.id),...a?{disabled:!0,disabledReason:s(a)}:{}})),onChange:o})})}function Ol({parts:e,desktopKey:t,value:n,onChange:o}){const r=F()[t];return i(Ue,{parts:e,changed:mo(n),shown:l=>ho(r,n,l),onPress:(l,a)=>o(bo(n,l,a)),onReset:()=>o(Ho),detail:s("the same as Desktop")})}function El(){return Kt("Card image",{min:W,max:Ze,step:bn,icon:i(nt,{}),hint:"Rounds the picture. The card's own corner is in Styles."})}function Tc(){return De({sidesKey:"cornerSides",step:Sn,useFollowed:()=>W,mark:i(Rl,{label:wn}),hint:s("Rounds the picture. Left alone it stays square.")})}function Rl({label:e,changed:t=!1,onReset:n=()=>{}}){return i(y,{words:C()?.panel,label:s(e),changed:t,onReset:n})}function Oc(){return{type:"custom",render:({value:e,onChange:t})=>i(Fl,{value:typeof e=="string"?e:"",onChange:t})}}function Nl({layout:e,width:t}){const n=_n(e),o=n?`${n[0]}/${n[1]}`:void 0;return i("span",{"aria-hidden":"true",style:{display:"grid",width:t,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:o?"auto":6,gridAutoFlow:"row dense",gap:2},children:In(e).map(([r,l],a)=>i("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${r}`,gridRow:`span ${l}`,aspectRatio:o}},a))})}const kl={width:"3.5rem",height:"2.5rem"},Pl=200;function Fl({value:e,onChange:t}){const[n,o]=q(null),[r,l]=q(4),a=z(null);on(()=>{const u=a.current;if(!u||typeof ResizeObserver!="function")return;const g=()=>l(u.getBoundingClientRect().width>=Pl?4:3);g();const m=new ResizeObserver(g);return m.observe(u),()=>m.disconnect()},[]);const c=e&&e in ne?e:"",d=Qe(n,c),p=Qe(n,"").length,h=Tn("no-symbol"),f=[{value:"",label:s("Not chosen"),icon:si(h,s("Not chosen"))},...d.map(u=>({value:u,label:s(ne[u].label),icon:i(Nl,{layout:ne[u],width:40})}))];return i(S,{label:s("Layout"),icon:i(Wn,{}),value:c?s(ne[c].label):void 0,children:i("div",{ref:a,style:{flex:"1 1 auto",minWidth:0},children:i(ft,{label:s("Layout"),value:c,options:f,onChange:t,columns:r,cell:kl,header:L("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[i("span",{className:"text-2xs text-ink-faint",children:s("Photos in a row")}),i(ro,{options:[{id:"all",label:s("All")},...Cn.map(u=>({id:String(u),label:String(u)}))],value:n===null?"all":String(n),ariaLabel:s("Photos in a row"),onChange:u=>o(u==="all"?null:Number(u))}),i("span",{className:"text-2xs text-ink-faint",children:s("{n} of {total} layouts",{n:p,total:yn.length})})]})})})})}export{Si as BOUND_TO_POST,Sa as BOUND_TO_POST_NOTE,Oa as BUCKET_ICONS,mc as CUSTOM_FIELD_MEDIA,gc as CoordsField,Gt as DESKTOP_GAP_NOT_OVERLAP,Ue as DisplayRow,sc as EDGE_ARROWS,Io as FOCAL_DEFAULT,gl as FOCAL_POINTS,fe as FOLD_FIELD_MARKER,bl as FocalPicker,Aa as GroupLabel,wi as HIGHLIGHT_HINT,H as HidableTextField,Ye as LINK_FIELD_MARKER,sa as Label,ze as MEDIA_FIELD_MARKER,pc as MEDIA_TYPE_OPTIONS,wa as NOT_BOUND_TO_POST,La as PanelBand,yi as PanelNoteLine,Yi as RowPropsContext,qe as SCAFFOLD_FIELD_MARKER,kc as SCALAR_TEXT_CONTROLS,di as SiteGapDefaultReset,V as Slider,Ii as Swatches,Nc as TEXT_CONTROL_KINDS,O as TEXT_FIELD_MARKER,Sc as TICKER_ITEMS_ROW,Il as TextListField,fl as ThemeFillRow,ae as WIDTH_LABEL,gi as WidthDefaultReset,_l as aimAfterListChange,Qa as anchorFields,D as backTo,va as backgroundField,Ua as boxBlockSpacingField,Xa as boxColumnsFields,ic as boxFillField,Vi as boxPhoneRowField,$i as boxShareField,Ka as boxSharePhoneField,$a as boxShareTabletField,ml as boxThemeIndexOf,Na as bucketHeader,Ga as buttonWordsEntryField,Ui as cardCornersField,Ei as cardImageBackgroundField,El as cardImageField,Cc as cardMediaFields,Wa as cardShapeFields,_c as cardShowFields,yc as cardStyleFields,Va as cellWidthFields,oc as checkbox,rc as colorInput,ca as containerDirectionField,ui as containerGapField,pi as containerGapPhoneField,aa as containerGapRows,fi as containerGapTabletField,xl as coordsResultTip,_a as copyText,Xt as cornerSidesField,De as cornersRowField,tc as date,ec as dateTime,ka as designGroupHeader,Ic as displayFields,ac as edgePad,Ge as fillSlotChoices,bc as focusAfterRemove,lc as focusKeptField,Pa as foldMarker,he as foldMetaOf,_i as foldTitleOf,nl as followedHeightPatch,ul as followedStickPatch,Oc as galleryLayoutField,Ja as heightFields,ce as heightFollowedBy,da as heroGroupPlacementPoints,Ve as hidableText,Ci as hintIsWhileTyping,Tc as imageCornersField,ba as inOwnBox,Ra as isBucketHeader,$t as keptBy,Ia as linkField,Sl as loadingRowHint,fc as loadingShowsField,cc as multiSelect,nc as pageBackgroundField,Ea as panelNote,Ji as phoneOverrideField,ya as plainText,Ta as plainTextarea,Kt as pxField,Fa as quietMarker,je as readHidable,Cl as rowText,dc as searchSelect,Oi as sectionBandChoices,Ha as sectionBorderField,Fi as sectionCornersField,Da as sectionShapeFields,Ba as sectionThemeFields,yl as setRowText,ja as sizeField,uc as sourceField,Ya as spacingFields,Za as stickFields,za as swapPadding,Ma as templateField,xa as text,hn as textFieldIdentifier,fa as textFieldOffPage,ma as textFieldPanelOnly,wc as textList,xc as textListRowField,Ca as textarea,tn as toggle,hc as upload,Ri as useSelectedPatch,F as useSelectedProps,P as useSelectedSibling,ci as useSiteGapDetail,qa as widthField,ga as withIdentifier,pa as withOffPage,ha as withPanelOnly,ua as withScaffold};
|
|
1
|
+
"use client";import{jsx as i,jsxs as P,Fragment as k}from"react/jsx-runtime";import{cloneElement as pe,createContext as nn,useContext as $e,useEffect as on,useId as Xe,useRef as z,useState as q}from"react";import{useEasel as Q,useSelectedHost as B}from"efficient-easel/easel";import{PIN_LENGTH as ee,toDateKey as rn,fromDateKey as ln}from"efficient-shell/format";import{say as s,editorEaselWords as y}from"../../../format/lib/editor-words.js";import{finiteNumber as sn}from"../../../format/lib/finite-number.js";import{LOADING_SHOWS_LABELS as je,firstFrameHint as an,loadingShowsOf as cn,loadingStillHint as un}from"../../../format/lib/hero-video.js";import{pageFramesFor as dn,usePageVideoFrames as pn}from"../page-video-frames.js";import{ScreenDocumentContext as fn}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as Ve,hidableText as Ye}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as fe,LINK_FIELD_MARKER as ze,MEDIA_FIELD_MARKER as qe,SCAFFOLD_FIELD_MARKER as Je,TEXT_FIELD_MARKER as E,foldMetaOf as he,textFieldIdentifier as hn}from"efficient-easel/draw";import mn from"../../components/ApplyCornersToSiblings.js";import{withShowWhen as Ze}from"../../../render/lib/document/show-when.js";import{CARD_IMAGE_PX_ROW as gn,CARD_IMAGE_RADIUS_ROW as Qe,CARD_IMAGE_RADIUS_STEP as bn,CORNER_RADIUS_MAX as et,CORNER_RADIUS_MIN as L}from"../../../format/lib/content/card-image-shape.js";import{IMAGE_CORNER_STEP as Sn,IMAGE_CORNERS_LABEL as wn}from"../../../format/lib/content/image-corners.js";import{GRID_MAX_COLUMNS as xn}from"../../../format/lib/content/grid-span.js";import{GALLERY_ACROSS_BUCKETS as yn,GALLERY_LAYOUTS as te,GALLERY_LAYOUT_KEYS as Cn,galleryChoices as tt,galleryLayoutRatio as _n,galleryPictureCells as In}from"../../../format/lib/content/gallery-layout.js";import{shellGlyphOf as On}from"./shell-glyph.js";import{anchorSiblingsOf as Tn,placementPoints as En}from"../../../format/lib/hero-group-placement.js";import Rn from"../../components/AnchorField.js";import Nn from"../../components/SourceStatus.js";import{AdjustIcon as Pn,EyeIcon as kn,AnimationIcon as An,BackgroundIcon as nt,BorderAllIcon as Fn,BlockSectionIcon as Ln,ColumnWidthsIcon as me,ColumnsIcon as ot,CornerIcon as rt,DirectionDownIcon as Bn,DirectionLeftIcon as vn,DirectionRightIcon as Dn,DirectionUpIcon as Hn,EditIcon as Gn,GapIcon as Mn,GridIcon as Un,GroundIcon as ge,HashIcon as Wn,HeightIcon as it,ImageIcon as Kn,ListIcon as $n,LocationIcon as lt,PaddingBottomIcon as st,PaddingLeftIcon as at,PaddingRightIcon as ct,PaddingTopIcon as be,PageIcon as Xn,StickyIcon as ut,SearchIcon as jn,SquareIcon as Vn,TypeIcon as Yn,WidthIcon as zn}from"efficient-easel/icons";import{FieldGlyph as dt}from"../../components/FieldGlyph.js";import{resolvePageBackground as qn}from"../../../format/lib/content/page-background.js";import{boxFillOf as Jn,boxFillSlot as Se}from"../../../format/lib/content/box-background.js";import{CORNER_SIDES as pt,CORNER_SIDE_POINTS as Zn,hasOwnSectionCorners as Qn,normalizeCornerSides as ft}from"../../../format/lib/content/section-corners.js";import{enclosingPath as eo,enclosingSection as to}from"./enclosing-section.js";import{SettingsDefaultReset as C,SettingsDrill as no,SettingsField as x,SettingsGroup as oo,SettingsSegmented as ro,SettingsBorder as io,SettingsSidesEach as lo,SettingsSwitch as we,borderSides as so,borderStartEach as ao}from"efficient-easel/panel";import{ListField as co}from"efficient-easel/fields";import{DisplayChips as uo}from"efficient-shell/ui";import{desktopDisplayChanged as po,partShownOnDesktop as fo,partShownOnPhone as ho,phoneDisplayChanged as mo,withDesktopPart as go,withPhonePart as bo}from"../../../format/lib/content/part-display.js";import{AlignmentGrid as So,ColorSwatch as wo,CornersInput as xo,DatePicker as yo,DateTimePicker as Co,FOCAL_DEFAULT as _o,IconPicker as ht,COLUMN_COUNT_MAX as mt,COLUMN_SHARE_MIN as Io,COLUMN_SHARES_EQUAL as Oo,resolveColumnShares as gt,WidthsBar as To,useShellStrings as Eo,IconButton as bt,InputNumber as St,Slider as Ro,Tooltip as xe}from"efficient-shell/ui";import{LOOKUP_BUSY_NOTE as No}from"./geocode-resolve.js";import{ColourRow as ne,InheritedColourRow as wt}from"./ColourControl.js";import{fillThemeColors as Po,slotFill as oe}from"../../../format/lib/document/theme-slots.js";import{fillSlotNamed as ye}from"../../../format/lib/document/part-inks.js";import{keptByRow as Ce}from"efficient-easel/screen/lib/document/style-fields";import xt from"./MarkupToolbar.js";import{deviceField as I}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as ko,NoControlMark as Ao,noControlField as yt}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{OWN_BOX_FIELD as Fo}from"../../../format/lib/document/own-box.js";import{fieldPanelOnly as Lo,PANEL_ONLY_FIELD as Bo}from"../../../format/lib/document/panel-only.js";import{PHONE_CLEAR as vo,resolvePhoneValue as _e}from"../../../format/lib/document/phone-override.js";import{phoneKey as K,tabletKey as Ie}from"efficient-easel/draw";import{viewKey as O}from"../../../format/lib/animation/views.js";import{viewRows as v}from"../animation/view-rows.js";import{SuppressibleText as Do}from"./section-text-suppress.js";import{CARD_INDEX_OPTIONS as Ho,CARD_OUTLINE_OPTIONS as Go,DEFAULT_CARD_INDEX_FORMAT as Mo,DEFAULT_CARD_OUTLINE as Uo}from"../../../format/lib/sections/product-card-style.js";import{COVER_INDEX_OPTIONS as Wo,DEFAULT_COVER_INDEX as Ko}from"../../../format/lib/sections/card-cover-index.js";import{SCALAR_TEXT_CONTROLS as $o}from"efficient-easel/draw";import Xo from"../../components/MediaUploadField.js";import jo from"../../components/MultiSelectField.js";import Vo from"../../components/SectionThemePicker.js";import Yo from"../../components/SearchSelectField.js";import zo from"../../components/StorefrontLinkField.js";import{UiIcon as Ct}from"efficient-easel/draw/client";import{SECTION_PADDING as R}from"../../../render/lib/content/section-padding.js";import{buttonWordsSummary as qo}from"../../../render/lib/content/button-look.js";import{usePreviewParts as Jo}from"efficient-easel/draw/client";import{encodePartId as Zo}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as Qo,useEaselStrings as er}from"efficient-easel/strings";import{hasPhoneHeight as tr,hasTabletHeight as Oe,resolveSectionMinHeight as nr,resolveTabletHeight as or}from"../../../format/lib/content/section-min-height.js";import{INTRO_OLD_STICKY_PINS as rr,SECTION_PIN_ABOVE_HINT as ir,SECTION_PIN_ABOVE_KEY as lr,SECTION_PIN_ABOVE_LABEL as sr,SECTION_PIN_GROUP as ar,SECTION_PIN_LABEL as _t,SECTION_PIN_SCREENS_KEY as Te,SECTION_PIN_SCREENS_LABEL as It,SECTION_PIN_STOP_DEFAULT as cr,SECTION_PIN_STOP_HINT as ur,SECTION_PIN_STOP_KEY as dr,SECTION_PIN_STOP_LABEL as pr,SECTION_PIN_STOP_OPTIONS as fr,SECTION_STICK_DISTANCE as re,SOME_VIEW_PINS as Ot,hasPhoneStick as hr,hasTabletStick as mr,resolveSectionStick as Ee,sectionPinStopOf as gr,sectionPinStopWrite as br}from"../../../format/lib/content/section-sticky.js";import{SECTION_MIN_HEIGHT as Sr,SECTION_MIN_HEIGHT_GROUP_LABEL as J,SECTION_SCREEN_PCT as wr}from"../../../format/lib/content/section-min-height.js";import{containerDirectionPoints as xr,resolveContainerDirection as Tt}from"../../../format/lib/content/container-direction.js";import{BOX_BLOCK_SPACING_LABEL as yr,BOX_BLOCK_SPACING_POINTS as Et,BOX_PHONE_ROW_LABEL as Rt,BOX_COLUMNS_MAX as Cr,BOX_COLUMNS_MIN as Nt,BOX_PHONE_ROW_MAX as _r,BOX_PHONE_ROW_MIN as Re,BOX_SHARE_CHOICES as Pt,BOX_SHARE_LABEL as $,boxShareChoiceOf as kt,boxShareWidthsOf as Ne,BOX_SHARE_PHONE_DEFAULT as Ir,BOX_SHARE_PHONE_POINTS as Or}from"../../../format/lib/content/box-layout.js";import{usePreviewHeader as D}from"../../../render/components/PreviewHeaderContext.js";import{BORDER_MAX as Tr,borderBySide as At}from"../../../format/lib/content/borders.js";import{DEFAULT_SURFACES as Er,normalizeTheme as Ft,normalizeThemeColors as Rr,sectionBandTone as Nr,surfaceTwoTone as Pr}from"../../../format/lib/theme.js";import{CONTAINER_GAP as Lt,CONTAINER_GAP_BUILT_IN as kr,CONTAINER_GAP_PHONE as Pe,GAP_FIELD_CONTAINER as ke,followsSitePhoneGap as Ar,hasOwnContainerGap as Fr,hasOwnPhoneGap as Ae,resolveContainerGap as Bt,resolvePhoneContainerGap as vt}from"../../../format/lib/content/container-gap.js";import{CARD_IMAGE_BG_INHERIT as Lr,CARD_IMAGE_BG_OFF as Br,CARD_IMAGE_BG_SWATCH_NAMES as vr,CARD_IMAGE_BG_SWATCHES as Dr,isCardImageBackgroundInheriting as Hr,cardImageBackgroundChoice as Gr,THEME_CARD_IMAGE_BG as Mr}from"../../../format/lib/content/card-image-background.js";import{SECTION_BG_INHERIT as Ur,SECTION_BG_NO_FILL as Wr,sectionBackgroundChoice as Kr,THEME_SECTION_BG as Fe,isSectionBackgroundEmpty as $r,sectionBackgroundHex as Dt}from"../../../format/lib/content/section-background.js";import{SECTION_THEME_GROUP_LABEL as Xr,nestedAccentValue as Ht,resolveSectionAccent as ie}from"../../../format/lib/content/section-surface.js";import{TYPE_SIZE_FIXED as jr,TYPE_SIZE_INHERIT as Vr,isTypeSizeInheriting as Yr}from"../../../format/lib/content/section-type-size.js";import{SECTION_WIDTH_CHOICES as zr,WIDTH_CHOICE_LABEL as qr,WIDTH_INHERIT as Jr}from"../../../format/lib/content/section-width.js";import{useEaselSession as Zr}from"efficient-easel/screen/lib/session-context";import{backendOf as Qr}from"../website-session.js";import{BOX_GAP as ei,describedAs as A,group as T,iconOf as X,sharedStyleKinds as Z}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as Gt,onDesktopWords as H,phoneTwinFields as Le}from"efficient-easel/screen/lib/document/box-fields";import{directionField as ti,gapField as Be,iconPickerRow as ni,lengthUnitFields as oi,pickerCellIcon as ri,pickerNoneIcon as ii,Segmented as ve,select as j,slider as G}from"./box-fields.js";function ra({children:e}){return i("div",{className:"sf-field-label",children:typeof e=="string"?s(e):e})}function M(e,t){return s("{value} from {from}",{value:e,from:t})}function li(){const{blockGap:e}=D();return e===null?s("this container's own spacing"):M(`${e}px`,s("Styles"))}function si({inherited:e,onReset:t,label:n}){return i(C,{words:y()?.panel,label:s(n),changed:!e,detail:li(),onReset:t})}function ai(e){return Be({...ei,builtIn:kr[e],resolve:(t,n)=>Bt(e,t,n?.siteGap),action:(t,n)=>i(si,{inherited:!Fr(e,t),onReset:()=>n(void 0),label:"Gap"}),mark:{[ke]:e}})}function ci(e){return Ze(I("mobile",{[ke]:e,type:"custom",render:t=>i(pi,{container:e,...t})}),Mt)}function ui(e){return Ze(I("tablet",{[ke]:e,type:"custom",render:t=>i(di,{container:e,...t})}),Mt)}const Mt={not:{field:"gap",in:Array.from({length:-Lt.min},(e,t)=>Lt.min+t)}};function ia(e){return{gap:I("desktop",ai(e)),[Ie("gap")]:ui(e),[K("gap")]:ci(e)}}function di({container:e,...t}){const[n]=F("gap"),{siteGap:o}=t.field??{},r=Math.max(Pe.min,Bt(e,n,o));return Be({...Pe,builtIn:r,resolve:a=>Ae(a)?a:r,action:(a,c)=>i(C,{words:y()?.panel,label:s("Gap"),changed:Ae(a),detail:H(u=>s(u),`${r}px`),onReset:()=>c(void 0)})}).render(t)}function pi({container:e,...t}){const[n]=F("gap"),{siteGap:o,siteGapPhone:r}=t.field??{},l=vt(e,void 0,n,o,r);return Be({...Pe,builtIn:l,resolve:c=>vt(e,c,n,o,r),action:(c,u)=>i(C,{words:y()?.panel,label:s("Gap"),changed:Ae(c),detail:M(`${l}px`,Ar(e,n,r)?s("Styles"):s("Desktop")),onReset:()=>u(void 0)})}).render(t)}function la(e){return ti({offered:xr(e),fallback:Tt(e,void 0),resolve:t=>Tt(e,t)})}function sa(e,t){return En(t?Tn(e,t):[],t)}function fi({inherited:e,onReset:t,label:n}){return i(C,{words:y()?.panel,label:s(n),changed:!e,detail:M(s("Full"),s("the page")),onReset:t})}function U({value:e,onChange:t,label:n,placeholder:o,hint:r,multiline:l,hideable:a=!0,markup:c=!0}){const{text:u,hidden:p}=Ve(e),h=z(null),f=z(null),d=_=>t(a?{text:_,hidden:p}:_),g=()=>t({text:u,hidden:!p}),m=a&&p,S=Xe(),w=r?Si(r)?i("span",{className:"sf-hint-while-typing",children:s(r)}):s(r):void 0,b=p?s("Show {label} on the slide",{label:s(n)}):s("Hide {label} on the slide",{label:s(n)});return i(x,{label:s(n),icon:i(Yn,{}),htmlFor:S,className:m?"is-hidden":void 0,hint:w,action:a?i(xe,{content:b,children:i(bt,{"aria-pressed":p,"aria-label":b,onClick:g,children:p?i(Ct,{name:"eye-off",size:14}):i(Ct,{name:"eye",size:14})})}):void 0,children:P("div",{className:"sf-copybox",children:[c&&i(xt,{target:l?f:h,value:u,onChange:d}),l?i("textarea",{id:S,ref:f,value:u,placeholder:o===void 0?void 0:s(o),onChange:_=>d(_.target.value)}):i("input",{id:S,ref:h,type:"text",value:u,placeholder:o===void 0?void 0:s(o),onChange:_=>d(_.target.value)})]})})}function aa(e,t){return{...e,[Je]:t}}function ca(e){const t=e[E];if(!t)throw new Error("withOffPage: the field holds no authored text");return{...e,[E]:{...t,offPage:!0}}}function ua(e){return!e||typeof e!="object"?!1:e[E]?.offPage===!0}function da(e){if(!e[E])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Bo]:!0}}function pa(e){return Lo(e)}function fa(e){const t=e[E];if(!t)throw new Error("withIdentifier: the field holds no authored text");return{...e,[E]:{...t,identifier:!0}}}import{TEXT_CONTROL_KINDS as _c,SCALAR_TEXT_CONTROLS as Ic}from"efficient-easel/draw";function ha(e,t){if(!e[E])throw new Error("inOwnBox: the field holds no authored text");const{[ko]:o,...r}=e;return{...r,[Fo]:!0,render:t}}const hi=new Set($o),le={type:"radio",options:[{value:!0},{value:!1}]},Ut={text:{type:"object",objectFields:{text:{type:"text"},hidden:le}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:le}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},W=(e,t)=>{const n=A({...t,[E]:e},{...Ut[e.control],label:e.label});if(!hi.has(e.control))return n;const o=t.render;return{...yt(n,"authored-copy"),render:r=>i(Do,{name:r.name,children:o(r)})}},ma="Everything else on this block comes from the linked post. Unlink it to edit by hand.",mi={field:"source.slug",set:!0},ga={not:mi},gi="Select a word, then press the highlighter.",bi=new Set([gi]),Si=e=>bi.has(e);function ba(e,t,n){return W({control:"text",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(U,{value:o,onChange:r,label:e,placeholder:t,hint:n})})}function Sa(e,t,n){return W({control:"textarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(U,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0})})}function wa(e,t,n){return W({control:"plainText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(U,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1,markup:!1})})}function xa(e,t,n){return W({control:"copyText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(U,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1})})}function ya(e){return{type:"custom",[ze]:{label:e},...A({},{type:"text",label:e}),render:({value:t,onChange:n})=>i(zo,{value:Ye(t),onChange:n,label:e})}}function Ca(e,t,n){return W({control:"plainTextarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(U,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0,hideable:!1})})}const _a={Design:Pn,Animation:An};function Ia(e){return{type:"custom",render:()=>i(wi,{text:e})}}function wi({text:e}){return i("p",{className:"sf-note",children:s(e)})}function Oa(e){return he(e)!==null&&e?.tabs!==void 0}const Wt=new Map;function Ta(e,t){const n=`${e}\0${t?t.join(""):""}`,o=Wt.get(n)??{type:"custom",tabs:t,[fe]:{label:e,level:1},bucket:e,marker:!0,render:()=>i(k,{})};return Wt.set(n,o),o}const Kt=new Map;function Ea(e){const t=Kt.get(e)??{type:"custom",[fe]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>i(k,{})};return Kt.set(e,t),t}function xi(e){const t=e;return t?.marker===!0&&typeof t.fold=="string"?t.fold:null}function Ra(e,t){return xi(e)===t?e:{...e,marker:!0,fold:t,render:()=>i(k,{})}}function Na(e){const t=e;if(t.marker===!0&&t.fold===void 0)return e;const{fold:n,...o}=e;return{...o,marker:!0,render:()=>i(k,{})}}function Pa({title:e,children:t}){const[n,o]=q(()=>!De.has(e));return i(oo,{title:e,open:n,onToggle:r=>{o(r),r?De.delete(e):De.add(e)},children:t})}const De=new Set;function yi({swatches:e,current:t,onPick:n,names:o}){const r=e.find(c=>c.toLowerCase()===t.toLowerCase()),l=r?o?.[r]:void 0,a=l?s(l):t;return P("div",{className:"sf-swatches",children:[e.map(c=>{const u=o?.[c]?s(o[c]):c;return i(xe,{content:u,children:i(wo,{color:c,selected:t.toLowerCase()===c.toLowerCase(),onClick:()=>n(c),"aria-label":u})},c)}),i("span",{className:"sf-swatch-hex",children:a})]})}function ka(e,t,n=!1){return{type:"custom",render:({value:o,onChange:r})=>i(Ci,{label:e,builtIn:t,followsBand:n,value:o,onChange:r})}}function Ci({label:e,builtIn:t,followsBand:n,value:o,onChange:r}){const l=typeof o=="string"?o:void 0,{colors:a,n:c}=Ue(),u={background:a.background,surface:a.surface,surface2:Pr(a),band:Nr(a)},p=n?Fe:t,h=$r(l,t,p),f=Dt(void 0,p,u),d=n?Ur:void 0,g=p===Fe?s("the theme's section background"):s("Theme {n} background",{n:c}),m=_i(l,t,a,c,u,r),S=M(f.toUpperCase(),g),w=ye(l),b=w?oe(w,a,c):null;return b?i(ne,{label:s(e),icon:i(nt,{}),value:b.hex,caption:b.words,onChange:r,changed:!0,onReset:()=>r(d),resetTo:S,choices:m}):i(wt,{label:s(e),icon:i(nt,{}),value:h?"":Dt(l,t,u),inherited:f,resetTo:S,onChange:r,onReset:()=>r(d),choices:m})}function _i(e,t,n,o,r,l){const a=Kr(e,t);return[{label:s("No fill"),color:"",selected:a==="none",onPick:()=>l(Wr)},{label:`${s("Section band")} · ${r.band.toUpperCase()}`,color:r.band,selected:a==="band",onPick:()=>l(Fe)},...Me(ye(e)??"",n,o,l)]}function Ii(e,t){return{type:"custom",render:({value:n,onChange:o})=>{const r=n,l=Hr(r,t);return i(x,{label:s(e),icon:i(ge,{}),changed:!l,action:i(C,{words:y()?.panel,label:s(e),changed:!l,detail:s("the theme's image stage"),onReset:()=>o(Lr)}),children:yi({swatches:Dr,current:l?Mr:Gr(r,t),onPick:o,names:vr})})}}}function Aa(e=n=>n,t){return Z({_gSectionTheme:T(Xr),sectionAccent:{type:"custom",render:({value:n,onChange:o})=>i(Vo,{value:e(n),onChange:o,followLabel:t})}})}function V({min:e,max:t,step:n,value:o,onChange:r,suffix:l="",readout:a=!0,notch:c,ariaLabel:u,disabled:p=!1,placeholder:h,placeholderWord:f,onClear:d,units:g}){const m=c!==void 0&&Number.isFinite(c)&&c>=e&&c<=t;return i("div",{className:m?"sf-slider has-notch":"sf-slider",style:m?{"--sf-notch":(c-e)/(t-e)}:void 0,children:i(Ro,{min:e,max:t,step:n,value:o,...o===null&&h!==void 0?{placeholderValue:h}:{},...f?{emptyLabel:s(f)}:{},suffix:l||void 0,...g?{units:g}:{},showInput:a,label:u===void 0?void 0:s(u),disabled:p,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:S=>{S===null?d?.():S!==o&&r(S)}})})}function Oi(e,t){const{min:n,max:o,step:r=1,unsetLabel:l,hint:a,restTrack:c,unsetMark:u,icon:p,unit:h="px"}=t;return{type:"custom",render:({value:f,onChange:d})=>{const g=typeof f=="number"?f:null,m=g===null;return i(x,{label:s(e),icon:p?X(p):void 0,value:m?u||l===void 0?void 0:s(l):`${g}${h}`,changed:!m,action:u?pe(u,{changed:!m,onReset:()=>d(null)}):i(C,{words:y()?.panel,label:s(e),changed:!m,onReset:()=>d(null)}),hint:typeof a=="string"?s(a):a,children:c?c({min:n,max:o,step:r,px:g,label:e,onChange:d}):V({min:n,max:o,step:r,value:g??n,readout:!1,ariaLabel:e,onChange:d})})}}}const se="Corners";function He(e){return{type:"custom",render:({value:t,onChange:n})=>{const o=typeof t=="number"&&Number.isFinite(t)?t:null,r=o!==null;return i(x,{label:s(se),icon:i(rt,{}),changed:r,action:pe(e.mark,{changed:r,onReset:()=>n(null)}),hint:e.hint,children:i(Ei,{tier:e,px:o,onRadius:n})})}}}function F(e){const t=B();return[t?.values?.[e],n=>t?.onChange(e,n)]}function $t(){return yt({type:"custom",render:()=>i(Ao,{})},"always")}function Ti(){const e=B();return t=>e?.onChangeMany(t)}function Ei({tier:e,px:t,onRadius:n}){const o=e.useFollowed(),[r,l]=F(e.sidesKey),a=ft(r)??[...pt];return i(xo,{label:s(se),value:a,corners:Zn,onChange:c=>{const u=ft(c)??[];l(u.length===pt.length?null:u)},radius:t,onRadiusChange:n,radiusMin:L,radiusMax:et,radiusStep:e.step??1,radiusPlaceholder:String(o)})}function Xt(){return $t()}function Ri({label:e,changed:t=!1,onReset:n=()=>{}}){const{cornerRadiusPx:o}=D(),r=typeof o=="number"?`${o}px`:s("not set");return i(C,{words:y()?.panel,label:s(e),changed:t,detail:o==null?s("the built-in corners"):M(r,s("Styles")),onReset:n})}function Ni(){const{cornerRadiusPx:e}=D();return typeof e=="number"?e:L}function Pi(){return He({sidesKey:"sectionCornerSides",useFollowed:Ni,mark:i(Ri,{label:se}),hint:ki})}const ki="Follows Styles ▸ Basics ▸ Corners until you set a number here.";function Fa(){return Z({_gShape:T("Shape"),sectionCorners:Pi(),sectionCornerSides:Xt(),...v("sectionBorder",Di)})}const Ai=()=>({width:s("Border width"),sides:{top:s("Border top"),right:s("Border right"),bottom:s("Border bottom"),left:s("Border left")},style:s("Border style"),styles:{solid:s("Solid"),dashed:s("Dashed"),dotted:s("Dotted")},color:s("Border color"),unit:"px"});function Fi(e){const t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""));return Object.keys(t).length?t:void 0}function Li(){let e;try{const t=Ft(D().theme);e=t.themes[t.selected]?.line}catch{e=void 0}return e||Er.line}function Bi({value:e,onChange:t,placeholder:n,presets:o,sides:r=!0,styles:l=!0,above:a={}}){const c=e&&typeof e=="object"?e:{},[u,p]=q(()=>r?ao(c,a):!1),h=Ai(),f=d=>Fi(r&&l?d:{width:d.width,color:d.color,...l?{style:d.style}:{}});return i(x,{label:s("Border"),icon:i(Fn,{}),action:r?i(lo,{each:u,label:s("Each side"),onChange:p}):void 0,children:i(io,{label:s("Border"),value:c,each:u,onChange:d=>t(f(d)),placeholder:n,presets:o,words:h,styles:l,max:Tr})})}function vi({value:e,onChange:t,view:n}){const[o]=F("sectionBorder"),[r]=F(Ie("sectionBorder")),l=Li(),a=u=>u&&typeof u=="object"?u:{},c=n==="phone"?{...At(a(o)),...At(a(r))}:n==="tablet"?a(o):{};return i(Bi,{value:e,onChange:t,placeholder:{sides:so(c),style:c.style??"solid",color:c.color||l},presets:[l],above:c})}function Di(e){return{type:"custom",render:({value:t,onChange:n})=>i(vi,{value:t,onChange:n,view:e})}}function La(e){return{type:"custom",render:()=>i(Hi,{partKey:e})}}function Hi({partKey:e}){const[t]=F("id"),[n]=F("_partStyles"),{textStyles:o}=D(),r=er();let l=null;try{l=Jo().select}catch{l=null}const a=n&&typeof n=="object"?n[e]:void 0,c=Array.isArray(o)?o:null;return i(no,{name:s("Text"),preview:qo(a,c,{noStyle:s("No style"),styleName:r.textStyles.styleName,cases:(r.copy.panel??Qo.copy.panel).cases}),onOpen:()=>{l&&typeof t=="string"&&l(Zo(t,e))}})}function jt(e){const{cornerRadiusPx:t}=D(),n=typeof t=="number"?t:e;let o=null;try{const{appState:l,selectedItem:a}=Q(u=>u),c=a?.props?.id?String(a.props.id):void 0;o=c?to(l?.data,c)?.props??null:null}catch{o=null}if(!o)return n;const r=o.sectionCorners;return Qn(r)?r:n}function Gi({label:e,changed:t=!1,onReset:n=()=>{}}){const o=jt(L);return i(C,{words:y()?.panel,label:s(e),changed:t,detail:M(`${o}px`,s("the section")),onReset:n})}function Mi(){return i(k,{children:s("Follows the section's Corners until you set a number here.")})}function Ui(){return He({sidesKey:"cardCornerSides",useFollowed:()=>jt(L),mark:i(Gi,{label:se}),hint:i(Mi,{})})}function Wi(){return{type:"custom",render:()=>i(mn,{})}}function Ba(){return{_gShape:T("Shape"),cardCorners:Ui(),cardCornerSides:Xt(),cardCornersApplyAll:Wi()}}function Ki(){return A({type:"custom",render:e=>i(Xi,{...e})},{type:"select",label:$,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function $i(e,t){const n=kt(e);if(n!=="custom")return s(Pt.find(r=>r.value===n)?.label??"");const o=gt(Ne(e,t),t);return o?[...o,100-o.reduce((r,l)=>r+l,0)].join(" / "):s("Custom")}function Xi(e){const{value:t,onChange:n}=e,[o]=F("content"),r=Array.isArray(o)?o.length:0,l="follows"in e,a=t!=null,c=a?t:l?e.follows:void 0,u=kt(c),p=r>=2&&r<=mt,h=()=>[...Oo[r]??[]],f=z(null),d=b=>{const _=f.current;_&&JSON.stringify(b)===JSON.stringify(_.shares)?n(_.value):b&&n(b)},g=b=>{b===u||b==="custom"&&!p||n(b==="custom"?h():b)},m=s("The width bar works for 2 to {count} blocks.",{count:mt}),S=a&&(l||t!=="content"),w=Eo().widths.hint(r,Io);return i(x,{label:s($),icon:i(me,{}),changed:S,hint:u!=="custom"?void 0:p?w:m,action:i(C,{words:y()?.panel,label:s($),changed:S,disabled:e.readOnly===!0,detail:l?H(b=>s(b),$i(e.follows,r),e.followsView):s("Fit content"),onReset:()=>n(void 0)}),children:P("div",{className:"sf-share-row",children:[i("div",{className:"sf-share-pick",children:i(ht,{label:s($),value:u,options:Pt.map(b=>({value:b.value,label:b.value==="custom"&&!p?m:s(b.label),icon:ri(i("span",{className:"sf-gallery-pic sf-share-pic",children:Vt(b.weights).map((_,Y)=>i("i",{style:{gridColumn:`span ${_}`}},Y))}),s(b.label),b.value==="custom"&&!p?m:s(b.label))})),onChange:g,columns:3,cell:Yt,tooltips:!1,disabled:e.readOnly===!0})}),u==="custom"&&p?i("div",{onFocus:()=>{f.current={value:t,shares:gt(Ne(c,r),r)}},onBlur:()=>{f.current=null},children:i(To,{label:s($),count:r,value:Ne(c,r),onChange:d,readOnly:e.readOnly===!0})}):null]})})}function Vt(e){if(!e)return[3,4];const t=e.reduce((n,o)=>n+o,0);return e.map(n=>Math.round(n/t*12))}function va(){return j(yr,i(Mn,{}),Et,Et[0].value)}function Da(){return I("mobile",ni($,i(me,{}),Or.map(e=>({label:e.label,value:e.value,picture:i("span",{className:"sf-gallery-pic sf-share-pic",children:Vt(e.weights).map((t,n)=>i("i",{style:{gridColumn:`span ${t}`}},n))})})),Ir,{columns:2,cell:Yt}))}const Yt={width:"5.75rem",height:"3.25rem"};function Ha(){return Le("share",Ki(),Gt)[Ie("share")]}function ji(){return I("mobile",G(Rt,i(ot,{}),Re,_r,1,Re,"",{clear:{phoneFollows:!1,hint:Re}}))}const zt={read:e=>e.phoneRow,write:(e,t,n)=>({phoneRow:n}),fieldKey:()=>"phoneRow",ownField:!0};function Ga(){const e=G(Rt,i(ot,{}),Nt,Cr,1,Nt,"",{clear:{emptyLabel:"Auto"}}),t=Le("columns",e,{...zt,tablet:Gt.tablet}),n=Le("columns",e,zt,{phoneRow:ji()});return{...t,phoneRow:n.phoneRow}}function Ma(e,t,n,o,r,l){return{type:"custom",render:({value:a,onChange:c})=>i(x,{label:s(e),icon:i(dt,{noun:l}),action:i(C,{words:y()?.panel,label:s(e),changed:!Yr(a),detail:s("the Text style in Styles"),onReset:()=>c(Vr),defaultAction:{onPress:()=>c(jr),title:s("Keep this section's own built-in size"),icon:i(Ln,{})}}),children:V({min:t,max:n,step:o,value:typeof a=="number"?a:r,suffix:"px",ariaLabel:e,onChange:c})})}}function Ua(){return{_gCellWidth:T("Cell width"),gridSpan:j("Positions",i(me,{}),[{label:"Auto",value:""},...Array.from({length:xn},(e,t)=>({label:t===0?"1 position":`${t+1} positions`,value:String(t+1)}))],"")}}function N(){let e=null,t=null;try{e=$e(Vi),t=Q(n=>n).selectedItem}catch{t=null}return e??t?.props??{}}const Vi=nn(null);function Yi({min:e,max:t,step:n,px:o,label:r,onChange:l,desktopKey:a,fallback:c}){const u=N()[a],p=_e(void 0,u,c);return i(k,{children:V({min:e,max:t,step:n,value:_e(o,u,c),readout:!1,ariaLabel:r,notch:p,onChange:l})})}function zi({label:e,desktopKey:t,fallback:n,unit:o="px",changed:r=!1,onReset:l=()=>{}}){const a=N()[t],c=_e(void 0,a,n);return i(C,{words:y()?.panel,label:s(e),changed:r,detail:H(u=>s(u),`${c}${o}`),onReset:l})}function qi(e){return Oi(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:i(zi,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:t=>i(Yi,{...t,desktopKey:e.desktopKey,fallback:e.fallback})})}const Ji={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Zi={Top:be,Bottom:st,Left:at,Right:ct},Qi=e=>{const t=Zi[e];return i(t,{})};function Wa(e={}){const t=e.keys?.top??"sectionPaddingTop",n=e.keys?.bottom??"sectionPaddingBottom",o=e.group!==!1,r=w=>Ji[w],l=w=>G(r("Top"),i(be,{}),R.min,R.max,R.step,w,"px"),a=(w,b,_,Y=R)=>I("mobile",qi({label:r(w),icon:Qi(w),desktopKey:b,min:Y.min,max:Y.max,step:Y.step,fallback:_})),c=e.top??R.min,u=e.bottom??R.min,p="sectionPaddingLeft",h="sectionPaddingRight",f=e.sideBounds??R,d=e.side??f.min,g=e.sidePhone??d,m=e.phone===!0,S=w=>m?I("desktop",w):w;return Z({...o?{_gSpacing:T("Padding")}:{},[t]:S(l(c)),...m?{[K(t)]:a("Top",t,c)}:{},...e.only==="top"?{}:{[n]:S(G(r("Bottom"),i(st,{}),R.min,R.max,R.step,u,"px")),...m?{[K(n)]:a("Bottom",n,u)}:{}},...e.sides?{[p]:S(G(r("Left"),i(at,{}),f.min,f.max,f.step,d,"px")),...m?{[K(p)]:a("Left",p,g,f)}:{},[h]:S(G(r("Right"),i(ct,{}),f.min,f.max,f.step,d,"px")),...m?{[K(h)]:a("Right",h,g,f)}:{}}:{}})}function Ka(e,t){const n=Object.fromEntries(Object.entries(t).map(([l,a])=>[l,l in e&&he(a)?e[l]:a])),o={};let r=!1;for(const[l,a]of Object.entries(e)){if(l in t){r||Object.assign(o,n),r=!0;continue}o[l]=a}return r||Object.assign(o,n),o}const ae="Width";function $a(e,t=zr,n=!0){const o=t.map(r=>({label:qr[r],value:r}));return Z({...n?{_gWidth:T(ae)}:{},widthMode:{type:"custom",render:({onChange:r,field:l})=>i(x,{label:s(ae),icon:i(zn,{}),action:n?i(fi,{inherited:l?.inherited??!1,onReset:()=>r(Jr),label:ae}):void 0,children:ve({options:o,value:l?.currentValue||e,onChange:r,ariaLabel:ae})})}})}function Xa(){const e=(o,r)=>({type:"custom",render:({value:l,onChange:a})=>i(el,{value:l,onChange:a,view:o,badge:r})}),t=()=>Ce("sectionHeightMode"),n=()=>Ce("sectionHeightMode");return Z({_gHeight:T(J),...v("sectionHeightMode",o=>o==="desktop"?e(o):e(o,r=>i(rl,{view:o,onClear:()=>r(void 0)}))),...v("sectionHeightValue",t),...v("sectionHeightUnit",n)})}function el({value:e,onChange:t,view:n,badge:o}){const r=N(),{mode:l,number:a,unit:c}=tl(n,r,e);return i(x,{label:J,icon:X(i(it,{})),action:o?o(t):void 0,children:P("div",{className:"es-width-stack",children:[ve({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:l,onChange:t,ariaLabel:J}),a?i(ol,{view:n,mode:l,menu:c}):null]})})}function qt(e,t){return e==="phone"&&Oe(t)?or(t):nr(t)}function ce(e,t){return e==="desktop"||(e==="tablet"?Oe(t):tr(t))?null:qt(e,t)}function tl(e,t,n){const r=(l=>["auto","fixed","screen"].includes(l))(n)?n:ce(e,t)?.mode??"auto";return{mode:r,number:r!=="auto",unit:r==="fixed"}}function nl(e,t,n,o){const r=ce(e,t);return!r||e==="desktop"?null:o===void 0?{}:{[O("sectionHeightMode",e)]:r.mode,...r.mode==="fixed"?{[O("sectionHeightUnit",e)]:r.unit}:{},...n==="sectionHeightUnit"?{[O("sectionHeightValue",e)]:r.value}:{},[O(n,e)]:o}}function Jt(e,t,n){const o=B(),r=ce(e,N());return!o||!r?{followed:null,write:n}:{followed:r,write:a=>o.onChangeMany(c=>{const u=nl(e,c,t,a);return u===null?{[O(t,e)]:a}:Object.keys(u).length?u:null})}}function ol({view:e,mode:t,menu:n}){const o=B(),r=N(),l=O("sectionHeightValue",e),a=O("sectionHeightUnit",e),c=w=>b=>o?.onChangeMany(()=>({[w]:b})),{followed:u,write:p}=Jt(e,"sectionHeightValue",c(l)),{write:h}=Jt(e,"sectionHeightUnit",c(a)),f=t==="screen"?"%":r[a],d=(u?u.unit:f)==="%"?"%":"px",g=d==="%"?wr:Sr,m=r[l],S=n?{options:["px","%"],label:s("Unit"),onChange:w=>h(w)}:void 0;return V({min:g.min,max:g.max,step:g.step,value:u?null:typeof m=="number"?m:g.fallback,...u?{placeholder:u.value}:{},suffix:d,...S?{units:S}:{},ariaLabel:J,onChange:p})}function rl({view:e,onClear:t}){const n=N(),o=ce(e,n)===null,r=e==="phone"&&Oe(n),l=qt(e,n),a=H(c=>s(c),l.mode==="auto"?s("Auto"):`${l.value}${l.unit}`,r?"tablet":"desktop");return i(C,{words:y()?.panel,label:s(J),changed:o,detail:a,onReset:t})}function ja(e={}){const t=e.intro===!0,n=l=>({type:"custom",render:({value:a,onChange:c,id:u,name:p})=>i(dl,{value:a,onChange:c,labelId:`${u??p??"stickTop"}-label`,view:l,intro:t})}),o=l=>({type:"custom",render:({value:a,onChange:c})=>i(al,{value:a,onChange:c,view:l,intro:t})}),r=l=>({type:"custom",render:({value:a,onChange:c})=>i(cl,{value:a,onChange:c,view:l,intro:t})});return{_gStick:T(ar,{dot:t?sl:Ot}),...v("stickTop",n),...v("stickTopDistance",o),...e.screens?v(Te,r):{},...t?{}:{[dr]:il()},...t||e.above===!1?{}:{[lr]:ll()}}}function il(){const e=j(pr,i(be,{}),fr,cr);return I("desktop",{...e,render:t=>{const n=e.render({...t,value:gr(t.value),onChange:o=>t.onChange(br(o))});return pe(n,{hint:s(ur)})}})}function ll(){const e=en(sr,!1,i(ut,{}),ir);return I("desktop",{...e,render:t=>e.render({...t,onChange:n=>t.onChange(n===!0?!0:void 0)})})}const sl={any:[Ot,rr]};function Zt(e,t,n,o){const r=B(),l=N(),a=e==="desktop"||ue(e,l)?null:Ge(e,Ee(l,{intro:o}));return{followed:a,write:a&&r?u=>r.onChangeMany(p=>{const h=ul(e,p,u,t,o);return h===null?{[O(t,e)]:u}:Object.keys(h).length?h:null}):n}}function al({value:e,onChange:t,view:n,intro:o}){const{followed:r,write:l}=Zt(n,"stickTopDistance",t,o);return i("div",{className:"sf-field",children:V({min:re.min,max:re.max,step:re.step,value:r?null:typeof e=="number"?e:re.fallback,...r?{placeholder:r.distance}:{},suffix:"px",ariaLabel:s("Distance from top"),onChange:l})})}function cl({value:e,onChange:t,view:n,intro:o}){const{followed:r,write:l}=Zt(n,Te,t,o);return i(x,{label:s(It),icon:X(i(it,{})),children:V({min:ee.min,max:ee.max,step:ee.step,value:r?null:sn(e)??ee.default,...r?{placeholder:r.screens}:{},ariaLabel:s(It),onChange:l})})}function ue(e,t){return e==="tablet"?mr(t):hr(t)}function Ge(e,t){return e==="phone"?{on:t.tablet,distance:t.tabletDistance,screens:t.tabletScreens}:{on:t.desktop,distance:t.desktopDistance,screens:t.desktopScreens}}function ul(e,t,n,o="stickTopDistance",r=!1){if(e==="desktop"||ue(e,t))return null;if(n===void 0)return{};const l=Ge(e,Ee(t,{intro:r})),a=e==="phone"&&ue("tablet",t)?u=>O(u,"tablet"):u=>u,c=(u,p)=>t[a(u)]==null?{}:{[O(u,e)]:p};return{[O("stickTop",e)]:!0,...c("stickTopDistance",l.distance),...c(Te,l.screens),[O(o,e)]:n}}function dl({value:e,onChange:t,labelId:n,view:o,intro:r}){const l=N(),a=Ee(l,{intro:r}),c=o==="phone"?a.phone:o==="tablet"?a.tablet:r?a.desktop:e===!0,u=o==="phone"&&a.ownTablet,p=o==="desktop"?null:Ge(o,a),h=p?.on?`${p.distance}px`:s("Off");return i(x,{label:s(_t),labelId:n,icon:X(i(ut,{})),action:P(k,{children:[o!=="desktop"?i(C,{words:y()?.panel,label:s(_t),changed:ue(o,l),detail:H(f=>s(f),h,u?"tablet":"desktop"),onReset:()=>t(void 0)}):null,i(we,{checked:c,onChange:t,ariaLabelledBy:n})]})})}const Qt="e.g. about";function Va(){return{_gAnchor:T("Anchor"),anchor:W({control:"plainText",label:"Name",placeholder:Qt},{type:"custom",render:({value:e,onChange:t})=>i(Rn,{value:e,onChange:t,nameBox:(n,o)=>i(U,{value:n,onChange:o,label:"Name",placeholder:Qt,hideable:!1,markup:!1})})})}}function Ya(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:l,name:a})=>{const c=`${l??a??e}-datetime`,u=Date.parse(typeof o=="string"?o:"");return i(x,{label:s(e),icon:t,htmlFor:c,hint:n===void 0?void 0:s(n),children:i(Co,{id:c,value:Number.isFinite(u)?new Date(u):null,onChange:p=>r(p?p.toISOString():"")})})}}}function za(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:l,name:a})=>{const c=`${l??a??e}-date`;return i(x,{label:s(e),icon:t,htmlFor:c,hint:n===void 0?void 0:s(n),children:i(yo,{id:c,value:ln(typeof o=="string"?o:null),onChange:u=>r(u?rn(u):"")})})}}}function en(e,t,n,o){return{type:"custom",...A({},{...le,label:e}),render:r=>{const{value:l,onChange:a,id:c,name:u}=r,p="follows"in r,h=r,f=typeof l=="boolean",d=typeof h.follows=="boolean"?h.follows:t,g=f?l:p?d:t,m=`${c??u??e}-label`,S=h.readOnly===!0,w=i(we,{checked:g,onChange:a,disabled:S,ariaLabelledBy:m});return i(x,{label:s(e),labelId:m,icon:n,hint:o===void 0?void 0:s(o),action:p?P(k,{children:[i(C,{words:y()?.panel,label:s(e),changed:f,detail:h.followsNoView?s(d?"On":"Off"):H(b=>s(b),s(d?"On":"Off"),h.followsView),disabled:S,onReset:()=>a(void 0)}),w]}):w})}}}function qa(){return{type:"custom",render:({value:e,onChange:t,id:n,name:o})=>{const r=`${String(n??o??"pageBackground")}-colour`;return i(pl,{label:"Background",icon:i(Xn,{}),id:r,value:e,shown:qn(e),onChange:t})}}}function Ja(e,t,n){return{type:"custom",render:({value:o,onChange:r})=>i(ne,{label:s(e),icon:n,value:o||t,onChange:r})}}function pl({label:e,icon:t,id:n,value:o,shown:r,onChange:l}){const{colors:a,n:c}=Ue(),u=ye(o),p=u?oe(u,a,c):null;return i(ne,{label:s(e),icon:t,id:n,value:p?p.hex:r,caption:p?.words,onChange:l,choices:Me(u??"",a,c,l)})}function Za(){return{type:"custom",render:e=>{const{value:t,onChange:n}=e,o=e;return i(fl,{value:typeof t=="string"?t:"",onChange:n,twin:"follows"in e?{follows:o.follows,view:o.followsView}:void 0})}}}function Me(e,t,n,o){const r=Se(e);return Po(t,n).map(l=>({label:l.label,color:l.value,selected:r===l.name,onPick:()=>o(l.name)}))}function fl({value:e,onChange:t,twin:n}){const{colors:o,n:r}=Ue(),l=o.background,a=M(l.toUpperCase(),s("Theme {n} background",{n:r})),c=Se(e),u=c?oe(c,o,r):null,p=Me(e,o,r,t),h=n?()=>t(void 0):()=>t("");let f=l,d=a;if(n){const g=Se(n.follows),m=Jn(n.follows),S=g?oe(g,o,r):m?{hex:m,words:m.toUpperCase()}:null;f=S?.hex??l,d=H(w=>s(w),S?S.words:a,n.view)}return u?i(ne,{label:s("Fill"),icon:i(ge,{}),value:u.hex,caption:u.words,onChange:t,changed:!0,onReset:h,resetTo:d,choices:p}):i(wt,{label:s("Fill"),icon:i(ge,{}),value:e,inherited:f,resetTo:d,onChange:t,onReset:h,choices:p})}function hl(e,t,n){if((e?.content??[]).some(a=>a?.props?.id===t))return ie(n);const r=eo(e,t);if(r.length===0)return null;const l=ie(Ht(n));if(l!==null)return l;for(let a=r.length-1;a>0;a-=1){const c=ie(Ht(r[a].sectionAccent));if(c!==null)return c}return ie(r[0].sectionAccent)}function Ue(){const e=Ft(D().theme),[t]=F("sectionAccent");let n=null;try{const{appState:r,selectedItem:l}=Q(c=>c),a=l?.props?.id?String(l.props.id):void 0;n=a?hl(r?.data,a,t):null}catch{n=null}const o=n!==null&&e.themes[n]?n:e.selected;return{colors:Rr(e.themes[o]),n:o+1}}const ml=[{value:"0% 0%",label:"Top left"},{value:"50% 0%",label:"Top"},{value:"100% 0%",label:"Top right"},{value:"0% 50%",label:"Left"},{value:"50% 50%",label:"Center"},{value:"100% 50%",label:"Right"},{value:"0% 100%",label:"Bottom left"},{value:"50% 100%",label:"Bottom"},{value:"100% 100%",label:"Bottom right"}];function gl({label:e,value:t,onChange:n,points:o=ml}){const r=o.map(l=>({...l,label:s(l.label),...l.title?{title:s(l.title)}:null}));return i(So,{label:s(e),value:t,points:r,onChange:n})}function Qa(){return $t()}const ec={top:i(Hn,{}),right:i(Dn,{}),bottom:i(Bn,{}),left:i(vn,{})};function tc(e,t,n,o,r,l,a){const c=f=>t.find(d=>d.value===f),u=f=>({value:f,label:"",disabled:!0,title:o}),p=f=>{const d=t.find(m=>m.cell===f);if(!d)return u(`missing-${f}`);const g=l?.[f];return g?{value:d.value,label:d.label,icon:g}:{value:d.value,label:d.label}},h=[u("corner-top-left"),p("top"),u("corner-top-right"),p("left"),u("centre"),p("right"),u("corner-bottom-left"),p("bottom"),u("corner-bottom-right")];return{type:"custom",render:({value:f,onChange:d})=>{const g=t.some(m=>m.value===f)?f:n;return i(x,{label:s(e),icon:r,value:c(g)?.label?s(c(g).label):a?s(a):"",children:gl({label:e,value:g,onChange:d,points:h})})}}}function nc(e,t,n){return{type:"custom",options:t,render:({value:o,onChange:r,field:l})=>i(jo,{label:e,options:(l.options??t).map(a=>({...a,label:s(a.label)})),value:Array.isArray(o)?o:[],onChange:r,...n?{emptyLabel:s(n)}:{}})}}function oc(e,t,n,o){return{type:"custom",options:t,fallback:n,...A({},{type:"select",label:e}),render:({value:r,onChange:l,field:a})=>i(Yo,{label:e,options:(a.options??t).map(c=>({...c,label:s(c.label)})),fallback:a.fallback??n,value:r,onChange:l,placeholder:o===void 0?void 0:s(o)})}}function rc(e,t={}){return{type:"custom",render:({value:n,onChange:o})=>{const r={value:n,onChange:o,...t};return i(e,{...r})}}}const ic=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function lc(e,t,n){const o=Object.keys(je).map(r=>({label:je[r],value:r,picture:n[r]}));return{type:"custom",...A({},{type:"radio",label:e,options:o.map(r=>({value:r.value,label:r.label}))}),render:({onChange:r})=>i(Sl,{label:e,icon:t,options:o,onChange:r})}}function bl(e,t,n){const o=an(e,t,n);if(o!==void 0)return o==="save-makes-frame"?s("A frame is made from this video when you save the page."):o==="starts-dark"?s("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="outside"?s("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="unsupported"?s("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="failed"?s("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):o==="image-no-frame"?s("The slide shows your Image while the video loads, because this video has no frame."):void 0;const r=un(e);return r==="frame-missing-image"?s("This video has no frame yet. The slide shows its image until one is made."):r==="frame-missing-surface"?s("This video has no frame yet. The slide shows its background colour until one is made."):r==="image-missing-frame"?s("No image yet. The slide shows the video's frame until you choose one."):r==="image-missing-surface"?s("No image yet. The slide shows its background colour until you choose one."):void 0}function Sl({label:e,icon:t,options:n,onChange:o}){const r=B(),l=r?.values??{},a=cn(l),c=$e(fn),u=pn(c?.docId??null);let p=null;try{p=Q(f=>f.appState.data)}catch{p=null}const h=dn(r?.id,p,u);return i(x,{label:s(e),icon:X(t),hint:bl(l,h,c?.hasUnsavedEdits??!1),children:ve({options:n,value:a,onChange:o,ariaLabel:e})})}function sc(e,t,n,o={}){const r={type:"custom",[qe]:!0,render:({value:l,onChange:a,name:c})=>i(Xo,{value:l||"",onChange:a,fieldKey:c,label:e,accept:t,placeholder:n,focusKey:o.focus,focusWhen:o.focusWhen,frameKey:o.frame}),...o.focus?{focusKey:o.focus}:{},...o.focusWhen?{focusWhen:o.focusWhen}:{}};return o.focus?I("each",r):r}const ac={HeroSingle:["imageFocal"],HeroSlide:["videoFrame"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function wl(e){const t=s(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${t} · ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:t}function cc({value:e,onChange:t,label:n}){const o=e||{},r=B(),l=r?r.values!==r.node.props:!0,a=!!o.pending&&l,c=!!o.pending&&!l,u=!!Qr(Zr()).geocode,p=Xe(),h=(f,d)=>t({...o,[f]:d??void 0});return P(k,{children:[i(x,{label:s(n),icon:i(lt,{}),action:u?i(xe,{content:s("Find from the address (OpenStreetMap)"),children:i(bt,{"aria-label":s("Find from the address"),"aria-busy":a||void 0,disabled:a,onClick:()=>t({...o,pending:!0,ok:!1,status:"Finding…"}),children:i(jn,{})})}):void 0,children:u&&o.status?i(Nn,{compact:!0,oneLine:!0,spaced:!1,status:a?"busy":o.ok&&!c?"found":"notfound",statusText:a?s("Finding…"):c?s(No):s(o.status),hint:wl(o)}):null}),i(x,{label:s("Enter by hand"),labelId:p,icon:i(Gn,{}),action:i(we,{checked:!!o.manual,onChange:f=>t({...o,manual:f}),ariaLabelledBy:p})}),o.manual&&i(x,{label:s("Latitude, longitude"),icon:i(lt,{}),children:P("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[i(St,{value:typeof o.lat=="number"?o.lat:null,onChange:f=>h("lat",f),min:-90,max:90,step:1e-4,placeholder:s("Latitude")}),i(St,{value:typeof o.lng=="number"?o.lng:null,onChange:f=>h("lng",f),min:-180,max:180,step:1e-4,placeholder:s("Longitude")})]})})]})}function xl(e,t){return t===null||t<0||t>=e.length?"":e[t]?.text??""}function yl(e,t,n){const o=e.map(r=>({text:r?.text??""}));return t===null||t<0||t>=e.length?o:o.map((r,l)=>l===t?{text:n}:r)}function uc(e,t){return e===null?null:t>e?e:null}function Cl(e,t,n){if(n===null||n>=t.length)return null;for(let o=0;o<n;o+=1)if(e[o]!==t[o])return null;return e[n]!==t[n]&&t.includes(e[n])||e[n]!==t[n]&&t.length!==e.length?null:n}const dc={label:"Ticker items",icon:i($n,{})};function pc(e,t,n,o){return{type:"custom",[E]:{control:"textList",label:e,placeholder:n,itemKey:"text",rendering:o},...A({},{...Ut.textList,label:e}),render:({value:r,onChange:l})=>i(_l,{label:e,icon:X(t),items:Array.isArray(r)?r:[],placeholder:n,onChange:l,markup:o==="markup"})}}function _l({label:e,icon:t,items:n,placeholder:o,onChange:r,markup:l=!1}){const a=z(null),[c,u]=q(null),p=f=>f.map(d=>({text:d?.text??""})),h=f=>{const d=Cl(n,f,c);d===null&&(a.current=null),u(d),r(p(f))};return i(co,{label:s(e),icon:t,noun:s("item"),items:n,onChange:h,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:l?i(xt,{target:a,value:xl(n,c),onChange:f=>r(yl(n,c??-1,f)),disabled:c===null,label:c===null?s("Formatting — click a row first"):s("Formatting — row {n}",{n:c+1})}):void 0,renderRow:(f,d,g)=>i("input",{type:"text",className:l&&c===d?"sf-list-marking":void 0,value:f?.text??"",placeholder:s(o),"aria-label":s("{label} {n}",{label:s(e),n:d+1}),onChange:m=>g({text:m.target.value}),onFocus:m=>{a.current=m.currentTarget,u(d)}})})}function fc(e,t){const n=`${e.label} — row ${t+1}`;return W({control:"plainText",label:n,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:o,onChange:r})=>i(U,{value:o,onChange:r,label:s("{label} — row {n}",{label:s(e.label),n:t+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function hc(e){return{_gCards:T("Cards"),coverIndex:j("Cover image",i(Kn,{}),Wo,String(Ko),e?.coverHint??"A card's opening picture — a card pinned to a finish keeps its own."),imageBackground:Ii("Image background",Br),cardImage:tn()}}function mc(){return{outline:j("Card outline",i(Vn,{}),Go,Uo),indexBadge:j("Card number",i(Wn,{}),Ho,Mo),showBadge:en("Product badge",!0,i(dt,{noun:"tag"}))}}function gc(e){const t=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},n=r=>({...le,label:de.find(l=>l.id===r).label}),o=r=>A(Ce(We),n(r));return{_gShowOnCard:T("Show on a card"),[We]:A({type:"custom",render:()=>i(Il,{rest:{showCardPrice:!0,showCardFinishes:!0,...t}})},n(We)),showCardFinishes:o("showCardFinishes"),showCardSizes:o("showCardSizes"),showCardBuy:o("showCardBuy"),showCardPage:o("showCardPage")}}const We="showCardPrice",de=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function Il({rest:e}){const t=N(),n=Ti(),o=a=>typeof t[a]=="boolean"?t[a]:void 0,r=a=>o(a)??e[a],l=de.some(({id:a})=>o(a)!==void 0&&o(a)!==e[a]);return i(Ke,{parts:de,changed:l,shown:r,onPress:(a,c)=>n({[a]:c}),onReset:()=>n(Object.fromEntries(de.map(({id:a})=>[a,void 0])))})}function bc(e,t="display"){const n=K(t);return{[t]:I("desktop",{type:"custom",render:({value:o,onChange:r})=>i(Ke,{parts:e,changed:po(o),shown:l=>fo(o,l),onPress:(l,a)=>r(go(o,l,a)),onReset:()=>r(void 0)})}),[n]:I("mobile",{type:"custom",render:({value:o,onChange:r})=>i(Ol,{parts:e,desktopKey:t,value:o,onChange:r})})}}function Ke({parts:e,changed:t,shown:n,onPress:o,onReset:r,detail:l,disabledReason:a}){const c=s("Display");return i(x,{label:c,icon:i(kn,{}),changed:t,action:i(C,{words:y()?.panel,label:c,changed:t,detail:l,onReset:r}),children:i(uo,{label:c,items:e.map(u=>({id:u.id,label:s(u.label),shown:n(u.id),...a?{disabled:!0,disabledReason:s(a)}:{}})),onChange:o})})}function Ol({parts:e,desktopKey:t,value:n,onChange:o}){const r=N()[t];return i(Ke,{parts:e,changed:mo(n),shown:l=>ho(r,n,l),onPress:(l,a)=>o(bo(n,l,a)),onReset:()=>o(vo),detail:s("the same as Desktop")})}function tn(e=gn){return G("Card image",i(rt,{}),L,et,bn,L,e,{clear:{hint:L},hint:"Rounds the picture. The card's own corner is in Styles."})}function Tl(){return oi(Qe,"cardImage")}function Sc(){return{cardImage:tn(Qe),...Tl()}}function wc(){return He({sidesKey:"cornerSides",step:Sn,useFollowed:()=>L,mark:i(El,{label:wn}),hint:s("Rounds the picture. Left alone it stays square.")})}function El({label:e,changed:t=!1,onReset:n=()=>{}}){return i(C,{words:y()?.panel,label:s(e),changed:t,onReset:n})}function xc(){return{type:"custom",render:({value:e,onChange:t})=>i(kl,{value:typeof e=="string"?e:"",onChange:t})}}function Rl({layout:e,width:t}){const n=_n(e),o=n?`${n[0]}/${n[1]}`:void 0;return i("span",{"aria-hidden":"true",style:{display:"grid",width:t,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:o?"auto":6,gridAutoFlow:"row dense",gap:2},children:In(e).map(([r,l],a)=>i("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${r}`,gridRow:`span ${l}`,aspectRatio:o}},a))})}const Nl={width:"3.5rem",height:"2.5rem"},Pl=200;function kl({value:e,onChange:t}){const[n,o]=q(null),[r,l]=q(4),a=z(null);on(()=>{const d=a.current;if(!d||typeof ResizeObserver!="function")return;const g=()=>l(d.getBoundingClientRect().width>=Pl?4:3);g();const m=new ResizeObserver(g);return m.observe(d),()=>m.disconnect()},[]);const c=e&&e in te?e:"",u=tt(n,c),p=tt(n,"").length,h=On("no-symbol"),f=[{value:"",label:s("Not chosen"),icon:ii(h,s("Not chosen"))},...u.map(d=>({value:d,label:s(te[d].label),icon:i(Rl,{layout:te[d],width:40})}))];return i(x,{label:s("Layout"),icon:i(Un,{}),value:c?s(te[c].label):void 0,children:i("div",{ref:a,style:{flex:"1 1 auto",minWidth:0},children:i(ht,{label:s("Layout"),value:c,options:f,onChange:t,columns:r,cell:Nl,header:P("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[i("span",{className:"text-2xs text-ink-faint",children:s("Photos in a row")}),i(ro,{options:[{id:"all",label:s("All")},...yn.map(d=>({id:String(d),label:String(d)}))],value:n===null?"all":String(n),ariaLabel:s("Photos in a row"),onChange:d=>o(d==="all"?null:Number(d))}),i("span",{className:"text-2xs text-ink-faint",children:s("{n} of {total} layouts",{n:p,total:Cn.length})})]})})})})}export{mi as BOUND_TO_POST,ma as BOUND_TO_POST_NOTE,_a as BUCKET_ICONS,ac as CUSTOM_FIELD_MEDIA,cc as CoordsField,Mt as DESKTOP_GAP_NOT_OVERLAP,Ke as DisplayRow,ec as EDGE_ARROWS,_o as FOCAL_DEFAULT,ml as FOCAL_POINTS,fe as FOLD_FIELD_MARKER,gl as FocalPicker,gi as HIGHLIGHT_HINT,U as HidableTextField,ze as LINK_FIELD_MARKER,ra as Label,qe as MEDIA_FIELD_MARKER,ic as MEDIA_TYPE_OPTIONS,ga as NOT_BOUND_TO_POST,Pa as PanelBand,wi as PanelNoteLine,Vi as RowPropsContext,Je as SCAFFOLD_FIELD_MARKER,Ic as SCALAR_TEXT_CONTROLS,si as SiteGapDefaultReset,V as Slider,yi as Swatches,_c as TEXT_CONTROL_KINDS,E as TEXT_FIELD_MARKER,dc as TICKER_ITEMS_ROW,_l as TextListField,pl as ThemeFillRow,ae as WIDTH_LABEL,fi as WidthDefaultReset,Cl as aimAfterListChange,Va as anchorFields,M as backTo,ka as backgroundField,va as boxBlockSpacingField,Ga as boxColumnsFields,Za as boxFillField,ji as boxPhoneRowField,Ki as boxShareField,Da as boxSharePhoneField,Ha as boxShareTabletField,hl as boxThemeIndexOf,Ta as bucketHeader,La as buttonWordsEntryField,Ui as cardCornersField,Ii as cardImageBackgroundField,tn as cardImageField,Sc as cardImageFields,hc as cardMediaFields,Ba as cardShapeFields,gc as cardShowFields,mc as cardStyleFields,Ua as cellWidthFields,Ja as colorInput,la as containerDirectionField,ai as containerGapField,ci as containerGapPhoneField,ia as containerGapRows,ui as containerGapTabletField,wl as coordsResultTip,xa as copyText,Xt as cornerSidesField,He as cornersRowField,za as date,Ya as dateTime,Ea as designGroupHeader,bc as displayFields,tc as edgePad,Me as fillSlotChoices,uc as focusAfterRemove,Qa as focusKeptField,Ra as foldMarker,he as foldMetaOf,xi as foldTitleOf,nl as followedHeightPatch,ul as followedStickPatch,xc as galleryLayoutField,Xa as heightFields,ce as heightFollowedBy,tl as heightLayersAt,sa as heroGroupPlacementPoints,Ye as hidableText,Si as hintIsWhileTyping,wc as imageCornersField,ha as inOwnBox,Oa as isBucketHeader,$t as keptBy,ya as linkField,bl as loadingRowHint,lc as loadingShowsField,nc as multiSelect,qa as pageBackgroundField,Ia as panelNote,qi as phoneOverrideField,wa as plainText,Ca as plainTextarea,Oi as pxField,Na as quietMarker,Ve as readHidable,xl as rowText,oc as searchSelect,_i as sectionBandChoices,Pi as sectionCornersField,Fa as sectionShapeFields,Aa as sectionThemeFields,yl as setRowText,Ma as sizeField,rc as sourceField,Wa as spacingFields,ja as stickFields,Ka as swapPadding,ba as text,hn as textFieldIdentifier,ua as textFieldOffPage,pa as textFieldPanelOnly,pc as textList,fc as textListRowField,Sa as textarea,en as toggle,sc as upload,Ti as useSelectedPatch,N as useSelectedProps,F as useSelectedSibling,li as useSiteGapDetail,$a as widthField,fa as withIdentifier,ca as withOffPage,da as withPanelOnly,aa as withScaffold};
|
|
@@ -20,13 +20,10 @@ export declare const SECTION_THEME_FIELD_KEYS: readonly string[];
|
|
|
20
20
|
export declare const SECTION_SHAPE_FIELD_KEYS: readonly string[];
|
|
21
21
|
export declare const SECTION_ANIM_FIELD_KEYS: readonly string[];
|
|
22
22
|
export declare const CARD_MEDIA_FIELD_KEYS: readonly string[];
|
|
23
|
-
export declare const BOUND_CARD_MEDIA_FIELD_KEYS: readonly string[];
|
|
24
|
-
export declare const CARD_STYLE_FIELD_KEYS: readonly string[];
|
|
25
23
|
export declare const CARD_SHOW_FIELD_KEYS: readonly string[];
|
|
26
24
|
export declare const RETIRED: Readonly<Record<string, string>>;
|
|
27
25
|
export declare const PLACE_WORDS: Readonly<Record<Place, readonly string[]>>;
|
|
28
26
|
export declare const INJECTED_RETIRED: Readonly<Record<string, string>>;
|
|
29
|
-
export declare function foldTopTier(fields: Record<string, unknown>): 1 | 2;
|
|
30
27
|
export declare function retiredHeadings(where: string): string[];
|
|
31
28
|
export declare function assignSectionGroups<T extends Record<string, unknown>>(fields: T, where: string): T;
|
|
32
29
|
export declare function seatDesignBucket<T extends Record<string, unknown>>(fields: T): T;
|