efficient-web-builder 55.0.0 → 55.1.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 (54) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/editor/lib/document/blocks/general/CardList/fields.d.ts +2 -0
  3. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -0
  4. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  6. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  7. package/dist/editor/lib/document/card-row-fields.js +1 -1
  8. package/dist/editor/lib/document/controls.js +1 -1
  9. package/dist/editor/lib/document/field-groups.js +1 -1
  10. package/dist/format/lib/content/box-background.d.ts +19 -0
  11. package/dist/format/lib/content/box-background.js +1 -1
  12. package/dist/format/lib/content/box-layout.d.ts +2 -0
  13. package/dist/format/lib/content/box-layout.js +1 -1
  14. package/dist/format/lib/content/box-phone-place.d.ts +3 -3
  15. package/dist/format/lib/content/box-phone-place.js +1 -1
  16. package/dist/format/lib/content/box-separator.js +1 -1
  17. package/dist/format/lib/content/card-state.d.ts +2 -0
  18. package/dist/format/lib/content/card-state.js +1 -1
  19. package/dist/format/lib/content/card-template.d.ts +9 -1
  20. package/dist/format/lib/content/card-template.js +1 -1
  21. package/dist/format/lib/content/phone-focus.js +1 -1
  22. package/dist/format/lib/content/view-var-split.d.ts +11 -0
  23. package/dist/format/lib/content/view-var-split.js +1 -0
  24. package/dist/format/lib/document/blocks/general/CardList/item-seed.d.ts +4 -0
  25. package/dist/format/lib/document/blocks/general/CardList/item-seed.js +1 -0
  26. package/dist/format/lib/document/blocks/general/CardList/meta.d.ts +8 -0
  27. package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -0
  28. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  29. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  30. package/dist/format/lib/document/general-order.d.ts +1 -1
  31. package/dist/format/lib/document/general-order.js +1 -1
  32. package/dist/format/lib/document/section-catalog.js +1 -1
  33. package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
  34. package/dist/format/lib/editor-words-catalogue.js +1 -1
  35. package/dist/format/lib/fit-words.d.ts +8 -0
  36. package/dist/format/lib/fit-words.js +23 -12
  37. package/dist/render/components/CardRowContext.d.ts +3 -2
  38. package/dist/render/components/CardRowContext.js +1 -1
  39. package/dist/render/components/Flex.d.ts +7 -1
  40. package/dist/render/components/Flex.js +1 -1
  41. package/dist/render/components/SiteGutterFrame.d.ts +2 -1
  42. package/dist/render/components/SiteGutterFrame.js +1 -1
  43. package/dist/render/lib/content/block-size.d.ts +2 -6
  44. package/dist/render/lib/content/block-size.js +1 -1
  45. package/dist/render/lib/document/blocks/general/CardList/render.d.ts +2 -0
  46. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -0
  47. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  48. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  49. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  50. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  51. package/dist/render/lib/document/passes/block-size.js +1 -1
  52. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  53. package/dist/render/lib/sections/section-to-box.js +1 -1
  54. package/package.json +1 -1
@@ -37,6 +37,8 @@ export declare const BOX_SHARE_POINTS: readonly [{
37
37
  readonly weights: readonly [2, 3];
38
38
  }];
39
39
  export type BoxShare = (typeof BOX_SHARE_POINTS)[number]["value"];
