efficient-web-builder 49.1.0 → 51.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.
Files changed (150) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/EditorPagePathProvider.d.ts +4 -0
  5. package/dist/editor/components/EditorPagePathProvider.js +1 -0
  6. package/dist/editor/components/HeroPartPanel.js +1 -1
  7. package/dist/editor/components/MediaUploadField.js +1 -1
  8. package/dist/editor/components/PagesPanel.js +1 -1
  9. package/dist/editor/components/SectionEditor.js +1 -1
  10. package/dist/editor/components/SourceStatus.d.ts +3 -3
  11. package/dist/editor/components/SourceStatus.js +1 -1
  12. package/dist/editor/components/StorefrontEditor.js +1 -1
  13. package/dist/editor/components/ThemeCard.js +1 -1
  14. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  15. package/dist/editor/components/storefront-editor.css +1 -1
  16. package/dist/editor/components/usePartMotion.d.ts +1 -1
  17. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  18. package/dist/editor/components/usePartTypingDeps.js +1 -0
  19. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  20. package/dist/editor/lib/animation/fields.d.ts +1 -1
  21. package/dist/editor/lib/animation/fields.js +1 -1
  22. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  23. package/dist/editor/lib/animation/hover-fields.js +1 -1
  24. package/dist/editor/lib/document/add-target.js +1 -1
  25. package/dist/editor/lib/document/block-source-fields.d.ts +6 -0
  26. package/dist/editor/lib/document/block-source-fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/ContactLocations/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  32. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/PaymentBadges/fields.js +1 -1
  34. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  35. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  36. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  37. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  38. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  39. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  40. package/dist/editor/lib/document/canvas-typing.js +1 -1
  41. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  42. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  43. package/dist/editor/lib/document/card-display-chips.d.ts +7 -2
  44. package/dist/editor/lib/document/card-display-chips.js +1 -1
  45. package/dist/editor/lib/document/card-row-fields.js +1 -1
  46. package/dist/editor/lib/document/controls.d.ts +1 -0
  47. package/dist/editor/lib/document/controls.js +1 -1
  48. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  49. package/dist/editor/lib/document/darken-fields.js +1 -0
  50. package/dist/editor/lib/document/field-groups.js +1 -1
  51. package/dist/editor/lib/document/overrides.js +1 -1
  52. package/dist/editor/lib/document/slot-new-children.d.ts +2 -0
  53. package/dist/editor/lib/document/slot-new-children.js +1 -0
  54. package/dist/editor/lib/sections/hero-ticker-to-strip.js +1 -1
  55. package/dist/editor/lib/sections/new-section-node.js +1 -1
  56. package/dist/format/components/stored-pick-row.d.ts +8 -0
  57. package/dist/format/components/stored-pick-row.js +1 -0
  58. package/dist/format/lib/animation/hover.d.ts +32 -1
  59. package/dist/format/lib/animation/hover.js +1 -1
  60. package/dist/format/lib/content/block-sources.d.ts +11 -0
  61. package/dist/format/lib/content/block-sources.js +1 -1
  62. package/dist/format/lib/content/box-layout.d.ts +11 -0
  63. package/dist/format/lib/content/box-layout.js +1 -1
  64. package/dist/format/lib/content/box-shape.d.ts +2 -1
  65. package/dist/format/lib/content/box-shape.js +1 -1
  66. package/dist/format/lib/content/card-place.d.ts +8 -0
  67. package/dist/format/lib/content/card-place.js +1 -0
  68. package/dist/format/lib/content/card-template.d.ts +20 -2
  69. package/dist/format/lib/content/card-template.js +1 -1
  70. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  71. package/dist/format/lib/content/image-treatment.js +1 -1
  72. package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +15 -0
  73. package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -0
  74. package/dist/format/lib/document/blocks/general/Cards/meta.d.ts +6 -0
  75. package/dist/format/lib/document/blocks/general/Cards/meta.js +1 -1
  76. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  77. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  78. package/dist/format/lib/document/blocks/general/text-part-shapes.json +8 -0
  79. package/dist/format/lib/document/box-footer.js +1 -1
  80. package/dist/format/lib/document/cards-template-on-read.d.ts +4 -0
  81. package/dist/format/lib/document/cards-template-on-read.js +1 -0
  82. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  83. package/dist/format/lib/document/easel-row-words.js +1 -1
  84. package/dist/format/lib/document/editor-page-context.js +1 -1
  85. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  86. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  87. package/dist/format/lib/document/passes/types.d.ts +6 -0
  88. package/dist/format/lib/document/renamed-props.js +1 -1
  89. package/dist/format/lib/document/section-catalog.js +22 -2
  90. package/dist/format/lib/document/seed-parts.d.ts +18 -0
  91. package/dist/format/lib/document/seed-parts.js +1 -0
  92. package/dist/format/lib/editor-page-rows.d.ts +2 -0
  93. package/dist/format/lib/editor-page-rows.js +1 -1
  94. package/dist/format/lib/editor-words-catalogue.d.ts +21 -6
  95. package/dist/format/lib/editor-words-catalogue.js +4 -4
  96. package/dist/format/lib/hero-ticker.d.ts +4 -0
  97. package/dist/format/lib/hero-ticker.js +1 -1
  98. package/dist/format/lib/page-at-own-slug.d.ts +9 -0
  99. package/dist/format/lib/page-at-own-slug.js +1 -0
  100. package/dist/format/lib/popup/new-popup.js +1 -1
  101. package/dist/format/lib/sections/hero-overlay.js +1 -1
  102. package/dist/render/components/ButtonBlock.d.ts +1 -1
  103. package/dist/render/components/ButtonBlock.js +1 -1
  104. package/dist/render/components/Cards.d.ts +4 -2
  105. package/dist/render/components/Cards.js +1 -1
  106. package/dist/render/components/ContactLocations.d.ts +3 -1
  107. package/dist/render/components/ContactLocations.js +2 -2
  108. package/dist/render/components/Flex.d.ts +5 -1
  109. package/dist/render/components/Flex.js +1 -1
  110. package/dist/render/components/HeroPictures.d.ts +10 -0
  111. package/dist/render/components/HeroPictures.js +1 -1
  112. package/dist/render/components/HeroSingle.js +1 -1
  113. package/dist/render/components/HeroSlide.js +1 -1
  114. package/dist/render/components/ImageBlock.d.ts +6 -1
  115. package/dist/render/components/ImageBlock.js +1 -1
  116. package/dist/render/components/Manifesto.d.ts +3 -1
  117. package/dist/render/components/Manifesto.js +1 -1
  118. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  119. package/dist/render/components/PhotoHoverSheet.js +1 -0
  120. package/dist/render/components/PictureWash.d.ts +6 -0
  121. package/dist/render/components/PictureWash.js +1 -0
  122. package/dist/render/components/Placeholder.js +1 -1
  123. package/dist/render/components/PostCard.js +1 -1
  124. package/dist/render/components/Split.d.ts +3 -1
  125. package/dist/render/components/Split.js +1 -1
  126. package/dist/render/components/Text.d.ts +4 -3
  127. package/dist/render/components/Text.js +1 -1
  128. package/dist/render/lib/animation/part-motion.js +2 -2
  129. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  130. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  134. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -2
  137. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  138. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -5
  139. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  142. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  143. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  144. package/dist/render/lib/document/passes/index.js +1 -1
  145. package/dist/render/lib/document/passes/section-animation.js +1 -1
  146. package/dist/render/lib/sections/section-to-box.d.ts +7 -7
  147. package/dist/render/lib/sections/section-to-box.js +1 -1
  148. package/dist/render/lib/site-runtime.d.ts +2 -0
  149. package/dist/render/lib/site-runtime.js +1 -1
  150. package/package.json +4 -4
