efficient-web-builder 63.0.0 → 64.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 (97) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  3. package/dist/editor/lib/animation/fields.js +1 -1
  4. package/dist/editor/lib/animation/loop-fields.js +1 -1
  5. package/dist/editor/lib/animation/scroll-fields.d.ts +3 -0
  6. package/dist/editor/lib/animation/scroll-fields.js +1 -0
  7. package/dist/editor/lib/document/blocks/general/IntroBleed/fields.js +1 -1
  8. package/dist/editor/lib/document/card-display-chips.d.ts +3 -2
  9. package/dist/editor/lib/document/card-display-chips.js +1 -1
  10. package/dist/editor/lib/document/card-row-fields.js +1 -1
  11. package/dist/editor/lib/document/controls.d.ts +7 -2
  12. package/dist/editor/lib/document/controls.js +1 -1
  13. package/dist/editor/lib/document/field-groups.js +1 -1
  14. package/dist/editor/lib/document/part-motion-canvas.d.ts +2 -1
  15. package/dist/editor/lib/document/part-motion-canvas.js +1 -1
  16. package/dist/format/lib/animation/loop.d.ts +1 -0
  17. package/dist/format/lib/animation/loop.js +1 -1
  18. package/dist/format/lib/animation/mark-zoom.d.ts +11 -0
  19. package/dist/format/lib/animation/mark-zoom.js +1 -0
  20. package/dist/format/lib/animation/scroll.d.ts +20 -0
  21. package/dist/format/lib/animation/scroll.js +1 -0
  22. package/dist/format/lib/content/block-sources.js +1 -1
  23. package/dist/format/lib/content/box-shape.d.ts +1 -1
  24. package/dist/format/lib/content/card-template.d.ts +8 -5
  25. package/dist/format/lib/content/card-template.js +1 -1
  26. package/dist/format/lib/content/image-aspect.d.ts +6 -0
  27. package/dist/format/lib/content/image-aspect.js +1 -1
  28. package/dist/format/lib/content/section-sticky.d.ts +29 -13
  29. package/dist/format/lib/content/section-sticky.js +1 -1
  30. package/dist/format/lib/content/slot-field-blocks.d.ts +1 -0
  31. package/dist/format/lib/content/slot-field-blocks.js +1 -0
  32. package/dist/format/lib/document/blocks/block-types.d.ts +2 -0
  33. package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
  34. package/dist/format/lib/document/blocks/general/ContactLocations/meta.js +1 -1
  35. package/dist/format/lib/document/blocks/general/FeaturedCover/meta.js +1 -1
  36. package/dist/format/lib/document/blocks/general/Hero/meta.d.ts +1 -0
  37. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  38. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  39. package/dist/format/lib/document/blocks/general/ImageBlock/meta.js +1 -1
  40. package/dist/format/lib/document/blocks/general/IntroBleed/meta.js +2 -2
  41. package/dist/format/lib/document/blocks/general/LogoBlock/meta.js +1 -1
  42. package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
  43. package/dist/format/lib/document/blocks/general/LongRead/meta.js +1 -1
  44. package/dist/format/lib/document/blocks/general/Manifesto/meta.js +1 -1
  45. package/dist/format/lib/document/blocks/general/PaymentBadges/meta.js +1 -1
  46. package/dist/format/lib/document/blocks/general/PostCard/meta.js +1 -1
  47. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  48. package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
  49. package/dist/format/lib/document/blocks/general/Split/meta.js +1 -1
  50. package/dist/format/lib/document/blocks/general/Timeline/meta.js +1 -1
  51. package/dist/format/lib/document/passes/types.d.ts +5 -1
  52. package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
  53. package/dist/format/lib/editor-words-catalogue.js +4 -4
  54. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  55. package/dist/render/components/Banner.js +1 -1
  56. package/dist/render/components/CardRowContext.d.ts +1 -0
  57. package/dist/render/components/CardRowContext.js +1 -1
  58. package/dist/render/components/ContactLocations.js +2 -2
  59. package/dist/render/components/HeroPictures.d.ts +22 -2
  60. package/dist/render/components/HeroPictures.js +1 -1
  61. package/dist/render/components/HeroSection.js +1 -1
  62. package/dist/render/components/HeroSingle.js +1 -1
  63. package/dist/render/components/HeroSlide.js +1 -1
  64. package/dist/render/components/ImageBlock.js +1 -1
  65. package/dist/render/components/InBoxContext.d.ts +2 -1
  66. package/dist/render/components/InBoxContext.js +1 -1
  67. package/dist/render/components/IntroBleed.d.ts +1 -2
  68. package/dist/render/components/IntroBleed.js +1 -1
  69. package/dist/render/components/LogoBlock.js +1 -1
  70. package/dist/render/components/Logos.js +1 -1
  71. package/dist/render/components/PictureZoom.d.ts +24 -0
  72. package/dist/render/components/PictureZoom.js +1 -0
  73. package/dist/render/components/Placeholder.js +1 -1
  74. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  75. package/dist/render/components/ScrollEffect.d.ts +14 -0
  76. package/dist/render/components/ScrollEffect.js +1 -0
  77. package/dist/render/components/ScrollProgressArm.d.ts +5 -0
  78. package/dist/render/components/ScrollProgressArm.js +1 -0
  79. package/dist/render/components/SectionAnimation.d.ts +4 -0
  80. package/dist/render/components/SectionAnimation.js +1 -1
  81. package/dist/render/components/SectionHeader.js +1 -1
  82. package/dist/render/lib/animation/part-motion.d.ts +4 -1
  83. package/dist/render/lib/animation/part-motion.js +2 -2
  84. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  85. package/dist/render/lib/document/blocks/general/IntroBleed/render.js +1 -1
  86. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  87. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  88. package/dist/render/lib/document/page-frame.d.ts +2 -1
  89. package/dist/render/lib/document/page-frame.js +1 -1
  90. package/dist/render/lib/document/part-styles.d.ts +9 -0
  91. package/dist/render/lib/document/part-styles.js +2 -2
  92. package/dist/render/lib/document/passes/index.js +1 -1
  93. package/dist/render/lib/document/passes/scroll-effect.d.ts +3 -0
  94. package/dist/render/lib/document/passes/scroll-effect.js +1 -0
  95. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  96. package/dist/render/lib/document/passes/slots-start-afresh.js +1 -1
  97. package/package.json +1 -1