40
+ export declare const BOX_ITEMS_ATTR = "data-sf-box-items";
41
+ export declare function withoutBoxItemsHalf(text: string): string;
40
42
  export declare const BOX_SHARE_CHOICES: readonly [{
41
43
  readonly label: "Fit content";
42
44
  readonly value: "content";
@@ -1 +1 @@
1
- import{isStripBox as f}from"./box-separator.js";import{viewOverrides as y}from"./view-overrides.js";const te={sectionPaddingTop:0,sectionPaddingBottom:0},p={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},v={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function ie(e,t){const n=typeof e=="string"&&e in p?p[e]:"",i=typeof t=="string"&&t in v?v[t]:"";return[n,i].filter(Boolean).join(" ")}function B(e){return e===!0||e==="wrap"?"flex-wrap":""}const N={start:"view-tablet:max-view-desktop:justify-start!",center:"view-tablet:max-view-desktop:justify-center!",between:"view-tablet:max-view-desktop:justify-between!",end:"view-tablet:max-view-desktop:justify-end!"},T={start:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",between:"max-view-tablet:justify-between",end:"max-view-tablet:justify-end"},P={start:"view-tablet:max-view-desktop:items-start!",center:"view-tablet:max-view-desktop:items-center!",end:"view-tablet:max-view-desktop:items-end!",stretch:"view-tablet:max-view-desktop:items-stretch!"},R={start:"max-view-tablet:items-start",center:"max-view-tablet:items-center",end:"max-view-tablet:items-end",stretch:"max-view-tablet:items-stretch"},I={wrap:"view-tablet:max-view-desktop:flex-wrap!",nowrap:"view-tablet:max-view-desktop:flex-nowrap!"};function s(e,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(e,t)?t:void 0}function h(e,t,n){const i=y("same",e,t,n),a={};return i.tablet!==void 0&&i.tablet!==e&&(a.tablet=i.tablet),i.phone!==void 0&&i.phone!==e&&(a.phone=i.phone),a}function u(e,t,n){return[e.tablet?t[e.tablet]:"",e.phone?n[e.phone]:""].filter(Boolean).join(" ")}function H(e,t,n){return h(s(p,e)??"start",s(p,t),s(p,n))}function ne(e,t,n){return u(H(e,t,n),N,T)}function ae(e,t,n){const i=s(v,e)??"stretch";if(i==="stretch")return"";const a=h(i,s(v,t),s(v,n));return u(a,P,R)}function $(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function oe(e,t){const n=B(e)===""?"nowrap":"wrap",i=$(t);return i&&i!==n?I[i]:""}const re="Block widths",m=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],se=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function le(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in x?"custom":"content"}const _=4,g=10;function X(e,t){if(!Number.isInteger(t)||t<2||t>_||e.length!==t-1||!e.every(a=>typeof a=="number"&&Number.isFinite(a)))return;const n=[];let i=0;return e.forEach((a,o)=>{const r=100-i-g*(t-1-o),d=Math.min(r,Math.max(g,Math.round(a)));n.push(d),i+=d}),n}function S(e,t,n){if(!Array.isArray(t))return;const i=X(t,n),a=i?[...i,100-i.reduce((r,d)=>r+d,0)]:[],o={};for(let r=0;r<_;r+=1)o[`--${e}-${r+1}`]=a[r]??1;return o}function we(e,t,n){const i=S("sf-share",e,n),a=S("sf-share-tablet",t,n);return i||a?{...i,...a}:void 0}function W(e,t){const n=Array.from({length:t},()=>1),i=m.find(r=>r.value===e);if(!i?.weights||t<1)return n;const[a,o]=i.weights;return a>1&&(n[0]=a),o>1&&(n[t-1]=o),n}function ce(e,t){if(typeof e!="string"||!(e in x)||e==="equal")return e;const n=W(e,t),i=n.reduce((a,o)=>a+o,0);return n.slice(0,-1).map(a=>Math.round(a/i*100))}const l="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",x={equal:l,bigLeft:`${l} [&>*:first-child]:view-wide:grow-[2]`,bigRight:`${l} [&>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${l} [&>*:first-child]:view-wide:grow-[3]`,biggerRight:`${l} [&>*:last-child]:view-wide:grow-[3]`,twoThree:`${l} [&>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3]`},M=`${l} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function j(e){return Array.isArray(e)?M:typeof e=="string"?x[e]??"":""}const pe={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},{not:{context:"parent.bgImage",set:!0}},{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(x)}]}]}]},A="view-tablet:max-view-desktop:flex-row!",w=`${A} [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-0!`,O={content:`${A} [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[content]!`,equal:w,bigLeft:`${w} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]!`,bigRight:`${w} [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]!`,biggerLeft:`${w} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`,biggerRight:`${w} [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`,twoThree:`${w} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`},U=`${w} [&>*:nth-child(1):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function F(e){return Array.isArray(e)||typeof e=="string"&&e in O?e:null}function ve(e){if(e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||C(e.columns)!==""||L(e.columnsTablet)!=="")return"";const t=F(e.shareTablet);return t===null?"":typeof t=="string"?O[t]:U}const G="[&>*]:view-wide:basis-[content]";function de(e){return j(e)===""?G:""}const xe="Columns",fe=1,he=3,b={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},ue=m.filter(e=>e.value==="content"||e.value==="equal"),be="equal",me=1,_e=6,c="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0!",q={1:`${c} [&>*]:view-wide:basis-[calc(100%/1)]!`,2:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function C(e){return typeof e=="number"?q[e]??"":""}const V={1:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc(100%/1)]!",2:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function L(e){return typeof e=="number"?V[e]??"":""}function ge(e){return e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":L(e.columnsTablet)}function Se(e){return e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":C(e.columns)}const J="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]",K={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},D="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content]";function Y(e){return e===!1||e==="nowrap"}function Ae(e,t,n){const i=b[Number(e)];if(!i)return"max-view-wide:flex-col";const a=Y(n);return k(e,t)?a?D:J:a?K[Number(e)]:i}function Oe(e,t){return Number(e)in b&&!k(e,t)}function k(e,t){return Number(e)in b&&t==="content"}const Ce="Block spacing",Le=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Q="sf-box-gap-only";function ke(e){return e==="gap"?Q:""}const E={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},z={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Ee(e,t,n){const i=o=>s(E,o),a=h(e==="gap"?"gap":"each",i(t),i(n));return u(a,E,z)}export{v as BOX_ALIGN_CLASS,Ce as BOX_BLOCK_SPACING_LABEL,Le as BOX_BLOCK_SPACING_POINTS,_e as BOX_COLUMNS_MAX,me as BOX_COLUMNS_MIN,Q as BOX_GAP_ONLY_CLASS,pe as BOX_GIVES_PICTURES_A_HEIGHT,xe as BOX_PHONE_ROW_LABEL,he as BOX_PHONE_ROW_MAX,fe as BOX_PHONE_ROW_MIN,se as BOX_SHARE_CHOICES,re as BOX_SHARE_LABEL,be as BOX_SHARE_PHONE_DEFAULT,ue as BOX_SHARE_PHONE_POINTS,m as BOX_SHARE_POINTS,te as NESTED_BOX_PADDING,ae as boxAlignViewClasses,ke as boxBlockSpacingClass,Ee as boxBlockSpacingViewClasses,C as boxColumnsClass,de as boxFitContentClass,ne as boxJustifyViewClasses,ie as boxLayoutClasses,Oe as boxPhoneCellsShareLine,Ae as boxPhoneRowClasses,k as boxPhoneRowFits,Y as boxPhoneRowOneLine,Se as boxRowColumnsClass,ge as boxRowTabletColumnsClass,ve as boxRowTabletShareClass,le as boxShareChoiceOf,j as boxShareClasses,F as boxShareTabletOf,we as boxShareVars,ce as boxShareWidthsOf,L as boxTabletColumnsClass,B as boxWrapClass,oe as boxWrapTabletClass,$ as boxWrapWordOf};
1
+ import{isStripBox as b}from"./box-separator.js";import{viewOverrides as T}from"./view-overrides.js";const ae={sectionPaddingTop:0,sectionPaddingBottom:0},c={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},v={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function se(e,t){const a=typeof e=="string"&&e in c?c[e]:"",i=typeof t=="string"&&t in v?v[t]:"";return[a,i].filter(Boolean).join(" ")}function B(e){return e===!0||e==="wrap"?"flex-wrap":""}const y={start:"view-tablet:max-view-desktop:justify-start!",center:"view-tablet:max-view-desktop:justify-center!",between:"view-tablet:max-view-desktop:justify-between!",end:"view-tablet:max-view-desktop:justify-end!"},N={start:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",between:"max-view-tablet:justify-between",end:"max-view-tablet:justify-end"},P={start:"view-tablet:max-view-desktop:items-start!",center:"view-tablet:max-view-desktop:items-center!",end:"view-tablet:max-view-desktop:items-end!",stretch:"view-tablet:max-view-desktop:items-stretch!"},R={start:"max-view-tablet:items-start",center:"max-view-tablet:items-center",end:"max-view-tablet:items-end",stretch:"max-view-tablet:items-stretch"},I={wrap:"view-tablet:max-view-desktop:flex-wrap!",nowrap:"view-tablet:max-view-desktop:flex-nowrap!"};function w(e,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(e,t)?t:void 0}function f(e,t,a){const i=T("same",e,t,a),s={};return i.tablet!==void 0&&i.tablet!==e&&(s.tablet=i.tablet),i.phone!==void 0&&i.phone!==e&&(s.phone=i.phone),s}function h(e,t,a){return[e.tablet?t[e.tablet]:"",e.phone?a[e.phone]:""].filter(Boolean).join(" ")}function H(e,t,a){return f(w(c,e)??"start",w(c,t),w(c,a))}function ne(e,t,a){return h(H(e,t,a),y,N)}function oe(e,t,a){const i=w(v,e)??"stretch";if(i==="stretch")return"";const s=f(i,w(v,t),w(v,a));return h(s,P,R)}function $(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function we(e,t){const a=B(e)===""?"nowrap":"wrap",i=$(t);return i&&i!==a?I[i]:""}const le="Block widths",_=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],X="data-sf-box-items",M=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${X}\\][^\\s"'\`]*`,"g");function re(e){return e.replace(M,"")}const de=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function ce(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in p?"custom":"content"}const g=4,u=10;function W(e,t){if(!Number.isInteger(t)||t<2||t>g||e.length!==t-1||!e.every(s=>typeof s=="number"&&Number.isFinite(s)))return;const a=[];let i=0;return e.forEach((s,n)=>{const o=100-i-u*(t-1-n),x=Math.min(o,Math.max(u,Math.round(s)));a.push(x),i+=x}),a}function k(e,t,a){if(!Array.isArray(t))return;const i=W(t,a),s=i?[...i,100-i.reduce((o,x)=>o+x,0)]:[],n={};for(let o=0;o<g;o+=1)n[`--${e}-${o+1}`]=s[o]??1;return n}function ve(e,t,a){const i=k("sf-share",e,a),s=k("sf-share-tablet",t,a);return i||s?{...i,...s}:void 0}function j(e,t){const a=Array.from({length:t},()=>1),i=_.find(o=>o.value===e);if(!i?.weights||t<1)return a;const[s,n]=i.weights;return s>1&&(a[0]=s),n>1&&(a[t-1]=n),a}function xe(e,t){if(typeof e!="string"||!(e in p)||e==="equal")return e;const a=j(e,t),i=a.reduce((s,n)=>s+n,0);return a.slice(0,-1).map(s=>Math.round(s/i*100))}const l="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",p={equal:l,bigLeft:`${l} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${l} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${l} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${l} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${l} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},U=`${l} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function F(e){return Array.isArray(e)?U:typeof e=="string"?p[e]??"":""}const pe={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},{not:{context:"parent.bgImage",set:!0}},{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(p)}]}]}]},S="view-tablet:max-view-desktop:flex-row!",r=`${S} [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-0!`,A={content:`${S} [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[content]!`,equal:r,bigLeft:`${r} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]!`,bigRight:`${r} [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]!`,biggerLeft:`${r} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`,biggerRight:`${r} [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`,twoThree:`${r} [&>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-tablet:max-view-desktop:grow-[3]!`},G=`${r} [&>*:nth-child(1):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-tablet:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function q(e){return Array.isArray(e)||typeof e=="string"&&e in A?e:null}function be(e){if(e.direction!=="row"||b(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||O(e.columns)!==""||C(e.columnsTablet)!=="")return"";const t=q(e.shareTablet);return t===null?"":typeof t=="string"?A[t]:G}const V="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function fe(e){return F(e)===""?V:""}const he="Columns",me=1,_e=3,m={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},ge=_.filter(e=>e.value==="content"||e.value==="equal"),ue="equal",ke=1,Se=6,d="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",K={1:`${d} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${d} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${d} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${d} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${d} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${d} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function O(e){return typeof e=="number"?K[e]??"":""}const J={1:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc(100%/1)]!",2:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-tablet:max-view-desktop:flex-row! view-tablet:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-tablet:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function C(e){return typeof e=="number"?J[e]??"":""}function Ae(e){return e.direction!=="row"||b(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":C(e.columnsTablet)}function Oe(e){return e.direction!=="row"||b(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":O(e.columns)}const D="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",Y={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Q="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function z(e){return e===!1||e==="nowrap"}function Ce(e,t,a){const i=m[Number(e)];if(!i)return"max-view-wide:flex-col";const s=z(a);return L(e,t)?s?Q:D:s?Y[Number(e)]:i}function Le(e,t){return Number(e)in m&&!L(e,t)}function L(e,t){return Number(e)in m&&t==="content"}const Ee="Block spacing",Te=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Z="sf-box-gap-only";function Be(e){return e==="gap"?Z:""}const E={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},ee={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function ye(e,t,a){const i=n=>w(E,n),s=f(e==="gap"?"gap":"each",i(t),i(a));return h(s,E,ee)}export{v as BOX_ALIGN_CLASS,Ee as BOX_BLOCK_SPACING_LABEL,Te as BOX_BLOCK_SPACING_POINTS,Se as BOX_COLUMNS_MAX,ke as BOX_COLUMNS_MIN,Z as BOX_GAP_ONLY_CLASS,pe as BOX_GIVES_PICTURES_A_HEIGHT,X as BOX_ITEMS_ATTR,he as BOX_PHONE_ROW_LABEL,_e as BOX_PHONE_ROW_MAX,me as BOX_PHONE_ROW_MIN,de as BOX_SHARE_CHOICES,le as BOX_SHARE_LABEL,ue as BOX_SHARE_PHONE_DEFAULT,ge as BOX_SHARE_PHONE_POINTS,_ as BOX_SHARE_POINTS,ae as NESTED_BOX_PADDING,oe as boxAlignViewClasses,Be as boxBlockSpacingClass,ye as boxBlockSpacingViewClasses,O as boxColumnsClass,fe as boxFitContentClass,ne as boxJustifyViewClasses,se as boxLayoutClasses,Le as boxPhoneCellsShareLine,Ce as boxPhoneRowClasses,L as boxPhoneRowFits,z as boxPhoneRowOneLine,Oe as boxRowColumnsClass,Ae as boxRowTabletColumnsClass,be as boxRowTabletShareClass,ce as boxShareChoiceOf,F as boxShareClasses,q as boxShareTabletOf,ve as boxShareVars,xe as boxShareWidthsOf,C as boxTabletColumnsClass,B as boxWrapClass,we as boxWrapTabletClass,$ as boxWrapWordOf,re as withoutBoxItemsHalf};
@@ -1,9 +1,9 @@
1
1
  import type { SlotCell } from "efficient-easel/render";
2
- export declare const BOX_PHONE_PLACE_CLASS = "max-view-wide:[&>*]:order-[var(--sf-phone-place)]";
3
- export declare const BOX_PHONE_PLACE_TABLET_CLASS = "max-view-tablet:[&>*]:order-[var(--sf-phone-place)]";
2
+ export declare const BOX_PHONE_PLACE_CLASS = "max-view-wide:[&>*]:order-[var(--sf-phone-place)] max-view-wide:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]";
3
+ export declare const BOX_PHONE_PLACE_TABLET_CLASS = "max-view-tablet:[&>*]:order-[var(--sf-phone-place)] max-view-tablet:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]";
4
4
  export declare const BOX_PHONE_PLACE_CANVAS_CLASS = "max-view-wide:order-[var(--sf-phone-place)]";
5
5
  export declare const BOX_PHONE_PLACE_CANVAS_TABLET_CLASS = "max-view-tablet:order-[var(--sf-phone-place)]";
6
- export declare const BOX_CELL_CLASS = "contents [&>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>*]:min-w-[inherit]";
6
+ export declare const BOX_CELL_CLASS = "contents [&>*]:grow-[inherit] [&>[data-sf-box-items]>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>[data-sf-box-items]>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>[data-sf-box-items]>*]:basis-[inherit] [&>*]:min-w-[inherit] [&>[data-sf-box-items]>*]:min-w-[inherit]";
7
7
  export declare function boxPhoneOrder(value: unknown, ids: readonly string[]): string[] | undefined;
8
8
  export declare function boxPhoneCell(order: readonly string[] | undefined, { tabletKeepsRow, editing }: {
9
9
  tabletKeepsRow: boolean;
@@ -1 +1 @@
1
- import{readPhoneOrderIds as s}from"efficient-easel/data";const a="max-view-wide:[&>*]:order-[var(--sf-phone-place)]",_="max-view-tablet:[&>*]:order-[var(--sf-phone-place)]",c="max-view-wide:order-[var(--sf-phone-place)]",p="max-view-tablet:order-[var(--sf-phone-place)]",A="contents [&>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>*]:min-w-[inherit]",h="unnamed:";function d(e,r){const n=Array.isArray(e)?e.filter(t=>!(typeof t=="string"&&t.startsWith(h))):e;return s(n,r)}function f(e,{tabletKeepsRow:r,editing:n}){if(!e)return;const t=n?r?p:c:`${A} ${r?_:a}`;return i=>{const o=e.indexOf(i);return{className:t,style:{"--sf-phone-place":o<0?e.length:o}}}}export{A as BOX_CELL_CLASS,c as BOX_PHONE_PLACE_CANVAS_CLASS,p as BOX_PHONE_PLACE_CANVAS_TABLET_CLASS,a as BOX_PHONE_PLACE_CLASS,_ as BOX_PHONE_PLACE_TABLET_CLASS,f as boxPhoneCell,d as boxPhoneOrder};
1
+ import{readPhoneOrderIds as s}from"efficient-easel/data";const a="max-view-wide:[&>*]:order-[var(--sf-phone-place)] max-view-wide:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]",d="max-view-tablet:[&>*]:order-[var(--sf-phone-place)] max-view-tablet:[&>[data-sf-box-items]>*]:order-[var(--sf-phone-place)]",h="max-view-wide:order-[var(--sf-phone-place)]",p="max-view-tablet:order-[var(--sf-phone-place)]",x="contents [&>*]:grow-[inherit] [&>[data-sf-box-items]>*]:grow-[inherit] [&>*]:shrink-[inherit] [&>[data-sf-box-items]>*]:shrink-[inherit] [&>*]:basis-[inherit] [&>[data-sf-box-items]>*]:basis-[inherit] [&>*]:min-w-[inherit] [&>[data-sf-box-items]>*]:min-w-[inherit]",f="unnamed:";function _(e,t){const n=Array.isArray(e)?e.filter(r=>!(typeof r=="string"&&r.startsWith(f))):e;return s(n,t)}function m(e,{tabletKeepsRow:t,editing:n}){if(!e)return;const r=n?t?p:h:`${x} ${t?d:a}`;return o=>{const i=e.indexOf(o);return{className:r,style:{"--sf-phone-place":i<0?e.length:i}}}}export{x as BOX_CELL_CLASS,h as BOX_PHONE_PLACE_CANVAS_CLASS,p as BOX_PHONE_PLACE_CANVAS_TABLET_CLASS,a as BOX_PHONE_PLACE_CLASS,d as BOX_PHONE_PLACE_TABLET_CLASS,m as boxPhoneCell,_ as boxPhoneOrder};
@@ -1 +1 @@
1
- import{parseTickerSeparator as r,SEPARATOR_GLYPH as c,separatorScaleClass as f,TICKER_SEPARATOR_OPTIONS as n}from"../sections/ticker-style.js";const d=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function o(h){return n.some(t=>t.value===h)?r(h):void 0}const a="overflow-x-clip [&>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function i(h,t){return h==="row"&&o(t)!==void 0}function v(h,t){return i(h,t)?a:""}const p="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)]";function u(h,t){return i(h,t)?p:""}function k(h,t){if(!i(h,t))return{};const s=o(t),e=/^text-\[([\d.]+)em\]$/.exec(f("small",s))?.[1],l=c[s];return{"--sf-sep-mark":l===""?"none":JSON.stringify(l),...e?{"--sf-sep-k":e}:{}}}export{d as BOX_SEPARATOR_POINTS,v as boxSeparatorClasses,o as boxSeparatorOf,u as boxSeparatorSeamClass,k as boxSeparatorStyle,i as isStripBox};
1
+ import{parseTickerSeparator as l,SEPARATOR_GLYPH as a,separatorScaleClass as r,TICKER_SEPARATOR_OPTIONS as c}from"../sections/ticker-style.js";const p=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function f(h){return c.some(s=>s.value===h)?l(h):void 0}const n="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function t(h,s){return h==="row"&&f(s)!==void 0}function v(h,s){return t(h,s)?n:""}const b="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]:last-child>*:not(:last-child)_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-none";function x(h,s){return t(h,s)?b:""}function u(h,s){if(!t(h,s))return{};const i=f(s),e=/^text-\[([\d.]+)em\]$/.exec(r("small",i))?.[1],o=a[i];return{"--sf-sep-mark":o===""?"none":JSON.stringify(o),...e?{"--sf-sep-k":e}:{}}}export{p as BOX_SEPARATOR_POINTS,v as boxSeparatorClasses,f as boxSeparatorOf,x as boxSeparatorSeamClass,u as boxSeparatorStyle,t as isStripBox};
@@ -3,6 +3,8 @@ type CardRowStateName = (typeof CARD_ROW_STATES)[number];
3
3
  export type CardRowState = Readonly<Partial<Record<CardRowStateName, boolean>>>;
4
4
  export declare const CARD_STATE_ATTR = "data-sf-card-state";
5
5
  export declare const CARD_STATE_LINE_CLASS = "pointer-events-none absolute inset-0 border border-accent";
6
+ export type CardStateLine = "frame" | "under";
7
+ export declare const CARD_STATE_UNDER_LINE_CLASS = "pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent";
6
8
  export declare function cardStateValue(state: CardRowState | undefined | null): string;
7
9
  export declare function cardStateAttrs(state: CardRowState | undefined | null): Record<string, string>;
8
10
  export {};
@@ -1 +1 @@
1
- const r=["selected","highlighted"],n="data-sf-card-state",a="pointer-events-none absolute inset-0 border border-accent";function o(t){return t?r.filter(e=>t[e]===!0).join(" "):""}function c(t){const e=o(t);return e?{[n]:e,className:"relative"}:{}}export{n as CARD_STATE_ATTR,a as CARD_STATE_LINE_CLASS,c as cardStateAttrs,o as cardStateValue};
1
+ const r=["selected","highlighted"],n="data-sf-card-state",a="pointer-events-none absolute inset-0 border border-accent",c="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent";function o(e){return e?r.filter(t=>e[t]===!0).join(" "):""}function s(e){const t=o(e);return t?{[n]:t,className:"relative"}:{}}export{n as CARD_STATE_ATTR,a as CARD_STATE_LINE_CLASS,c as CARD_STATE_UNDER_LINE_CLASS,s as cardStateAttrs,o as cardStateValue};
@@ -2,6 +2,7 @@ import { type SourceRow } from "./block-sources.js";
2
2
  import type { CardCopyPlace } from "./mirror-cards.js";
3
3
  export declare const CARD_TEMPLATE_SLOT = "template";
4
4
  export declare const CARD_TEMPLATE_LABEL = "Card template";
5
+ export declare const CARD_LIST_TYPE = "CardList";
5
6
  export declare const CARD_TEMPLATE_BLOCKS: readonly ["Text", "ImageBlock", "ButtonBlock", "Flex"];
6
7
  export declare const CARD_ROW_FIELD_PROP = "rowField";
7
8
  export declare const CARD_ROW_LINK_PROP = "rowLinkField";
@@ -9,7 +10,7 @@ export declare function cardTemplateSlot(): {
9
10
  type: "slot";
10
11
  allow: string[];
11
12
  };
12
- export type CardRowFieldKind = "text" | "image" | "link";
13
+ export type CardRowFieldKind = "text" | "image" | "link" | "list";
13
14
  export interface CardRowFieldSpec {
14
15
  key: string;
15
16
  label: string;
@@ -18,6 +19,7 @@ export interface CardRowFieldSpec {
18
19
  alt?: string;
19
20
  next?: string;
20
21
  everySource?: boolean;
22
+ fields?: readonly CardRowFieldSpec[];
21
23
  mark?: "accentItalic";
22
24
  }
23
25
  export interface CardTemplateSpec {
@@ -40,6 +42,8 @@ export declare function isCardTemplateBlock(type: string): boolean;
40
42
  export declare function cardTemplateTypedRows(type: unknown): string;
41
43
  export declare function hasCardTemplate(type: unknown): boolean;
42
44
  export declare function cardTemplateFields(type: string, kind?: CardRowFieldKind): readonly CardRowFieldSpec[];
45
+ export declare function defaultListField(type: unknown): string;
46
+ export declare function cardListShows(props: Record<string, unknown> | null | undefined, ownerType: unknown): string;
43
47
  export declare function cardTemplateFieldsOf(owner: {
44
48
  type?: unknown;
45
49
  props?: Record<string, unknown>;
@@ -63,4 +67,8 @@ type DocNode = {
63
67
  export declare function cardTemplateOwner(appState: unknown, id: unknown): DocNode | null | undefined;
64
68
  export declare function cardTemplateCardOwner(appState: unknown, id: unknown): DocNode | null | undefined;
65
69
  export declare function cardCopyPlace(appState: unknown, id: unknown): CardCopyPlace | undefined;
70
+ export declare function cardListFieldsOf(appState: unknown, list: {
71
+ type?: unknown;
72
+ props?: Record<string, unknown>;
73
+ } | null | undefined, kind?: CardRowFieldKind): readonly CardRowFieldSpec[];
66
74
  export {};
@@ -1 +1 @@
1
- import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as T}from"efficient-easel/data";import{BOX_TYPE as w}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as y}from"../non-empty-string.js";import{accentItalicRuns as B}from"../markup.js";import{withCardsTemplate as R}from"../document/cards-template-on-read.js";const A="template",U="Card template",O=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",h="rowLinkField";function H(){return{type:"slot",allow:[...O]}}const _=[{block:"OrderSummary",typedRows:"rows",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>R("Cards",e)}];function s(){return C("efficient.card-templates",()=>new Map(_.map(e=>[e.block,e])))}function V(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(c=>c.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=y(t.typedRows);s().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{}})}}function E(e,t){const r=e?s().get(e)?.seed:void 0;return r?r(t):t}function X(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,c=E(e,o);return c===o?t:c}function Y(){for(const e of s().values())if(e.blocks?.length)return!0;return!1}function $(e){return s().get(e)?.blocks??[]}function q(e){for(const t of s().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function z(e){return typeof e=="string"&&s().get(e)?.typedRows||""}function L(e){return typeof e=="string"&&s().has(e)}function G(e,t){const r=s().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function P(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=s().get(r)?.fields??[],o=x(g(e?.props))?.fields,c=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(i=>i.key===l.key))]:n;return t?c.filter(l=>(l.kind??"text")===t):c}function S(e,t,r){return e?r?P(r).find(n=>n.key===t)??null:s().get(e)?.fields.find(n=>n.key===t)??null:null}function m(e,t=f){const r=e?.[t];return typeof r=="string"?r.trim():""}function J(e,t){return e.key||String(t+1)}function Q(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}function Z(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const c=typeof o=="string"?o:o?.src,l=y(typeof c=="string"?c.trim():void 0);if(l&&l!==r.trim())return l}return""}const b={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:h},Breadcrumb:{currentCrumb:f}};function ee(e,t,r){return F(e,t,r)!==""}function F(e,t,r){const n=b[e]?.[r];return n?m(t,n):""}function I(e,t){return!t||!e?null:e[t]??""}function te(e,t,r,n){if(!r)return t;let o=null;for(const[c,l]of Object.entries(b[e]??{})){const i=m(t,l),u=I(r,i);u!==null&&(o??={...t},o[c]=n&&S(n,i)?.mark==="accentItalic"?B(u):u)}return o??t}function a(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(c,l)=>{for(const i of c){if(i?.props?.id===t)return l;for(const[u,d]of Object.entries(i?.props??{})){if(!T(d))continue;const k=u===A&&L(i.type)?{owner:i,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||i.type===w},p=n(d,k);if(p!==void 0)return p}}},o=n(r,null);return o===void 0?null:o}function re(e,t){const r=a(e,t);return r&&r.owner}function ne(e,t){const r=a(e,t);return r&&(r.direct?r.owner:null)}function oe(e,t){const r=a(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}export{f as CARD_ROW_FIELD_PROP,h as CARD_ROW_LINK_PROP,O as CARD_TEMPLATE_BLOCKS,U as CARD_TEMPLATE_LABEL,A as CARD_TEMPLATE_SLOT,oe as cardCopyPlace,J as cardKeyOf,Q as cardRow,$ as cardTemplateBlocks,ne as cardTemplateCardOwner,S as cardTemplateField,G as cardTemplateFields,P as cardTemplateFieldsOf,re as cardTemplateOwner,H as cardTemplateSlot,z as cardTemplateTypedRows,Y as cardTemplatesNameBlocks,L as hasCardTemplate,q as isCardTemplateBlock,m as namedRowField,V as registerCardTemplates,ee as rowBound,F as rowFieldOf,I as rowFieldText,te as rowFilledProps,Z as rowNextPicture,X as templateOnInsert,E as templateOnRead};
1
+ import{blockSourceSpec as T,declaredBlockSource as w}from"./block-sources.js";import{isNodeList as C}from"efficient-easel/data";import{BOX_TYPE as B}from"../document/container-blocks.js";import{globalRegistry as R}from"../global-registry.js";import{nonEmptyString as m}from"../non-empty-string.js";import{accentItalicRuns as A}from"../markup.js";import{withCardsTemplate as L}from"../document/cards-template-on-read.js";import{withCardListTemplate as O}from"../document/blocks/general/CardList/item-seed.js";const h="template",z="Card template",k="CardList",_=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",E="rowLinkField";function G(){return{type:"slot",allow:[..._]}}const P=[{block:"OrderSummary",typedRows:"rows",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0}],seed:e=>L("Cards",e)},{block:k,fields:[],seed:e=>O(e)}];function c(){return R("efficient.card-templates",()=>new Map(P.map(e=>[e.block,e])))}function J(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(i=>i.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=m(t.typedRows);c().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{}})}}function S(e,t){const r=e?c().get(e)?.seed:void 0;return r?r(t):t}function Q(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,i=S(e,o);return i===o?t:i}function Z(){for(const e of c().values())if(e.blocks?.length)return!0;return!1}function ee(e){return c().get(e)?.blocks??[]}function te(e){for(const t of c().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function re(e){return typeof e=="string"&&c().get(e)?.typedRows||""}function F(e){return typeof e=="string"&&c().has(e)}function I(e,t){const r=c().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function D(e){return typeof e=="string"?I(e,"list")[0]?.key??"":""}function v(e,t){return d(e)||D(t)}function b(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=c().get(r)?.fields??[],o=T(w(e?.props))?.fields,i=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?i.filter(l=>(l.kind??"text")===t):i}function M(e,t,r){return e?r?b(r).find(n=>n.key===t)??null:c().get(e)?.fields.find(n=>n.key===t)??null:null}function d(e,t=f){const r=e?.[t];return typeof r=="string"?r.trim():""}function ne(e,t){return e.key||String(t+1)}function oe(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}function le(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const i=typeof o=="string"?o:o?.src,l=m(typeof i=="string"?i.trim():void 0);if(l&&l!==r.trim())return l}return""}const x={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:E},Breadcrumb:{currentCrumb:f}};function ie(e,t,r){return N(e,t,r)!==""}function N(e,t,r){const n=x[e]?.[r];return n?d(t,n):""}function j(e,t){return!t||!e?null:e[t]??""}function se(e,t,r,n){if(!r)return t;let o=null;for(const[i,l]of Object.entries(x[e]??{})){const s=d(t,l),u=j(r,s);u!==null&&(o??={...t},o[i]=n&&M(n,s)?.mark==="accentItalic"?A(u):u)}return o??t}function a(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,l)=>{for(const s of i){if(s?.props?.id===t)return l;for(const[u,p]of Object.entries(s?.props??{})){if(!C(p))continue;const g=u===h&&F(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===B},y=n(p,g);if(y!==void 0)return y}}},o=n(r,null);return o===void 0?null:o}function K(e,t){const r=a(e,t);return r&&r.owner}function ce(e,t){const r=a(e,t);return r&&(r.direct?r.owner:null)}function ue(e,t){const r=a(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function fe(e,t,r){if(t?.type!==k)return[];const n=K(e,t.props?.id),o=n?v(t.props,n.type):"",i=o&&n&&b(n,"list").find(l=>l.key===o)?.fields||[];return r?i.filter(l=>(l.kind??"text")===r):i}export{k as CARD_LIST_TYPE,f as CARD_ROW_FIELD_PROP,E as CARD_ROW_LINK_PROP,_ as CARD_TEMPLATE_BLOCKS,z as CARD_TEMPLATE_LABEL,h as CARD_TEMPLATE_SLOT,ue as cardCopyPlace,ne as cardKeyOf,fe as cardListFieldsOf,v as cardListShows,oe as cardRow,ee as cardTemplateBlocks,ce as cardTemplateCardOwner,M as cardTemplateField,I as cardTemplateFields,b as cardTemplateFieldsOf,K as cardTemplateOwner,G as cardTemplateSlot,re as cardTemplateTypedRows,Z as cardTemplatesNameBlocks,D as defaultListField,F as hasCardTemplate,te as isCardTemplateBlock,d as namedRowField,J as registerCardTemplates,ie as rowBound,N as rowFieldOf,j as rowFieldText,se as rowFilledProps,le as rowNextPicture,Q as templateOnInsert,S as templateOnRead};
@@ -1 +1 @@
1
- import{formatFocal as c,parseFocal as r}from"efficient-shell/format";const f="sf-focus-phone",p="--sf-focus-phone",i="sf-focus-tablet",l="--sf-focus-tablet",e=t=>{if(typeof t!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(t))return null;const{x:s,y:o}=r(t);return c(s,o)};function a(t,s){const o=e(s),n=e(t)??o;return{className:[o?i:"",n?f:""].filter(Boolean).join(" "),style:{...o?{[l]:o}:{},...n?{[p]:n}:{}}}}export{f as PHONE_FOCUS_CLASS,p as PHONE_FOCUS_VAR,i as TABLET_FOCUS_CLASS,l as TABLET_FOCUS_VAR,e as focusPoint,a as phoneFocus};
1
+ import{formatFocal as n,parseFocal as e}from"efficient-shell/format";import{viewVarSplit as c}from"./view-var-split.js";const p="sf-focus-phone",f="--sf-focus-phone",a="sf-focus-tablet",l="--sf-focus-tablet",s=o=>{if(typeof o!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(o))return null;const{x:t,y:r}=e(o);return n(t,r)};function _(o,t){return c(S,null,s(t),s(o))}const S={tabletClass:a,tabletVar:l,phoneClass:p,phoneVar:f};export{p as PHONE_FOCUS_CLASS,f as PHONE_FOCUS_VAR,a as TABLET_FOCUS_CLASS,l as TABLET_FOCUS_VAR,s as focusPoint,_ as phoneFocus};
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties } from "react";
2
+ export type ViewVarNames = {
3
+ readonly tabletClass: string;
4
+ readonly tabletVar: string;
5
+ readonly phoneClass: string;
6
+ readonly phoneVar: string;
7
+ };
8
+ export declare function viewVarSplit(names: ViewVarNames, desktop: string | null, tablet: string | null, phone: string | null): {
9
+ className: string;
10
+ style: CSSProperties;
11
+ };
@@ -0,0 +1 @@
1
+ function c(n,r,l,t){const e=t??(l??r),o=l!==null&&l!==r,s=e!==null&&e!==r;return{className:[o?n.tabletClass:"",s?n.phoneClass:""].filter(Boolean).join(" "),style:{...o?{[n.tabletVar]:l}:{},...s?{[n.phoneVar]:e}:{}}}}export{c as viewVarSplit};
@@ -0,0 +1,4 @@
1
+ type Props = Record<string, unknown>;
2
+ export declare const CARD_LIST_ITEM_FIELD = "label";
3
+ export declare function withCardListTemplate(props: Props): Props;
4
+ export {};
@@ -0,0 +1 @@
1
+ import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as r}from"../../../container-blocks.js";import{CARDS_BODY_LOOK as n,rowFieldTextSeed as _}from"../Cards/card-seed.js";import{INNER_BOX as d,TEXT as p,seedNodes as T}from"../../../seed-parts.js";import{nonEmptyString as l}from"../../../../non-empty-string.js";const s="label";function C(t){if(t.template!==void 0)return t;const e=l(t.id)??"CardList",m={type:o,props:{...d,name:"Item"},slots:{[r]:[_(s,{...p,tag:"p"},n)]}};return{...t,template:T([m],(O,i)=>i==="0"?`${e}~item`:`${e}~item.${i.slice(2)}`)}}export{s as CARD_LIST_ITEM_FIELD,C as withCardListTemplate};
@@ -0,0 +1,8 @@
1
+ import type { BlockMeta } from "../../block-types.js";
2
+ export declare const CardListSlots: {
3
+ template: {
4
+ type: "slot";
5
+ allow: string[];
6
+ };
7
+ };
8
+ export declare const CardListMeta: BlockMeta;
@@ -0,0 +1 @@
1
+ import{cardTemplateSlot as t}from"../../../../content/card-template.js";const e={template:t()},r={label:"Card list",inline:!0,fields:e,defaultProps:{rowField:""}};export{r as CardListMeta,e as CardListSlots};
@@ -39,6 +39,7 @@ export declare const GENERAL_METAS: {
39
39
  Masthead: BlockMeta;
40
40
  Mockup: BlockMeta;
41
41
  OrderSummary: BlockMeta;
42
+ CardList: BlockMeta;
42
43
  ParagraphsA: BlockMeta;
43
44
  PaymentBadges: BlockMeta;
44
45
  PostCard: BlockMeta;
@@ -1 +1 @@
1
- import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as n}from"./ContactLocations/meta.js";import{CountdownMeta as s}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{ContentsMeta as S}from"./Contents/meta.js";import{DocBodyMeta as l}from"./DocBody/meta.js";import{DocMastheadMeta as u}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as T}from"./DocMetaCards/meta.js";import{DocTabsMeta as g}from"./DocTabs/meta.js";import{EyebrowMeta as B}from"./Eyebrow/meta.js";import{FAQMeta as C}from"./FAQ/meta.js";import{FeaturedCoverMeta as H}from"./FeaturedCover/meta.js";import{FlexMeta as P}from"./Flex/meta.js";import{FootprintMeta as L}from"./Footprint/meta.js";import{GridMeta as y}from"./Grid/meta.js";import{HeadingMeta as h}from"./Heading/meta.js";import{HeroGroupMeta as k}from"./HeroGroup/meta.js";import{HeroMeta as E}from"./Hero/meta.js";import{HeroSingleMeta as A}from"./HeroSingle/meta.js";import{HeroSlideMeta as D}from"./HeroSlide/meta.js";import{ImageBlockMeta as F}from"./ImageBlock/meta.js";import{IntegrationsMeta as R}from"./Integrations/meta.js";import{IntroBleedMeta as I}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as x}from"./KeyFeatures/meta.js";import{LocationMapMeta as G}from"./LocationMap/meta.js";import{LogoBlockMeta as b}from"./LogoBlock/meta.js";import{LogosMeta as _}from"./Logos/meta.js";import{LongReadMeta as v}from"./LongRead/meta.js";import{ManifestoMeta as w}from"./Manifesto/meta.js";import{MastheadMeta as O}from"./Masthead/meta.js";import{MockupMeta as N}from"./Mockup/meta.js";import{OrderSummaryMeta as K}from"./OrderSummary/meta.js";import{ParagraphsAMeta as Q}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as W}from"./PaymentBadges/meta.js";import{PostCardMeta as X}from"./PostCard/meta.js";import{ProcessStepsMeta as j}from"./ProcessSteps/meta.js";import{ProseMeta as q}from"./Prose/meta.js";import{SectionHeaderMeta as z}from"./SectionHeader/meta.js";import{SeriesMeta as J}from"./Series/meta.js";import{SpacerMeta as U}from"./Spacer/meta.js";import{SpecStripMeta as V}from"./SpecStrip/meta.js";import{SplitMeta as Y}from"./Split/meta.js";import{StatsMeta as Z}from"./Stats/meta.js";import{StatsParagraphMeta as $}from"./StatsParagraph/meta.js";import{TestimonialsMeta as oo}from"./Testimonials/meta.js";import{TextMeta as to}from"./Text/meta.js";import{TickerMeta as ro}from"./Ticker/meta.js";import{TimelineMeta as eo}from"./Timeline/meta.js";import{TimelineTrackMeta as ao}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as mo}from"./TitleWithButtons/meta.js";import io from"./text-part-shapes.json";const po={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:n,CustomHTML:c,Divider:d,Contents:S,DocBody:l,DocMasthead:u,DocMetaCards:T,DocTabs:g,Eyebrow:B,FAQ:C,FeaturedCover:H,Flex:P,Footprint:L,Grid:y,Heading:h,Hero:E,HeroGroup:k,HeroSingle:A,HeroSlide:D,ImageBlock:F,Integrations:R,IntroBleed:I,Countdown:s,KeyFeatures:x,LocationMap:G,LogoBlock:b,Logos:_,LongRead:v,Manifesto:w,Masthead:O,Mockup:N,OrderSummary:K,ParagraphsA:Q,PaymentBadges:W,PostCard:X,ProcessSteps:j,Prose:q,SectionHeader:z,Series:J,Spacer:U,SpecStrip:V,Split:Y,Stats:Z,StatsParagraph:$,Testimonials:oo,Text:to,Ticker:ro,Timeline:eo,TimelineTrack:ao,TitleWithButtons:mo},Mo=io;function St(){const t={};for(const o of e){const r=Mo[o];t[o]={...po[o],...r?{textParts:r}:null}}return t}export{po as GENERAL_METAS,St as generalRenderMetas};
1
+ import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as n}from"./ContactLocations/meta.js";import{CountdownMeta as s}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{ContentsMeta as S}from"./Contents/meta.js";import{DocBodyMeta as l}from"./DocBody/meta.js";import{DocMastheadMeta as u}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as T}from"./DocMetaCards/meta.js";import{DocTabsMeta as g}from"./DocTabs/meta.js";import{EyebrowMeta as B}from"./Eyebrow/meta.js";import{FAQMeta as C}from"./FAQ/meta.js";import{FeaturedCoverMeta as H}from"./FeaturedCover/meta.js";import{FlexMeta as L}from"./Flex/meta.js";import{FootprintMeta as P}from"./Footprint/meta.js";import{GridMeta as y}from"./Grid/meta.js";import{HeadingMeta as h}from"./Heading/meta.js";import{HeroGroupMeta as k}from"./HeroGroup/meta.js";import{HeroMeta as E}from"./Hero/meta.js";import{HeroSingleMeta as A}from"./HeroSingle/meta.js";import{HeroSlideMeta as D}from"./HeroSlide/meta.js";import{ImageBlockMeta as F}from"./ImageBlock/meta.js";import{IntegrationsMeta as R}from"./Integrations/meta.js";import{IntroBleedMeta as I}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as x}from"./KeyFeatures/meta.js";import{LocationMapMeta as G}from"./LocationMap/meta.js";import{LogoBlockMeta as b}from"./LogoBlock/meta.js";import{LogosMeta as _}from"./Logos/meta.js";import{LongReadMeta as v}from"./LongRead/meta.js";import{ManifestoMeta as w}from"./Manifesto/meta.js";import{MastheadMeta as O}from"./Masthead/meta.js";import{MockupMeta as N}from"./Mockup/meta.js";import{OrderSummaryMeta as K}from"./OrderSummary/meta.js";import{CardListMeta as Q}from"./CardList/meta.js";import{ParagraphsAMeta as W}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as X}from"./PaymentBadges/meta.js";import{PostCardMeta as j}from"./PostCard/meta.js";import{ProcessStepsMeta as q}from"./ProcessSteps/meta.js";import{ProseMeta as z}from"./Prose/meta.js";import{SectionHeaderMeta as J}from"./SectionHeader/meta.js";import{SeriesMeta as U}from"./Series/meta.js";import{SpacerMeta as V}from"./Spacer/meta.js";import{SpecStripMeta as Y}from"./SpecStrip/meta.js";import{SplitMeta as Z}from"./Split/meta.js";import{StatsMeta as $}from"./Stats/meta.js";import{StatsParagraphMeta as oo}from"./StatsParagraph/meta.js";import{TestimonialsMeta as to}from"./Testimonials/meta.js";import{TextMeta as ro}from"./Text/meta.js";import{TickerMeta as eo}from"./Ticker/meta.js";import{TimelineMeta as ao}from"./Timeline/meta.js";import{TimelineTrackMeta as mo}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as io}from"./TitleWithButtons/meta.js";import po from"./text-part-shapes.json";const Mo={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:n,CustomHTML:c,Divider:d,Contents:S,DocBody:l,DocMasthead:u,DocMetaCards:T,DocTabs:g,Eyebrow:B,FAQ:C,FeaturedCover:H,Flex:L,Footprint:P,Grid:y,Heading:h,Hero:E,HeroGroup:k,HeroSingle:A,HeroSlide:D,ImageBlock:F,Integrations:R,IntroBleed:I,Countdown:s,KeyFeatures:x,LocationMap:G,LogoBlock:b,Logos:_,LongRead:v,Manifesto:w,Masthead:O,Mockup:N,OrderSummary:K,CardList:Q,ParagraphsA:W,PaymentBadges:X,PostCard:j,ProcessSteps:q,Prose:z,SectionHeader:J,Series:U,Spacer:V,SpecStrip:Y,Split:Z,Stats:$,StatsParagraph:oo,Testimonials:to,Text:ro,Ticker:eo,Timeline:ao,TimelineTrack:mo,TitleWithButtons:io},fo=po;function ut(){const t={};for(const o of e){const r=fo[o];t[o]={...Mo[o],...r?{textParts:r}:null}}return t}export{Mo as GENERAL_METAS,ut as generalRenderMetas};
@@ -1,3 +1,3 @@
1
1
  import type { Config } from "efficient-easel/blocks";
2
- export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML"];
2
+ export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML", "CardList"];
3
3
  export declare function generalCategories(): Config["categories"];
@@ -1 +1 @@
1
- import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
1
+ import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML","CardList"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
@@ -32,4 +32,4 @@ WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value
32
32
 
33
33
  WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
34
34
 
35
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ArticleBody:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),E=a("service"),c="Flex",s="Box",S=`${s}es`;function d(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===c?d(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,E as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,w as labelAtLevel,d as labelForFlex};
35
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ArticleBody:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),E=a("service"),c="Flex",s="Box",S=`${s}es`;function d(e){return e==="section"?"Blank section":s}function w(e,t,n){return e===c?d(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,S as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,c as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,E as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,w as labelAtLevel,d as labelForFlex};
@@ -235,6 +235,7 @@ export declare const WEB_BUILDER_WORDS: {
235
235
  readonly "Card image": "Card image";
236
236
  readonly "Card layout": "Card layout";
237
237
  readonly "Card link": "Card link";
238
+ readonly "Card list": "Card list";
238
239
  readonly "Card number": "Card number";
239
240
  readonly "Card outline": "Card outline";
240
241
  readonly "Card shadow": "Card shadow";