@@ -1 +1 @@
1
- "use client";import{jsx as i,jsxs as N,Fragment as T}from"react/jsx-runtime";import{cloneElement as ye,createContext as yt,useContext as Ct,useEffect as _t,useId as Ce,useRef as z,useState as H}from"react";import{useEasel as oe,useSelectedHost as Y}from"efficient-easel/easel";import{toDateKey as wt,fromDateKey as It}from"efficient-shell/format";import{say as l,editorEaselWords as S}from"../../../format/lib/editor-words.js";import{mediaValueSrc as _e}from"../../../format/lib/media-value.js";import{LOADING_SHOWS_LABELS as we,loadingShowsOf as Et}from"../../../format/lib/hero-video.js";import{readHidable as Ie,hidableText as Ee}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as re,LINK_FIELD_MARKER as Re,MEDIA_FIELD_MARKER as Oe,SCAFFOLD_FIELD_MARKER as Te,TEXT_FIELD_MARKER as w,foldMetaOf as ie,textFieldIdentifier as Rt}from"efficient-easel/draw";import Ot from"../../components/ApplyCornersToSiblings.js";import{withShowWhen as Pe}from"../../../render/lib/document/show-when.js";import Tt from"../../components/TemplateFieldRow.js";import{CARD_IMAGE_RADIUS_STEP as Pt,CORNER_RADIUS_MAX as Ae,CORNER_RADIUS_MIN as v}from"../../../format/lib/content/card-image-shape.js";import{IMAGE_CORNER_STEP as At,IMAGE_CORNERS_LABEL as Ft}from"../../../format/lib/content/image-corners.js";import{GRID_MAX_COLUMNS as kt}from"../../../format/lib/content/grid-span.js";import{GALLERY_ACROSS_BUCKETS as Lt,GALLERY_LAYOUTS as V,GALLERY_LAYOUT_KEYS as Nt,galleryChoices as Fe,galleryPictureCells as vt}from"../../../format/lib/content/gallery-layout.js";import{shellGlyphOf as Bt}from"./shell-glyph.js";import{anchorSiblingsOf as Dt,placementPoints as Gt}from"../../../format/lib/hero-group-placement.js";import Ht,{KEEP_HINT_CLASS as Mt}from"../../components/KeepHint.js";import Kt from"../../components/AnchorField.js";import{AdjustIcon as Wt,EyeIcon as Ut,AnimationIcon as $t,BackgroundIcon as Xt,BorderAllIcon as jt,BlockSectionIcon as zt,ColumnWidthsIcon as ke,ColumnsIcon as Le,CornerIcon as Yt,DirectionDownIcon as Vt,DirectionLeftIcon as qt,DirectionRightIcon as Zt,DirectionUpIcon as Jt,EditIcon as Qt,GapIcon as en,GridIcon as tn,GroundIcon as Ne,HashIcon as ve,HeightIcon as nn,ImageIcon as on,ListIcon as rn,LocationIcon as Be,PaddingBottomIcon as De,PaddingLeftIcon as Ge,PaddingRightIcon as He,PaddingTopIcon as Me,PageIcon as ln,StickyIcon as an,SearchIcon as sn,SquareIcon as cn,TypeIcon as dn,WidthIcon as un}from"efficient-easel/icons";import{FieldGlyph as Ke}from"../../components/FieldGlyph.js";import{resolvePageBackground as pn}from"../../../format/lib/content/page-background.js";import{CORNER_SIDES as We,CORNER_SIDE_POINTS as fn,hasOwnSectionCorners as mn,normalizeCornerSides as Ue}from"../../../format/lib/content/section-corners.js";import{enclosingPath as hn,enclosingSection as gn}from"./enclosing-section.js";import{SettingsDefaultReset as y,SettingsDrill as bn,SettingsField as b,SettingsGroup as xn,SettingsGroupSub as Sn,SettingsSegmented as yn,SettingsBorder as Cn,SettingsSidesEach as _n,SettingsSwitch as le,borderSides as wn,borderStartEach as In}from"efficient-easel/panel";import{ListField as En}from"efficient-easel/fields";import{DisplayChips as Rn}from"efficient-shell/ui";import{desktopDisplayChanged as On,partShownOnDesktop as Tn,partShownOnPhone as Pn,phoneDisplayChanged as An,withDesktopPart as Fn,withPhonePart as kn}from"../../../format/lib/content/part-display.js";import{AlignmentGrid as Ln,Checkbox as Nn,ColorSwatch as vn,CornersInput as Bn,DatePicker as Dn,DateTimePicker as Gn,FOCAL_DEFAULT as Hn,PictureTiles as Mn,IconPicker as Kn,IconButton as $e,InputNumber as Xe,Slider as Wn,Tooltip as q}from"efficient-shell/ui";import{LOOKUP_BUSY_NOTE as Un}from"./geocode-resolve.js";import{ColourRow as je,InheritedColourRow as $n}from"./ColourControl.js";import{keptByRow as Xn}from"efficient-easel/screen/lib/document/style-fields";import ze from"./MarkupToolbar.js";import{deviceField as x}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as jn,NoControlMark as zn,noControlField as Ye}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{OWN_BOX_FIELD as Yn}from"../../../format/lib/document/own-box.js";import{PHONE_CLEAR as Vn,resolvePhoneValue as ae}from"../../../format/lib/document/phone-override.js";import{phoneKey as B,tabletKey as qn}from"efficient-easel/draw";import{SuppressibleText as Zn}from"./section-text-suppress.js";import{CARD_INDEX_OPTIONS as Jn,CARD_OUTLINE_OPTIONS as Qn,DEFAULT_CARD_INDEX_FORMAT as eo,DEFAULT_CARD_OUTLINE as to}from"../../../format/lib/sections/product-card-style.js";import{COVER_INDEX_OPTIONS as no,DEFAULT_COVER_INDEX as oo}from"../../../format/lib/sections/card-cover-index.js";import{SCALAR_TEXT_CONTROLS as ro}from"efficient-easel/draw";import io from"../../components/MediaUploadField.js";import lo from"../../components/MultiSelectField.js";import ao from"../../components/SectionThemePicker.js";import so from"../../components/SearchSelectField.js";import co from"../../components/StorefrontLinkField.js";import{UiIcon as Ve}from"efficient-easel/draw/client";import{SECTION_PADDING as I}from"../../../render/lib/content/section-padding.js";import{buttonWordsSummary as uo}from"../../../render/lib/content/button-look.js";import{usePreviewParts as po}from"efficient-easel/draw/client";import{encodePartId as fo}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as mo,useEaselStrings as ho}from"efficient-easel/strings";import{hasPhoneHeight as go,resolveSectionMinHeight as bo}from"../../../format/lib/content/section-min-height.js";import{SECTION_STICK_DISTANCE as Z,SECTION_STICK_LABEL as se,hasPhoneStick as xo,resolveSectionStick as So}from"../../../format/lib/content/section-sticky.js";import{SECTION_MIN_HEIGHT as yo,SECTION_MIN_HEIGHT_GROUP_LABEL as M,SECTION_SCREEN_PCT as Co}from"../../../format/lib/content/section-min-height.js";import{containerDirectionPoints as _o,resolveContainerDirection as qe}from"../../../format/lib/content/container-direction.js";import{BOX_BLOCK_SPACING_LABEL as wo,BOX_BLOCK_SPACING_POINTS as Ze,BOX_PHONE_ROW_LABEL as Je,BOX_COLUMNS_MAX as Io,BOX_COLUMNS_MIN as Qe,BOX_PHONE_ROW_MAX as Eo,BOX_PHONE_ROW_MIN as ce,BOX_SHARE_LABEL as de,BOX_SHARE_PHONE_DEFAULT as Ro,BOX_SHARE_PHONE_POINTS as Oo,BOX_SHARE_POINTS as To}from"../../../format/lib/content/box-layout.js";import{usePreviewHeader as P}from"../../../render/components/PreviewHeaderContext.js";import{BORDER_MAX as Po}from"../../../format/lib/content/borders.js";import{DEFAULT_SURFACES as et,normalizeTheme as tt}from"../../../format/lib/theme.js";import{CONTAINER_GAP as nt,CONTAINER_GAP_BUILT_IN as Ao,CONTAINER_GAP_PHONE as ue,GAP_FIELD_CONTAINER as pe,followsSitePhoneGap as Fo,hasOwnContainerGap as ko,hasOwnPhoneGap as fe,resolveContainerGap as ot,resolvePhoneContainerGap as rt}from"../../../format/lib/content/container-gap.js";import{CARD_IMAGE_BG_INHERIT as Lo,CARD_IMAGE_BG_OFF as No,CARD_IMAGE_BG_SWATCH_NAMES as vo,CARD_IMAGE_BG_SWATCHES as Bo,isCardImageBackgroundInheriting as Do,cardImageBackgroundChoice as Go,THEME_CARD_IMAGE_BG as Ho}from"../../../format/lib/content/card-image-background.js";import{SECTION_BG_INHERIT as Mo,SECTION_BG_SWATCHES as Ko,SECTION_BG_SWATCH_NAMES as Wo,THEME_SECTION_BG as Uo,isSectionBackgroundInheriting as $o}from"../../../format/lib/content/section-background.js";import{SECTION_THEME_GROUP_LABEL as Xo,nestedAccentValue as it,resolveSectionAccent as J}from"../../../format/lib/content/section-surface.js";import{TYPE_SIZE_FIXED as jo,TYPE_SIZE_INHERIT as zo,isTypeSizeInheriting as Yo}from"../../../format/lib/content/section-type-size.js";import{SECTION_WIDTH_CHOICES as Vo,WIDTH_CHOICE_LABEL as qo,WIDTH_INHERIT as Zo}from"../../../format/lib/content/section-width.js";import{useFoldHeadingLevel as Jo}from"./panel-heading-scope.js";import{useEaselSession as Qo}from"efficient-easel/screen/lib/session-context";import{backendOf as er}from"../website-session.js";import{BOX_GAP as tr,describedAs as E,group as _,iconOf as K,sharedStyleKinds as W}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as nr,phoneTwinFields as lt}from"efficient-easel/screen/lib/document/box-fields";import{directionField as or,gapField as me,Segmented as he,segmented as rr,select as U,slider as D}from"./box-fields.js";function vl({children:e}){return i("div",{className:"sf-field-label",children:typeof e=="string"?l(e):e})}function A(e,t){return l("{value} from {from}",{value:e,from:t})}function ir(){const{blockGap:e}=P();return e===null?l("this container's own spacing"):A(`${e}px`,l("Styles"))}function lr({inherited:e,onReset:t,label:n}){return i(y,{words:S()?.panel,label:l(n),changed:!e,detail:ir(),onReset:t})}function ar(e){return me({...tr,builtIn:Ao[e],resolve:(t,n)=>ot(e,t,n?.siteGap),action:(t,n)=>i(lr,{inherited:!ko(e,t),onReset:()=>n(void 0),label:"Gap"}),mark:{[pe]:e}})}function sr(e){return Pe(x("mobile",{[pe]:e,type:"custom",render:t=>i(ur,{container:e,...t})}),at)}function cr(e){return Pe(x("tablet",{[pe]:e,type:"custom",render:t=>i(dr,{container:e,...t})}),at)}const at={not:{field:"gap",in:Array.from({length:-nt.min},(e,t)=>nt.min+t)}};function Bl(e){return{gap:x("desktop",ar(e)),[qn("gap")]:cr(e),[B("gap")]:sr(e)}}function dr({container:e,...t}){const[n]=L("gap"),{siteGap:o}=t.field??{},r=Math.max(ue.min,ot(e,n,o));return me({...ue,builtIn:r,resolve:s=>fe(s)?s:r,action:(s,c)=>i(y,{words:S()?.panel,label:l("Gap"),changed:fe(s),detail:A(`${r}px`,l("Desktop")),onReset:()=>c(void 0)})}).render(t)}function ur({container:e,...t}){const[n]=L("gap"),{siteGap:o,siteGapPhone:r}=t.field??{},a=rt(e,void 0,n,o,r);return me({...ue,builtIn:a,resolve:c=>rt(e,c,n,o,r),action:(c,u)=>i(y,{words:S()?.panel,label:l("Gap"),changed:fe(c),detail:A(`${a}px`,Fo(e,n,r)?l("Styles"):l("Desktop")),onReset:()=>u(void 0)})}).render(t)}function Dl(e){return or({offered:_o(e),fallback:qe(e,void 0),resolve:t=>qe(e,t)})}function Gl(e,t){return Gt(t?Dt(e,t):[],t)}function pr({inherited:e,onReset:t,label:n}){return i(y,{words:S()?.panel,label:l(n),changed:!e,detail:A(l("Full"),l("the page")),onReset:t})}function F({value:e,onChange:t,label:n,placeholder:o,hint:r,multiline:a,hideable:s=!0,markup:c=!0}){const{text:u,hidden:f}=Ie(e),g=z(null),p=z(null),d=O=>t(s?{text:O,hidden:f}:O),m=()=>t({text:u,hidden:!f}),h=s&&f,R=Ce(),C=r?br(r)?i("span",{className:"sf-hint-keep sf-hint-while-typing",children:l(r)}):i(Ht,{children:l(r)}):void 0,j=f?l("Show {label} on the slide",{label:l(n)}):l("Hide {label} on the slide",{label:l(n)});return i(b,{label:l(n),icon:i(dn,{}),htmlFor:R,className:h?"is-hidden":void 0,hint:C,action:s?i(q,{content:j,children:i($e,{"aria-pressed":f,"aria-label":j,onClick:m,children:f?i(Ve,{name:"eye-off",size:14}):i(Ve,{name:"eye",size:14})})}):void 0,children:N("div",{className:"sf-copybox",children:[c&&i(ze,{target:a?p:g,value:u,onChange:d}),a?i("textarea",{id:R,ref:p,value:u,placeholder:o===void 0?void 0:l(o),onChange:O=>d(O.target.value)}):i("input",{id:R,ref:g,type:"text",value:u,placeholder:o===void 0?void 0:l(o),onChange:O=>d(O.target.value)})]})})}function Hl(e,t){return{...e,[Te]:t}}function Ml(e){const t=e[w];if(!t)throw new Error("withOffPage: the field holds no authored text");return{...e,[w]:{...t,offPage:!0}}}function Kl(e){return!e||typeof e!="object"?!1:e[w]?.offPage===!0}const st="sfPanelOnly";function Wl(e){if(!e[w])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[st]:!0}}function Ul(e){return!!e&&typeof e=="object"&&e[st]===!0}function $l(e){const t=e[w];if(!t)throw new Error("withIdentifier: the field holds no authored text");return{...e,[w]:{...t,identifier:!0}}}import{TEXT_CONTROL_KINDS as ts,SCALAR_TEXT_CONTROLS as ns}from"efficient-easel/draw";function Xl(e,t){if(!e[w])throw new Error("inOwnBox: the field holds no authored text");const{[jn]:o,...r}=e;return{...r,[Yn]:!0,render:t}}const fr=new Set(ro),$={type:"radio",options:[{value:!0},{value:!1}]},ct={text:{type:"object",objectFields:{text:{type:"text"},hidden:$}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:$}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},k=(e,t)=>{const n=E({...t,[w]:e},{...ct[e.control],label:e.label});if(!fr.has(e.control))return n;const o=t.render;return{...Ye(n,"authored-copy"),render:r=>i(Zn,{name:r.name,children:o(r)})}},jl="Everything else on this block comes from the linked post. Unlink it to edit by hand.",mr={field:"source.slug",set:!0},zl={not:mr},hr="Select a word, then press the highlighter.",gr=new Set([hr]),br=e=>gr.has(e);function Yl(e,t,n){return k({control:"text",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(F,{value:o,onChange:r,label:e,placeholder:t,hint:n})})}function Vl(e,t,n){return k({control:"textarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(F,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0})})}function ql(e,t,n){return k({control:"plainText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(F,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1,markup:!1})})}function Zl(e,t,n){return k({control:"copyText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(F,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1})})}function Jl(e){return{type:"custom",[Re]:{label:e},...E({},{type:"text",label:e}),render:({value:t,onChange:n})=>i(co,{value:Ee(t),onChange:n,label:e})}}function Ql(e,t,n){return k({control:"plainTextarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(F,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0,hideable:!1})})}const ea={Design:Wt,Animation:$t};function ta(e){return{type:"custom",render:()=>i(xr,{text:e})}}function xr({text:e}){return i("p",{className:"sf-note",children:l(e)})}function na(e){return ie(e)!==null&&e?.tabs!==void 0}const dt=new Map;function oa(e,t){const n=`${e}\0${t?t.join(""):""}`,o=dt.get(n)??{type:"custom",tabs:t,[re]:{label:e,level:1},bucket:e,marker:!0,render:()=>i(T,{})};return dt.set(n,o),o}const ut=new Map;function ra(e){const t=ut.get(e)??{type:"custom",[re]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>i(T,{})};return ut.set(e,t),t}function Sr(e){const t=e;return t?.marker===!0&&typeof t.fold=="string"?t.fold:null}function ia(e,t){return Sr(e)===t?e:{...e,marker:!0,fold:t,render:()=>i(T,{})}}function la(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(T,{})}}function aa({title:e,children:t}){const[n,o]=H(()=>!ge.has(e));return i(xn,{title:e,open:n,onToggle:r=>{o(r),r?ge.delete(e):ge.add(e)},children:t})}const ge=new Set;function sa({label:e}){return i(Sn,{title:l(e),level:Jo(2)})}function pt({swatches:e,current:t,onPick:n,names:o}){const r=e.find(c=>c.toLowerCase()===t.toLowerCase()),a=r?o?.[r]:void 0,s=a?l(a):t;return N("div",{className:"sf-swatches",children:[e.map(c=>{const u=o?.[c]?l(o[c]):c;return i(q,{content:u,children:i(vn,{color:c,selected:t.toLowerCase()===c.toLowerCase(),onClick:()=>n(c),"aria-label":u})},c)}),i("span",{className:"sf-swatch-hex",children:s})]})}function ca(e,t){return{type:"custom",render:({value:n,onChange:o})=>{const r=$o(n,t);return i(b,{label:l(e),icon:i(Xt,{}),changed:!r,action:i(y,{words:S()?.panel,label:l(e),changed:!r,detail:l("the theme's section background"),onReset:()=>o(Mo)}),children:pt({swatches:Ko,current:r?Uo:n??t??"",onPick:o,names:Wo})})}}}function yr(e,t){return{type:"custom",render:({value:n,onChange:o})=>{const r=n,a=Do(r,t);return i(b,{label:l(e),icon:i(Ne,{}),changed:!a,action:i(y,{words:S()?.panel,label:l(e),changed:!a,detail:l("the theme's image stage"),onReset:()=>o(Lo)}),children:pt({swatches:Bo,current:a?Ho:Go(r,t),onPick:o,names:vo})})}}}function da(e=n=>n,t){return W({_gSectionTheme:_(Xo),sectionAccent:{type:"custom",render:({value:n,onChange:o})=>i(ao,{value:e(n),onChange:o,followLabel:t})}})}function X({min:e,max:t,step:n,value:o,onChange:r,suffix:a="",readout:s=!0,notch:c,ariaLabel:u,disabled:f=!1}){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(Wn,{min:e,max:t,step:n,value:o,suffix:a||void 0,showInput:s,label:u===void 0?void 0:l(u),disabled:f,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:p=>{p!==null&&p!==o&&r(p)}})})}function ft(e,t){const{min:n,max:o,step:r=1,unsetLabel:a,hint:s,restTrack:c,unsetMark:u,icon:f,unit:g="px"}=t;return{type:"custom",render:({value:p,onChange:d})=>{const m=typeof p=="number"?p:null,h=m===null;return i(b,{label:l(e),icon:f?K(f):void 0,value:h?u||a===void 0?void 0:l(a):`${m}${g}`,changed:!h,action:u?ye(u,{changed:!h,onReset:()=>d(null)}):i(y,{words:S()?.panel,label:l(e),changed:!h,onReset:()=>d(null)}),hint:typeof s=="string"?l(s):s,children:c?c({min:n,max:o,step:r,px:m,label:e,onChange:d}):X({min:n,max:o,step:r,value:m??n,readout:!1,ariaLabel:e,onChange:d})})}}}const Q="Corners";function be(e){return{type:"custom",render:({value:t,onChange:n})=>{const o=typeof t=="number"&&Number.isFinite(t)?t:null,r=o!==null;return i(b,{label:l(Q),icon:i(Yt,{}),changed:r,action:ye(e.mark,{changed:r,onReset:()=>n(null)}),hint:e.hint,children:i(_r,{tier:e,px:o,onRadius:n})})}}}function L(e){const t=Y();return[t?.values?.[e],n=>t?.onChange(e,n)]}function mt(){return Ye({type:"custom",render:()=>i(zn,{})},"always")}function Cr(){const e=Y();return t=>e?.onChangeMany(t)}function _r({tier:e,px:t,onRadius:n}){const o=e.useFollowed(),[r,a]=L(e.sidesKey),s=Ue(r)??[...We];return i(Bn,{label:l(Q),value:s,corners:fn,onChange:c=>{const u=Ue(c)??[];a(u.length===We.length?null:u)},radius:t,onRadiusChange:n,radiusMin:v,radiusMax:Ae,radiusStep:e.step??1,radiusPlaceholder:String(o)})}function ht(){return mt()}function wr({label:e,changed:t=!1,onReset:n=()=>{}}){const{cornerRadiusPx:o}=P(),r=typeof o=="number"?`${o}px`:l("not set");return i(y,{words:S()?.panel,label:l(e),changed:t,detail:o==null?l("the built-in corners"):A(r,l("Styles")),onReset:n})}function Ir(){const{cornerRadiusPx:e}=P();return typeof e=="number"?e:v}function Er(){return be({sidesKey:"sectionCornerSides",useFollowed:Ir,mark:i(wr,{label:Q}),hint:Rr})}const Rr="Follows Styles ▸ Basics ▸ Corners until you set a number here.";function ua(){return W({_gShape:_("Shape"),sectionCorners:Er(),sectionCornerSides:ht(),sectionBorder:gt("desktop"),sectionBorderPhone:gt("mobile")})}const Or=()=>({width:l("Border width"),sides:{top:l("Border top"),right:l("Border right"),bottom:l("Border bottom"),left:l("Border left")},style:l("Border style"),styles:{solid:l("Solid"),dashed:l("Dashed"),dotted:l("Dotted")},color:l("Border color"),unit:"px"});function Tr(e){const t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""));return Object.keys(t).length?t:void 0}function Pr(){let e;try{const t=tt(P().theme);e=t.themes[t.selected]?.line}catch{e=void 0}return e||et.line}function Ar({value:e,onChange:t,placeholder:n,presets:o,sides:r=!0,styles:a=!0,above:s={}}){const c=e&&typeof e=="object"?e:{},[u,f]=H(()=>r?In(c,s):!1),g=Or(),p=d=>Tr(r&&a?d:{width:d.width,color:d.color,...a?{style:d.style}:{}});return i(b,{label:l("Border"),icon:i(jt,{}),action:r?i(_n,{each:u,label:l("Each side"),onChange:f}):void 0,children:i(Cn,{label:l("Border"),value:c,each:u,onChange:d=>t(p(d)),placeholder:n,presets:o,words:g,styles:a,max:Po})})}function Fr({value:e,onChange:t,tier:n}){const[o]=L("sectionBorder"),r=Pr(),a=n==="mobile"?o&&typeof o=="object"?o:{}:{};return i(Ar,{value:e,onChange:t,placeholder:{sides:wn(a),style:a.style??"solid",color:a.color||r},presets:[r],above:a})}function gt(e){return x(e,{type:"custom",render:({value:t,onChange:n})=>i(Fr,{value:t,onChange:n,tier:e})})}function pa(e){return{type:"custom",render:()=>i(kr,{partKey:e})}}function kr({partKey:e}){const[t]=L("id"),[n]=L("_partStyles"),{textStyles:o}=P(),r=ho();let a=null;try{a=po().select}catch{a=null}const s=n&&typeof n=="object"?n[e]:void 0,c=Array.isArray(o)?o:null;return i(bn,{name:l("Text"),preview:uo(s,c,{noStyle:l("No style"),styleName:r.textStyles.styleName,cases:(r.copy.panel??mo.copy.panel).cases}),onOpen:()=>{a&&typeof t=="string"&&a(fo(t,e))}})}function bt(e){const{cornerRadiusPx:t}=P(),n=typeof t=="number"?t:e;let o=null;try{const{appState:a,selectedItem:s}=oe(u=>u),c=s?.props?.id?String(s.props.id):void 0;o=c?gn(a?.data,c)?.props??null:null}catch{o=null}if(!o)return n;const r=o.sectionCorners;return mn(r)?r:n}function Lr({label:e,changed:t=!1,onReset:n=()=>{}}){const o=bt(v);return i(y,{words:S()?.panel,label:l(e),changed:t,detail:A(`${o}px`,l("the section")),onReset:n})}function Nr(){return i(T,{children:l("Follows the section's Corners until you set a number here.")})}function vr(){return be({sidesKey:"cardCornerSides",useFollowed:()=>bt(v),mark:i(Lr,{label:Q}),hint:i(Nr,{})})}function Br(){return{type:"custom",render:()=>i(Ot,{})}}function fa(e){return{...e,render:t=>i(Tt,{render:e.render,props:t})}}function ma(){return{_gShape:_("Shape"),cardCorners:vr(),cardCornerSides:ht(),cardCornersApplyAll:Br()}}function Dr(e=To,t=e[0].value){return E({type:"custom",render:({value:n,onChange:o})=>{const r=e.find(a=>a.value===n)??e.find(a=>a.value===t)??e[0];return i(b,{label:l(de),icon:i(ke,{}),value:l(r.label),children:i(Mn,{className:"sf-gallery-layouts",label:l(de),value:r.value,onChange:o,options:e.map(a=>({value:a.value,label:l(a.label),picture:i("span",{className:"sf-gallery-pic",children:Gr(a.weights).map((s,c)=>i("i",{style:{gridColumn:`span ${s}`}},c))})}))})})}},{type:"select",label:de,options:e.map(n=>({value:n.value,label:n.label}))})}function Gr(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 ha(){return U(wo,i(en,{}),Ze,Ze[0].value)}function ga(){return x("mobile",Dr(Oo,Ro))}function Hr(){return x("mobile",D(Je,i(Le,{}),ce,Eo,1,ce,"",{clear:{phoneFollows:!1,hint:ce}}))}const xt={read:e=>e.phoneRow,write:(e,t,n)=>({phoneRow:n}),fieldKey:()=>"phoneRow",ownField:!0};function ba(){const e=D(Je,i(Le,{}),Qe,Io,1,Qe,"",{clear:{emptyLabel:"Auto"}}),t=lt("columns",e,{...xt,tablet:nr.tablet}),n=lt("columns",e,xt,{phoneRow:Hr()});return{...t,phoneRow:n.phoneRow}}function xa(e,t,n,o,r,a){return{type:"custom",render:({value:s,onChange:c})=>i(b,{label:l(e),icon:i(Ke,{noun:a}),action:i(y,{words:S()?.panel,label:l(e),changed:!Yo(s),detail:l("the Text style in Styles"),onReset:()=>c(zo),defaultAction:{onPress:()=>c(jo),title:l("Keep this section's own built-in size"),icon:i(zt,{})}}),children:X({min:t,max:n,step:o,value:typeof s=="number"?s:r,suffix:"px",ariaLabel:e,onChange:c})})}}function Sa(){return{_gCellWidth:_("Cell width"),gridSpan:U("Positions",i(ke,{}),[{label:"Auto",value:""},...Array.from({length:kt},(e,t)=>({label:t===0?"1 position":`${t+1} positions`,value:String(t+1)}))],"")}}function G(){let e=null,t=null;try{e=Ct(Mr),t=oe(n=>n).selectedItem}catch{t=null}return e??t?.props??{}}const Mr=yt(null);function Kr({min:e,max:t,step:n,px:o,label:r,onChange:a,desktopKey:s,fallback:c}){const u=G()[s],f=ae(void 0,u,c);return i(T,{children:X({min:e,max:t,step:n,value:ae(o,u,c),readout:!1,ariaLabel:r,notch:f,onChange:a})})}function Wr({label:e,desktopKey:t,fallback:n,unit:o="px",changed:r=!1,onReset:a=()=>{}}){const s=G()[t],c=ae(void 0,s,n);return i(y,{words:S()?.panel,label:l(e),changed:r,detail:l("{value} on desktop",{value:`${c}${o}`}),onReset:a})}function Ur(e){return ft(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:i(Wr,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:t=>i(Kr,{...t,desktopKey:e.desktopKey,fallback:e.fallback})})}const $r={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Xr={Top:Me,Bottom:De,Left:Ge,Right:He},jr=e=>{const t=Xr[e];return i(t,{})};function ya(e={}){const t=e.keys?.top??"sectionPaddingTop",n=e.keys?.bottom??"sectionPaddingBottom",o=e.group!==!1,r=C=>$r[C],a=C=>D(r("Top"),i(Me,{}),I.min,I.max,I.step,C,"px"),s=(C,j,O,ne=I)=>x("mobile",Ur({label:r(C),icon:jr(C),desktopKey:j,min:ne.min,max:ne.max,step:ne.step,fallback:O})),c=e.top??I.min,u=e.bottom??I.min,f="sectionPaddingLeft",g="sectionPaddingRight",p=e.sideBounds??I,d=e.side??p.min,m=e.sidePhone??d,h=e.phone===!0,R=C=>h?x("desktop",C):C;return W({...o?{_gSpacing:_("Padding")}:{},[t]:R(a(c)),...h?{[B(t)]:s("Top",t,c)}:{},...e.only==="top"?{}:{[n]:R(D(r("Bottom"),i(De,{}),I.min,I.max,I.step,u,"px")),...h?{[B(n)]:s("Bottom",n,u)}:{}},...e.sides?{[f]:R(D(r("Left"),i(Ge,{}),p.min,p.max,p.step,d,"px")),...h?{[B(f)]:s("Left",f,m,p)}:{},[g]:R(D(r("Right"),i(He,{}),p.min,p.max,p.step,d,"px")),...h?{[B(g)]:s("Right",g,m,p)}:{}}:{}})}function Ca(e,t){const n=Object.fromEntries(Object.entries(t).map(([a,s])=>[a,a in e&&ie(s)?e[a]:s])),o={};let r=!1;for(const[a,s]of Object.entries(e)){if(a in t){r||Object.assign(o,n),r=!0;continue}o[a]=s}return r||Object.assign(o,n),o}const ee="Width";function _a(e,t=Vo,n=!0){const o=t.map(r=>({label:qo[r],value:r}));return W({...n?{_gWidth:_(ee)}:{},widthMode:{type:"custom",render:({onChange:r,field:a})=>i(b,{label:l(ee),icon:i(un,{}),action:n?i(pr,{inherited:a?.inherited??!1,onReset:()=>r(Zo),label:ee}):void 0,children:he({options:o,value:a?.currentValue||e,onChange:r,ariaLabel:ee})})}})}function wa(){const e=o=>({type:"custom",render:({value:r,onChange:a})=>i(b,{label:M,icon:K(i(nn,{})),action:o?o(a):void 0,children:he({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:a,ariaLabel:M})})}),t=()=>({type:"custom",render:({value:o,onChange:r,field:a})=>{const s=a?.unit==="%"?"%":"px",c=s==="%"?Co:yo;return i("div",{className:"sf-field",children:X({min:c.min,max:c.max,step:c.step,value:typeof o=="number"?o:c.fallback,suffix:s,ariaLabel:M,onChange:r})})}}),n=()=>rr("Unit",i(ve,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return W({_gHeight:_(M),sectionHeightMode:x("desktop",e()),sectionHeightValue:x("desktop",t()),sectionHeightUnit:x("desktop",n()),sectionHeightModePhone:x("mobile",e(o=>i(zr,{onClear:()=>o(void 0)}))),sectionHeightValuePhone:x("mobile",t()),sectionHeightUnitPhone:x("mobile",n())})}function zr({onClear:e}){const t=G(),n=go(t),o=bo(t),r=l("{value} on desktop",{value:o.mode==="auto"?l("Auto"):`${o.value}${o.unit}`});return i(y,{words:S()?.panel,label:l(M),changed:n,detail:r,onReset:e})}function Ia(){const e=n=>({type:"custom",render:({value:o,onChange:r,id:a,name:s})=>i(Yr,{value:o,onChange:r,labelId:`${a??s??"stickTop"}-label`,phone:n})}),t=()=>({type:"custom",render:({value:n,onChange:o})=>i("div",{className:"sf-field",children:X({min:Z.min,max:Z.max,step:Z.step,value:typeof n=="number"?n:Z.fallback,suffix:"px",ariaLabel:l("Distance from top"),onChange:o})})});return{_gStick:_(se),stickTop:x("desktop",e(!1)),stickTopDistance:x("desktop",t()),stickTopPhone:x("mobile",e(!0)),stickTopDistancePhone:x("mobile",t())}}function Yr({value:e,onChange:t,labelId:n,phone:o}){const r=G(),a=So(r),s=o?a.phone:e===!0;return i(b,{label:l(se),labelId:n,icon:K(i(an,{})),action:N(T,{children:[o?i(y,{words:S()?.panel,label:l(se),changed:xo(r),detail:l("{value} on desktop",{value:a.desktop?`${a.desktopDistance}px`:l("Off")}),onReset:()=>t(void 0)}):null,i(le,{checked:s,onChange:t,ariaLabelledBy:n})]})})}const St="e.g. about";function Ea(){return{_gAnchor:_("Anchor"),anchor:k({control:"plainText",label:"Name",placeholder:St},{type:"custom",render:({value:e,onChange:t})=>i(Kt,{value:e,onChange:t,nameBox:(n,o)=>i(F,{value:n,onChange:o,label:"Name",placeholder:St,hideable:!1,markup:!1})})})}}function Ra(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:a,name:s})=>{const c=`${a??s??e}-datetime`,u=Date.parse(typeof o=="string"?o:"");return i(b,{label:l(e),icon:t,htmlFor:c,hint:n===void 0?void 0:l(n),children:i(Gn,{id:c,value:Number.isFinite(u)?new Date(u):null,onChange:f=>r(f?f.toISOString():"")})})}}}function Oa(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:a,name:s})=>{const c=`${a??s??e}-date`;return i(b,{label:l(e),icon:t,htmlFor:c,hint:n===void 0?void 0:l(n),children:i(Dn,{id:c,value:It(typeof o=="string"?o:null),onChange:u=>r(u?wt(u):"")})})}}}function Vr(e,t,n,o){return{type:"custom",...E({},{...$,label:e}),render:({value:r,onChange:a,id:s,name:c})=>{const u=typeof r=="boolean"?r:t,f=`${s??c??e}-label`;return i(b,{label:l(e),labelId:f,icon:n,hint:o===void 0?void 0:l(o),action:i(le,{checked:u,onChange:a,ariaLabelledBy:f})})}}}function Ta(){return{type:"custom",render:({value:e,onChange:t,id:n,name:o})=>{const r=`${String(n??o??"pageBackground")}-colour`;return i(je,{label:l("Background"),icon:i(ln,{}),id:r,value:pn(e),onChange:t})}}}function Pa(e,t){return{type:"custom",...E({},{...$,label:e}),render:({value:n,onChange:o,id:r})=>{const a=typeof n=="boolean"?n:t,s=`${r??e}-checkbox`;return i(b,{label:l(e),htmlFor:s,className:"sf-checkbox",action:i(Nn,{id:s,checked:a,onChange:o})})}}}function Aa(e,t,n){return{type:"custom",render:({value:o,onChange:r})=>i(je,{label:l(e),icon:n,value:o||t,onChange:r})}}function Fa(){return{type:"custom",render:({value:e,onChange:t})=>i(qr,{value:typeof e=="string"?e:"",onChange:t})}}function qr({value:e,onChange:t}){const{hex:n,n:o}=Jr();return i($n,{label:l("Fill"),icon:i(Ne,{}),value:e,inherited:n,resetTo:A(n.toUpperCase(),l("Theme {n} background",{n:o})),onChange:t,onReset:()=>t("")})}function Zr(e,t,n){if((e?.content??[]).some(s=>s?.props?.id===t))return J(n);const r=hn(e,t);if(r.length===0)return null;const a=J(it(n));if(a!==null)return a;for(let s=r.length-1;s>0;s-=1){const c=J(it(r[s].sectionAccent));if(c!==null)return c}return J(r[0].sectionAccent)}function Jr(){const e=tt(P().theme),[t]=L("sectionAccent");let n=null;try{const{appState:r,selectedItem:a}=oe(c=>c),s=a?.props?.id?String(a.props.id):void 0;n=s?Zr(r?.data,s,t):null}catch{n=null}const o=n!==null&&e.themes[n]?n:e.selected;return{hex:e.themes[o].background??et.background,n:o+1}}const Qr=[{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 ei({label:e,value:t,onChange:n,points:o=Qr}){const r=o.map(a=>({...a,label:l(a.label),...a.title?{title:l(a.title)}:null}));return i(Ln,{label:l(e),value:t,points:r,onChange:n})}function ka(){return mt()}const La={top:i(Jt,{}),right:i(Zt,{}),bottom:i(Vt,{}),left:i(qt,{})};function Na(e,t,n,o,r,a,s){const c=p=>t.find(d=>d.value===p),u=p=>({value:p,label:"",disabled:!0,title:o}),f=p=>{const d=t.find(h=>h.cell===p);if(!d)return u(`missing-${p}`);const m=a?.[p];return m?{value:d.value,label:d.label,icon:m}:{value:d.value,label:d.label}},g=[u("corner-top-left"),f("top"),u("corner-top-right"),f("left"),u("centre"),f("right"),u("corner-bottom-left"),f("bottom"),u("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:d})=>{const m=t.some(h=>h.value===p)?p:n;return i(b,{label:l(e),icon:r,value:c(m)?.label?l(c(m).label):s?l(s):"",children:ei({label:e,value:m,onChange:d,points:g})})}}}function va(e,t,n){return{type:"custom",options:t,render:({value:o,onChange:r,field:a})=>i(lo,{label:e,options:(a.options??t).map(s=>({...s,label:l(s.label)})),value:Array.isArray(o)?o:[],onChange:r,...n?{emptyLabel:l(n)}:{}})}}function Ba(e,t,n,o){return{type:"custom",options:t,fallback:n,...E({},{type:"select",label:e}),render:({value:r,onChange:a,field:s})=>i(so,{label:e,options:(s.options??t).map(c=>({...c,label:l(c.label)})),fallback:s.fallback??n,value:r,onChange:a,placeholder:o===void 0?void 0:l(o)})}}function Da(e,t={}){return{type:"custom",render:({value:n,onChange:o})=>{const r={value:n,onChange:o,...t};return i(e,{...r})}}}const Ga=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Ha(e,t,n){const o=Object.keys(we).map(r=>({label:we[r],value:r,picture:n[r]}));return{type:"custom",...E({},{type:"radio",label:e,options:o.map(r=>({value:r.value,label:r.label}))}),render:({onChange:r})=>i(ti,{label:e,icon:t,options:o,onChange:r})}}function ti({label:e,icon:t,options:n,onChange:o}){const r=Y()?.values??{},a=Et(r),s=a==="frame"&&!!_e(r.mediaVideo)&&!_e(r.videoFrame);return i(b,{label:l(e),icon:K(t),hint:s?l("This video has no frame yet. The slide shows its background colour until one is made."):void 0,children:he({options:n,value:a,onChange:o,ariaLabel:e})})}function Ma(e,t,n,o={}){return{type:"custom",[Oe]:!0,render:({value:r,onChange:a,name:s})=>i(io,{value:r||"",onChange:a,fieldKey:s,label:e,accept:t,placeholder:n,focusKey:o.focus,focusWhen:o.focusWhen,frameKey:o.frame})}}const Ka={HeroSingle:["imageFocal"],HeroSlide:["videoFrame"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function ni(e){const t=l(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${t} · ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:t}function Wa({value:e,onChange:t,label:n}){const o=e||{},r=Y(),a=r?r.values!==r.node.props:!0,s=!!o.pending&&a,c=!!o.pending&&!a,u=s?"var(--ink-faint)":o.ok&&!c?"var(--status-success-soft-ink)":"var(--status-danger-soft-ink)",f=!!er(Qo()).geocode,g=Ce(),p=(d,m)=>t({...o,[d]:m??void 0});return N(T,{children:[i(b,{label:l(n),icon:i(Be,{}),action:f?i(q,{content:l("Find from the address (OpenStreetMap)"),children:i($e,{"aria-label":l("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>t({...o,pending:!0,ok:!1,status:"Finding…"}),children:i(sn,{})})}):void 0,children:f&&o.status?i(q,{content:ni(o),className:"sf-name-tip",children:i("div",{className:`es-field-hint ${Mt}`,style:{margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0,color:u},children:s?l("Finding…"):c?l(Un):l(o.status)})}):null}),i(b,{label:l("Enter by hand"),labelId:g,icon:i(Qt,{}),action:i(le,{checked:!!o.manual,onChange:d=>t({...o,manual:d}),ariaLabelledBy:g})}),o.manual&&i(b,{label:l("Latitude, longitude"),icon:i(Be,{}),children:N("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[i(Xe,{value:typeof o.lat=="number"?o.lat:null,onChange:d=>p("lat",d),min:-90,max:90,step:1e-4,placeholder:l("Latitude")}),i(Xe,{value:typeof o.lng=="number"?o.lng:null,onChange:d=>p("lng",d),min:-180,max:180,step:1e-4,placeholder:l("Longitude")})]})})]})}function oi(e,t){return t===null||t<0||t>=e.length?"":e[t]?.text??""}function ri(e,t,n){const o=e.map(r=>({text:r?.text??""}));return t===null||t<0||t>=e.length?o:o.map((r,a)=>a===t?{text:n}:r)}function Ua(e,t){return e===null?null:t>e?e:null}function ii(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 $a={label:"Ticker items",icon:i(rn,{})};function Xa(e,t,n,o){return{type:"custom",[w]:{control:"textList",label:e,placeholder:n,itemKey:"text",rendering:o},...E({},{...ct.textList,label:e}),render:({value:r,onChange:a})=>i(li,{label:e,icon:K(t),items:Array.isArray(r)?r:[],placeholder:n,onChange:a,markup:o==="markup"})}}function li({label:e,icon:t,items:n,placeholder:o,onChange:r,markup:a=!1}){const s=z(null),[c,u]=H(null),f=p=>p.map(d=>({text:d?.text??""})),g=p=>{const d=ii(n,p,c);d===null&&(s.current=null),u(d),r(f(p))};return i(En,{label:l(e),icon:t,noun:l("item"),items:n,onChange:g,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:a?i(ze,{target:s,value:oi(n,c),onChange:p=>r(ri(n,c??-1,p)),disabled:c===null,label:c===null?l("Formatting — click a row first"):l("Formatting — row {n}",{n:c+1})}):void 0,renderRow:(p,d,m)=>i("input",{type:"text",className:a&&c===d?"sf-list-marking":void 0,value:p?.text??"",placeholder:l(o),"aria-label":l("{label} {n}",{label:l(e),n:d+1}),onChange:h=>m({text:h.target.value}),onFocus:h=>{s.current=h.currentTarget,u(d)}})})}function ja(e,t){const n=`${e.label} — row ${t+1}`;return k({control:"plainText",label:n,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:o,onChange:r})=>i(F,{value:o,onChange:r,label:l("{label} — row {n}",{label:l(e.label),n:t+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function za(e){return{_gCards:_("Cards"),coverIndex:U("Cover image",i(on,{}),no,String(oo),e?.coverHint??"A card's opening picture — a card pinned to a finish keeps its own."),imageBackground:yr("Image background",No),cardImage:ci()}}function Ya(){return{outline:U("Card outline",i(cn,{}),Qn,to),indexBadge:U("Card number",i(ve,{}),Jn,eo),showBadge:Vr("Product badge",!0,i(Ke,{noun:"tag"}))}}function Va(e){const t=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},n=r=>({...$,label:te.find(a=>a.id===r).label}),o=r=>E(Xn(xe),n(r));return{_gShowOnCard:_("Show on a card"),[xe]:E({type:"custom",render:()=>i(ai,{rest:{showCardPrice:!0,showCardFinishes:!0,...t}})},n(xe)),showCardFinishes:o("showCardFinishes"),showCardSizes:o("showCardSizes"),showCardBuy:o("showCardBuy"),showCardPage:o("showCardPage")}}const xe="showCardPrice",te=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function ai({rest:e}){const t=G(),n=Cr(),o=s=>typeof t[s]=="boolean"?t[s]:void 0,r=s=>o(s)??e[s],a=te.some(({id:s})=>o(s)!==void 0&&o(s)!==e[s]);return i(Se,{parts:te,changed:a,shown:r,onPress:(s,c)=>n({[s]:c}),onReset:()=>n(Object.fromEntries(te.map(({id:s})=>[s,void 0])))})}function qa(e,t="display"){const n=B(t);return{[t]:x("desktop",{type:"custom",render:({value:o,onChange:r})=>i(Se,{parts:e,changed:On(o),shown:a=>Tn(o,a),onPress:(a,s)=>r(Fn(o,a,s)),onReset:()=>r(void 0)})}),[n]:x("mobile",{type:"custom",render:({value:o,onChange:r})=>i(si,{parts:e,desktopKey:t,value:o,onChange:r})})}}function Se({parts:e,changed:t,shown:n,onPress:o,onReset:r,detail:a,disabledReason:s}){const c=l("Display");return i(b,{label:c,icon:i(Ut,{}),changed:t,action:i(y,{words:S()?.panel,label:c,changed:t,detail:a,onReset:r}),children:i(Rn,{label:c,items:e.map(u=>({id:u.id,label:l(u.label),shown:n(u.id),...s?{disabled:!0,disabledReason:l(s)}:{}})),onChange:o})})}function si({parts:e,desktopKey:t,value:n,onChange:o}){const r=G()[t];return i(Se,{parts:e,changed:An(n),shown:a=>Pn(r,n,a),onPress:(a,s)=>o(kn(n,a,s)),onReset:()=>o(Vn),detail:l("the same as Desktop")})}function ci(){return ft("Card image",{min:v,max:Ae,step:Pt,hint:"Rounds the picture. The card's own corner is in Styles."})}function Za(){return be({sidesKey:"cornerSides",step:At,useFollowed:()=>v,mark:i(di,{label:Ft}),hint:l("Rounds the picture. Left alone it stays square.")})}function di({label:e,changed:t=!1,onReset:n=()=>{}}){return i(y,{words:S()?.panel,label:l(e),changed:t,onReset:n})}function Ja(){return{type:"custom",render:({value:e,onChange:t})=>i(mi,{value:typeof e=="string"?e:"",onChange:t})}}function ui({layout:e,width:t}){return i("span",{"aria-hidden":"true",style:{display:"grid",width:t,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:6,gridAutoFlow:"row dense",gap:2},children:vt(e).map(([n,o],r)=>i("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${n}`,gridRow:`span ${o}`}},r))})}const pi={width:"3.5rem",height:"2.5rem"},fi=200;function mi({value:e,onChange:t}){const[n,o]=H(null),[r,a]=H(4),s=z(null);_t(()=>{const d=s.current;if(!d||typeof ResizeObserver!="function")return;const m=()=>a(d.getBoundingClientRect().width>=fi?4:3);m();const h=new ResizeObserver(m);return h.observe(d),()=>h.disconnect()},[]);const c=e&&e in V?e:"",u=Fe(n,c),f=Fe(n,"").length,g=Bt("no-symbol"),p=[{value:"",label:l("Not chosen"),icon:g},...u.map(d=>({value:d,label:l(V[d].label),icon:i(ui,{layout:V[d],width:40})}))];return i(b,{label:l("Layout"),icon:i(tn,{}),value:c?l(V[c].label):void 0,children:i("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:i(Kn,{label:l("Layout"),value:c,emptyValue:"",options:p,onChange:t,columns:r,cell:pi,header:N("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[i("span",{className:"text-2xs text-ink-faint",children:l("Photos in a row")}),i(yn,{options:[{id:"all",label:l("All")},...Lt.map(d=>({id:String(d),label:String(d)}))],value:n===null?"all":String(n),ariaLabel:l("Photos in a row"),onChange:d=>o(d==="all"?null:Number(d))}),i("span",{className:"text-2xs text-ink-faint",children:l("{n} of {total} layouts",{n:f,total:Nt.length})})]})})})})}export{mr as BOUND_TO_POST,jl as BOUND_TO_POST_NOTE,ea as BUCKET_ICONS,Ka as CUSTOM_FIELD_MEDIA,Wa as CoordsField,at as DESKTOP_GAP_NOT_OVERLAP,Se as DisplayRow,La as EDGE_ARROWS,Hn as FOCAL_DEFAULT,Qr as FOCAL_POINTS,re as FOLD_FIELD_MARKER,ei as FocalPicker,sa as GroupLabel,hr as HIGHLIGHT_HINT,F as HidableTextField,Re as LINK_FIELD_MARKER,vl as Label,Oe as MEDIA_FIELD_MARKER,Ga as MEDIA_TYPE_OPTIONS,zl as NOT_BOUND_TO_POST,aa as PanelBand,xr as PanelNoteLine,Mr as RowPropsContext,Te as SCAFFOLD_FIELD_MARKER,ns as SCALAR_TEXT_CONTROLS,lr as SiteGapDefaultReset,X as Slider,pt as Swatches,ts as TEXT_CONTROL_KINDS,w as TEXT_FIELD_MARKER,$a as TICKER_ITEMS_ROW,li as TextListField,ee as WIDTH_LABEL,pr as WidthDefaultReset,ii as aimAfterListChange,Ea as anchorFields,A as backTo,ca as backgroundField,ha as boxBlockSpacingField,ba as boxColumnsFields,Fa as boxFillField,Hr as boxPhoneRowField,Dr as boxShareField,ga as boxSharePhoneField,Zr as boxThemeIndexOf,oa as bucketHeader,pa as buttonWordsEntryField,vr as cardCornersField,yr as cardImageBackgroundField,ci as cardImageField,za as cardMediaFields,ma as cardShapeFields,Va as cardShowFields,Ya as cardStyleFields,Sa as cellWidthFields,Pa as checkbox,Aa as colorInput,Dl as containerDirectionField,ar as containerGapField,sr as containerGapPhoneField,Bl as containerGapRows,cr as containerGapTabletField,ni as coordsResultTip,Zl as copyText,ht as cornerSidesField,be as cornersRowField,Oa as date,Ra as dateTime,ra as designGroupHeader,qa as displayFields,Na as edgePad,Ua as focusAfterRemove,ka as focusKeptField,ia as foldMarker,ie as foldMetaOf,Sr as foldTitleOf,Ja as galleryLayoutField,wa as heightFields,Gl as heroGroupPlacementPoints,Ee as hidableText,br as hintIsWhileTyping,Za as imageCornersField,Xl as inOwnBox,na as isBucketHeader,mt as keptBy,Jl as linkField,Ha as loadingShowsField,va as multiSelect,Ta as pageBackgroundField,ta as panelNote,Ur as phoneOverrideField,ql as plainText,Ql as plainTextarea,ft as pxField,la as quietMarker,Ie as readHidable,oi as rowText,Ba as searchSelect,gt as sectionBorderField,Er as sectionCornersField,ua as sectionShapeFields,da as sectionThemeFields,ri as setRowText,xa as sizeField,Da as sourceField,ya as spacingFields,Ia as stickFields,Ca as swapPadding,fa as templateField,Yl as text,Rt as textFieldIdentifier,Kl as textFieldOffPage,Ul as textFieldPanelOnly,Xa as textList,ja as textListRowField,Vl as textarea,Vr as toggle,Ma as upload,Cr as useSelectedPatch,G as useSelectedProps,L as useSelectedSibling,ir as useSiteGapDetail,_a as widthField,$l as withIdentifier,Ml as withOffPage,Wl as withPanelOnly,Hl as withScaffold};
1
+ "use client";import{jsx as i,jsxs as N,Fragment as T}from"react/jsx-runtime";import{cloneElement as _e,createContext as It,useContext as Rt,useEffect as Et,useId as we,useRef as Y,useState as H}from"react";import{useEasel as ie,useSelectedHost as V}from"efficient-easel/easel";import{toDateKey as Ot,fromDateKey as Tt}from"efficient-shell/format";import{say as l,editorEaselWords as S}from"../../../format/lib/editor-words.js";import{mediaValueSrc as Ie}from"../../../format/lib/media-value.js";import{LOADING_SHOWS_LABELS as Re,loadingShowsOf as Pt}from"../../../format/lib/hero-video.js";import{readHidable as Ee,hidableText as Oe}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as le,LINK_FIELD_MARKER as Te,MEDIA_FIELD_MARKER as Pe,SCAFFOLD_FIELD_MARKER as Ae,TEXT_FIELD_MARKER as w,foldMetaOf as ae,textFieldIdentifier as At}from"efficient-easel/draw";import Ft from"../../components/ApplyCornersToSiblings.js";import{withShowWhen as Fe}from"../../../render/lib/document/show-when.js";import Lt from"../../components/TemplateFieldRow.js";import{CARD_IMAGE_RADIUS_STEP as Nt,CORNER_RADIUS_MAX as Le,CORNER_RADIUS_MIN as k}from"../../../format/lib/content/card-image-shape.js";import{IMAGE_CORNER_STEP as kt,IMAGE_CORNERS_LABEL as vt}from"../../../format/lib/content/image-corners.js";import{GRID_MAX_COLUMNS as Bt}from"../../../format/lib/content/grid-span.js";import{GALLERY_ACROSS_BUCKETS as Dt,GALLERY_LAYOUTS as q,GALLERY_LAYOUT_KEYS as Gt,galleryChoices as Ne,galleryPictureCells as Ht}from"../../../format/lib/content/gallery-layout.js";import{shellGlyphOf as Mt}from"./shell-glyph.js";import{anchorSiblingsOf as Kt,placementPoints as Wt}from"../../../format/lib/hero-group-placement.js";import Ut,{KEEP_HINT_CLASS as $t}from"../../components/KeepHint.js";import Xt from"../../components/AnchorField.js";import{AdjustIcon as jt,EyeIcon as zt,AnimationIcon as Yt,BackgroundIcon as Vt,BorderAllIcon as qt,BlockSectionIcon as Zt,ColumnWidthsIcon as ke,ColumnsIcon as ve,CornerIcon as Jt,DirectionDownIcon as Qt,DirectionLeftIcon as en,DirectionRightIcon as tn,DirectionUpIcon as nn,EditIcon as on,GapIcon as rn,GridIcon as ln,GroundIcon as Be,HashIcon as De,HeightIcon as an,ImageIcon as sn,ListIcon as cn,LocationIcon as Ge,PaddingBottomIcon as He,PaddingLeftIcon as Me,PaddingRightIcon as Ke,PaddingTopIcon as We,PageIcon as dn,StickyIcon as un,SearchIcon as pn,SquareIcon as fn,TypeIcon as mn,WidthIcon as hn}from"efficient-easel/icons";import{FieldGlyph as Ue}from"../../components/FieldGlyph.js";import{resolvePageBackground as gn}from"../../../format/lib/content/page-background.js";import{CORNER_SIDES as $e,CORNER_SIDE_POINTS as bn,hasOwnSectionCorners as xn,normalizeCornerSides as Xe}from"../../../format/lib/content/section-corners.js";import{enclosingPath as Sn,enclosingSection as yn}from"./enclosing-section.js";import{SettingsDefaultReset as y,SettingsDrill as Cn,SettingsField as b,SettingsGroup as _n,SettingsGroupSub as wn,SettingsSegmented as In,SettingsBorder as Rn,SettingsSidesEach as En,SettingsSwitch as se,borderSides as On,borderStartEach as Tn}from"efficient-easel/panel";import{ListField as Pn}from"efficient-easel/fields";import{DisplayChips as An}from"efficient-shell/ui";import{desktopDisplayChanged as Fn,partShownOnDesktop as Ln,partShownOnPhone as Nn,phoneDisplayChanged as kn,withDesktopPart as vn,withPhonePart as Bn}from"../../../format/lib/content/part-display.js";import{AlignmentGrid as Dn,Checkbox as Gn,ColorSwatch as Hn,CornersInput as Mn,DatePicker as Kn,DateTimePicker as Wn,FOCAL_DEFAULT as Un,PictureTiles as $n,IconPicker as Xn,IconButton as je,InputNumber as ze,Slider as jn,Tooltip as Z}from"efficient-shell/ui";import{LOOKUP_BUSY_NOTE as zn}from"./geocode-resolve.js";import{ColourRow as Ye,InheritedColourRow as Yn}from"./ColourControl.js";import{keptByRow as Vn}from"efficient-easel/screen/lib/document/style-fields";import Ve from"./MarkupToolbar.js";import{deviceField as x}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as qn,NoControlMark as Zn,noControlField as qe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{OWN_BOX_FIELD as Jn}from"../../../format/lib/document/own-box.js";import{PHONE_CLEAR as Qn,resolvePhoneValue as ce}from"../../../format/lib/document/phone-override.js";import{phoneKey as v,tabletKey as Ze}from"efficient-easel/draw";import{SuppressibleText as eo}from"./section-text-suppress.js";import{CARD_INDEX_OPTIONS as to,CARD_OUTLINE_OPTIONS as no,DEFAULT_CARD_INDEX_FORMAT as oo,DEFAULT_CARD_OUTLINE as ro}from"../../../format/lib/sections/product-card-style.js";import{COVER_INDEX_OPTIONS as io,DEFAULT_COVER_INDEX as lo}from"../../../format/lib/sections/card-cover-index.js";import{SCALAR_TEXT_CONTROLS as ao}from"efficient-easel/draw";import so from"../../components/MediaUploadField.js";import co from"../../components/MultiSelectField.js";import uo from"../../components/SectionThemePicker.js";import po from"../../components/SearchSelectField.js";import fo from"../../components/StorefrontLinkField.js";import{UiIcon as Je}from"efficient-easel/draw/client";import{SECTION_PADDING as I}from"../../../render/lib/content/section-padding.js";import{buttonWordsSummary as mo}from"../../../render/lib/content/button-look.js";import{usePreviewParts as ho}from"efficient-easel/draw/client";import{encodePartId as go}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as bo,useEaselStrings as xo}from"efficient-easel/strings";import{hasPhoneHeight as So,resolveSectionMinHeight as yo}from"../../../format/lib/content/section-min-height.js";import{SECTION_STICK_DISTANCE as J,SECTION_STICK_LABEL as de,hasPhoneStick as Co,resolveSectionStick as _o}from"../../../format/lib/content/section-sticky.js";import{SECTION_MIN_HEIGHT as wo,SECTION_MIN_HEIGHT_GROUP_LABEL as M,SECTION_SCREEN_PCT as Io}from"../../../format/lib/content/section-min-height.js";import{containerDirectionPoints as Ro,resolveContainerDirection as Qe}from"../../../format/lib/content/container-direction.js";import{BOX_BLOCK_SPACING_LABEL as Eo,BOX_BLOCK_SPACING_POINTS as et,BOX_PHONE_ROW_LABEL as tt,BOX_COLUMNS_MAX as Oo,BOX_COLUMNS_MIN as nt,BOX_PHONE_ROW_MAX as To,BOX_PHONE_ROW_MIN as ue,BOX_SHARE_LABEL as Q,BOX_SHARE_PHONE_DEFAULT as Po,BOX_SHARE_PHONE_POINTS as Ao,BOX_SHARE_POINTS as Fo}from"../../../format/lib/content/box-layout.js";import{usePreviewHeader as P}from"../../../render/components/PreviewHeaderContext.js";import{BORDER_MAX as Lo}from"../../../format/lib/content/borders.js";import{DEFAULT_SURFACES as ot,normalizeTheme as rt}from"../../../format/lib/theme.js";import{CONTAINER_GAP as it,CONTAINER_GAP_BUILT_IN as No,CONTAINER_GAP_PHONE as pe,GAP_FIELD_CONTAINER as fe,followsSitePhoneGap as ko,hasOwnContainerGap as vo,hasOwnPhoneGap as me,resolveContainerGap as lt,resolvePhoneContainerGap as at}from"../../../format/lib/content/container-gap.js";import{CARD_IMAGE_BG_INHERIT as Bo,CARD_IMAGE_BG_OFF as Do,CARD_IMAGE_BG_SWATCH_NAMES as Go,CARD_IMAGE_BG_SWATCHES as Ho,isCardImageBackgroundInheriting as Mo,cardImageBackgroundChoice as Ko,THEME_CARD_IMAGE_BG as Wo}from"../../../format/lib/content/card-image-background.js";import{SECTION_BG_INHERIT as Uo,SECTION_BG_SWATCHES as $o,SECTION_BG_SWATCH_NAMES as Xo,THEME_SECTION_BG as jo,isSectionBackgroundInheriting as zo}from"../../../format/lib/content/section-background.js";import{SECTION_THEME_GROUP_LABEL as Yo,nestedAccentValue as st,resolveSectionAccent as ee}from"../../../format/lib/content/section-surface.js";import{TYPE_SIZE_FIXED as Vo,TYPE_SIZE_INHERIT as qo,isTypeSizeInheriting as Zo}from"../../../format/lib/content/section-type-size.js";import{SECTION_WIDTH_CHOICES as Jo,WIDTH_CHOICE_LABEL as Qo,WIDTH_INHERIT as er}from"../../../format/lib/content/section-width.js";import{useFoldHeadingLevel as tr}from"./panel-heading-scope.js";import{useEaselSession as nr}from"efficient-easel/screen/lib/session-context";import{backendOf as or}from"../website-session.js";import{BOX_GAP as rr,describedAs as R,group as _,iconOf as K,sharedStyleKinds as W}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as ct,onDesktopWords as U,phoneTwinFields as he}from"efficient-easel/screen/lib/document/box-fields";import{directionField as ir,gapField as ge,Segmented as be,segmented as lr,select as $,slider as B}from"./box-fields.js";function Bl({children:e}){return i("div",{className:"sf-field-label",children:typeof e=="string"?l(e):e})}function D(e,t){return l("{value} from {from}",{value:e,from:t})}function ar(){const{blockGap:e}=P();return e===null?l("this container's own spacing"):D(`${e}px`,l("Styles"))}function sr({inherited:e,onReset:t,label:n}){return i(y,{words:S()?.panel,label:l(n),changed:!e,detail:ar(),onReset:t})}function cr(e){return ge({...rr,builtIn:No[e],resolve:(t,n)=>lt(e,t,n?.siteGap),action:(t,n)=>i(sr,{inherited:!vo(e,t),onReset:()=>n(void 0),label:"Gap"}),mark:{[fe]:e}})}function dr(e){return Fe(x("mobile",{[fe]:e,type:"custom",render:t=>i(fr,{container:e,...t})}),dt)}function ur(e){return Fe(x("tablet",{[fe]:e,type:"custom",render:t=>i(pr,{container:e,...t})}),dt)}const dt={not:{field:"gap",in:Array.from({length:-it.min},(e,t)=>it.min+t)}};function Dl(e){return{gap:x("desktop",cr(e)),[Ze("gap")]:ur(e),[v("gap")]:dr(e)}}function pr({container:e,...t}){const[n]=L("gap"),{siteGap:o}=t.field??{},r=Math.max(pe.min,lt(e,n,o));return ge({...pe,builtIn:r,resolve:s=>me(s)?s:r,action:(s,c)=>i(y,{words:S()?.panel,label:l("Gap"),changed:me(s),detail:U(d=>l(d),`${r}px`),onReset:()=>c(void 0)})}).render(t)}function fr({container:e,...t}){const[n]=L("gap"),{siteGap:o,siteGapPhone:r}=t.field??{},a=at(e,void 0,n,o,r);return ge({...pe,builtIn:a,resolve:c=>at(e,c,n,o,r),action:(c,d)=>i(y,{words:S()?.panel,label:l("Gap"),changed:me(c),detail:D(`${a}px`,ko(e,n,r)?l("Styles"):l("Desktop")),onReset:()=>d(void 0)})}).render(t)}function Gl(e){return ir({offered:Ro(e),fallback:Qe(e,void 0),resolve:t=>Qe(e,t)})}function Hl(e,t){return Wt(t?Kt(e,t):[],t)}function mr({inherited:e,onReset:t,label:n}){return i(y,{words:S()?.panel,label:l(n),changed:!e,detail:D(l("Full"),l("the page")),onReset:t})}function A({value:e,onChange:t,label:n,placeholder:o,hint:r,multiline:a,hideable:s=!0,markup:c=!0}){const{text:d,hidden:f}=Ee(e),h=Y(null),p=Y(null),u=O=>t(s?{text:O,hidden:f}:O),m=()=>t({text:d,hidden:!f}),g=s&&f,E=we(),C=r?Sr(r)?i("span",{className:"sf-hint-keep sf-hint-while-typing",children:l(r)}):i(Ut,{children:l(r)}):void 0,z=f?l("Show {label} on the slide",{label:l(n)}):l("Hide {label} on the slide",{label:l(n)});return i(b,{label:l(n),icon:i(mn,{}),htmlFor:E,className:g?"is-hidden":void 0,hint:C,action:s?i(Z,{content:z,children:i(je,{"aria-pressed":f,"aria-label":z,onClick:m,children:f?i(Je,{name:"eye-off",size:14}):i(Je,{name:"eye",size:14})})}):void 0,children:N("div",{className:"sf-copybox",children:[c&&i(Ve,{target:a?p:h,value:d,onChange:u}),a?i("textarea",{id:E,ref:p,value:d,placeholder:o===void 0?void 0:l(o),onChange:O=>u(O.target.value)}):i("input",{id:E,ref:h,type:"text",value:d,placeholder:o===void 0?void 0:l(o),onChange:O=>u(O.target.value)})]})})}function Ml(e,t){return{...e,[Ae]:t}}function Kl(e){const t=e[w];if(!t)throw new Error("withOffPage: the field holds no authored text");return{...e,[w]:{...t,offPage:!0}}}function Wl(e){return!e||typeof e!="object"?!1:e[w]?.offPage===!0}const ut="sfPanelOnly";function Ul(e){if(!e[w])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[ut]:!0}}function $l(e){return!!e&&typeof e=="object"&&e[ut]===!0}function Xl(e){const t=e[w];if(!t)throw new Error("withIdentifier: the field holds no authored text");return{...e,[w]:{...t,identifier:!0}}}import{TEXT_CONTROL_KINDS as os,SCALAR_TEXT_CONTROLS as rs}from"efficient-easel/draw";function jl(e,t){if(!e[w])throw new Error("inOwnBox: the field holds no authored text");const{[qn]:o,...r}=e;return{...r,[Jn]:!0,render:t}}const hr=new Set(ao),X={type:"radio",options:[{value:!0},{value:!1}]},pt={text:{type:"object",objectFields:{text:{type:"text"},hidden:X}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:X}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},F=(e,t)=>{const n=R({...t,[w]:e},{...pt[e.control],label:e.label});if(!hr.has(e.control))return n;const o=t.render;return{...qe(n,"authored-copy"),render:r=>i(eo,{name:r.name,children:o(r)})}},zl="Everything else on this block comes from the linked post. Unlink it to edit by hand.",gr={field:"source.slug",set:!0},Yl={not:gr},br="Select a word, then press the highlighter.",xr=new Set([br]),Sr=e=>xr.has(e);function Vl(e,t,n){return F({control:"text",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(A,{value:o,onChange:r,label:e,placeholder:t,hint:n})})}function ql(e,t,n){return F({control:"textarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(A,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0})})}function Zl(e,t,n){return F({control:"plainText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(A,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1,markup:!1})})}function Jl(e,t,n){return F({control:"copyText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(A,{value:o,onChange:r,label:e,placeholder:t,hint:n,hideable:!1})})}function Ql(e){return{type:"custom",[Te]:{label:e},...R({},{type:"text",label:e}),render:({value:t,onChange:n})=>i(fo,{value:Oe(t),onChange:n,label:e})}}function ea(e,t,n){return F({control:"plainTextarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:r})=>i(A,{value:o,onChange:r,label:e,placeholder:t,hint:n,multiline:!0,hideable:!1})})}const ta={Design:jt,Animation:Yt};function na(e){return{type:"custom",render:()=>i(yr,{text:e})}}function yr({text:e}){return i("p",{className:"sf-note",children:l(e)})}function oa(e){return ae(e)!==null&&e?.tabs!==void 0}const ft=new Map;function ra(e,t){const n=`${e}\0${t?t.join(""):""}`,o=ft.get(n)??{type:"custom",tabs:t,[le]:{label:e,level:1},bucket:e,marker:!0,render:()=>i(T,{})};return ft.set(n,o),o}const mt=new Map;function ia(e){const t=mt.get(e)??{type:"custom",[le]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>i(T,{})};return mt.set(e,t),t}function Cr(e){const t=e;return t?.marker===!0&&typeof t.fold=="string"?t.fold:null}function la(e,t){return Cr(e)===t?e:{...e,marker:!0,fold:t,render:()=>i(T,{})}}function aa(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(T,{})}}function sa({title:e,children:t}){const[n,o]=H(()=>!xe.has(e));return i(_n,{title:e,open:n,onToggle:r=>{o(r),r?xe.delete(e):xe.add(e)},children:t})}const xe=new Set;function ca({label:e}){return i(wn,{title:l(e),level:tr(2)})}function ht({swatches:e,current:t,onPick:n,names:o}){const r=e.find(c=>c.toLowerCase()===t.toLowerCase()),a=r?o?.[r]:void 0,s=a?l(a):t;return N("div",{className:"sf-swatches",children:[e.map(c=>{const d=o?.[c]?l(o[c]):c;return i(Z,{content:d,children:i(Hn,{color:c,selected:t.toLowerCase()===c.toLowerCase(),onClick:()=>n(c),"aria-label":d})},c)}),i("span",{className:"sf-swatch-hex",children:s})]})}function da(e,t){return{type:"custom",render:({value:n,onChange:o})=>{const r=zo(n,t);return i(b,{label:l(e),icon:i(Vt,{}),changed:!r,action:i(y,{words:S()?.panel,label:l(e),changed:!r,detail:l("the theme's section background"),onReset:()=>o(Uo)}),children:ht({swatches:$o,current:r?jo:n??t??"",onPick:o,names:Xo})})}}}function _r(e,t){return{type:"custom",render:({value:n,onChange:o})=>{const r=n,a=Mo(r,t);return i(b,{label:l(e),icon:i(Be,{}),changed:!a,action:i(y,{words:S()?.panel,label:l(e),changed:!a,detail:l("the theme's image stage"),onReset:()=>o(Bo)}),children:ht({swatches:Ho,current:a?Wo:Ko(r,t),onPick:o,names:Go})})}}}function ua(e=n=>n,t){return W({_gSectionTheme:_(Yo),sectionAccent:{type:"custom",render:({value:n,onChange:o})=>i(uo,{value:e(n),onChange:o,followLabel:t})}})}function j({min:e,max:t,step:n,value:o,onChange:r,suffix:a="",readout:s=!0,notch:c,ariaLabel:d,disabled:f=!1}){const h=c!==void 0&&Number.isFinite(c)&&c>=e&&c<=t;return i("div",{className:h?"sf-slider has-notch":"sf-slider",style:h?{"--sf-notch":(c-e)/(t-e)}:void 0,children:i(jn,{min:e,max:t,step:n,value:o,suffix:a||void 0,showInput:s,label:d===void 0?void 0:l(d),disabled:f,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:p=>{p!==null&&p!==o&&r(p)}})})}function gt(e,t){const{min:n,max:o,step:r=1,unsetLabel:a,hint:s,restTrack:c,unsetMark:d,icon:f,unit:h="px"}=t;return{type:"custom",render:({value:p,onChange:u})=>{const m=typeof p=="number"?p:null,g=m===null;return i(b,{label:l(e),icon:f?K(f):void 0,value:g?d||a===void 0?void 0:l(a):`${m}${h}`,changed:!g,action:d?_e(d,{changed:!g,onReset:()=>u(null)}):i(y,{words:S()?.panel,label:l(e),changed:!g,onReset:()=>u(null)}),hint:typeof s=="string"?l(s):s,children:c?c({min:n,max:o,step:r,px:m,label:e,onChange:u}):j({min:n,max:o,step:r,value:m??n,readout:!1,ariaLabel:e,onChange:u})})}}}const te="Corners";function Se(e){return{type:"custom",render:({value:t,onChange:n})=>{const o=typeof t=="number"&&Number.isFinite(t)?t:null,r=o!==null;return i(b,{label:l(te),icon:i(Jt,{}),changed:r,action:_e(e.mark,{changed:r,onReset:()=>n(null)}),hint:e.hint,children:i(Ir,{tier:e,px:o,onRadius:n})})}}}function L(e){const t=V();return[t?.values?.[e],n=>t?.onChange(e,n)]}function bt(){return qe({type:"custom",render:()=>i(Zn,{})},"always")}function wr(){const e=V();return t=>e?.onChangeMany(t)}function Ir({tier:e,px:t,onRadius:n}){const o=e.useFollowed(),[r,a]=L(e.sidesKey),s=Xe(r)??[...$e];return i(Mn,{label:l(te),value:s,corners:bn,onChange:c=>{const d=Xe(c)??[];a(d.length===$e.length?null:d)},radius:t,onRadiusChange:n,radiusMin:k,radiusMax:Le,radiusStep:e.step??1,radiusPlaceholder:String(o)})}function xt(){return bt()}function Rr({label:e,changed:t=!1,onReset:n=()=>{}}){const{cornerRadiusPx:o}=P(),r=typeof o=="number"?`${o}px`:l("not set");return i(y,{words:S()?.panel,label:l(e),changed:t,detail:o==null?l("the built-in corners"):D(r,l("Styles")),onReset:n})}function Er(){const{cornerRadiusPx:e}=P();return typeof e=="number"?e:k}function Or(){return Se({sidesKey:"sectionCornerSides",useFollowed:Er,mark:i(Rr,{label:te}),hint:Tr})}const Tr="Follows Styles ▸ Basics ▸ Corners until you set a number here.";function pa(){return W({_gShape:_("Shape"),sectionCorners:Or(),sectionCornerSides:xt(),sectionBorder:St("desktop"),sectionBorderPhone:St("mobile")})}const Pr=()=>({width:l("Border width"),sides:{top:l("Border top"),right:l("Border right"),bottom:l("Border bottom"),left:l("Border left")},style:l("Border style"),styles:{solid:l("Solid"),dashed:l("Dashed"),dotted:l("Dotted")},color:l("Border color"),unit:"px"});function Ar(e){const t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""));return Object.keys(t).length?t:void 0}function Fr(){let e;try{const t=rt(P().theme);e=t.themes[t.selected]?.line}catch{e=void 0}return e||ot.line}function Lr({value:e,onChange:t,placeholder:n,presets:o,sides:r=!0,styles:a=!0,above:s={}}){const c=e&&typeof e=="object"?e:{},[d,f]=H(()=>r?Tn(c,s):!1),h=Pr(),p=u=>Ar(r&&a?u:{width:u.width,color:u.color,...a?{style:u.style}:{}});return i(b,{label:l("Border"),icon:i(qt,{}),action:r?i(En,{each:d,label:l("Each side"),onChange:f}):void 0,children:i(Rn,{label:l("Border"),value:c,each:d,onChange:u=>t(p(u)),placeholder:n,presets:o,words:h,styles:a,max:Lo})})}function Nr({value:e,onChange:t,tier:n}){const[o]=L("sectionBorder"),r=Fr(),a=n==="mobile"?o&&typeof o=="object"?o:{}:{};return i(Lr,{value:e,onChange:t,placeholder:{sides:On(a),style:a.style??"solid",color:a.color||r},presets:[r],above:a})}function St(e){return x(e,{type:"custom",render:({value:t,onChange:n})=>i(Nr,{value:t,onChange:n,tier:e})})}function fa(e){return{type:"custom",render:()=>i(kr,{partKey:e})}}function kr({partKey:e}){const[t]=L("id"),[n]=L("_partStyles"),{textStyles:o}=P(),r=xo();let a=null;try{a=ho().select}catch{a=null}const s=n&&typeof n=="object"?n[e]:void 0,c=Array.isArray(o)?o:null;return i(Cn,{name:l("Text"),preview:mo(s,c,{noStyle:l("No style"),styleName:r.textStyles.styleName,cases:(r.copy.panel??bo.copy.panel).cases}),onOpen:()=>{a&&typeof t=="string"&&a(go(t,e))}})}function yt(e){const{cornerRadiusPx:t}=P(),n=typeof t=="number"?t:e;let o=null;try{const{appState:a,selectedItem:s}=ie(d=>d),c=s?.props?.id?String(s.props.id):void 0;o=c?yn(a?.data,c)?.props??null:null}catch{o=null}if(!o)return n;const r=o.sectionCorners;return xn(r)?r:n}function vr({label:e,changed:t=!1,onReset:n=()=>{}}){const o=yt(k);return i(y,{words:S()?.panel,label:l(e),changed:t,detail:D(`${o}px`,l("the section")),onReset:n})}function Br(){return i(T,{children:l("Follows the section's Corners until you set a number here.")})}function Dr(){return Se({sidesKey:"cardCornerSides",useFollowed:()=>yt(k),mark:i(vr,{label:te}),hint:i(Br,{})})}function Gr(){return{type:"custom",render:()=>i(Ft,{})}}function ma(e){return{...e,render:t=>i(Lt,{render:e.render,props:t})}}function ha(){return{_gShape:_("Shape"),cardCorners:Dr(),cardCornerSides:xt(),cardCornersApplyAll:Gr()}}function Ct(e=Fo,t=e[0].value){return R({type:"custom",render:n=>{const{value:o,onChange:r}=n,a="follows"in n,s=n.follows,c=o!=null,d=c?o:a?s??t:o,f=e.find(p=>p.value===d)??e.find(p=>p.value===t)??e[0],h=e.find(p=>p.value===(s??t))??e[0];return i(b,{label:l(Q),icon:i(ke,{}),value:l(f.label),action:a?i(y,{words:S()?.panel,label:l(Q),changed:c,detail:U(p=>l(p),l(h.label),n.followsView),onReset:()=>r(void 0)}):void 0,children:i($n,{className:"sf-gallery-layouts",label:l(Q),value:f.value,onChange:r,options:e.map(p=>({value:p.value,label:l(p.label),picture:i("span",{className:"sf-gallery-pic",children:Hr(p.weights).map((u,m)=>i("i",{style:{gridColumn:`span ${u}`}},m))})}))})})}},{type:"select",label:Q,options:e.map(n=>({value:n.value,label:n.label}))})}function Hr(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 ga(){return $(Eo,i(rn,{}),et,et[0].value)}function ba(){return x("mobile",Ct(Ao,Po))}function xa(){return he("share",Ct(),ct)[Ze("share")]}function Mr(){return x("mobile",B(tt,i(ve,{}),ue,To,1,ue,"",{clear:{phoneFollows:!1,hint:ue}}))}const _t={read:e=>e.phoneRow,write:(e,t,n)=>({phoneRow:n}),fieldKey:()=>"phoneRow",ownField:!0};function Sa(){const e=B(tt,i(ve,{}),nt,Oo,1,nt,"",{clear:{emptyLabel:"Auto"}}),t=he("columns",e,{..._t,tablet:ct.tablet}),n=he("columns",e,_t,{phoneRow:Mr()});return{...t,phoneRow:n.phoneRow}}function ya(e,t,n,o,r,a){return{type:"custom",render:({value:s,onChange:c})=>i(b,{label:l(e),icon:i(Ue,{noun:a}),action:i(y,{words:S()?.panel,label:l(e),changed:!Zo(s),detail:l("the Text style in Styles"),onReset:()=>c(qo),defaultAction:{onPress:()=>c(Vo),title:l("Keep this section's own built-in size"),icon:i(Zt,{})}}),children:j({min:t,max:n,step:o,value:typeof s=="number"?s:r,suffix:"px",ariaLabel:e,onChange:c})})}}function Ca(){return{_gCellWidth:_("Cell width"),gridSpan:$("Positions",i(ke,{}),[{label:"Auto",value:""},...Array.from({length:Bt},(e,t)=>({label:t===0?"1 position":`${t+1} positions`,value:String(t+1)}))],"")}}function G(){let e=null,t=null;try{e=Rt(Kr),t=ie(n=>n).selectedItem}catch{t=null}return e??t?.props??{}}const Kr=It(null);function Wr({min:e,max:t,step:n,px:o,label:r,onChange:a,desktopKey:s,fallback:c}){const d=G()[s],f=ce(void 0,d,c);return i(T,{children:j({min:e,max:t,step:n,value:ce(o,d,c),readout:!1,ariaLabel:r,notch:f,onChange:a})})}function Ur({label:e,desktopKey:t,fallback:n,unit:o="px",changed:r=!1,onReset:a=()=>{}}){const s=G()[t],c=ce(void 0,s,n);return i(y,{words:S()?.panel,label:l(e),changed:r,detail:U(d=>l(d),`${c}${o}`),onReset:a})}function $r(e){return gt(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:i(Ur,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:t=>i(Wr,{...t,desktopKey:e.desktopKey,fallback:e.fallback})})}const Xr={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},jr={Top:We,Bottom:He,Left:Me,Right:Ke},zr=e=>{const t=jr[e];return i(t,{})};function _a(e={}){const t=e.keys?.top??"sectionPaddingTop",n=e.keys?.bottom??"sectionPaddingBottom",o=e.group!==!1,r=C=>Xr[C],a=C=>B(r("Top"),i(We,{}),I.min,I.max,I.step,C,"px"),s=(C,z,O,re=I)=>x("mobile",$r({label:r(C),icon:zr(C),desktopKey:z,min:re.min,max:re.max,step:re.step,fallback:O})),c=e.top??I.min,d=e.bottom??I.min,f="sectionPaddingLeft",h="sectionPaddingRight",p=e.sideBounds??I,u=e.side??p.min,m=e.sidePhone??u,g=e.phone===!0,E=C=>g?x("desktop",C):C;return W({...o?{_gSpacing:_("Padding")}:{},[t]:E(a(c)),...g?{[v(t)]:s("Top",t,c)}:{},...e.only==="top"?{}:{[n]:E(B(r("Bottom"),i(He,{}),I.min,I.max,I.step,d,"px")),...g?{[v(n)]:s("Bottom",n,d)}:{}},...e.sides?{[f]:E(B(r("Left"),i(Me,{}),p.min,p.max,p.step,u,"px")),...g?{[v(f)]:s("Left",f,m,p)}:{},[h]:E(B(r("Right"),i(Ke,{}),p.min,p.max,p.step,u,"px")),...g?{[v(h)]:s("Right",h,m,p)}:{}}:{}})}function wa(e,t){const n=Object.fromEntries(Object.entries(t).map(([a,s])=>[a,a in e&&ae(s)?e[a]:s])),o={};let r=!1;for(const[a,s]of Object.entries(e)){if(a in t){r||Object.assign(o,n),r=!0;continue}o[a]=s}return r||Object.assign(o,n),o}const ne="Width";function Ia(e,t=Jo,n=!0){const o=t.map(r=>({label:Qo[r],value:r}));return W({...n?{_gWidth:_(ne)}:{},widthMode:{type:"custom",render:({onChange:r,field:a})=>i(b,{label:l(ne),icon:i(hn,{}),action:n?i(mr,{inherited:a?.inherited??!1,onReset:()=>r(er),label:ne}):void 0,children:be({options:o,value:a?.currentValue||e,onChange:r,ariaLabel:ne})})}})}function Ra(){const e=o=>({type:"custom",render:({value:r,onChange:a})=>i(b,{label:M,icon:K(i(an,{})),action:o?o(a):void 0,children:be({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:a,ariaLabel:M})})}),t=()=>({type:"custom",render:({value:o,onChange:r,field:a})=>{const s=a?.unit==="%"?"%":"px",c=s==="%"?Io:wo;return i("div",{className:"sf-field",children:j({min:c.min,max:c.max,step:c.step,value:typeof o=="number"?o:c.fallback,suffix:s,ariaLabel:M,onChange:r})})}}),n=()=>lr("Unit",i(De,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return W({_gHeight:_(M),sectionHeightMode:x("desktop",e()),sectionHeightValue:x("desktop",t()),sectionHeightUnit:x("desktop",n()),sectionHeightModePhone:x("mobile",e(o=>i(Yr,{onClear:()=>o(void 0)}))),sectionHeightValuePhone:x("mobile",t()),sectionHeightUnitPhone:x("mobile",n())})}function Yr({onClear:e}){const t=G(),n=So(t),o=yo(t),r=U(a=>l(a),o.mode==="auto"?l("Auto"):`${o.value}${o.unit}`);return i(y,{words:S()?.panel,label:l(M),changed:n,detail:r,onReset:e})}function Ea(){const e=n=>({type:"custom",render:({value:o,onChange:r,id:a,name:s})=>i(Vr,{value:o,onChange:r,labelId:`${a??s??"stickTop"}-label`,phone:n})}),t=()=>({type:"custom",render:({value:n,onChange:o})=>i("div",{className:"sf-field",children:j({min:J.min,max:J.max,step:J.step,value:typeof n=="number"?n:J.fallback,suffix:"px",ariaLabel:l("Distance from top"),onChange:o})})});return{_gStick:_(de),stickTop:x("desktop",e(!1)),stickTopDistance:x("desktop",t()),stickTopPhone:x("mobile",e(!0)),stickTopDistancePhone:x("mobile",t())}}function Vr({value:e,onChange:t,labelId:n,phone:o}){const r=G(),a=_o(r),s=o?a.phone:e===!0;return i(b,{label:l(de),labelId:n,icon:K(i(un,{})),action:N(T,{children:[o?i(y,{words:S()?.panel,label:l(de),changed:Co(r),detail:U(c=>l(c),a.desktop?`${a.desktopDistance}px`:l("Off")),onReset:()=>t(void 0)}):null,i(se,{checked:s,onChange:t,ariaLabelledBy:n})]})})}const wt="e.g. about";function Oa(){return{_gAnchor:_("Anchor"),anchor:F({control:"plainText",label:"Name",placeholder:wt},{type:"custom",render:({value:e,onChange:t})=>i(Xt,{value:e,onChange:t,nameBox:(n,o)=>i(A,{value:n,onChange:o,label:"Name",placeholder:wt,hideable:!1,markup:!1})})})}}function Ta(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:a,name:s})=>{const c=`${a??s??e}-datetime`,d=Date.parse(typeof o=="string"?o:"");return i(b,{label:l(e),icon:t,htmlFor:c,hint:n===void 0?void 0:l(n),children:i(Wn,{id:c,value:Number.isFinite(d)?new Date(d):null,onChange:f=>r(f?f.toISOString():"")})})}}}function Pa(e,t,n){return{type:"custom",render:({value:o,onChange:r,id:a,name:s})=>{const c=`${a??s??e}-date`;return i(b,{label:l(e),icon:t,htmlFor:c,hint:n===void 0?void 0:l(n),children:i(Kn,{id:c,value:Tt(typeof o=="string"?o:null),onChange:d=>r(d?Ot(d):"")})})}}}function qr(e,t,n,o){return{type:"custom",...R({},{...X,label:e}),render:({value:r,onChange:a,id:s,name:c})=>{const d=typeof r=="boolean"?r:t,f=`${s??c??e}-label`;return i(b,{label:l(e),labelId:f,icon:n,hint:o===void 0?void 0:l(o),action:i(se,{checked:d,onChange:a,ariaLabelledBy:f})})}}}function Aa(){return{type:"custom",render:({value:e,onChange:t,id:n,name:o})=>{const r=`${String(n??o??"pageBackground")}-colour`;return i(Ye,{label:l("Background"),icon:i(dn,{}),id:r,value:gn(e),onChange:t})}}}function Fa(e,t){return{type:"custom",...R({},{...X,label:e}),render:({value:n,onChange:o,id:r})=>{const a=typeof n=="boolean"?n:t,s=`${r??e}-checkbox`;return i(b,{label:l(e),htmlFor:s,className:"sf-checkbox",action:i(Gn,{id:s,checked:a,onChange:o})})}}}function La(e,t,n){return{type:"custom",render:({value:o,onChange:r})=>i(Ye,{label:l(e),icon:n,value:o||t,onChange:r})}}function Na(){return{type:"custom",render:({value:e,onChange:t})=>i(Zr,{value:typeof e=="string"?e:"",onChange:t})}}function Zr({value:e,onChange:t}){const{hex:n,n:o}=Qr();return i(Yn,{label:l("Fill"),icon:i(Be,{}),value:e,inherited:n,resetTo:D(n.toUpperCase(),l("Theme {n} background",{n:o})),onChange:t,onReset:()=>t("")})}function Jr(e,t,n){if((e?.content??[]).some(s=>s?.props?.id===t))return ee(n);const r=Sn(e,t);if(r.length===0)return null;const a=ee(st(n));if(a!==null)return a;for(let s=r.length-1;s>0;s-=1){const c=ee(st(r[s].sectionAccent));if(c!==null)return c}return ee(r[0].sectionAccent)}function Qr(){const e=rt(P().theme),[t]=L("sectionAccent");let n=null;try{const{appState:r,selectedItem:a}=ie(c=>c),s=a?.props?.id?String(a.props.id):void 0;n=s?Jr(r?.data,s,t):null}catch{n=null}const o=n!==null&&e.themes[n]?n:e.selected;return{hex:e.themes[o].background??ot.background,n:o+1}}const ei=[{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 ti({label:e,value:t,onChange:n,points:o=ei}){const r=o.map(a=>({...a,label:l(a.label),...a.title?{title:l(a.title)}:null}));return i(Dn,{label:l(e),value:t,points:r,onChange:n})}function ka(){return bt()}const va={top:i(nn,{}),right:i(tn,{}),bottom:i(Qt,{}),left:i(en,{})};function Ba(e,t,n,o,r,a,s){const c=p=>t.find(u=>u.value===p),d=p=>({value:p,label:"",disabled:!0,title:o}),f=p=>{const u=t.find(g=>g.cell===p);if(!u)return d(`missing-${p}`);const m=a?.[p];return m?{value:u.value,label:u.label,icon:m}:{value:u.value,label:u.label}},h=[d("corner-top-left"),f("top"),d("corner-top-right"),f("left"),d("centre"),f("right"),d("corner-bottom-left"),f("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:u})=>{const m=t.some(g=>g.value===p)?p:n;return i(b,{label:l(e),icon:r,value:c(m)?.label?l(c(m).label):s?l(s):"",children:ti({label:e,value:m,onChange:u,points:h})})}}}function Da(e,t,n){return{type:"custom",options:t,render:({value:o,onChange:r,field:a})=>i(co,{label:e,options:(a.options??t).map(s=>({...s,label:l(s.label)})),value:Array.isArray(o)?o:[],onChange:r,...n?{emptyLabel:l(n)}:{}})}}function Ga(e,t,n,o){return{type:"custom",options:t,fallback:n,...R({},{type:"select",label:e}),render:({value:r,onChange:a,field:s})=>i(po,{label:e,options:(s.options??t).map(c=>({...c,label:l(c.label)})),fallback:s.fallback??n,value:r,onChange:a,placeholder:o===void 0?void 0:l(o)})}}function Ha(e,t={}){return{type:"custom",render:({value:n,onChange:o})=>{const r={value:n,onChange:o,...t};return i(e,{...r})}}}const Ma=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Ka(e,t,n){const o=Object.keys(Re).map(r=>({label:Re[r],value:r,picture:n[r]}));return{type:"custom",...R({},{type:"radio",label:e,options:o.map(r=>({value:r.value,label:r.label}))}),render:({onChange:r})=>i(ni,{label:e,icon:t,options:o,onChange:r})}}function ni({label:e,icon:t,options:n,onChange:o}){const r=V()?.values??{},a=Pt(r),s=a==="frame"&&!!Ie(r.mediaVideo)&&!Ie(r.videoFrame);return i(b,{label:l(e),icon:K(t),hint:s?l("This video has no frame yet. The slide shows its background colour until one is made."):void 0,children:be({options:n,value:a,onChange:o,ariaLabel:e})})}function Wa(e,t,n,o={}){return{type:"custom",[Pe]:!0,render:({value:r,onChange:a,name:s})=>i(so,{value:r||"",onChange:a,fieldKey:s,label:e,accept:t,placeholder:n,focusKey:o.focus,focusWhen:o.focusWhen,frameKey:o.frame})}}const Ua={HeroSingle:["imageFocal"],HeroSlide:["videoFrame"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function oi(e){const t=l(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${t} · ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:t}function $a({value:e,onChange:t,label:n}){const o=e||{},r=V(),a=r?r.values!==r.node.props:!0,s=!!o.pending&&a,c=!!o.pending&&!a,d=s?"var(--ink-faint)":o.ok&&!c?"var(--status-success-soft-ink)":"var(--status-danger-soft-ink)",f=!!or(nr()).geocode,h=we(),p=(u,m)=>t({...o,[u]:m??void 0});return N(T,{children:[i(b,{label:l(n),icon:i(Ge,{}),action:f?i(Z,{content:l("Find from the address (OpenStreetMap)"),children:i(je,{"aria-label":l("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>t({...o,pending:!0,ok:!1,status:"Finding…"}),children:i(pn,{})})}):void 0,children:f&&o.status?i(Z,{content:oi(o),className:"sf-name-tip",children:i("div",{className:`es-field-hint ${$t}`,style:{margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0,color:d},children:s?l("Finding…"):c?l(zn):l(o.status)})}):null}),i(b,{label:l("Enter by hand"),labelId:h,icon:i(on,{}),action:i(se,{checked:!!o.manual,onChange:u=>t({...o,manual:u}),ariaLabelledBy:h})}),o.manual&&i(b,{label:l("Latitude, longitude"),icon:i(Ge,{}),children:N("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[i(ze,{value:typeof o.lat=="number"?o.lat:null,onChange:u=>p("lat",u),min:-90,max:90,step:1e-4,placeholder:l("Latitude")}),i(ze,{value:typeof o.lng=="number"?o.lng:null,onChange:u=>p("lng",u),min:-180,max:180,step:1e-4,placeholder:l("Longitude")})]})})]})}function ri(e,t){return t===null||t<0||t>=e.length?"":e[t]?.text??""}function ii(e,t,n){const o=e.map(r=>({text:r?.text??""}));return t===null||t<0||t>=e.length?o:o.map((r,a)=>a===t?{text:n}:r)}function Xa(e,t){return e===null?null:t>e?e:null}function li(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 ja={label:"Ticker items",icon:i(cn,{})};function za(e,t,n,o){return{type:"custom",[w]:{control:"textList",label:e,placeholder:n,itemKey:"text",rendering:o},...R({},{...pt.textList,label:e}),render:({value:r,onChange:a})=>i(ai,{label:e,icon:K(t),items:Array.isArray(r)?r:[],placeholder:n,onChange:a,markup:o==="markup"})}}function ai({label:e,icon:t,items:n,placeholder:o,onChange:r,markup:a=!1}){const s=Y(null),[c,d]=H(null),f=p=>p.map(u=>({text:u?.text??""})),h=p=>{const u=li(n,p,c);u===null&&(s.current=null),d(u),r(f(p))};return i(Pn,{label:l(e),icon:t,noun:l("item"),items:n,onChange:h,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:a?i(Ve,{target:s,value:ri(n,c),onChange:p=>r(ii(n,c??-1,p)),disabled:c===null,label:c===null?l("Formatting — click a row first"):l("Formatting — row {n}",{n:c+1})}):void 0,renderRow:(p,u,m)=>i("input",{type:"text",className:a&&c===u?"sf-list-marking":void 0,value:p?.text??"",placeholder:l(o),"aria-label":l("{label} {n}",{label:l(e),n:u+1}),onChange:g=>m({text:g.target.value}),onFocus:g=>{s.current=g.currentTarget,d(u)}})})}function Ya(e,t){const n=`${e.label} — row ${t+1}`;return F({control:"plainText",label:n,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:o,onChange:r})=>i(A,{value:o,onChange:r,label:l("{label} — row {n}",{label:l(e.label),n:t+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Va(e){return{_gCards:_("Cards"),coverIndex:$("Cover image",i(sn,{}),io,String(lo),e?.coverHint??"A card's opening picture — a card pinned to a finish keeps its own."),imageBackground:_r("Image background",Do),cardImage:di()}}function qa(){return{outline:$("Card outline",i(fn,{}),no,ro),indexBadge:$("Card number",i(De,{}),to,oo),showBadge:qr("Product badge",!0,i(Ue,{noun:"tag"}))}}function Za(e){const t=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},n=r=>({...X,label:oe.find(a=>a.id===r).label}),o=r=>R(Vn(ye),n(r));return{_gShowOnCard:_("Show on a card"),[ye]:R({type:"custom",render:()=>i(si,{rest:{showCardPrice:!0,showCardFinishes:!0,...t}})},n(ye)),showCardFinishes:o("showCardFinishes"),showCardSizes:o("showCardSizes"),showCardBuy:o("showCardBuy"),showCardPage:o("showCardPage")}}const ye="showCardPrice",oe=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function si({rest:e}){const t=G(),n=wr(),o=s=>typeof t[s]=="boolean"?t[s]:void 0,r=s=>o(s)??e[s],a=oe.some(({id:s})=>o(s)!==void 0&&o(s)!==e[s]);return i(Ce,{parts:oe,changed:a,shown:r,onPress:(s,c)=>n({[s]:c}),onReset:()=>n(Object.fromEntries(oe.map(({id:s})=>[s,void 0])))})}function Ja(e,t="display"){const n=v(t);return{[t]:x("desktop",{type:"custom",render:({value:o,onChange:r})=>i(Ce,{parts:e,changed:Fn(o),shown:a=>Ln(o,a),onPress:(a,s)=>r(vn(o,a,s)),onReset:()=>r(void 0)})}),[n]:x("mobile",{type:"custom",render:({value:o,onChange:r})=>i(ci,{parts:e,desktopKey:t,value:o,onChange:r})})}}function Ce({parts:e,changed:t,shown:n,onPress:o,onReset:r,detail:a,disabledReason:s}){const c=l("Display");return i(b,{label:c,icon:i(zt,{}),changed:t,action:i(y,{words:S()?.panel,label:c,changed:t,detail:a,onReset:r}),children:i(An,{label:c,items:e.map(d=>({id:d.id,label:l(d.label),shown:n(d.id),...s?{disabled:!0,disabledReason:l(s)}:{}})),onChange:o})})}function ci({parts:e,desktopKey:t,value:n,onChange:o}){const r=G()[t];return i(Ce,{parts:e,changed:kn(n),shown:a=>Nn(r,n,a),onPress:(a,s)=>o(Bn(n,a,s)),onReset:()=>o(Qn),detail:l("the same as Desktop")})}function di(){return gt("Card image",{min:k,max:Le,step:Nt,hint:"Rounds the picture. The card's own corner is in Styles."})}function Qa(){return Se({sidesKey:"cornerSides",step:kt,useFollowed:()=>k,mark:i(ui,{label:vt}),hint:l("Rounds the picture. Left alone it stays square.")})}function ui({label:e,changed:t=!1,onReset:n=()=>{}}){return i(y,{words:S()?.panel,label:l(e),changed:t,onReset:n})}function es(){return{type:"custom",render:({value:e,onChange:t})=>i(hi,{value:typeof e=="string"?e:"",onChange:t})}}function pi({layout:e,width:t}){return i("span",{"aria-hidden":"true",style:{display:"grid",width:t,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:6,gridAutoFlow:"row dense",gap:2},children:Ht(e).map(([n,o],r)=>i("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${n}`,gridRow:`span ${o}`}},r))})}const fi={width:"3.5rem",height:"2.5rem"},mi=200;function hi({value:e,onChange:t}){const[n,o]=H(null),[r,a]=H(4),s=Y(null);Et(()=>{const u=s.current;if(!u||typeof ResizeObserver!="function")return;const m=()=>a(u.getBoundingClientRect().width>=mi?4:3);m();const g=new ResizeObserver(m);return g.observe(u),()=>g.disconnect()},[]);const c=e&&e in q?e:"",d=Ne(n,c),f=Ne(n,"").length,h=Mt("no-symbol"),p=[{value:"",label:l("Not chosen"),icon:h},...d.map(u=>({value:u,label:l(q[u].label),icon:i(pi,{layout:q[u],width:40})}))];return i(b,{label:l("Layout"),icon:i(ln,{}),value:c?l(q[c].label):void 0,children:i("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:i(Xn,{label:l("Layout"),value:c,emptyValue:"",options:p,onChange:t,columns:r,cell:fi,header:N("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[i("span",{className:"text-2xs text-ink-faint",children:l("Photos in a row")}),i(In,{options:[{id:"all",label:l("All")},...Dt.map(u=>({id:String(u),label:String(u)}))],value:n===null?"all":String(n),ariaLabel:l("Photos in a row"),onChange:u=>o(u==="all"?null:Number(u))}),i("span",{className:"text-2xs text-ink-faint",children:l("{n} of {total} layouts",{n:f,total:Gt.length})})]})})})})}export{gr as BOUND_TO_POST,zl as BOUND_TO_POST_NOTE,ta as BUCKET_ICONS,Ua as CUSTOM_FIELD_MEDIA,$a as CoordsField,dt as DESKTOP_GAP_NOT_OVERLAP,Ce as DisplayRow,va as EDGE_ARROWS,Un as FOCAL_DEFAULT,ei as FOCAL_POINTS,le as FOLD_FIELD_MARKER,ti as FocalPicker,ca as GroupLabel,br as HIGHLIGHT_HINT,A as HidableTextField,Te as LINK_FIELD_MARKER,Bl as Label,Pe as MEDIA_FIELD_MARKER,Ma as MEDIA_TYPE_OPTIONS,Yl as NOT_BOUND_TO_POST,sa as PanelBand,yr as PanelNoteLine,Kr as RowPropsContext,Ae as SCAFFOLD_FIELD_MARKER,rs as SCALAR_TEXT_CONTROLS,sr as SiteGapDefaultReset,j as Slider,ht as Swatches,os as TEXT_CONTROL_KINDS,w as TEXT_FIELD_MARKER,ja as TICKER_ITEMS_ROW,ai as TextListField,ne as WIDTH_LABEL,mr as WidthDefaultReset,li as aimAfterListChange,Oa as anchorFields,D as backTo,da as backgroundField,ga as boxBlockSpacingField,Sa as boxColumnsFields,Na as boxFillField,Mr as boxPhoneRowField,Ct as boxShareField,ba as boxSharePhoneField,xa as boxShareTabletField,Jr as boxThemeIndexOf,ra as bucketHeader,fa as buttonWordsEntryField,Dr as cardCornersField,_r as cardImageBackgroundField,di as cardImageField,Va as cardMediaFields,ha as cardShapeFields,Za as cardShowFields,qa as cardStyleFields,Ca as cellWidthFields,Fa as checkbox,La as colorInput,Gl as containerDirectionField,cr as containerGapField,dr as containerGapPhoneField,Dl as containerGapRows,ur as containerGapTabletField,oi as coordsResultTip,Jl as copyText,xt as cornerSidesField,Se as cornersRowField,Pa as date,Ta as dateTime,ia as designGroupHeader,Ja as displayFields,Ba as edgePad,Xa as focusAfterRemove,ka as focusKeptField,la as foldMarker,ae as foldMetaOf,Cr as foldTitleOf,es as galleryLayoutField,Ra as heightFields,Hl as heroGroupPlacementPoints,Oe as hidableText,Sr as hintIsWhileTyping,Qa as imageCornersField,jl as inOwnBox,oa as isBucketHeader,bt as keptBy,Ql as linkField,Ka as loadingShowsField,Da as multiSelect,Aa as pageBackgroundField,na as panelNote,$r as phoneOverrideField,Zl as plainText,ea as plainTextarea,gt as pxField,aa as quietMarker,Ee as readHidable,ri as rowText,Ga as searchSelect,St as sectionBorderField,Or as sectionCornersField,pa as sectionShapeFields,ua as sectionThemeFields,ii as setRowText,ya as sizeField,Ha as sourceField,_a as spacingFields,Ea as stickFields,wa as swapPadding,ma as templateField,Vl as text,At as textFieldIdentifier,Wl as textFieldOffPage,$l as textFieldPanelOnly,za as textList,Ya as textListRowField,ql as textarea,qr as toggle,Wa as upload,wr as useSelectedPatch,G as useSelectedProps,L as useSelectedSibling,ar as useSiteGapDetail,Ia as widthField,Xl as withIdentifier,Kl as withOffPage,Ul as withPanelOnly,Ml as withScaffold};
@@ -0,0 +1,4 @@
1
+ export declare function darkenFields(): {
2
+ darken: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
3
+ darkenStyle: import("efficient-easel/screen/lib/document/box-fields").SelectField;
4
+ };
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{OpacityIcon as n,StylesIcon as o}from"efficient-easel/icons";import{BOX_DARKEN as r,BOX_DARKEN_STYLES as t}from"../../../format/lib/content/box-background.js";import{select as a,slider as i}from"./box-fields.js";function c(){return{darken:i("Darken",e(n,{}),r.min,r.max,r.step,r.fallback,r.unit),darkenStyle:a("Darken style",e(o,{}),t,t[0].value)}}export{c as darkenFields};
@@ -1 +1 @@
1
- import{anchorFields as m,bucketHeader as L,cardMediaFields as Y,cardShowFields as U,cardStyleFields as W,designGroupHeader as F,foldMarker as z,foldMetaOf as h,quietMarker as q,heightFields as E,sectionShapeFields as w,sectionThemeFields as O,stickFields as x,widthField as D}from"./controls.js";import{group as J}from"efficient-easel/screen/lib/document/box-fields";import{sidesPaddingFields as T}from"./box-fields.js";import{deviceField as Q,deviceMetaOf as P}from"efficient-easel/screen/lib/document/device-fields";import{entranceFields as B}from"../animation/entrance-fields.js";import{DESIGN_GROUPS as k,SETTINGS_BUCKETS as V}from"efficient-easel/panel";import{BUCKET_KEY as d,DESIGN_GROUP_KEY as b}from"efficient-easel/screen/lib/document/field-buckets";const A=V;function X(e){return e==="Animation"?"Animation":"Design"}const Z="Editor only — not shown live",I={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel · actions":"Content","Right panel · choices":"Content","Right panel · form":"Content","Routing groups":"Content",Rows:"Content",Search:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","“Other” reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[Z]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},$={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},G={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function _(e,t,o){const a=`${e}.${t}`;return G[a]??$[a]??I[o]}function ge(e,t,o){const a=_(e,t,o);return a?X(a):void 0}function H(e){return e==="Animation"?[d.Animation]:[d.Design,b[e]]}function S(...e){const t=[];for(const o of e)for(const a of Object.values(o)){const C=P(a),g=h(C?C.inner:a),l=g?I[g.label]:void 0;if(l)for(const p of H(l))t.includes(p)||t.push(p)}return t}const pe=[...S(T({tablet:!0}),D("full"),E(),m(),x()),...Object.keys(T({tablet:!0})),...Object.keys(D("full")),...Object.keys(E()),...Object.keys(m()),...Object.keys(x())],ye=[...S(O()),...Object.keys(O())],ke=[...S(w()),...Object.keys(w())],_e=[...S(B()),...Object.keys(B())],ee=Object.keys(Y()),te=new Set(["cardImage","imageBackground"]),Se=[...H(_("ProductGrid","_gCards","Cards")??"Design"),...ee.filter(e=>e.startsWith("_g")||te.has(e))],ve=Object.keys(W()),fe=Object.keys(U()),ne={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) — the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) — the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},K={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},M={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{const e={...T({tablet:!0}),...D("full"),...E(),...m(),...O(),...w(),...B()};for(const t of Object.keys(M)){const o=h(e[t]),a=o?I[o.label]:void 0;if(!o||o.level!==2||!a||!K[a].includes(o.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${t}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale — a list that quietly matches nothing is worse than no list.`)}}const oe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),ae=new Map([[d.Design,"Content"],[d.Animation,"Animation"],...k.map(e=>[b[e],e])]);function me(e){const t=new Set([...Object.values(d),b.Content]);for(const[o,a]of Object.entries(e))if(!t.has(o)&&h(a)?.level===1)return 1;return 2}function ie(e){const t=`${e}.`;return Object.keys(ne).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length))}function re(e,t){const o=P(e),a=J(t);return o?Q(o.tier,a):a}function de(e,t){const o=h(t);return o?e==="Content"||e==="Animation"?z(t,o.label):q(t):t}function j(e){return e==="Design"?k:["Animation"]}function Le(e,t){const o=[],a=new Set(ie(t)),C=new Set;let g=!1,l=null;for(const[n,r]of Object.entries(e)){const i=h(r);if(oe.has(n))throw new Error(`${t}.${n}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design · Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g…\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);const c=ae.get(n);if(c!==void 0){if(i?.level!==1)throw new Error(`${t}.${n}: that key is reserved for the ${c} heading of the settings panel, but this field is ${i?`a level-${i.level} "${i.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(n===d.Design||n===d.Animation)&&(g=!0),o.push(l={place:c,entries:[],adopted:!0});continue}if(!i){l||o.push(l={place:"Content",entries:[]}),l.entries.push([n,r]);continue}if(a.has(n)||n in M){const s=_(t,n,i.label);if(i.level!==2||!s||!K[s].includes(i.label))throw new Error(`${t}.${n}: ${a.has(n)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${i.level} "${i.label}" header in the ${s??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired — anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);a.has(n)&&C.add(n),o.push(l={place:s,entries:[]});continue}const u=_(t,n,i.label);if(!u)throw new Error(`${t}.${n}: the inspector group "${i.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...k,"Animation"].join(" / ")} its controls belong under. Classify it — an unclassified group silently lands wherever it was declared, which is the whole bug.`);o.push(l={place:u,entries:[[n,i.level===2?r:re(r,i.label)]]})}const p=new Set(Object.entries(e).filter(([,n])=>h(n)).map(([n])=>n));for(const[n,r]of[["BLOCK_KEY_GROUP",G],["KEY_GROUP",$]]){const i=Object.keys(r).filter(c=>c.startsWith(`${t}.`)).filter(c=>!p.has(c.slice(t.length+1)));if(i.length)throw new Error(`${t}: ${n} (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key — an override that quietly matches nothing is worse than no override.`)}const v=g?[]:[...a].filter(n=>!C.has(n));if(v.length)throw new Error(`${t}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(v)}, but this section has no such fold header${v.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section — a list that quietly matches nothing is worse than no list.`);const R=new Set(o.filter(n=>n.entries.length>0).map(n=>n.place)),f=A.filter(n=>j(n).some(r=>R.has(r))),y={};for(const n of f){y[d[n]]=L(n,n===f[0]?f:null);for(const r of j(n)){if(!R.has(r))continue;const i=o.filter(u=>u.place===r),c=i.findIndex(u=>u.adopted);c>0&&i.unshift(...i.splice(c,1)),n==="Design"&&(y[b[r]]=F(r));for(const u of i)for(const[s,N]of u.entries)y[s]=de(r,N)}}return y}function Ee(e){return d.Design in e?e:{[d.Design]:L("Design",null),[b.Content]:F("Content"),...e}}function we(e){return A.some(t=>d[t]in e)}function Oe(e){const t=A.filter(a=>d[a]in e);if(t.length===0)return e;const o={...e};for(const a of t)o[d[a]]=L(a,a===t[0]?t:null);return o}export{G as BLOCK_KEY_GROUP,Se as BOUND_CARD_MEDIA_FIELD_KEYS,A as BUCKETS,d as BUCKET_KEY,ee as CARD_MEDIA_FIELD_KEYS,fe as CARD_SHOW_FIELD_KEYS,ve as CARD_STYLE_FIELD_KEYS,k as DESIGN_GROUPS,b as DESIGN_GROUP_KEY,Z as EDITOR_ONLY_GROUP,M as INJECTED_RETIRED,$ as KEY_GROUP,I as LABEL_GROUP,pe as LAYOUT_FIELD_KEYS,K as PLACE_WORDS,ne as RETIRED,_e as SECTION_ANIM_FIELD_KEYS,ke as SECTION_SHAPE_FIELD_KEYS,ye as SECTION_THEME_FIELD_KEYS,Le as assignSectionGroups,ge as bucketOf,X as bucketOfPlace,me as foldTopTier,we as hasBucketTabs,S as headerKeysOf,H as headerKeysOfPlace,_ as placeOf,Oe as reseatBucketTabs,ie as retiredHeadings,Ee as seatDesignBucket};
1
+ import{anchorFields as m,bucketHeader as L,cardMediaFields as Y,cardShowFields as U,cardStyleFields as W,designGroupHeader as F,foldMarker as z,foldMetaOf as h,quietMarker as q,heightFields as E,sectionShapeFields as w,sectionThemeFields as O,stickFields as x,widthField as D}from"./controls.js";import{group as J}from"efficient-easel/screen/lib/document/box-fields";import{sidesPaddingFields as T}from"./box-fields.js";import{deviceField as Q,deviceMetaOf as P}from"efficient-easel/screen/lib/document/device-fields";import{entranceFields as B}from"../animation/entrance-fields.js";import{DESIGN_GROUPS as k,SETTINGS_BUCKETS as V}from"efficient-easel/panel";import{BUCKET_KEY as d,DESIGN_GROUP_KEY as b}from"efficient-easel/screen/lib/document/field-buckets";const A=V;function X(e){return e==="Animation"?"Animation":"Design"}const Z="Editor only — not shown live",I={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel · actions":"Content","Right panel · choices":"Content","Right panel · form":"Content","Routing groups":"Content",Rows:"Content",Search:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","“Other” reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[Z]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},$={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},G={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function _(e,t,o){const a=`${e}.${t}`;return G[a]??$[a]??I[o]}function ge(e,t,o){const a=_(e,t,o);return a?X(a):void 0}function H(e){return e==="Animation"?[d.Animation]:[d.Design,b[e]]}function S(...e){const t=[];for(const o of e)for(const a of Object.values(o)){const C=P(a),g=h(C?C.inner:a),l=g?I[g.label]:void 0;if(l)for(const p of H(l))t.includes(p)||t.push(p)}return t}const pe=[...S(T({tablet:!0}),D("full"),E(),m(),x()),...Object.keys(T({tablet:!0})),...Object.keys(D("full")),...Object.keys(E()),...Object.keys(m()),...Object.keys(x())],ye=[...S(O()),...Object.keys(O())],ke=[...S(w()),...Object.keys(w())],_e=[...S(B()),...Object.keys(B())],ee=Object.keys(Y()),te=new Set(["cardImage","imageBackground"]),Se=[...H(_("ProductGrid","_gCards","Cards")??"Design"),...ee.filter(e=>e.startsWith("_g")||te.has(e))],ve=Object.keys(W()),fe=Object.keys(U()),ne={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) — the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) — the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},K={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},M={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{const e={...T({tablet:!0}),...D("full"),...E(),...m(),...O(),...w(),...B()};for(const t of Object.keys(M)){const o=h(e[t]),a=o?I[o.label]:void 0;if(!o||o.level!==2||!a||!K[a].includes(o.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${t}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale — a list that quietly matches nothing is worse than no list.`)}}const oe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),ae=new Map([[d.Design,"Content"],[d.Animation,"Animation"],...k.map(e=>[b[e],e])]);function me(e){const t=new Set([...Object.values(d),b.Content]);for(const[o,a]of Object.entries(e))if(!t.has(o)&&h(a)?.level===1)return 1;return 2}function ie(e){const t=`${e}.`;return Object.keys(ne).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length))}function re(e,t){const o=P(e),a=J(t);return o?Q(o.tier,a):a}function de(e,t){const o=h(t);return o?e==="Content"||e==="Animation"?z(t,o.label):q(t):t}function j(e){return e==="Design"?k:["Animation"]}function Le(e,t){const o=[],a=new Set(ie(t)),C=new Set;let g=!1,l=null;for(const[n,r]of Object.entries(e)){const i=h(r);if(oe.has(n))throw new Error(`${t}.${n}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design · Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g…\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);const c=ae.get(n);if(c!==void 0){if(i?.level!==1)throw new Error(`${t}.${n}: that key is reserved for the ${c} heading of the settings panel, but this field is ${i?`a level-${i.level} "${i.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(n===d.Design||n===d.Animation)&&(g=!0),o.push(l={place:c,entries:[],adopted:!0});continue}if(!i){l||o.push(l={place:"Content",entries:[]}),l.entries.push([n,r]);continue}if(a.has(n)||n in M){const s=_(t,n,i.label);if(i.level!==2||!s||!K[s].includes(i.label))throw new Error(`${t}.${n}: ${a.has(n)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${i.level} "${i.label}" header in the ${s??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired — anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);a.has(n)&&C.add(n),o.push(l={place:s,entries:[]});continue}const u=_(t,n,i.label);if(!u)throw new Error(`${t}.${n}: the inspector group "${i.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...k,"Animation"].join(" / ")} its controls belong under. Classify it — an unclassified group silently lands wherever it was declared, which is the whole bug.`);o.push(l={place:u,entries:[[n,i.level===2?r:re(r,i.label)]]})}const p=new Set(Object.entries(e).filter(([,n])=>h(n)).map(([n])=>n));for(const[n,r]of[["BLOCK_KEY_GROUP",G],["KEY_GROUP",$]]){const i=Object.keys(r).filter(c=>c.startsWith(`${t}.`)).filter(c=>!p.has(c.slice(t.length+1)));if(i.length)throw new Error(`${t}: ${n} (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key — an override that quietly matches nothing is worse than no override.`)}const v=g?[]:[...a].filter(n=>!C.has(n));if(v.length)throw new Error(`${t}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(v)}, but this section has no such fold header${v.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section — a list that quietly matches nothing is worse than no list.`);const R=new Set(o.filter(n=>n.entries.length>0).map(n=>n.place)),f=A.filter(n=>j(n).some(r=>R.has(r))),y={};for(const n of f){y[d[n]]=L(n,n===f[0]?f:null);for(const r of j(n)){if(!R.has(r))continue;const i=o.filter(u=>u.place===r),c=i.findIndex(u=>u.adopted);c>0&&i.unshift(...i.splice(c,1)),n==="Design"&&(y[b[r]]=F(r));for(const u of i)for(const[s,N]of u.entries)y[s]=de(r,N)}}return y}function Ee(e){return d.Design in e?e:{[d.Design]:L("Design",null),[b.Content]:F("Content"),...e}}function we(e){return A.some(t=>d[t]in e)}function Oe(e){const t=A.filter(a=>d[a]in e);if(t.length===0)return e;const o={...e};for(const a of t)o[d[a]]=L(a,a===t[0]?t:null);return o}export{G as BLOCK_KEY_GROUP,Se as BOUND_CARD_MEDIA_FIELD_KEYS,A as BUCKETS,d as BUCKET_KEY,ee as CARD_MEDIA_FIELD_KEYS,fe as CARD_SHOW_FIELD_KEYS,ve as CARD_STYLE_FIELD_KEYS,k as DESIGN_GROUPS,b as DESIGN_GROUP_KEY,Z as EDITOR_ONLY_GROUP,M as INJECTED_RETIRED,$ as KEY_GROUP,I as LABEL_GROUP,pe as LAYOUT_FIELD_KEYS,K as PLACE_WORDS,ne as RETIRED,_e as SECTION_ANIM_FIELD_KEYS,ke as SECTION_SHAPE_FIELD_KEYS,ye as SECTION_THEME_FIELD_KEYS,Le as assignSectionGroups,ge as bucketOf,X as bucketOfPlace,me as foldTopTier,we as hasBucketTabs,S as headerKeysOf,H as headerKeysOfPlace,_ as placeOf,Oe as reseatBucketTabs,ie as retiredHeadings,Ee as seatDesignBucket};
@@ -1 +1 @@
1
- "use client";import{jsx as d,Fragment as v,jsxs as y}from"react/jsx-runtime";import{useEffect as I,useMemo as g,useRef as h}from"react";import{EaselCanvas as P,useEaselApi as T}from"efficient-easel/easel";import w from"../../components/PreviewThemeFrame.js";import{OpenDocumentChromeLoadNotice as F}from"../../components/PinnedChromeLoadNotice.js";import{SiteRestoreNotice as D}from"../../components/SiteRestoreNotice.js";import{usePreviewParts as E}from"efficient-easel/draw/client";import{partElement as k,partTypingTarget as x,setCanvasTypingPart as S}from"./canvas-typing.js";import{partThemeColors as A,readInks as W}from"../../../format/lib/document/part-inks.js";import{PART_ATTR as p}from"../../../render/lib/document/text-parts.js";import{useSectionOps as j}from"efficient-easel/screen/lib/document/use-section-ops";import{useBlockMetadata as B}from"../editor-block-metadata.js";import{usePreviewHeader as M,useSiteContentWidth as R}from"../../../render/components/PreviewHeaderContext.js";import{setEditorSiteContentWidth as C}from"../../../format/lib/document/editor-site-widths.js";import{siteWidthsMetadata as _}from"../../../format/lib/content/section-width.js";import{useEditorCanvasStyles as b}from"../editor-canvas-styles.js";function et(n){const{mirrorHostStyles:s}=b(),m=B(),{sectionBackgroundWidth:c,themeFromDocument:o}=M(),a=R(),u=g(()=>({...n.metadata??m??{},..._(o?null:c,a)}),[n.metadata,m,c,a,o]);I(()=>(C(a),()=>C(null)),[a]);const t=h(null),r=N(t),{onDocument:e}=n,i=l=>{t.current=l,e?.(l)};return y(v,{children:[d(D,{}),d(F,{}),d(P,{...n,onDocument:i,typing:r,metadata:u,height:"fill",mirrorStyles:s,frameWrapper:w})]})}function N(n){const s=T(),m=j(),c=E(),o=h({ops:m,parts:c});return o.current={ops:m,parts:c},g(()=>{const a={getItemById:t=>s.getState().getItemById(t),getSelectorForId:t=>s.getState().getSelectorForId(t),get components(){return s.getState().config.components},replace:(t,r,e)=>o.current.ops.replaceComponent(t,r,e)},u=(t,r)=>{const e=x(t,a);if(!e)return null;let i=r;const l=()=>(i=k(i,i?.ownerDocument??n.current,t),i),f=l();return f?{element:l,value:e.value,rules:e.rules,multiline:e.multiline,skip:e.skip,write:e.write,toolbar:{offered:e.offered,colors:e.offered.length>0?A(W(f)):void 0}}:null};return{at:t=>{const r=t.closest(`[${p}]`),e=r?.getAttribute(p);return r&&e?u(e,r):null},atSelection:()=>{const t=o.current.parts.selectedPartId;return t?u(t,null):null},onChange:t=>{if(!t.typing){S(null);return}const r=t.element.closest(`[${p}]`)?.getAttribute(p)??null;S(r),r&&o.current.parts.selectedPartId!==r&&o.current.parts.select(r)}}},[s,n])}export{et as SiteCanvas};
1
+ "use client";import{jsx as y,Fragment as $,jsxs as k}from"react/jsx-runtime";import{useEffect as x,useMemo as w,useRef as E}from"react";import{EaselCanvas as D,repeatCopyAt as _}from"efficient-easel/easel";import W from"../../components/PreviewThemeFrame.js";import{OpenDocumentChromeLoadNotice as b}from"../../components/PinnedChromeLoadNotice.js";import{SiteRestoreNotice as F}from"../../components/SiteRestoreNotice.js";import{decodePartId as j,REPEAT_ATTRIBUTE as g,REPEAT_INDEX_ATTRIBUTE as T}from"efficient-easel/draw";import{usePreviewParts as B}from"efficient-easel/draw/client";import{cssString as v,partElement as A,partTypingTarget as M,setCanvasTypingPart as S}from"./canvas-typing.js";import{usePartTypingDeps as N}from"../../components/usePartTypingDeps.js";import{copyRowTarget as K,copyRowValue as H,writeCopyText as L}from"./card-copy-rows.js";import{partThemeColors as U,readInks as V}from"../../../format/lib/document/part-inks.js";import{PART_ATTR as f}from"../../../render/lib/document/text-parts.js";import{useBlockMetadata as q}from"../editor-block-metadata.js";import{usePreviewHeader as O,useSiteContentWidth as X}from"../../../render/components/PreviewHeaderContext.js";import{setEditorSiteContentWidth as R}from"../../../format/lib/document/editor-site-widths.js";import{siteWidthsMetadata as z}from"../../../format/lib/content/section-width.js";import{useEditorCanvasStyles as G}from"../editor-canvas-styles.js";function yt(o){const{mirrorHostStyles:s}=G(),a=q(),{sectionBackgroundWidth:i,themeFromDocument:u}=O(),t=X(),r=w(()=>({...o.metadata??a??{},...z(u?null:i,t)}),[o.metadata,a,i,t,u]);x(()=>(R(t),()=>R(null)),[t]);const e=E(null),m=J(e),{onDocument:c}=o,n=l=>{e.current=l,c?.(l)};return k($,{children:[y(F,{}),y(b,{}),y(D,{...o,onDocument:n,typing:m,metadata:r,height:"fill",mirrorStyles:s,frameWrapper:W})]})}function J(o){const s=N(),a=B(),i=E({parts:a});return i.current={parts:a},w(()=>{const u=(t,r)=>{let e=M(t,s),m,c=null;const n=r??(e?null:A(null,o.current,t)),l=!e&&n?_(n):null,p=l?j(t):null;if(l&&n&&p?.propKey){e=K({...l,nodeId:p.nodeId,key:p.propKey},s),m=p.propKey;const P=n.closest(`[${g}][${T}]`),I=`[${g}="${v(P?.getAttribute(g)??"")}"][${T}="${v(P?.getAttribute(T)??"")}"]`;c=()=>(n.ownerDocument??o.current)?.querySelector(I)??null}if(!e)return null;let d=n;const h=()=>(d=A(d,c?c():d?.ownerDocument??o.current,t),d),C=h();return C?{element:h,value:e.value,rules:e.rules,multiline:e.multiline,skip:e.skip,write:e.write,key:m,toolbar:{offered:e.offered,colors:e.offered.length>0?U(V(C)):void 0}}:null};return{at:t=>{const r=t.closest(`[${f}]`),e=r?.getAttribute(f);return r&&e?u(e,r):null},atSelection:()=>{const t=i.current.parts.selectedPartId;return t?u(t,null):null},onCopyText:t=>L(t,s),copyValue:t=>H(t,s),onChange:t=>{if(!t.typing){S(null);return}const r=t.element.closest(`[${f}]`)?.getAttribute(f)??null;S(r),r&&i.current.parts.selectedPartId!==r&&i.current.parts.select(r)}}},[s,o])}export{yt as SiteCanvas};
@@ -0,0 +1,2 @@
1
+ import type { SlotSectionSpec } from "efficient-easel/screen/lib/document/slot-section-spec";
2
+ export declare const EDITOR_SLOT_EXTRA_SPECS: Record<string, Record<string, SlotSectionSpec>>;
@@ -0,0 +1 @@
1
+ import{SECTION_LABELS as i}from"../../../format/lib/document/section-catalog.js";import{SLOT_SECTION_EXTRA_SPECS as E}from"../../../render/lib/document/slot-specs.js";import{HERO_STRIP_SLOT as S,STRIP_ON_MEDIA as n}from"../../../format/lib/hero-ticker.js";import{SECTION_PRESETS as s}from"../../../format/lib/sections/section-presets.js";function T(o){const e=s.Ticker(o.nodeDefaults,o.newNodeId),{sectionBorder:r,...t}=e.props,c=n.line?{sectionBorder:r}:{};return{...e,props:{...t,...c,sectionAccent:n.sectionAccent}}}const O={Hero:{[S]:{newChild:T,childLabel:i.Ticker}}},f=Object.fromEntries(Object.entries(E).map(([o,e])=>[o,Object.fromEntries(Object.entries(e).map(([r,t])=>[r,{...t,...O[o]?.[r]}]))]));export{f as EDITOR_SLOT_EXTRA_SPECS};
@@ -1 +1 @@
1
- import{readPartMotions as _}from"../../../render/lib/animation/part-motion.js";import{STRIP_SECTION_TO_BOX as I}from"../../../render/lib/document/blocks/general/section-to-box-rows-strip.js";import{SECTION_ACCENT_INHERIT as g}from"../../../format/lib/content/section-surface.js";import{HERO_STRIP_SLOT as m,legacyTickerWords as l,TICKER_MOTION_PART as i}from"../../../format/lib/hero-ticker.js";import{nonEmptyString as u}from"../../../format/lib/non-empty-string.js";import{convertSection as O}from"../../../render/lib/sections/section-to-box.js";function M(t){const{showTicker:n,tickerItems:d,...k}=t.props,y=u(t.props.id)??"Hero",r=[],o=[],e={...k},s=l({tickerItems:d}),p=n!==!1&&s.length>0,c=_(t.props),h=c[i];if(h){const{[i]:a,...w}=c;Object.keys(w).length?e._partMotion=w:delete e._partMotion,r.push({key:"_partMotion",home:p?`${i} → the strip Box's own Entrance`:`${i} → nothing: no strip is drawn`})}if(!p)return e[m]=[],"showTicker"in t.props&&o.push({key:"showTicker",why:n===!1?"switched off: an empty strip draws nothing, the same as today":"no words: the strip drew nothing published, so the strip stays empty"}),"tickerItems"in t.props&&o.push({key:"tickerItems",why:s.length?"switched off: the words were not drawn, and an empty strip draws nothing":"no row has words: an empty row draws nothing published"}),{node:{type:t.type,props:e},carried:r,dropped:o};const T={type:"Ticker",props:{id:`${y}~strip`,items:s.map(a=>({text:a})),tone:"plain",sectionAccent:g,borders:!1,...h??{}}},f=O(T,I.Ticker);return e[m]=[f.node],"showTicker"in t.props&&o.push({key:"showTicker",why:"on: the strip Box is the switch now (delete or hide it like any block)"}),r.push({key:"tickerItems",home:`the strip Box: one Text block per row with words (${s.length}), in order`}),{node:{type:t.type,props:e},carried:r,dropped:o}}export{M as heroTickerToStrip};
1
+ import{readPartMotions as g}from"../../../render/lib/animation/part-motion.js";import{STRIP_SECTION_TO_BOX as I}from"../../../render/lib/document/blocks/general/section-to-box-rows-strip.js";import{HERO_STRIP_SLOT as d,legacyTickerWords as l,STRIP_ON_MEDIA as m,TICKER_MOTION_PART as n}from"../../../format/lib/hero-ticker.js";import{nonEmptyString as u}from"../../../format/lib/non-empty-string.js";import{convertSection as O}from"../../../render/lib/sections/section-to-box.js";function x(e){const{showTicker:i,tickerItems:k,...y}=e.props,T=u(e.props.id)??"Hero",r=[],o=[],t={...y},s=l({tickerItems:k}),p=i!==!1&&s.length>0,c=g(e.props),h=c[n];if(h){const{[n]:w,...a}=c;Object.keys(a).length?t._partMotion=a:delete t._partMotion,r.push({key:"_partMotion",home:p?`${n} → the strip Box's own Entrance`:`${n} → nothing: no strip is drawn`})}if(!p)return t[d]=[],"showTicker"in e.props&&o.push({key:"showTicker",why:i===!1?"switched off: an empty strip draws nothing, the same as today":"no words: the strip drew nothing published, so the strip stays empty"}),"tickerItems"in e.props&&o.push({key:"tickerItems",why:s.length?"switched off: the words were not drawn, and an empty strip draws nothing":"no row has words: an empty row draws nothing published"}),{node:{type:e.type,props:t},carried:r,dropped:o};const f={type:"Ticker",props:{id:`${T}~strip`,items:s.map(w=>({text:w})),tone:"plain",sectionAccent:m.sectionAccent,borders:m.line,...h??{}}},_=O(f,I.Ticker);return t[d]=[_.node],"showTicker"in e.props&&o.push({key:"showTicker",why:"on: the strip Box is the switch now (delete or hide it like any block)"}),r.push({key:"tickerItems",home:`the strip Box: one Text block per row with words (${s.length}), in order`}),{node:{type:e.type,props:t},carried:r,dropped:o}}export{x as heroTickerToStrip};
@@ -1 +1 @@
1
- import{BOX_TYPE as a}from"../../../format/lib/document/container-blocks.js";import{SLOT_SECTION_SPECS as h}from"../../../render/lib/document/slot-specs.js";import{eyebrowLookFor as m}from"../../../format/lib/sections/section-eyebrow-look.js";import{SECTION_HEAD_TYPE as n,SPLITTABLE_SECTIONS as r,canSplitHead as s}from"../../../format/lib/sections/section-head-placement.js";import{layoutPresetFor as E}from"./text-layouts.js";function _(o,{nodeDefaults:i,newNodeId:S,sectionLabel:e,blockIsOffered:t}){const c=E(o);return c?c(i,S):s(o)&&t(a)&&t(n)?{type:a,props:{...i(a),id:S(a),direction:"column",name:`${e(o)} section`,content:[{type:n,props:{...i(n),id:S(n),...r[o]?.headStyle?{headStyle:r[o].headStyle}:{},...r[o]?.headRowGap?{rowGap:r[o].headRowGap}:{},...r[o]?.headDescriptionSize?{descriptionSize:r[o].headDescriptionSize}:{},...m(o)!==m(n)?{eyebrowLook:m(o)}:{}}},{type:o,props:{...i(o),id:S(o),headPlacement:"own-box"}}]}}:h[o]?.fixed===!0?{type:o,props:{...i(o),id:S(o),layout:"boxes"}}:null}export{_ as newSectionNode};
1
+ import{BOX_TYPE as m}from"../../../format/lib/document/container-blocks.js";import{cardsTemplateNodes as h}from"../../../format/lib/document/blocks/general/Cards/card-seed.js";import{SLOT_SECTION_SPECS as T}from"../../../render/lib/document/slot-specs.js";import{eyebrowLookFor as a}from"../../../format/lib/sections/section-eyebrow-look.js";import{SECTION_HEAD_TYPE as t,SPLITTABLE_SECTIONS as S,canSplitHead as E}from"../../../format/lib/sections/section-head-placement.js";import{layoutPresetFor as d}from"./text-layouts.js";function L(r,{nodeDefaults:i,newNodeId:o,sectionLabel:l,blockIsOffered:c}){const n=d(r);if(n)return n(i,o);if(E(r)&&c(m)&&c(t))return{type:m,props:{...i(m),id:o(m),direction:"column",name:`${l(r)} section`,content:[{type:t,props:{...i(t),id:o(t),...S[r]?.headStyle?{headStyle:S[r].headStyle}:{},...S[r]?.headRowGap?{rowGap:S[r].headRowGap}:{},...S[r]?.headDescriptionSize?{descriptionSize:S[r].headDescriptionSize}:{},...a(r)!==a(t)?{eyebrowLook:a(r)}:{}}},{type:r,props:{...i(r),id:o(r),headPlacement:"own-box",...e(r,o)}}]}};if(T[r]?.fixed===!0)return{type:r,props:{...i(r),id:o(r),layout:"boxes"}};const s=e(r,o);return Object.keys(s).length?{type:r,props:{...i(r),id:o(r),...s}}:null}function e(r,i){return r==="Cards"?{template:h(o=>i(o))}:{}}export{L as newSectionNode};
@@ -0,0 +1,8 @@
1
+ export interface StoredPick {
2
+ name: string;
3
+ value: string;
4
+ }
5
+ export declare function storedPickRow(pick: StoredPick, gone: boolean): {
6
+ label: string;
7
+ value: string;
8
+ };
@@ -0,0 +1 @@
1
+ import{say as n}from"../lib/editor-words.js";function m(a,e){return{label:e?n("{name} (unavailable)",{name:a.name}):a.name,value:a.value}}export{m as storedPickRow};
@@ -1,6 +1,7 @@
1
1
  import { type ShowWhenRule } from "efficient-shell/format";
2
2
  export declare const HOVER_KEY = "hover";
3
- export declare const HOVER_KINDS: readonly ["none", "nextImage", "rotate", "zoom", "lift"];
3
+ export declare const HOVER_GROUP_KEY = "_gHover";
4
+ export declare const HOVER_KINDS: readonly ["none", "nextImage", "rotate", "zoom", "lift", "mono"];
4
5
  export type HoverKind = (typeof HOVER_KINDS)[number];
5
6
  export declare const HOVER_KIND_LABELS: Readonly<Record<HoverKind, string>>;
6
7
  export type PartHover = Extract<HoverKind, "none" | "lift">;
@@ -26,10 +27,40 @@ export declare const CARD_HOVER_TURN: number;
26
27
  export type CardHoverDrawn = {
27
28
  kind: CardHover;
28
29
  angle: number | null;
30
+ angleSet?: boolean;
29
31
  duration: number;
30
32
  delay: number;
31
33
  };
32
34
  export declare function cardHoverKindOf(record: Readonly<Record<string, unknown>>, resting: CardHover): CardHover;
33
35
  export declare function cardHoverAngleOf(stored: unknown): number;
34
36
  export declare function cardHoverOf(record: Readonly<Record<string, unknown>>, blockKey: string): CardHoverDrawn;
37
+ export declare function cardTurnFor(hover: CardHoverDrawn, spokes: unknown): CardHoverDrawn;
35
38
  export declare function cardRotatesRule(resting: CardHover): ShowWhenRule;
39
+ export type PictureHover = Extract<HoverKind, "none" | "nextImage" | "mono">;
40
+ export declare const PICTURE_HOVER_KINDS: readonly PictureHover[];
41
+ export declare const NEXT_PICTURE_HOVER_KINDS: readonly PictureHover[];
42
+ export declare const PICTURE_HOVER_BLOCKS: readonly string[];
43
+ export declare function pictureHoverResting(blockKey: string): PictureHover;
44
+ export type PictureHoverDrawn = {
45
+ kind: PictureHover;
46
+ duration: number;
47
+ delay: number;
48
+ zoom?: string | null;
49
+ darken?: number | null;
50
+ };
51
+ export declare const PICTURE_HOVER_KEYS: {
52
+ readonly zoom: "hoverZoom";
53
+ readonly darken: "hoverDarken";
54
+ };
55
+ export declare const PICTURE_HOVER_ZOOM: {
56
+ readonly min: 100;
57
+ readonly max: 150;
58
+ readonly step: 1;
59
+ readonly unit: "%";
60
+ };
61
+ export declare function pictureHoverZoomOf(record: Readonly<Record<string, unknown>>, kind: string): string | null;
62
+ export declare const NEXT_PICTURE_BLOCKS: readonly string[];
63
+ export declare function pictureHoverKindOf(record: Readonly<Record<string, unknown>>, resting: PictureHover, kinds?: readonly PictureHover[]): PictureHover;
64
+ export declare function pictureHoverOf(record: Readonly<Record<string, unknown>>, blockKey?: string): PictureHoverDrawn;
65
+ export declare function pictureHoverMovesRule(): ShowWhenRule;
66
+ export declare function pictureHoverRunsRule(resting: PictureHover): ShowWhenRule;
@@ -1 +1 @@
1
- import{HOVER_MOTION as f,motionSeconds as a}from"efficient-shell/format";import{finiteNumber as R}from"../finite-number.js";const l="hover",x=["none","nextImage","rotate","zoom","lift"],D={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift"};function s(t){return x.filter(n=>t.includes(n))}const O=s(["none","lift"]);function g(t){const n=t[l];return O.includes(n)?n:"none"}const d=s(["none","rotate"]),o={kind:l,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay"},i="spinOnHover",c={min:0,max:360,step:1},u={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},A=Object.keys(u);function p(t){return u[t]??"none"}const _=f.rotateFallbackDeg;function m(t,n){const r=t[o.kind];if(d.includes(r))return r;const e=t[i];return typeof e=="boolean"?e?"rotate":"none":n}function E(t){const n=R(t);return n===void 0?_:Math.min(c.max,Math.max(c.min,n))}function N(t,n){const r=p(n),e=m(t,r);return{kind:e,angle:e==="rotate"?E(t[o.angle]):null,duration:a("hover","duration",e==="rotate"?t[o.duration]:void 0),delay:a("hover","delay",e==="rotate"?t[o.delay]:void 0)}}function h(t){const n={field:o.kind,in:[...d]};return{any:[{field:o.kind,is:"rotate"},{all:[{not:n},t==="rotate"?{not:{field:i,is:!1}}:{field:i,is:!0}]}]}}export{c as CARD_HOVER_ANGLE,o as CARD_HOVER_KEYS,d as CARD_HOVER_KINDS,A as CARD_HOVER_SECTIONS,_ as CARD_HOVER_TURN,l as HOVER_KEY,x as HOVER_KINDS,D as HOVER_KIND_LABELS,i as OLD_SPIN_KEY,O as PART_HOVER_KINDS,E as cardHoverAngleOf,m as cardHoverKindOf,N as cardHoverOf,p as cardHoverResting,h as cardRotatesRule,g as hoverOf};
1
+ import{HOVER_MOTION as E,motionSeconds as a,rotateDegrees as H}from"efficient-shell/format";import{finiteNumber as u}from"../finite-number.js";const i="hover",P="_gHover",I=["none","nextImage","rotate","zoom","lift","mono"],L={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"};function c(n){return I.filter(e=>n.includes(e))}const g=c(["none","lift"]);function M(n){const e=n[i];return g.includes(e)?e:"none"}const p=c(["none","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay"},s="spinOnHover",R={min:0,max:360,step:1},x={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},U=Object.keys(x);function v(n){return x[n]??"none"}const S=E.rotateFallbackDeg;function k(n,e){const o=n[r.kind];if(p.includes(o))return o;const t=n[s];return typeof t=="boolean"?t?"rotate":"none":e}function D(n){const e=u(n);return e===void 0?S:Math.min(R.max,Math.max(R.min,e))}function B(n,e){const o=v(e),t=k(n,o);return{kind:t,angle:t==="rotate"?D(n[r.angle]):null,angleSet:t==="rotate"&&u(n[r.angle])!==void 0,duration:a("hover","duration",t==="rotate"?n[r.duration]:void 0),delay:a("hover","delay",t==="rotate"?n[r.delay]:void 0)}}function G(n,e){return n.kind!=="rotate"||n.angleSet?n:{...n,angle:H(u(e))}}function z(n){const e={field:r.kind,in:[...p]};return{any:[{field:r.kind,is:"rotate"},{all:[{not:e},n==="rotate"?{not:{field:s,is:!1}}:{field:s,is:!0}]}]}}const m=c(["none","mono"]),N=c(["none","nextImage","mono"]),O={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Y=Object.keys(O);function V(n){return O[n]??"none"}const _={zoom:"hoverZoom",darken:"hoverDarken"},d={min:100,max:150,step:1,unit:"%"},l=["nextImage"];function C(n,e){if(!l.includes(e))return null;const o=u(n[_.zoom]);if(o===void 0)return null;const t=Math.min(d.max,Math.max(d.min,o));return t===d.min?null:String(t/100)}function T(n,e){if(!l.includes(e))return null;const o=u(n[_.darken]);return o!==void 0&&o>0?o:null}const h=["ImageBlock"];function K(n,e,o=m){const t=n[i];return o.includes(t)?t:e}function b(n,e=""){const o=h.includes(e)?N:m,t=K(n,V(e),o),f=t!=="none";return{kind:t,duration:a("hover","duration",f?n[r.duration]:void 0),delay:a("hover","delay",f?n[r.delay]:void 0),...l.includes(t)?{zoom:C(n,t),darken:T(n,t)}:{}}}function Z(){return{field:i,in:[...l]}}function w(n){return n==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}export{R as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,p as CARD_HOVER_KINDS,U as CARD_HOVER_SECTIONS,S as CARD_HOVER_TURN,P as HOVER_GROUP_KEY,i as HOVER_KEY,I as HOVER_KINDS,L as HOVER_KIND_LABELS,h as NEXT_PICTURE_BLOCKS,N as NEXT_PICTURE_HOVER_KINDS,s as OLD_SPIN_KEY,g as PART_HOVER_KINDS,Y as PICTURE_HOVER_BLOCKS,_ as PICTURE_HOVER_KEYS,m as PICTURE_HOVER_KINDS,d as PICTURE_HOVER_ZOOM,D as cardHoverAngleOf,k as cardHoverKindOf,B as cardHoverOf,v as cardHoverResting,z as cardRotatesRule,G as cardTurnFor,M as hoverOf,K as pictureHoverKindOf,Z as pictureHoverMovesRule,b as pictureHoverOf,V as pictureHoverResting,w as pictureHoverRunsRule,C as pictureHoverZoomOf};
@@ -15,6 +15,17 @@ export interface BlockSourceSpec {
15
15
  blocks: readonly string[];
16
16
  sample?: readonly SourceRow[];
17
17
  choices?: readonly SourceChoice[];
18
+ fields?: readonly SourceFieldSpec[];
19
+ edit?: SourceEditLink;
20
+ }
21
+ export interface SourceFieldSpec {
22
+ key: string;
23
+ label: string;
24
+ kind?: "text" | "image" | "link";
25
+ }
26
+ export interface SourceEditLink {
27
+ label: string;
28
+ href: string;
18
29
  }
19
30
  export declare function registerBlockSources(sources: readonly BlockSourceSpec[]): void;
20
31
  export declare function blockSources(block?: string): readonly BlockSourceSpec[];
@@ -1 +1 @@
1
- import{globalRegistry as c}from"../global-registry.js";import{nonEmptyString as i}from"../non-empty-string.js";const a="dataSource",S="dataSourceOptions",u="dataRows",g="countKey",x="counts",f=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function s(){return c("efficient.block-sources",()=>({sources:new Map,revision:0}))}const p=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!=="");function y(e){if(typeof e.key!="string"||!f.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(t=>typeof t!="string"||!t))throw new Error(`The block source ${e.key} names no block it can fill.`);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(t=>l(t)).filter(t=>t!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(p)}:{}}}function R(e){const t=e.map(y),r=s();for(const o of t)r.sources.set(o.key,o);t.length&&(r.revision+=1)}function d(e){const t=[...s().sources.values()];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function k(e){return s().sources.get(e)??null}function w(e){return s().sources.get(e)?.choices??[]}function C(){return s().revision}function b(e){const t=e?.[a];return typeof t=="string"?t.trim():""}function l(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[r,o]of Object.entries(e)){const n=i(o);n&&(t[r]=n)}return Object.keys(t).length?t:null}function m(e){const t=e?.[u];return Array.isArray(t)?t.map(l).filter(r=>r!==null):null}function _(e,t,r=[]){const o=m(e);if(o!==null&&(o.length||!t))return{rows:o,sample:!1};if(!t)return{rows:[],sample:!1};const n=k(b(e))?.sample;return{rows:n?.length?n:r,sample:!0}}export{S as BLOCK_SOURCE_OPTIONS_PROP,a as BLOCK_SOURCE_PROP,u as BLOCK_SOURCE_ROWS_PROP,x as COUNTS_SOURCE,g as COUNT_KEY_PROP,k as blockSourceSpec,d as blockSources,C as blockSourcesRevision,b as declaredBlockSource,R as registerBlockSources,m as servedRows,w as sourceChoices,_ as sourcedRows};
1
+ import{globalRegistry as i}from"../global-registry.js";import{nonEmptyString as c}from"../non-empty-string.js";const a="dataSource",S="dataSourceOptions",f="dataRows",x="countKey",R="counts",u=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function s(){return i("efficient.block-sources",()=>({sources:new Map,revision:0}))}const y=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),p=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),b=e=>[e?.label,e?.href].every(t=>typeof t=="string"&&t.trim()!=="");function k(e){if(typeof e.key!="string"||!u.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(t=>typeof t!="string"||!t))throw new Error(`The block source ${e.key} names no block it can fill.`);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(t=>l(t)).filter(t=>t!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(y)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(p).map(t=>({...t}))}:{},...b(e.edit)?{edit:{label:e.edit.label.trim(),href:e.edit.href.trim()}}:{}}}function v(e){const t=e.map(k),r=s();for(const o of t)r.sources.set(o.key,o);t.length&&(r.revision+=1)}function C(e){const t=[...s().sources.values()];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function m(e){return s().sources.get(e)??null}function E(e){return s().sources.get(e)?.choices??[]}function _(){return s().revision}function h(e){const t=e?.[a];return typeof t=="string"?t.trim():""}function l(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[r,o]of Object.entries(e)){const n=c(o);n&&(t[r]=n)}return Object.keys(t).length?t:null}function d(e){const t=e?.[f];return Array.isArray(t)?t.map(l).filter(r=>r!==null):null}function w(e,t,r=[]){const o=d(e);if(o!==null&&(o.length||!t))return{rows:o,sample:!1};if(!t)return{rows:[],sample:!1};const n=m(h(e))?.sample;return{rows:n?.length?n:r,sample:!0}}export{S as BLOCK_SOURCE_OPTIONS_PROP,a as BLOCK_SOURCE_PROP,f as BLOCK_SOURCE_ROWS_PROP,R as COUNTS_SOURCE,x as COUNT_KEY_PROP,m as blockSourceSpec,C as blockSources,_ as blockSourcesRevision,h as declaredBlockSource,v as registerBlockSources,d as servedRows,E as sourceChoices,w as sourcedRows};
@@ -38,6 +38,17 @@ export declare const BOX_SHARE_POINTS: readonly [{
38
38
  }];
39
39
  export type BoxShare = (typeof BOX_SHARE_POINTS)[number]["value"];
40
40
  export declare function boxShareClasses(share: unknown): string;
41
+ export declare function boxShareTabletOf(shareTablet: unknown): string | null;
42
+ export declare function boxRowTabletShareClass(box: {
43
+ direction?: unknown;
44
+ separator?: unknown;
45
+ loop?: unknown;
46
+ line?: unknown;
47
+ columns?: unknown;
48
+ columnsTablet?: unknown;
49
+ share?: unknown;
50
+ shareTablet?: unknown;
51
+ }): string;
41
52
  export declare function boxFitContentClass(share: unknown): string;
42
53
  export declare const BOX_PHONE_ROW_LABEL = "Columns";
43
54
  export declare const BOX_PHONE_ROW_MIN = 1;