@@ -1 +1 @@
1
- import{jsx as a,jsxs as n,Fragment as B}from"react/jsx-runtime";import{PagePicture as D}from"../lib/first-screen.js";import{SiteLink as S}from"../lib/site-runtime.js";import{media as R}from"../lib/media.js";import{sizedImage as j}from"../../format/lib/sized-image.js";import{DEFAULT_SECTION_NUMBER_STYLE as C,OUTLINED_NUMBER_CLASS as F,OUTLINED_NUMBER_CSS as A,OUTLINED_NUMBER_LAYOUT as X,parseSectionNumberStyle as Y}from"../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_EYEBROW_LOOK as P}from"../../format/lib/sections/section-eyebrow-look.js";import{STICKY_UNDERHEADER_CLASS as W}from"../lib/document/header-clearance.js";import{renderGold as Z,renderHeadline as K}from"./goldPhrases.js";import x from"./SectionEyebrow.js";const t={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},T=[{value:"para",label:"Paragraph size — 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${t.shelfLabel}`},{value:"sm",label:"Small — 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading1} ${t.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium — 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading2} ${t.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large — 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading3} ${t.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large — 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading4} ${t.shelfHeadingUpTo800Xl}`}],G="lg";function q(e){return(T.find(i=>i.value===e)??T.find(i=>i.value===G)).cls}const g=(e,i=!1)=>typeof e=="string"?K(e,i):e,r=(e,i=!1)=>typeof e=="string"?Z(e,i):e;function J({num:e,title:i,link:l,logo:f,description:d,accent:w,accentNum:M,numStyle:E=C,look:m="standard",titleAccent:v,accentTracking:_="-0.02em",spaceBelow:y,rowGap:z,descriptionSize:L,className:h="",eyebrowLook:c=P,titleSize:U,count:u,capped:H=!1}){const o=y??(m==="editorial"?"mb-[60px]":"");if(m==="shelf")return e||i||d||l?n("div",{className:`${W} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${H?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[n("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&a("span",{className:`font-mono ${t.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:r(e)}),i&&a("h2",{className:`${q(U)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:g(i)})]}),(d||l||u)&&n("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&a("span",{className:`max-w-[340px] truncate font-display ${t.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]}),u&&a("span",{className:`whitespace-nowrap font-mono ${t.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:u})]})]}):null;if(m==="editorial"){const s=!!i||!!v;return n("header",{className:`${o} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?a(x,{text:e,className:"pb-2"}):a("span",{className:"pb-2",children:e})),s&&n("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[i,v&&n(B,{children:[" ",a("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:_},children:v})]})]}),d&&a("p",{className:`max-w-[360px] pb-1 text-right font-display ${t.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:d})]})}if(m==="simple"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${t.headingMediumUpTo800Small}`,children:g(i)})]})}if(m==="statement"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:g(i,!0)})]})}if(m==="natural"){const s=`flex max-w-[680px] flex-col ${z??"gap-5"} ${o} ${h}`.replace(/\s+/g," ").trim();return n("div",{className:s,children:[e&&(typeof e=="string"?a(x,{text:e,look:c}):a("span",{children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800Small}`,children:g(i)}),d&&a("p",{className:`${L??`${t.bodyLarge}`} leading-[1.6] opacity-85`,children:d})]})}if(m==="essay"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${t.headingSmallUpTo800}`,children:g(i)})]})}const k=!!d||!!l,I=!!i,b=Y(E)==="outlined",N=`font-mono ${t.label} uppercase tracking-[0.3em]`;let p=null;if(e)if(b)p=a("span",{className:`${X} text-fg-dim ${F}`,children:r(e)});else if(M&&!w&&typeof e=="string"){const s=e.indexOf("/"),O=s===-1?e:e.slice(0,s),$=s===-1?"":e.slice(s);p=n("span",{className:N,children:[a("span",{className:"text-accent",children:r(O)}),$&&a("span",{className:"text-fg-dim",children:r($)})]})}else p=a("span",{className:`${N} ${w?"text-accent":"text-fg-dim"}`,children:r(e)});return n("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[b&&e&&a("style",{children:A}),n("div",{className:"flex flex-col items-start gap-3",children:[f?.src&&a(D,{...Q(R(f.src)),alt:f.alt,className:"h-8 w-auto object-contain"}),p]}),I&&a("h2",{className:w?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${t.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${t.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:g(i)}),k&&n("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[d&&a("p",{className:`max-w-[340px] font-display ${t.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]})]})]})}function Q(e){const i=j(e,{fallbackWidth:640,maxWidth:960});return i.srcSet?{src:i.src,srcSet:i.srcSet,sizes:"240px"}:{src:e}}export{G as DEFAULT_SHELF_TITLE_SIZE,T as SHELF_TITLE_SIZES,J as default};
1
+ import{jsx as a,jsxs as n,Fragment as B}from"react/jsx-runtime";import{PagePicture as D}from"../lib/first-screen.js";import{MarkZoom as R}from"./PictureZoom.js";import{SiteLink as S}from"../lib/site-runtime.js";import{media as j}from"../lib/media.js";import{sizedImage as C}from"../../format/lib/sized-image.js";import{DEFAULT_SECTION_NUMBER_STYLE as F,OUTLINED_NUMBER_CLASS as A,OUTLINED_NUMBER_CSS as X,OUTLINED_NUMBER_LAYOUT as Y,parseSectionNumberStyle as Z}from"../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_EYEBROW_LOOK as P}from"../../format/lib/sections/section-eyebrow-look.js";import{STICKY_UNDERHEADER_CLASS as W}from"../lib/document/header-clearance.js";import{renderGold as K,renderHeadline as G}from"./goldPhrases.js";import x from"./SectionEyebrow.js";const t={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},T=[{value:"para",label:"Paragraph size — 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${t.shelfLabel}`},{value:"sm",label:"Small — 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading1} ${t.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium — 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading2} ${t.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large — 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading3} ${t.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large — 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${t.shelfHeading4} ${t.shelfHeadingUpTo800Xl}`}],q="lg";function J(e){return(T.find(i=>i.value===e)??T.find(i=>i.value===q)).cls}const g=(e,i=!1)=>typeof e=="string"?G(e,i):e,r=(e,i=!1)=>typeof e=="string"?K(e,i):e;function Q({num:e,title:i,link:l,logo:f,description:d,accent:w,accentNum:M,numStyle:E=F,look:m="standard",titleAccent:v,accentTracking:_="-0.02em",spaceBelow:y,rowGap:z,descriptionSize:L,className:h="",eyebrowLook:c=P,titleSize:U,count:u,capped:H=!1}){const o=y??(m==="editorial"?"mb-[60px]":"");if(m==="shelf")return e||i||d||l?n("div",{className:`${W} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${H?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[n("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&a("span",{className:`font-mono ${t.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:r(e)}),i&&a("h2",{className:`${J(U)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:g(i)})]}),(d||l||u)&&n("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[d&&a("span",{className:`max-w-[340px] truncate font-display ${t.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]}),u&&a("span",{className:`whitespace-nowrap font-mono ${t.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:u})]})]}):null;if(m==="editorial"){const s=!!i||!!v;return n("header",{className:`${o} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?a(x,{text:e,className:"pb-2"}):a("span",{className:"pb-2",children:e})),s&&n("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[i,v&&n(B,{children:[" ",a("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:_},children:v})]})]}),d&&a("p",{className:`max-w-[360px] pb-1 text-right font-display ${t.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:d})]})}if(m==="simple"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${t.headingMediumUpTo800Small}`,children:g(i)})]})}if(m==="statement"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:g(i,!0)})]})}if(m==="natural"){const s=`flex max-w-[680px] flex-col ${z??"gap-5"} ${o} ${h}`.replace(/\s+/g," ").trim();return n("div",{className:s,children:[e&&(typeof e=="string"?a(x,{text:e,look:c}):a("span",{children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${t.headingMediumUpTo800Small}`,children:g(i)}),d&&a("p",{className:`${L??`${t.bodyLarge}`} leading-[1.6] opacity-85`,children:d})]})}if(m==="essay"){const s=`${o} ${h}`.trim();return n("div",{className:s||void 0,children:[e&&(typeof e=="string"?a(x,{text:e,look:c,className:"mb-4 block"}):a("span",{className:"mb-4 block",children:e})),i&&a("h2",{className:`font-heading2 ${t.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${t.headingSmallUpTo800}`,children:g(i)})]})}const k=!!d||!!l,I=!!i,b=Z(E)==="outlined",N=`font-mono ${t.label} uppercase tracking-[0.3em]`;let p=null;if(e)if(b)p=a("span",{className:`${Y} text-fg-dim ${A}`,children:r(e)});else if(M&&!w&&typeof e=="string"){const s=e.indexOf("/"),O=s===-1?e:e.slice(0,s),$=s===-1?"":e.slice(s);p=n("span",{className:N,children:[a("span",{className:"text-accent",children:r(O)}),$&&a("span",{className:"text-fg-dim",children:r($)})]})}else p=a("span",{className:`${N} ${w?"text-accent":"text-fg-dim"}`,children:r(e)});return n("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[b&&e&&a("style",{children:X}),n("div",{className:"flex flex-col items-start gap-3",children:[f?.src&&a(R,{children:a(D,{...V(j(f.src)),alt:f.alt,className:"h-8 w-auto object-contain"})}),p]}),I&&a("h2",{className:w?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${t.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${t.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:g(i)}),k&&n("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[d&&a("p",{className:`max-w-[340px] font-display ${t.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:r(d)}),l&&n(S,{href:l.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${t.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[r(l.text),a("span",{"aria-hidden":!0,children:"→"})]})]})]})}function V(e){const i=C(e,{fallbackWidth:640,maxWidth:960});return i.srcSet?{src:i.src,srcSet:i.srcSet,sizes:"240px"}:{src:e}}export{q as DEFAULT_SHELF_TITLE_SIZE,T as SHELF_TITLE_SIZES,Q as default};
@@ -1,6 +1,7 @@
1
- import { type EntranceValue } from "efficient-shell/format";
1
+ import { type EntranceValue, type ScrollValue } from "efficient-shell/format";
2
2
  import { entranceDrawn } from "./entrance.js";
3
3
  import { type PartHover } from "../../../format/lib/animation/hover.js";
4
+ import { scrollDrawn } from "../../../format/lib/animation/scroll.js";
4
5
  export declare const NO_MOTIONS: Readonly<Record<string, PartMotion>>;
5
6
  export declare const PART_MOTION_PROP = "_partMotion";
6
7
  type Props = Readonly<Record<string, unknown>>;
@@ -12,9 +13,11 @@ export declare function propsWithPartMotion(props: Props, part: string, key: str
12
13
  export declare function partMotionDrawn(record: PartMotion): {
13
14
  entrance: ReturnType<typeof entranceDrawn>;
14
15
  hover: PartHover;
16
+ scroll: ReturnType<typeof scrollDrawn>;
15
17
  };
16
18
  export declare function partMoves(record: PartMotion): boolean;
17
19
  export declare function drawPartEntrance(box: HTMLElement, value: EntranceValue): () => void;
20
+ export declare function drawPartScroll(box: HTMLElement, value: ScrollValue): () => void;
18
21
  export declare function firstOnPage<T extends {
19
22
  element: Element;
20
23
  }>(parts: readonly T[]): T | undefined;
@@ -1,2 +1,2 @@
1
- import{phoneKey as m}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as d,entranceAttrs as T}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as _,entranceDrawn as E}from"./entrance.js";import{CARD_HOVER_KEYS as p,HOVER_KEY as l,hoverOf as O}from"../../../format/lib/animation/hover.js";import{propsWithPartRecord as P,readPartRecord as R,readPartRecords as A}from"../../../format/lib/document/part-records.js";import{partLiftRules as S}from"../document/part-styles.js";const D={},i="_partMotion",b=[...Object.values(f).flatMap(t=>[t,m(t)]),l,p.duration,p.delay];function K(t){return A(t,i)}function h(t,e){return R(t,i,e)}const N=new Set([f.kind,l]);function H(t,e,n,o){const{[n]:s,...r}=h(t,e),c=o==null||o===""||o==="none"&&N.has(n)?r:{...r,[n]:o};return P(t,i,e,Object.keys(c).length?c:null)}function x(t){return{entrance:E(t),hover:O(t)}}function W(t){const e=x(t);return e.entrance!==null||e.hover!=="none"}function Y(t,e){const{attrs:n,style:o}=T(e),s=Object.keys(n).filter(r=>n[r]!==void 0);for(const r of s)t.setAttribute(r,String(n[r]));for(const[r,a]of Object.entries(o))t.style.setProperty(r,String(a));return()=>{for(const r of s)t.removeAttribute(r);for(const r of Object.keys(o))t.style.removeProperty(r);t.removeAttribute(d)}}const y=4;function F(t){let e;for(const n of t)(!e||n.element.compareDocumentPosition(e.element)&y)&&(e=n);return e}const M="data-sf-part-host";function V(t){const e=t?.ownerDocument.defaultView;let n=t;for(;n&&!n.hasAttribute(M)&&!n.classList.contains(_);){const o=e?.getComputedStyle(n).display??"";if(o==="contents")return null;if(o!=="inline")return n;n=n.parentElement}return null}const w="data-sf-part-lift",u="sf-part-lift";function B(t){if(t.getElementById(u))return;const e=t.createElement("style");e.id=u,e.textContent=S(`[${w}]`).join(`
2
- `),t.head.appendChild(e)}export{D as NO_MOTIONS,M as PART_HOST_ATTR,w as PART_LIFT_ATTR,b as PART_MOTION_KEYS,i as PART_MOTION_PROP,Y as drawPartEntrance,B as ensurePartLiftSheet,F as firstOnPage,V as partBoxOf,x as partMotionDrawn,W as partMoves,H as propsWithPartMotion,h as readPartMotion,K as readPartMotions};
1
+ import{phoneKey as m}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as O,entranceAttrs as d,scrollAttrs as _}from"efficient-shell/format";import{ENTRANCE_KEYS as f,ENTRANCE_WRAPPER_CLASS as E,entranceDrawn as T}from"./entrance.js";import{CARD_HOVER_KEYS as l,HOVER_KEY as p,hoverOf as P}from"../../../format/lib/animation/hover.js";import{SCROLL_KEYS as R,SCROLL_STORE_KEYS as S,scrollDrawn as A}from"../../../format/lib/animation/scroll.js";import{propsWithPartRecord as y,readPartRecord as h,readPartRecords as N}from"../../../format/lib/document/part-records.js";import{partLiftRules as L}from"../document/part-styles.js";const W={},c="_partMotion",k=[...Object.values(f).flatMap(t=>[t,m(t)]),p,l.duration,l.delay,...S];function F(t){return N(t,c)}function w(t,e){return h(t,c,e)}const j=new Set([f.kind,p,R.effect]);function V(t,e,r,o){const{[r]:s,...n}=w(t,e),a=o==null||o===""||o==="none"&&j.has(r)?n:{...n,[r]:o};return y(t,c,e,Object.keys(a).length?a:null)}function v(t){return{entrance:T(t),hover:P(t),scroll:A(t)}}function B(t){const e=v(t);return e.entrance!==null||e.hover!=="none"||e.scroll!==null}function U(t,e){const{attrs:r,style:o}=d(e),s=Object.keys(r).filter(n=>r[n]!==void 0);for(const n of s)t.setAttribute(n,String(r[n]));for(const[n,i]of Object.entries(o))t.style.setProperty(n,String(i));return()=>{for(const n of s)t.removeAttribute(n);for(const n of Object.keys(o))t.style.removeProperty(n);t.removeAttribute(O)}}function $(t,e){const{attrs:r,style:o}=_(e);for(const[s,n]of Object.entries(r))t.setAttribute(s,n);for(const[s,n]of Object.entries(o))t.style.setProperty(s,n);return()=>{for(const s of Object.keys(r))t.removeAttribute(s);for(const s of Object.keys(o))t.style.removeProperty(s)}}const x=4;function q(t){let e;for(const r of t)(!e||r.element.compareDocumentPosition(e.element)&x)&&(e=r);return e}const C="data-sf-part-host";function z(t){const e=t?.ownerDocument.defaultView;let r=t;for(;r&&!r.hasAttribute(C)&&!r.classList.contains(E);){const o=e?.getComputedStyle(r).display??"";if(o==="contents")return null;if(o!=="inline")return r;r=r.parentElement}return null}const M="data-sf-part-lift",u="sf-part-lift";function G(t){if(t.getElementById(u))return;const e=t.createElement("style");e.id=u,e.textContent=L(`[${M}]`).join(`
2
+ `),t.head.appendChild(e)}export{W as NO_MOTIONS,C as PART_HOST_ATTR,M as PART_LIFT_ATTR,k as PART_MOTION_KEYS,c as PART_MOTION_PROP,U as drawPartEntrance,$ as drawPartScroll,G as ensurePartLiftSheet,q as firstOnPage,z as partBoxOf,v as partMotionDrawn,B as partMoves,V as propsWithPartMotion,w as readPartMotion,F as readPartMotions};
@@ -1 +1 @@
1
- import{jsx as p}from"react/jsx-runtime";import{HideTaker as T}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as S,useCardRow as k}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as A}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as C,highlightOf as g,keyedRows as L,markedRows as _,rowHoldsContent as j}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as I,CARD_LIST_TYPE as R,cardListFieldsOf as b,cardListShows as E,cardRow as w,rowFieldSpec as O}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as B,sourceChoices as M,sourcedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as D}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function h(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const y=[{}];function v(t,s){const l=B(t);let n,f=[];if(l){const e=x(t,s);n=[...e.rows],e.sample&&(f=M(l))}else{const e=t[I];n=Array.isArray(e)?e:[]}const a=L(n.map(w),f),o=n.map((e,i)=>({item:e,row:a[i]})).filter(({item:e})=>s||j(e)),d=_(o.map(e=>e.row),g(t));return{items:o.map(e=>e.item),rows:d.rows,states:o.map(({item:e},i)=>{const c={...h(e),...d.states[i]};return Object.keys(c).length?c:void 0})}}function F({id:t,own:s,Template:l,editing:n,dragRef:f}){const a=k();let o,d,e,i;if(a){const r=E(s,a.ownerType);i=O(a,r)?.fields;const m=r&&a.item&&typeof a.item=="object"?a.item[r]:void 0,u=Array.isArray(m)?m:[];o=u.length?u:n?y:u,d=o.map(w),e=o.map(h)}else{const r=v(s,n);i=b(null,{type:R,props:s});const m=!r.items.length&&n;o=m?y:r.items,d=m?y.map(w):r.rows,e=m?[]:r.states}if(!o.length)return null;const c=n?[]:o.map(C);return p(S,{ownerId:t,ownerType:R,Template:l,rows:d,items:o,fields:i?.length?i:void 0,states:e.some(Boolean)?e:void 0,actions:c.some(Boolean)?c:void 0,fallback:null,children:r=>p(T,{ref:f,className:"contents",[A]:"",children:r})})}const G={...D,render:t=>p(F,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{G as CardListRender};
1
+ import{jsx as p}from"react/jsx-runtime";import{HideTaker as T}from"../../../../../components/ViewHideRoot.js";import{CardTemplateRows as S,useCardRow as k}from"../../../../../components/CardRowContext.js";import{BOX_ITEMS_ATTR as A}from"../../../../../../format/lib/content/box-layout.js";import{cardItemAction as C,highlightOf as g,keyedRows as L,markedRows as _,rowHoldsContent as j}from"../../../../../../format/lib/content/card-state.js";import{CARD_LIST_ROWS as I,CARD_LIST_TYPE as R,cardListFieldsOf as b,cardListShows as E,cardRow as w,rowFieldSpec as O}from"../../../../../../format/lib/content/card-template.js";import{declaredBlockSource as B,sourceChoices as M,sourcedRows as x}from"../../../../../../format/lib/content/block-sources.js";import{CardListMeta as D}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function h(t){const s=t&&typeof t=="object"?t.state:void 0;return s&&typeof s=="object"?s:void 0}const y=[{}];function v(t,s){const l=B(t);let n,f=[];if(l){const e=x(t,s);n=[...e.rows],e.sample&&(f=M(l))}else{const e=t[I];n=Array.isArray(e)?e:[]}const a=L(n.map(w),f),o=n.map((e,i)=>({item:e,row:a[i]})).filter(({item:e})=>s||j(e)),d=_(o.map(e=>e.row),g(t));return{items:o.map(e=>e.item),rows:d.rows,states:o.map(({item:e},i)=>{const c={...h(e),...d.states[i]};return Object.keys(c).length?c:void 0})}}function F({id:t,own:s,Template:l,editing:n,dragRef:f}){const a=k();let o,d,e,i;if(a){const r=E(s,a.ownerType,a.slot);i=O(a,r)?.fields;const m=r&&a.item&&typeof a.item=="object"?a.item[r]:void 0,u=Array.isArray(m)?m:[];o=u.length?u:n?y:u,d=o.map(w),e=o.map(h)}else{const r=v(s,n);i=b(null,{type:R,props:s});const m=!r.items.length&&n;o=m?y:r.items,d=m?y.map(w):r.rows,e=m?[]:r.states}if(!o.length)return null;const c=n?[]:o.map(C);return p(S,{ownerId:t,ownerType:R,Template:l,rows:d,items:o,fields:i?.length?i:void 0,states:e.some(Boolean)?e:void 0,actions:c.some(Boolean)?c:void 0,fallback:null,children:r=>p(T,{ref:f,className:"contents",[A]:"",children:r})})}const G={...D,render:t=>p(F,{id:String(t.id??""),own:t,Template:t.template,editing:t.editor?.isEditing===!0,dragRef:t.editor?.dragRef??void 0})};export{G as CardListRender};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{SITE_WIDTH_CAP as l,centredCap as d}from"../../../../../../format/lib/content/page-width.js";import a from"../../../../../components/IntroBleed.js";import{hidableText as n}from"efficient-easel/draw";import{parseIntroBleedLayout as r}from"../../../../../../format/lib/sections/intro-bleed-layout.js";import{phHide as i,ctaHide as b}from"../../scaffold.js";import{IntroBleedMeta as y,INTRO_PH as t}from"../../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";function c(e){if(e===!1)return d(l)}const g={...y,render:e=>o(a,{eyebrow:i(e.eyebrow,t.eyebrow,e.editor),title:i(e.title,t.title,e.editor),body:i(e.body,t.body,e.editor),imageLabel:n(e.title)||t.title,imageSrc:e.imageSrc||void 0,imageSrcMobile:e.imageSrcMobile||void 0,cta:b(e.ctaText,e.ctaHref,e.editor),sticky:e.sticky,layout:r(e.layout),copyShareDesktop:e.copyShareDesktop,copyShareMobile:e.copyShareMobile,heightDesktop:e.heightDesktop,heightMobile:e.heightMobile,overlay:e.overlay,titleSizeDesktop:e.titleSizeDesktop,bodySizeDesktop:e.bodySizeDesktop,titleSizeMobile:e.titleSizeMobile,bodySizeMobile:e.bodySizeMobile,buttonColor:e.buttonColor||void 0,buttonTextColor:e.buttonTextColor||void 0,uppercase:e.uppercase,capStyle:c(e.fullWidth)})};export{g as IntroBleedRender};
1
+ import{jsx as o}from"react/jsx-runtime";import{SITE_WIDTH_CAP as l,centredCap as d}from"../../../../../../format/lib/content/page-width.js";import a from"../../../../../components/IntroBleed.js";import{hidableText as r}from"efficient-easel/draw";import{parseIntroBleedLayout as n}from"../../../../../../format/lib/sections/intro-bleed-layout.js";import{phHide as i,ctaHide as b}from"../../scaffold.js";import{IntroBleedMeta as y,INTRO_PH as t}from"../../../../../../format/lib/document/blocks/general/IntroBleed/meta.js";function m(e){if(e===!1)return d(l)}const D={...y,render:e=>o(a,{eyebrow:i(e.eyebrow,t.eyebrow,e.editor),title:i(e.title,t.title,e.editor),body:i(e.body,t.body,e.editor),imageLabel:r(e.title)||t.title,imageSrc:e.imageSrc||void 0,imageSrcMobile:e.imageSrcMobile||void 0,cta:b(e.ctaText,e.ctaHref,e.editor),layout:n(e.layout),copyShareDesktop:e.copyShareDesktop,copyShareMobile:e.copyShareMobile,heightDesktop:e.heightDesktop,heightMobile:e.heightMobile,overlay:e.overlay,titleSizeDesktop:e.titleSizeDesktop,bodySizeDesktop:e.bodySizeDesktop,titleSizeMobile:e.titleSizeMobile,bodySizeMobile:e.bodySizeMobile,buttonColor:e.buttonColor||void 0,buttonTextColor:e.buttonTextColor||void 0,uppercase:e.uppercase,capStyle:m(e.fullWidth)})};export{D as IntroBleedRender};
@@ -1 +1 @@
1
- import{SECTION_WIDTH_KEYS as L}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as w,INNER_BOX as U,LABEL_FACE as N,TEXT as k,boxPadding as M,fillSlot as _,token as y}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as F}from"../../../animation/entrance.js";import{CARD_HOVER_KEYS as B}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as K}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as X}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as G}from"../../../content/section-padding.js";import{ButtonBlockMeta as Y}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as V}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as P,hasWords as j}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as $}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as A}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as J}from"efficient-shell/format";import{convertLength as z,isLengthUnit as q}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as Q,surfacePresetIndex as Z,surfaceTwoTone as tt}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as ot}from"../../../../../format/lib/content/view-hide-class.js";const E=t=>q(t)?t:"px",r=(t,o,e,n)=>o===e?t:z(t,o,e,n,{min:0,max:200,step:4});import{BOX as eo,DIM as no,INNER_BOX as io,TEXT as so}from"../../../../../format/lib/document/seed-parts.js";const kt={textFit:"line",textFitPhone:"wrap"},et={...k,[K]:""},{label:At,href:Ct,...nt}=Y.defaultProps,Ht=nt,Rt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Dt={...w,sectionAccent:0},Wt={sectionAccent:-1},Lt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation",...ot,...Object.values(F).flatMap(t=>[t,v(t)]),"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(L)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",vt={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},wt=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function it(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=E(t.sectionPaddingUnit),g=E(t.sectionPaddingUnitTablet),T=E(t.sectionPaddingUnitPhone),O=(h,a,x,m)=>{const d=p(h);if(d!==void 0)return d+r(m,"px",T,"mobile");const I=a===void 0?{n:x,unit:l}:{n:a,unit:g};return r(I.n,I.unit,T,"mobile")+r(m,"px",T,"mobile")},S=(h,a,x,m,d)=>a!==void 0?{[h]:a+r(d??m,"px",g,"tablet")}:d===void 0?{}:{[h]:r(x,l,g,"tablet")+r(d,"px",g,"tablet")};return{sectionPaddingTop:e+r(o.top,"px",l,"desktop"),sectionPaddingBottom:n+r(o.bottom,"px",l,"desktop"),...S("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...S("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:O(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:O(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Mt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>it(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function f(t,o){const e=G(t,V[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const yt=t=>[["padTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom]],st={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Ft=t=>o=>j(o.props[t])?[st]:[],rt=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:k,...o?{style:o}:{}}),Kt=t=>({kind:"group",name:"Chip",props:{...U,..._("main"),...M(6,14)},parts:[rt(t,{color:"background",...y("label",12),weight:600,letterSpacing:.16})]}),C=t=>t.background!=="transparent",dt=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},H={align:"right",alignPhone:"left"},ct=(t,o,e)=>{const n=i=>dt(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},Xt=(t,o,e,n={})=>ct(t,o,{...et,...H,...n,_partStyles:{text:{...N,color:"labels",...e,case:N.case,...H}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:P(o)?.selected??0,R="var(--site-surface-2)",D=(t,o)=>P(o)?.themes[u(t.sectionAccent??0,o)],at=(t,o)=>(e,n)=>{if(!o?.(e,n))return _(t);const i=D(e,n)?.[t];return i?{fillColor:i}:{}},Gt=(t,o)=>b(t,o)>=0,W=t=>t.startsWith("#")&&J(t)!==null,Yt=(t,o,e)=>{const n=t?.trim();if(n&&W(n))return{fillColor:n};const i=A(n);if(i)return _(i);const s=n===R?D(o,e):void 0;return s?{fillColor:tt(s)}:{}},Vt=t=>{const o=t?.trim();return!o||o==="transparent"||o===$||A(o)||o===R||W(o)?void 0:"it paints a colour that no Box Fill can hold"},b=(t,o)=>{const e=P(o)?.themes;return e&&C(t)?Q(e,u(t.sectionAccent,o)):-1},jt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},$t=(t,o)=>{const e=P(o)?.themes,n=e?Z(e,u(t,o)):-1;return n>=0?n:t},Jt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},zt=(t,o)=>C(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],qt=t=>X(t.site?.siteGutter),pt=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),Qt=t=>({top:0,right:0,bottom:0,left:0,...t}),Zt=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...U,...pt,...at("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],B.kind,B.duration,B.delay],parts:n});export{kt as AUTO_COLUMN,eo as BOX,Ht as BUTTON,no as DIM,vt as DROP_COMMON,wt as DROP_SIDE_PADDING,Wt as FOLLOW_THE_BOX,st as HEADING_CASE_UPPER,io as INNER_BOX,pt as NO_PAD,et as NUMBER_TEXT,H as RIGHT_WORDS,Lt as SAME_KEYS,Dt as SECTION_BOX,Rt as SH_LINK,so as TEXT,jt as bandAccent,b as bandIndex,u as bandPage,Jt as bandProps,zt as bandWrites,at as fillFrom,Vt as fillNoBoxHolds,Kt as filledChip,Ft as headingCaseOf,f as innerPad,yt as innerPadKeys,Xt as leadLine,ct as leadText,Qt as lineSides,dt as numberAndUnit,Gt as onBandPreset,Yt as ownFill,Zt as pictureCell,D as sectionPage,qt as siteGutterOf,rt as smallText,$t as surfaceAccent,it as wrapperPad,Mt as wrapperPadKeys};
1
+ import{SECTION_WIDTH_KEYS as W}from"../../../../../format/lib/content/section-width.js";import{phoneKey as v}from"efficient-easel/draw";import{BOX as w,INNER_BOX as N,LABEL_FACE as C,TEXT as U,boxPadding as M,fillSlot as _,token as y}from"../../../../../format/lib/document/seed-parts.js";import{ENTRANCE_KEYS as F}from"../../../animation/entrance.js";import{SCROLL_STORE_KEYS as K}from"../../../../../format/lib/animation/scroll.js";import{SECTION_PIN_SCREENS_KEYS as X}from"../../../../../format/lib/content/section-sticky.js";import{CARD_HOVER_KEYS as E}from"../../../../../format/lib/animation/hover.js";import{COUNT_KEY_PROP as Y}from"../../../../../format/lib/content/block-sources.js";import{normalizeSiteGutter as G}from"../../../../../format/lib/content/page-width.js";import{resolveSectionPadding as V}from"../../../content/section-padding.js";import{ButtonBlockMeta as j}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{SECTION_PAD_INNER_DEFAULTS as $}from"../../passes/section-padding.js";import{finiteNumber as p}from"../../../../../format/lib/finite-number.js";import{convertTheme as P,hasWords as J}from"../../../sections/section-to-box.js";import{THEME_SECTION_BG as z}from"../../../../../format/lib/content/section-background.js";import{fillSlotOfInk as k}from"../../../../../format/lib/document/part-inks.js";import{parseHexColor as q}from"efficient-shell/format";import{convertLength as Q,isLengthUnit as Z}from"efficient-easel/screen/lib/content/length-units";import{bandPresetIndex as tt,surfacePresetIndex as ot,surfaceTwoTone as et}from"../../../../../format/lib/theme.js";import{VIEW_HIDE_KEYS as nt}from"../../../../../format/lib/content/view-hide-class.js";const B=t=>Z(t)?t:"px",r=(t,o,e,n)=>o===e?t:Q(t,o,e,n,{min:0,max:200,step:4});import{BOX as ro,DIM as co,INNER_BOX as ao,TEXT as po}from"../../../../../format/lib/document/seed-parts.js";const Ht={textFit:"line",textFitPhone:"wrap"},it={...U,[Y]:""},{label:Dt,href:Lt,...st}=j.defaultProps,Wt=st,vt={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},wt={...w,sectionAccent:0},Mt={sectionAccent:-1},yt=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...X,"anchor","sectionAnimation",...nt,...Object.values(F).flatMap(t=>[t,v(t)]),...K,"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(W)],c="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",Ft={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:c,fullWidth:c,pageWidth:c,backgroundWidth:c,contentWidth:c,contentMax:c},Kt=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function rt(t,o){const e=p(t.sectionPaddingTop)??0,n=p(t.sectionPaddingBottom)??0,i=p(t.sectionPaddingTopTablet),s=p(t.sectionPaddingBottomTablet),l=B(t.sectionPaddingUnit),g=B(t.sectionPaddingUnitTablet),T=B(t.sectionPaddingUnitPhone),O=(h,a,x,m)=>{const d=p(h);if(d!==void 0)return d+r(m,"px",T,"mobile");const I=a===void 0?{n:x,unit:l}:{n:a,unit:g};return r(I.n,I.unit,T,"mobile")+r(m,"px",T,"mobile")},S=(h,a,x,m,d)=>a!==void 0?{[h]:a+r(d??m,"px",g,"tablet")}:d===void 0?{}:{[h]:r(x,l,g,"tablet")+r(d,"px",g,"tablet")};return{sectionPaddingTop:e+r(o.top,"px",l,"desktop"),sectionPaddingBottom:n+r(o.bottom,"px",l,"desktop"),...S("sectionPaddingTopTablet",i,e,o.top,o.topTablet),...S("sectionPaddingBottomTablet",s,n,o.bottom,o.bottomTablet),sectionPaddingTopPhone:O(t.sectionPaddingTopPhone,i,e,o.topPhone),sectionPaddingBottomPhone:O(t.sectionPaddingBottomPhone,s,n,o.bottomPhone)}}const Xt=t=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>rt(n,typeof t=="function"?t(n):t)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function f(t,o){const e=V(t,$[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const Yt=t=>[["padTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>f(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>f(e,t).sectionPaddingBottom]],dt={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Gt=t=>o=>J(o.props[t])?[dt]:[],ct=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:U,...o?{style:o}:{}}),Vt=t=>({kind:"group",name:"Chip",props:{...N,..._("main"),...M(6,14)},parts:[ct(t,{color:"background",...y("label",12),weight:600,letterSpacing:.16})]}),A=t=>t.background!=="transparent",at=(t,o)=>{const[e,n]=[t,o].map(i=>typeof i=="string"?i.trim():"");return e?n?`[${e} ]{color=text}${n}`:`[${e}]{color=text}`:n},R={align:"right",alignPhone:"left"},pt=(t,o,e)=>{const n=i=>at(i[t],i[o]);return{kind:"block",type:"Text",when:(i,s)=>s!==void 0&&n(s)!=="",box:[[t,"text",(i,s)=>n(s)],[o,"text",(i,s)=>n(s)]],props:e}},jt=(t,o,e,n={})=>pt(t,o,{...it,...R,...n,_partStyles:{text:{...C,color:"labels",...e,case:C.case,...R}}}),u=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:P(o)?.selected??0,H="var(--site-surface-2)",D=(t,o)=>P(o)?.themes[u(t.sectionAccent??0,o)],lt=(t,o)=>(e,n)=>{if(!o?.(e,n))return _(t);const i=D(e,n)?.[t];return i?{fillColor:i}:{}},$t=(t,o)=>b(t,o)>=0,L=t=>t.startsWith("#")&&q(t)!==null,Jt=(t,o,e)=>{const n=t?.trim();if(n&&L(n))return{fillColor:n};const i=k(n);if(i)return _(i);const s=n===H?D(o,e):void 0;return s?{fillColor:et(s)}:{}},zt=t=>{const o=t?.trim();return!o||o==="transparent"||o===z||k(o)||o===H||L(o)?void 0:"it paints a colour that no Box Fill can hold"},b=(t,o)=>{const e=P(o)?.themes;return e&&A(t)?tt(e,u(t.sectionAccent,o)):-1},qt=(t,o,e)=>{const n=b(o,e);return n>=0?n:t},Qt=(t,o)=>{const e=P(o)?.themes,n=e?ot(e,u(t,o)):-1;return n>=0?n:t},Zt=(t,o)=>{const e=b(t,o);return e>=0?{sectionAccent:e}:{}},to=(t,o)=>A(t.props)&&b(t.props,o)<0?[{kind:"band-preset",page:u(t.props.sectionAccent,o)}]:[],oo=t=>G(t.site?.siteGutter),gt=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(t=>[`sectionPadding${t}`,0])),eo=t=>({top:0,right:0,bottom:0,left:0,...t}),no=(t,o,e,n=[])=>({kind:"group",name:t,keepEmpty:!0,props:(i,s)=>({...N,...gt,...lt("surface")(i,s),...typeof e=="function"?e(i,s):e}),box:[[o,"bgImage"],E.kind,E.duration,E.delay],parts:n});export{Ht as AUTO_COLUMN,ro as BOX,Wt as BUTTON,co as DIM,Ft as DROP_COMMON,Kt as DROP_SIDE_PADDING,Mt as FOLLOW_THE_BOX,dt as HEADING_CASE_UPPER,ao as INNER_BOX,gt as NO_PAD,it as NUMBER_TEXT,R as RIGHT_WORDS,yt as SAME_KEYS,wt as SECTION_BOX,vt as SH_LINK,po as TEXT,qt as bandAccent,b as bandIndex,u as bandPage,Zt as bandProps,to as bandWrites,lt as fillFrom,zt as fillNoBoxHolds,Vt as filledChip,Gt as headingCaseOf,f as innerPad,Yt as innerPadKeys,jt as leadLine,pt as leadText,eo as lineSides,at as numberAndUnit,$t as onBandPreset,Jt as ownFill,no as pictureCell,D as sectionPage,oo as siteGutterOf,ct as smallText,Qt as surfaceAccent,rt as wrapperPad,Xt as wrapperPadKeys};
@@ -1 +1 @@
1
- import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as R}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as U,token as n}from"./section-head-looks.js";import{labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as g,DIM as f,DROP_COMMON as c,DROP_SIDE_PADDING as x,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as L,SAME_KEYS as u,SECTION_BOX as y,TEXT as P,fillFrom as S,lineSides as r,pictureCell as w,siteGutterOf as m,smallText as s,wrapperPad as T,wrapperPadKeys as B}from"./section-to-box-row-parts.js";const H=(e,t)=>{const o=a(e),k=a(t);return{...o===void 0?{}:{size:o},...k===void 0?{}:{sizePhone:k}}},C=e=>R(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,W={textStyle:"heading-1",sizeToken:{...U("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},V=[s("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...W,case:e?"upper":"none"},styleFrom:t=>H(t.titleSizeDesktop,t.titleSizeMobile),when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...f,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>H(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],A=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,X=()=>({name:"Scroll-Over Text",skip:e=>C(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...p,placement:"left",darken:M(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...u.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>M(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:V,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin never held on a live page (its theme wrapper is as tall as the section; decision 3, 2026-10-14), so the Box does not pin",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:A("Button color"),buttonTextColor:A("Button text color"),...c}}),v={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},j={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...f,maxWidth:520},style:{...j,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},G=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},I={boxShapePhone:"landscape"},_="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",q=(e,t)=>({[e]:t,[`${e}Phone`]:t}),Y={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},D=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),K=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,100)}),box:[...u,...B(l)],parts:[{kind:"group",name:"Words",props:(e,t)=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:r({right:1}),sectionBorderPhone:r({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:m(t)}),parts:[s("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...v,case:"none"},mark:"accentItalic"},O(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(D(e).length,1),3),...q("sectionBorder",r({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:D,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:L,style:Y},s("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},w("Picture","imageSrc",I)],drop:{...c,grayscale:_,...x}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},$=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Z=e=>Math.min(Math.max(a(e.overlay)??60,0),100),N=e=>typeof e=="string"&&e.trim()!=="",J={...g,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},E=e=>({...w("Picture","imageSrc",(t,o)=>({...N(t.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...I,sectionBorder:r(e?{left:1}:{right:1}),...z(e?"left":"right",m(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:J,style:{...F(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),z=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},Q={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:$(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...G(e,72),gap:24,gapPhone:24,...N(e.textBgSrc)?{darken:Z(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",m(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...s("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:v,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...O(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...g,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},ee=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...S("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,72)}),box:[...u,...B(l)],parts:[E(!1),Q,E(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:_,...c,...x}}),re={IntroBleed:X(),Manifesto:K(),Split:ee()};export{re as EDITORIAL_SECTION_TO_BOX};
1
+ import{finiteNumber as a}from"../../../../../format/lib/finite-number.js";import{parseIntroBleedLayout as R}from"../../../../../format/lib/sections/intro-bleed-layout.js";import{fluidToken as U,token as n}from"./section-head-looks.js";import{labelStyle as F}from"../../../../../format/lib/document/seed-parts.js";import{BUTTON as g,DIM as f,DROP_COMMON as c,DROP_SIDE_PADDING as S,INNER_BOX as i,NO_PAD as p,NUMBER_TEXT as L,SAME_KEYS as u,SECTION_BOX as y,TEXT as P,fillFrom as x,lineSides as s,pictureCell as w,siteGutterOf as m,smallText as r,wrapperPad as T,wrapperPadKeys as B}from"./section-to-box-row-parts.js";const H=(e,t)=>{const o=a(e),k=a(t);return{...o===void 0?{}:{size:o},...k===void 0?{}:{sizePhone:k}}},C=e=>R(e.layout)==="stacked",M=e=>Math.min(Math.max(a(e.overlay)??60,0),100),d=e=>a(e)??100,W={textStyle:"heading-1",sizeToken:{...U("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},V=[r("eyebrow",n("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:P,style:{...W,case:e?"upper":"none"},styleFrom:t=>H(t.titleSizeDesktop,t.titleSizeMobile),when:t=>t.uppercase===!0===e})),{kind:"text",key:"body",props:{...f,maxWidth:560},style:{textStyle:"body-1",...n("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>H(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{...i,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:g}]}],A=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,X=()=>({name:"Scroll-Over Text",skip:e=>C(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...p,placement:"left",darken:M(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:d(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:d(e.heightMobile)}),box:[...u.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,t)=>M(t)],["heightDesktop","sectionHeightValue",e=>d(e)],["heightMobile","sectionHeightValuePhone",e=>d(e)]],parts:V,drop:{uppercase:"not a value of its own: it picks the heading part — Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:A("Button color"),buttonTextColor:A("Button text color"),...c}}),v={textStyle:"heading-2",...n("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},j={textStyle:"body-1",...n("body",16),lineHeight:1.7},O=e=>({kind:"text",key:"body",props:{...f,maxWidth:520},style:{...j,paragraphSpacing:e}}),l={top:0,bottom:0,topPhone:0,bottomPhone:0},b=(e,t)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:t,sectionHeightModePhone:"auto"},G=(e,t)=>{const o=b(e,t);return Object.keys(o).length?o:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},I={boxShapePhone:"landscape"},_="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",Y=(e,t)=>({[e]:t,[`${e}Phone`]:t}),q={textStyle:"heading-2",...n("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},E=e=>(Array.isArray(e.stats)?e.stats:[]).filter(t=>t&&(String(t.value??"").trim()!==""||String(t.label??"").trim()!=="")),K=()=>({name:"Brand Text",boxProps:(e,t)=>({...y,...x("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,100)}),box:[...u,...B(l)],parts:[{kind:"group",name:"Words",props:(e,t)=>({...i,justify:"center",gap:28,gapPhone:28,sectionBorder:s({right:1}),sectionBorderPhone:s({}),...p,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:m(t)}),parts:[r("eyebrow",n("label",14)),{kind:"text",key:"heading",role:"heading",props:P,style:{...v,case:"none"},mark:"accentItalic"},O(28),{kind:"group",name:"Stats",props:{...i,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...i,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(E(e).length,1),3),...Y("sectionBorder",s({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:E,props:{...i,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:L,style:q},r("label",{...n("label",13),color:"labels",letterSpacing:.2})]}]}]}]},w("Picture","imageSrc",I)],drop:{...c,grayscale:_,...S}}),h=e=>{const t=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},o=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...t,...o}},$=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Z=e=>Math.min(Math.max(a(e.overlay)??60,0),100),D=e=>typeof e=="string"&&e.trim()!=="",J={...g,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},N=e=>({...w("Picture","imageSrc",(t,o)=>({...D(t.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...I,sectionBorder:s(e?{left:1}:{right:1}),...z(e?"left":"right",m(o))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:J,style:{...F(13,12),letterSpacing:.18}}]),when:t=>t.reverse===!0===e}),z=(e,t)=>{const o=Math.max(60-t,0);return{sectionPaddingLeft:e==="left"?60:o,sectionPaddingRight:e==="right"?60:o}},Q={kind:"group",name:"Words",props:(e,t)=>{const o=e.reverse===!0;return{...i,justify:"center",align:$(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...G(e,72),gap:24,gapPhone:24,...D(e.textBgSrc)?{darken:Z(e),darkenStyle:"even"}:{},...p,sectionPaddingTop:100,sectionPaddingBottom:100,...z(o?"right":"left",m(t)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...r("eyebrow",n("label",14)),styleFrom:h},{kind:"text",key:"title",role:"heading",props:P,style:v,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...h(e)})},{...O(24),styleFrom:h},{kind:"group",name:"Button",props:{...i,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{const t=h(e);return{...g,...t.align?{align:t.align}:{},...t.alignPhone?{alignPhone:t.alignPhone}:{}}}}]}]},ee=()=>({name:"Image & Text Split",boxProps:(e,t)=>({...y,...x("background")(e,t),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...T(e,l),...b(e,72)}),box:[...u,...B(l)],parts:[N(!1),Q,N(!0)],drop:{reverse:"not a value of its own: it picks the order — the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case — Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:_,...c,...S}}),se={IntroBleed:X(),Manifesto:K(),Split:ee()};export{se as EDITORIAL_SECTION_TO_BOX};
@@ -5,9 +5,10 @@ export declare function pageWidthTokens(): {
5
5
  export declare function PageWidthWrapper({ children }: {
6
6
  children?: ReactNode;
7
7
  }): import("react").JSX.Element;
8
- export declare function PublishedPageFrame({ pageBackground, inheritBackground, children, }: {
8
+ export declare function PublishedPageFrame({ pageBackground, inheritBackground, chrome, children, }: {
9
9
  pageBackground?: unknown;
10
10
  inheritBackground?: boolean;
11
+ chrome?: boolean;
11
12
  children?: ReactNode;
12
13
  }): import("react").JSX.Element;
13
14
  export declare function drawPublishedRoot(rootProps: {
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{pageBackgroundVars as o}from"../../../format/lib/content/page-background.js";import{SITE_WIDTH_CAP as i}from"../../../format/lib/content/page-width.js";function a(){return{style:{"--sf-page-width":i}}}function d({children:r}){return e("div",{style:a().style,children:r})}function c({pageBackground:r,inheritBackground:t=!1,children:n}){return e("div",{style:{...t?{}:o(r),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:e(d,{children:n})})}function u(r){const{children:t,pageBackground:n}=r;return e(c,{pageBackground:n,children:t})}export{d as PageWidthWrapper,c as PublishedPageFrame,u as drawPublishedRoot,a as pageWidthTokens};
1
+ import{jsx as e}from"react/jsx-runtime";import{ScrollProgressArm as i}from"../../components/ScrollProgressArm.js";import{pageBackgroundVars as a}from"../../../format/lib/content/page-background.js";import{SITE_WIDTH_CAP as d}from"../../../format/lib/content/page-width.js";function l(){return{style:{"--sf-page-width":d}}}function c({children:r}){return e("div",{style:l().style,children:r})}function s({pageBackground:r,inheritBackground:o=!1,chrome:t=!1,children:n}){return e("div",{style:{...o?{}:a(r),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:e(i,{armed:!t,children:e(c,{children:n})})})}function h(r){const{children:o,pageBackground:t}=r;return e(s,{pageBackground:t,children:o})}export{c as PageWidthWrapper,s as PublishedPageFrame,h as drawPublishedRoot,l as pageWidthTokens};
@@ -191,6 +191,11 @@ export type PublishedPartMotion = {
191
191
  desktop: unknown;
192
192
  phone: unknown;
193
193
  } | null;
194
+ scroll?: {
195
+ desktop: unknown;
196
+ tablet: unknown;
197
+ phone: unknown;
198
+ } | null;
194
199
  };
195
200
  export type PublishedPartSheet = {
196
201
  rules: ReadonlyMap<string, PublishedPartRule>;
@@ -200,6 +205,10 @@ export type PublishedPartSheet = {
200
205
  export declare function publishedPartStyles(needles: readonly PartNeedle[], styles: PartStyles, scope: string, styleKeyOf?: (partKey: string) => string, drawsStyle?: (partKey: string) => boolean, motionOf?: (styleKey: string) => PublishedPartMotion | null, motionKeys?: readonly string[]): PublishedPartSheet | null;
201
206
  export declare function isPartKindKey(key: string): boolean;
202
207
  export declare function partRuleForKind(sheet: PublishedPartSheet | null, kind: string): PublishedPartRule | null;
208
+ export declare function viewMediaOf(inBox: boolean): {
209
+ tablet: string;
210
+ phone: string;
211
+ };
203
212
  export declare function partStyleCss(sheet: PublishedPartSheet, { inBox }?: {
204
213
  inBox?: boolean;
205
214
  }): string;
@@ -1,2 +1,2 @@
1
- import{textStyleCaseCss as nt,textStyleCaseOfCss as ot}from"efficient-easel/draw";import{FONT_OPTIONS as it,fontOption as rt,fontRoleOf as _,SIZE_STEP_OF_ROLE as w}from"../../../format/lib/fonts.js";import{encodePartKey as v}from"../../../format/lib/document/part-key.js";import{decodePartId as C,normalizePartText as O}from"./text-parts.js";import{partInkCss as at}from"../../../format/lib/document/part-inks.js";import{regionStyle as st}from"../../../format/lib/sections/text-regions.js";import{EDGE_PHONE_MEDIA as ft,EDGE_TABLET_MEDIA as lt,PHONE_MEDIA as ct,TABLET_MEDIA as ut,viewOverrides as pt}from"../content/view-values.js";import{plainRecord as N,propsWithPartRecord as dt,readPartRecord as xt,readPartRecords as gt}from"../../../format/lib/document/part-records.js";const k="_partStyles",ht="data-sf-part-styled",W="data-sf-text-style",St=/^(heading|body)-[1-7]$/;function S(t){return typeof t=="string"&&St.test(t)}const G={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function mt(t){if(!t)return null;for(const[e,n]of Object.entries(G))if(n===t)return e;return null}function _e(t){if(S(t.textStyle))return t.textStyle;const e=_(t.role);return e?G[e]:void 0}const bt=[400,500,600,700],A=["left","center","right","justify"],I=5,y=1e3,Tt=-5,Pt=10,At=0,Rt=64,_t=2,B={size:{min:I,max:y,step:1},sizeTablet:{min:I,max:y,step:1},sizePhone:{min:I,max:y,step:1},padding:{min:At,max:Rt,step:_t}},zt=.05,Et=.01,$t=["line","letter"],wt=.5,Ot=2.5,Nt=-1,kt=1,It=0,yt=400,Ft=[...new Set(Object.values(w))];function ze(t){return[`${t} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${t}:hover, ${t}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function Ee(t){return gt(t,k)}function K(t,e){return xt(t,k,e)}function $e(t,e){return Object.values(K(t,e)).filter(n=>n!==void 0).length}function X(t,e,n){return dt(t,k,e,Mt(n).length?n:null)}function Mt(t){return Object.entries(t).filter(([,e])=>e!==void 0)}function Lt(t){return $t.includes(t)}const R=(t,e,n)=>Math.min(n,Math.max(e,t));function Dt(t,e){if(Lt(t)){const n=Math.round(Number(e));return!Number.isFinite(n)||n===0?null:R(n,Tt,Pt)}if(t==="lineHeight"){const n=Number(e);return Number.isFinite(n)?P(R(n,wt,Ot),3):null}if(t==="letterSpacing"){const n=Number(e);return Number.isFinite(n)?P(R(n,Nt,kt),4):null}if(t==="paragraphSpacing"){const n=Math.round(Number(e));return!Number.isFinite(n)||n<=0?null:R(n,It,yt)}if(Object.hasOwn(B,t)){const{min:n,max:o}=B[t],i=Math.round(Number(e));return Number.isFinite(i)?R(i,n,o):null}return t==="italic"?typeof e=="boolean"?e:null:t==="role"||t==="fontRole"?_(e)?e:null:t==="sizeToken"?F(e)?e:null:t==="textStyle"?S(e)?e:null:t==="alignPhone"||t==="alignTablet"?A.includes(e)?e:null:e}const Ht=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function T(t){let e=null;const n=o=>{e??={...t},delete e[o]};for(const o of Ht){const i=t[o];i!==void 0&&!(typeof i=="number"&&Number.isFinite(i))&&n(o)}return t.align!==void 0&&!A.includes(t.align)&&n("align"),t.alignTablet!==void 0&&!A.includes(t.alignTablet)&&n("alignTablet"),t.alignPhone!==void 0&&!A.includes(t.alignPhone)&&n("alignPhone"),t.textStyle!==void 0&&!S(t.textStyle)&&n("textStyle"),t.sizeToken!==void 0&&!F(t.sizeToken)&&n("sizeToken"),t.fontRole!==void 0&&!_(t.fontRole)&&n("fontRole"),e??t}function F(t){if(!t||typeof t!="object")return!1;const{step:e,px:n,stepPhone:o,pxPhone:i,fluid:r}=t,l=c=>typeof c=="number"&&Number.isFinite(c)&&c>0,a=c=>typeof c=="string"&&Ft.includes(c);return a(e)&&l(n)&&(o===void 0||a(o))&&(i===void 0||l(i))&&(r===void 0||jt(r,n))}function jt(t,e){if(!t||typeof t!="object"||Array.isArray(t))return!1;const{minPx:n,vw:o,...i}=t;return Object.keys(i).length===0&&typeof n=="number"&&Number.isFinite(n)&&n>0&&n<e&&typeof o=="number"&&Number.isFinite(o)&&o>0&&o<=100}function M(t){return t?.pxPhone&&F(t)?{step:t.stepPhone??t.step,px:t.pxPhone}:null}function U({step:t,px:e,fluid:n}){const o=n?`clamp(${n.minPx}px, ${n.vw}vw, ${e}px)`:`${e}px`,i=`var(--size-${t}, ${o})`;return t.startsWith("heading")?`min(${i}, var(--sf-heading-max,9999px))`:i}const vt=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function Ct(t){const e=[];for(const[n,o]of vt)n===t?e.push(o):o===t&&e.push(n);return e}function we(t,e,n,o){const i={...K(t,e)},r=o==null?null:Dt(n,o);if(r===null)delete i[n];else{i[n]=r;for(const l of Ct(n))delete i[l]}return X(t,e,i)}function Oe(t,e){return X(t,e,{})}function Wt(t){return ot(t)??"none"}function Gt(t){return nt(t)??""}const V={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function Bt(t,e){const n=_(t.role);return n||(e?.blockDrawsStyle?null:mt(t.textStyle))}function Ne(t,e){return t==="Text"&&e==="text"}const Kt={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function Xt(t){const e=w[t],n=Kt[e];return n?`var(--size-${e}, ${n})`:`var(--size-${e})`}function Ut(t){const e={};return typeof t.lineHeight=="number"?e.lineHeight=t.lineHeight:t.line&&(e.lineHeight=P(Vt+t.line*zt,3)),typeof t.letterSpacing=="number"?e.letterSpacingEm=t.letterSpacing:t.letter&&(e.letterSpacingEm=P(t.letter*Et,4)),e}const Vt=1,m="--sf-part-para";function Yt(t){t=T(t);const e={};if(typeof t.sizePhone=="number"&&t.sizePhone>0)e.fontSize=`${t.sizePhone}px`;else{const o=M(t.sizeToken);if(o)e.fontSize=U(o);else{const i=E(t);i!==void 0&&(e.fontSize=`${i}px`)}}const n=t.alignPhone??z(t);return n&&(e.textAlign=n),e}function z(t){return t.alignTablet&&t.alignTablet!==t.align?t.alignTablet:void 0}function E(t){const e=pt("textSize",t.size,t.sizeTablet,void 0).tablet;return e&&e>0?e:void 0}function Zt(t){const e=T(t),n={},o=E(e);o!==void 0&&(n.fontSize=`${o}px`);const i=z(e);return i&&(n.textAlign=i),n}function ke(t,e){if(e==="desktop")return;const n=T(t);return(e==="mobile"?z(n):void 0)??n.align}function qt(t,e){if(e==="desktop")return t;const n=T(t),o=E(n),i=z(n);if(e==="tablet"){let a=t;return o!==void 0&&(a={...a,size:o}),i&&(a={...a,align:i}),a}let r=t;if(typeof n.sizePhone=="number"&&n.sizePhone>0)r={...r,size:n.sizePhone};else{const a=M(n.sizeToken);a?r={...r,size:void 0,sizeToken:a}:o!==void 0&&(r={...r,size:o})}const l=n.alignPhone??i;return l&&(r={...r,align:l}),r}function L(t,e,n){return D(qt(t,e),$,n)}function Jt(t){return t==="mobile"?"sizePhone":t==="tablet"?"sizeTablet":"size"}function Ie(t,e){if(e==="desktop")return null;const n=T(t);if(e==="mobile"){if(M(n.sizeToken))return null;const o=E(n);if(o!==void 0)return{px:o,view:"tablet"}}return typeof n.size=="number"&&n.size>0?{px:n.size,view:"desktop"}:null}function Y(t,e){const n=Jt(e);if(!Object.hasOwn(t,n))return t;const o={...t};return delete o[n],o}function ye(t,e,n){const o=L(Y(t,e),e,n);return{fontFamily:o.fontFamily,fontSize:o.fontSize}}function D(t,e,n){t=T(t);const o=Bt(t,n),i=Ut(t),r=t.size?`${t.size}px`:t.sizeToken?U(t.sizeToken):o?Xt(o):"";return{fontFamily:t.font?ne(t.font):t.fontRole?`var(${V[t.fontRole]})`:o?`var(${V[o]})`:"",fontWeight:t.weight?String(t.weight):"",fontSize:r,minWidth:r?"0":"",overflowWrap:r?"break-word":"",lineHeight:i.lineHeight!==void 0?String(i.lineHeight):"",letterSpacing:i.letterSpacingEm!==void 0?`${i.letterSpacingEm}em`:"",[m]:t.paragraphSpacing?`${t.paragraphSpacing}px`:"",textTransform:Gt(t.case),textAlign:t.align??"",paddingTop:Z(t.padding),paddingBottom:Z(t.padding),color:Qt(t.color),fontStyle:t.italic===!0?"italic":t.italic===!1?"normal":""}}const Qt=t=>at(t),Z=t=>t===void 0?"":`${t}px`,P=(t,e)=>Number(t.toFixed(e));function Fe(t,e){const n=Number.parseFloat(t.fontSize)||16,o=Number.parseFloat(t.lineHeight),i=Number.parseFloat(t.letterSpacing),r=Number.parseFloat(t.paddingTop);return{fontKey:e,sizePx:n,weight:te(Number.parseInt(t.fontWeight,10)),lineRatio:Number.isFinite(o)?P(o/n,3):1.2,letterEm:Number.isFinite(i)?P(i/n,4):0,align:ee(t.textAlign),case:Wt(t.textTransform),paddingPx:Number.isFinite(r)?Math.round(r):0}}function te(t){return Number.isFinite(t)?bt.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e):400}function ee(t){for(const e of A)if(e===t)return e;return t==="end"?"right":"left"}function Me(t,e){const n=q(t);if(!n)return"";for(const o of it)if(q(e(o.cssVar))===n)return o.key;return""}const q=t=>(t.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function ne(t){const e=rt(t);return e?`var(${e.cssVar})`:""}function Le(t,e,n,o){return!e||C(e)?.nodeId!==t?null:n.find(r=>o(r.getAttribute("class")))??n[0]??null}function oe(t,e){return Object.hasOwn(t,e)?N(t[e])??{}:{}}function De(t,e,n=()=>$,o=a=>a,i=ae,r="desktop",l=()=>!1){let a=0;for(const{element:c,partId:h}of t){const x=C(h)?.propKey;if(!x)continue;const s=oe(e,o(x)),f=L(s,r,{blockDrawsStyle:l(x)});S(s.textStyle)?c.setAttribute?.(W,s.textStyle):c.removeAttribute?.(W);const d=j.some(g=>c.style[g]);let p=!1;for(const[g,u]of Object.entries(f))le(c,g,u),u&&(p=!0);if(d||j.some(g=>f[g]))for(const g of ie(c,i))for(const u of j)g.style[u]=f[u]??"";p&&(a+=1)}return a}function ie(t,e){const n=O(t.textContent??""),o=[];let i=t;for(let r=0;r<re&&e(i);r+=1){const l=i.parentElement;if(!l||O(l.textContent??"")!==n)break;o.push(l),i=l}return o}const re=8;function ae(t){const e=t;return typeof window>"u"||!e?.ownerDocument?!1:window.getComputedStyle(e).display==="inline"}const $={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function se(t){if(!t||typeof t!="object")return null;const e={};return S(t.textStyle)&&(e.textStyle=t.textStyle),typeof t.size=="number"&&t.size>0&&(e.size=t.size),typeof t.sizeTablet=="number"&&t.sizeTablet>0&&(e.sizeTablet=t.sizeTablet),typeof t.sizePhone=="number"&&t.sizePhone>0&&(e.sizePhone=t.sizePhone),Object.keys(e).length?e:null}function fe(t,e){const n=se(t);if(!n)return{};const o=L(n,e);return{...o.fontFamily?{fontFamily:o.fontFamily}:{},...o.fontSize?{fontSize:o.fontSize}:{}}}function He(t){return S(t?.textStyle)||!!t?.role||typeof t?.size=="number"&&t.size>0}function je(t,e,n){if(!t||typeof t!="object")return{};const o=st(t.role,e,w)??{},i=e.sized?fe(Y(t,n),n):{};return{...o,...i}}function ve(t,e,n){n.fontFamily&&t.fontFamily===n.fontFamily&&(t.fontFamily=e.fontFamily),n.fontSize&&t.fontSize===n.fontSize&&(t.fontSize=e.fontSize)}function le(t,e,n){if(!e.startsWith("--")){t.style[e]=n;return}const o=t.style;typeof o.setProperty=="function"?n?o.setProperty(e,n):o.removeProperty?.(e):o[e]=n;const i=t;e===m&&(n?i.setAttribute?.(J,""):i.removeAttribute?.(J))}const J="data-sf-part-para",ce=Object.keys(D({},$)),H=new Set(["color","overflowWrap",m,"fontStyle"]),j=ce.filter(t=>!H.has(t));function Ce(t,e,n,o=a=>a,i=()=>!1,r=()=>null,l=[]){const a=new Map;for(const s of t){const f=v(s.key,s.row);for(const d of s.texts){const p=a.get(d);p?(p.keys.add(s.key),p.partKeys.add(f)):a.set(d,{keys:new Set([s.key]),partKeys:new Set([f])})}}const c=new Map;for(const s of new Set([...Object.keys(e),...l])){if(!ue(s))continue;const f=Q(n,s,N(e[s])??{},!1,r(s));f&&c.set(s,f)}const h=s=>{const f=o(s),d=r(f);if(!Object.hasOwn(e,f)&&!d)return null;const p=N(e[f])??{};return Q(n,s,p,i(s),d)},x=new Map;for(const[s,{keys:f,partKeys:d}]of a){const p=d.size===1?[...d][0]:f.size===1?[...f][0]:null;if(!p)continue;const b=h(p);b&&x.set(s,b)}for(const s of t){if(!s.keyed)continue;const f=h(v(s.key,s.row));f&&c.set(s.key,f)}return x.size||c.size?{rules:x,kindRules:c,drawn:new Set(a.keys())}:null}function Q(t,e,n,o,i){const r=D(n,$,{blockDrawsStyle:o}),l=Zt(n),a=Yt(n),c=S(n.textStyle)?n.textStyle:void 0;return!Object.values(r).some(Boolean)&&!Object.keys(l).length&&!Object.keys(a).length&&!c&&!i?null:{stamp:pe(t,e),declarations:r,...Object.keys(l).length?{tablet:l}:{},...Object.keys(a).length?{phone:a}:{},...c?{textStyle:c}:{},...i?{motion:i}:{}}}function ue(t){return t.startsWith("@")}function We(t,e){return t?.kindRules.get(e)??null}function pe(t,e){const n=o=>o.replace(/[^A-Za-z0-9_-]+/g,"-");return`${n(t)}~${n(e)}`}function Ge(t,{inBox:e=!1}={}){const n=e?lt:ut,o=e?ft:ct,i=[],r=new Set,l=a=>{const{stamp:c,declarations:h}=a;if(r.has(c))return;r.add(c);const x=Object.entries(h).filter(([,u])=>u!==""),s=u=>u.map(([tt,et])=>`${xe(tt)}: ${et}`).join("; "),f=`[${ht}="${c}"]`,d=x.filter(([u])=>!H.has(u)),p=x.filter(([u])=>H.has(u));d.length&&i.push(`${f}, *:has(> ${f}) { ${s(d)} }`),p.length&&i.push(`${f} { ${s(p)} }`),h[m]&&(i.push(`*:has(> ${f}) { ${m}: ${h[m]} }`),i.push(...de(f,`*:has(> ${f})`)));const b=Object.entries(a.tablet??{}).filter(([,u])=>u!=="");b.length&&i.push(`@media ${n} { ${f}, *:has(> ${f}) { ${s(b)} } }`);const g=Object.entries(a.phone??{}).filter(([,u])=>u!=="");g.length&&i.push(`@media ${o} { ${f}, *:has(> ${f}) { ${s(g)} } }`)};for(const a of t.rules.values())l(a);for(const a of t.kindRules.values())l(a);return i.join(`
2
- `)}function de(t,e){const n=`var(${m})`,o=":is([data-sf-bullet], [data-sf-number])";return[`${t} br:not(br + br) { display: block; content: ""; margin-top: ${n} }`,`${t} ${o}:not(:first-child) { margin-top: ${n} }`,`${t} ${o}:not(:last-child) { margin-bottom: ${n} }`,`:is(${e}) + :is(${e}) { margin-top: ${n} }`]}const xe=t=>t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);function Be(t,e){if(!t)return null;const n=O(e),o=t.rules.get(n);if(o)return o;if(n.length<ge||t.drawn.has(n))return null;let i=null;for(const[r,l]of t.rules)if(r.includes(n)){if(i&&i.stamp!==l.stamp)return null;i=l}return i}const ge=8;export{A as PART_ALIGNS,kt as PART_LETTER_EM_MAX,Nt as PART_LETTER_EM_MIN,Et as PART_LETTER_STEP,Ot as PART_LINE_HEIGHT_MAX,wt as PART_LINE_HEIGHT_MIN,zt as PART_LINE_STEP,B as PART_MEASURED_TRACKS,Pt as PART_NUDGE_MAX,Tt as PART_NUDGE_MIN,Rt as PART_PADDING_MAX,At as PART_PADDING_MIN,_t as PART_PADDING_STEP,J as PART_PARAGRAPH_ATTR,yt as PART_PARAGRAPH_MAX,It as PART_PARAGRAPH_MIN,m as PART_PARAGRAPH_VAR,$t as PART_RELATIVE_PROPS,y as PART_SIZE_MAX,I as PART_SIZE_MIN,Ft as PART_SIZE_STEPS,ht as PART_STYLED_ATTR,k as PART_STYLES_PROP,ce as PART_STYLE_PROPERTIES,bt as PART_WEIGHTS,j as SHARED_PART_PROPERTIES,G as STYLE_ID_OF_ROLE,W as TEXT_STYLE_ATTR,De as applyPartStyles,Ne as blockDrawsTextStyle,_e as followedStyleOf,ue as isPartKindKey,S as isTextStyleId,de as paragraphRules,ke as partAlignFollowed,L as partCanvasDeclarations,Wt as partCaseOfTransform,Gt as partCaseTransform,Me as partFontKeyOf,ze as partLiftRules,Yt as partPhoneDeclarations,We as partRuleForKind,Be as partRuleForText,ye as partShownDeclarations,Jt as partSizeBoxOf,Ie as partSizeFollowed,Ut as partSpacingOf,Fe as partStyleBase,$e as partStyleCount,Ge as partStyleCss,D as partStyleDeclarations,qt as partStyleForScreen,Le as partStyleSource,Y as partStyleWithoutSizeBox,Zt as partTabletDeclarations,we as propsWithPartStyleValue,Oe as propsWithoutPartStyle,Ce as publishedPartStyles,K as readPartStyle,Ee as readPartStyles,fe as regionCanvasDeclarations,ve as regionCanvasRestore,He as regionHasOwnLook,se as regionSheetStyle,je as regionShownDeclarations,oe as storedPartStyle};
1
+ import{textStyleCaseCss as nt,textStyleCaseOfCss as ot}from"efficient-easel/draw";import{FONT_OPTIONS as it,fontOption as rt,fontRoleOf as _,SIZE_STEP_OF_ROLE as w}from"../../../format/lib/fonts.js";import{encodePartKey as v}from"../../../format/lib/document/part-key.js";import{decodePartId as C,normalizePartText as O}from"./text-parts.js";import{partInkCss as at}from"../../../format/lib/document/part-inks.js";import{regionStyle as st}from"../../../format/lib/sections/text-regions.js";import{EDGE_PHONE_MEDIA as ft,EDGE_TABLET_MEDIA as lt,PHONE_MEDIA as ct,TABLET_MEDIA as ut,viewOverrides as pt}from"../content/view-values.js";import{plainRecord as N,propsWithPartRecord as dt,readPartRecord as xt,readPartRecords as gt}from"../../../format/lib/document/part-records.js";const k="_partStyles",ht="data-sf-part-styled",W="data-sf-text-style",St=/^(heading|body)-[1-7]$/;function S(t){return typeof t=="string"&&St.test(t)}const G={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function bt(t){if(!t)return null;for(const[e,n]of Object.entries(G))if(n===t)return e;return null}function ze(t){if(S(t.textStyle))return t.textStyle;const e=_(t.role);return e?G[e]:void 0}const mt=[400,500,600,700],A=["left","center","right","justify"],I=5,y=1e3,Tt=-5,Pt=10,At=0,Rt=64,_t=2,B={size:{min:I,max:y,step:1},sizeTablet:{min:I,max:y,step:1},sizePhone:{min:I,max:y,step:1},padding:{min:At,max:Rt,step:_t}},zt=.05,Et=.01,$t=["line","letter"],wt=.5,Ot=2.5,Nt=-1,kt=1,It=0,yt=400,Ft=[...new Set(Object.values(w))];function Ee(t){return[`${t} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${t}:hover, ${t}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function $e(t){return gt(t,k)}function K(t,e){return xt(t,k,e)}function we(t,e){return Object.values(K(t,e)).filter(n=>n!==void 0).length}function X(t,e,n){return dt(t,k,e,Mt(n).length?n:null)}function Mt(t){return Object.entries(t).filter(([,e])=>e!==void 0)}function Lt(t){return $t.includes(t)}const R=(t,e,n)=>Math.min(n,Math.max(e,t));function Dt(t,e){if(Lt(t)){const n=Math.round(Number(e));return!Number.isFinite(n)||n===0?null:R(n,Tt,Pt)}if(t==="lineHeight"){const n=Number(e);return Number.isFinite(n)?P(R(n,wt,Ot),3):null}if(t==="letterSpacing"){const n=Number(e);return Number.isFinite(n)?P(R(n,Nt,kt),4):null}if(t==="paragraphSpacing"){const n=Math.round(Number(e));return!Number.isFinite(n)||n<=0?null:R(n,It,yt)}if(Object.hasOwn(B,t)){const{min:n,max:o}=B[t],i=Math.round(Number(e));return Number.isFinite(i)?R(i,n,o):null}return t==="italic"?typeof e=="boolean"?e:null:t==="role"||t==="fontRole"?_(e)?e:null:t==="sizeToken"?F(e)?e:null:t==="textStyle"?S(e)?e:null:t==="alignPhone"||t==="alignTablet"?A.includes(e)?e:null:e}const Ht=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function T(t){let e=null;const n=o=>{e??={...t},delete e[o]};for(const o of Ht){const i=t[o];i!==void 0&&!(typeof i=="number"&&Number.isFinite(i))&&n(o)}return t.align!==void 0&&!A.includes(t.align)&&n("align"),t.alignTablet!==void 0&&!A.includes(t.alignTablet)&&n("alignTablet"),t.alignPhone!==void 0&&!A.includes(t.alignPhone)&&n("alignPhone"),t.textStyle!==void 0&&!S(t.textStyle)&&n("textStyle"),t.sizeToken!==void 0&&!F(t.sizeToken)&&n("sizeToken"),t.fontRole!==void 0&&!_(t.fontRole)&&n("fontRole"),e??t}function F(t){if(!t||typeof t!="object")return!1;const{step:e,px:n,stepPhone:o,pxPhone:i,fluid:r}=t,l=c=>typeof c=="number"&&Number.isFinite(c)&&c>0,a=c=>typeof c=="string"&&Ft.includes(c);return a(e)&&l(n)&&(o===void 0||a(o))&&(i===void 0||l(i))&&(r===void 0||jt(r,n))}function jt(t,e){if(!t||typeof t!="object"||Array.isArray(t))return!1;const{minPx:n,vw:o,...i}=t;return Object.keys(i).length===0&&typeof n=="number"&&Number.isFinite(n)&&n>0&&n<e&&typeof o=="number"&&Number.isFinite(o)&&o>0&&o<=100}function M(t){return t?.pxPhone&&F(t)?{step:t.stepPhone??t.step,px:t.pxPhone}:null}function U({step:t,px:e,fluid:n}){const o=n?`clamp(${n.minPx}px, ${n.vw}vw, ${e}px)`:`${e}px`,i=`var(--size-${t}, ${o})`;return t.startsWith("heading")?`min(${i}, var(--sf-heading-max,9999px))`:i}const vt=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function Ct(t){const e=[];for(const[n,o]of vt)n===t?e.push(o):o===t&&e.push(n);return e}function Oe(t,e,n,o){const i={...K(t,e)},r=o==null?null:Dt(n,o);if(r===null)delete i[n];else{i[n]=r;for(const l of Ct(n))delete i[l]}return X(t,e,i)}function Ne(t,e){return X(t,e,{})}function Wt(t){return ot(t)??"none"}function Gt(t){return nt(t)??""}const V={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function Bt(t,e){const n=_(t.role);return n||(e?.blockDrawsStyle?null:bt(t.textStyle))}function ke(t,e){return t==="Text"&&e==="text"}const Kt={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function Xt(t){const e=w[t],n=Kt[e];return n?`var(--size-${e}, ${n})`:`var(--size-${e})`}function Ut(t){const e={};return typeof t.lineHeight=="number"?e.lineHeight=t.lineHeight:t.line&&(e.lineHeight=P(Vt+t.line*zt,3)),typeof t.letterSpacing=="number"?e.letterSpacingEm=t.letterSpacing:t.letter&&(e.letterSpacingEm=P(t.letter*Et,4)),e}const Vt=1,b="--sf-part-para";function Yt(t){t=T(t);const e={};if(typeof t.sizePhone=="number"&&t.sizePhone>0)e.fontSize=`${t.sizePhone}px`;else{const o=M(t.sizeToken);if(o)e.fontSize=U(o);else{const i=E(t);i!==void 0&&(e.fontSize=`${i}px`)}}const n=t.alignPhone??z(t);return n&&(e.textAlign=n),e}function z(t){return t.alignTablet&&t.alignTablet!==t.align?t.alignTablet:void 0}function E(t){const e=pt("textSize",t.size,t.sizeTablet,void 0).tablet;return e&&e>0?e:void 0}function Zt(t){const e=T(t),n={},o=E(e);o!==void 0&&(n.fontSize=`${o}px`);const i=z(e);return i&&(n.textAlign=i),n}function Ie(t,e){if(e==="desktop")return;const n=T(t);return(e==="mobile"?z(n):void 0)??n.align}function qt(t,e){if(e==="desktop")return t;const n=T(t),o=E(n),i=z(n);if(e==="tablet"){let a=t;return o!==void 0&&(a={...a,size:o}),i&&(a={...a,align:i}),a}let r=t;if(typeof n.sizePhone=="number"&&n.sizePhone>0)r={...r,size:n.sizePhone};else{const a=M(n.sizeToken);a?r={...r,size:void 0,sizeToken:a}:o!==void 0&&(r={...r,size:o})}const l=n.alignPhone??i;return l&&(r={...r,align:l}),r}function L(t,e,n){return D(qt(t,e),$,n)}function Jt(t){return t==="mobile"?"sizePhone":t==="tablet"?"sizeTablet":"size"}function ye(t,e){if(e==="desktop")return null;const n=T(t);if(e==="mobile"){if(M(n.sizeToken))return null;const o=E(n);if(o!==void 0)return{px:o,view:"tablet"}}return typeof n.size=="number"&&n.size>0?{px:n.size,view:"desktop"}:null}function Y(t,e){const n=Jt(e);if(!Object.hasOwn(t,n))return t;const o={...t};return delete o[n],o}function Fe(t,e,n){const o=L(Y(t,e),e,n);return{fontFamily:o.fontFamily,fontSize:o.fontSize}}function D(t,e,n){t=T(t);const o=Bt(t,n),i=Ut(t),r=t.size?`${t.size}px`:t.sizeToken?U(t.sizeToken):o?Xt(o):"";return{fontFamily:t.font?ne(t.font):t.fontRole?`var(${V[t.fontRole]})`:o?`var(${V[o]})`:"",fontWeight:t.weight?String(t.weight):"",fontSize:r,minWidth:r?"0":"",overflowWrap:r?"break-word":"",lineHeight:i.lineHeight!==void 0?String(i.lineHeight):"",letterSpacing:i.letterSpacingEm!==void 0?`${i.letterSpacingEm}em`:"",[b]:t.paragraphSpacing?`${t.paragraphSpacing}px`:"",textTransform:Gt(t.case),textAlign:t.align??"",paddingTop:Z(t.padding),paddingBottom:Z(t.padding),color:Qt(t.color),fontStyle:t.italic===!0?"italic":t.italic===!1?"normal":""}}const Qt=t=>at(t),Z=t=>t===void 0?"":`${t}px`,P=(t,e)=>Number(t.toFixed(e));function Me(t,e){const n=Number.parseFloat(t.fontSize)||16,o=Number.parseFloat(t.lineHeight),i=Number.parseFloat(t.letterSpacing),r=Number.parseFloat(t.paddingTop);return{fontKey:e,sizePx:n,weight:te(Number.parseInt(t.fontWeight,10)),lineRatio:Number.isFinite(o)?P(o/n,3):1.2,letterEm:Number.isFinite(i)?P(i/n,4):0,align:ee(t.textAlign),case:Wt(t.textTransform),paddingPx:Number.isFinite(r)?Math.round(r):0}}function te(t){return Number.isFinite(t)?mt.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e):400}function ee(t){for(const e of A)if(e===t)return e;return t==="end"?"right":"left"}function Le(t,e){const n=q(t);if(!n)return"";for(const o of it)if(q(e(o.cssVar))===n)return o.key;return""}const q=t=>(t.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function ne(t){const e=rt(t);return e?`var(${e.cssVar})`:""}function De(t,e,n,o){return!e||C(e)?.nodeId!==t?null:n.find(r=>o(r.getAttribute("class")))??n[0]??null}function oe(t,e){return Object.hasOwn(t,e)?N(t[e])??{}:{}}function He(t,e,n=()=>$,o=a=>a,i=ae,r="desktop",l=()=>!1){let a=0;for(const{element:c,partId:h}of t){const x=C(h)?.propKey;if(!x)continue;const s=oe(e,o(x)),f=L(s,r,{blockDrawsStyle:l(x)});S(s.textStyle)?c.setAttribute?.(W,s.textStyle):c.removeAttribute?.(W);const d=j.some(g=>c.style[g]);let p=!1;for(const[g,u]of Object.entries(f))le(c,g,u),u&&(p=!0);if(d||j.some(g=>f[g]))for(const g of ie(c,i))for(const u of j)g.style[u]=f[u]??"";p&&(a+=1)}return a}function ie(t,e){const n=O(t.textContent??""),o=[];let i=t;for(let r=0;r<re&&e(i);r+=1){const l=i.parentElement;if(!l||O(l.textContent??"")!==n)break;o.push(l),i=l}return o}const re=8;function ae(t){const e=t;return typeof window>"u"||!e?.ownerDocument?!1:window.getComputedStyle(e).display==="inline"}const $={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function se(t){if(!t||typeof t!="object")return null;const e={};return S(t.textStyle)&&(e.textStyle=t.textStyle),typeof t.size=="number"&&t.size>0&&(e.size=t.size),typeof t.sizeTablet=="number"&&t.sizeTablet>0&&(e.sizeTablet=t.sizeTablet),typeof t.sizePhone=="number"&&t.sizePhone>0&&(e.sizePhone=t.sizePhone),Object.keys(e).length?e:null}function fe(t,e){const n=se(t);if(!n)return{};const o=L(n,e);return{...o.fontFamily?{fontFamily:o.fontFamily}:{},...o.fontSize?{fontSize:o.fontSize}:{}}}function je(t){return S(t?.textStyle)||!!t?.role||typeof t?.size=="number"&&t.size>0}function ve(t,e,n){if(!t||typeof t!="object")return{};const o=st(t.role,e,w)??{},i=e.sized?fe(Y(t,n),n):{};return{...o,...i}}function Ce(t,e,n){n.fontFamily&&t.fontFamily===n.fontFamily&&(t.fontFamily=e.fontFamily),n.fontSize&&t.fontSize===n.fontSize&&(t.fontSize=e.fontSize)}function le(t,e,n){if(!e.startsWith("--")){t.style[e]=n;return}const o=t.style;typeof o.setProperty=="function"?n?o.setProperty(e,n):o.removeProperty?.(e):o[e]=n;const i=t;e===b&&(n?i.setAttribute?.(J,""):i.removeAttribute?.(J))}const J="data-sf-part-para",ce=Object.keys(D({},$)),H=new Set(["color","overflowWrap",b,"fontStyle"]),j=ce.filter(t=>!H.has(t));function We(t,e,n,o=a=>a,i=()=>!1,r=()=>null,l=[]){const a=new Map;for(const s of t){const f=v(s.key,s.row);for(const d of s.texts){const p=a.get(d);p?(p.keys.add(s.key),p.partKeys.add(f)):a.set(d,{keys:new Set([s.key]),partKeys:new Set([f])})}}const c=new Map;for(const s of new Set([...Object.keys(e),...l])){if(!ue(s))continue;const f=Q(n,s,N(e[s])??{},!1,r(s));f&&c.set(s,f)}const h=s=>{const f=o(s),d=r(f);if(!Object.hasOwn(e,f)&&!d)return null;const p=N(e[f])??{};return Q(n,s,p,i(s),d)},x=new Map;for(const[s,{keys:f,partKeys:d}]of a){const p=d.size===1?[...d][0]:f.size===1?[...f][0]:null;if(!p)continue;const m=h(p);m&&x.set(s,m)}for(const s of t){if(!s.keyed)continue;const f=h(v(s.key,s.row));f&&c.set(s.key,f)}return x.size||c.size?{rules:x,kindRules:c,drawn:new Set(a.keys())}:null}function Q(t,e,n,o,i){const r=D(n,$,{blockDrawsStyle:o}),l=Zt(n),a=Yt(n),c=S(n.textStyle)?n.textStyle:void 0;return!Object.values(r).some(Boolean)&&!Object.keys(l).length&&!Object.keys(a).length&&!c&&!i?null:{stamp:pe(t,e),declarations:r,...Object.keys(l).length?{tablet:l}:{},...Object.keys(a).length?{phone:a}:{},...c?{textStyle:c}:{},...i?{motion:i}:{}}}function ue(t){return t.startsWith("@")}function Ge(t,e){return t?.kindRules.get(e)??null}function pe(t,e){const n=o=>o.replace(/[^A-Za-z0-9_-]+/g,"-");return`${n(t)}~${n(e)}`}function de(t){return t?{tablet:lt,phone:ft}:{tablet:ut,phone:ct}}function Be(t,{inBox:e=!1}={}){const{tablet:n,phone:o}=de(e),i=[],r=new Set,l=a=>{const{stamp:c,declarations:h}=a;if(r.has(c))return;r.add(c);const x=Object.entries(h).filter(([,u])=>u!==""),s=u=>u.map(([tt,et])=>`${ge(tt)}: ${et}`).join("; "),f=`[${ht}="${c}"]`,d=x.filter(([u])=>!H.has(u)),p=x.filter(([u])=>H.has(u));d.length&&i.push(`${f}, *:has(> ${f}) { ${s(d)} }`),p.length&&i.push(`${f} { ${s(p)} }`),h[b]&&(i.push(`*:has(> ${f}) { ${b}: ${h[b]} }`),i.push(...xe(f,`*:has(> ${f})`)));const m=Object.entries(a.tablet??{}).filter(([,u])=>u!=="");m.length&&i.push(`@media ${n} { ${f}, *:has(> ${f}) { ${s(m)} } }`);const g=Object.entries(a.phone??{}).filter(([,u])=>u!=="");g.length&&i.push(`@media ${o} { ${f}, *:has(> ${f}) { ${s(g)} } }`)};for(const a of t.rules.values())l(a);for(const a of t.kindRules.values())l(a);return i.join(`
2
+ `)}function xe(t,e){const n=`var(${b})`,o=":is([data-sf-bullet], [data-sf-number])";return[`${t} br:not(br + br) { display: block; content: ""; margin-top: ${n} }`,`${t} ${o}:not(:first-child) { margin-top: ${n} }`,`${t} ${o}:not(:last-child) { margin-bottom: ${n} }`,`:is(${e}) + :is(${e}) { margin-top: ${n} }`]}const ge=t=>t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);function Ke(t,e){if(!t)return null;const n=O(e),o=t.rules.get(n);if(o)return o;if(n.length<he||t.drawn.has(n))return null;let i=null;for(const[r,l]of t.rules)if(r.includes(n)){if(i&&i.stamp!==l.stamp)return null;i=l}return i}const he=8;export{A as PART_ALIGNS,kt as PART_LETTER_EM_MAX,Nt as PART_LETTER_EM_MIN,Et as PART_LETTER_STEP,Ot as PART_LINE_HEIGHT_MAX,wt as PART_LINE_HEIGHT_MIN,zt as PART_LINE_STEP,B as PART_MEASURED_TRACKS,Pt as PART_NUDGE_MAX,Tt as PART_NUDGE_MIN,Rt as PART_PADDING_MAX,At as PART_PADDING_MIN,_t as PART_PADDING_STEP,J as PART_PARAGRAPH_ATTR,yt as PART_PARAGRAPH_MAX,It as PART_PARAGRAPH_MIN,b as PART_PARAGRAPH_VAR,$t as PART_RELATIVE_PROPS,y as PART_SIZE_MAX,I as PART_SIZE_MIN,Ft as PART_SIZE_STEPS,ht as PART_STYLED_ATTR,k as PART_STYLES_PROP,ce as PART_STYLE_PROPERTIES,mt as PART_WEIGHTS,j as SHARED_PART_PROPERTIES,G as STYLE_ID_OF_ROLE,W as TEXT_STYLE_ATTR,He as applyPartStyles,ke as blockDrawsTextStyle,ze as followedStyleOf,ue as isPartKindKey,S as isTextStyleId,xe as paragraphRules,Ie as partAlignFollowed,L as partCanvasDeclarations,Wt as partCaseOfTransform,Gt as partCaseTransform,Le as partFontKeyOf,Ee as partLiftRules,Yt as partPhoneDeclarations,Ge as partRuleForKind,Ke as partRuleForText,Fe as partShownDeclarations,Jt as partSizeBoxOf,ye as partSizeFollowed,Ut as partSpacingOf,Me as partStyleBase,we as partStyleCount,Be as partStyleCss,D as partStyleDeclarations,qt as partStyleForScreen,De as partStyleSource,Y as partStyleWithoutSizeBox,Zt as partTabletDeclarations,Oe as propsWithPartStyleValue,Ne as propsWithoutPartStyle,We as publishedPartStyles,K as readPartStyle,$e as readPartStyles,fe as regionCanvasDeclarations,Ce as regionCanvasRestore,je as regionHasOwnLook,se as regionSheetStyle,ve as regionShownDeclarations,oe as storedPartStyle,de as viewMediaOf};
@@ -1 +1 @@
1
- import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{boxJoin as p}from"./box-join.js";import{cardTemplateOnInsert as s}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as c}from"./cell-width.js";import{clickableParts as f}from"./clickable-parts.js";import{cardCorners as a,sectionCorners as l}from"./corners.js";import{emptyHeadings as d}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as h}from"../../../../format/lib/document/passes/show-when-rows.js";import{headBox as u,headCore as S}from"./head-core.js";import{hiddenNodes as b}from"./hidden-nodes.js";import{showFor as g}from"./show-for.js";import{mediaValues as w}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as A}from"./section-anchor.js";import{blockEntrance as P,sectionAnimation as k}from"./section-animation.js";import{sectionHeight as C}from"./section-height.js";import{cardSticky as B,sectionSticky as W}from"./section-sticky.js";import{sectionBorder as y}from"./borders.js";import{blockPadding as G,sectionPadding as T}from"./section-padding.js";import{sectionTheme as x,slideTheme as E}from"./section-theme.js";import{buttonAlignInRow as H,containedWidth as I,sectionWidth as L}from"./section-width.js";import{blockGroups as O,sectionGroups as R}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as z}from"./slots-start-afresh.js";import{openSlotDisallow as D,sectionGroupAllow as F}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as ho}from"../../../../format/lib/document/passes/registry-context.js";const J=[z,w,S,F,D,T,l,y,a,G,P,c,L,I,H,C,A,x,k,W,B,p,E,n,R,O,h,d,f,u,g,b,e,s];function fo(r,m,o){const t=m;for(const i of J)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{J as BLOCK_PASSES,fo as applyBlockPasses,ho as registryPassContext};
1
+ import{catalogueLabel as e}from"../../../../format/lib/document/passes/catalogue-labels.js";import{blockSize as n}from"./block-size.js";import{boxJoin as p}from"./box-join.js";import{cardTemplateOnInsert as s}from"../../../../format/lib/document/passes/card-template-on-insert.js";import{cellWidth as c}from"./cell-width.js";import{clickableParts as f}from"./clickable-parts.js";import{cardCorners as a,sectionCorners as l}from"./corners.js";import{emptyHeadings as d}from"../../../../format/lib/document/passes/empty-headings.js";import{showWhenRows as h}from"../../../../format/lib/document/passes/show-when-rows.js";import{headBox as S,headCore as u}from"./head-core.js";import{hiddenNodes as b}from"./hidden-nodes.js";import{showFor as g}from"./show-for.js";import{mediaValues as w}from"../../../../format/lib/document/passes/media-values.js";import{sectionAnchor as k}from"./section-anchor.js";import{blockEntrance as A,sectionAnimation as P}from"./section-animation.js";import{blockScroll as C,sectionScroll as B}from"./scroll-effect.js";import{sectionHeight as W}from"./section-height.js";import{cardSticky as y,sectionSticky as G}from"./section-sticky.js";import{sectionBorder as T}from"./borders.js";import{blockPadding as x,sectionPadding as E}from"./section-padding.js";import{sectionTheme as H,slideTheme as I}from"./section-theme.js";import{buttonAlignInRow as L,containedWidth as O,sectionWidth as R}from"./section-width.js";import{blockGroups as z,sectionGroups as D}from"../../../../format/lib/document/passes/settings-groups.js";import{slotsStartAfresh as F}from"./slots-start-afresh.js";import{openSlotDisallow as J,sectionGroupAllow as K}from"../../../../format/lib/document/passes/slot-rules.js";import{registryPassContext as bo}from"../../../../format/lib/document/passes/registry-context.js";const N=[F,w,u,K,J,E,l,T,a,x,A,C,c,R,O,L,W,k,H,P,B,G,y,p,I,n,D,z,h,d,f,S,g,b,e,s];function ho(r,m,o){const t=m;for(const i of N)i.applies(r,o,t)&&(o.inspector&&i.panel?.(t,r,o.inspector,o),i.draw?.(t,r,o));return m}export{N as BLOCK_PASSES,ho as applyBlockPasses,bo as registryPassContext};
@@ -0,0 +1,3 @@
1
+ import type { BlockPass } from "../../../../format/lib/document/passes/types.js";
2
+ export declare const sectionScroll: BlockPass;
3
+ export declare const blockScroll: BlockPass;
@@ -0,0 +1 @@
1
+ import{jsx as a}from"react/jsx-runtime";import{ScrollEffect as m}from"../../../components/ScrollEffect.js";import{ENTRANCE_EXCLUDED as d}from"../../animation/entrance.js";import{scrollDrawn as u,scrollOriginsOf as w}from"../../../../format/lib/animation/scroll.js";import{PICTURE_DOTS as p}from"../../../../format/lib/content/picture-focus-rows.js";import{BOX_TYPE as S}from"../../../../format/lib/document/container-blocks.js";import{drawsCopiesInTheBox as E}from"../../../../format/lib/content/copies-in-box.js";const s=(r,o)=>!d.has(r)&&!!o&&typeof o.render=="function";function x(r){const o=p.filter(e=>e.block===r);return o.length===1?o[0].focus:void 0}function l(r,o){const e=r,n=e.render,i=x(o),f=r.drawsPictures===!0;e.render=t=>{const c=u(t);return!c||E(o,t)?n(t):a(m,{views:c,...i?{origins:w(t,i)}:{},takesViewHide:!0,atEdge:o===S,zoomInside:f?"picture":"layer",children:n(t)})}}const b={name:"sectionScroll",applies:(r,o,e)=>o.isSection(r)&&s(r,e),draw:(r,o)=>l(r,o)},B={name:"blockScroll",applies:(r,o,e)=>!o.isSection(r)&&s(r,e),draw:(r,o)=>l(r,o)};export{B as blockScroll,b as sectionScroll};
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{HideTaker as l}from"../../../components/ViewHideRoot.js";import{SECTION_STICK_EXCLUDED as f,sectionStickAttrs as d}from"../../../../format/lib/content/section-sticky.js";import{shownByUsedValue as c,withRowRules as k}from"../../../../format/lib/document/show-when-attach.js";import{SlotsStartAfresh as T}from"../../../components/InBoxContext.js";import{CARD_BLOCK_KEYS as S}from"./corners.js";const D=a("sectionSticky",(e,s,t)=>s.isSection(e)&&!f.has(e)&&!!t&&typeof t.render=="function"),x=a("cardSticky",(e,s,t)=>S.includes(e)&&!!t&&typeof t.render=="function");function a(e,s){return{name:e,applies:s,panel(t,o,i){t.fields={...t.fields,...k(i.stickFields(),p)}},draw(t){const o=t.render;t.render=i=>{const r=d(i);return r?n(l,{className:r.className,style:r.style,children:n(T,{children:o(i)})}):o(i)}}}}const p=(()=>{const e=t=>({field:t,in:[!0,!1]}),s=t=>({field:t,is:!0});return[[["stickTopDistance"],s("stickTop")],[["stickTopDistanceTablet"],c(["stickTopTablet","stickTop"],e,s)],[["stickTopDistancePhone"],c(["stickTopPhone","stickTopTablet","stickTop"],e,s)]]})();export{x as cardSticky,D as sectionSticky};
1
+ import{jsx as S}from"react/jsx-runtime";import{HideTaker as b}from"../../../components/ViewHideRoot.js";import{SectionRootChoice as A}from"../../../components/SiteGutterFrame.js";import{INTRO_OLD_STICKY_PINS as D,PIN_AT_SCREEN_TOP as h,SECTION_PIN_SCREENS_KEY as K,SECTION_PIN_SCREENS_KEYS as y,SECTION_STICK_EXCLUDED as L,sectionPinAttrs as k}from"../../../../format/lib/content/section-sticky.js";import{addShowWhenFacts as x,shownByUsedValue as E,withRowRules as Y}from"../../../../format/lib/document/show-when-attach.js";import{SlotsStartAfresh as j}from"../../../components/InBoxContext.js";import{HOVER_GROUP_KEY as w}from"../../../../format/lib/animation/hover.js";import{LOOP_GROUP_KEY as B}from"../../../../format/lib/animation/loop.js";import{SCROLL_CUSTOMIZE_KEY as U,SCROLL_GROUP_KEY as O}from"../../../../format/lib/animation/scroll.js";import{PIN_ATTR as I,PIN_FRAME_ATTR as H}from"efficient-shell/format";import{CARD_BLOCK_KEYS as F}from"./corners.js";import{heldByANode as G,NOT_HELD_BY_A_NODE as g}from"../../../../format/lib/document/passes/document-position.js";const st=N("sectionSticky",(n,i,t)=>i.isSection(n)&&!L.has(n)&&!!t&&typeof t.render=="function",!0),it=N("cardSticky",(n,i,t)=>F.includes(n)&&!!t&&typeof t.render=="function",!1);function N(n,i,t){return{name:n,applies:i,panel(s,r,l){const c=h.has(r);s.fields=V(s.fields??{},Y(l.stickFields({intro:c,screens:t}),W(c))),t&&x(s,{heldByANode:G})},draw(s,r){const l=s.render,c=h.has(r);s.render=d=>{const o=k(d,{atScreenTop:c});if(!o)return l(d);const p=_=>{const f=S(j,{children:l(d)});return S(b,{..._.attrs,style:_.style,children:_.attrs[I]===""?S("div",{[H]:"",children:f}):f})},T=t?k(d,{atScreenTop:c,track:t}):o;return!T||T.attrs[I]!==""?p(o):S(A,{own:()=>p(T),followed:()=>p(o)})}}}}const P=[w,B],M="_gStick";function V(n,i){const t=Object.keys(n),s=n[O];if(!s){const e=t.findIndex(a=>P.includes(a));return e<0?{...n,...i}:Object.fromEntries([...t.slice(0,e).map(a=>[a,n[a]]),...Object.entries(i),...t.slice(e).map(a=>[a,n[a]])])}const{[M]:r,...l}=i,c=e=>e.startsWith(K),d=Object.entries(l).filter(([e])=>!c(e)),o=Object.entries(l).filter(([e])=>c(e)),p=[s.dot,r?.dot].filter(e=>!!e),T=t.indexOf(O),_=t.findIndex((e,a)=>a>T&&P.includes(e)),f=_<0?t.length:_,m=t.indexOf(U),R=m>T&&m<f?m:f,u=e=>[e,e===O?{...s,dot:{any:p}}:n[e]],C=[...t.slice(0,R).map(u),...d,...t.slice(R,f).map(u),...o,...t.slice(f).map(u)];return Object.fromEntries(C)}function W(n){const i=o=>({field:o,in:[!0,!1]}),t=o=>n&&o==="stickTop"?{any:[{field:o,is:!0},D]}:{field:o,is:!0},s=o=>({field:o,is:!0}),r=o=>({all:[o,g]}),[l,c,d]=y;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],E(["stickTopTablet","stickTop"],i,t)],[["stickTopDistancePhone"],E(["stickTopPhone","stickTopTablet","stickTop"],i,t)],[[l],r(s("stickTop"))],[[c],r(E(["stickTopTablet","stickTop"],i,s))],[[d],r(E(["stickTopPhone","stickTopTablet","stickTop"],i,s))]]}export{it as cardSticky,st as sectionSticky};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{SlotsStartAfresh as l}from"../../../components/InBoxContext.js";import{NotASectionEdge as d}from"../../../components/SiteGutterFrame.js";const u=new Set(["Flex","Grid"]),i=e=>Object.entries(e.fields??{}).filter(([,t])=>t?.type==="slot").map(([t])=>t),S=["blockCount","blockIds"],a=new WeakMap;function h(e){const t=a.get(e);if(t)return t;const o=e,n=r=>s(d,{children:s(l,{children:s(o,{...r})})});Object.assign(n,e);for(const r of S)Object.defineProperty(n,r,{get:()=>e[r],configurable:!0,enumerable:!0});return a.set(e,n),n}const k={name:"slotsStartAfresh",applies:(e,t,o)=>!u.has(e)&&typeof o?.render=="function"&&i(o).length>0,draw(e){const t=i(e),o=e.render;e.render=n=>{const r={...n};for(const c of t){const f=n[c];typeof f=="function"&&(r[c]=h(f))}return o(r)}}};export{k as slotsStartAfresh};
1
+ import{jsx as f}from"react/jsx-runtime";import{SlotsStartAfresh as a}from"../../../components/InBoxContext.js";import{NotASectionEdge as l}from"../../../components/SiteGutterFrame.js";const d=new Set(["Flex","Grid"]),i=e=>Object.entries(e.fields??{}).filter(([,t])=>t?.type==="slot").map(([t])=>t),u=(e,t)=>e.fields?.[t]?.ownPictures===!0,p=["blockCount","blockIds"],w=new WeakMap,S=new WeakMap;function h(e,t){const r=t?S:w,o=r.get(e);if(o)return o;const c=e,n=s=>f(l,{children:f(a,{ownPictures:t,children:f(c,{...s})})});Object.assign(n,e);for(const s of p)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return r.set(e,n),n}const g={name:"slotsStartAfresh",applies:(e,t,r)=>!d.has(e)&&typeof r?.render=="function"&&i(r).length>0,draw(e){const t=i(e),r=e.render;e.render=o=>{const c={...o};for(const n of t){const s=o[n];typeof s=="function"&&(c[n]=h(s,u(e,n)))}return r(c)}}};export{g as slotsStartAfresh};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "63.0.0",
3
+ "version": "64.0.0",
4
4
  "description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",