efficient-web-builder 67.6.0 → 67.7.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 (57) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/editor/lib/document/blocks/general/HostPart/fields.d.ts +2 -0
  3. package/dist/editor/lib/document/blocks/general/HostPart/fields.js +1 -0
  4. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  5. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  6. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  7. package/dist/editor/lib/document/build-config.js +1 -1
  8. package/dist/editor/lib/document/controls.d.ts +5 -2
  9. package/dist/editor/lib/document/controls.js +1 -1
  10. package/dist/editor/lib/sections/text-layouts.js +1 -1
  11. package/dist/format/lib/content/box-background.d.ts +1 -0
  12. package/dist/format/lib/content/box-background.js +1 -1
  13. package/dist/format/lib/content/button-icon.d.ts +1 -1
  14. package/dist/format/lib/content/button-icon.js +1 -1
  15. package/dist/format/lib/content/card-template.d.ts +1 -0
  16. package/dist/format/lib/content/card-template.js +1 -1
  17. package/dist/format/lib/content/count-numbers.js +1 -1
  18. package/dist/format/lib/content/gallery-layout.d.ts +11 -2
  19. package/dist/format/lib/content/gallery-layout.js +1 -1
  20. package/dist/format/lib/document/blocks/block-types.d.ts +4 -0
  21. package/dist/format/lib/document/blocks/general/HostPart/meta.d.ts +2 -0
  22. package/dist/format/lib/document/blocks/general/HostPart/meta.js +1 -0
  23. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  24. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  25. package/dist/format/lib/document/cap-hero-groups.js +1 -1
  26. package/dist/format/lib/document/general-order.d.ts +1 -1
  27. package/dist/format/lib/document/general-order.js +1 -1
  28. package/dist/format/lib/document/list-search-scopes.js +1 -1
  29. package/dist/format/lib/document/node-lists.d.ts +9 -0
  30. package/dist/format/lib/document/node-lists.js +1 -0
  31. package/dist/format/lib/document/passes/types.d.ts +4 -0
  32. package/dist/format/lib/document/renamed-props.js +1 -1
  33. package/dist/format/lib/document/section-catalog.js +1 -1
  34. package/dist/format/lib/editor-words-catalogue.d.ts +5 -0
  35. package/dist/format/lib/editor-words-catalogue.js +3 -3
  36. package/dist/format/lib/source-rules/no-hard-coded-option-rows.js +1 -1
  37. package/dist/format/lib/source-rules/own-key-reads.d.ts +5 -0
  38. package/dist/format/lib/source-rules/own-key-reads.js +9 -7
  39. package/dist/format/lib/source-rules/support/ts-program.d.ts +1 -0
  40. package/dist/format/lib/source-rules/support/ts-program.js +2 -2
  41. package/dist/render/components/ButtonBlock.js +1 -1
  42. package/dist/render/components/CardRowContext.d.ts +9 -1
  43. package/dist/render/components/CardRowContext.js +1 -1
  44. package/dist/render/components/Flex.js +1 -1
  45. package/dist/render/lib/animation/entrance.js +1 -1
  46. package/dist/render/lib/content/page-contents.js +1 -1
  47. package/dist/render/lib/document/blocks/general/HostPart/render.d.ts +2 -0
  48. package/dist/render/lib/document/blocks/general/HostPart/render.js +1 -0
  49. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  50. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  51. package/dist/render/lib/document/card-press-titles.js +1 -1
  52. package/dist/render/lib/document/head-core-boxes.js +1 -1
  53. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  54. package/dist/render/lib/document/passes/section-padding.d.ts +5 -2
  55. package/dist/render/lib/document/passes/section-padding.js +1 -1
  56. package/dist/render/lib/document/wall-labels.js +1 -1
  57. package/package.json +1 -1
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{buttonArrowShown as N}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as _,buttonIconSide as j,buttonWidthClass as v,storedButtonIcon as F}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as O,buttonPadAttrs as R,buttonPaint as $}from"../lib/content/button-look.js";import{ArrowLongRightIcon as G,ArrowRightIcon as U,ArrowUpRightIcon as E,BagIcon as K,CarIcon as V,CartIcon as Y,ChevronRightIcon as z,DownloadIcon as D,EmailIcon as H,ExternalIcon as J,LocationIcon as W,PlayIcon as q,SearchIcon as M,TagIcon as Q}from"efficient-shell/icons/efficient";import X from"./BlockFrame.js";import Z from"./Btn.js";import{renderGold as oo}from"./goldPhrases.js";import{alignViewClasses as to,BLOCK_ALIGN_JUSTIFY as no}from"../../format/lib/content/block-align.js";import{useInBox as ro}from"./InBoxContext.js";const eo="sf-button-block",ao={"arrow-right":U,"arrow-long-right":G,"arrow-up-right":E,"chevron-right":z,external:J,cart:Y,bag:K,tag:Q,email:H,location:W,play:q,download:D,search:M,car:V},io=o=>o?` ${o}`:"";function co(o){const{label:b,href:i,variant:c,align:e,alignTablet:p,alignPhone:I,contained:C,arrow:B,icon:y,iconPosition:s,widthFit:l,widthFitPhone:x,widthFitTablet:S,buttonColor:t,buttonTextColor:d,hrefRewrite:h}=o,m=ro(),n=F(y),u=n&&n!=="none"?ao[n]:void 0,L=n===void 0?N(B)?{}:{arrow:null}:u?{arrow:r(u,{size:16}),...j(s)==="before"?{glyphBefore:!0}:{}}:{arrow:null},f=R(o),g=[v(l,x,S,{atSectionLine:!m}),f?.className??""].filter(Boolean).join(" "),P=g?{className:g}:{},T=_(s,l)?{spread:!0}:{},a=$(o),A=a?a.background==="transparent"?"ghost":"primary":c,w={...a??(t?c==="ghost"?{borderColor:t}:{background:t,borderColor:t}:{}),...d?{color:d}:{},...f?.style??{},...O(o)??{}},k=Object.keys(w).length?{style:w}:{};return r(X,{contained:C,className:`${eo} py-4`,children:r("div",{className:`flex${e?` ${no[e]}`:""}${io(to("justify",e,p,I,{atSectionLine:!m}))}`,children:r(Z,{href:i||"#",variant:A,...P,...T,...L,...k,...i&&h?{hrefRewrite:h}:{},children:oo(b)})})})}export{eo as BUTTON_BLOCK_CLASS,co as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{buttonArrowShown as v}from"../../format/lib/content/button-arrow.js";import{buttonIconAtEnd as N,buttonIconSide as R,buttonWidthClass as _,storedButtonIcon as j}from"../../format/lib/content/button-icon.js";import{buttonCornersStyle as F,buttonPadAttrs as O,buttonPaint as $}from"../lib/content/button-look.js";import{ArrowLongRightIcon as G,ArrowRightIcon as U,ArrowUpRightIcon as E,BagIcon as K,CarIcon as V,CartIcon as W,ChatIcon as Y,ChevronLeftIcon as z,ChevronRightIcon as D,DownloadIcon as H,EmailIcon as J,ExternalIcon as q,LocationIcon as M,PackageIcon as Q,PhoneIcon as X,PlayIcon as Z,ReceiptRefundIcon as oo,SearchIcon as no,ShieldCheckIcon as to,TagIcon as ro,TruckIcon as eo,WheelIcon as co}from"efficient-shell/icons/efficient";import ao from"./BlockFrame.js";import io from"./Btn.js";import{renderGold as lo}from"./goldPhrases.js";import{alignViewClasses as so,BLOCK_ALIGN_JUSTIFY as ho}from"../../format/lib/content/block-align.js";import{useInBox as uo}from"./InBoxContext.js";const fo="sf-button-block",mo={"arrow-right":U,"arrow-long-right":G,"arrow-up-right":E,"chevron-right":D,external:q,cart:W,bag:K,tag:ro,email:J,location:M,play:Z,download:H,search:no,car:V,phone:X,wheel:co,chat:Y,"chevron-left":z,package:Q,truck:eo,"shield-check":to,"receipt-refund":oo},Io=o=>o?` ${o}`:"";function go(o){const{label:p,href:a,variant:i,align:e,alignTablet:w,alignPhone:b,contained:C,arrow:B,icon:k,iconPosition:l,widthFit:s,widthFitPhone:y,widthFitTablet:P,buttonColor:n,buttonTextColor:h,hrefRewrite:d}=o,u=uo(),t=j(k),f=t&&t!=="none"?mo[t]:void 0,S=t===void 0?v(B)?{}:{arrow:null}:f?{arrow:r(f,{size:16}),...R(l)==="before"?{glyphBefore:!0}:{}}:{arrow:null},m=O(o),I=[_(s,y,P,{atSectionLine:!u}),m?.className??""].filter(Boolean).join(" "),x=I?{className:I}:{},L=N(l,s)?{spread:!0}:{},c=$(o),T=c?c.background==="transparent"?"ghost":"primary":i,g={...c??(n?i==="ghost"?{borderColor:n}:{background:n,borderColor:n}:{}),...h?{color:h}:{},...m?.style??{},...F(o)??{}},A=Object.keys(g).length?{style:g}:{};return r(ao,{contained:C,className:`${fo} py-4`,children:r("div",{className:`flex${e?` ${ho[e]}`:""}${Io(so("justify",e,w,b,{atSectionLine:!u}))}`,children:r(io,{href:a||"#",variant:T,...x,...L,...S,...A,...a&&d?{hrefRewrite:d}:{},children:lo(p)})})})}export{fo as BUTTON_BLOCK_CLASS,go as default};
@@ -28,6 +28,13 @@ export declare function CardPressTitled({ field, children }: {
28
28
  children: (id: string | undefined) => ReactNode;
29
29
  }): import("react").JSX.Element;
30
30
  export declare const CardRowContext: import("react").Context<CardRow | null>;
31
+ export type HostParts = (row: CardRow, name: string) => ReactNode;
32
+ export declare const HostPartsContext: import("react").Context<((name: string) => ReactNode) | null>;
33
+ export declare function HostPartDrawn({ name, label, editing }: {
34
+ name: string;
35
+ label?: string;
36
+ editing: boolean;
37
+ }): import("react").JSX.Element | null;
31
38
  export declare function useCardRow(): CardRow | null;
32
39
  export declare function CardRowDrawn({ type, props, children, }: {
33
40
  type: string;
@@ -50,6 +57,7 @@ type CardTemplateRowsProps = {
50
57
  fallback: ReactNode;
51
58
  copyAttrs?: Readonly<Record<string, string>> | ((row: CardRow) => Readonly<Record<string, string>>);
52
59
  wrapCopy?: (copy: ReactNode, row: CardRow) => ReactNode;
60
+ hostParts?: HostParts;
53
61
  children: (cards: ReactNode) => ReactNode;
54
62
  };
55
- export declare function CardTemplateRows({ ownerId, ownerType, slot, Template, rows, items, fields, states, stateLine, actions, pressTitles, previewHover, fallback, copyAttrs, wrapCopy, children }: CardTemplateRowsProps): import("react").JSX.Element;
63
+ export declare function CardTemplateRows({ ownerId, ownerType, slot, Template, rows, items, fields, states, stateLine, actions, pressTitles, previewHover, fallback, copyAttrs, wrapCopy, hostParts, children }: CardTemplateRowsProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{Fragment as u,jsx as t,jsxs as I}from"react/jsx-runtime";import{createContext as O,useContext as C,useId as K}from"react";import{REPEAT_ATTRIBUTE as U,REPEAT_INDEX_ATTRIBUTE as W}from"efficient-easel/draw";import{BOX_LINKED_CLASS as B}from"../../format/lib/content/box-link.js";import{BOX_HIDE_WHEN_ROW_EMPTY as X,CARD_TEMPLATE_SLOT as M,cardTemplateLinesBetween as V,rowFilledProps as G,templateBoxIsEmpty as F}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as Y,CARD_ACTION_CLASS as q,CARD_ACTION_HOVER_CLASS as z,CARD_ACTION_OFF_CLASS as J,CARD_STATE_LINE_CLASS as Q,CARD_STATE_PICKED_BAR_CLASS as Z,CARD_STATE_PICKED_CLASS as ee,CARD_STATE_PICKED_WASH_CLASS as te,CARD_STATE_UNDER_LINE_CLASS as re,cardStateAttrs as ne,cardStatePicked as oe,cardStateValue as se}from"../../format/lib/content/card-state.js";import{usePageRecordRow as le}from"./CurrentRecord.js";import{CardCopyCell as ae}from"./InBoxContext.js";import{SECTION_FILL_CLASS as ie}from"../../format/lib/content/section-min-height.js";function Re({props:o,editing:r,children:n}){const e=C(A);return!r&&F(o,e?.row)?null:t(u,{children:n})}const S=O(null);function fe({field:o,children:r}){const n=C(S);return t(u,{children:r(n&&n.field===o?n.id:void 0)})}function ce(o,r){return o?.find(e=>!!r[e.field]?.trim()&&!e.gates.some(s=>F({[X]:s},r)))?.field??""}const A=O(null);function he(){return C(A)}function Ie({type:o,props:r,children:n}){const e=C(A),s=le(),a=e?.row??s;return t(u,{children:n(G(o,r,a,e?.ownerType,e?.fields,e?.slot),e,a)})}function de({attrs:o,selected:r,hover:n,action:e,titleField:s,children:a}){const i=K(),{press:T,disabled:l}=e,_=e.label?.trim(),m=!_&&s?{id:`${i}-title`,field:s}:null;return I("div",{...o,id:i,className:n&&!l?`${B} ${z}`:B,children:[t("button",{type:"button",[Y]:"",className:l?J:q,"aria-pressed":r,..._?{"aria-label":_}:{"aria-labelledby":m?.id??i},...l?{"aria-disabled":!0,tabIndex:-1}:null,onClick:l?void 0:T}),t(S.Provider,{value:m,children:a})]})}function Ne({ownerId:o,ownerType:r,slot:n=M,Template:e,rows:s,items:a,fields:i,states:T,stateLine:l,actions:_,pressTitles:m,previewHover:g,fallback:H,copyAttrs:p,wrapCopy:N,children:k}){const D=C(A),y=C(S);if(!e||(e.blockCount??0)<=0)return t(u,{children:H});const $=D!==null,L=V(r),P=g??D?.previewHover,v=e.blockCount===1?t(ae,{children:t(e,{className:ie})}):t(e,{}),j=s.map((w,c)=>{const d=T?.[c],E={row:w,index:c,ownerType:r,slot:n,item:a?.[c],nested:$,...i?{fields:i}:null,...d?{state:d}:null,...L?{linesBetween:L}:null,...P?{previewHover:P}:null},R=se(d)?I(u,{children:[v,l==="under"?t("span",{"aria-hidden":"true",className:re}):oe(d)?I("span",{"aria-hidden":"true",className:ee,children:[t("span",{className:Z}),t("span",{className:te})]}):t("span",{"aria-hidden":"true",className:Q})]}):v,f={[U]:`${o}:${n}`,[W]:c,...typeof p=="function"?p(E):p},b=_?.[c],h=ne(d,l),x=b?t(de,{attrs:{...f,...h},selected:d?.selected===!0,hover:l!=="under",action:b,titleField:ce(m,w),children:R}):y?t("div",{...f,...h,children:t(S.Provider,{value:null,children:R})}):t("div",{...f,...h,children:R});return t(A.Provider,{value:E,children:N?N(x,E):x},c)});return t(u,{children:k(j)})}export{fe as CardPressTitled,A as CardRowContext,Ie as CardRowDrawn,Ne as CardTemplateRows,Re as RowEmptyGate,he as useCardRow};
1
+ "use client";import{Fragment as a,jsx as t,jsxs as D}from"react/jsx-runtime";import{createContext as I,useContext as i,useId as z}from"react";import{REPEAT_ATTRIBUTE as G,REPEAT_INDEX_ATTRIBUTE as Y}from"efficient-easel/draw";import{BOX_LINKED_CLASS as B}from"../../format/lib/content/box-link.js";import{BOX_HIDE_WHEN_ROW_EMPTY as Z,CARD_TEMPLATE_SLOT as q,cardTemplateLinesBetween as J,rowFilledProps as Q,templateBoxIsEmpty as k}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as ee,CARD_ACTION_CLASS as te,CARD_ACTION_HOVER_CLASS as re,CARD_ACTION_OFF_CLASS as ne,CARD_STATE_LINE_CLASS as oe,CARD_STATE_PICKED_BAR_CLASS as le,CARD_STATE_PICKED_CLASS as se,CARD_STATE_PICKED_WASH_CLASS as ie,CARD_STATE_UNDER_LINE_CLASS as ae,cardStateAttrs as ce,cardStatePicked as de,cardStateValue as ue}from"../../format/lib/content/card-state.js";import{usePageRecordRow as _e}from"./CurrentRecord.js";import{CardCopyCell as Ce}from"./InBoxContext.js";import{SECTION_FILL_CLASS as me}from"../../format/lib/content/section-min-height.js";import{say as Ae}from"../../format/lib/editor-words.js";import{HideTaker as F,usePeekViewHide as pe}from"./ViewHideRoot.js";function Oe({props:o,editing:r,children:n}){const e=i(m);return!r&&k(o,e?.row)?null:t(a,{children:n})}const S=I(null);function He({field:o,children:r}){const n=i(S);return t(a,{children:r(n&&n.field===o?n.id:void 0)})}function Se(o,r){return o?.find(e=>!!r[e.field]?.trim()&&!e.gates.some(l=>k({[Z]:l},r)))?.field??""}const m=I(null),T=I(null),Te={label:"text-[length:var(--size-label,12px)]"},fe=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${Te.label} text-fg-dim`;function ge({name:o,label:r,editing:n}){const e=i(T)?.(o),l=pe()!=="";return e!=null&&e!==!1?l?t(F,{className:"contents",children:e}):t(a,{children:e}):n?t(F,{className:fe,children:Ae("Shown by the section: {name}",{name:r?.trim()||o})}):null}function ye(){return i(m)}function Be({type:o,props:r,children:n}){const e=i(m),l=_e(),c=e?.row??l;return t(a,{children:n(Q(o,r,c,e?.ownerType,e?.fields,e?.slot),e,c)})}function Ee({attrs:o,selected:r,hover:n,action:e,titleField:l,children:c}){const d=z(),{press:f,disabled:s}=e,C=e.label?.trim(),A=!C&&l?{id:`${d}-title`,field:l}:null;return D("div",{...o,id:d,className:n&&!s?`${B} ${re}`:B,children:[t("button",{type:"button",[ee]:"",className:s?ne:te,"aria-pressed":r,...C?{"aria-label":C}:{"aria-labelledby":A?.id??d},...s?{"aria-disabled":!0,tabIndex:-1}:null,onClick:s?void 0:f}),t(S.Provider,{value:A,children:c})]})}function ke({ownerId:o,ownerType:r,slot:n=q,Template:e,rows:l,items:c,fields:d,states:f,stateLine:s,actions:C,pressTitles:A,previewHover:$,fallback:j,copyAttrs:E,wrapCopy:b,hostParts:v,children:K}){const x=i(m),X=i(S),U=i(T);if(!e||(e.blockCount??0)<=0)return t(a,{children:j});const V=x!==null,L=J(r),w=$??x?.previewHover,O=e.blockCount===1?t(Ce,{children:t(e,{className:me})}):t(e,{}),W=l.map((H,u)=>{const _=f?.[u],p={row:H,index:u,ownerType:r,slot:n,item:c?.[u],nested:V,...d?{fields:d}:null,..._?{state:_}:null,...L?{linesBetween:L}:null,...w?{previewHover:w}:null},h=ue(_)?D(a,{children:[O,s==="under"?t("span",{"aria-hidden":"true",className:ae}):de(_)?D("span",{"aria-hidden":"true",className:se,children:[t("span",{className:le}),t("span",{className:ie})]}):t("span",{"aria-hidden":"true",className:oe})]}):O,R={[G]:`${o}:${n}`,[Y]:u,...typeof E=="function"?E(p):E},g=C?.[u],P=ce(_,s),y=g?t(Ee,{attrs:{...R,...P},selected:_?.selected===!0,hover:s!=="under",action:g,titleField:Se(A,H),children:h}):X?t("div",{...R,...P,children:t(S.Provider,{value:null,children:h})}):t("div",{...R,...P,children:h}),N=b?b(y,p):y;return t(m.Provider,{value:p,children:v?t(T.Provider,{value:M=>v(p,M),children:N}):U?t(T.Provider,{value:null,children:N}):N},u)});return t(a,{children:K(W)})}export{He as CardPressTitled,m as CardRowContext,Be as CardRowDrawn,ke as CardTemplateRows,ge as HostPartDrawn,T as HostPartsContext,Oe as RowEmptyGate,ye as useCardRow};
@@ -1 +1 @@
1
- import{Fragment as O,jsx as e,jsxs as A}from"react/jsx-runtime";import{useContext as ur,useId as mr,useState as fr}from"react";import hr from"./BoxTabs.js";import{AccordionRowStyleContext as qe,BoxTabPaneContext as Qe,useAccordionRowStyle as Cr,useBoxPaneKind as br,useFirstCopyOpens as Sr,useIsTabPane as wr}from"./BoxTabPaneContext.js";import xr,{ACCORDION_COUNTER_RESET as pr}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as _r}from"./AccordionMark.js";import{accordionRowStyleOf as vr}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Rr,boxPhoneOrder as Pr}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as _s,InBoxContext as vs,useCellOfStretchedRow as Or,useFillsCell as Ar}from"./InBoxContext.js";import $r,{InsideSiteColumn as Rs,useInsideSiteGutter as Lr,useSectionRoot as yr}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Nr}from"./BoxSurfaceContext.js";import Er from"./PictureWash.js";import{BoxCellContext as Ps,NoCellBound as kr}from"./BoxCellContext.js";import{boxCellFractions as Ir}from"../lib/content/box-cell-bound.js";import{boundOf as Br}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as gr}from"./PhoneMenuTools.js";import{useCardRow as Tr}from"./CardRowContext.js";import{cardLineBetween as eo,framesItsCards as Hr}from"../../format/lib/content/card-place.js";import{rowLinkText as Fr}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Dr,MirrorContext as Vr,RowHandContext as Os,boxPlace as Mr,useHandedMirrorAbove as Wr,useHandedRows as Xr,useMirroredCopy as Gr,useUnderCardBox as jr}from"./MirrorContext.js";import{boxChildrenHand as Kr,isMirroredCopy as Ur,mirrorCardsActs as As,mirrorCardsOf as zr,mirroredBoxClass as Yr,MIRROR_ROW_CLASS as Jr,ownsCard as Zr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as oo,frameGutterOf as qr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as Qr,boxSideSpaceOf as et}from"../../format/lib/content/box-side-space.js";import{containerGapProps as $s}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ot,boxAlignViewClasses as st,boxBlockSpacingClass as nt,boxBlockSpacingViewClasses as rt,boxJustifyViewClasses as tt,boxWrapTabletClass as lt,boxFitContentClass as it,boxAccordionColumnsClass as Ls,boxRowColumnsClass as ct,boxRowTabletColumnsClass as at,boxRowTabletShareClass as dt,boxPhoneCellsShareLine as ut,boxPhoneRowClasses as ce,boxPhoneRowFits as mt,boxShareClasses as K,boxShareVars as ft,boxWrapClass as ht,BOX_GAP_ONLY_CLASS as Ct}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as bt,boxSeparatorSeamClass as St,boxSeparatorStyle as wt,isStripBox as xt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as pt,DEFAULT_LOOP_DIRECTION as _t,DEFAULT_LOOP_SECONDS as vt,isVerticalLoop as Rt}from"../../format/lib/animation/index.js";import{LoopTrack as Pt}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as $,BOX_OWNS_SIDES_CLASS as Ot,boxDarkenStyle as ys,boxPaintOf as At,boxFillFadeStyle as $t,boxFillViews as Lt,boxPlacementClasses as yt,boxCardProps as Nt,boxIsCard as Ns,boxRowPicture as Et,boxSwatchFill as kt,boxWashViews as It,CARD_SHADOW_CLASS as Bt,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as gt,boxShadowOnAnyView as Tt,boxShadowViewAttrs as Ht}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Ft,drawsSiteGutter as Dt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Vt,boxShapeClasses as Mt}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Wt}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as Xt,BOX_LINK_ATTR as Es,BOX_LINK_CLASS as ks,BOX_LINKED_CLASS as Gt,boxJumpBlocksClass as jt,boxJumpCss as Kt,boxJumpSlug as Ut,boxLinkOf as zt,siteLinkDraws as Yt}from"../../format/lib/content/box-link.js";import{SiteLink as Jt}from"../lib/site-runtime.js";import{sectionBorderStyle as Is}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as L,padSideValue as Re,sectionPadAttrs as Zt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Pe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as qt,rowFillInkStyle as Qt}from"../../format/lib/content/ink.js";import{useThemeLightInk as el}from"./ThemeLightInkContext.js";import{sizedBackground as so}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as ol,BOX_REVEAL_CSS as sl,BOX_REVEAL_SHEET as nl,PHOTO_HOST_ATTR as rl,resolveImageTreatment as tl}from"../../format/lib/content/image-treatment.js";import ll,{HoverArrowsSlot as il,HoverMediaArrows as cl}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as al,HOVER_ARROWS_HOST_CLASS as dl,HOVER_LAYER_GROUND as ul,cardRowHoverMedia as ml,hoverLayerName as fl}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as hl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as Cl,BOX_SHOW_ON_CARD_HOVER as bl}from"../../format/lib/animation/hover.js";import{BoxRail as Sl,BoxRailStop as wl,RAIL_STOPS_CLASS as xl,useTimelineRail as pl}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as _l,sharedColumnsClasses as vl,sharedColumnsCss as Rl,sharedRowsClasses as Pl,sharedRowsCss as Ol}from"../lib/content/box-shared-columns.js";import Bs from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as Al,PictureHoverMoveSheet as $l,PictureHoverZoom as Ll,pictureHoverMoveOf as yl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as Nl,stackGutterClass as El,stackLineCss as kl,stackOuterClass as Il,stackRowClass as Bl,storedStackLine as no}from"../lib/content/box-stack-line.js";const ro={"--sf-site-gutter":"0px"},gl={overflowX:"clip",overflowY:"visible"},Tl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},gs={desktop:!1,phone:!1},Ts="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",to=u=>u==null||u==="",lo=u=>!to(u)&&Number(u)===0;function Hl({children:u}){return e(O,{children:u(mr())})}function Fl({direction:u,label:Hs,tabShape:Fs,gap:io,gapPhone:Ds,gapTablet:Oe,justify:U,align:y,wrap:ae,share:Vs,sharePhone:z,shareTablet:T,wrapPhone:Ms,orderPhone:Ws,phoneRow:p,columns:m,columnsTablet:H,separator:f,stackBelow:de,blockSpacing:co,bgImage:Xs,bgImagePhone:Gs,rowImage:js,hoverShow:Ks,pictureHover:F,darken:Ae,darkenStyle:ue,darkenTablet:Us,darkenPhone:zs,darkenStyleTablet:Ys,darkenStylePhone:Js,placement:Zs,padV2:ao=!1,border:qs,borderTablet:Qs,borderPhone:en,borderUnits:uo,pad:r={},contained:$e=!0,fillHeight:N=!1,shadow:Le,shadowTablet:mo,shadowPhone:fo,justifyTablet:ho,justifyPhone:on,alignTablet:sn,alignPhone:nn,wrapTablet:Co,blockSpacingTablet:rn,blockSpacingPhone:tn,loop:h,scrollDirection:ye=_t,loopSeconds:ln=vt,loopDelay:cn=pt,editing:E=!1,fillColor:bo,fillColorTablet:an,fillColorPhone:dn,fillFade:un,swatch:mn,line:_,upcoming:fn,link:hn,rowLink:So,highlight:Cn,boxShape:wo,boxShapePhone:bn,boxShapeTablet:Sn,angle:wn,jumpHighlight:xn,anchor:pn,sharedSides:_n=gs,sharedRows:vn=!1,boxId:D,slotCount:Rn,mirrorCards:xo,content:i,rowTitle:Ne,startsOpen:Pn,rowStyle:On,sideSpace:An}){const n=Tr(),k=Nt({[x]:js},n!==null)[x],po=Ns({[x]:k}),c=po?gs:_n,$n=po?!1:vn,_o=Et({[x]:k},n?.row),C=_o??Xs,Ee=_o===null?Gs:void 0,vo=ur(Ps),[Ro,Ln]=fr(null),yn=Wr(),Po=jr()&&!(yn&&n!==null),v=Xr(),b=Zr({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:Po}),ke=Ks===bl&&n!==null&&!b&&!(E&&n.previewHover===!0),Oo=eo(qs,n,b),Ao=eo(Qs,n,b),$o=eo(en,n,b),Lo=n===null&&!Po&&v?.ids&&D?v.ids.indexOf(D):-1,me=Lo>=0&&v&&D?Mr(v,D,Lo):-1,S=me>=0?v?.hand??null:b&&v?.copies===!0?v.hand:null,s=S?.row?"row":u,d=S?.row?S.row.share:Vs,Nn=S?.row?S.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ws,fe=$n&&!S?.row,V=E?"":So&&n?Fr(n.row,So)??"":zt(hn),R=N?"":Mt(wo,bn,Sn),En=!N&&Vt(wo)!=="",I=Ut(xn,pn),Ie=kt({swatch:mn},n?.row),Y=Ie??At(bo),B=Ie?{className:"",style:{}}:Lt(bo,an,dn),kn=el(),yo=Qt(Ie,kn??void 0),In=_e(C)||_e(Ee),Bn=(Y||B.className)&&!In?$t(un):null,No=Y||B.className?{...Y?{backgroundColor:Y}:{},...B.style,...Bn,...yo}:void 0,Eo=pl(),J=_===!0&&s!=="tabs"&&s!=="accordion",t=Ns({bgImage:C,[x]:k}),ko=Wt(wn),Io=t?void 0:No,he=t?null:Cn??null,gn=ko||he?{...Io,...ko,...he}:Io,Ce=gr(),Tn=yr(),Hn=wr(),Bo=br(),go=Cr(),Fn=Sr(),l=s==="accordion",Be=vr(On),Z=l&&Be==="numbered",ge=l&&Be==="chevron",Te=Ar(),Dn=Or(),M=xt(s,f),a=h==="scroll"&&s!=="tabs"&&!l,Vn=Gr(),be=b||me>=0&&S!==null,To=S?S.mirror:xo,Mn=me>=0?me:n?.index,q=b&&Hr(n?.ownerType),Ho=As({direction:s,separator:f,loop:h,line:_,bgImage:C,[x]:k,columns:m,columnsTablet:H,share:d,wrap:ae},be,c.desktop)&&Ur(To,Mn),Wn=As({direction:s,separator:f,loop:h,line:_,bgImage:C,[x]:k,columns:m,columnsTablet:H,share:d,wrap:ae},be,c.desktop)&&zr(To)!==null,W=ct({direction:s,separator:f,loop:h,line:_,columns:m}),g=at({direction:s,separator:f,loop:h,line:_,columnsTablet:H}),Q=dt({direction:s,separator:f,loop:h,line:_,columns:m,columnsTablet:H,share:d,shareTablet:T}),ee=et(An)===Qr,He=qr(ee),Fo=J&&no(de)===Nl,X=s==="row"&&!t&&!M&&!a&&(!J||Fo)&&g===""&&Q===""?no(de):void 0,G=X??(s==="column"&&!t?no(de):void 0),Xn=Lr(),Se=vl(c,i.blockCount??0,X),Gn=(Se&&(!n||n.index===0)?Rl(c,i.blockCount??0,X):"")+(fe&&(!n||n.index===0)?Ol(fe,i.blockCount??0):""),Do=Pl(fe,i.blockCount??0),Vo=g!==""?Number(H)>=2:Q===""||K(T)!=="",Mo=g!==""||Q!=="",Wo=s==="row"&&!M&&!a&&_!==!0,Fe=Wo&&!c.phone&&!c.desktop?Rr(Pr(Nn,i.blockIds??[]),{editing:E}):void 0,Xo=Fe!==void 0&&!E,jn=W!==""?Number(m)>=2:K(d)!=="",Go=!t&&!l&&!Wn&&!c.desktop&&!c.phone,we=Go&&!a?tt(U,ho,on):"",De=t||be?"":Yr(Vn,s,a?void 0:U,y,we?ho:void 0),Kn=/view-wide:max-view-desktop:justify-/.test(De)?we.split(" ").filter(o=>!o.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,Un=Go&&s==="row"?st(y,sn,nn):"",zn=!a&&!l&&W===""&&g===""&&!c.desktop?lt(ae,Co):"",jo=[l?"":K(d),s==="row"?it(d):"",W,g,Q,nt(l?"gap":co),bt(s,f),l&&!Z&&!ge?"border-t border-line":"",Kn,Un,zn,l?"":rt(co,rn,tn),l?Ls(m,p,Z||ge):"",Z?pr:""].filter(Boolean).join(" "),Yn=jo?` ${jo}`:"",Ko=["flex",s==="row"?M||a?"flex-row":`flex-row ${ce(p,z,Ms,Co)}`:"flex-col",ht(a||l?!1:ae),t?yt(Zs??"center",s):ot(a||l?void 0:U,l?void 0:y)+(De?` ${De}`:"")].join(" ")+Yn,oe=N||t||R||Te?` ${Pe}`:"",Ve=En?` ${R}`:R?`${oe} ${R}`:oe,Uo=Dn&&s==="column"&&!t&&!a&&K(d)===""&&(typeof U=="string"&&U!=="start"||we!==""),zo=oe||(Uo?` ${Pe}`:""),Me=V?` ${Gt}`:"",We=t||Ce||ao?"":" py-6",Jn=X===void 0?"":` ${Bl(X)}`,Yo=G===void 0||ee?"":` ${El(G)}`,Xe=G===void 0?"":` ${Il(G)}`,Zn=`${oo}${We} ${He}${Ve}${Me}${Yo}${Xe}`,qn=Ce?`${Ve}${Me}${Xe}`.trim():`w-full${We}${Ve}${Me}${Xe}`,se=(Z||ge)&&Ls(m,p)===""?$s("Flex",0,"block"):$s("Flex",io,s==="row"?"inline":"block",Ds,M||a?void 0:Oe),Jo=ft(d,T,s==="row"?i.blockCount??0:0),Zo=M?{...se.style,...wt(s,f)}:se.style,Qn=Jo?{...Zo,...Jo}:Zo,Ge=(o="")=>e(i,{className:`${Ko}${Ho?` ${Jr}`:""}${se.className}${zo}${Jn}${o?` ${o}`:""}${J?` ${xl}`:""}${I?` ${jt(I)}`:""}${Se}${Do}`,style:Qn,minEmptyHeight:120,...Fe?{cell:Fe}:null}),qo=Rt(ye)?"":St(s,f),Qo=a?e(Pt,{direction:ye,seconds:ln,delay:cn,editing:E,copy:o=>Ge(o&&qo?`${o} ${qo}`:o)}):Z?A(O,{children:[e("style",{children:_r}),Ge()]}):Ge(),je=s==="tabs"?e(hr,{className:`${Ko}${se.className}${Te&&!N&&!t&&!R?"":oe}`,style:se.style,shape:Fs,children:Qo}):Qo,Ke=l?e(Qe.Provider,{value:"accordion",children:e(qe.Provider,{value:Be,children:je})}):Bo?e(Qe.Provider,{value:!1,children:e(qe.Provider,{value:"plain",children:je})}):je,es=s==="row"&&!t&&(y===void 0||y==="stretch"),er={stretchedRow:es,fillingColumn:s==="column"&&(Te||Uo),columnsRow:W!==""||g!==""||Se!==""||Do!==""||s==="row"&&(Array.isArray(d)||Array.isArray(T))||Xo,...Xo?{phoneCells:!0}:null,...es&&Wo&&(i.blockCount??0)>=2&&jn?{picturesFillRow:!0}:null,...Mo&&!Vo?{fillFrom:"desktop"}:null,...ut(p,z)&&(!Mo||Vo)?{phoneRowFills:!0}:null,...D?{id:D}:null},os=n===null?Kr({direction:s,loop:h,bgImage:C,[x]:k,columns:m,mirrorCards:xo},!1):null,ss=os?e(Os.Provider,{value:{hand:os,ids:i.blockIds??[],boxes:[]},children:Ke}):v?e(Os.Provider,{value:null,children:Ke}):Ke,ns=e(vs.Provider,{value:er,children:e(_s.Provider,{value:!1,children:be?e(Vr.Provider,{value:Ho,children:e(Dr.Provider,{value:!b,children:ss})}):ss})}),or=Ne?.blockCount??0,rs=Bo==="accordion"&&!!Ne&&(E||or>0)?e(xr,{startsOpen:Pn===!0||Fn&&b&&n?.index===0,editing:E,numbered:go==="numbered",chevron:go==="chevron",title:e(vs.Provider,{value:Tl,children:e(_s.Provider,{value:!1,children:e(Qe.Provider,{value:!1,children:e(qe.Provider,{value:"plain",children:e(Ne,{className:`min-w-0 flex-1 ${Ct}`,minEmptyHeight:24})})})})}),children:ns}):ns,Ue=J?e(Sl,{row:s==="row",stops:i.blockCount??0,desktopLine:X!==void 0&&Fo,children:rs}):rs,sr=Hs?.trim()||(Hn?"":void 0),nr={values:r,frame:We?24:0},rr=o=>Eo?e(wl,{on:Eo,future:fn===!0,children:o}):o,tr=o=>Yt(V)?e(Jt,{href:V,newTab:"auto",className:ks,"aria-labelledby":o,[Es]:""}):e("a",{href:V,className:ks,"aria-labelledby":o,[Es]:""}),ts=(I?Kt(I):"")+Gn+(G===void 0||n&&n.index!==0?"":kl(G,{gutter:!ee})),ls=ts?e("style",{dangerouslySetInnerHTML:{__html:ts}}):null,ne=Ft({loop:h,direction:s,scrollDirection:ye,bgImage:C,[x]:k}),lr=c.desktop&&Se!==""&&!Y&&!B.className&&!Is(Oo,$o,Ao,uo)&&!Tt(Le,mo,fo)&&!V&&!R&&!N&&!I&&!Dt($e&&!ne,Xn)&&lo(io)&&(to(Oe)||lo(Oe))&&ao&&Object.values(r).every(o=>to(o)||lo(o)),ir=o=>({...lr?{[_l]:""}:null,...t?null:{...gt(Le),...Ht(Le,mo,fo)},...I?{[Xt]:I}:null,...o?{id:o}:null}),is=W!==""?Number(m):0,cr=ce(p,z)===ce(void 0),ar=(s==="column"||s==="row"&&!M&&!a&&(is===1&&cr||is===0&&i.blockCount===1))&&!t&&!J&&!Ce,cs=t&&Tn&&!Ce,xe=!t&&n!==null?ys(Ae,ue):null,as=ke||xe?A(O,{children:[ke?e(Bs,{sheet:sl,name:nl}):null,xe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:xe}):null]}):null,ds=[ke?ol:"",xe?"relative isolate":""].filter(Boolean).join(" "),us=o=>as?A(O,{children:[as,o]}):o,ms=(o,P)=>rr(e($r,{contained:$e&&!ne,style:ne?ro:void 0,framedClass:Zn,fillClass:qn,columnClass:`${oo} ${He}${zo}${Yo}`,tabLabel:sr,pad:t?void 0:nr,border:Is(Oo,$o,Ao,uo),outerAttrs:ir(P),box:!0,edge:ar,outerStyle:gn,outerClass:t?ds||void 0:[B.className,he?hl:"",he&&yo?Cl:"",ds].filter(Boolean).join(" ")||void 0,bleed:cs,siteSide:ee,children:ls||P?A(O,{children:[ls,P?tr(P):null,ne?e(Rs,{children:o}):o]}):ne?e(Rs,{children:o}):o})),ze=o=>V?e(Hl,{children:P=>ms(us(o),P)}):ms(us(o)),fs=o=>vo.bound?e(kr,{children:o}):o;if(!t){const o=y===void 0||y==="stretch",P=(K(d)!==""||W!==""||g!=="")&&!mt(p,z)&&!(Q!==""&&K(T)==="")&&(o||ce(p)!==ce(void 0));if(!(s==="row"?P:s==="column"&&o))return ze(fs(Ue));const ps=Ir({direction:s,separator:f,loop:h,line:_,share:d,shareTablet:T,sharePhone:z,phoneRow:p,columns:m,columnsTablet:H,stackBelow:de,shared:c.desktop||c.phone||fe,count:Rn}),dr={hasWidth:!0,...ps?{bound:Br(ps,vo.bound)}:null};return ze(e(Ps.Provider,{value:dr,children:Ue}))}const re=_e(C),te=re?ys(Ae,ue):null,pe=re?It({darken:Ae,darkenStyle:ue,darkenTablet:Us,darkenStyleTablet:Ys,darkenPhone:zs,darkenStylePhone:Js}):{className:"",style:{}},Ye=_e(Ee),hs=re?Ye?{"--sf-box-bg":so(C??""),"--sf-box-bg-p":so(Ee??"")}:{backgroundImage:so(C??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Cs=tl(void 0,void 0,F),j=Cs.className?Cs:null,le=re&&n&&F?.kind==="nextImage"&&F.media?ml(n,F.media):null,w=re?yl(F,ue)??(le?Al:null):null,bs=F?.media?.cover??"picture",Je=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(il.Provider,{value:Ln,children:e(ll,{media:le,name:fl(n?.row),cover:bs,ground:ul[bs],arrowsAbove:!0})})}):null,ie=j!==null||!!w?.zoom,Ss=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${Ye?` ${Ts}`:""}${j?` ${j.className}`:""}`,style:{...hs,...j?.style??{}}}):null,Ze=Zt({...r,top:ve(r.top)??L($.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??L($.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??L($.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??L($.phone,r.unitPhone,"mobile"),left:Re(r.left)??L($.side,r.unit,"desktop"),right:Re(r.right)??L($.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??L($.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??L($.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),ws=e("div",{className:`relative z-[1] ${Ot} ${Ze?.className??""}${N||R?` ${Pe}`:""}`.trimEnd(),style:te?{...Ze?.style,...ro,...qt}:{...Ze?.style,...ro},children:fs(Ue)}),xs=cs&&$e?e("div",{className:`${oo} ${He}${N||R?` ${Pe}`:""}`,children:ws}):ws;return ze(e(O,{children:A("div",{className:`relative isolate overflow-hidden ${Bt}${oe}${Ye&&!ie?` ${Ts}`:""}${B.className?` ${B.className}`:""}${w?` ${w.className}`:""}`,style:{...q?gl:{},...No,...ie?{}:hs,...w?w.style:{}},...j||le?{[rl]:""}:{},children:[e($l,{move:w}),ie&&A(O,{children:[e(Bs,{sheet:j?.sheet}),w?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:A(Ll,{move:w,className:"absolute inset-0",children:[Ss,Je]})}):A(O,{children:[Ss,Je]})]}),!ie&&Je,e(Er,{wash:te&&pe.className?{...te,...pe.style}:te,hover:w?.washHover,...q?{className:"rounded-[inherit]"}:{},...pe.className?{restClassName:pe.className}:{}}),te?e(Nr,{children:xs}):xs,le?e("div",{[al]:"",className:dl,children:Ro?e(cl,{state:Ro}):null}):null]})}))}export{Fl as default};
1
+ import{Fragment as P,jsx as e,jsxs as A}from"react/jsx-runtime";import{useContext as ur,useId as mr,useState as fr}from"react";import hr from"./BoxTabs.js";import{AccordionRowStyleContext as qe,BoxTabPaneContext as Qe,useAccordionRowStyle as Cr,useBoxPaneKind as br,useFirstCopyOpens as Sr,useIsTabPane as wr}from"./BoxTabPaneContext.js";import xr,{ACCORDION_COUNTER_RESET as pr}from"./BoxAccordionRow.js";import{ACCORDION_MARK_SHEET as _r}from"./AccordionMark.js";import{accordionRowStyleOf as vr}from"../../format/lib/content/accordion-row-style.js";import{boxPhoneCell as Rr,boxPhoneOrder as Or}from"../../format/lib/content/box-phone-place.js";import{CellFillContext as _s,InBoxContext as vs,useCellOfStretchedRow as Pr,useFillsCell as Ar}from"./InBoxContext.js";import $r,{InsideSiteColumn as Rs,useInsideSiteGutter as Lr,useSectionRoot as yr}from"./SiteGutterFrame.js";import{BoxSurfaceProvider as Nr}from"./BoxSurfaceContext.js";import Er from"./PictureWash.js";import{BoxCellContext as Os,NoCellBound as kr}from"./BoxCellContext.js";import{boxCellFractions as Ir}from"../lib/content/box-cell-bound.js";import{boundOf as Br}from"../../format/lib/content/cell-picture-sizes.js";import{useInSiteHeader as gr}from"./PhoneMenuTools.js";import{useCardRow as Tr}from"./CardRowContext.js";import{cardLineBetween as eo,framesItsCards as Fr}from"../../format/lib/content/card-place.js";import{rowLinkText as Hr}from"../../format/lib/content/card-template.js";import{HandedMirrorContext as Dr,MirrorContext as Vr,RowHandContext as Ps,boxPlace as Mr,useHandedMirrorAbove as Wr,useHandedRows as Xr,useMirroredCopy as Gr,useUnderCardBox as jr}from"./MirrorContext.js";import{boxChildrenHand as Kr,isMirroredCopy as Ur,mirrorCardsActs as As,mirrorCardsOf as zr,mirroredBoxClass as Yr,MIRROR_ROW_CLASS as Jr,ownsCard as Zr}from"../../format/lib/content/mirror-cards.js";import{FRAME_BASE as oo,frameGutterOf as qr}from"./BlockFrame.js";import{BOX_SIDE_SPACE_SITE as Qr,boxSideSpaceOf as et}from"../../format/lib/content/box-side-space.js";import{containerGapProps as $s}from"../../format/lib/content/container-gap.js";import{boxLayoutClasses as ot,boxAlignViewClasses as st,boxBlockSpacingClass as nt,boxBlockSpacingViewClasses as rt,boxJustifyViewClasses as tt,boxWrapTabletClass as lt,boxFitContentClass as it,boxAccordionColumnsClass as Ls,boxRowColumnsClass as ct,boxRowTabletColumnsClass as at,boxRowTabletShareClass as dt,boxPhoneCellsShareLine as ut,boxPhoneRowClasses as ce,boxPhoneRowFits as mt,boxShareClasses as K,boxShareVars as ft,boxWrapClass as ht,BOX_GAP_ONLY_CLASS as Ct}from"../../format/lib/content/box-layout.js";import{boxSeparatorClasses as bt,boxSeparatorSeamClass as St,boxSeparatorStyle as wt,isStripBox as xt}from"../../format/lib/content/box-separator.js";import{DEFAULT_LOOP_DELAY as pt,DEFAULT_LOOP_DIRECTION as _t,DEFAULT_LOOP_SECONDS as vt,isVerticalLoop as Rt}from"../../format/lib/animation/index.js";import{LoopTrack as Ot}from"../lib/animation/LoopTrack.js";import{BOX_CARD_PAD as $,BOX_OWNS_SIDES_CLASS as Pt,boxDarkenStyle as ys,boxPaintOf as At,boxFillFadeStyle as $t,boxFillViews as Lt,boxPlacementClasses as yt,boxCardProps as Nt,boxIsCard as Ns,boxRowPicture as Et,boxSwatchFill as kt,boxWashViews as It,CARD_NO_LIFT_CLASS as Bt,CARD_SHADOW_CLASS as gt,isBackgroundBox as _e}from"../../format/lib/content/box-background.js";import{BOX_ROW_IMAGE_PROP as x}from"../../format/lib/content/box-card-rule.js";import{boxShadowAttrs as Tt,boxShadowOnAnyView as Ft,boxShadowViewAttrs as Ht}from"../../format/lib/content/box-shadow.js";import{boxRunsEdgeToEdge as Dt,drawsSiteGutter as Vt}from"../../format/lib/content/site-gutter.js";import{boxShapeClass as Mt,boxShapeClasses as Wt}from"../../format/lib/content/box-shape.js";import{boxAngleStyle as Xt}from"../../format/lib/content/box-angle.js";import{BOX_JUMP_ATTR as Gt,BOX_LINK_ATTR as Es,BOX_LINK_CLASS as ks,BOX_LINKED_CLASS as jt,boxJumpBlocksClass as Kt,boxJumpCss as Ut,boxJumpSlug as zt,boxLinkOf as Yt,siteLinkDraws as Jt}from"../../format/lib/content/box-link.js";import{SiteLink as Zt}from"../lib/site-runtime.js";import{sectionBorderStyle as Is}from"../../format/lib/content/borders.js";import{finiteNumber as ve}from"../../format/lib/finite-number.js";import{padDefaultIn as L,padSideValue as Re,sectionPadAttrs as qt}from"../lib/content/section-padding.js";import{SECTION_FILL_CLASS as Oe}from"../../format/lib/content/section-min-height.js";import{ON_MEDIA_INK_STYLE as Qt,rowFillInkStyle as el}from"../../format/lib/content/ink.js";import{useThemeLightInk as ol}from"./ThemeLightInkContext.js";import{sizedBackground as so}from"../../format/lib/sized-image.js";import{BOX_REVEAL_CLASS as sl,BOX_REVEAL_CSS as nl,BOX_REVEAL_SHEET as rl,PHOTO_HOST_ATTR as tl,resolveImageTreatment as ll}from"../../format/lib/content/image-treatment.js";import il,{HoverArrowsSlot as cl,HoverMediaArrows as al}from"./HoverMediaLayer.js";import{HOVER_ARROWS_HOST_ATTR as dl,HOVER_ARROWS_HOST_CLASS as ul,HOVER_LAYER_GROUND as ml,cardRowHoverMedia as fl,hoverLayerName as hl}from"../../format/lib/content/hover-media.js";import{BOX_HIGHLIGHT_CLASS as Cl,BOX_HIGHLIGHT_OVER_ROW_INK_CLASS as bl,BOX_SHOW_ON_CARD_HOVER as Sl}from"../../format/lib/animation/hover.js";import{BoxRail as wl,BoxRailStop as xl,RAIL_STOPS_CLASS as pl,useTimelineRail as _l}from"./TimelineRail.js";import{SHARED_PLAIN_ATTR as vl,sharedColumnsClasses as Rl,sharedColumnsCss as Ol,sharedRowsClasses as Pl,sharedRowsCss as Al}from"../lib/content/box-shared-columns.js";import Bs from"./PhotoHoverSheet.js";import{PICTURE_FRAME_ONLY as $l,PictureHoverMoveSheet as Ll,PictureHoverZoom as yl,pictureHoverMoveOf as Nl}from"./PictureHoverMove.js";import{BOX_DESKTOP_LINE as El,stackGutterClass as kl,stackLineCss as Il,stackOuterClass as Bl,stackRowClass as gl,storedStackLine as no}from"../lib/content/box-stack-line.js";const ro={"--sf-site-gutter":"0px"},Tl={overflowX:"clip",overflowY:"visible"},Fl={stretchedRow:!1,fillingColumn:!1,columnsRow:!1},gs={desktop:!1,phone:!1},Ts="bg-cover bg-center bg-[image:var(--sf-box-bg)] max-view-wide:bg-[image:var(--sf-box-bg-p)]",to=u=>u==null||u==="",lo=u=>!to(u)&&Number(u)===0;function Hl({children:u}){return e(P,{children:u(mr())})}function Dl({direction:u,label:Fs,tabShape:Hs,gap:io,gapPhone:Ds,gapTablet:Pe,justify:U,align:y,wrap:ae,share:Vs,sharePhone:z,shareTablet:T,wrapPhone:Ms,orderPhone:Ws,phoneRow:p,columns:m,columnsTablet:F,separator:f,stackBelow:de,blockSpacing:co,bgImage:Xs,bgImagePhone:Gs,rowImage:js,hoverShow:Ks,pictureHover:H,darken:Ae,darkenStyle:ue,darkenTablet:Us,darkenPhone:zs,darkenStyleTablet:Ys,darkenStylePhone:Js,placement:Zs,padV2:ao=!1,border:qs,borderTablet:Qs,borderPhone:en,borderUnits:uo,pad:r={},contained:$e=!0,fillHeight:N=!1,shadow:Le,shadowTablet:mo,shadowPhone:fo,justifyTablet:ho,justifyPhone:on,alignTablet:sn,alignPhone:nn,wrapTablet:Co,blockSpacingTablet:rn,blockSpacingPhone:tn,loop:C,scrollDirection:ye=_t,loopSeconds:ln=vt,loopDelay:cn=pt,editing:E=!1,fillColor:bo,fillColorTablet:an,fillColorPhone:dn,fillFade:un,swatch:mn,line:_,upcoming:fn,link:hn,rowLink:So,highlight:Cn,boxShape:wo,boxShapePhone:bn,boxShapeTablet:Sn,angle:wn,jumpHighlight:xn,anchor:pn,sharedSides:_n=gs,sharedRows:vn=!1,boxId:D,slotCount:Rn,mirrorCards:xo,content:i,rowTitle:Ne,startsOpen:On,rowStyle:Pn,sideSpace:An}){const n=Tr(),k=Nt({[x]:js},n!==null)[x],po=Ns({[x]:k}),c=po?gs:_n,$n=po?!1:vn,_o=Et({[x]:k},n?.row),b=_o??Xs,Ee=_o===null?Gs:void 0,vo=ur(Os),[Ro,Ln]=fr(null),yn=Wr(),Oo=jr()&&!(yn&&n!==null),v=Xr(),h=Zr({inCopy:n!==null,nestedCopy:n?.nested===!0,underBox:Oo}),ke=Ks===Sl&&n!==null&&!h&&!(E&&n.previewHover===!0),Po=eo(qs,n,h),Ao=eo(Qs,n,h),$o=eo(en,n,h),Lo=n===null&&!Oo&&v?.ids&&D?v.ids.indexOf(D):-1,me=Lo>=0&&v&&D?Mr(v,D,Lo):-1,S=me>=0?v?.hand??null:h&&v?.copies===!0?v.hand:null,s=S?.row?"row":u,d=S?.row?S.row.share:Vs,Nn=S?.row?S.row.phoneReverse?[...i.blockIds??[]].reverse():void 0:Ws,fe=$n&&!S?.row,V=E?"":So&&n?Hr(n.row,So)??"":Yt(hn),R=N?"":Wt(wo,bn,Sn),En=!N&&Mt(wo)!=="",I=zt(xn,pn),Ie=kt({swatch:mn},n?.row),Y=Ie??At(bo),B=Ie?{className:"",style:{}}:Lt(bo,an,dn),kn=ol(),yo=el(Ie,kn??void 0),In=_e(b)||_e(Ee),Bn=(Y||B.className)&&!In?$t(un):null,No=Y||B.className?{...Y?{backgroundColor:Y}:{},...B.style,...Bn,...yo}:void 0,Eo=_l(),J=_===!0&&s!=="tabs"&&s!=="accordion",t=Ns({bgImage:b,[x]:k}),ko=Xt(wn),Io=t?void 0:No,he=t?null:Cn??null,gn=ko||he?{...Io,...ko,...he}:Io,Ce=gr(),Tn=yr(),Fn=wr(),Bo=br(),go=Cr(),Hn=Sr(),l=s==="accordion",Be=vr(Pn),Z=l&&Be==="numbered",ge=l&&Be==="chevron",Te=Ar(),Dn=Pr(),M=xt(s,f),a=C==="scroll"&&s!=="tabs"&&!l,Vn=Gr(),be=h||me>=0&&S!==null,To=S?S.mirror:xo,Mn=me>=0?me:n?.index,q=h&&Fr(n?.ownerType),Fo=As({direction:s,separator:f,loop:C,line:_,bgImage:b,[x]:k,columns:m,columnsTablet:F,share:d,wrap:ae},be,c.desktop)&&Ur(To,Mn),Wn=As({direction:s,separator:f,loop:C,line:_,bgImage:b,[x]:k,columns:m,columnsTablet:F,share:d,wrap:ae},be,c.desktop)&&zr(To)!==null,W=ct({direction:s,separator:f,loop:C,line:_,columns:m}),g=at({direction:s,separator:f,loop:C,line:_,columnsTablet:F}),Q=dt({direction:s,separator:f,loop:C,line:_,columns:m,columnsTablet:F,share:d,shareTablet:T}),ee=et(An)===Qr,Fe=qr(ee),Ho=J&&no(de)===El,X=s==="row"&&!t&&!M&&!a&&(!J||Ho)&&g===""&&Q===""?no(de):void 0,G=X??(s==="column"&&!t?no(de):void 0),Xn=Lr(),Se=Rl(c,i.blockCount??0,X),Gn=(Se&&(!n||n.index===0)?Ol(c,i.blockCount??0,X):"")+(fe&&(!n||n.index===0)?Al(fe,i.blockCount??0):""),Do=Pl(fe,i.blockCount??0),Vo=g!==""?Number(F)>=2:Q===""||K(T)!=="",Mo=g!==""||Q!=="",Wo=s==="row"&&!M&&!a&&_!==!0,He=Wo&&!c.phone&&!c.desktop?Rr(Or(Nn,i.blockIds??[]),{editing:E}):void 0,Xo=He!==void 0&&!E,jn=W!==""?Number(m)>=2:K(d)!=="",Go=!t&&!l&&!Wn&&!c.desktop&&!c.phone,we=Go&&!a?tt(U,ho,on):"",De=t||be?"":Yr(Vn,s,a?void 0:U,y,we?ho:void 0),Kn=/view-wide:max-view-desktop:justify-/.test(De)?we.split(" ").filter(o=>!o.startsWith("view-wide:max-view-desktop:justify-")).join(" "):we,Un=Go&&s==="row"?st(y,sn,nn):"",zn=!a&&!l&&W===""&&g===""&&!c.desktop?lt(ae,Co):"",jo=[l?"":K(d),s==="row"?it(d):"",W,g,Q,nt(l?"gap":co),bt(s,f),l&&!Z&&!ge?"border-t border-line":"",Kn,Un,zn,l?"":rt(co,rn,tn),l?Ls(m,p,Z||ge):"",Z?pr:""].filter(Boolean).join(" "),Yn=jo?` ${jo}`:"",Ko=["flex",s==="row"?M||a?"flex-row":`flex-row ${ce(p,z,Ms,Co)}`:"flex-col",ht(a||l?!1:ae),t?yt(Zs??"center",s):ot(a||l?void 0:U,l?void 0:y)+(De?` ${De}`:"")].join(" ")+Yn,oe=N||t||R||Te?` ${Oe}`:"",Ve=En?` ${R}`:R?`${oe} ${R}`:oe,Uo=Dn&&s==="column"&&!t&&!a&&K(d)===""&&(typeof U=="string"&&U!=="start"||we!==""),zo=oe||(Uo?` ${Oe}`:""),Me=V?` ${jt}`:"",We=t||Ce||ao?"":" py-6",Jn=X===void 0?"":` ${gl(X)}`,Yo=G===void 0||ee?"":` ${kl(G)}`,Xe=G===void 0?"":` ${Bl(G)}`,Zn=`${oo}${We} ${Fe}${Ve}${Me}${Yo}${Xe}`,qn=Ce?`${Ve}${Me}${Xe}`.trim():`w-full${We}${Ve}${Me}${Xe}`,se=(Z||ge)&&Ls(m,p)===""?$s("Flex",0,"block"):$s("Flex",io,s==="row"?"inline":"block",Ds,M||a?void 0:Pe),Jo=ft(d,T,s==="row"?i.blockCount??0:0),Zo=M?{...se.style,...wt(s,f)}:se.style,Qn=Jo?{...Zo,...Jo}:Zo,Ge=(o="")=>e(i,{className:`${Ko}${Fo?` ${Jr}`:""}${se.className}${zo}${Jn}${o?` ${o}`:""}${J?` ${pl}`:""}${I?` ${Kt(I)}`:""}${Se}${Do}`,style:Qn,minEmptyHeight:120,...He?{cell:He}:null}),qo=Rt(ye)?"":St(s,f),Qo=a?e(Ot,{direction:ye,seconds:ln,delay:cn,editing:E,copy:o=>Ge(o&&qo?`${o} ${qo}`:o)}):Z?A(P,{children:[e("style",{children:_r}),Ge()]}):Ge(),je=s==="tabs"?e(hr,{className:`${Ko}${se.className}${Te&&!N&&!t&&!R?"":oe}`,style:se.style,shape:Hs,children:Qo}):Qo,Ke=l?e(Qe.Provider,{value:"accordion",children:e(qe.Provider,{value:Be,children:je})}):Bo?e(Qe.Provider,{value:!1,children:e(qe.Provider,{value:"plain",children:je})}):je,es=s==="row"&&!t&&(y===void 0||y==="stretch"),er={stretchedRow:es,fillingColumn:s==="column"&&(Te||Uo),columnsRow:W!==""||g!==""||Se!==""||Do!==""||s==="row"&&(Array.isArray(d)||Array.isArray(T))||Xo,...Xo?{phoneCells:!0}:null,...es&&Wo&&(i.blockCount??0)>=2&&jn?{picturesFillRow:!0}:null,...Mo&&!Vo?{fillFrom:"desktop"}:null,...ut(p,z)&&(!Mo||Vo)?{phoneRowFills:!0}:null,...D?{id:D}:null},os=n===null?Kr({direction:s,loop:C,bgImage:b,[x]:k,columns:m,mirrorCards:xo},!1):null,ss=os?e(Ps.Provider,{value:{hand:os,ids:i.blockIds??[],boxes:[]},children:Ke}):v?e(Ps.Provider,{value:null,children:Ke}):Ke,ns=e(vs.Provider,{value:er,children:e(_s.Provider,{value:!1,children:be?e(Vr.Provider,{value:Fo,children:e(Dr.Provider,{value:!h,children:ss})}):ss})}),or=Ne?.blockCount??0,rs=Bo==="accordion"&&!!Ne&&(E||or>0)?e(xr,{startsOpen:On===!0||Hn&&h&&n?.index===0,editing:E,numbered:go==="numbered",chevron:go==="chevron",title:e(vs.Provider,{value:Fl,children:e(_s.Provider,{value:!1,children:e(Qe.Provider,{value:!1,children:e(qe.Provider,{value:"plain",children:e(Ne,{className:`min-w-0 flex-1 ${Ct}`,minEmptyHeight:24})})})})}),children:ns}):ns,Ue=J?e(wl,{row:s==="row",stops:i.blockCount??0,desktopLine:X!==void 0&&Ho,children:rs}):rs,sr=Fs?.trim()||(Fn?"":void 0),nr={values:r,frame:We?24:0},rr=o=>Eo?e(xl,{on:Eo,future:fn===!0,children:o}):o,tr=o=>Jt(V)?e(Zt,{href:V,newTab:"auto",className:ks,"aria-labelledby":o,[Es]:""}):e("a",{href:V,className:ks,"aria-labelledby":o,[Es]:""}),ts=(I?Ut(I):"")+Gn+(G===void 0||n&&n.index!==0?"":Il(G,{gutter:!ee})),ls=ts?e("style",{dangerouslySetInnerHTML:{__html:ts}}):null,ne=Dt({loop:C,direction:s,scrollDirection:ye,bgImage:b,[x]:k}),lr=c.desktop&&Se!==""&&!Y&&!B.className&&!Is(Po,$o,Ao,uo)&&!Ft(Le,mo,fo)&&!V&&!R&&!N&&!I&&!Vt($e&&!ne,Xn)&&lo(io)&&(to(Pe)||lo(Pe))&&ao&&Object.values(r).every(o=>to(o)||lo(o)),ir=o=>({...lr?{[vl]:""}:null,...t?null:{...Tt(Le),...Ht(Le,mo,fo)},...I?{[Gt]:I}:null,...o?{id:o}:null}),is=W!==""?Number(m):0,cr=ce(p,z)===ce(void 0),ar=(s==="column"||s==="row"&&!M&&!a&&(is===1&&cr||is===0&&i.blockCount===1))&&!t&&!J&&!Ce,cs=t&&Tn&&!Ce,xe=!t&&n!==null?ys(Ae,ue):null,as=ke||xe?A(P,{children:[ke?e(Bs,{sheet:nl,name:rl}):null,xe?e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:xe}):null]}):null,ds=[ke?sl:"",xe?"relative isolate":""].filter(Boolean).join(" "),us=o=>as?A(P,{children:[as,o]}):o,ms=(o,O)=>rr(e($r,{contained:$e&&!ne,style:ne?ro:void 0,framedClass:Zn,fillClass:qn,columnClass:`${oo} ${Fe}${zo}${Yo}`,tabLabel:sr,pad:t?void 0:nr,border:Is(Po,$o,Ao,uo),outerAttrs:ir(O),box:!0,edge:ar,outerStyle:gn,outerClass:t?ds||void 0:[B.className,he?Cl:"",he&&yo?bl:"",ds].filter(Boolean).join(" ")||void 0,bleed:cs,siteSide:ee,children:ls||O?A(P,{children:[ls,O?tr(O):null,ne?e(Rs,{children:o}):o]}):ne?e(Rs,{children:o}):o})),ze=o=>V?e(Hl,{children:O=>ms(us(o),O)}):ms(us(o)),fs=o=>vo.bound?e(kr,{children:o}):o;if(!t){const o=y===void 0||y==="stretch",O=(K(d)!==""||W!==""||g!=="")&&!mt(p,z)&&!(Q!==""&&K(T)==="")&&(o||ce(p)!==ce(void 0));if(!(s==="row"?O:s==="column"&&o))return ze(fs(Ue));const ps=Ir({direction:s,separator:f,loop:C,line:_,share:d,shareTablet:T,sharePhone:z,phoneRow:p,columns:m,columnsTablet:F,stackBelow:de,shared:c.desktop||c.phone||fe,count:Rn}),dr={hasWidth:!0,...ps?{bound:Br(ps,vo.bound)}:null};return ze(e(Os.Provider,{value:dr,children:Ue}))}const re=_e(b),te=re?ys(Ae,ue):null,pe=re?It({darken:Ae,darkenStyle:ue,darkenTablet:Us,darkenStyleTablet:Ys,darkenPhone:zs,darkenStylePhone:Js}):{className:"",style:{}},Ye=_e(Ee),hs=re?Ye?{"--sf-box-bg":so(b??""),"--sf-box-bg-p":so(Ee??"")}:{backgroundImage:so(b??""),backgroundSize:"cover",backgroundPosition:"center"}:{},Cs=ll(void 0,void 0,H),j=Cs.className?Cs:null,le=re&&n&&H?.kind==="nextImage"&&H.media?fl(n,H.media):null,w=re?Nl(H,ue)??(le?$l:null):null,bs=H?.media?.cover??"picture",Je=le?e("div",{className:`absolute inset-0 isolate${q?" rounded-[inherit]":""}`,children:e(cl.Provider,{value:Ln,children:e(il,{media:le,name:hl(n?.row),cover:bs,ground:ml[bs],arrowsAbove:!0})})}):null,ie=j!==null||!!w?.zoom,Ss=ie?e("div",{"aria-hidden":!0,className:`absolute inset-0${q?" rounded-[inherit]":""}${Ye?` ${Ts}`:""}${j?` ${j.className}`:""}`,style:{...hs,...j?.style??{}}}):null,Ze=qt({...r,top:ve(r.top)??L($.desktop,r.unit,"desktop"),bottom:ve(r.bottom)??L($.desktop,r.unit,"desktop"),topPhone:ve(r.topPhone)??L($.phone,r.unitPhone,"mobile"),bottomPhone:ve(r.bottomPhone)??L($.phone,r.unitPhone,"mobile"),left:Re(r.left)??L($.side,r.unit,"desktop"),right:Re(r.right)??L($.side,r.unit,"desktop"),leftPhone:Re(r.leftPhone)??L($.sidePhone,r.unitPhone,"mobile"),rightPhone:Re(r.rightPhone)??L($.sidePhone,r.unitPhone,"mobile"),sideSpace:ee?"site":"box"}),ws=e("div",{className:`relative z-[1] ${Pt} ${Ze?.className??""}${N||R?` ${Oe}`:""}`.trimEnd(),style:te?{...Ze?.style,...ro,...Qt}:{...Ze?.style,...ro},children:fs(Ue)}),xs=cs&&$e?e("div",{className:`${oo} ${Fe}${N||R?` ${Oe}`:""}`,children:ws}):ws;return ze(e(P,{children:A("div",{className:`relative isolate overflow-hidden ${gt}${n!==null&&!h?` ${Bt}`:""}${oe}${Ye&&!ie?` ${Ts}`:""}${B.className?` ${B.className}`:""}${w?` ${w.className}`:""}`,style:{...q?Tl:{},...No,...ie?{}:hs,...w?w.style:{}},...j||le?{[tl]:""}:{},children:[e(Ll,{move:w}),ie&&A(P,{children:[e(Bs,{sheet:j?.sheet}),w?.zoom?e("div",{className:`absolute inset-0 overflow-hidden${q?" rounded-[inherit]":""}`,children:A(yl,{move:w,className:"absolute inset-0",children:[Ss,Je]})}):A(P,{children:[Ss,Je]})]}),!ie&&Je,e(Er,{wash:te&&pe.className?{...te,...pe.style}:te,hover:w?.washHover,...q?{className:"rounded-[inherit]"}:{},...pe.className?{restClassName:pe.className}:{}}),te?e(Nr,{children:xs}):xs,le?e("div",{[dl]:"",className:ul,children:Ro?e(al,{state:Ro}):null}):null]})}))}export{Dl as default};
@@ -1 +1 @@
1
- import{readEntrance as a}from"efficient-shell/format";import{SECTION_THEME_EXCLUDED as s}from"../../../format/lib/content/section-surface.js";import{ENTRANCE_KEYS as i,LEGACY_ENTRANCE_KEY as c}from"../../../format/lib/animation/entrance-keys.js";import{MOTION_VIEWS as E,followedIn as d}from"../../../format/lib/animation/views.js";import{ENTRANCE_KEYS as x,ENTRANCE_STORE_KEYS as R,LEGACY_ENTRANCE_KEY as S}from"../../../format/lib/animation/entrance-keys.js";const C="sf-entrance",l=e=>e!=null&&e!=="";function f(e,t){const o=e[i[t]];return t==="kind"&&!l(o)?e[c]:o}const n=(e,t,o)=>d(e,i[t],o,f(e,t));function r(e,t){return a(n(e,"kind",t),n(e,"from",t),n(e,"duration",t),n(e,"delay",t))}const m=e=>({desktop:r(e,"desktop"),tablet:r(e,"tablet"),phone:r(e,"phone")});function k(e){const t=m(e);return E.every(o=>t[o].kind==="none")?null:t}const u={...Object.fromEntries([...s].map(e=>[e,"a root position: sticky bar; an outer box becomes its sticky containing block and the pin collapses (the same fact every wrapper pass excludes it for, lib/content/section-surface)"])),HeroSlide:"a slide is a direct child of the Hero's transform track ([&>*]:basis-full); a wrapper would take its width, and the Hero already moves one slide in at a time",HeroGroup:"a slide box is placed by grid-item properties on its own root (--sf-hg-row, justify-self); a wrapper becomes the grid item and the box loses its anchor (lib/document/blocks/general/HeroGroup/meta)"},h=new Set(Object.keys(u));export{h as ENTRANCE_EXCLUDED,u as ENTRANCE_EXCLUDED_WHY,x as ENTRANCE_KEYS,R as ENTRANCE_STORE_KEYS,C as ENTRANCE_WRAPPER_CLASS,S as LEGACY_ENTRANCE_KEY,k as entranceDrawn,r as entranceOf,m as entranceViews};
1
+ import{readEntrance as s}from"efficient-shell/format";import{SECTION_THEME_EXCLUDED as i}from"../../../format/lib/content/section-surface.js";import{HOST_PART_TYPE as c}from"../../../format/lib/content/card-template.js";import{ENTRANCE_KEYS as a,LEGACY_ENTRANCE_KEY as E}from"../../../format/lib/animation/entrance-keys.js";import{MOTION_VIEWS as d,followedIn as l}from"../../../format/lib/animation/views.js";import{ENTRANCE_KEYS as S,ENTRANCE_STORE_KEYS as x,LEGACY_ENTRANCE_KEY as Y}from"../../../format/lib/animation/entrance-keys.js";const C="sf-entrance",m=e=>e!=null&&e!=="";function f(e,t){const o=e[a[t]];return t==="kind"&&!m(o)?e[E]:o}const n=(e,t,o)=>l(e,a[t],o,f(e,t));function r(e,t){return s(n(e,"kind",t),n(e,"from",t),n(e,"duration",t),n(e,"delay",t))}const p=e=>({desktop:r(e,"desktop"),tablet:r(e,"tablet"),phone:r(e,"phone")});function k(e){const t=p(e);return d.every(o=>t[o].kind==="none")?null:t}const u={...Object.fromEntries([...i].map(e=>[e,"a root position: sticky bar; an outer box becomes its sticky containing block and the pin collapses (the same fact every wrapper pass excludes it for, lib/content/section-surface)"])),HeroSlide:"a slide is a direct child of the Hero's transform track ([&>*]:basis-full); a wrapper would take its width, and the Hero already moves one slide in at a time",HeroGroup:"a slide box is placed by grid-item properties on its own root (--sf-hg-row, justify-self); a wrapper becomes the grid item and the box loses its anchor (lib/document/blocks/general/HeroGroup/meta)",[c]:"a host part draws its data block's answer with no element of its own (lib/content/card-template HOST_PART_TYPE); a wrapper would be one, and the host's content is not the merchant's to animate"},A=new Set(Object.keys(u));export{A as ENTRANCE_EXCLUDED,u as ENTRANCE_EXCLUDED_WHY,S as ENTRANCE_KEYS,x as ENTRANCE_STORE_KEYS,C as ENTRANCE_WRAPPER_CLASS,Y as LEGACY_ENTRANCE_KEY,k as entranceDrawn,r as entranceOf,p as entranceViews};
@@ -1 +1 @@
1
- import{readHidable as E}from"efficient-easel/draw";import{isNodeList as R}from"efficient-easel/data";import{anchorSlug as I}from"../../../format/lib/content/anchor-name.js";import{namedRowField as P}from"../../../format/lib/content/card-template.js";import{linkedCount as S}from"../../../format/lib/content/count-numbers.js";import{resolveContainerDirection as v}from"../../../format/lib/content/container-direction.js";import{listNumberIn as B,readListNumberForm as F}from"../../../format/lib/content/list-number.js";import{nodeHiddenEverywhere as m}from"../../../format/lib/content/view-hide-class.js";import{stripMarkup as K}from"../../../format/lib/markup.js";const l="Contents",d="Flex",T="Text",L="numberForm",U="_contentsEntries",j="_kickerNumber",tt="data-sf-kicker-number",D=t=>E(t).text.trim(),N=t=>I(t?.anchor),k=t=>String(t.props?.id??""),H=t=>!E(t.props?.text).hidden&&!S(t.props)&&!P(t.props);function u(t){return Object.values(t.props??{}).filter(R)}function h(t){for(const o of u(t))for(const n of o){if(m(n.props??{}))continue;if(n.type===T&&H(n))return n;if(n.type===T)continue;const s=h(n);if(s)return s}}function C(t){return u(t).some(o=>o.some(n=>n&&!m(n.props??{})&&(n.type===l||C(n))))}const O=t=>t.type===d&&v(d,t.props?.direction)==="row";function _(t){return u(t).some(o=>o.some(n=>n&&!m(n.props??{})&&(n.type===l||!O(n)&&_(n))))}function W(t){const o=[],n=(s,r)=>{for(const e of s){if(!e||m(e.props??{}))continue;if(e.type===l){r.open={contents:e,sections:r.waiting??[]},r.waiting=null,o.push(r.open);continue}if(O(e)&&_(e)){const i={inRow:!0,open:null,waiting:[]};for(const p of u(e))n(p,i);r.inRow||(r.open=null);continue}const c=r.open?.sections??r.waiting;if(e.type===d&&N(e.props)&&c&&!C(e)){c.push({box:e,kicker:h(e)});continue}for(const i of u(e))n(i,r)}};return n(t,{inRow:!1,open:null,waiting:null}),o}function X(t){return t.map(o=>({label:o.kicker?K(D(o.kicker.props?.text)):"",anchor:N(o.box.props)}))}function Y(t){const o=t?.length?W(t):[];if(!o.length)return null;const n=new Map,s=new Map;for(const r of o){const e=k(r.contents);e&&n.set(e,X(r.sections));const c=F(r.contents.props?.[L]);r.sections.forEach((i,p)=>{const f=i.kicker?k(i.kicker):"";f&&s.set(f,B(c,p))})}return{entries:n,numbers:s}}const nt=t=>t.endsWith(".")?`${t} `:`${t} · `;function ot(t){const o=t;if(!o?.content?.length)return t;const n=Y(o.content);if(!n)return t;const{entries:s,numbers:r}=n,e=c=>{let i=c.props??{},p=!1;for(const[b,a]of Object.entries(i)){if(!R(a))continue;const x=a.map(e);x.some((y,M)=>y!==a[M])&&(i={...i,[b]:x},p=!0)}const f=k(c),w=f?s.get(f):void 0;w&&(i={...i,[U]:w},p=!0);const g=f?r.get(f):void 0;return g&&(i={...i,[j]:g},p=!0),p?{...c,props:i}:c};return{...o,content:o.content.map(e)}}export{U as CONTENTS_ENTRIES_PROP,L as CONTENTS_NUMBER_FORM_KEY,tt as KICKER_NUMBER_ATTR,j as KICKER_NUMBER_PROP,nt as kickerLead,Y as pageContentsDrawing,ot as withPageContents};
1
+ import{readHidable as g}from"efficient-easel/draw";import{isNodeList as _}from"efficient-easel/data";import{mapEachNode as b,mapNodeLists as y}from"../../../format/lib/document/node-lists.js";import{anchorSlug as M}from"../../../format/lib/content/anchor-name.js";import{namedRowField as I}from"../../../format/lib/content/card-template.js";import{linkedCount as P}from"../../../format/lib/content/count-numbers.js";import{resolveContainerDirection as S}from"../../../format/lib/content/container-direction.js";import{listNumberIn as B,readListNumberForm as F}from"../../../format/lib/content/list-number.js";import{nodeHiddenEverywhere as a}from"../../../format/lib/content/view-hide-class.js";import{stripMarkup as K}from"../../../format/lib/markup.js";const l="Contents",d="Flex",x="Text",L="numberForm",v="_contentsEntries",U="_kickerNumber",tt="data-sf-kicker-number",D=t=>g(t).text.trim(),N=t=>M(t?.anchor),k=t=>String(t.props?.id??""),H=t=>!g(t.props?.text).hidden&&!P(t.props)&&!I(t.props);function u(t){return Object.values(t.props??{}).filter(_)}function R(t){for(const o of u(t))for(const n of o){if(a(n.props??{}))continue;if(n.type===x&&H(n))return n;if(n.type===x)continue;const s=R(n);if(s)return s}}function T(t){return u(t).some(o=>o.some(n=>n&&!a(n.props??{})&&(n.type===l||T(n))))}const h=t=>t.type===d&&S(d,t.props?.direction)==="row";function C(t){return u(t).some(o=>o.some(n=>n&&!a(n.props??{})&&(n.type===l||!h(n)&&C(n))))}function W(t){const o=[],n=(s,r)=>{for(const e of s){if(!e||a(e.props??{}))continue;if(e.type===l){r.open={contents:e,sections:r.waiting??[]},r.waiting=null,o.push(r.open);continue}if(h(e)&&C(e)){const c={inRow:!0,open:null,waiting:[]};for(const p of u(e))n(p,c);r.inRow||(r.open=null);continue}const i=r.open?.sections??r.waiting;if(e.type===d&&N(e.props)&&i&&!T(e)){i.push({box:e,kicker:R(e)});continue}for(const c of u(e))n(c,r)}};return n(t,{inRow:!1,open:null,waiting:null}),o}function X(t){return t.map(o=>({label:o.kicker?K(D(o.kicker.props?.text)):"",anchor:N(o.box.props)}))}function Y(t){const o=t?.length?W(t):[];if(!o.length)return null;const n=new Map,s=new Map;for(const r of o){const e=k(r.contents);e&&n.set(e,X(r.sections));const i=F(r.contents.props?.[L]);r.sections.forEach((c,p)=>{const f=c.kicker?k(c.kicker):"";f&&s.set(f,B(i,p))})}return{entries:n,numbers:s}}const nt=t=>t.endsWith(".")?`${t} `:`${t} · `;function ot(t){const o=t;if(!o?.content?.length)return t;const n=Y(o.content);if(!n)return t;const{entries:s,numbers:r}=n,e=i=>{const c=y(i,O=>b(O,e));let p=c.props??{},f=c!==i;const m=k(i),w=m?s.get(m):void 0;w&&(p={...p,[v]:w},f=!0);const E=m?r.get(m):void 0;return E&&(p={...p,[U]:E},f=!0),f?{...i,props:p}:i};return{...o,content:o.content.map(e)}}export{v as CONTENTS_ENTRIES_PROP,L as CONTENTS_NUMBER_FORM_KEY,tt as KICKER_NUMBER_ATTR,U as KICKER_NUMBER_PROP,nt as kickerLead,Y as pageContentsDrawing,ot as withPageContents};
@@ -0,0 +1,2 @@
1
+ import type { BlockRender } from "../../../../../../format/lib/document/blocks/block-types.js";
2
+ export declare const HostPartRender: BlockRender;
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{HostPartDrawn as i}from"../../../../../components/CardRowContext.js";import{HostPartMeta as s}from"../../../../../../format/lib/document/blocks/general/HostPart/meta.js";const p={...s,render:({name:t,label:r,editor:o})=>e(i,{name:typeof t=="string"?t:"",label:typeof r=="string"?r:"",editing:o?.isEditing===!0})};export{p as HostPartRender};
@@ -40,6 +40,7 @@ export declare const GENERAL_RENDERS: {
40
40
  Mockup: BlockRender;
41
41
  OrderSummary: BlockRender;
42
42
  CardList: BlockRender;
43
+ HostPart: BlockRender;
43
44
  ParagraphsA: BlockRender;
44
45
  PaymentBadges: BlockRender;
45
46
  PostCard: BlockRender;
@@ -1 +1 @@
1
- import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{ContentsRender as p}from"./Contents/render.js";import{ListSearchRender as R}from"./ListSearch/render.js";import{DocBodyRender as f}from"./DocBody/render.js";import{DocMastheadRender as s}from"./DocMasthead/render.js";import{DocMetaCardsRender as c}from"./DocMetaCards/render.js";import{DocTabsRender as S}from"./DocTabs/render.js";import{EyebrowRender as l}from"./Eyebrow/render.js";import{FAQRender as g}from"./FAQ/render.js";import{FeaturedCoverRender as B}from"./FeaturedCover/render.js";import{FlexRender as C}from"./Flex/render.js";import{FootprintRender as u}from"./Footprint/render.js";import{GridRender as T}from"./Grid/render.js";import{HeadingRender as L}from"./Heading/render.js";import{HeroRender as h}from"./Hero/render.js";import{HeroGroupRender as H}from"./HeroGroup/render.js";import{HeroSingleRender as M}from"./HeroSingle/render.js";import{HeroSlideRender as k}from"./HeroSlide/render.js";import{ImageBlockRender as y}from"./ImageBlock/render.js";import{IntegrationsRender as P}from"./Integrations/render.js";import{IntroBleedRender as D}from"./IntroBleed/render.js";import{CountdownRender as F}from"./Countdown/render.js";import{KeyFeaturesRender as b}from"./KeyFeatures/render.js";import{LocationMapRender as E}from"./LocationMap/render.js";import{LogoBlockRender as I}from"./LogoBlock/render.js";import{LogosRender as x}from"./Logos/render.js";import{LongReadRender as A}from"./LongRead/render.js";import{ManifestoRender as G}from"./Manifesto/render.js";import{MastheadRender as v}from"./Masthead/render.js";import{MockupRender as w}from"./Mockup/render.js";import{OrderSummaryRender as K}from"./OrderSummary/render.js";import{CardListRender as N}from"./CardList/render.js";import{ParagraphsARender as O}from"./ParagraphsA/render.js";import{PaymentBadgesRender as Q}from"./PaymentBadges/render.js";import{PostCardRender as W}from"./PostCard/render.js";import{ProcessStepsRender as _}from"./ProcessSteps/render.js";import{ProseRender as j}from"./Prose/render.js";import{SectionHeaderRender as q}from"./SectionHeader/render.js";import{SeriesRender as z}from"./Series/render.js";import{SpacerRender as J}from"./Spacer/render.js";import{SpecStripRender as U}from"./SpecStrip/render.js";import{SplitRender as V}from"./Split/render.js";import{StatsRender as X}from"./Stats/render.js";import{StatsParagraphRender as Y}from"./StatsParagraph/render.js";import{TestimonialsRender as Z}from"./Testimonials/render.js";import{TextRender as $}from"./Text/render.js";import{TickerRender as rr}from"./Ticker/render.js";import{TimelineRender as er}from"./Timeline/render.js";import{TimelineTrackRender as or}from"./TimelineTrack/render.js";import{TitleWithButtonsRender as tr}from"./TitleWithButtons/render.js";const ae={Banner:r,Breadcrumb:e,ButtonBlock:o,Cards:t,CategoryBar:m,Chart:i,ContactLocations:n,CustomHTML:d,Divider:a,Contents:p,ListSearch:R,DocBody:f,DocMasthead:s,DocMetaCards:c,DocTabs:S,Eyebrow:l,FAQ:g,FeaturedCover:B,Flex:C,Footprint:u,Grid:T,Heading:L,Hero:h,HeroGroup:H,HeroSingle:M,HeroSlide:k,ImageBlock:y,Integrations:P,IntroBleed:D,Countdown:F,KeyFeatures:b,LocationMap:E,LogoBlock:I,Logos:x,LongRead:A,Manifesto:G,Masthead:v,Mockup:w,OrderSummary:K,CardList:N,ParagraphsA:O,PaymentBadges:Q,PostCard:W,ProcessSteps:_,Prose:j,SectionHeader:q,Series:z,Spacer:J,SpecStrip:U,Split:V,Stats:X,StatsParagraph:Y,Testimonials:Z,Text:$,Ticker:rr,Timeline:er,TimelineTrack:or,TitleWithButtons:tr};export{ae as GENERAL_RENDERS};
1
+ import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{ContentsRender as p}from"./Contents/render.js";import{ListSearchRender as R}from"./ListSearch/render.js";import{DocBodyRender as f}from"./DocBody/render.js";import{DocMastheadRender as s}from"./DocMasthead/render.js";import{DocMetaCardsRender as c}from"./DocMetaCards/render.js";import{DocTabsRender as S}from"./DocTabs/render.js";import{EyebrowRender as l}from"./Eyebrow/render.js";import{FAQRender as g}from"./FAQ/render.js";import{FeaturedCoverRender as B}from"./FeaturedCover/render.js";import{FlexRender as C}from"./Flex/render.js";import{FootprintRender as u}from"./Footprint/render.js";import{GridRender as T}from"./Grid/render.js";import{HeadingRender as L}from"./Heading/render.js";import{HeroRender as H}from"./Hero/render.js";import{HeroGroupRender as h}from"./HeroGroup/render.js";import{HeroSingleRender as M}from"./HeroSingle/render.js";import{HeroSlideRender as P}from"./HeroSlide/render.js";import{ImageBlockRender as k}from"./ImageBlock/render.js";import{IntegrationsRender as y}from"./Integrations/render.js";import{IntroBleedRender as D}from"./IntroBleed/render.js";import{CountdownRender as F}from"./Countdown/render.js";import{KeyFeaturesRender as b}from"./KeyFeatures/render.js";import{LocationMapRender as E}from"./LocationMap/render.js";import{LogoBlockRender as I}from"./LogoBlock/render.js";import{LogosRender as x}from"./Logos/render.js";import{LongReadRender as A}from"./LongRead/render.js";import{ManifestoRender as G}from"./Manifesto/render.js";import{MastheadRender as v}from"./Masthead/render.js";import{MockupRender as w}from"./Mockup/render.js";import{OrderSummaryRender as K}from"./OrderSummary/render.js";import{CardListRender as N}from"./CardList/render.js";import{HostPartRender as O}from"./HostPart/render.js";import{ParagraphsARender as Q}from"./ParagraphsA/render.js";import{PaymentBadgesRender as W}from"./PaymentBadges/render.js";import{PostCardRender as _}from"./PostCard/render.js";import{ProcessStepsRender as j}from"./ProcessSteps/render.js";import{ProseRender as q}from"./Prose/render.js";import{SectionHeaderRender as z}from"./SectionHeader/render.js";import{SeriesRender as J}from"./Series/render.js";import{SpacerRender as U}from"./Spacer/render.js";import{SpecStripRender as V}from"./SpecStrip/render.js";import{SplitRender as X}from"./Split/render.js";import{StatsRender as Y}from"./Stats/render.js";import{StatsParagraphRender as Z}from"./StatsParagraph/render.js";import{TestimonialsRender as $}from"./Testimonials/render.js";import{TextRender as rr}from"./Text/render.js";import{TickerRender as er}from"./Ticker/render.js";import{TimelineRender as or}from"./Timeline/render.js";import{TimelineTrackRender as tr}from"./TimelineTrack/render.js";import{TitleWithButtonsRender as mr}from"./TitleWithButtons/render.js";const Re={Banner:r,Breadcrumb:e,ButtonBlock:o,Cards:t,CategoryBar:m,Chart:i,ContactLocations:n,CustomHTML:d,Divider:a,Contents:p,ListSearch:R,DocBody:f,DocMasthead:s,DocMetaCards:c,DocTabs:S,Eyebrow:l,FAQ:g,FeaturedCover:B,Flex:C,Footprint:u,Grid:T,Heading:L,Hero:H,HeroGroup:h,HeroSingle:M,HeroSlide:P,ImageBlock:k,Integrations:y,IntroBleed:D,Countdown:F,KeyFeatures:b,LocationMap:E,LogoBlock:I,Logos:x,LongRead:A,Manifesto:G,Masthead:v,Mockup:w,OrderSummary:K,CardList:N,HostPart:O,ParagraphsA:Q,PaymentBadges:W,PostCard:_,ProcessSteps:j,Prose:q,SectionHeader:z,Series:J,Spacer:U,SpecStrip:V,Split:X,Stats:Y,StatsParagraph:Z,Testimonials:$,Text:rr,Ticker:er,Timeline:or,TimelineTrack:tr,TitleWithButtons:mr};export{Re as GENERAL_RENDERS};
@@ -1 +1 @@
1
- import{isNodeList as m}from"efficient-easel/data";import{readHidable as E}from"efficient-easel/draw";import{BOX_HIDE_WHEN_ROW_EMPTY as h,isCardTemplateSlot as y,namedRowField as x}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as d}from"../../../format/lib/content/box-show-for-choices.js";import{COUNT_KEY_PROP as L}from"../../../format/lib/content/block-sources.js";import{WALL_LABEL_ID_PROP as S}from"./wall-labels.js";const P="_cardPressTitles",k="_cardPressTitle";function j(t,r){const e=t?.[P],i=e&&typeof e=="object"?e[r]:void 0;return Array.isArray(i)&&i.length?i:void 0}const O=(t,r)=>({...t,props:{...t.props,...r}});function C(t){const r=t.props??{};return t.type!=="Text"||E(r.text).hidden||typeof r[L]=="string"||typeof r[S]=="string"?"":x(r)}function T(t,r,e,i){let n=null;return t.forEach((o,s)=>{let p=o;const f=C(o);if(f&&!i.has(f))i.add(f),e.push({field:f,gates:r}),p=O(o,{[k]:!0});else if(o.type!=="Text"&&!Array.isArray(o.props?.[d])){const l=o.props?.[h],R=Array.isArray(l)&&l.length?[...r,l.filter(c=>typeof c=="string")]:r;let u=null;for(const[c,a]of Object.entries(o.props??{})){if(!m(a)||y(o.type,c))continue;const _=T(a,R,e,i);_!==a&&((u??={})[c]=_)}u&&(p=O(o,u))}p!==o&&((n??=t.slice())[s]=p)}),n??t}function A(t){let r=null;return t.forEach((e,i)=>{const n=b(e);n!==e&&((r??=t.slice())[i]=n)}),r??t}function b(t){let r,e;for(const[i,n]of Object.entries(t.props??{})){if(!m(n))continue;let o=A(n);if(y(t.type,i)){const s=[];o=T(o,[],s,new Set),s.length&&((e??={})[i]=s)}o!==n&&((r??={...t.props})[i]=o)}return e&&((r??={...t.props})[P]=e),r?{...t,props:r}:t}function w(t){const r=t;if(!r||!Array.isArray(r.content))return t;const e=A(r.content);return e===r.content?t:{...r,content:e}}export{P as CARD_PRESS_TITLES_PROP,k as CARD_PRESS_TITLE_PROP,j as cardPressTitlesOf,w as markCardPressTitles};
1
+ import{readHidable as T}from"efficient-easel/draw";import{BOX_HIDE_WHEN_ROW_EMPTY as y,isCardTemplateSlot as l,namedRowField as R}from"../../../format/lib/content/card-template.js";import{SHOW_FOR_PROP as O}from"../../../format/lib/content/box-show-for-choices.js";import{COUNT_KEY_PROP as h}from"../../../format/lib/content/block-sources.js";import{mapEachNode as f,mapNodeLists as a,mapPageContent as A}from"../../../format/lib/document/node-lists.js";import{WALL_LABEL_ID_PROP as E}from"./wall-labels.js";const u="_cardPressTitles",x="_cardPressTitle";function I(r,t){const i=r?.[u],o=i&&typeof i=="object"?i[t]:void 0;return Array.isArray(o)&&o.length?o:void 0}const m=(r,t)=>({...r,props:{...r.props,...t}});function S(r){const t=r.props??{};return r.type!=="Text"||T(t.text).hidden||typeof t[h]=="string"||typeof t[E]=="string"?"":R(t)}function P(r,t,i,o){return f(r,e=>{const n=S(e);if(n&&!o.has(n))return o.add(n),i.push({field:n,gates:t}),m(e,{[x]:!0});if(e.type==="Text"||Array.isArray(e.props?.[O]))return e;const s=e.props?.[y],c=Array.isArray(s)&&s.length?[...t,s.filter(p=>typeof p=="string")]:t;return a(e,(p,d)=>l(e.type,d)?p:P(p,c,i,o))})}function _(r){let t;const i=a(r,(o,e)=>{const n=f(o,_);if(!l(r.type,e))return n;const s=[],c=P(n,[],s,new Set);return s.length&&((t??={})[e]=s),c});return t?m(i,{[u]:t}):i}function N(r){return A(r,t=>f(t,_))}export{u as CARD_PRESS_TITLES_PROP,x as CARD_PRESS_TITLE_PROP,I as cardPressTitlesOf,N as markCardPressTitles};
@@ -1 +1 @@
1
- import{isNode as w,isNodeList as u}from"efficient-easel/data";import{storedStepsShown as A}from"../../components/ProcessSteps.js";import{declaredBlockSource as l,servedRows as L,sourcedRows as P}from"../../../format/lib/content/block-sources.js";import{rowHoldsContent as B}from"../../../format/lib/content/card-state.js";import{CARD_LIST_TYPE as C}from"../../../format/lib/content/card-template.js";import{wallRows as R}from"./blocks/general/Logos/wall-rows.js";import{HEAD_CORE_PROP as _,HOLDS_HEAD_CORE_PROP as a}from"../content/empty-hides.js";import{parseSectionHeadPlacement as v}from"../../../format/lib/sections/section-head-placement.js";import{ownEntry as y}from"../../../format/lib/own-entry.js";const p="Flex",H="Text",i=r=>Object.values(r??{}).filter(u),b=r=>r.type===C&&l(r.props)!=="",x=r=>{if(r.type!==p)return!1;const t=i(r.props).flat();return t.length>0&&t.every(b)},c=r=>v(r.props?.headPlacement)==="own-box"||x(r),m=r=>r===void 0||Array.isArray(r)&&r.length===0;function g(r){return r.type===H?!0:r.type===p&&i(r.props).every(t=>t.every(g))}const E={ProcessSteps:r=>m(r.boxes)&&A(r.steps).length===0,Logos:r=>l(r)?T(r):m(r.logos)&&m(r.items)};function T(r){return L(r)!==null&&R(r,!1).length===0}function d(r){return i(r.props).flat().every(t=>!P(t.props,!1).rows.some(B))}function f(r){const t=i(r.props).flat();return t.some(c)&&t.every(o=>c(o)||g(o))}function S(r){const t={...r.props};for(const[o,s]of Object.entries(r.props??{}))!u(s)||!s.some(e=>w(e)&&c(e))||(t[o]=s.map(e=>{if(!c(e))return e;const n=x(e)?d(e):y(E,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[_]:n?"empty":!0}}}));return{...r,props:t}}function h(r){const o=Object.entries(r.props??{}).filter(([,e])=>u(e)).filter(([,e])=>e.length>0);if(o.length!==1||o[0][1].length!==1)return null;const s=o[0][1][0];return s?.type===p&&s.props?{key:o[0][0],inner:s}:null}function O(r){if(r?.type!==p||!r.props)return r;if(f(r)){const o=S(r);return{...o,props:{...o.props,[a]:!0}}}const t=h(r);return!t||!f(t.inner)?r:{...r,props:{...r.props,[t.key]:[S(t.inner)],[a]:!0}}}function G(r){const t=r;if(!t||!Array.isArray(t.content))return r;let o=!1;const s=t.content.map(e=>{const n=O(e);return n!==e&&(o=!0),n});return o?{...t,content:s}:r}const j=r=>y(E,String(r.type))?.(r.props??{})===!0;function D(r){if(r.type!==p||!r.props)return!1;const t=f(r)?null:h(r),o=t?t.inner:r;if(!f(o))return!1;const s=i(o.props).flat().filter(c);return s.some(e=>l(e.props)!=="")&&s.every(j)}function k(r){let t;for(const[o,s]of Object.entries(r.props??{})){if(!u(s))continue;const e=s,n=I(e);n!==e&&((t??={...r.props})[o]=n)}return t?{...r,props:t}:r}function I(r){let t=!1;const o=[];for(const s of r){if(D(s)){t=!0;continue}const e=k(s);e!==s&&(t=!0),o.push(e)}return t?o:r}function J(r){const t=r;if(!t||!Array.isArray(t.content))return r;let o=!1;const s=t.content.map(e=>{if(O(e)!==e)return e;const n=k(e);return n!==e&&(o=!0),n});return o?{...t,content:s}:r}export{J as dropEmptySourcedBoxes,G as markHeadCoreBoxes};
1
+ import{isNode as k,isNodeList as l}from"efficient-easel/data";import{mapEachNode as A,mapNodeLists as a}from"../../../format/lib/document/node-lists.js";import{storedStepsShown as C}from"../../components/ProcessSteps.js";import{declaredBlockSource as f,servedRows as O,sourcedRows as P}from"../../../format/lib/content/block-sources.js";import{rowHoldsContent as B}from"../../../format/lib/content/card-state.js";import{CARD_LIST_TYPE as R}from"../../../format/lib/content/card-template.js";import{wallRows as _}from"./blocks/general/Logos/wall-rows.js";import{HEAD_CORE_PROP as H,HOLDS_HEAD_CORE_PROP as y}from"../content/empty-hides.js";import{parseSectionHeadPlacement as v}from"../../../format/lib/sections/section-head-placement.js";import{ownEntry as g}from"../../../format/lib/own-entry.js";const p="Flex",N="Text",i=r=>Object.values(r??{}).filter(l),T=r=>r.type===R&&f(r.props)!=="",x=r=>{if(r.type!==p)return!1;const t=i(r.props).flat();return t.length>0&&t.every(T)},u=r=>v(r.props?.headPlacement)==="own-box"||x(r),m=r=>r===void 0||Array.isArray(r)&&r.length===0;function E(r){return r.type===N?!0:r.type===p&&i(r.props).every(t=>t.every(E))}const S={ProcessSteps:r=>m(r.boxes)&&C(r.steps).length===0,Logos:r=>f(r)?b(r):m(r.logos)&&m(r.items)};function b(r){return O(r)!==null&&_(r,!1).length===0}function D(r){return i(r.props).flat().every(t=>!P(t.props,!1).rows.some(B))}function c(r){const t=i(r.props).flat();return t.some(u)&&t.every(e=>u(e)||E(e))}function I(r){if(!k(r)||!u(r))return r;const t=x(r)?D(r):g(S,String(r.type))?.(r.props??{})===!0;return{...r,props:{...r.props,[H]:t?"empty":!0}}}function h(r){return a(r,t=>A(t,I))}function d(r){const e=Object.entries(r.props??{}).filter(([,o])=>l(o)).filter(([,o])=>o.length>0);if(e.length!==1||e[0][1].length!==1)return null;const n=e[0][1][0];return n?.type===p&&n.props?{key:e[0][0],inner:n}:null}function w(r){if(r?.type!==p||!r.props)return r;if(c(r)){const e=h(r);return{...e,props:{...e.props,[y]:!0}}}const t=d(r);return!t||!c(t.inner)?r:{...r,props:{...r.props,[t.key]:[h(t.inner)],[y]:!0}}}function V(r){const t=r;if(!t||!Array.isArray(t.content))return r;let e=!1;const n=t.content.map(o=>{const s=w(o);return s!==o&&(e=!0),s});return e?{...t,content:n}:r}const F=r=>g(S,String(r.type))?.(r.props??{})===!0;function W(r){if(r.type!==p||!r.props)return!1;const t=c(r)?null:d(r),e=t?t.inner:r;if(!c(e))return!1;const n=i(e.props).flat().filter(u);return n.some(o=>f(o.props)!=="")&&n.every(F)}function L(r){return a(r,t=>j(t))}function j(r){let t=!1;const e=[];for(const n of r){if(W(n)){t=!0;continue}const o=L(n);o!==n&&(t=!0),e.push(o)}return t?e:r}function Z(r){const t=r;if(!t||!Array.isArray(t.content))return r;let e=!1;const n=t.content.map(o=>{if(w(o)!==o)return o;const s=L(o);return s!==o&&(e=!0),s});return e?{...t,content:n}:r}export{Z as dropEmptySourcedBoxes,V as markHeadCoreBoxes};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{CardRowDrawn as f}from"../../../components/CardRowContext.js";import{PublishedPartStyles as h}from"../../../components/PublishedPartStylesContext.js";import{readPartStyles as y}from"../part-styles.js";import{readPartMotions as x}from"../../animation/part-motion.js";import{partNeedles as b}from"../text-parts.js";import{CARD_LIST_TYPE as p,rowPartByKey as u}from"../../../../format/lib/content/card-template.js";import{BOX_TYPE as _}from"../../../../format/lib/document/container-blocks.js";const B={name:"clickableParts",applies:(i,e,c)=>typeof c?.render=="function"&&i!==p,draw(i,e,c){const o=i,P=()=>o.textParts??o.fields,l=o.render,d=c.inspector?.PartAnchors,m=(t,r)=>b(P(),r,n=>u(e,t,n));o.render=t=>{const r=y(t),n=x(t);return t.editor?.isEditing&&d?s(f,{type:e,props:t,children:a=>s(d,{needles:m(t,a),styles:r,motions:n,type:e,children:l(t)})}):!Object.keys(r).length&&!Object.keys(n).length?l(t):s(f,{type:e,props:t,children:a=>s(h,{needles:m(t,a),styles:r,motions:n,type:e,atEdge:e===_,children:l(t)})})}}};export{B as clickableParts};
1
+ import{jsx as i}from"react/jsx-runtime";import{CardRowDrawn as f}from"../../../components/CardRowContext.js";import{PublishedPartStyles as h}from"../../../components/PublishedPartStylesContext.js";import{readPartStyles as y}from"../part-styles.js";import{readPartMotions as _}from"../../animation/part-motion.js";import{partNeedles as x}from"../text-parts.js";import{CARD_LIST_TYPE as T,HOST_PART_TYPE as b,rowPartByKey as p}from"../../../../format/lib/content/card-template.js";import{BOX_TYPE as u}from"../../../../format/lib/document/container-blocks.js";const Y={name:"clickableParts",applies:(o,e,c)=>typeof c?.render=="function"&&o!==T&&o!==b,draw(o,e,c){const s=o,P=()=>s.textParts??s.fields,l=s.render,d=c.inspector?.PartAnchors,m=(t,r)=>x(P(),r,n=>p(e,t,n));s.render=t=>{const r=y(t),n=_(t);return t.editor?.isEditing&&d?i(f,{type:e,props:t,children:a=>i(d,{needles:m(t,a),styles:r,motions:n,type:e,children:l(t)})}):!Object.keys(r).length&&!Object.keys(n).length?l(t):i(f,{type:e,props:t,children:a=>i(h,{needles:m(t,a),styles:r,motions:n,type:e,atEdge:e===u,children:l(t)})})}}};export{Y as clickableParts};
@@ -1,14 +1,17 @@
1
1
  import type { BlockPass } from "../../../../format/lib/document/passes/types.js";
2
- export declare const SECTION_PAD_INNER_DEFAULTS: Record<string, {
2
+ type InnerPadding = {
3
3
  top: number;
4
4
  bottom: number;
5
- }>;
5
+ };
6
+ export declare const SECTION_PAD_INNER_DEFAULTS: Record<string, InnerPadding>;
6
7
  export declare const SECTION_PAD_INNER: Set<string>;
7
8
  export declare const innerPaddingFallback: (type: string) => {
8
9
  top?: number;
9
10
  bottom?: number;
10
11
  };
12
+ export declare const ownPairDefault: (key: string) => InnerPadding | undefined;
11
13
  export declare const PAD_ON_ROOT: ReadonlySet<string>;
12
14
  export declare const PADS_ITS_OWN_SPACE: ReadonlySet<string>;
13
15
  export declare const sectionPadding: BlockPass;
14
16
  export declare const blockPadding: BlockPass;
17
+ export {};
@@ -1 +1 @@
1
- import{jsx as u}from"react/jsx-runtime";import{HideTaker as m}from"../../../components/ViewHideRoot.js";import{isBackgroundBox as p}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as T}from"../../../../format/lib/content/box-side-space.js";import{BAND_PAD_KEYS as I,BAND_PAD_UNIT_KEY as g,SECTION_PAD_KEYS as b,padValuesOf as A,resolveSectionPadding as D,sectionPadAttrs as E}from"../../content/section-padding.js";import{sectionFillPassClass as N}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as h,drawsCopiesInTheBox as O}from"../../../../format/lib/content/copies-in-box.js";import{ownEntry as x}from"../../../../format/lib/own-entry.js";const c={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},f=new Set(Object.keys(c)),P=e=>x(c,e)??{},r=new Set(["DetailRows"]),_=new Set(["Flex","Text","Heading","ImageBlock"]),B=new Set(["Divider"]),w=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),S=new Set(["ProductGrid"]);function a(e,t,o=!1){const s=e.render;e.render=n=>{if(t?.(n))return s(n);const i=E({...A(n,b,o),sideSpace:T(n.sideSpace)}),d=s(n),l=N(n);return i?u(m,{className:l?`${i.className} ${l}`:i.className,style:i.style,children:d}):d}}const v={name:"sectionPadding",applies:(e,t,o)=>t.isSection(e)&&!w.has(e)&&!!o&&typeof o.render=="function",panel(e,t,o){if(f.has(t)&&!r.has(t)){e.fields={...e.fields,...o.sidesPaddingFields({keys:I,unitKey:g,fallback:P(t),tablet:!0,siteSide:!0})};return}r.has(t)||S.has(t)||(e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,t){if(!(f.has(t)&&!r.has(t))){if(r.has(t)){const o=e.render,s=P(t);e.render=n=>{const i=D(n,s);return o({...n,padTop:i.top,padBottom:i.bottom})};return}if(S.has(t)){a(e);return}_.has(t)||B.has(t)||a(e,t==="Flex"?o=>p(o.bgImage):h.has(t)?o=>O(t,o):void 0,!0)}}},C=["Heading","Text","ImageBlock"],R=["LogoBlock"],V={name:"blockPadding",applies:(e,t,o)=>(C.includes(e)||R.includes(e))&&!!o&&typeof o.render=="function",panel(e,t,o){e.fields={...e.fields,...o.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){_.has(t)||a(e,void 0,!0)}};export{B as PADS_ITS_OWN_SPACE,_ as PAD_ON_ROOT,f as SECTION_PAD_INNER,c as SECTION_PAD_INNER_DEFAULTS,V as blockPadding,P as innerPaddingFallback,v as sectionPadding};
1
+ import{jsx as T}from"react/jsx-runtime";import{HideTaker as g}from"../../../components/ViewHideRoot.js";import{isBackgroundBox as I}from"../../../../format/lib/content/box-background.js";import{boxSideSpaceOf as m}from"../../../../format/lib/content/box-side-space.js";import{BAND_PAD_KEYS as A,BAND_PAD_UNIT_KEY as E,SECTION_PAD_KEYS as N,padValuesOf as b,resolveSectionPadding as D,sectionPadAttrs as O}from"../../content/section-padding.js";import{sectionFillPassClass as p}from"../../../../format/lib/content/section-min-height.js";import{COPIES_IN_THE_BOX as x,drawsCopiesInTheBox as B}from"../../../../format/lib/content/copies-in-box.js";import{ownEntry as a}from"../../../../format/lib/own-entry.js";const P={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},v=new Set(Object.keys(P));function d(e,t){return t?.innerPadding??a(P,e)}const M=e=>d(e)??{},u={DetailRows:{top:100,bottom:100}},l=(e,t)=>t.innerPadding?void 0:a(u,e),V=e=>a(u,e),_=new Set(["Flex","Text","Heading","ImageBlock"]),w=new Set(["Divider"]),h=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),S=new Set(["ProductGrid"]);function c(e,t,n=!1){const o=e.render;e.render=i=>{if(t?.(i))return o(i);const r=O({...b(i,N,n),sideSpace:m(i.sideSpace)}),s=o(i),f=p(i);return r?T(g,{className:f?`${r.className} ${f}`:r.className,style:r.style,children:s}):s}}const X={name:"sectionPadding",applies:(e,t,n)=>t.isSection(e)&&!h.has(e)&&!!n&&typeof n.render=="function",panel(e,t,n){const o=l(t,e)?void 0:d(t,e);if(o){e.fields={...e.fields,...n.sidesPaddingFields({keys:A,unitKey:E,fallback:o,tablet:!0,siteSide:!0})};return}l(t,e)||S.has(t)||(e.fields={...e.fields,...n.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,t){const n=l(t,e);if(!(!n&&d(t,e))){if(n){const o=e.render,i=n;e.render=r=>{const s=D(r,i);return o({...r,padTop:s.top,padBottom:s.bottom})};return}if(S.has(t)){c(e);return}_.has(t)||w.has(t)||c(e,t==="Flex"?o=>I(o.bgImage):x.has(t)?o=>B(t,o):void 0,!0)}}},C=["Heading","Text","ImageBlock"],R=["LogoBlock"],$={name:"blockPadding",applies:(e,t,n)=>(C.includes(e)||R.includes(e))&&!!n&&typeof n.render=="function",panel(e,t,n){e.fields={...e.fields,...n.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,t){_.has(t)||c(e,void 0,!0)}};export{w as PADS_ITS_OWN_SPACE,_ as PAD_ON_ROOT,v as SECTION_PAD_INNER,P as SECTION_PAD_INNER_DEFAULTS,$ as blockPadding,M as innerPaddingFallback,V as ownPairDefault,X as sectionPadding};
@@ -1 +1 @@
1
- import{isNodeList as i}from"efficient-easel/data";import{readHidable as f}from"efficient-easel/draw";const a="_wallLabelId",u="_wallLabelledBy",s=t=>t.props?.id==null?"":String(t.props.id);function L(t){if(!t||t.type!=="Text"||!s(t))return!1;const o=f(t.props?.text);return!o.hidden&&o.text.trim()!==""}const m=t=>!!t&&t.type==="Logos"&&t.props?.look==="marks"&&s(t)!=="",l=(t,o,e)=>({...t,props:{...t.props,[o]:e}});function p(t){let o=null;t.forEach((r,n)=>{const c=d(r);c!==r&&((o??=t.slice())[n]=c)});const e=o??t;for(let r=1;r<e.length;r++){if(!m(e[r])||!L(e[r-1]))continue;const n=`sf-wall-label-${s(e[r-1])}`;o??=t.slice(),o[r-1]=l(o[r-1],a,n),o[r]=l(o[r],u,n)}return o??t}function d(t){let o;for(const[e,r]of Object.entries(t.props??{})){if(!i(r))continue;const n=p(r);n!==r&&((o??={...t.props})[e]=n)}return o?{...t,props:o}:t}function x(t){const o=t;if(!o||!Array.isArray(o.content))return t;const e=p(o.content);return e===o.content?t:{...o,content:e}}export{u as WALL_LABELLED_BY_PROP,a as WALL_LABEL_ID_PROP,x as markWallLabels};
1
+ import{readHidable as i}from"efficient-easel/draw";import{mapEachNode as n,mapNodeLists as c,mapPageContent as L}from"../../../format/lib/document/node-lists.js";const d="_wallLabelId",m="_wallLabelledBy",l=t=>t.props?.id==null?"":String(t.props.id);function u(t){if(!t||t.type!=="Text"||!l(t))return!1;const o=i(t.props?.text);return!o.hidden&&o.text.trim()!==""}const f=t=>!!t&&t.type==="Logos"&&t.props?.look==="marks"&&l(t)!=="",p=(t,o,r)=>({...t,props:{...t.props,[o]:r}});function a(t){const o=n(t,e=>c(e,a));let r=null;for(let e=1;e<o.length;e++){if(!f(o[e])||!u(o[e-1]))continue;const s=`sf-wall-label-${l(o[e-1])}`;r??=o.slice(),r[e-1]=p(r[e-1],d,s),r[e]=p(r[e],m,s)}return r??o}function x(t){return L(t,a)}export{m as WALL_LABELLED_BY_PROP,d as WALL_LABEL_ID_PROP,x as markWallLabels};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "67.6.0",
3
+ "version": "67.7.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",