efficient-storefront-blocks 0.133.4 → 0.133.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/dist/chunks/{CustomHtmlCodeWindow-ZPYYAXIT.js → CustomHtmlCodeWindow-2CJO3FRG.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-BYCGH5HR.js → EditorPreviewCheckout-524ZFYDR.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-WZHTXNWZ.js → SiteEditorProvider-E53DXAEH.js} +1 -1
- package/dist/chunks/{chunk-RG2VEZZ7.js → chunk-5W6M2F4B.js} +1 -1
- package/dist/chunks/chunk-6JIG2WYA.js +1 -0
- package/dist/chunks/{chunk-MJ4NDWP7.js → chunk-LUHOZIHO.js} +1 -1
- package/dist/editor/components/ProductHeroSource.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/GalleryB/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductName/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +19 -6
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +27 -27
- package/dist/links.js +1 -1
- package/dist/render/components/GalleryGrid.d.ts +2 -1
- package/dist/render/components/GalleryGrid.js +2 -2
- package/dist/render/components/PopupHost.js +1 -1
- package/dist/render/components/ProductGallery.d.ts +2 -1
- package/dist/render/components/ProductGallery.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +2 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/QuoteLink.d.ts +5 -0
- package/dist/render/components/QuoteLink.js +1 -1
- package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
- package/dist/render/components/card-pieces/CardName.d.ts +3 -1
- package/dist/render/components/card-pieces/CardName.js +1 -1
- package/dist/render/components/card-pieces/HeadlineName.d.ts +3 -1
- package/dist/render/components/card-pieces/HeadlineName.js +1 -1
- package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
- package/dist/render/components/pdp-dynamic/DynamicProductGallery.d.ts +2 -1
- package/dist/render/components/pdp-dynamic/DynamicProductGallery.js +1 -1
- package/dist/render/components/product-hero/SpinLayer.js +1 -1
- package/dist/render/components/product-hero/WheelHeroFitment.js +1 -1
- package/dist/render/components/product-hero/hero-view.d.ts +1 -0
- package/dist/render/components/product-hero/hero-view.js +1 -1
- package/dist/render/components/useProductSelection.d.ts +1 -0
- package/dist/render/components/useProductSelection.js +1 -1
- package/dist/render/lib/catalog/start-picks.d.ts +2 -0
- package/dist/render/lib/catalog/start-picks.js +1 -0
- package/dist/render/lib/content/title-look.d.ts +4 -0
- package/dist/render/lib/content/title-look.js +1 -1
- package/dist/render/lib/document/blocks/commerce/GalleryB/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductGallery/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductGallery/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductName/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductSku/render.js +1 -1
- package/dist/render/lib/popup/site-popup-opens.d.ts +9 -0
- package/dist/render/lib/popup/site-popup-opens.js +1 -0
- package/dist/render/lib/sections/gallery-product-sets.d.ts +11 -0
- package/dist/render/lib/sections/gallery-product-sets.js +1 -0
- package/dist/render/lib/sections/hero-gallery.d.ts +2 -0
- package/dist/render/lib/sections/hero-gallery.js +1 -1
- package/dist/render/lib/sections/hero-option-looks.d.ts +2 -0
- package/dist/render/lib/sections/hero-option-looks.js +1 -1
- package/dist/render/lib/sections/spin-sets.d.ts +8 -0
- package/dist/render/lib/sections/spin-sets.js +1 -1
- package/dist/render/lib/wheels/plp-hydrate.js +1 -1
- package/dist/render/lib/wheels/price-display.d.ts +9 -0
- package/dist/render/lib/wheels/price-display.js +1 -1
- package/dist/render/lib/wheels/spec-sheet.d.ts +44 -4
- package/dist/render/lib/wheels/spec-sheet.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +19 -6
- package/dist/words.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-JBFEQFNX.js +0 -1
- /package/dist/chunks/{chunk-MJ4NDWP7.js.LEGAL.txt → chunk-LUHOZIHO.js.LEGAL.txt} +0 -0
|
@@ -6,4 +6,4 @@ import{b as mu,c as hu,d as Pu,e as ku,g as Ks,h as Iu,i as Au}from"./chunk-DO5F
|
|
|
6
6
|
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
7
7
|
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],uE=/^https?:\/\//i;function CF(e){let t=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:Rs(e.lat),lng:Rs(e.lng),mapsUrl:uE.test(t)?t:""}}function Kp(e){let t=String(e??"").split(" \xB7 ");return{state:(t[0]??"").trim(),country:(t[1]??"").trim()}}var OF="other",PF={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};var nt="siteOffices",on=e=>typeof e=="string"?e:"",jp=e=>O(e)??0;function dE(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t=e;return{role:on(t.role),city:on(t.city),country:on(t.country),address:on(t.address),phone:on(t.phone),group:on(t.group),hq:t.hq===!0,lat:jp(t.lat),lng:jp(t.lng)}}function NF(e){let t=e&&typeof e=="object"?e[nt]:void 0;return Array.isArray(t)?t.map(dE).filter(n=>n!==null):[]}function LF(e){let{state:t,country:n}=e.country.includes(" \xB7 ")?Kp(e.country):{state:"",country:e.country.trim()};return{photo:"",group:e.group??"",groupName:"",name:e.city,state:t,country:n,timezone:"",address:e.address??"",phone:e.phone??"",hours:"",lat:e.lat,lng:e.lng,mapsUrl:""}}var Vp={key:bc,label:"Site offices",blocks:["Footprint","ContactLocations"]};var Yr="Footer",Yp=[ve,Yr,Ge],Bn=[wt,nt,Fn],fE=[Ge,Yr],Xr=e=>fE.includes(e?.type??"");function mE(e){let t=e?.props;if(!t||!Bn.some(o=>o in t))return e;let n={};for(let[o,a]of Object.entries(t))Bn.includes(o)||(n[o]=a);return{...e,props:n}}function hE(e,t){let n=Bn.filter(a=>t&&a in t);if(!n.length)return e;let o={...e.props??{}};for(let a of n)o[a]=t[a];return{...e,props:o}}function GF(e){return Array.isArray(e)?e.find(t=>Xr(t))?.props??null:null}function gE(e,t){if(!t)return e;let n=Bn.filter(a=>a in t&&(!e||JSON.stringify(e[a])!==JSON.stringify(t[a])));if(!n.length)return e;let o={...e??{}};for(let a of n)o[a]=t[a];return o}var ot=e=>{let t=e?.content;return Array.isArray(t)?t:[]},at=e=>{let t=e?.zones;return t&&typeof t=="object"&&!Array.isArray(t)?t:null},an=e=>{let t=e?.props?.id;return typeof t=="string"?t:void 0},Xp=e=>Hr(e)?.ownerId??"";function qp(e){let t=na(ot(e)),n=t.some(o=>o?.type===Ge);return t.filter(o=>o?.type===ve||o?.type===Ge||o?.type===Yr&&!n)}function ra(e,t){let n=new Set,o=a=>{if(Array.isArray(a)){for(let s of a)o(s);return}if(!(!a||typeof a!="object")){if(pE(a)){let s=an(a);s&&n.add(s)}for(let s of Object.values(a))o(s)}};if(o(e),t){let a=!0,s=new Set;for(;a;){a=!1;for(let[r,i]of Object.entries(t))s.has(r)||!n.has(Xp(r))||(s.add(r),o(i),a=!0)}}return n}function Zp(e,t){let n=ot(e).filter(o=>{let a=an(o);return typeof o?.type=="string"&&Yp.includes(o.type)||a!==void 0&&t(a)});return n.length?ra(n,at(e)):new Set}function Vr(e,t){let n={},o={};for(let[a,s]of Object.entries(e??{}))(t.has(Xp(a))?n:o)[a]=s;return{owned:n,rest:o}}function Jp(e){let t=e?.root,n=t&&typeof t=="object"?t.props:void 0;return n&&typeof n=="object"&&!Array.isArray(n)?n:null}function zF(e,t){if(!t)return e;let n=qp(t);if(!n.length)return e;let o=n.filter(l=>l.type===ve),a=Jp(t),s=n.filter(l=>l.type!==ve).map(l=>Xr(l)?hE(l,a):l),r={...e,content:[...o,...ot(e),...s]},{owned:i}=Vr(at(t),ra(n,at(t)));return Object.keys(i).length&&(r.zones={...at(e)??{},...i}),r}function WF(e,t){if(!t)return{page:e,chrome:null};let n=qp(t),o=new Set(n.map(an).filter(v=>!!v)),a=[],s=[],r=null;for(let v of ot(e)){let w=an(v),R=w&&o.has(w)||ta(v?.type);if(R&&Xr(v)&&!r){r={};for(let D of Bn)v.props&&D in v.props&&(r[D]=v.props[D])}let C=mE(v);R?s.push(C):a.push(C)}let i=new Map(s.map(v=>[an(v),v])),l=new Set,u=na(ot(t)).flatMap(v=>{let w=an(v);if(!w||!o.has(w))return[v];let R=i.get(w);return R?(l.add(R),[R]):[]});for(let v of s)l.has(v)||u.some(w=>w?.type===v.type)||(u=v.type===ve?[v,...u]:[...u,v]);u=na(u);let d=u.length===ot(t).length&&u.every((v,w)=>v===ot(t)[w]||JSON.stringify(v)===JSON.stringify(ot(t)[w])),p=at(e),f=ra(u,p),{owned:m,rest:b}=Vr(p,f),y=Vr(at(t),ra(n,at(t))).owned,_={...t,content:d?t.content:[...u]},S=bE(t,r);S!==t.root&&(_.root=S);let E=at(t);if(E||Object.keys(m).length){let v={};for(let[w,R]of Object.entries(E??{}))w in y?w in m&&(v[w]=m[w]):v[w]=R;for(let[w,R]of Object.entries(m))w in v||(v[w]=R);_.zones=v,E&&yE(_.zones,E)&&(_.zones=E)}let x={...e,content:a};return p&&(Object.keys(b).length||!Object.keys(y).length?x.zones=b:delete x.zones),{page:x,chrome:_}}function bE(e,t){let n=Jp(e),o=gE(n,t);return o===n?e.root:{...e.root&&typeof e.root=="object"?e.root:{},props:o}}function yE(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((a,s)=>a===o[s]&&e[a]===t[a])}function KF(e,t){return n=>e(n)||n!==void 0&&Yp.includes(n)&&t()}var Qp=null;function VF(e){Qp=e}function ef(){return Qp}var tf=null;function YF(e){tf=e}function XF(){return tf}var qr=Rp();function nf(e,t,n){if(!t)return;let o={...qr.get(e)};for(let[a,s]of Object.entries(t))o[a]={...s,noted:n};qr.set(e,o)}function tB(e,t){nf(e,t,"load")}function nB(e,t){nf(e,t,"save")}function of(e){return qr.use(e)}var Zr=e=>!!ef()?.sectionOf(e);function af(e,t=Zr){return Zp(e,t)}function sf(e,t,n,o=Zr){if(n)return e&&af(t,o).has(e)?void 0:n}function oB(e,t,n=Zr){if(!e)return{};let o=[...af(t,n)];return o.length?{[ea]:e,[Br]:o}:{[ea]:e}}import{ScreenDocumentContext as GO}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as zO,hidableText as WO}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as ug,LINK_FIELD_MARKER as KO,MEDIA_FIELD_MARKER as jO,SCAFFOLD_FIELD_MARKER as VO,TEXT_FIELD_MARKER as je,foldMetaOf as dg,textFieldIdentifier as CW}from"efficient-easel/draw";import{jsx as ff}from"react/jsx-runtime";import{useCallback as xE}from"react";import{useEasel as vE}from"efficient-easel/easel";import{SettingsAction as wE}from"efficient-easel/panel";import{isLengthUnit as TE}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as ia,hasCornerSubset as Mn,normalizeCornerSides as De}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as SE}from"efficient-easel/screen/lib/content/length-units";var Jr={kind:"radius",unitKey:"sectionCornersUnit"};function Qr(e){return typeof e=="number"&&Number.isFinite(e)}function lB(e,t,n){if(!Qr(e))return;let o=SE(n)&&n!=="px"?Vt(e,n):Vt(Ie(e));if(Object.keys(o).length===0)return;let a=o[ei];if(typeof a!="string")return o;let s=Mn(t)?Ct(a,De(t)??[]):a;return{...o,[_E]:s}}var _E="--sf-section-radius",ei="--sf-card-radius";function Ct(e,t){return ia.map(n=>t.includes(n)?e:"0").join(" ")}var rf=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Hn={kind:"radius",unitKey:"cardCornersUnit"},EE="--sf-card-box-radius";function ti(e){return typeof e=="number"&&Number.isFinite(e)}function fB(e,t,n){if(!ti(e))return;let o=(TE(n)&&n!=="px"?Vt(e,n):Vt(Ie(e)))[ei];if(typeof o!="string")return;let a=Mn(t)?Ct(o,De(t)??[]):o;return{[EE]:a}}function lf(e,t){let n=e.find(r=>r?.props?.id===t);if(!n)return[...e];let o=n.props?.cardCorners,a=n.props?.cardCornerSides,s=n.props?.[Hn.unitKey];return e.map(r=>r?.props?.id===t?r:{...r,props:{...r.props,cardCorners:o,cardCornerSides:a,[Hn.unitKey]:s}})}function cf(e,t,n){let o=oa(e,t,n),a=o?.slot??"",s=o&&Array.isArray(o.item.props[a])?o.item.props[a]:[],r=n?.index??-1,i=r>=0?s[r]:void 0,l=i?.props?.id?String(i.props.id):"",u=Math.max(s.length-1,0);return!o||!l?{can:!1,reason:"unreachable",others:0}:s.length<=1?{can:!1,reason:"alone",others:u}:ti(i?.props?.cardCorners)?{can:!0,others:u,zone:o.zone,index:o.index,data:{...o.item,props:{...o.item.props,[a]:lf(s,l)}}}:{can:!1,reason:"unset",others:u}}function uf(e){return e.can?xn("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?c("This is the only card in the section."):e.reason==="unset"?c("Set this card's corners first."):c("This card is not in a section that can share corners.")}function df(e){return xn("Applied to {n} card","Applied to {n} cards",e)}function pf(e,t){e.can&&t(e.zone,e.index,e.data)}import{useSectionOps as CE}from"efficient-easel/screen/lib/document/use-section-ops";var OE="apply-corners-to-siblings",PE="Apply to all cards";function kE({plan:e,onPress:t}){return ff(wE,{id:OE,label:c(PE),note:uf(e),disabled:!e.can,doneLabel:df(e.others),onPress:t})}function mf(){let{appState:e,config:t}=vE(s=>s),n=CE(),o=cf(t,e.data.content??[],e.ui.itemSelector),a=xE(()=>{pf(o,n.replaceComponent)},[o,n]);return ff(kE,{plan:o,onPress:a})}import{isShown as xf,lazyShowWhenContext as WE}from"efficient-shell/format";var st="product",la="recordType",hf={key:st,label:"Product",fields:[]},IE=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,AE=/^[a-z][A-Za-z0-9]*$/,RE=["text","date","images"],ni=new Map,gf=0;function NE(e){if(typeof e.key!="string"||!IE.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===st)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let t=new Set;for(let n of e.fields){if(typeof n.key!="string"||!AE.test(n.key)||t.has(n.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(n.key)}.`);if(!RE.includes(n.kind))throw new Error(`The field ${n.key} of ${e.key} has no kind ${JSON.stringify(n.kind)}.`);t.add(n.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(n=>({...n}))}}function OB(e){let t=e.map(NE);for(let n of t)ni.set(n.key,n);t.length&&(gf+=1)}function oi(){return[hf,...ni.values()]}function LE(e){return e===st?hf:ni.get(e)??null}function ai(){return gf}function $n(e){let t=e?.[la];return typeof t!="string"?st:t.trim()||st}function si(e){return $n(e)===st}function PB(e,t){let n=LE(e)?.fields??[];return t?n.filter(o=>t.includes(o.kind)):n}var ca="product",bf="tyre",DE=[ca,bf];function AB(e){return DE.includes(e)}var FE="productType",BE={[ca]:"alloy-wheel",[bf]:"tyre"},ME=["alloy-wheel","tyre"];function yf(e,t){return si(t)?Sf(t)??BE[e]??null:null}function Sf(e){if(!si(e))return null;let t=e?.[FE];return typeof t=="string"&&ME.includes(t)?t:null}function RB(e){let t=e?.root;return Sf(t?.props)}var HE="Main Pages",$E="Dynamic Pages",UE="dynamic",GE="dynamic";function ri(e){return e.kind===GE}var ii="lightbox";function LB(e){return e.kind===ii}function DB(e){let t=[],n=[];for(let o of e){if(ri(o)){n.push(o);continue}let a=o.groupKey??(o.group?`folder:${o.group}`:"top"),s=t[t.length-1];s&&s.key===a?s.rows.push(o):t.push({key:a,label:o.group??HE,rows:[o]})}if(n.length){let o=t.findIndex(a=>a.key.startsWith("system:"));t.splice(o===-1?t.length:o,0,{key:UE,label:$E,rows:n})}return t}var ua=null,_f=null;function zE(e,t){ua=e,_f=t}function $B(e){zE(e,null)}function UB(){return ua}function Un(){return ri({kind:_f})||ua===ca}function GB(e){return yf(ua??"",e)??"alloy-wheel"}function Tf(e){return Un()?$n(e):null}function eM(e,t,n){let o=!1,a={};for(let[s,r]of Object.entries(e)){if(!xf(As(r),t??{},n)){o=!0;continue}let i=KE(r,t?.[s],t??{},n);i!==r&&(o=!0),a[s]=i}return o?a:e}function KE(e,t,n,o){let a=e?.options;if(!Array.isArray(a))return e;let s=a.filter(r=>r?.value===t||!r?.showWhen||xf(r.showWhen,n,o));return s.length===a.length?e:{...e,options:s}}function tM(e,t,n,o){let a=oa(t,n,o);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Ef(e,t){if(!e||typeof e!="object")return!1;let n=e;if(typeof n.context=="string"&&(n.context===t||n.context.startsWith(`${t}.`)))return!0;if("not"in n)return Ef(n.not,t);for(let o of[n.all,n.any])if(Array.isArray(o)&&o.some(a=>Ef(a,t)))return!0;return!1}function nM(e,t={}){return WE({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Un(),root:()=>e.appState?.data?.root?.props,...t})}import{isLengthUnit as jE}from"efficient-easel/screen/lib/content/length-units";var vf=1,VE="cardImageUnit",li={kind:"radius",unitKey:VE},wf={kind:"radius"};function YE(e){return Ie(e)}function lM(e,t){if(jE(t)&&t!=="px"){let o=O(e);return o!==void 0&&o>=0?{"--sf-card-image-radius":H(o,t)}:{}}let n=YE(e);return n===null?{}:{"--sf-card-image-radius":`${n}px`}}import{isLengthUnit as XE}from"efficient-easel/screen/lib/content/length-units";var Cf={kind:"radius",unitKey:"cornersUnit"},Of=1,Pf="Corners";function qE(e){return Ie(e)}function hM(e,t,n){let o=XE(n)&&n!=="px"?O(e):void 0,a=o===void 0?qE(e):null;if(o===void 0&&a===null)return null;let s=o!==void 0?H(Math.max(0,o),n):`${a}px`;return{borderRadius:Mn(t)?Ct(s,De(t)??[]):s}}import{phoneKey as Df}from"efficient-easel/screen/lib/content/view-tiers";var kf=12,sn=6,ZE=Tn,da={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"},mosaic:{label:"Mosaic",across:4,acrossPhone:2,desktop:[[6,2],[3,1],[3,1],[6,1],[6,1],[3,1],[3,1],[6,2],[6,1],[6,1]],tail:{1:{1:[12,2]},2:{2:[6,2]},3:{2:[6,1],3:[6,1]},5:{5:[12,1]},6:{6:[6,1]},8:{8:[12,2]},9:{9:[6,2]}},phone:[[6,2],[3,1],[3,1],[6,1],[3,1],[3,1],[6,2],[3,1],[3,1],[6,1]],tailPhone:{2:{2:[6,1]},5:{5:[6,1]},8:{8:[6,1]}}}},If=["phone","acrossPhone","leadPhone","tailPhone"];var JE=new Set(If),Gn=Object.fromEntries(Object.entries(da).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).filter(([n])=>!JE.has(n)))])),ui=Object.keys(da),Af=[2,3,4,6];function di(e,t){return ui.filter(n=>n===t||e===null||Gn[n].across===e)}function Rf(e){let t=e.layout;return typeof t=="string"&&ge(da,t)?t:null}function pi(e){let t=Rf(e);return t?QE(t,e.layoutPhone):null}var pa={oneAcross:{label:"One across",phone:[[sn,2]],acrossPhone:1}};function Nf(e){return typeof e=="string"&&ge(pa,e)?e:null}function ci(e,t){return t?sn/e.acrossPhone:kf/e.across}function _M(e,t,n,o){let a=(t?e.leadPhone:e.lead)??[],s=t?e.phone:e.desktop;if(n<a.length)return a[n];let r=Number.isFinite(o)?(o-a.length)%s.length:0;if(r>0&&n>=o-r){let i=t?e.tailPhone:e.tail;if(!i)return[ci(e,t),1];let l=i[r]?.[n-(o-r)+1];if(l)return l}return s[(n-a.length)%s.length]}function fi(e){return e.ratio?Su.find(t=>t.shape===e.ratio)?.ratio??null:null}function Lf(e){return[...e.lead??[],...e.desktop]}function QE(e,t){let n=da[e],o=Nf(t);if(!o)return n;let{phone:a,acrossPhone:s}=pa[o],r=Object.fromEntries(If.map(i=>[i,void 0]));return{...n,...r,phone:a,acrossPhone:s}}var ex="sf-wall--";function tx(e){let t=Rf(e);if(!t)return"";let n=Nf(e.layoutPhone);return`${ex}${t}${n?`--${n}`:""}`}function TM(e){let t=pi(e);if(!t)return"";let n=`.${tx(e)}`,o=[],a=(l,u,d)=>`${n}:has(> :nth-child(${l}n+${u+d}):last-child) > :nth-last-child(-n+${d})`,s=(l,u)=>Object.entries(u).flatMap(([d,p])=>Object.entries(p).map(([f,m])=>({r:Number(d),k:Number(f),cell:m,selector:`${n}:has(> :nth-child(${l}n+${d}):last-child) > :nth-last-child(${Number(d)-Number(f)+1})`}))),r=(l,u,d=[],p)=>{let f=[],m=l.length,b=d.length;if(d.forEach(([y,_],S)=>{f.push(`${n} > :nth-child(${S+1}){grid-column:span ${y};grid-row:span ${_}}`)}),l.forEach(([y,_],S)=>{f.push(`${n} > :nth-child(${m}n+${b+S+1}){grid-column:span ${y};grid-row:span ${_}}`)}),p){for(let{selector:y,cell:_}of s(m,p))f.push(`${y}{grid-column:span ${_[0]};grid-row:span ${_[1]}}`);return f}for(let y=1;y<m;y+=1)f.push(`${a(m,b,y)}{grid-column:span ${u};grid-row:span 1}`);return f};o.push(`${n}{grid-template-columns:repeat(${kf},minmax(0,1fr))}`);let i=fi(t);if(i&&(o.push(`${n}${n}{grid-auto-rows:auto}`),o.push(`${n}${n} > *{aspect-ratio:${i[0]}/${i[1]};height:auto}`)),o.push(...r(t.desktop,ci(t,!1),t.lead,t.tail)),o.push(`@media (max-width:${ZE}px){`),o.push(`${n}{grid-template-columns:repeat(${sn},minmax(0,1fr))}`),o.push(...r(t.phone,ci(t,!0),t.leadPhone,t.tailPhone)),t.tail){let l=t.phone.length===1&&!t.leadPhone?.length;for(let{r:u,k:d,selector:p}of s(t.desktop.length,t.tail)){let[f,m]=l?t.phone[0]:t.tailPhone?.[u]?.[d]??t.phone[d-1];o.push(`${p}{grid-column:span ${f};grid-row:span ${m}}`)}}else if(t.phone.length===1&&!t.leadPhone?.length){let[l,u]=t.phone[0],d=t.lead?.length??0;for(let p=1;p<t.desktop.length;p+=1)o.push(`${a(t.desktop.length,d,p)}{grid-column:span ${l};grid-row:span ${u}}`)}return o.push("}"),o.join("")}var fa=12,Ff=1,ma=3;var nx=3;function rn(e,t,n){let o=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(o)?Math.min(n,Math.max(t,Math.trunc(o))):null}function ox(e){return rn(e,1,fa)??nx}function wM(e,t){return rn(e,Ff,ma)??(ox(t)===4?2:Ff)}function CM(e){return e==null||e===""?null:rn(e,1,fa)}var OM="data-sf-span",ha=4;function ax(e){return e==null||e===""?null:rn(e,1,ha)}var PM="data-sf-row-span",mi="gridTileAt",hi=48;function kM(e){return e==null||e===""?null:rn(e,1,hi)}var IM="--sf-tile-at";function AM(e){return e==null||e===""?null:rn(e,1,ma)}function RM(e){return ax(e)}var NM="data-sf-span-phone",LM="data-sf-row-span-phone",DM=["gridSpan","gridRowSpan",mi,Df("gridSpan"),Df("gridRowSpan")];function FM(e,t){if(!e)return!1;if(sx(e,t)||e.type==="Grid")return!0;if(e.type==="GalleryB"){if(pi(e.props??{}))return!1;let n=e.props?.columns;return n!=null&&n!==""}return!1}var Bf=new Map;function BM(e,t){Bf.set(e,[...t])}function sx(e,t){if(!e||typeof e.type!="string"||typeof t!="string")return!1;let n=Bf.get(e.type);return n?n.some(o=>{let a=e.props?.[o];return Array.isArray(a)&&a.some(s=>s?.props?.id===t)}):!1}import{jsx as rx}from"react/jsx-runtime";import*as ix from"efficient-easel/icons";function Mf(e){let t=e.replace(/(^|-)([a-z])/g,(o,a,s)=>s.toUpperCase()),n=ix[`${t}Icon`];return n?rx(n,{size:16}):null}import{jsx as rt,Fragment as ux,jsxs as Vf}from"react/jsx-runtime";import{useContext as dx,useEffect as px,useId as fx,useState as Yf}from"react";import{SettingsField as mx,SettingsSwitch as hx}from"efficient-easel/panel";import{AnchorIcon as gx}from"efficient-easel/icons";import{ScreenDocumentContext as bx}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as yx}from"efficient-shell/ui";import{slugify as Sx}from"efficient-shell/format";import{slugify as lx}from"efficient-shell/format";function gi(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var GM=e=>lx(gi(e));var Hf="homepage";import{slugify as cx}from"efficient-shell/format";var $f=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function Uf(e){return e.offersCommerce&&e.offersService?$f:$f.filter(t=>!t.needs||(t.needs==="commerce"?e.offersCommerce:e.offersService))}var bi="#popup:";function Gf(e){return`${bi}${e}`}function zf(e){return e.startsWith(bi)&&e.slice(bi.length).trim()||null}function zn(e){return e===Hf?"/":`/${e}`}function Wf(e){return`/journal/${e}`}function YM(e){return`/wheels/${e}`}function ga(e,t){return`${zn(e)}#${t}`}function Kf(...e){let t=new Set,n=[];for(let o of e)for(let a of o?.content??[]){let s=gi(a?.props?.anchor);if(!s)continue;let r=cx(s);!r||t.has(r)||(t.add(r),n.push({slug:r,name:s}))}return n}function XM(e){let t=e.indexOf("#"),n=t===-1?e:e.slice(0,t),o=n.indexOf("?");return o===-1?n:n.slice(0,o)}function jf(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as _x}from"efficient-easel/draw";function Xf({value:e,onChange:t,nameBox:n}){let o=_x(e).text,[a,s]=Yf(!1),r=a||o.trim()!=="",i=fx();return Vf(ux,{children:[rt(mx,{label:c("Add an anchor"),labelId:i,icon:rt(gx,{}),action:rt(hx,{checked:r,ariaLabelledBy:i,onChange:l=>{s(l),!l&&o!==""&&t("")}})}),r&&n(e,t),r&&rt(Tx,{name:o})]})}function Tx({name:e}){let t=dx(bx),n=t?.templateId?"":t?.currentSlug??"",[o,a]=Yf("");px(()=>a(Ru()),[]);let s=Sx(e);if(!s||!n)return null;let r=`${o}${ga(n,s)}`,i=r.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return rt("div",{className:"sf-anchor-link",children:rt(yx,{value:r,label:c("link"),size:"sm",children:Vf("span",{className:"sf-anchor-link-text",children:[rt("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),rt("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as Fe,jsxs as Ex}from"react/jsx-runtime";import{Fragment as xx}from"react";import{Button as ba,Tooltip as vx}from"efficient-shell/ui";function ya({status:e,statusText:t,onRefresh:n,busy:o=!1,edit:a,hint:s,spaced:r=!0,compact:i=!1,oneLine:l=!1}){return i?Fe("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:r?{marginTop:8}:void 0,children:Fe(vx,{content:s,className:l?"sf-name-tip":void 0,children:Fe("p",{className:"sf-blogsource-status","data-state":e,children:[t?Fe(xx,{children:t},"status"):null,n?Fe(ba,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:n,disabled:o,children:c("Refresh now")},"refresh"):null,a?Fe(ba,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((u,d)=>d?[" \xB7 ",u]:[u])})})}):Ex("div",{className:"sf-blogsource",style:r?{marginTop:9}:void 0,children:[Fe("p",{className:"sf-blogsource-status","data-state":e,children:t}),n?Fe(ba,{variant:"secondary",className:"sf-blogsource-action",onClick:n,disabled:o,children:c("Refresh now")}):null,a?Fe(ba,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Fe("p",{className:"es-field-hint",children:s})]})}import{AdjustIcon as YO,EyeIcon as XO,AnimationIcon as qO,BackgroundIcon as Zh,BorderAllIcon as ZO,BlockSectionIcon as JO,ColumnWidthsIcon as ts,ColumnsIcon as pg,CornerIcon as fg,DirectionDownIcon as QO,DirectionLeftIcon as eP,DirectionRightIcon as tP,DirectionUpIcon as mg,EditIcon as nP,GapIcon as oP,GridIcon as hg,GroundIcon as Il,HashIcon as gg,HeightIcon as ns,ImageIcon as aP,ListIcon as sP,LocationIcon as Jh,PaddingBottomIcon as bg,PaddingLeftIcon as yg,PaddingRightIcon as Sg,PaddingTopIcon as Ll,PageIcon as rP,PhoneIcon as iP,StickyIcon as _g,SearchIcon as lP,SquareIcon as cP,TypeIcon as uP,WidthIcon as dP}from"efficient-easel/icons";import{jsx as U,Fragment as Ot,jsxs as Pt}from"react/jsx-runtime";import{CaptionIcon as wx,DateIcon as Cx,FlagIcon as Ox,TitleIcon as Px,ButtonIcon as kx,DollarIcon as Ix,HashIcon as Ax,LinkIcon as Rx,NoteIcon as Nx,TagIcon as Lx,TextLinesIcon as Dx}from"efficient-easel/icons";var qf={body:Dx,button:kx,link:Rx,label:Lx,number:Ax,price:Ix,note:Nx,name:Ox,date:Cx,caption:wx,title:Px},Zf={eyebrow:Pt(Ot,{children:[U("path",{d:"M5 6.5h5"}),U("path",{d:"M5 12.5h14"}),U("path",{d:"M5 18h11"})]}),heading:Pt(Ot,{children:[U("path",{d:"M6.5 5v14"}),U("path",{d:"M17.5 5v14"}),U("path",{d:"M6.5 12h11"})]}),intro:Pt(Ot,{children:[U("path",{d:"M4 5.5v13"}),U("path",{d:"M8 7.5h12"}),U("path",{d:"M8 12h12"}),U("path",{d:"M8 16.5h8"})]}),value:Pt(Ot,{children:[U("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),U("path",{d:"M6.5 12h7"})]}),quote:Pt(Ot,{children:[U("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),U("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Pt(Ot,{children:[U("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),U("path",{d:"M8 9.5h8"}),U("path",{d:"M12 9.5v5"})]}),meta:Pt(Ot,{children:[U("path",{d:"M4 7h16"}),U("path",{d:"M4 14h3.5"}),U("path",{d:"M10.5 14h3"}),U("path",{d:"M17 14h3"})]})};function yi({noun:e,size:t=14,strokeWidth:n=1.8,className:o,style:a}){let s=qf[e];return s?U("span",{className:o,style:{display:"inline-flex",...a},"aria-hidden":"true",children:U(s,{size:t})}):U("svg",{className:o,style:a,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:Zf[e]})}var gH=Object.keys(qf);var bH=Object.keys(Zf);import{parseHexColor as Fx}from"efficient-shell/format";var Bx="#ffffff";function Si(e){return Jf(e)||(Mx(e)?e:Bx)}function Jf(e){let t=Ae(e);return t?Ze(t)?.page??"":""}function Mx(e){return typeof e=="string"&&Fx(e)===e.toLowerCase()||Jf(e)!==""}function EH(e){return{"--bg":Si(e)}}import{parseHexColor as Hx}from"efficient-shell/format";import{fillColorRole as $x}from"efficient-shell/markup";function kt(e,t,n,o){let a=o??n??t,s=n!==null&&n!==t,r=a!==null&&a!==t;return{className:[s?e.tabletClass:"",r?e.phoneClass:""].filter(Boolean).join(" "),style:{...s?{[e.tabletVar]:n}:{},...r?{[e.phoneVar]:a}:{}}}}var _i=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var DH="sf-card",FH="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Qf={min:0,max:100,step:5,fallback:0,unit:"%"},Ux="68%",MH={desktop:20,phone:20,side:40,sidePhone:24},HH="sf-box-sides";function Gx(e){return typeof e=="string"&&e.trim()!==""}function $H(e){return Gx(typeof e?.bgImage=="string"?e.bgImage:null)||tm(e)}function tm(e){return Eo(e,yo)!==""}function UH(e,t){return t||!tm(e)?e:{...e,[yo]:""}}function GH(e,t){return Ds(t,Eo(e,yo))?.trim()||null}function em(e,t){let n=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(n)||n<=0)return null;let o=(Math.min(Qf.max,Math.max(Qf.min,n))/100).toFixed(2);return t!=="bottom"?{background:xo(Number(o))}:{background:`linear-gradient(0deg, ${xo(Number(o))} 0%, ${xo(0)} ${Ux})`}}var Sa=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],nm="fillFade",Ti=Sa[1].value,_a=e=>e===Ti?Ti:Sa[0].value,zx=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function zH(e){return _a(e)!==Ti?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${zx.map(t=>`color-mix(in srgb, var(--bg) ${t.mix}, transparent) ${t.at}`).join(", ")})`}}var Ta=e=>typeof e=="string"?Hx(e.trim()):null,Wn=e=>{let t=Ta(e);if(t!==null||typeof e!="string")return t;let n=e.trim();return n&&!n.startsWith("#")&&Vu(n)||null},Ea=e=>{if(typeof e!="string")return null;let t=$x($e(e.trim()));return t?.kind==="slot"?t.slot:null},Ei="swatch";function WH(e,t){if(!t)return null;let n=Ds(t,Eo(e,Ei)),o=Ae(n);return Ta(n)??(o&&He(o)||null)}var Wx={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function KH(e,t,n){return kt(Wx,Wn(e),Wn(t),Wn(n))}var Kx={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function jH(e){let t=em(e.darken,e.darkenStyle);if(!t)return{className:"",style:{}};let n=(p,f)=>String(em(p,f)?.background??"none"),o=p=>(typeof p=="number"||typeof p=="string"&&p.trim()!=="")&&Number.isFinite(Number(p))?p:void 0,a=p=>_i.some(f=>f.value===p)?p:void 0,[s,r,i,l]=[o(e.darkenTablet),a(e.darkenStyleTablet),o(e.darkenPhone),a(e.darkenStylePhone)],u=s??e.darken,d=r??e.darkenStyle;return kt(Kx,String(t.background),s!==void 0||r!==void 0?n(u,d):null,i!==void 0||l!==void 0?n(i??u,l??d):null)}function VH(e,t){let n={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[o,a]=n[e]??n.center,[s,r]=t==="column"?[a,o]:[o,a];return Nc(s,r)}function om(e,t){let n=e?.content;if(!Array.isArray(n))return null;for(let o of n){if(!o||typeof o!="object")continue;let{type:a,props:s}=o;if(s?.id===t)return null;if(xi(o,t,0))return{type:typeof a=="string"?a:"",props:s??{}}}return null}function xi(e,t,n){if(n>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>xi(a,t,n+1));let o=e.props;return o&&typeof o=="object"&&o.id===t?!0:Object.values(e).some(a=>xi(a,t,n+1))}function am(e,t){let n=e?.content;return Array.isArray(n)?xa(n,t,0)??[]:[]}function xa(e,t,n){if(n>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let s=xa(a,t,n+1);if(s)return s}return null}let o=e.props;if(o&&typeof o=="object"){if(o.id===t)return[];for(let a of Object.values(o)){let s=xa(a,t,n+1);if(s)return[o,...s]}return null}for(let a of Object.values(e)){let s=xa(a,t,n+1);if(s)return s}return null}import{SettingsDefaultReset as oe,SettingsDrill as pP,SettingsField as K,SettingsGroup as fP,SettingsSegmented as mP,SettingsBorder as hP,SettingsSidesEach as gP,SettingsSwitch as Dl,borderSides as bP,borderStartEach as yP}from"efficient-easel/panel";import{ListField as SP}from"efficient-easel/fields";import{CodeIcon as _P}from"efficient-shell/icons/efficient";import{DisplayChips as TP}from"efficient-shell/ui";import{HIDDEN_KEY as jx,hiddenInEveryView as Vx,hiddenInView as vi,hiddenKeyOf as sm}from"efficient-easel/screen/lib/content/view-hide";import{VIEW_TIERS as Yx}from"efficient-easel/screen/lib/content/view-tiers";var Xx={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},qx={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},rm=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function im(e,{atSectionLine:t=!1}={}){return(t?qx:Xx)[rm(e)]}var JH=[jx,sm("tablet"),sm("mobile")];function lm(e){return{desktop:vi(e,"desktop"),tablet:vi(e,"tablet"),mobile:vi(e,"mobile")}}function QH(e){return Vx(e)}function e$(e){let t=lm(e);return Yx.filter(n=>t[n]).join(" ")}var Zx={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},Jx={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function t$(e,{atSectionLine:t=!1}={}){return(t?Jx:Zx)[rm(lm(e))]}function ln(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let t={};for(let[n,o]of Object.entries(e))typeof o=="boolean"&&(t[n]=o);return t}function va(e,t){return ln(e)[t]!==!1}function wi(e,t,n){let o=ln(t)[n];return typeof o=="boolean"?o:va(e,n)}function cm(e){return Object.values(ln(e)).some(t=>t===!1)}function um(e){return Object.keys(ln(e)).length>0}function dm(e,t,n){let o={...ln(e)};return n?delete o[t]:o[t]=!1,Object.keys(o).length?o:void 0}function pm(e,t,n){return{...ln(e),[t]:n}}function a$(e,t,n,{atSectionLine:o=!0}={}){let a=!va(e,n);return im({desktop:a,tablet:a,mobile:!wi(e,t,n)},{atSectionLine:o})}import{ColorSwatch as EP,CornersInput as xP,DatePicker as ZW,DateTimePicker as vP,FOCAL_DEFAULT as JW,IconPicker as Tg,COLUMN_COUNT_MAX as Qh,COLUMN_SHARE_MIN as wP,COLUMN_SHARES_EQUAL as CP,resolveColumnShares as Eg,WidthsBar as OP,useShellStrings as PP,IconButton as xg,InputNumber as eg,Slider as kP,Textarea as IP,Tooltip as Fl}from"efficient-shell/ui";async function fm(e){let t=e.trim();if(!t)return null;let n=xe().geocode;if(!n)throw new Error("geocode_unavailable");return n.locate(t)}var Ci="Lookup busy \u2014 try again in a moment.",wa=e=>typeof e=="number"&&Number.isFinite(e);function Ca(e){return e.some(t=>{let n=t?.geocode;return n?n.pending||n.manual&&n.lat===void 0&&n.lng===void 0?!0:wa(n.lat)&&n.lat!==t.lat||wa(n.lng)&&n.lng!==t.lng:!1})}async function mm(e,t,{geocode:n=fm,courtesyGapMs:o=1100}={}){let a=r=>new Promise(i=>setTimeout(i,r)),s=e.slice();if(e.some(r=>r?.geocode?.pending)){let r=[],i=!1;for(let l of e){if(!l?.geocode?.pending){r.push(l);continue}i&&o>0&&await a(o),i=!0;try{let u=await n(t(l));r.push(u?{...l,lat:u.lat,lng:u.lng,geocode:{...l.geocode,pending:!1,ok:!0,status:`Found \u2014 ${u.label.split(",").slice(0,3).join(",").trim()}`,lat:u.lat,lng:u.lng}}:{...l,geocode:{...l.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{r.push({...l,geocode:{...l.geocode,pending:!1,ok:!1,status:Ci}})}}s=r}return s.map(r=>{let i=r?.geocode;if(!i)return r;if(i.manual&&i.lat===void 0&&i.lng===void 0)return{...r,geocode:{...i,lat:r.lat,lng:r.lng}};let l=wa(i.lat)&&i.lat!==r.lat?i.lat:r.lat,u=wa(i.lng)&&i.lng!==r.lng?i.lng:r.lng;return l!==r.lat||u!==r.lng?{...r,lat:l,lng:u}:r})}import{keptByRow as Al}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Qx}from"react/jsx-runtime";import{useEffect as ev,useState as tv}from"react";import{clearRangeOf as nv,markSelection as ov,useCaretEdit as av}from"efficient-easel/copy";import{TextToolbar as sv}from"efficient-shell/ui";function rv(e,t,n){return ov(e,t,n,Pc)}function hm(e,t){let n=nv(t,e.length),o=Ic(e,n.start,n.end);return o.text===e?null:o}function iv(e){let[t,n]=tv(null);return ev(()=>{let o=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!o)return;let a=()=>{let s=e.current;if(!s||o.activeElement!==s)return;let r=s.selectionStart??s.value.length,i=s.selectionEnd??r;n(l=>l&&l.start===r&&l.end===i?l:{start:r,end:i})};return o.addEventListener("selectionchange",a),()=>o.removeEventListener("selectionchange",a)},[e]),[t,n]}function lv({target:e,value:t,onChange:n,disabled:o=!1,label:a="Formatting"}){let s=av({target:e,onChange:n}),[r,i]=iv(e),l=f=>s(m=>{let b=rv(t,f,m);return i({start:b.selectionStart,end:b.selectionEnd}),b}),u=Oc(),d={};if(r)for(let f of u)d[f.style]=kc(t,r.start,r.end,f.style);let p=o?null:hm(t,r);return Qx(sv,{offered:new Set(u.map(f=>f.style)),onMark:f=>l(f),pressed:d,disabled:o,"aria-label":c(a),className:"sf-markup-bar",clear:p?{onClear:()=>s(()=>{let f=e.current,m=f&&f.ownerDocument.activeElement===f?{start:f.selectionStart??0,end:f.selectionEnd??0}:null,b=hm(t,m)??{text:t,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:b.selectionStart,end:b.selectionEnd}),b})}:void 0})}var Oi=lv;import{deviceField as te}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as AP,NoControlMark as RP,noControlField as vg}from"efficient-easel/screen/lib/document/panel-no-control-mark";function Oa(e,t,n){return typeof e=="number"?e:typeof t=="number"?t:n}var Pa=void 0;import{phoneKey as it,tabletKey as Bl,viewKeyAt as Ml}from"efficient-easel/draw";import{jsx as ka,Fragment as cv,jsxs as uv}from"react/jsx-runtime";import{useRef as dv}from"react";import{SettingsDefaultReset as pv}from"efficient-easel/panel";import{effectTiles as fv}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as gm,describedAs as mv,onDesktopWords as hv,phoneTwinFields as bm}from"efficient-easel/screen/lib/document/box-fields";function gv({row:e,read:t,...n}){let o=t(Z(),n.followsView??"desktop");return e({...n,follows:o})}function ze(e,t){return Object.fromEntries(_u.map(n=>{let o=$(e,n);return[o,bm(e,t(n),gm)[o]]}))}function C$(e,t,n){let o=t.render,a={...t,render:s=>ka(gv,{...s,row:o,read:n})};return ze(e,s=>s==="desktop"?t:a)}function bv({spec:e,...t}){let n=e.values.includes(t.value),o="follows"in t,a=e.read(Z(),t.followsView??"desktop"),s=n?t.value:a,r=dv(null),{preview:i}=e,l=fv({label:c(e.label),options:e.values.map(d=>({value:d,label:c(e.word(d)),picture:e.picture(d)})),fallback:e.fallback,onPreview:i?d=>r.current&&i(r.current,d):void 0}).render,u=l({value:s,onChange:d=>t.onChange(d??e.fallback)});return uv(cv,{children:[i?ka("div",{ref:r,style:{display:"contents"},children:u}):u,o&&n&&ka(pv,{words:P()?.panel,label:c(e.tileWord),changed:!0,detail:hv(d=>c(d),c(e.word(a)),t.followsView),onReset:()=>t.onChange(void 0)})]})}function O$(e,t){let n=mv({type:"custom",render:o=>ka(bv,{...o,spec:t})},{type:"select",label:t.label,options:t.values.map(o=>({value:o,label:t.word(o)}))});return bm(e,n,gm)}import{jsx as Pi,Fragment as yv}from"react/jsx-runtime";import{createContext as Sv,useContext as _v}from"react";import{NoControlMark as Tv}from"efficient-easel/screen/lib/document/panel-no-control-mark";var ym=Sv(!1);function N$({children:e}){return Pi(ym.Provider,{value:!0,children:e})}function Ev(){return _v(ym)}function Sm({name:e,children:t}){return!Ev()||!e||!xv(e)||In(e)?Pi(yv,{children:t}):Pi(Tv,{})}function xv(e){return/^[A-Za-z0-9_$]+$/u.test(e)}import{parseOption as vv}from"efficient-shell/format";var ki="off",Tm="none",Ii=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],Em=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function F$(e){return vv(Ii,ki,e)}var _m="sf-card-index",Kn="sf-card-index",B$="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",wv={plain:`counter(${Kn})`,padded:`counter(${Kn}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Kn}, decimal-leading-zero)`};function M$(e,t){return t==="off"?"":`.${e}{counter-reset:${Kn}}.${e} .${_m}{counter-increment:${Kn}}.${e} .${_m}::before{content:${wv[t]}}`}function H$(e){return e==="hairline"?"border border-line hover:border-accent":""}var xm=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as NP}from"efficient-easel/draw";import{jsx as ue}from"react/jsx-runtime";import{SettingsDefaultReset as Nv,SettingsField as Ai}from"efficient-easel/panel";import{useSelectedHost as Lv}from"efficient-easel/easel";import{FOCAL_DEFAULT as Dv}from"efficient-shell/format";import{ImageIcon as Ri,PlayIcon as vm}from"efficient-easel/icons";import{ImageFocusPoint as Fv,MediaUploadField as Bv}from"efficient-shell/ui";import{useContext as Mv}from"react";import{ScreenDocumentContext as Hv}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as $v,viewKeyAt as Uv}from"efficient-easel/draw";import{usePreviewDevice as Gv}from"efficient-easel/draw/client";import{formatFocal as Cv,parseFocal as Ov}from"efficient-shell/format";var Pv="sf-focus-phone",kv="--sf-focus-phone",Iv="sf-focus-tablet",Av="--sf-focus-tablet",jn=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:t,y:n}=Ov(e);return Cv(t,n)};function W$(e,t){return kt(Rv,null,jn(t),jn(e))}var Rv={tabletClass:Iv,tabletVar:Av,phoneClass:Pv,phoneVar:kv};import{shownTier as Ni}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as zv}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as Wv}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Kv}from"efficient-easel/screen/lib/host";import{useEaselSession as jv}from"efficient-easel/screen/lib/session-context";function Vv(e,t,n,o=!0){let a=Ni(n),s=typeof e[t]=="string"&&e[t]?String(e[t]):Dv;if(a==="desktop")return{ownView:!1,followed:s,followsView:"desktop",own:void 0,focus:s,key:t};let r=Uv(t,a),i=jn(e[r])??void 0,l=a==="mobile"&&o?jn(e[$v(t)])??void 0:void 0,u=l??s;return{ownView:!0,followed:u,followsView:l?"tablet":"desktop",own:i,focus:i??u,key:r}}function Yv(e,t,n){let o=Lv();if(!t||!o)return null;let a=o.values??{};if(n&&!n(a,Ni(e)))return null;let s=Vv(a,t,e,n?n(a,"tablet"):!0),r=o.onChange;return{...s,set:i=>r(s.key,i),clear:()=>r(s.key,Pa)}}function wm({value:e,onChange:t,label:n,accept:o,placeholder:a,focusKey:s,focusWhen:r,frameKey:i,fieldKey:l}){let u=Kv(),d=jv(),p=c(n),f=Gv(),m=o.startsWith("video"),b=Yv(f,m?void 0:s,r),y=!!s&&Ni(f)!=="desktop",_=Mv(Hv),S=cn(),E=i&&l?{video:l,frame:i}:null,x=C=>Wv(u,{accept:o,title:p,...C?{file:C}:{}}).then(D=>!D||!E?D?.url??null:(S({[E.video]:D.url,[E.frame]:D.posterUrl??""}),null)),v=E?C=>C?t(C):S({[E.video]:"",[E.frame]:""}):t,w=re(e);if(y&&(!b||!w))return null;if(_&&!_.capabilities.mediaEditing)return ue(Ai,{label:p,icon:m?ue(vm,{}):ue(Ri,{}),children:ue("div",{className:"sf-image-slot-inert",children:m?c("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):c("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let R=b?.ownView&&w?ue(Nv,{words:P()?.panel,label:c("Image focus"),changed:!!b.own,detail:zv(C=>c(C),b.followed,b.followsView),onReset:b.clear}):void 0;return y&&b?ue(Ai,{label:p,icon:ue(Ri,{}),action:R,children:ue("div",{style:{flex:"1 1 auto",minWidth:0},children:ue(Fv,{value:b.focus,onChange:b.set,label:c("Image focus"),image:w,hint:null})})}):ue(Ai,{label:p,icon:m?ue(vm,{}):ue(Ri,{}),children:ue("div",{style:{flex:"1 1 auto",minWidth:0},children:ue(Bv,{value:w,onChange:v,onPick:x,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:xe(d).media.maxUploadBytes,...b?{focus:b.focus,onFocusChange:b.set}:{}})})})}import{jsx as Cm}from"react/jsx-runtime";import{useId as Xv}from"react";import{FieldSelect as qv}from"efficient-easel/fields";import{SettingsField as Zv}from"efficient-easel/panel";function Jv(e){return e.map(({value:t,label:n,note:o})=>({value:t,label:n,...o?{meta:o}:{}}))}function Om({label:e,options:t,value:n,onChange:o,emptyLabel:a,icon:s,hint:r}){let i=Xv(),l=`${i}-label`,u=`${i}-button`,d=Array.isArray(n)?n:[];return Cm(Zv,{label:c(e),labelId:l,icon:s,hint:r,children:Cm(qv,{id:u,multiple:!0,value:d,options:Jv(t),onChange:o,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${u}`,inline:!0})})}import{jsx as Pm}from"react/jsx-runtime";import{useId as Qv}from"react";import{FieldSelect as ew}from"efficient-easel/fields";import{SettingsField as tw}from"efficient-easel/panel";function nw(e){return e.map(({value:t,label:n,group:o,thumb:a,meta:s})=>({value:t,label:n,...o!==void 0?{group:o}:{},...a!==void 0?{thumb:a}:{},...s!==void 0?{meta:s}:{}}))}function wU({label:e,options:t,fallback:n,value:o,onChange:a,placeholder:s,bare:r=!1,icon:i}){let l=Qv(),u=`${l}-label`,d=`${l}-button`,p=o??"",f=t.some(_=>_.value===p)?p:n,m=c(e),b=s===void 0?void 0:c(s),y=Pm(ew,{id:d,value:f,options:nw(t),onChange:a,placeholder:b,searchPlaceholder:b,...r?{ariaLabel:m}:{ariaLabelledBy:`${u} ${d}`},searchable:!0,groupCount:!0,inline:!0});return r?y:Pm(tw,{label:m,labelId:u,icon:i,children:y})}import{jsx as At,jsxs as Bw}from"react/jsx-runtime";import{SettingsField as qm}from"efficient-easel/panel";import{LinkIcon as Mw}from"efficient-easel/icons";import{LinkPicker as Hw,TextLinkField as $w}from"efficient-shell/ui";import{useEffect as Xm,useMemo as Na,useRef as Uw,useState as Ra}from"react";import{currentEaselSession as ow}from"efficient-easel/screen/lib/session";function km(){return ow().auth.token}import{currentEaselSession as Gw}from"efficient-easel/screen/lib/session";import{useScreenDocument as zw}from"efficient-easel/screen/components/ScreenDocumentContext";var aw=()=>({choosePage:c("Choose a page"),chooseSection:c("Choose a section"),noSections:c("No section anchors yet"),sectionHint:c("Jumps to a section on that page."),choosePost:c("Choose a post"),chooseProduct:c("Choose a product"),choosePopup:c("Choose a popup")});function Im(e,t,n){if(!e)return"page";if(zf(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(jf(e))return"product";if(e.includes("#")){let o=e.slice(0,e.indexOf("#"));if(o===""||o==="/"||t.includes(o))return"anchor"}return e==="/"||t.includes(e)||n&&n.listingPaths.includes(n.targetOf(e))?"page":"custom"}function Li(e,t){let n=aw(),o=e.pages.map(d=>({value:zn(d.slug),label:d.title})),a=t?.pageOptions?t.pageOptions(o):o,s=a.map(d=>d.value),r=e.pages.map(d=>({label:d.title,options:Kf(...d.docs).map(p=>({value:ga(d.slug,p.slug),label:p.name}))})).filter(d=>d.options.length>0),i=d=>{switch(d){case"page":return{type:"select",options:a,placeholder:n.choosePage};case"anchor":return{type:"groups",groups:r,placeholder:r.length?n.chooseSection:n.noSections};case"blog":return{type:"select",options:e.posts.map(p=>({value:Wf(p.slug),label:p.title||p.slug})),placeholder:n.choosePost};case"product":return{type:"select",options:e.products.map(p=>({value:p.href,label:p.name||p.href})),placeholder:n.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(p=>({value:Gf(p.slug),label:p.title||p.slug})),placeholder:n.choosePopup};case"custom":return{type:"text"}}},l=Uf(e.offers).map(d=>({value:d.value,label:c(d.label),target:i(d.value),...d.value==="anchor"?{hint:n.sectionHint}:{},...d.value==="blog"||d.value==="product"||d.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!t)return{kinds:l,rules:{kindOf:d=>Im(d,s),targetOf:d=>d,readFilter:()=>null,withFilter:d=>d}};let u=d=>{let p=t.withFilter(d,null);return t.listingPaths.includes(p)?p:d};return{kinds:l,rules:{kindOf:d=>Im(d,s,{listingPaths:t.listingPaths,targetOf:u}),targetOf:u,readFilter:t.readFilter,withFilter:t.withFilter},filtersFor:d=>t.listingPaths.includes(d)?t.filtersFor(d):null}}import{useEaselSession as Ww}from"efficient-easel/screen/lib/session-context";function J(e,t){if(typeof e=="string")return e||t;if(e&&typeof e=="object"&&"text"in e){let n=e.text;return W(n)??t}return t}function Am(e,t){return O(e)??t}function We(e,t){return typeof e=="boolean"?e:t}function Ia(e,t){if(!Array.isArray(e))return t;let n=e.map(o=>typeof o=="string"?o:J(o?.text,"")).map(o=>o.trim()).filter(Boolean);return n.length?n:t}var Nm=["delay","scroll","exit"],Lm=["all","chosen","except"],Dm=["visit","days","never","once"],sw=["all","desktop","phone"],rw=["stop","continue"],Fm={min:0,max:60},Bm={min:10,max:90},Mm={min:1,max:90},Ce={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function fe(e,t,n){return typeof t=="string"&&e.includes(t)?t:n}function un(e,t,n){let o=Am(e,n);return Math.min(t.max,Math.max(t.min,Math.round(o)))}function iw(e){return typeof e.hideAfter=="string"?fe(Dm,e.hideAfter,Ce.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ce.hideAfter}function lw(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t.trim():"").filter(Boolean).map(t=>t.startsWith("/")?t:`/${t}`):[]}function Rm(e){if(typeof e!="string")return null;let t=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(t)?t:null}function Hm(e){let t=e??{},n=Ce;return{autoOpen:We(t.autoOpen,n.autoOpen),trigger:fe(Nm,t.trigger,n.trigger),autoOpenDelaySec:un(t.autoOpenDelaySec,Fm,n.autoOpenDelaySec),scrollPercent:un(t.scrollPercent,Bm,n.scrollPercent),showOn:fe(Lm,t.showOn,n.showOn),showOnPages:lw(t.showOnPages),devices:fe(sw,t.devices,n.devices),hideAfter:iw(t),hideDays:un(t.hideDays,Mm,n.hideDays),afterSubmit:fe(rw,t.afterSubmit,n.afterSubmit),startDate:Rm(t.startDate),endDate:Rm(t.endDate)}}import{parseHexColor as cw}from"efficient-shell/format";var $m="#000000";var Di="popup",uw=gu,dw=["auto","full"],pw=["inside","outside","none"],fw={min:240,max:1440},mw={min:0,max:100},Vn={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:$m,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function hw(e,t){let n=typeof e=="string"?e.trim():"";return n&&cw(n)===n.toLowerCase()?n:t}function Fi(e,t=Vn){let n=e??{},o=t;return{placement:fe(uw,n.placement,o.placement),fullWidth:We(n.fullWidth,o.fullWidth),width:un(n.width,fw,o.width),height:fe(dw,n.height,o.height),tintColor:hw(n.tintColor,o.tintColor),tintOpacity:un(n.tintOpacity,mw,o.tintOpacity),outsideClick:We(n.outsideClick,o.outsideClick),closeButton:fe(pw,n.closeButton,o.closeButton)}}var Um="cart-drawer",VU="cart-drawer",gw={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function YU(e,t){return t===0?e.subtitleEmpty:t===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(t))}function XU(e){let t=e??{},n=gw;return{kickerBadge:J(t.kickerBadge,n.kickerBadge),kickerText:J(t.kickerText,n.kickerText),titleLead:J(t.titleLead,n.titleLead),titleAccent:J(t.titleAccent,n.titleAccent),subtitleEmpty:J(t.subtitleEmpty,n.subtitleEmpty),subtitleOne:J(t.subtitleOne,n.subtitleOne),subtitleMany:J(t.subtitleMany,n.subtitleMany),leadTimeValue:J(t.leadTimeValue,n.leadTimeValue),shipsToFallback:J(t.shipsToFallback,n.shipsToFallback),promises:Ia(t.promises,n.promises),emptyKicker:J(t.emptyKicker,n.emptyKicker),emptyBody:J(t.emptyBody,n.emptyBody)}}var bw=["right","left"],yw={...Vn,width:520,tintOpacity:68};function qU(e){let t=e??{};return{...Fi(t,yw),placement:fe(bw,t.placement,"right"),height:"full",fullWidth:!1,autoOpen:We(t.autoOpen,!0)}}var zm="consent-banner",e2="consent-banner";var Sw=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],t2="Layout",Gm={layout:"bar"},_w=e=>Sw.some(t=>t.value===e);function n2(e){let t=J((e??{}).layout,Gm.layout);return{layout:_w(t)?t:Gm.layout}}var o2={...Vn,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var Tw="consentWords",Ew=["eyebrow","notice","accept","reject","choose"];function xw(e){let t=(e??{})[Tw];return typeof t=="string"&&Ew.includes(t)?t:null}function vw(e){let t=e?.props;return t?xw(t)!==null?!0:Object.values(t).some(n=>Array.isArray(n)&&n.some(o=>o&&typeof o=="object"&&"props"in o&&vw(o))):!1}var ww=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],r2={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},Cw={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},i2={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function Wm(e){let t={};for(let n of ww){let o=dt(e[Cw[n]]);o&&(t[n]=o)}return t}var u2={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Ow={lead:"We accept"},d2={...Ow,methods:[],size:"sm",align:"start",dataSource:gc},Mi="site-footer";var Hi=Mi,p2={desktop:!0,tablet:!0,mobile:!0},f2={desktop:!1,tablet:!1,mobile:!1},Bi=1,Km=6,m2=Array.from({length:Km-Bi+1},(e,t)=>Bi+t),Aa={desktop:6,tablet:3,mobile:2},Pw={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},It=e=>Math.min(Math.max(Math.round(e),Bi),Km);function h2(e){if(typeof e=="number")return Pw[It(e)]??{desktop:It(e),tablet:It(e),mobile:It(e)};if(e&&typeof e=="object"){let t=e;return{desktop:It(t.desktop??Aa.desktop),tablet:It(t.tablet??Aa.tablet),mobile:It(t.mobile??Aa.mobile)}}return{...Aa}}var $i="subscribe-popup",x2="subscribe-popup",kw=[$i,Mi,Um,zm];function Vm(e){return kw.includes(e)}var Iw=["right","left"],Aw={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
|
|
8
8
|
*Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:Ce.autoOpen,autoOpenDelaySec:Ce.autoOpenDelaySec,formSlug:"",trigger:Ce.trigger,scrollPercent:Ce.scrollPercent,showOn:Ce.showOn,showOnPages:[],hideAfter:Ce.hideAfter,hideDays:Ce.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},G=J,Rw=We,Ym=Ia;function jm(e,t){if(e==null)return t;let n=o=>o.trim()?o:"";if(typeof e=="string")return n(e);if(typeof e=="object"&&"text"in e){let o=e.text;return typeof o=="string"?n(o):""}return t}function Nw(e,t){return Array.isArray(e)?Ym(e,[]):t}function Lw(e,t){return Array.isArray(e)?e.map(n=>{let o=n??{};return{label:G(o.label,""),value:G(o.value,"")}}).filter(n=>n.label||n.value):t}function w2(e){let t=e??{},n=Aw,o=Hm(t);return{metaLabel:G(t.metaLabel,n.metaLabel),issueLabel:jm(t.issueLabel,n.issueLabel),issueNumber:jm(t.issueNumber,n.issueNumber),kicker:G(t.kicker,n.kicker),heading:G(t.heading,n.heading),deck:G(t.deck,n.deck),stats:Lw(t.stats,n.stats),formLabel:G(t.formLabel,n.formLabel),formHeading:G(t.formHeading,n.formHeading),formIntro:G(t.formIntro,n.formIntro),firstNameLabel:G(t.firstNameLabel,n.firstNameLabel),firstNamePlaceholder:G(t.firstNamePlaceholder,n.firstNamePlaceholder),emailLabel:G(t.emailLabel,n.emailLabel),emailPlaceholder:G(t.emailPlaceholder,n.emailPlaceholder),interestsLabel:G(t.interestsLabel,n.interestsLabel),interests:Ym(t.interests,n.interests),frequencyLabel:G(t.frequencyLabel,n.frequencyLabel),frequencies:Nw(t.frequencies,n.frequencies),submitText:G(t.submitText,n.submitText),finePrint:G(t.finePrint,n.finePrint),dismissText:G(t.dismissText,n.dismissText),emailInvalidText:G(t.emailInvalidText,n.emailInvalidText),submitErrorText:G(t.submitErrorText,n.submitErrorText),successHeading:G(t.successHeading,n.successHeading),successBody:G(t.successBody,n.successBody),keepBrowsingText:G(t.keepBrowsingText,n.keepBrowsingText),formSlug:typeof t.formSlug=="string"?t.formSlug.trim():n.formSlug,autoOpen:o.autoOpen,autoOpenDelaySec:o.autoOpenDelaySec,trigger:o.trigger,scrollPercent:o.scrollPercent,showOn:o.showOn,showOnPages:o.showOnPages,hideAfter:o.hideAfter,hideDays:o.hideDays,formSide:fe(Iw,t.formSide,n.formSide),valuePanelOnPhone:Rw(t.valuePanelOnPhone,n.valuePanelOnPhone),sectionAccent:t.sectionAccent,sectionCorners:t.sectionCorners,sectionCornerSides:t.sectionCornerSides,textStyles:Wm(t)}}function Dw(e,t=Math.random){for(;;){let n=`popup-${Math.floor(t()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(n))return n}}function Fw(e){return{root:{props:{title:e,kind:Di}},content:[],zones:{}}}function k2(e,t,n){return{slug:Dw(t,n),title:e,kind:ii,layout:Fw(e)}}function Ui(e){return e?.root?.props?.kind===Di}function Zm(e){let t=new Map;return(n="")=>{let o=km(),a=t.get(n);if(!a||a.token===null&&o!==null){let s=o||!Gw().usesBridgedToken?e(o??"",n).catch(()=>[]):Promise.resolve([]);return t.set(n,{promise:s,token:o}),s}return a.promise}}var Kw=Zm(async(e,t)=>{let n=t?{siteId:t}:void 0,{pages:o}=xe();return o.linkTargets?o.linkTargets(n):(await o.list(n)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),jw=Zm(async(e,t)=>await xe().blog?.posts(t?{siteId:t}:void 0)??[]);function Vw({value:e,onChange:t,label:n="Link",data:o,filters:a}){let s=Na(()=>Li(o,a),[o,a]),r=c(n);return At(qm,{label:r,icon:At(Mw,{}),children:At(Hw,{value:e,onChange:i=>t(i),kinds:s.kinds,rules:s.rules,filtersFor:s.filtersFor,label:r})})}function Jm(){let{siteId:e,capabilities:t}=zw(),{offersCommerce:n,hasBlog:o}=t,[a,s]=Ra([]),[r,i]=Ra([]),[l,u]=Ra([]),[d,p]=Ra(null),f=Ww().chrome,m=f?.products?.list,b=f?.linkFilters,y=b?void 0:f?.linkRow,_=Uw(!0);Xm(()=>(_.current=!0,()=>{_.current=!1}),[]),Xm(()=>{let x=!0;return Kw(e??void 0).then(v=>x&&_.current&&s(v)),o&&jw(e??void 0).then(v=>x&&_.current&&i(v)),n&&m?.().then(v=>x&&_.current&&u(v)),n&&b?b.load(e).catch(()=>null).then(v=>x&&_.current&&p(()=>v)):p(null),()=>{x=!1}},[e,n,o,m,b]);let S=Na(()=>({pages:a.filter(x=>!Vm(x.slug)&&!Ui(x.layout)).map(x=>({slug:x.slug,title:x.label,docs:[x.layout]})),popups:a.filter(x=>x.slug===$i||Ui(x.layout)).map(x=>({slug:x.slug,title:x.label})),posts:o?r.map(x=>({slug:x.slug,title:x.title})):[],products:n?l.map(x=>({href:x.href,name:x.name})):[],offers:{offersCommerce:n,offersService:o}}),[a,r,l,n,o]),E=Na(()=>d?d(S.pages):null,[d,S]);return{data:S,filters:E,pages:a,offersCommerce:n,HostLinkRow:y}}function j2({label:e,icon:t,text:n,onTextChange:o,link:a,onLinkChange:s}){let{data:r,filters:i}=Jm(),l=Na(()=>Li(r,i),[r,i]),u=c(e);return At(qm,{label:u,icon:t,children:At($w,{label:u,text:n,onTextChange:o,link:a,onLinkChange:d=>s(d),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function Qm({value:e,onChange:t,label:n="Link"}){let o=typeof e=="string"?e:"",{data:a,filters:s,pages:r,offersCommerce:i,HostLinkRow:l}=Jm(),u=a.pages.map(p=>zn(p.slug)),d=i&&l&&(o==="/"||u.includes(o))?l:void 0;return Bw("div",{children:[At(Vw,{value:o,onChange:t,label:n,data:a,filters:s}),d&&At(d,{value:o,onChange:t,pages:r})]})}import{UiIcon as tg}from"efficient-easel/draw/client";import{VIEW_TIERS as Fa,phoneKey as eh,resolveViewValue as Yw,tabletKey as th,viewKeyAt as M}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as sh,SITE_SIDE as Xw,VIEW_ABOVE as qw,convertLength as rh,isLengthUnit as Zw,isSiteSide as ih,sideLengthAt as Jw,sideValueAt as Qw,withLength as Ba}from"efficient-easel/screen/lib/content/length-units";var me={min:10,max:200,step:10};function eC(e,t,n,o=0){let a=O(e),s=O(t);if(a===void 0&&s===void 0)return;let r=Rt(n),i=l=>l===void 0?void 0:r==="px"?l:Ba(l,r,o);return{paddingTop:i(a),paddingBottom:i(s)}}var Rt=e=>F(e),Gi=(e,t)=>typeof e=="object"?e[t]:e??0,tC=e=>typeof e=="object"&&e!==null&&"top"in e,Yn=(e,t,n)=>tC(e)?Gi(e[t],n):Gi(e,n),nC={top:"top",bottom:"bottom"};function oC(e,t,n,o){let a=O(e),s=O(t);if(a===void 0&&s===void 0)return;let r=Rt(n),i=(l,u)=>l===void 0?void 0:r==="px"?l:Ba(l,r,u);return{paddingTop:i(a,o("top","desktop")),paddingBottom:i(s,o("bottom","desktop"))}}var aC="sf-pad-top-phone",sC="sf-pad-bottom-phone",rC="--sf-pad-t-phone",iC="--sf-pad-b-phone",lC="sf-pad-left-phone",cC="sf-pad-right-phone",uC="--sf-pad-l-phone",dC="--sf-pad-r-phone",pC="sf-pad-top-tablet",fC="sf-pad-bottom-tablet",mC="sf-pad-left-tablet",hC="sf-pad-right-tablet",gC="--sf-pad-t-tablet",bC="--sf-pad-b-tablet",yC="--sf-pad-l-tablet",SC="--sf-pad-r-tablet",ji="sf-section-pad";function Vi(e){let t={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},n=e.totals?.length||typeof e.frame=="object"?(s,r)=>e.totals?.includes(M(s,r))?0:Yn(e.frame,s,r):e.frame,o=typeof n=="function"?oC(e.top,e.bottom,e.unit,n):eC(e.top,e.bottom,e.unit,n),a=Yi({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},t,n,e.sideSpace);return o===void 0&&!a.classes.length&&!Object.keys(a.style).length?null:{className:[ji,...a.classes].join(" "),style:{...o,...a.style}}}var _C=e=>ih(e)?e:O(e),TC=[["top","paddingTop",[pC,gC],[aC,rC]],["bottom","paddingBottom",[fC,bC],[sC,iC]],["left","paddingLeft",[mC,yC],[lC,uC]],["right","paddingRight",[hC,SC],[cC,dC]]];function zi(e,t,n){return!Zw(t)||t==="px"?e:rh(e,"px",t,n,{min:0,max:me.max,step:1})}var lh=e=>{let t=qw[e];return t?[e,...lh(t)]:[e]},La=Object.fromEntries(Fa.map(e=>[e,lh(e)]));function EC(e,t,n,o={},a=0){let s={desktop:!0,tablet:t!==void 0,mobile:n!==void 0},r=(b,y,_)=>{if(y==="px")return`${b}px`;let S=La[_].find(x=>s[x])??"desktop",E=Ba(b,y,Gi(a,S));return typeof E=="number"?`${E}px`:E},i={n:e,[th("n")]:t,[eh("n")]:n,u:o.desktop,[th("u")]:o.tablet,[eh("u")]:o.phone},l=Yw("spacing",O(e),O(t),O(n),Ut()),u=(b,y,_)=>{if(Qw(i,{side:"n"},b,"side",["side"])?.value===Xw)return Kr().value;let S=Jw(i,{side:"n"},"u",b,"side");if(!S)return;let E=y!==null&&!_&&S.unit==="px"&&typeof l[y]=="number";return r(E?l[y]:S.value,S.unit,b)},d=u("desktop",null,!0),p={},f=u("tablet","tablet",t!==void 0);f!==void 0&&(t!==void 0||f!==d)&&(p.tablet=f);let m=u("mobile","phone",n!==void 0);return m!==void 0&&(n!==void 0||m!==d)&&(p.phone=m),p}function Yi(e,t,n={},o=e,a={},s=0,r="box"){let i={},l={},u=[],d=Kr(r),p=!1;for(let[f,m,...b]of TC){let y=f==="left"||f==="right"?_C:O,_=y(e[f]),S=j(nC,f),E=S?typeof s=="function"?{desktop:s(S,"desktop"),tablet:s(S,"tablet"),mobile:s(S,"mobile")}:s:0,x=typeof E=="object"?E.desktop:E;ih(_)?(i[m]=d.value,p=!0):_!==void 0&&(i[m]=Rt(a.desktop)==="px"?_:Ba(_,Rt(a.desktop),x));let v=EC(y(o[f]),y(n[f]),y(t[f]),a,E);for(let[w,[R,C]]of[["tablet",b[0]],["phone",b[1]]]){let D=v[w];D!==void 0&&(u.push(R),l[C]=D,D===d.value&&(p=!0))}}return p&&u.push(...d.className.split(" ")),{classes:u,style:{...i,...l}}}var ch={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Xi="padUnit";function xC(e,t){let n=e[Xi],o=(a,s,r)=>{let i=O(a)??(r===void 0?void 0:zi(r,n,"desktop")),l=O(s);return l===void 0?i:(i??0)+zi(l,n,"desktop")};return{top:o(e.padTop,e.sectionPaddingTop,t.top),bottom:o(e.padBottom,e.sectionPaddingBottom,t.bottom)}}function nG(e,t,n={}){let o=xC(e,t),a={...vC(e,ch,!0,Xi),top:o.top,bottom:o.bottom};n.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let s=Vi(a),r=s?s.className.split(" ").filter(i=>i!==ji):[];return{...r.length?{className:r.join(" ")}:{},style:s?.style??{}}}var Da={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},oG=[...["top","bottom","left","right"].map(e=>[ch[e],Da[e]]),[Xi,sh]].flatMap(([e,t])=>[[e,t],...["tablet","mobile"].map(n=>[M(e,n),M(t,n)])]);function vC(e,t=Da,n=!0,o=t===Da?sh:void 0){let a={};if(o){e[o]!==void 0&&(a.unit=e[o]);for(let r of["tablet","mobile"])e[M(o,r)]!==void 0&&(a[M("unit",r)]=e[M(o,r)])}for(let r of n?["top","bottom","left","right"]:["top","bottom"]){a[r]=e[t[r]];for(let i of["tablet","mobile"])a[M(r,i)]=e[M(t[r],i)]}let s=e[wC];if(Array.isArray(s)){let r=uh.flatMap(i=>Fa.filter(l=>s.includes(M(t[i],l))).map(l=>M(i,l)));r.length&&(a.totals=r)}return a}var wC="padTotal",uh=["top","bottom"];function aG(e=Da){return uh.flatMap(t=>Fa.map(n=>M(e[t],n)))}var Wi=16,Ki=24,CC={text:Wi,heading:Ki,line:0},nh={all:{12:"py-3",16:"py-4",24:"py-6"},edge:{12:"max-view-wide:py-3"}},OC={[Wi]:nh.all[Wi],[Ki]:nh.all[Ki],[CC.line]:""};function sG(e,t){return{className:OC[t]??"",...e?{pad:{values:e,frame:t}}:{}}}var rG=e=>({desktop:e.top,tablet:e.top,mobile:e.topPhone});function iG(e,t){if(!t)return{root:ah(e.values,e.frame),outer:null};if(!e.values.totals?.length)return{root:null,outer:oh(e.values)};let n=e.values,{top:o,bottom:a,topTablet:s,bottomTablet:r,topPhone:i,bottomPhone:l,left:u,right:d,leftTablet:p,rightTablet:f,leftPhone:m,rightPhone:b,...y}=n,_={...y,top:o,bottom:a,topTablet:s,bottomTablet:r,topPhone:i,bottomPhone:l},S=ah(e.drawsFrame?PC(_,e.frame):_,e.frame),E=S&&e.drawsFrame?{...S,className:S.className.split(" ").filter(v=>v!==ji).join(" ")}:S,x=["tablet","mobile"].some(v=>["top","bottom"].some(w=>typeof n[M(w,v)]=="number"&&!n.totals?.includes(M(w,v))));return{root:E&&e.edge&&E.className&&!x?{...E,attrs:Rc}:E,outer:oh({...y,totals:void 0,left:u,right:d,leftTablet:p,rightTablet:f,leftPhone:m,rightPhone:b})}}function PC(e,t){let n={...e},o=[...e.totals??[]];for(let a of Fa)for(let s of["top","bottom"]){if(La[a].some(l=>O(e[M(s,l)])!==void 0))continue;let r=l=>Yn(t,s,l),i=La[a][1];i&&r(i)===r(a)||(n[M(s,a)]=zi(r(a),e[M("unit",a)],a),o.push(M(s,a)))}return{...n,totals:o}}function kC(e,t){let n={...e};for(let o of["tablet","mobile"]){let a=M("unit",o),s=["top","bottom","left","right"].some(r=>O(e[M(r,o)])!==void 0);for(let r of["top","bottom"]){if(O(n[M(r,o)])!==void 0)continue;let i=La[o].slice(1).find(d=>O(n[M(r,d)])!==void 0);if(!i||Yn(t,r,i)===Yn(t,r,o)||e.totals?.includes(M(r,i)))continue;let l=O(n[M(r,i)]),u=Rt(n[M("unit",i)]);if(s){let d=Rt(n[a]);n[M(r,o)]=u===d?l:rh(l,u,d,o,{min:0,max:me.max,step:1})}else n[M(r,o)]=l,n[a]=n[M("unit",i)]}}return n}function oh(e){return Vi(e)}function ah(e,t){let n=typeof t=="object"?kC(e,t):e,o=(a,s,r,i,l)=>typeof a!="number"?void 0:Rt(s)==="px"&&!n.totals?.includes(r)?a+Yn(t,i,l):a;return Vi({...n,frame:t,top:o(n.top,n.unit,"top","top","desktop"),bottom:o(n.bottom,n.unit,"bottom","bottom","desktop"),topTablet:o(n.topTablet,n.unitTablet,"topTablet","top","tablet"),bottomTablet:o(n.bottomTablet,n.unitTablet,"bottomTablet","bottom","tablet"),topPhone:o(n.topPhone,n.unitPhone,"topPhone","top","mobile"),bottomPhone:o(n.bottomPhone,n.unitPhone,"bottomPhone","bottom","mobile")})}import{BUTTON_PAD_KEYS as Ma,buttonBorderOf as IC,buttonFillOpacityOf as AC,buttonPadSidesOf as RC,viewKeyAt as NC}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as qi,lengthOf as LC}from"efficient-easel/screen/lib/content/length-units";var DC="px-6 py-4",FC=4,Ha=e=>{let t=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(DC);if(!t)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return t[1]!==void 0?Number(t[1]):Number(t[2])*FC},gG={top:Ha("y"),right:Ha("x"),bottom:Ha("y"),left:Ha("x")},ph="var(--btn)";function BC(e){let t=e.variant==="ghost",n=AC(e.buttonFillOpacity),o=IC(e.buttonBorder),a=W(e.buttonColor);return{fillOpacity:n??(t?0:100),border:{width:o?.width??1,color:o?.color??a??(t?"currentColor":ph)},changed:n!==void 0||o!==void 0}}function bG(e){let t=BC(e);if(!t.changed)return null;let n=W(e.buttonColor)??ph;return{background:t.fillOpacity===0?"transparent":t.fillOpacity===100?n:`color-mix(in srgb, ${n} ${t.fillOpacity}%, transparent)`,borderWidth:LC(t.border.width,F(e.buttonBorderUnit)),borderStyle:"solid",borderColor:t.border.color}}var MC="var(--sf-button-radius, 0)";function yG(e){let t=O(e.buttonCorners),n=De(e.buttonCornerSides);if(t===void 0&&n===null)return null;let o=t===void 0?MC:H(Math.max(0,t),e.buttonCornersUnit);return{borderRadius:n===null?o:Ct(o,n)}}function SG(e){let t=(r,i)=>e[NC(r,i)],n=r=>RC({top:t(Ma.top,r),right:t(Ma.right,r),bottom:t(Ma.bottom,r),left:t(Ma.left,r)})??{},o={desktop:t(qi,"desktop"),tablet:t(qi,"tablet"),phone:t(qi,"mobile")},{classes:a,style:s}=Yi(n("desktop"),n("mobile"),n("tablet"),void 0,o);return Object.keys(s).length?{className:a.join(" "),style:s}:null}var dh="upper";function fh(e,t,n){let o=e&&typeof e=="object"?e:{},a=W(o.textStyle),s=a?W(t?.find(d=>d?.id===a)?.name):void 0,r=a?/^(heading|body)-(\d+)$/.exec(a):null,i=a?s||(r?n.styleName({kind:r[1],n:Number(r[2])}):a):n.noStyle,{cases:l}=n,u=W(o.case)??dh;return`${i} \xB7 ${l[u]??l[dh]}`}import{usePreviewParts as LP}from"efficient-easel/draw/client";import{encodePartId as DP}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as FP,useEaselStrings as BP}from"efficient-easel/strings";import{PIN_STICK_VAR as HC,PIN_TRACK_POSITION_VAR as $C,pinAttrs as mh,pinStickVars as UC,readPin as Qi,readPinEnd as hh}from"efficient-shell/format";var wG="Stick to top",_e={min:0,max:200,step:4,fallback:0},Xn={kind:"position",unitKey:"stickTopDistanceUnit"},gh=zt(Xn),[GC,zC,WC]=gh,tl="Pin while scrolling",bh="Scroll",Oe={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},qn="stickTopScreens",KC=[qn,"stickTopScreensTablet","stickTopScreensPhone"],nl="Screens",ol="stickTopStop",dn="screen",yh="Pin stops at",Sh=[{value:"header",label:"Under the header"},{value:dn,label:"Screen top"}],_h="header",Th="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function al(e){return e===dn?dn:"header"}function Eh(e){return e===dn?dn:void 0}var sl="stickAbove",xh="Stays above",vh="On: the pinned box stays on top, and the sections after it scroll under it.";function jC(e){return e.stickAbove===!0}var rl="stickEnd",el="away",wh="Pin ends",Ch=[{value:"over",label:"Next slides over"},{value:el,label:"Scrolls away"}],Oh="over",Ph="Next slides over: the next section covers this one before it moves. Scrolls away: this section goes up with the page, and the next section follows under it.";function il(e){return hh(e)}function kh(e){return hh(e)===el?el:void 0}var CG=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...gh,...KC,ol,sl,rl],OG=new Set(["IntroBleed"]),PG=new Set(["CategoryBar","DocTabs","Contents"]);function VC(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var Zi=e=>Qi(!0,e).length,ll={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},Ih={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function Ji(e,t="px"){let n=O(e)??_e.fallback;return t!=="px"?Math.max(_e.min,n):Math.min(_e.max,Math.max(_e.min,Math.round(n)))}function cl(e){return typeof e.stickTopTablet=="boolean"}function ul(e){return typeof e.stickTopPhone=="boolean"}function pn(e,t={}){let n=t.intro?VC(e):e.stickTop===!0,o=e,a=F(o[GC]),s=Ji(e.stickTopDistance,a),r=Zi(e.stickTopScreens),i=cl(e),l=i?e.stickTopTablet===!0:n,u=i?F(o[zC]):a,d=i?Ji(e.stickTopDistanceTablet,u):s,p=i?Zi(e.stickTopScreensTablet):r,f=ul(e),m=f?e.stickTopPhone===!0:l,b=f?F(o[WC]):u,y=f?Ji(e.stickTopDistancePhone,b):d,_=f?Zi(e.stickTopScreensPhone):p;return{desktop:n,desktopDistance:s,desktopUnit:a,desktopScreens:r,tablet:l,tabletDistance:d,tabletUnit:u,tabletScreens:p,ownTablet:i,phone:m,phoneDistance:y,phoneUnit:b,phoneScreens:_,ownPhone:f}}function kG(e,t={}){let n=pn(e,{intro:t.atScreenTop});if(!n.desktop&&!n.tablet&&!n.phone)return null;let o=t.atScreenTop===!0&&typeof e.stickTop!="boolean",a=n.desktop&&n.desktopScreens>0||n.tablet&&n.tabletScreens>0||n.phone&&n.phoneScreens>0,s=t.above===!0&&jC(e),r=t.track===!0&&!o&&a&&!s,i=(p,f,m,b)=>kt({tabletClass:"",tabletVar:`${p}-tablet`,phoneClass:"",phoneVar:`${p}-phone`},f,m,b).style,l={...t.atScreenTop||al(e.stickTopStop)===dn?{[Oe.header]:"0px"}:{},[Oe.distance]:H(n.desktopDistance,n.desktopUnit),...i(Oe.distance,H(n.desktopDistance,n.desktopUnit),H(n.tabletDistance,n.tabletUnit),H(n.phoneDistance,n.phoneUnit))};if(r){let p=b=>b?"1":"0",f={...l,...n.desktop?{}:{[Oe.on]:"0"},...i(Oe.on,p(n.desktop),p(n.tablet),p(n.phone)),[Oe.length]:String(n.desktopScreens),...i(Oe.length,String(n.desktopScreens),String(n.tabletScreens),String(n.phoneScreens)),...YC(n.desktop&&n.desktopScreens===0,n.tablet&&n.tabletScreens===0,n.phone&&n.phoneScreens===0,i)},m=mh(Qi(!0),"track",{end:il(e.stickEnd)});return{attrs:m.attrs,style:{...f,...m.style}}}let u=p=>p?"sticky":"static",d={...l,...n.desktop?{}:{[Oe.position]:"static"},...i(Oe.position,u(n.desktop),u(n.tablet),u(n.phone))};return{attrs:mh(Qi(!0),"stick",s?{above:s}:{}).attrs,style:d}}function YC(e,t,n,o){let a=[[Oe.stick,HC],[Oe.trackPosition,$C]],[s,r,i]=[e,t,n].map(UC);return Object.fromEntries(a.flatMap(([l,u])=>[...e?[[l,s[u]]]:[],...Object.entries(o(l,s[u],r[u],i[u]))]))}import{parseOption as XC}from"efficient-shell/format";var qC=["column","row","tabs","accordion"];var ZC={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},Ah={Flex:qC,HeroGroup:["column","row"]},JC={Flex:"row",HeroGroup:"column"},QC={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function $a(e,t){return XC(Ah[e],JC[e],t)}function RG(e,t){return QC[$a(e,t)]}function Rh(e){return Ah[e].map(t=>({label:ZC[t],value:t}))}import{viewKeyAt as dl}from"efficient-easel/screen/lib/content/view-tiers";import{BORDER_WIDTH_MAX as Ga}from"efficient-easel/screen/lib/content/style-keys";var eO=["solid","dashed","dotted"],za=["top","right","bottom","left"],BG="sf-section-border",MG="sf-section-border-self",tO=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,nO=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Ga,Math.max(0,Math.round(e)))}px`:void 0,Zn={kind:"border",unitKey:"sectionBorderUnit"},HG=zt(Zn);function $G(e){let t=Zn.unitKey;return{desktop:e[dl(t,"desktop")],tablet:e[dl(t,"tablet")],phone:e[dl(t,"mobile")]}}var Nh=(e,t)=>t==="px"?nO(e):typeof e=="number"&&Number.isFinite(e)?H(Math.max(0,e),t):void 0;function Ua(e,{phone:t=!1,tablet:n=!1,unit:o}={}){if(!e||typeof e!="object")return;let a=t?"-phone":n?"-tablet":"",s={},r=F(o);for(let i of za){let l=Nh(e[i],r)??Nh(e.width,r);l!==void 0&&(s[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&eO.includes(e.style)&&(s[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&tO.test(e.color)&&(s[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(s).length?s:void 0}function pl(e){let{width:t,...n}=e;return typeof t!="number"?e:{...n,...Object.fromEntries(za.map(o=>[o,n[o]??t]))}}function UG(e,t,n,o={}){let a=Ua(e,{unit:o.desktop}),s=Ua(n,{tablet:!0,unit:o.tablet}),r=Ua(n,{phone:!0,unit:o.tablet}),i=Ua(t,{phone:!0,unit:o.phone}),l=r||i?{...r,...i}:void 0;return a||s||l?{...a,...s,...l}:void 0}import{parseHexColor as oO}from"efficient-shell/format";var fn="var(--section-bg)",fl="inherit";function ml(e,t){return e===fl?fn:e===void 0?t:Wa(e)}var aO=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Wa(e){let t=Ae(e);return t?He(t):e.replace(aO,"var(--site-$1")}var sO={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function hl(e,t,n){let o=ml(e,t);if(!o||o==="transparent")return n.background.toLowerCase();let a=o.trim(),s=a.startsWith("#")?oO(a):null;if(s)return s.toLowerCase();let r=sO[a.replace(/\s+/g,"")];return(r?n[r]:n.background).toLowerCase()}var gl="transparent";function Lh(e,t){let n=ml(e,t);return!n||n===gl?"none":n===fn?"band":null}function Dh(e,t,n=t){let o=s=>!s||s==="transparent",a=ml(e,t);return a===n||o(a)&&o(n)}var Fh=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],Bh={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},mn="var(--wheel-stage)",Ka="transparent",Jn="inherit";function VG(e,t){return Wa(bl(e,t))}function bl(e,t){return e===Jn?mn:e==null?t:e===!0?mn:e===!1?Ka:e}function YG(e){return typeof e=="string"&&e!==Jn?Wa(e):mn}function XG(e){return e!==Ka&&e!=="none"&&e!==""}function Mh(e,t){return e===Jn||e===!0?!0:e==null?t===mn:!1}var Hh="inherit",ja="fixed",$h=e=>typeof e!="number"&&e!==ja,rO="var(--sf-heading-max, 9999px)";function JG(e,t,n,o,a){if(typeof e=="number")return H(e,a);if(e===ja)return t;let s=o?`var(--size-${o}, ${t})`:t;return n==="heading"?`min(${s}, ${rO})`:s}var yl={kind:"fontSize",unitKey:"titleSizeUnit"},Sl={kind:"fontSize",unitKey:"bodySizeUnit"},iO=["desktop","mobile"],QG=[yl,Sl].flatMap(e=>zt(e,iO));function ez(e){let t=(n,o)=>jc(e,n,o);return{titleDesktop:t(yl,"desktop"),titleMobile:t(yl,"mobile"),bodyDesktop:t(Sl,"desktop"),bodyMobile:t(Sl,"mobile")}}var lO=["page","full"],Uh=["full","page"],Nt={full:"Full",page:"Content"},_l="inherit",cO=e=>typeof e=="string"&&lO.includes(e),uO=e=>e===_l;function dO(e,t){return uO(e.widthMode)?{mode:"full",inherited:!0}:cO(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:t,inherited:t==="full"}}function sz(e){return dO(e,"page").mode==="full"}var pO={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function rz(e){return ge(pO,e)}var ne={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},iz={kind:"size",unitKey:ne.contentMaxUnit};function fO(e){let t=e[ne.contentMaxUnit],n=F(t),o=e[ne.contentMax],a=n==="px"?Up(o):typeof o=="number"&&Number.isFinite(o)&&o>0?o:null,s=hn(e[ne.content])??(a===null?null:"content");return{background:hn(e[ne.background]),content:s,contentMax:s==="content"?a:null,contentMaxUnit:n}}function lz(e){let t=fO(e);return t.content===null&&e.fullWidth===!0?{...t,content:"full"}:t}function cz(e){return e.background!==null||e.content!==null}var uz=e=>({[ne.background]:e}),dz=e=>e==="full"?{[ne.content]:e,[ne.contentMax]:void 0,[ne.contentMaxUnit]:void 0}:{[ne.content]:e},pz=e=>({[ne.content]:"content",[ne.contentMax]:e}),fz=e=>e==="background"?{[ne.background]:void 0}:{[ne.content]:void 0,[ne.contentMax]:void 0,[ne.contentMaxUnit]:void 0},Gh="siteWidths",mO=e=>e==="full"||e==="content";function hn(e){return mO(e)?e:null}function mz(e,t){return{[Gh]:{background:hn(e),content:hn(t)}}}function hz(e){let t=e.editor?.metadata?.[Gh];return{background:hn(t?.background),content:hn(t?.content)}}import{useEaselSession as MP}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as HP,describedAs as lt,group as Te,iconOf as Dt,sharedStyleKinds as ro}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as wg,onDesktopWords as Ft,phoneTwinFields as Rl,saidAlignmentGrid as $P,useLengthUnit as UP}from"efficient-easel/screen/lib/document/box-fields";import{createElement as de}from"react";import{SettingsDefaultReset as hO,SettingsField as zh}from"efficient-easel/panel";import{boxFieldBuilders as gO,describedAs as Wh,iconOf as Kh,onDesktopWords as bO}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as yO}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as SO,PictureTiles as _O,Tooltip as TO,useShellStrings as EO}from"efficient-shell/ui";import{RotateIcon as xO}from"efficient-easel/icons";var jh=e=>c(e),Qn=yO,q=gO(jh,{lengthUnits:Qn}),Be=q.slider,Q=q.select,eo=q.Segmented,gn=q.segmented,wz=q.alignmentField,Cz=q.alignmentFields,Oz=q.blockAlignmentField,Pz=q.blockAlignmentFields,kz=q.boxJustifyField,Iz=q.boxAlignField,Az=q.boxWrapField,Vh=q.directionField,Va=q.gapField,Rz=q.placementField,Nz=q.PlacementGridView,Lz=q.positionFields,Dz=q.sidesPaddingFields,to=q.lengthUnitFields;function Fz(e,t){return Be("Angle",de(xO),bo.min,bo.max,bo.step,e,"\xB0",t)}var Tl=Symbol("efficient-web-builder.picture-picker-row"),vO={width:"3.5rem",height:"2.75rem",words:!0};function wO({value:e}){return EO().iconNames[e]??e}function El(e,t,n){return de(TO,{content:n,className:"sf-pick-tip",children:de("span",{className:"sf-pick"},de("span",{className:"sf-pick-pic"},e),de("span",{className:"sf-pick-cap"},t))})}function CO(e){let t=n=>n.label===void 0?de(wO,{value:n.value}):c(n.label);return e.map(n=>({value:n.value,...n.label===void 0?{}:{label:c(n.hint??n.label)},icon:El(n.picture,t(n),n.hint===void 0?t(n):c(n.hint))}))}function Yh(e,t){return de("span",{className:"sf-pick"},de("span",{className:"sf-pick-pic"},e),de("span",{className:"sf-pick-cap sf-pick-cap-closed"},t))}function Bz(e,t,n,o){let a=r=>n.some(i=>i.value===r),s=n.map(r=>({value:r.value,label:r.label}));return{type:"custom",...Wh({},{type:"radio",label:e,options:s}),options:s,render:r=>{let i=r.field?.currentValue,l=a(r.value)?r.value:a(i)?i:o;return de(zh,{label:c(e),icon:Kh(t)},de(_O,{label:c(e),captions:!0,columns:n.length,className:"sf-tiles-row",value:l,onChange:u=>{r.readOnly!==!0&&r.onChange(u)},options:n.map(u=>({value:u.value,label:c(u.label),picture:u.picture}))}))}}}function xl(e,t,n,o,a={}){let s=l=>n.some(u=>u.value===l),r=l=>a.resolve?a.resolve(l):s(l)?l:void 0,i=n.map(l=>({value:l.value,...l.label===void 0?{}:{label:l.label},...l.showWhen?{showWhen:l.showWhen}:{}}));return{type:"custom",[Tl]:!0,...Wh({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:u,onChange:d,field:p}=l,f=p?.options,m=CO(n.filter(v=>!f||f.some(w=>w.value===v.value))),b="follows"in l,y=b?r(a.phoneRest?a.phoneRest(l.follows):l.follows)??o:void 0,_=p?.currentValue,S=r(u)??y??r(_)??o,E=u!=null&&u!=="",x=y===void 0?void 0:n.find(v=>v.value===y);return de(zh,{label:c(e),icon:Kh(t),action:b?de(hO,{words:P()?.panel,label:c(e),changed:E,detail:x?.label!==void 0?bO(jh,c(x.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>d(void 0)}):void 0},de(SO,{label:c(e),value:S,options:m,onChange:d,columns:a.columns,cell:a.cell??vO,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as Cl}from"efficient-easel/screen/lib/content/length-units";import{jsx as h,jsxs as A}from"react/jsx-runtime";import{NoSymbolIcon as DO}from"efficient-easel/icons";import{useId as FO}from"react";import{parseOption as Xh}from"efficient-shell/format";var OO="line",PO=[{label:"None",value:"none"},{label:"Line",value:"line"},{label:"Stripes \xB7 fine",value:"stripes-fine"},{label:"Stripes \xB7 medium",value:"stripes-medium"},{label:"Stripes \xB7 bold",value:"stripes-bold"}],vl={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},$z=28,kO="-45deg",IO="color-mix(in oklab, var(--accent) 50%, var(--bg))";function AO(e){return e!=="line"&&e!=="none"}var RO={sm:24,md:48,lg:80},NO="md",LO=Object.keys(RO);function Uz(e){return Xh(LO,NO,e)}function Gz(e){return Xh(PO,OO,e)}function zz(e){if(!AO(e))return null;let{ink:t,period:n}=vl[e];return`repeating-linear-gradient(${kO}, ${IO} 0 ${t}px, transparent ${t}px ${n}px)`}var Wz={kind:"border",unitKey:"thicknessUnit"},Kz={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Ya=44,Xa=28;function I({children:e}){return h("svg",{width:Ya,height:Xa,viewBox:`0 0 ${Ya} ${Xa}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var T=({x:e,y:t,w:n,t:o=2,faint:a=!1})=>h("rect",{x:e,y:t,width:n,height:o,rx:o/2,stroke:"none",opacity:a?.45:1}),N=({x:e,y:t,w:n,h:o})=>h("rect",{x:e,y:t,width:n,height:o,rx:2,fill:"none"}),he=({x:e,y:t})=>h("circle",{cx:e,cy:t,r:1.75,stroke:"none"}),ee=({x1:e,y1:t,x2:n,y2:o})=>h("line",{x1:e,y1:t,x2:n,y2:o});function wl(e){let t=20/sn,n=5,o=1,a=[],s=0,r=0,i=0;for(let[d,p]of e)s+d>sn&&(r+=i*(n+o),s=0,i=0),a.push({x:12+s*t,y:r,w:d*t-o,h:p*n+(p-1)*o}),s+=d,i=Math.max(i,p);let l=r+i*(n+o)-o,u=(Xa-l)/2;return h(I,{children:a.map((d,p)=>h("rect",{x:d.x,y:u+d.y,width:d.w,height:d.h,rx:1,stroke:"none",opacity:.6},p))})}var Jz={bars:A(I,{children:[h(T,{x:8,y:14,w:5,t:10}),h(T,{x:16,y:8,w:5,t:16}),h(T,{x:24,y:18,w:5,t:6}),h(T,{x:32,y:11,w:5,t:13})]}),line:A(I,{children:[h("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),h(ee,{x1:6,y1:25,x2:38,y2:25})]}),donut:A(I,{children:[h("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),h("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function Qz(e){if(e==="none")return h("span",{style:{display:"flex",width:Ya,height:Xa,alignItems:"center",justifyContent:"center"},children:h(DO,{size:20})});if(e==="line")return h(I,{children:h(ee,{x1:4,y1:14,x2:40,y2:14})});let{ink:t,period:n}=vl[e],o=.4,a=[];for(let s=-12;s<Ya;s+=n*o)a.push(h("polygon",{points:`${s},22 ${s+t*o},22 ${s+t*o+10},6 ${s+10},6`,stroke:"none"},s));return h(BO,{children:a})}function BO({children:e}){let t=`sf-div-${FO().replace(/[^\w-]/g,"")}`;return A(I,{children:[h("clipPath",{id:t,children:h("rect",{x:4,y:6,width:36,height:16,rx:2})}),h("g",{clipPath:`url(#${t})`,children:e})]})}var qa=({x:e,y:t,w:n,h:o})=>h("rect",{x:e,y:t,width:n,height:o,rx:2,stroke:"none",opacity:.3}),eW={tabs:A(I,{children:[h(T,{x:5,y:10,w:9}),h(T,{x:18,y:10,w:9,faint:!0}),h(T,{x:31,y:10,w:9,faint:!0}),h(ee,{x1:4,y1:17,x2:40,y2:17}),h(T,{x:4,y:16,w:11,t:2})]}),largeTabs:A(I,{children:[h(ee,{x1:4,y1:5,x2:40,y2:5}),h(he,{x:7,y:10}),h(T,{x:11,y:9,w:16}),h(T,{x:31,y:9,w:9,faint:!0}),h(ee,{x1:4,y1:14,x2:40,y2:14}),h(he,{x:7,y:19}),h(T,{x:11,y:18,w:13,faint:!0}),h(T,{x:31,y:18,w:9,faint:!0}),h(ee,{x1:4,y1:23,x2:40,y2:23})]})},tW={card:A(I,{children:[h(N,{x:10,y:3,w:24,h:22}),h(qa,{x:12,y:5,w:20,h:10}),h(T,{x:13,y:18,w:16}),h(T,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:A(I,{children:[h(qa,{x:10,y:3,w:24,h:22}),h(N,{x:10,y:3,w:24,h:22}),h(T,{x:13,y:17,w:16}),h(T,{x:13,y:21,w:11,t:1.5})]})},nW={cards:A(I,{children:[h(N,{x:3,y:5,w:11,h:18}),h(N,{x:17,y:5,w:11,h:18}),h(N,{x:31,y:5,w:11,h:18}),h(T,{x:5,y:9,w:7}),h(T,{x:19,y:9,w:7}),h(T,{x:33,y:9,w:7}),h(T,{x:5,y:13,w:5,t:1.5,faint:!0}),h(T,{x:19,y:13,w:5,t:1.5,faint:!0}),h(T,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":A(I,{children:[h("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),h(T,{x:5,y:18,w:7}),h(T,{x:19,y:18,w:7}),h(T,{x:33,y:18,w:7})]})},oW={table:A(I,{children:[h(N,{x:3,y:5,w:38,h:18}),h(ee,{x1:15.7,y1:5,x2:15.7,y2:23}),h(ee,{x1:28.3,y1:5,x2:28.3,y2:23}),h("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),h(T,{x:6,y:9,w:6,t:3}),h(T,{x:19,y:9,w:6,t:3}),h(T,{x:31,y:9,w:6,t:3}),h(T,{x:6,y:18,w:7,t:1.5,faint:!0}),h(T,{x:19,y:18,w:7,t:1.5,faint:!0}),h(T,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:A(I,{children:[h(ee,{x1:3,y1:7,x2:13,y2:7}),h(ee,{x1:17,y1:7,x2:27,y2:7}),h(ee,{x1:31,y1:7,x2:41,y2:7}),h(T,{x:3,y:11,w:6,t:3}),h(T,{x:17,y:11,w:6,t:3}),h(T,{x:31,y:11,w:6,t:3}),h(T,{x:3,y:17,w:8,t:1.5,faint:!0}),h(T,{x:17,y:17,w:8,t:1.5,faint:!0}),h(T,{x:31,y:17,w:8,t:1.5,faint:!0})]})},aW={plain:A(I,{children:[h(T,{x:5,y:12,w:9,t:4}),h(T,{x:18,y:12,w:9,t:4}),h(T,{x:31,y:12,w:9,t:4})]}),cards:A(I,{children:[h(N,{x:3,y:7,w:11,h:14}),h(N,{x:17,y:7,w:11,h:14}),h(N,{x:31,y:7,w:11,h:14}),h(T,{x:5,y:13,w:7}),h(T,{x:19,y:13,w:7}),h(T,{x:33,y:13,w:7})]}),marks:A(I,{children:[h(T,{x:8,y:12,w:6,t:4}),h(T,{x:17,y:12,w:6,t:4}),h(T,{x:26,y:12,w:6,t:4}),h(T,{x:35,y:12,w:3,t:4})]}),chips:A(I,{children:[h(N,{x:3,y:9,w:18,h:10}),h(N,{x:23,y:9,w:18,h:10}),h(he,{x:7,y:14}),h(T,{x:10,y:13,w:8}),h(he,{x:27,y:14}),h(T,{x:30,y:13,w:8})]})},sW={overlay:A(I,{children:[h(qa,{x:4,y:3,w:36,h:22}),h(N,{x:4,y:3,w:36,h:22}),h(T,{x:8,y:15,w:18,t:3}),h(T,{x:8,y:20,w:12})]}),stacked:A(I,{children:[h(T,{x:4,y:3,w:18,t:3}),h(T,{x:4,y:8,w:12}),h(qa,{x:4,y:13,w:36,h:12}),h(N,{x:4,y:13,w:36,h:12})]})},rW={split:A(I,{children:[h(T,{x:4,y:6,w:12,t:3}),h(T,{x:4,y:11,w:9,faint:!0}),h(ee,{x1:20,y1:4,x2:20,y2:24}),h(T,{x:24,y:6,w:16}),h(T,{x:24,y:10,w:11,faint:!0}),h(T,{x:24,y:17,w:16}),h(T,{x:24,y:21,w:11,faint:!0})]}),spine:A(I,{children:[h(ee,{x1:9,y1:4,x2:9,y2:24}),h(he,{x:9,y:8}),h(T,{x:14,y:7,w:24}),h(he,{x:9,y:14}),h(T,{x:14,y:13,w:20}),h(he,{x:9,y:20}),h(T,{x:14,y:19,w:24})]}),alternating:A(I,{children:[h(ee,{x1:22,y1:4,x2:22,y2:24}),h(he,{x:22,y:8}),h(T,{x:4,y:7,w:14}),h(he,{x:22,y:14}),h(T,{x:26,y:13,w:14}),h(he,{x:22,y:20}),h(T,{x:4,y:19,w:14})]}),track:A(I,{children:[h(ee,{x1:4,y1:12,x2:40,y2:12}),h(he,{x:8,y:12}),h(he,{x:22,y:12}),h(he,{x:36,y:12}),h(T,{x:4,y:17,w:8}),h(T,{x:18,y:17,w:8}),h(T,{x:32,y:17,w:8}),h(T,{x:4,y:21,w:6,faint:!0}),h(T,{x:18,y:21,w:6,faint:!0}),h(T,{x:32,y:21,w:6,faint:!0})]})},iW={standard:A(I,{children:[h(T,{x:4,y:5,w:10,t:1.5,faint:!0}),h(T,{x:4,y:10,w:28,t:4}),h(T,{x:4,y:18,w:34,faint:!0}),h(T,{x:4,y:22,w:24,faint:!0})]}),editorial:A(I,{children:[h(T,{x:4,y:5,w:5,t:1.5,faint:!0}),h(T,{x:4,y:10,w:20,t:5}),h(T,{x:28,y:11,w:12,faint:!0}),h(T,{x:28,y:15,w:9,faint:!0}),h(ee,{x1:4,y1:22,x2:40,y2:22})]}),simple:A(I,{children:[h(T,{x:4,y:8,w:10,t:1.5,faint:!0}),h(T,{x:4,y:13,w:26,t:4})]}),statement:A(I,{children:[h(T,{x:4,y:6,w:36,t:7}),h(T,{x:4,y:16,w:24,t:7})]}),natural:A(I,{children:[h(T,{x:4,y:8,w:22,t:3}),h(T,{x:4,y:15,w:34,faint:!0}),h(T,{x:4,y:19,w:28,faint:!0})]}),essay:A(I,{children:[h(T,{x:4,y:5,w:24,t:4}),h(T,{x:4,y:13,w:36,faint:!0}),h(T,{x:4,y:17,w:36,faint:!0}),h(T,{x:4,y:21,w:30,faint:!0})]})},lW={"spec-card":A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h(T,{x:8,y:7,w:14}),h(N,{x:8,y:12,w:8,h:9}),h(N,{x:18,y:12,w:8,h:9}),h(N,{x:28,y:12,w:8,h:9})]}),fitment:A(I,{children:[h(N,{x:4,y:4,w:10,h:5}),h(N,{x:16,y:4,w:10,h:5}),h(N,{x:28,y:4,w:10,h:5}),h(T,{x:4,y:14,w:34,faint:!0}),h(T,{x:4,y:18,w:34,faint:!0}),h(T,{x:4,y:22,w:34,faint:!0})]}),portal:A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h(T,{x:8,y:7,w:10,t:4}),h(T,{x:8,y:14,w:16,faint:!0}),h(T,{x:26,y:18,w:10,t:4})]}),kanban:A(I,{children:[h(N,{x:4,y:3,w:10,h:22}),h(N,{x:17,y:3,w:10,h:22}),h(N,{x:30,y:3,w:10,h:22}),h(T,{x:6,y:6,w:6,t:4}),h(T,{x:6,y:12,w:6,t:4}),h(T,{x:19,y:6,w:6,t:4}),h(T,{x:32,y:6,w:6,t:4}),h(T,{x:32,y:12,w:6,t:4})]}),claims:A(I,{children:[h(T,{x:4,y:5,w:12,faint:!0}),h(T,{x:20,y:4,w:18,t:4}),h(T,{x:4,y:12,w:12,faint:!0}),h(T,{x:20,y:11,w:10,t:4}),h(T,{x:4,y:19,w:12,faint:!0}),h(T,{x:20,y:18,w:14,t:4})]}),browser:A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h(ee,{x1:4,y1:8,x2:40,y2:8}),h(T,{x:8,y:11,w:28,t:5,faint:!0}),h(N,{x:8,y:18,w:8,h:4}),h(N,{x:18,y:18,w:8,h:4}),h(N,{x:28,y:18,w:8,h:4})]}),terminal:A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h("polyline",{points:"8,9 11,11 8,13",fill:"none"}),h(T,{x:13,y:10,w:14}),h(T,{x:8,y:16,w:22,faint:!0}),h(T,{x:8,y:20,w:16,faint:!0})]})},qh={width:"5.75rem",height:"3.75rem",words:!0},cW={width:"8.5rem",height:"3.75rem",words:!0},uW={columns:A(I,{children:[h(N,{x:3,y:4,w:11,h:8}),h(N,{x:17,y:4,w:11,h:8}),h(N,{x:31,y:4,w:11,h:8}),h(T,{x:3,y:16,w:9}),h(T,{x:17,y:16,w:9}),h(T,{x:31,y:16,w:9}),h(T,{x:3,y:20,w:7,t:1.5,faint:!0}),h(T,{x:17,y:20,w:7,t:1.5,faint:!0}),h(T,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":A(I,{children:[h(N,{x:6,y:3,w:14,h:9}),h(T,{x:24,y:5,w:14}),h(T,{x:24,y:9,w:10,t:1.5,faint:!0}),h(N,{x:24,y:16,w:14,h:9}),h(T,{x:6,y:18,w:14}),h(T,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":A(I,{children:[h(N,{x:24,y:3,w:14,h:9}),h(T,{x:6,y:5,w:14}),h(T,{x:6,y:9,w:10,t:1.5,faint:!0}),h(N,{x:6,y:16,w:14,h:9}),h(T,{x:24,y:18,w:14}),h(T,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as rK,SCALAR_TEXT_CONTROLS as iK}from"efficient-easel/draw";function Bt(e,t){return c("{value} from {from}",{value:e,from:t})}function GP(){let{blockGap:e}=B();return e===null?c("this container's own spacing"):Bt(`${e}px`,c("Styles"))}function zP({inherited:e,onReset:t,label:n}){return g(oe,{words:P()?.panel,label:c(n),changed:!e,detail:GP(),onReset:t})}function WP(e){return Va({...HP,builtIn:qt[e],resolve:(t,n)=>vn(e,t,n?.siteGap),action:(t,n)=>g(zP,{inherited:!Io(e,t),onReset:()=>n(void 0),label:"Gap"}),mark:{[ko]:e}})}function KP(e){return le(te("mobile",{[ko]:e,type:"custom",render:t=>g(YP,{container:e,...t})}),Cg)}function jP(e){return le(te("tablet",{[ko]:e,type:"custom",render:t=>g(VP,{container:e,...t})}),Cg)}var Cg={not:{field:"gap",in:Array.from({length:-Ue.min},(e,t)=>Ue.min+t)}};function Z4(e){return{gap:te("desktop",WP(e)),[Bl("gap")]:jP(e),[it("gap")]:KP(e)}}function VP({container:e,...t}){let[n]=Pe("gap"),{siteGap:o}=t.field??{},a=Math.max(Cn.min,vn(e,n,o));return Va({...Cn,builtIn:a,resolve:s=>Je(s)?s:a,action:(s,r)=>g(oe,{words:P()?.panel,label:c("Gap"),changed:Je(s),detail:Ft(i=>c(i),`${a}px`),onReset:()=>r(void 0)})}).render(t)}function YP({container:e,...t}){let[n]=Pe("gap"),{siteGap:o,siteGapPhone:a}=t.field??{},s=qs(e,void 0,n,o,a);return Va({...Cn,builtIn:s,resolve:r=>qs(e,r,n,o,a),action:(r,i)=>g(oe,{words:P()?.panel,label:c("Gap"),changed:Je(r),detail:Bt(`${s}px`,Xs(e,n,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(t)}function J4(e){return Vh({offered:Rh(e),fallback:$a(e,void 0),resolve:t=>$a(e,t)})}function Q4(e,t){return bu(t?yu(e,t):[],t)}function XP({inherited:e,onReset:t,label:n}){return g(oe,{words:P()?.panel,label:c(n),changed:!e,detail:Bt(c("Full"),c("the page")),onReset:t})}function Mt({value:e,onChange:t,label:n,placeholder:o,hint:a,multiline:s,hideable:r=!0,markup:i=!0}){let{text:l,hidden:u}=zO(e),d=no(null),p=no(null),f=E=>t(r?{text:E,hidden:u}:E),m=()=>t({text:l,hidden:!u}),b=r&&u,y=cg(),_=a?ek(a)?g("span",{className:"sf-hint-while-typing",children:c(a)}):c(a):void 0,S=u?c("Show {label} on the slide",{label:c(n)}):c("Hide {label} on the slide",{label:c(n)});return g(K,{label:c(n),icon:g(uP,{}),htmlFor:y,className:b?"is-hidden":void 0,hint:_,action:r?g(Fl,{content:S,children:g(xg,{"aria-pressed":u,"aria-label":S,onClick:m,children:u?g(tg,{name:"eye-off",size:14}):g(tg,{name:"eye",size:14})})}):void 0,children:Ke("div",{className:"sf-copybox",children:[i&&g(Oi,{target:s?p:d,value:l,onChange:f}),s?g("textarea",{id:y,ref:p,value:l,placeholder:o===void 0?void 0:c(o),onChange:E=>f(E.target.value)}):g("input",{id:y,ref:d,type:"text",value:l,placeholder:o===void 0?void 0:c(o),onChange:E=>f(E.target.value)})]})})}function eK(e,t){return{...e,[VO]:t}}function tK(e){let t=e[je];if(!t)throw new Error("withOffPage: the field holds no authored text");return{...e,[je]:{...t,offPage:!0}}}function nK(e){return!e||typeof e!="object"?!1:e[je]?.offPage===!0}function Hl(e){if(!e[je])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[dr]:!0}}function oK(e){return Uo(e)}function aK(e){let t=e[je];if(!t)throw new Error("withIdentifier: the field holds no authored text");return{...e,[je]:{...t,identifier:!0}}}function lK(e,t){if(!e[je])throw new Error("inOwnBox: the field holds no authored text");let{[AP]:n,...o}=e;return{...o,[ur]:!0,render:t}}var qP=new Set(NP),os={type:"radio",options:[{value:!0},{value:!1}]},Og={text:{type:"object",objectFields:{text:{type:"text"},hidden:os}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:os}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Ht=(e,t)=>{let n=lt({...t,[je]:e},{...Og[e.control],label:e.label});if(!qP.has(e.control))return n;let o=t.render;return{...vg(n,"authored-copy"),render:a=>g(Sm,{name:a.name,children:o(a)})}},cK="Everything else on this block comes from the linked post. Unlink it to edit by hand.",ZP={field:"source.slug",set:!0},uK={not:ZP},JP="Select a word, then press the highlighter.",QP=new Set([JP]),ek=e=>QP.has(e);function ss(e,t,n){return Ht({control:"text",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n})})}function $l(e,t,n){return Ht({control:"textarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,multiline:!0})})}function bn(e,t,n){return Ht({control:"plainText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,hideable:!1,markup:!1})})}function Pg(e,t,n){return Ht({control:"copyText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,hideable:!1})})}function dK(e){return{type:"custom",[KO]:{label:e},...lt({},{type:"text",label:e}),render:({value:t,onChange:n})=>g(Qm,{value:WO(t),onChange:n,label:e})}}function pK(e,t,n){return Ht({control:"plainTextarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,multiline:!0,hideable:!1})})}var fK={Design:YO,Animation:qO};function mK(e,t){return{type:"custom",render:()=>g(tk,{text:e,values:t})}}function tk({text:e,values:t}){return g("p",{className:"sf-note",children:c(e,t)})}function hK(e){return dg(e)!==null&&e?.tabs!==void 0}var ng=new Map;function gK(e,t){let n=`${e}\0${t?t.join(""):""}`,o=ng.get(n)??{type:"custom",tabs:t,[ug]:{label:e,level:1},bucket:e,marker:!0,render:()=>g(Ve,{})};return ng.set(n,o),o}var og=new Map;function bK(e){let t=og.get(e)??{type:"custom",[ug]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>g(Ve,{})};return og.set(e,t),t}function nk(e){let t=e;return t?.marker===!0&&typeof t.fold=="string"?t.fold:null}function yK(e,t){return nk(e)===t?e:{...e,marker:!0,fold:t,render:()=>g(Ve,{})}}function SK(e){let t=e;if(t.marker===!0&&t.fold===void 0)return e;let{fold:n,...o}=e;return{...o,marker:!0,render:()=>g(Ve,{})}}function _K({title:e,children:t}){let[n,o]=oo(()=>!Ol.has(e));return g(fP,{title:e,open:n,onToggle:a=>{o(a),a?Ol.delete(e):Ol.add(e)},children:t})}var Ol=new Set;function ok({swatches:e,current:t,onPick:n,names:o}){let a=e.find(i=>i.toLowerCase()===t.toLowerCase()),s=a?o?.[a]:void 0,r=s?c(s):t;return Ke("div",{className:"sf-swatches",children:[e.map(i=>{let l=o?.[i]?c(o[i]):i;return g(Fl,{content:l,children:g(EP,{color:i,selected:t.toLowerCase()===i.toLowerCase(),onClick:()=>n(i),"aria-label":l})},i)}),g("span",{className:"sf-swatch-hex",children:r})]})}function TK(e,t,n=!1){return{type:"custom",render:({value:o,onChange:a})=>g(ak,{label:e,builtIn:t,followsBand:n,value:o,onChange:a})}}function ak({label:e,builtIn:t,followsBand:n,value:o,onChange:a}){let s=typeof o=="string"?o:void 0,{colors:r,n:i}=Kl(),l={background:r.background,surface:r.surface,surface2:eu(r),band:tu(r)},u=n?fn:t,d=Dh(s,t,u),p=hl(void 0,u,l),f=n?fl:void 0,m=u===fn?c("the theme's section background"):c("Theme {n} background",{n:i}),b=sk(s,t,r,i,l,a),y=Bt(p.toUpperCase(),m),_=Ae(s),S=_?Xt(_,r,i):null;return S?g(Se,{label:c(e),icon:g(Zh,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(f),resetTo:y,choices:b}):g(Pn,{label:c(e),icon:g(Zh,{}),value:d?"":hl(s,t,l),inherited:p,resetTo:y,onChange:a,onReset:()=>a(f),choices:b})}function sk(e,t,n,o,a,s){let r=Lh(e,t);return[{label:c("No fill"),color:"",selected:r==="none",onPick:()=>s(gl)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:r==="band",onPick:()=>s(fn)},...Wl(Ae(e)??"",n,o,s)]}function rk(e,t){return{type:"custom",render:({value:n,onChange:o})=>{let a=n,s=Mh(a,t);return g(K,{label:c(e),icon:g(Il,{}),changed:!s,action:g(oe,{words:P()?.panel,label:c(e),changed:!s,detail:c("the theme's image stage"),onReset:()=>o(Jn)}),children:ok({swatches:Fh,current:s?mn:bl(a,t),onPick:o,names:Bh})})}}}function EK(e=n=>n,t){return ro({_gSectionTheme:Te(fu),sectionAccent:{type:"custom",render:({value:n,onChange:o})=>g(xd,{value:e(n),onChange:o,followLabel:t})}})}function rs(e){let t=Z(),n=Ws(e?.view),o=r=>Ml(e.valueKey,r),a=e.numbersIn??(r=>O(t[o(r)])!==void 0),s=e.followsView??Tk(n,a);return UP({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:Qn,label:c(e.label),grid:e.grid,hasOwn:a(n),view:{tier:n,numbersIn:a,followsView:s},convertTo:e.convertTo??(r=>{let i=O(t[o(n)]);return i===void 0?{}:{[o(n)]:r(i)}})})}function pe({min:e,max:t,step:n,value:o,onChange:a,suffix:s="",readout:r=!0,notch:i,ariaLabel:l,disabled:u=!1,placeholder:d,placeholderWord:p,onClear:f,units:m,inputMax:b}){let y=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=t;return g("div",{className:y?"sf-slider has-notch":"sf-slider",style:y?{"--sf-notch":(i-e)/(t-e)}:void 0,children:g(kP,{min:e,max:t,step:n,value:o,...o===null&&d!==void 0?{placeholderValue:d}:{},...p?{emptyLabel:c(p)}:{},suffix:s||void 0,...m?{units:m}:{},...b!==void 0?{inputMax:b}:{},showInput:r,label:l===void 0?void 0:c(l),disabled:u,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:_=>{_===null?f?.():_!==o&&a(_)}})})}function ik(e,t){let{min:n,max:o,step:a=1,unsetLabel:s,hint:r,restTrack:i,unsetMark:l,icon:u,unit:d="px"}=t;return{type:"custom",render:({value:p,onChange:f})=>{let m=typeof p=="number"?p:null,b=m===null;return g(K,{label:c(e),icon:u?Dt(u):void 0,value:b?l||s===void 0?void 0:c(s):`${m}${d}`,changed:!b,action:l?Nl(l,{changed:!b,onReset:()=>f(null)}):g(oe,{words:P()?.panel,label:c(e),changed:!b,onReset:()=>f(null)}),hint:typeof r=="string"?c(r):r,children:i?i({min:n,max:o,step:a,px:m,label:e,onChange:f}):pe({min:n,max:o,step:a,value:m??n,readout:!1,ariaLabel:e,onChange:f})})}}}var ao="Corners",lk={kind:"radius"};function Ul(e){return{type:"custom",render:t=>{let{value:n,onChange:o}=t,a=typeof n=="number"&&Number.isFinite(n)?n:null,s=a!==null;return g(K,{label:c(ao),icon:g(fg,{}),changed:s,action:Nl(e.mark,{changed:s,onReset:()=>o(null)}),hint:e.hint,children:g(ck,{tier:e,px:a,name:t.name,onRadius:o})})}}}function Pe(e){let t=Lt();return[t?.values?.[e],n=>t?.onChange(e,n)]}function kg(){return vg({type:"custom",render:()=>g(RP,{})},"always")}function cn(){let e=Lt();return t=>e?.onChangeMany(t)}function ck({tier:e,px:t,name:n,onRadius:o}){let a=e.useFollowed(),[s,r]=Pe(e.sidesKey),i=cn(),l=rs({row:e.row??lk,label:ao,grid:{min:ae,max:qe,step:e.step??1},valueKey:n??"",view:"desktop"}),u=De(s)??[...ia];return g(xP,{label:c(ao),value:u,corners:rf,onChange:d=>{let p=De(d)??[];r(p.length===ia.length?null:p)},radius:t,onRadiusChange:l&&n?d=>i({[n]:d,...l.unitPatch(d===null)}):o,radiusMin:l?.grid.min??ae,radiusMax:l?.grid.max??qe,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function Ig(e,t){return to(e,t)}function Ag(){return kg()}function uk({label:e,changed:t=!1,onReset:n=()=>{}}){let{cornerRadiusPx:o}=B(),a=typeof o=="number"?`${o}px`:c("not set");return g(oe,{words:P()?.panel,label:c(e),changed:t,detail:o==null?c("the built-in corners"):Bt(a,c("Styles")),onReset:n})}function dk(){let{cornerRadiusPx:e}=B();return typeof e=="number"?e:ae}function pk(){return Ul({sidesKey:"sectionCornerSides",row:Jr,useFollowed:dk,mark:g(uk,{label:ao}),hint:fk})}var fk="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function xK(){return ro({_gShape:Te("Shape"),sectionCorners:pk(),...Ig(Jr,"sectionCorners"),sectionCornerSides:Ag(),...ze("sectionBorder",_k),...to(Zn,"sectionBorder",{tablet:!0,phone:!0})})}var mk=()=>({width:c("Border width"),sides:{top:c("Border top"),right:c("Border right"),bottom:c("Border bottom"),left:c("Border left")},style:c("Border style"),styles:{solid:c("Solid"),dashed:c("Dashed"),dotted:c("Dotted")},color:c("Border color"),unit:"px"});function hk(e){let t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""));return Object.keys(t).length?t:void 0}function gk(){let e;try{let t=ke(B().theme);e=t.themes[t.selected]?.line}catch{e=void 0}return e||Xc.line}function bk({value:e,onChange:t,placeholder:n,presets:o,sides:a=!0,styles:s=!0,above:r={},length:i}){let l=e&&typeof e=="object"?e:{},[u,d]=oo(()=>a?yP(l,r):!1),p=mk(),f=m=>hk(a&&s?m:{width:m.width,color:m.color,...s?{style:m.style}:{}});return g(K,{label:c("Border"),icon:g(ZO,{}),action:a?g(gP,{each:u,label:c("Each side"),onChange:d}):void 0,children:g(hP,{label:c("Border"),value:l,each:u,onChange:m=>t(f(m)),placeholder:n,presets:o,words:i?{...p,unit:i.unit}:p,styles:s,max:i?.grid.max??Ga,...i?{step:i.grid.step,units:i.units}:{}})})}function yk({value:e,onChange:t,view:n}){let[o]=Pe("sectionBorder"),[a]=Pe(Bl("sectionBorder")),s=gk(),r=f=>f&&typeof f=="object"?f:{},i=n==="phone"?{...pl(r(o)),...pl(r(a))}:n==="tablet"?r(o):{},l=Z(),u=cn(),d=$("sectionBorder",n),p=rs({row:Zn,label:"Border",grid:{min:0,max:Ga,step:1},valueKey:"sectionBorder",view:n,numbersIn:f=>Pl(l[Ml("sectionBorder",f)]),convertTo:f=>{let m=r(l[d]);return Pl(m)?{[d]:Sk(m,f)}:{}}});return g(bk,{value:e,length:p,onChange:p?f=>u({[d]:f,...p.unitPatch(!Pl(f))}):t,placeholder:{sides:bP(i),style:i.style??"solid",color:i.color||s},presets:[s],above:i})}var Rg=["width",...za];function Pl(e){if(!e||typeof e!="object")return!1;let t=e;return Rg.some(n=>O(t[n])!==void 0)}function Sk(e,t){let n={...e};for(let o of Rg){let a=O(n[o]);a!==void 0&&(n[o]=t(a))}return n}function _k(e){return{type:"custom",render:({value:t,onChange:n})=>g(yk,{value:t,onChange:n,view:e})}}function Tk(e,t){let n=Cl[e];for(;n&&Cl[n]!==null&&!t(n);)n=Cl[n];return n??e}function vK(e){return{type:"custom",render:()=>g(Ek,{partKey:e})}}function Ek({partKey:e}){let[t]=Pe("id"),[n]=Pe("_partStyles"),{textStyles:o}=B(),a=BP(),s=null;try{s=LP().select}catch{s=null}let r=n&&typeof n=="object"?n[e]:void 0,i=Array.isArray(o)?o:null;return g(pP,{name:c("Text"),preview:fh(r,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??FP.copy.panel).cases}),onOpen:()=>{s&&typeof t=="string"&&s(DP(t,e))}})}function Ng(e){let{cornerRadiusPx:t}=B(),n=typeof t=="number"?t:e,o=null;try{let{appState:s,selectedItem:r}=as(l=>l),i=r?.props?.id?String(r.props.id):void 0;o=i?om(s?.data,i)?.props??null:null}catch{o=null}if(!o)return n;let a=o.sectionCorners;return Qr(a)?a:n}function xk({label:e,changed:t=!1,onReset:n=()=>{}}){let o=Ng(ae);return g(oe,{words:P()?.panel,label:c(e),changed:t,detail:Bt(`${o}px`,c("the section")),onReset:n})}function vk(){return g(Ve,{children:c("Follows the section's Corners until you set a number here.")})}function wk(){return Ul({sidesKey:"cardCornerSides",row:Hn,useFollowed:()=>Ng(ae),mark:g(xk,{label:ao}),hint:g(vk,{})})}function Ck(){return{type:"custom",render:()=>g(mf,{})}}function wK(){return{_gShape:Te("Shape"),cardCorners:wk(),...Ig(Hn,"cardCorners"),cardCornerSides:Ag(),cardCornersApplyAll:Ck()}}function Ok(){return lt({type:"custom",[Tl]:!0,render:e=>g(kk,{...e})},{type:"select",label:ft,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function Pk(e,t){let n=Os(e);if(n!=="custom")return c(Cs.find(a=>a.value===n)?.label??"");let o=Eg(So(e,t),t);return o?[...o,100-o.reduce((a,s)=>a+s,0)].join(" / "):c("Custom")}function kk(e){let{value:t,onChange:n}=e,[o]=Pe("content"),a=Array.isArray(o)?o.length:0,s="follows"in e,r=t!=null,i=r?t:s?e.follows:void 0,l=Os(i),u=a>=2&&a<=Qh,d=()=>[...CP[a]??[]],p=no(null),f=S=>{let E=p.current;E&&JSON.stringify(S)===JSON.stringify(E.shares)?n(E.value):S&&n(S)},m=S=>{S===l||S==="custom"&&!u||n(S==="custom"?d():S)},b=c("The width bar works for 2 to {count} blocks.",{count:Qh}),y=r&&(s||t!=="content"),_=PP().widths.hint(a,wP);return g(K,{label:c(ft),icon:g(ts,{}),changed:y,hint:l!=="custom"?void 0:u?_:b,action:g(oe,{words:P()?.panel,label:c(ft),changed:y,disabled:e.readOnly===!0,detail:s?Ft(S=>c(S),Pk(e.follows,a),e.followsView):c("Fit content"),onReset:()=>n(void 0)}),children:Ke("div",{className:"sf-share-row",children:[g("div",{className:"sf-share-pick",children:g(Tg,{label:c(ft),value:l,options:Cs.map(S=>({value:S.value,label:S.value==="custom"&&!u?b:c(S.label),icon:El(g("span",{className:"sf-gallery-pic sf-share-pic",children:Lg(S.weights).map((E,x)=>g("i",{style:{gridColumn:`span ${E}`}},x))}),c(S.label),S.value==="custom"&&!u?b:c(S.label))})),onChange:m,columns:3,cell:Dg,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&u?g("div",{onFocus:()=>{p.current={value:t,shares:Eg(So(i,a),a)}},onBlur:()=>{p.current=null},children:g(OP,{label:c(ft),count:a,value:So(i,a),onChange:f,readOnly:e.readOnly===!0})}):null]})})}function Lg(e){if(!e)return[3,4];let t=e.reduce((n,o)=>n+o,0);return e.map(n=>Math.round(n/t*12))}function CK(){return Q(Mc,g(oP,{}),Is,Is[0].value)}function OK(e){return Q("On a phone",g(iP,{}),[{label:"In the header",value:"header"},{label:"In the menu",value:"menu"}],e)}function PK(){return te("mobile",xl(ft,g(ts,{}),Dc.map(e=>({label:e.label,value:e.value,picture:g("span",{className:"sf-gallery-pic sf-share-pic",children:Lg(e.weights).map((t,n)=>g("i",{style:{gridColumn:`span ${t}`}},n))})})),Fc,{columns:2,cell:Dg}))}var Dg={width:"5.75rem",height:"3.25rem",words:!0};function kK(){return Rl("share",Ok(),wg)[Bl("share")]}function Ik(){return te("mobile",Be(Ps,g(pg,{}),_o,Lc,1,_o,"",{clear:{phoneFollows:!1,hint:_o}}))}var ag={read:e=>e.phoneRow,write:(e,t,n)=>({phoneRow:n}),fieldKey:()=>"phoneRow",ownField:!0};function IK(){let e=Be(Ps,g(pg,{}),ks,Bc,1,ks,"",{clear:{emptyLabel:"Auto"}}),t=Rl("columns",e,{...ag,tablet:wg.tablet}),n=Rl("columns",e,ag,{phoneRow:Ik()});return{...t,phoneRow:n.phoneRow}}function AK(e,t,n,o,a,s,r){return{type:"custom",render:({value:i,onChange:l,name:u})=>g(Ak,{label:e,min:t,max:n,step:o,fallback:a,role:s,value:i,onChange:l,name:u??"",length:r})}}function Ak({label:e,min:t,max:n,step:o,fallback:a,role:s,value:r,onChange:i,name:l,length:u}){let d=Z(),p=cn(),f=Ws(u?.view),m=rs({row:u?.row??{kind:"fontSize"},label:e,grid:{min:t,max:n,step:o},valueKey:u?l:"",view:u?.view??"desktop",numbersIn:y=>y===f&&typeof d[l]=="number",followsView:f,convertTo:y=>typeof d[l]=="number"?{[l]:y(d[l])}:{}}),b=y=>m?p({[l]:y,...m.unitPatch(typeof y!="number")}):i(y);return g(K,{label:c(e),icon:g(yi,{noun:s}),action:g(oe,{words:P()?.panel,label:c(e),changed:!$h(r),detail:c("the Text style in Styles"),onReset:()=>b(Hh),defaultAction:{onPress:()=>b(ja),title:c("Keep this section's own built-in size"),icon:g(JO,{})}}),children:pe({min:m?.grid.min??t,max:m?.grid.max??n,step:m?.grid.step??o,value:typeof r=="number"?r:a,...m?{suffix:m.unit,units:m.units}:{suffix:"px"},ariaLabel:e,onChange:b})})}function Ja(e,t,n){return[{label:"Auto",value:""},...Array.from({length:e},(o,a)=>({label:a===0?`1 ${t}`:`${a+1} ${n}`,value:String(a+1)}))]}function RK(){return{_gCellWidth:Te("Cell size"),gridSpan:te("desktop",Q("Positions",g(ts,{}),Ja(fa,"position","positions"),"")),gridRowSpan:te("desktop",Q("Rows tall",g(ns,{}),Ja(ha,"row","rows"),"")),[mi]:Be("At card",g(gg,{}),1,hi,1,1,""),[it("gridSpan")]:te("mobile",Q("Positions",g(ts,{}),[{label:"Full row",value:""},...Ja(ma,"position","positions").slice(1)],"")),[it("gridRowSpan")]:te("mobile",Q("Rows tall",g(ns,{}),Ja(ha,"row","rows"),""))}}function Z(){let e=null,t=null;try{e=lg(Rk),t=as(n=>n).selectedItem}catch{t=null}return e??t?.props??{}}var Rk=HO(null);function Nk({min:e,max:t,step:n,px:o,label:a,onChange:s,desktopKey:r,fallback:i}){let l=Z()[r],u=Oa(void 0,l,i);return g(Ve,{children:pe({min:e,max:t,step:n,value:Oa(o,l,i),readout:!1,ariaLabel:a,notch:u,onChange:s})})}function Lk({label:e,desktopKey:t,fallback:n,unit:o="px",changed:a=!1,onReset:s=()=>{}}){let r=Z()[t],i=Oa(void 0,r,n);return g(oe,{words:P()?.panel,label:c(e),changed:a,detail:Ft(l=>c(l),`${i}${o}`),onReset:s})}function Dk(e){return ik(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:g(Lk,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:t=>g(Nk,{...t,desktopKey:e.desktopKey,fallback:e.fallback})})}var Fk={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Bk={Top:Ll,Bottom:bg,Left:yg,Right:Sg},Mk=e=>{let t=Bk[e];return g(t,{})};function NK(e={}){let t=e.keys?.top??"sectionPaddingTop",n=e.keys?.bottom??"sectionPaddingBottom",o=e.group!==!1,a=_=>Fk[_],s=_=>Be(a("Top"),g(Ll,{}),me.min,me.max,me.step,_,"px"),r=(_,S,E,x=me)=>te("mobile",Dk({label:a(_),icon:Mk(_),desktopKey:S,min:x.min,max:x.max,step:x.step,fallback:E})),i=e.top??me.min,l=e.bottom??me.min,u="sectionPaddingLeft",d="sectionPaddingRight",p=e.sideBounds??me,f=e.side??p.min,m=e.sidePhone??f,b=e.phone===!0,y=_=>b?te("desktop",_):_;return ro({...o?{_gSpacing:Te("Padding")}:{},[t]:y(s(i)),...b?{[it(t)]:r("Top",t,i)}:{},...e.only==="top"?{}:{[n]:y(Be(a("Bottom"),g(bg,{}),me.min,me.max,me.step,l,"px")),...b?{[it(n)]:r("Bottom",n,l)}:{}},...e.sides?{[u]:y(Be(a("Left"),g(yg,{}),p.min,p.max,p.step,f,"px")),...b?{[it(u)]:r("Left",u,m,p)}:{},[d]:y(Be(a("Right"),g(Sg,{}),p.min,p.max,p.step,f,"px")),...b?{[it(d)]:r("Right",d,m,p)}:{}}:{}})}function LK(e,t){let n=Object.fromEntries(Object.entries(t).map(([s,r])=>[s,s in e&&dg(r)?e[s]:r])),o={},a=!1;for(let[s,r]of Object.entries(e)){if(s in t){a||Object.assign(o,n),a=!0;continue}o[s]=r}return a||Object.assign(o,n),o}var Qa="Width";function DK(e,t=Uh,n=!0){let o=t.map(a=>({label:Nt[a],value:a}));return ro({...n?{_gWidth:Te(Qa)}:{},widthMode:{type:"custom",render:({onChange:a,field:s})=>g(K,{label:c(Qa),icon:g(dP,{}),action:n?g(XP,{inherited:s?.inherited??!1,onReset:()=>a(_l),label:Qa}):void 0,children:eo({options:o,value:s?.currentValue||e,onChange:a,ariaLabel:Qa})})}})}function FK({fill:e=!1}={}){let t=(a,s)=>({type:"custom",render:({value:r,onChange:i})=>g(Hk,{value:r,onChange:i,view:a,badge:s,fill:e})}),n=()=>Al("sectionHeightMode"),o=()=>Al("sectionHeightMode");return ro({_gHeight:Te(Yt),...ze("sectionHeightMode",a=>a==="desktop"?t(a):t(a,s=>g(zk,{view:a,onClear:()=>s(void 0)}))),...ze("sectionHeightValue",n),...ze("sectionHeightUnit",o)})}function Hk({value:e,onChange:t,view:n,badge:o,fill:a=!1}){let s=Z(),{mode:r,number:i,unit:l}=$k(n,s,e);return g(K,{label:Yt,icon:Dt(g(ns,{})),action:o?o(t):void 0,children:Ke("div",{className:"es-width-stack",children:[eo({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:r,onChange:t,ariaLabel:Yt}),i?g(Gk,{view:n,mode:r,menu:l}):null]})})}function Fg(e,t){return e==="phone"&&wo(t)?Ou(t):wu(t)}function is(e,t){return e==="desktop"||(e==="tablet"?wo(t):Cu(t))?null:Fg(e,t)}function $k(e,t,n){let o=(a=>Tu.includes(a))(n)?n:is(e,t)?.mode??"auto";return{mode:o,number:o!=="auto"&&o!=="fill",unit:o==="fixed"}}function Uk(e,t,n,o){let a=is(e,t);return!a||e==="desktop"?null:o===void 0?{}:{[$("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[$("sectionHeightUnit",e)]:a.unit}:{},...n==="sectionHeightUnit"?{[$("sectionHeightValue",e)]:a.value}:{},[$(n,e)]:o}}function sg(e,t,n){let o=Lt(),a=is(e,Z());return!o||!a?{followed:null,write:n}:{followed:a,write:s=>o.onChangeMany(r=>{let i=Uk(e,r,t,s);return i===null?{[$(t,e)]:s}:Object.keys(i).length?i:null})}}function Gk({view:e,mode:t,menu:n}){let o=Lt(),a=Z(),s=$("sectionHeightValue",e),r=$("sectionHeightUnit",e),i=_=>S=>o?.onChangeMany(()=>({[_]:S})),{followed:l,write:u}=sg(e,"sectionHeightValue",i(s)),{write:d}=sg(e,"sectionHeightUnit",i(r)),p=t==="screen"?"%":a[r],f=UO(Eu,"px",l?l.unit:p),m=f==="%"?vu:xu,b=a[s],y=n?{options:["px","%"],label:c("Unit"),onChange:_=>d(_)}:void 0;return pe({min:m.min,max:m.max,step:m.step,value:l?null:typeof b=="number"?b:m.fallback,...l?{placeholder:l.value}:{},suffix:f,...y?{units:y}:{},ariaLabel:Yt,onChange:u})}function zk({view:e,onClear:t}){let n=Z(),o=is(e,n)===null,a=e==="phone"&&wo(n),s=Fg(e,n),r=Ft(i=>c(i),s.mode==="auto"?c("Auto"):`${s.value}${s.unit}`,a?"tablet":"desktop");return g(oe,{words:P()?.panel,label:c(Yt),changed:o,detail:r,onReset:t})}function BK(e={}){let t=e.intro===!0,n=s=>({type:"custom",render:({value:r,onChange:i,id:l,name:u})=>g(Zk,{value:r,onChange:i,labelId:`${l??u??"stickTop"}-label`,view:s,intro:t})}),o=s=>({type:"custom",render:({value:r,onChange:i})=>g(Yk,{value:r,onChange:i,view:s,intro:t})}),a=s=>({type:"custom",render:({value:r,onChange:i})=>g(Xk,{value:r,onChange:i,view:s,intro:t})});return{_gStick:Te(bh,{dot:t?Vk:ll}),...ze("stickTop",n),...ze("stickTopDistance",o),...to(Xn,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ze(qn,a):{},...e.screens?{[rl]:Kk()}:{},...t?{}:{[ol]:Wk()},...t||e.above===!1?{}:{[sl]:jk()}}}function Wk(){return Bg(Q(yh,g(Ll,{}),Sh,_h),Th,al,Eh)}function Kk(){return Bg(Q(wh,g(mg,{}),Ch,Oh),Ph,il,kh)}function Bg(e,t,n,o){return te("desktop",{...e,render:a=>{let s=e.render({...a,value:n(a.value),onChange:r=>a.onChange(o(r))});return Nl(s,{hint:c(t)})}})}function jk(){let e=ct(xh,!1,g(_g,{}),vh);return te("desktop",{...e,render:t=>e.render({...t,onChange:n=>t.onChange(n===!0?!0:void 0)})})}var Vk={any:[ll,Ih]};function Mg(e,t,n,o,a){let s=Lt(),r=Z(),i=e==="desktop"||so(e,r)?null:Gl(e,pn(r,{intro:o}));return{followed:i,write:(i||a)&&s?l=>s.onChangeMany(u=>{let d=qk(e,u,l,t,o),p=d===null?{[$(t,e)]:l}:d;return Object.keys(p).length?{...p,...a?.(l)??{}}:null}):n}}function Yk({value:e,onChange:t,view:n,intro:o}){let a=Z(),s=pn(a,{intro:o}),r=d=>{let p=vo(d);return p==="desktop"||so(p,a)},i=rs({row:Xn,label:"Distance from top",grid:{min:_e.min,max:_e.max,step:_e.step},valueKey:"stickTopDistance",view:n,numbersIn:d=>r(d)&&O(a[Ml("stickTopDistance",d)])!==void 0,followsView:n==="phone"&&s.ownTablet?"tablet":"desktop"}),{followed:l,write:u}=Mg(n,"stickTopDistance",t,o,i?d=>i.unitPatch(d===void 0):void 0);return g("div",{className:"sf-field",children:pe({min:i?.grid.min??_e.min,max:i?.grid.max??_e.max,step:i?.grid.step??_e.step,value:l?null:typeof e=="number"?e:_e.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:u})})}function Xk({value:e,onChange:t,view:n,intro:o}){let{followed:a,write:s}=Mg(n,qn,t,o);return g(K,{label:c(nl),icon:Dt(g(ns,{})),children:pe({min:Za.min,max:Za.max,step:Za.step,value:a?null:O(e)??Za.default,...a?{placeholder:a.screens}:{},ariaLabel:c(nl),onChange:s})})}function so(e,t){return e==="tablet"?cl(t):ul(t)}function Gl(e,t){return e==="phone"?{on:t.tablet,distance:t.tabletDistance,unit:t.tabletUnit,screens:t.tabletScreens}:{on:t.desktop,distance:t.desktopDistance,unit:t.desktopUnit,screens:t.desktopScreens}}function qk(e,t,n,o="stickTopDistance",a=!1){if(e==="desktop"||so(e,t))return null;if(n===void 0)return{};let s=Gl(e,pn(t,{intro:a})),r=e==="phone"&&so("tablet",t)?d=>$(d,"tablet"):d=>d,i=(d,p)=>t[r(d)]==null?{}:{[$(d,e)]:p},l=Xn.unitKey,u=t[r(l)]==null?{}:{[$(l,e)]:s.unit};return{[$("stickTop",e)]:!0,...i("stickTopDistance",s.distance),...u,...i(qn,s.screens),[$(o,e)]:n}}function Zk({value:e,onChange:t,labelId:n,view:o,intro:a}){let s=Z(),r=pn(s,{intro:a}),i=o==="phone"?r.phone:o==="tablet"?r.tablet:a?r.desktop:e===!0,l=o==="phone"&&r.ownTablet,u=o==="desktop"?null:Gl(o,r),d=u?.on?H(u.distance,u.unit):c("Off");return g(K,{label:c(tl),labelId:n,icon:Dt(g(_g,{})),action:Ke(Ve,{children:[o!=="desktop"?g(oe,{words:P()?.panel,label:c(tl),changed:so(o,s),detail:Ft(p=>c(p),d,l?"tablet":"desktop"),onReset:()=>t(void 0)}):null,g(Dl,{checked:i,onChange:t,ariaLabelledBy:n})]})})}var rg="e.g. about";function MK(){return{_gAnchor:Te("Anchor"),anchor:Ht({control:"plainText",label:"Name",placeholder:rg},{type:"custom",render:({value:e,onChange:t})=>g(Xf,{value:e,onChange:t,nameBox:(n,o)=>g(Mt,{value:n,onChange:o,label:"Name",placeholder:rg,hideable:!1,markup:!1})})})}}function HK(){return{_gAdvanced:Te("Advanced"),[mu]:zl}}var zl={type:"custom",render:({value:e,onChange:t})=>g(K,{label:c("Custom CSS"),icon:Dt(g(_P,{})),children:g(IP,{"aria-label":c("Custom CSS"),spellCheck:!1,autoGrow:!0,className:"font-mono",value:typeof e=="string"?e:"",onChange:n=>t(n.target.value)})})};function $K(e,t,n){return{type:"custom",render:({value:o,onChange:a,id:s,name:r})=>{let i=`${s??r??e}-datetime`,l=Date.parse(typeof o=="string"?o:"");return g(K,{label:c(e),icon:t,htmlFor:i,hint:n===void 0?void 0:c(n),children:g(vP,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:u=>a(u?u.toISOString():"")})})}}}function ct(e,t,n,o){return{type:"custom",...lt({},{...os,label:e}),render:a=>{let{value:s,onChange:r,id:i,name:l}=a,u="follows"in a,d=a,p=typeof s=="boolean",f=typeof d.follows=="boolean"?d.follows:t,m=p?s:u?f:t,b=`${i??l??e}-label`,y=d.readOnly===!0,_=g(Dl,{checked:m,onChange:r,disabled:y,ariaLabelledBy:b});return g(K,{label:c(e),labelId:b,icon:n,hint:o===void 0?void 0:c(o),action:u?Ke(Ve,{children:[g(oe,{words:P()?.panel,label:c(e),changed:p,detail:d.followsNoView?c(f?"On":"Off"):Ft(S=>c(S),c(f?"On":"Off"),d.followsView),disabled:y,onReset:()=>r(void 0)}),_]}):_})}}}function Hg(){return{type:"custom",render:({value:e,onChange:t,id:n,name:o})=>{let a=`${String(n??o??"pageBackground")}-colour`;return g(Jk,{label:"Background",icon:g(rP,{}),id:a,value:e,shown:Si(e),onChange:t})}}}function UK(e,t,n){return{type:"custom",render:({value:o,onChange:a})=>g(Se,{label:c(e),icon:n,value:o||t,onChange:a})}}function Jk({label:e,icon:t,id:n,value:o,shown:a,onChange:s}){let{colors:r,n:i}=Kl(),l=Ae(o),u=l?Xt(l,r,i):null;return g(Se,{label:c(e),icon:t,id:n,value:u?u.hex:a,caption:u?.words,onChange:s,choices:Wl(l??"",r,i,s)})}function GK(){return{type:"custom",render:e=>{let{value:t,onChange:n}=e,o=e;return g(Qk,{value:typeof t=="string"?t:"",onChange:n,twin:"follows"in e?{follows:o.follows,view:o.followsView}:void 0})}}}function Wl(e,t,n,o){let a=Ea(e);return $u(t,n).map(s=>({label:s.label,color:s.value,selected:a===s.name,onPick:()=>o(s.name)}))}function Qk({value:e,onChange:t,twin:n}){let{colors:o,n:a}=Kl(),s=o.background,r=Bt(s.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=Pe(nm),[u]=Pe(Ei),d=typeof u=="string"&&u.trim()!=="",p=_a(i),f=v=>l(_a(v)||void 0),m=Ea(e),b=m?Xt(m,o,a):null,y=Wl(e,o,a,t),_=n?()=>t(void 0):()=>t(""),S=s,E=r;if(n){let v=Ea(n.follows),w=Ta(n.follows),R=v?Xt(v,o,a):w?{hex:w,words:w.toUpperCase()}:null;S=R?.hex??s,E=Ft(C=>c(C),R?R.words:r,n.view)}let x=!n&&(Wn(e)||d)?g(eI,{value:p,onChange:f}):null;return b?g(Se,{label:c("Fill"),icon:g(Il,{}),value:b.hex,caption:b.words,onChange:t,changed:!0,onReset:_,resetTo:E,choices:y,children:x}):g(Pn,{label:c("Fill"),icon:g(Il,{}),value:e,inherited:S,resetTo:E,onChange:t,onReset:_,choices:y,children:x})}function eI({value:e,onChange:t}){return eo({options:Sa.map(n=>({label:n.label,value:n.value,hint:n.hint})),value:e,onChange:t,ariaLabel:c("Fill")})}function tI(e,t,n){if((e?.content??[]).some(s=>s?.props?.id===t))return gt(n);let o=am(e,t);if(o.length===0)return null;let a=gt(zs(n));if(a!==null)return a;for(let s=o.length-1;s>0;s-=1){let r=gt(zs(o[s].sectionAccent));if(r!==null)return r}return gt(o[0].sectionAccent)}function Kl(){let e=ke(B().theme),[t]=Pe("sectionAccent"),n=null;try{let{appState:a,selectedItem:s}=as(i=>i),r=s?.props?.id?String(s.props.id):void 0;n=r?tI(a?.data,r,t):null}catch{n=null}let o=n!==null&&e.themes[n]?n:e.selected;return{colors:ce(e.themes[o]),n:o+1}}function zK(){return kg()}var WK={top:g(mg,{}),right:g(tP,{}),bottom:g(QO,{}),left:g(eP,{})};function KK(e,t,n,o,a,s,r){let i=p=>t.find(f=>f.value===p),l=p=>({value:p,label:"",disabled:!0,title:o}),u=p=>{let f=t.find(b=>b.cell===p);if(!f)return l(`missing-${p}`);let m=s?.[p];return m?{value:f.value,label:f.label,icon:m}:{value:f.value,label:f.label}},d=[l("corner-top-left"),u("top"),l("corner-top-right"),u("left"),l("centre"),u("right"),l("corner-bottom-left"),u("bottom"),l("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:f})=>{let m=t.some(b=>b.value===p)?p:n;return g(K,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):r?c(r):"",children:$P(c,{label:e,value:m,onChange:f,points:d})})}}}function jK(e,t,n){return{type:"custom",options:t,render:({value:o,onChange:a,field:s})=>g(Om,{label:e,options:(s.options??t).map(r=>({...r,label:c(r.label)})),value:Array.isArray(o)?o:[],onChange:a,...n?{emptyLabel:c(n)}:{}})}}function $g(e,t={}){return{type:"custom",render:({value:n,onChange:o})=>{let a={value:n,onChange:o,...t};return g(e,{...a})}}}var nI={image:"Image",video:"Video"},VK=Lr.map(e=>({label:nI[e],value:e}));function YK(e,t,n){let o=Object.keys(Fr).map(a=>({label:Fr[a],value:a,picture:n[a]}));return{type:"custom",...lt({},{type:"radio",label:e,options:o.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>g(aI,{label:e,icon:t,options:o,onChange:a})}}function oI(e,t,n){let o=Ap(e,t,n);if(o!==void 0)return o==="save-makes-frame"?c("A frame is made from this video when you save the page."):o==="starts-dark"?c("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="outside"?c("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="unsupported"?c("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="failed"?c("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):o==="image-no-frame"?c("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=Ip(e);return a==="frame-missing-image"?c("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?c("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?c("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?c("No image yet. The slide shows its background colour until you choose one."):void 0}function aI({label:e,icon:t,options:n,onChange:o}){let a=Lt(),s=a?.values??{},r=Nn(s),i=lg(GO),l=of(i?.docId??null),u=null;try{u=as(p=>p.appState.data)}catch{u=null}let d=sf(a?.id,u,l);return g(K,{label:c(e),icon:Dt(t),hint:oI(s,d,i?.hasUnsavedEdits??!1),children:eo({options:n,value:r,onChange:o,ariaLabel:e})})}function XK(e,t,n,o={}){let a={type:"custom",[jO]:!0,render:({value:s,onChange:r,name:i})=>g(wm,{value:s||"",onChange:r,fieldKey:i,label:e,accept:t,placeholder:n,focusKey:o.focus,focusWhen:o.focusWhen,frameKey:o.frame}),...o.focus?{focusKey:o.focus}:{},...o.focusWhen?{focusWhen:o.focusWhen}:{}};return o.focus?te("each",a):a}var qK={HeroSingle:[wp.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function sI(e){let t=c(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${t} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:t}function Ug({value:e,onChange:t,label:n}){let o=e||{},a=Lt(),s=a?a.values!==a.node.props:!0,r=!!o.pending&&s,i=!!o.pending&&!s,l=!!xe(MP()).geocode,u=cg(),d=(p,f)=>t({...o,[p]:f??void 0});return Ke(Ve,{children:[g(K,{label:c(n),icon:g(Jh,{}),action:l?g(Fl,{content:c("Find from the address (OpenStreetMap)"),children:g(xg,{"aria-label":c("Find from the address"),"aria-busy":r||void 0,disabled:r,onClick:()=>t({...o,pending:!0,ok:!1,status:"Finding\u2026"}),children:g(lP,{})})}):void 0,children:l&&o.status?g(ya,{compact:!0,oneLine:!0,spaced:!1,status:r?"busy":o.ok&&!i?"found":"notfound",statusText:r?c("Finding\u2026"):i?c(Ci):c(o.status),hint:sI(o)}):null}),g(K,{label:c("Enter by hand"),labelId:u,icon:g(nP,{}),action:g(Dl,{checked:!!o.manual,onChange:p=>t({...o,manual:p}),ariaLabelledBy:u})}),o.manual&&g(K,{label:c("Latitude, longitude"),icon:g(Jh,{}),children:Ke("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[g(eg,{value:typeof o.lat=="number"?o.lat:null,onChange:p=>d("lat",p),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),g(eg,{value:typeof o.lng=="number"?o.lng:null,onChange:p=>d("lng",p),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function rI(e,t){return t===null||t<0||t>=e.length?"":e[t]?.text??""}function iI(e,t,n){let o=e.map(a=>({text:a?.text??""}));return t===null||t<0||t>=e.length?o:o.map((a,s)=>s===t?{text:n}:a)}function lI(e,t,n){if(n===null||n>=t.length)return null;for(let o=0;o<n;o+=1)if(e[o]!==t[o])return null;return e[n]!==t[n]&&t.includes(e[n])||e[n]!==t[n]&&t.length!==e.length?null:n}var ZK={label:"Ticker items",icon:g(sP,{})};function JK(e,t,n,o){return{type:"custom",[je]:{control:"textList",label:e,placeholder:n,itemKey:"text",rendering:o},...lt({},{...Og.textList,label:e}),render:({value:a,onChange:s})=>g(cI,{label:e,icon:Dt(t),items:Array.isArray(a)?a:[],placeholder:n,onChange:s,markup:o==="markup"})}}function cI({label:e,icon:t,items:n,placeholder:o,onChange:a,markup:s=!1}){let r=no(null),[i,l]=oo(null),u=p=>p.map(f=>({text:f?.text??""})),d=p=>{let f=lI(n,p,i);f===null&&(r.current=null),l(f),a(u(p))};return g(SP,{label:c(e),icon:t,noun:c("item"),items:n,onChange:d,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:s?g(Oi,{target:r,value:rI(n,i),onChange:p=>a(iI(n,i??-1,p)),disabled:i===null,label:i===null?c("Formatting \u2014 click a row first"):c("Formatting \u2014 row {n}",{n:i+1})}):void 0,renderRow:(p,f,m)=>g("input",{type:"text",className:s&&i===f?"sf-list-marking":void 0,value:p?.text??"",placeholder:c(o),"aria-label":c("{label} {n}",{label:c(e),n:f+1}),onChange:b=>m({text:b.target.value}),onFocus:b=>{r.current=b.currentTarget,l(f)}})})}function QK(e,t){let n=`${e.label} \u2014 row ${t+1}`;return Ht({control:"plainText",label:n,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:c("{label} \u2014 row {n}",{label:c(e.label),n:t+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function ej(e){return{_gCards:Te("Cards"),coverIndex:Q("Cover image",g(aP,{}),xm,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:rk("Image background",Ka),cardImage:Gg()}}function tj(){return{outline:Q("Card outline",g(cP,{}),Em,Tm),indexBadge:Q("Card number",g(gg,{}),Ii,ki),showBadge:ct("Product badge",!0,g(yi,{noun:"tag"}))}}function nj(e){let t=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},n=a=>({...os,label:es.find(s=>s.id===a).label}),o=a=>lt(Al(kl),n(a));return{_gShowOnCard:Te("Show on a card"),[kl]:lt({type:"custom",render:()=>g(uI,{rest:{showCardPrice:!0,showCardFinishes:!0,...t}})},n(kl)),showCardFinishes:o("showCardFinishes"),showCardSizes:o("showCardSizes"),showCardBuy:o("showCardBuy"),showCardPage:o("showCardPage")}}var kl="showCardPrice",es=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function uI({rest:e}){let t=Z(),n=cn(),o=r=>typeof t[r]=="boolean"?t[r]:void 0,a=r=>o(r)??e[r],s=es.some(({id:r})=>o(r)!==void 0&&o(r)!==e[r]);return g(jl,{parts:es,changed:s,shown:a,onPress:(r,i)=>n({[r]:i}),onReset:()=>n(Object.fromEntries(es.map(({id:r})=>[r,void 0])))})}function oj(e,t="display"){let n=it(t);return{[t]:te("desktop",{type:"custom",render:({value:o,onChange:a})=>g(jl,{parts:e,changed:cm(o),shown:s=>va(o,s),onPress:(s,r)=>a(dm(o,s,r)),onReset:()=>a(void 0)})}),[n]:te("mobile",{type:"custom",render:({value:o,onChange:a})=>g(dI,{parts:e,desktopKey:t,value:o,onChange:a})})}}function jl({parts:e,changed:t,shown:n,onPress:o,onReset:a,detail:s,disabledReason:r}){let i=c("Display");return g(K,{label:i,icon:g(XO,{}),changed:t,action:g(oe,{words:P()?.panel,label:i,changed:t,detail:s,onReset:a}),children:g(TP,{label:i,items:e.map(l=>({id:l.id,label:c(l.label),shown:n(l.id),...r?{disabled:!0,disabledReason:c(r)}:{}})),onChange:o})})}function dI({parts:e,desktopKey:t,value:n,onChange:o}){let a=Z()[t];return g(jl,{parts:e,changed:um(n),shown:s=>wi(a,n,s),onPress:(s,r)=>o(pm(n,s,r)),onReset:()=>o(Pa),detail:c("the same as Desktop")})}function Gg(e=wf){return Be("Card image",g(fg,{}),ae,qe,vf,ae,e,{clear:{hint:ae},hint:"Rounds the picture. The card's own corner is in Styles."})}function pI(){return to(li,"cardImage")}function aj(){return{cardImage:Gg(li),...pI()}}function sj(){return Ul({sidesKey:"cornerSides",row:Cf,step:Of,useFollowed:()=>ae,mark:g(fI,{label:Pf}),hint:c("Rounds the picture. Left alone it stays square.")})}function fI({label:e,changed:t=!1,onReset:n=()=>{}}){return g(oe,{words:P()?.panel,label:c(e),changed:t,onReset:n})}function rj(){return{type:"custom",render:({value:e,onChange:t})=>g(bI,{value:typeof e=="string"?e:"",onChange:t})}}var ig="own";function ij(){let e=[{value:ig,label:"Layout's own",picture:wl(Array.from({length:8},()=>[3,1]))},...Object.entries(pa).map(([t,n])=>({value:t,label:n.label,picture:wl([...n.phone,...n.phone])}))];return te("mobile",xl("Layout",g(hg,{}),e,ig,{columns:2,cell:qh}))}function mI({layout:e,width:t}){let n=fi(e),o=n?`${n[0]}/${n[1]}`:void 0;return g("span",{"aria-hidden":"true",style:{display:"grid",width:t,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:o?"auto":6,gridAutoFlow:"row dense",gap:2},children:Lf(e).map(([a,s],r)=>g("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${s}`,aspectRatio:o}},r))})}var hI={width:"3.5rem",height:"2.5rem",words:!1},gI=200;function bI({value:e,onChange:t}){let[n,o]=oo(null),[a,s]=oo(4),r=no(null);$O(()=>{let m=r.current;if(!m||typeof ResizeObserver!="function")return;let b=()=>s(m.getBoundingClientRect().width>=gI?4:3);b();let y=new ResizeObserver(b);return y.observe(m),()=>y.disconnect()},[]);let i=e?j(Gn,e):void 0,l=i?e:"",u=di(n,l),d=di(n,"").length,p=Mf("no-symbol"),f=[{value:"",label:c("Not chosen"),icon:Yh(p,c("Not chosen"))},...u.map(m=>({value:m,label:c(Gn[m].label),icon:g(mI,{layout:Gn[m],width:40})}))];return g(K,{label:c("Layout"),icon:g(hg,{}),value:i?c(i.label):void 0,children:g("div",{ref:r,style:{flex:"1 1 auto",minWidth:0},children:g(Tg,{label:c("Layout"),value:l,options:f,onChange:t,columns:a,cell:hI,header:Ke("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[g("span",{className:"text-2xs text-ink-faint",children:c("Photos in a row")}),g(mP,{options:[{id:"all",label:c("All")},...Af.map(m=>({id:String(m),label:String(m)}))],value:n===null?"all":String(n),ariaLabel:c("Photos in a row"),onChange:m=>o(m==="all"?null:Number(m))}),g("span",{className:"text-2xs text-ink-faint",children:c("{n} of {total} layouts",{n:d,total:ui.length})})]})})})})}var TI="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Vl="Corners";function zg({value:e,onChange:t,length:n}){let o=e===null;return ls(SI,{label:c(Vl),icon:ls(_I,{}),changed:!o,action:ls(yI,{words:P()?.panel,label:c(Vl),changed:!o,detail:c("the built-in corners"),onReset:()=>t(null)}),hint:c(TI),children:ls(pe,{min:n?.grid.min??ae,max:n?.grid.max??qe,step:n?.grid.step??1,value:e,...e===null?{}:{suffix:n?.unit??"px",...n?{units:n.units}:{}},placeholder:ae,placeholderWord:"Auto",onClear:()=>t(null),ariaLabel:c(Vl),onChange:t})})}import{jsx as io}from"react/jsx-runtime";import{SettingsDefaultReset as EI,SettingsField as xI}from"efficient-easel/panel";import{IconPicker as vI}from"efficient-shell/ui";import{ShadowIcon as wI}from"efficient-easel/icons";import{SHADOW_PREVIEW as CI}from"efficient-easel/screen/lib/document/shadow-values";var Yl={none:"None",soft:"Soft",lifted:"Lifted"},OI="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function Wg({value:e,onChange:t}){let n=e===null,o=e??Us;return io(xI,{label:c("Card shadow"),icon:io(wI,{}),value:c(Yl[o]),changed:!n,action:io(EI,{words:P()?.panel,label:c("Card shadow"),changed:!n,detail:c(Yl[Us]),onReset:()=>t(null)}),hint:c(OI),children:io(vI,{label:c("Card shadow"),value:o,options:ru.map(a=>({value:a,label:c(Yl[a]),icon:io("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:CI[a]}})})),onChange:t})})}import{jsx as Kg}from"react/jsx-runtime";import{ShadowIcon as PI}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as jg}from"efficient-easel/screen/lib/document/shadow-values";var kI="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function Vg({value:e,onChange:t}){let n=e===null;return Kg(Pn,{label:c("Shadow color"),icon:Kg(PI,{}),value:e??"",inherited:jg,resetTo:jg,onChange:t,onReset:()=>t(null),hint:c(kI)})}import{jsx as us}from"react/jsx-runtime";import{SettingsDefaultReset as II,SettingsField as AI}from"efficient-easel/panel";import{AlignSeparateIcon as RI}from"efficient-easel/icons";function cs(e,t){return e==="tablet"?null:e==="mobile"?t.phone:t.desktop}var NI="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",LI="The space between the blocks inside a row, a grid or a box, on a phone. Until you set it, a phone uses half the desktop gap.",Xl="Block gap",Yg=qt.Grid;function Xg(e,t){return cs(e,{desktop:{key:"block_gap",value:t.gap,followsPx:null},phone:{key:"block_gap_phone",value:t.phone,followsPx:t.gap===null?null:Ys(t.gap)}})}function qg({value:e,onChange:t,followsPx:n=null,length:o,followsUnit:a="px"}){let s=e===null,r=n===null?null:`${n}${a}`,i=a==="px"&&(o?.unit??"px")==="px",l=n===null?Yg:i?wn(n)??Yg:n;return us(AI,{label:c(Xl),labelId:"sf-block-gap",icon:us(RI,{}),changed:!s,action:us(II,{words:P()?.panel,label:c(Xl),changed:!s,detail:r??c("each block's own spacing"),onReset:()=>t(null)}),hint:c(r===null?NI:LI),children:us(pe,{min:(o?.grid??ye).min,max:(o?.grid??ye).max,step:(o?.grid??ye).step,value:e,...e===null&&n===null?{}:{suffix:o?.unit??"px",...o?{units:o.units}:{}},placeholder:l,...n===null?{placeholderWord:"Auto"}:i&&n===l?{}:{placeholderWord:String(n)},onClear:()=>t(null),ariaLabel:c(Xl),onChange:t})})}import{jsx as ds}from"react/jsx-runtime";import{SettingsDefaultReset as DI,SettingsField as FI,SettingsSegmented as BI}from"efficient-easel/panel";import{HoverIcon as MI}from"efficient-easel/icons";var ql={none:ws.none,lift:ws.lift,highlight:Ac},HI="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function Zg({value:e,onChange:t}){let n=e===null,o=e??Gs;return ds(FI,{label:c("Hover effect"),icon:ds(MI,{}),value:c(ql[o]),changed:!n,action:ds(DI,{words:P()?.panel,label:c("Hover effect"),changed:!n,detail:c(ql[Gs]),onReset:()=>t(null)}),hint:c(HI),children:ds(BI,{options:iu.map(a=>({id:a,label:c(ql[a])})),value:o,ariaLabel:c("Hover effect"),onChange:t})})}import{jsx as ps}from"react/jsx-runtime";import{SettingsDefaultReset as $I,SettingsField as UI,SettingsSegmented as GI}from"efficient-easel/panel";import{DropIcon as zI}from"efficient-easel/icons";var Zl="Photography",Jg={shot:"As shot",mono:"Black and white"},Jl=[{grayscale:!1,label:Jg.shot},{grayscale:!0,label:Jg.mono}],WI="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function Qg({value:e,onChange:t}){let n=e===null,o=e??!1;return ps(UI,{label:c(Zl),icon:ps(zI,{}),value:c(Jl.find(a=>a.grayscale===o).label),changed:!n,action:ps($I,{words:P()?.panel,label:c(Zl),changed:!n,detail:c(Jl.find(a=>!a.grayscale).label),onReset:()=>t(null)}),hint:c(WI),children:ps(GI,{options:Jl.map(a=>({id:a.grayscale,label:c(a.label)})),value:o,ariaLabel:c(Zl),onChange:t})})}import{jsx as Ql}from"react/jsx-runtime";import{useId as KI}from"react";import{SettingsField as jI,SettingsSwitch as VI}from"efficient-easel/panel";import{ShareIcon as YI}from"efficient-easel/icons";var XI="Share button",qI="On every blog post.";function eb({value:e,onChange:t}){let n=KI();return Ql(jI,{label:c(XI),labelId:n,icon:Ql(YI,{}),action:Ql(VI,{checked:e===!0,onChange:t,ariaLabelledBy:n}),hint:c(qI)})}import{usePreviewDevice as hc}from"efficient-easel/draw/client";import{jsx as fs}from"react/jsx-runtime";import{SettingsDefaultReset as ZI,SettingsField as JI}from"efficient-easel/panel";import{PaddingXIcon as QI}from"efficient-easel/icons";var ec="Side space",tb=ie.default,eA="The room left at the left and right edge of every page.";function nb(e,t){return cs(e,{desktop:{key:"site_gutter",value:t.gutter,unsetPx:tb,bounds:ie},phone:{key:"site_gutter_phone",value:t.phone,unsetPx:Gp(t.gutter,t.gutterUnit),bounds:Le}})}function ob({value:e,onChange:t,unsetPx:n=tb,bounds:o=ie,length:a,restsOn:s=n}){let r=e===null;return fs(JI,{label:c(ec),labelId:"sf-side-space",icon:fs(QI,{}),changed:!r,action:fs(ZI,{words:P()?.panel,label:c(ec),changed:!r,detail:`${n}px`,onReset:()=>t(null)}),hint:c(eA),children:fs(pe,{min:(a?.grid??o).min,max:(a?.grid??o).max,step:(a?.grid??o).step,value:e,suffix:a?.unit??"px",...a?{units:a.units}:{},...o.typedMax!==void 0&&(a?.unit??"px")==="px"?{inputMax:o.typedMax}:{},placeholder:s,onClear:()=>t(null),ariaLabel:c(ec),onChange:t})})}import{jsx as tc}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as f3,SettingsBackgroundWidth as tA,SettingsContentWidth as nA}from"efficient-easel/panel";var oA="Background width",aA="Content width";var ms=e=>c(Nt[e==="content"?"page":"full"]),ab="The width of every section's background.",sb="The width of every section's content.";function rb({value:e,changed:t,detail:n,onChange:o,onReset:a,hint:s,labelId:r}){return tc(tA,{value:e,changed:t,detail:n,onChange:o,onReset:a,hint:s?c(s):void 0,labelId:r,words:{label:c(oA),full:ms("full"),content:ms("content")},resetWords:P()?.panel})}function ib({mode:e,px:t,max:n=V.max,min:o=V.min,changed:a,detail:s,fullClosed:r,onMode:i,onPx:l,onReset:u,hint:d,labelId:p,length:f}){let m=c(aA),b=f?.grid.min??o,y=f?.grid.max??n,_=e!=="full"?tc(pe,{min:b,max:y,step:f?.grid.step??V.step,value:Math.min(Math.max(t,b),y),onChange:l,...f?{suffix:f.unit,units:f.units}:{suffix:"px"},ariaLabel:m}):null;return tc(nA,{mode:e,onMode:i,number:_,changed:a,detail:s,fullClosed:r,onReset:u,hint:d?c(d):void 0,labelId:p,words:{label:m,full:ms("full"),content:ms("content")},resetWords:P()?.panel})}import{jsx as lb}from"react/jsx-runtime";import{useMemo as sA}from"react";import{TextStyleItem as rA,TextStylesGroup as iA}from"efficient-easel/text-styles";var cb=["font","size","weight","emphasis"],lA=500;function cA({font:e,size:t,weight:n,italic:o}){let a={font:e};return t!==null&&(a.size=t),n!==null&&(a.weight=n),o!==null&&(a.italic=o),{id:"accent",kind:"heading",name:c("Emphasis"),values:a}}function uA(e,t){let n=[],o=e.values,a=t.values;return a.font!==o.font&&a.font!==void 0&&n.push({key:"font",value:a.font}),a.size!==o.size&&n.push({key:"size",value:a.size??null}),a.weight!==o.weight&&n.push({key:"weight",value:a.weight??null}),a.italic!==o.italic&&n.push({key:"italic",value:a.italic??null}),n}function ub(e){let{headingWeight:t,open:n,onOpenChange:o,onChange:a,withoutSize:s=!1}=e,r=cA(e),i=On(),l=sA(()=>Jo(i),[i]);return lb(iA,{label:c("Emphasis"),children:lb(rA,{style:r,fonts:l,settings:s?cb.filter(u=>u!=="size"):cb,auto:["size"],fallback:()=>({weight:t??lA}),open:n,onOpenChange:o,onChange:u=>uA(r,u).forEach(a)})})}import{viewKeyAt as hb}from"efficient-easel/draw";import{shownUnitAt as gA,unitKeyOnWrite as bA}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as dA,rowUnits as pA,unitPickPatch as fA}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as mA}from"efficient-easel/draw";var hA=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],hs={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:au,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:V,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:ie,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:Le,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:ye,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:ye,tier:"mobile"}};function gs(e){return{number:hs[e].number,unit:Yc[`${e}Unit`]}}function db(e,t,n){let o=F(n),{number:a,unit:s}=gs(e);return{[a]:t,[s]:t===null||o==="px"?null:o}}function bs(e,t,n,o){let{kind:a,grid:s,tier:r}=hs[e],i=F(n),l=F(o),u=s.typedMax,d=u!==void 0&&l==="px"?{...s,max:u}:s;return i===l?t:dA(t,i,l,r,{kind:a},d)}function pb(e,t,n,o){let{number:a,unit:s}=gs(e),r=fA({[a]:t},i=>bs(e,i,n,o),s,F(o),"px");return{[a]:r[a],[s]:r[s]??null}}function fb(e,t){let{kind:n,grid:o}=hs[e];return Vc(n,F(t),o)}function mb(e){return pA({kind:hs[e].kind},Qn)}function nc(e,t){let n=mA(e,t);if(!hA.includes(n))throw new Error(`no site length row ${n}`);return n}function lo(e,t,n,o,a){let{siteLengthUnits:s,setSiteLengthUnits:r}=B(),i=`${e}Unit`,l=s[i],u=gA({n:a?.figure??null,u:a?.unit??null,[hb("n","mobile")]:t,[hb("u","mobile")]:l??null},{n:"n"},"u","mobile"),d=b=>r({[i]:b==="px"?null:b}),p=b=>{n(b);let y=bA(i,l,u,"px",b===null);i in y&&d(y[i]==null?null:F(y[i])),o(db(e,b,u),b===null)},f=b=>{let y=F(b);if(y===u||(d(y),t===null))return;let _=pb(e,t,u,y);n(_[gs(e).number]),o(_,!0)},m=a?a.unit===u?a.figure:bs(e,a.figure,a.unit,u):null;return{length:{unit:u,grid:fb(e,u),units:{options:mb(e),onChange:f,label:c("Unit")}},write:p,rest:m,shown:b=>bs(e,b,"px",u)}}import{EmptyState as lR,SliderGroup as cR,Tabs as uR,Tooltip as DY,tabButtonId as dR,tabPanelId as pR}from"efficient-shell/ui";import{ContrastIcon as fR,SettingsIcon as mR,TypeIcon as hR}from"efficient-easel/icons";function gb(e){switch(e.status){case"saved":return null;case"failed":return{msg:c("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:c("Not saved. Reload the page."),tone:"error"};case"template":return{msg:c("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as Ts}from"react/jsx-runtime";import{ListIcon as KA,PaddingTopIcon as jA,PaddingXIcon as VA}from"efficient-easel/icons";import{jsx as ys}from"react/jsx-runtime";import{SettingsDefaultReset as yA,SettingsField as SA,SettingsSegmented as _A}from"efficient-easel/panel";import{WidthIcon as TA}from"efficient-easel/icons";function bb({value:e,resolved:t,onChange:n,label:o="Width",labelId:a,followsLabel:s,hint:r}){let i=e===void 0,l=i?t:e,u=c(o);return ys(SA,{label:u,labelId:a,icon:ys(TA,{}),value:i?s:void 0,changed:!i,action:ys(yA,{words:P()?.panel,label:u,changed:!i,onReset:()=>n(void 0)}),hint:r,children:ys(_A,{options:[{label:c(Nt.full),id:"full"},{label:c(Nt.page),id:"content"}],value:l,ariaLabel:u,onChange:n})})}import{group as YA}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ut}from"react/jsx-runtime";import{ColumnsIcon as NA,HeadquartersIcon as LA,HeightIcon as DA,LayoutIcon as FA,LocationIcon as BA,MapIcon as MA,SearchIcon as HA,ThemeIcon as $A}from"efficient-easel/icons";import{group as rc}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as yn}from"efficient-easel/screen/lib/document/device-fields";import{jsx as ac}from"react/jsx-runtime";import{ListIcon as EA}from"efficient-easel/icons";import{NoControlMark as xA,noControlField as vA}from"efficient-easel/screen/lib/document/panel-no-control-mark";function wb(e,t){return Q(e,ac(EA,{}),[{label:t,value:""}],"")}var wA="_sourceEdit";function aV(){return vA({type:"custom",render:()=>ac(xA,{})},"always")}var yb=new Map,Sb=new WeakMap,_b=(e,t)=>({type:"custom",render:()=>ac(ya,{compact:!0,status:"ok",hint:c("Where this content is edited."),edit:{label:e,onClick:t}})});function CA(e){if(yc(e)){let o=Sb.get(e.open);o||Sb.set(e.open,o=new Map);let a=o.get(e.label);return a||o.set(e.label,a=_b(e.label,e.open)),a}let t=`${e.label}\0${e.href}`,n=yb.get(t);return n||(n=_b(e.label,()=>window.open(e.href,"_blank","noopener")),yb.set(t,n)),n}var Tb=new WeakMap,Eb=-1,oc={},xb=new WeakMap;function Cb(e,t,n){return _c(e).filter(o=>!o.records||o.key===t||n!==null&&o.records.includes(n))}function OA(e,t,n,o){Eb!==ho()&&(Eb=ho(),oc={});let a=Tb.get(t);(!a||xb.get(a)!==oc)&&(a=new Map,xb.set(a,oc),Tb.set(t,a));let s=Cb(e,n,o),r=n&&!s.some(u=>u.key===n)?n:"",i=`${e}\0${r}\0${o??""}\0${s.map(u=>u.key).join(",")}`,l=a.get(i);return l||(l={...t,options:[...t.options,...s.map(u=>({label:u.label,value:u.key})),...r?[{label:r,value:r}]:[]]},a.set(i,l)),l}var vb=new WeakMap,PA={not:{field:Ye,set:!0}};function Ob(e,t,n,o={}){let a=t[Ye];if(!a)return t;let s=Ec(n),r=Tf(o.root),i=Cb(e,s,r).length>0||s!=="",l=i?OA(e,a,s,r):null,u=vb.get(t);u||vb.set(t,u=new Map);let d=`${ho()}\0${i?"1":"0"}\0${s}\0${(o.hides??[]).join(",")}\0${r??""}`,p=u.get(d);if(p)return p;let f=new Set(o.hides??[]),m=s?Tc(s)?.edit:void 0,b={};for(let[y,_]of Object.entries(t))y===Ye?l&&(b[y]=l):y===wA?m&&(b[y]=CA(m)):b[y]=f.has(y)&&_&&typeof _=="object"?le(_,PA):_;return u.set(d,b),b}import{createContext as kA,useContext as IA}from"react";var Pb=kA(null),lV=Pb.Provider,cV=()=>IA(Pb);function uV(e){let t=[];for(let n of e)n.placement!=="located"&&n.placement!=="approximate"||n.lat===null||n.lng===null||t.push({key:n.id,label:n.name,lat:n.lat,lng:n.lng,glyph:"",tone:"",approximate:n.placement==="approximate"});return t}function AA(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function dV(e,t){let n=[e.city,[e.state,e.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return{name:e.name,address:e.address,place:n,distance:t?AA(e.distanceKm):"",phone:e.phone,phoneHref:e.phone?`tel:${e.phone.replace(/[^\d+]/g,"")}`:"",website:e.website.replace(/^https?:\/\//,"").replace(/\/$/,""),websiteHref:e.website&&!/^[a-z][a-z\d+.-]*:/i.test(e.website)?`https://${e.website}`:e.website}}var RA=[{key:"name",label:"Dealer name",plain:!0},{key:"address",label:"Address"},{key:"place",label:"City \xB7 state \xB7 postcode",plain:!0},{key:"distance",label:"Distance",plain:!0},{key:"phone",label:"Phone"},{key:"phoneHref",label:"Phone link",kind:"link"},{key:"website",label:"Website",plain:!0},{key:"websiteHref",label:"Website link",kind:"link"}],kb={key:mo,label:"Dealers",blocks:["Footprint"],fields:RA};function pV(e){return[e.name,e.city].filter(Boolean).join(", ")}var mV={text:"Button label",href:"#"},hV=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),co={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var Ss={sectionNumber:co.sectionNumber,heading:`${co.heading}
|
|
9
|
-
*${co.accent}*`,tagline:co.body},sc=xc.Footprint,_V={label:"Locations Map",fields:sc,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:To.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};var Ab={field:Ye,is:mo,default:""},ic={field:Gt,is:mt,default:mt},UA={field:Gt,is:"list",default:mt},GA={field:Gt,is:"map",default:mt},Rb={all:[ic,{field:"listPosition",in:["left","right"],default:"below"}]},Nb={any:[{all:[Ab,{not:GA}]},Rb]},zA={any:[{all:[ic,{field:"listPosition",is:"below",default:"below"}]},UA]},Ib={all:[Nb,{field:"search",is:!0,default:!1}]};Sc([kb,Vp]);async function lc(e){return Ca(e)?mm(e,t=>[t.address,t.city,t.country].map(n=>String(n??"").replace(/\*/g,"").trim()).filter(Boolean).join(", ")):e}var WA={fields:{_gContent:rc("Section"),sectionNumber:ss("Section number",Ss.sectionNumber),heading:$l("Heading",Ss.heading),tagline:$l("Body",Ss.tagline),_gOffices:rc("Offices"),[Ye]:wb("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:bn("Role"),city:bn("City"),country:bn("Region \xB7 country"),address:Pg("Address"),phone:bn("Phone"),group:bn("Group"),hq:ct("HQ",!1,ut(LA,{})),geocode:$g(Ug,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...sc,[Gt]:gn("Shows",ut(MA,{}),[{label:"Map and list",value:mt},{label:"Map only",value:"map"},{label:"List only",value:"list"}],mt),mapTheme:gn("Map theme",ut($A,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],To.mapTheme),_gList:rc("List"),listPosition:yn("desktop",le(gn("Position",ut(FA,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below"),ic)),listColumns:yn("desktop",le(gn("Columns",ut(NA,{}),[{label:"Auto",value:Ls},...Wc.map(e=>({label:String(e),value:String(e)}))],Ls),zA)),[Gc]:yn("desktop",le(gn("Map height",ut(DA,{}),[{label:"Fixed",value:Ns},{label:"Full height",value:zc}],Ns),Rb)),search:yn("desktop",le(ct("Search",!1,ut(HA,{})),Nb)),searchHint:yn("desktop",le(Hl(ss("Hint","Type a postcode or address")),Ib)),noMatchText:yn("desktop",le(Hl(ss("No match","No place found. Try another postcode.")),Ib)),showDistance:le(ct("Distance",!0,ut(BA,{})),Ab)},resolveData:async(e,t)=>{let n=t?.changed,o=e.props;if(n?.listPosition===!0||n?.[Gt]===!0||n?.[Ye]===!0){let i=Kc(o);i!==o&&(e={...e,props:i})}let a=e.props,s=a.offices??[],r=await lc(s);return r===s?e:{...e,props:{...a,offices:[...r]}}},resolveFields:(e,{fields:t})=>$c(Ob("Footprint",t,e.props,{hides:["offices"]}),e.props.headPlacement,Hc.Footprint.headRows)},Lb=WA.fields.offices;var _s=null;function HV(e){_s=e}function $V(){return!!(_s&&_s.state().lockHolder)}function cc(){return _s!==null}import{BUCKET_KEY as XA}from"efficient-easel/screen/lib/document/field-buckets";function qA(){return{type:"custom",render:({value:e,onChange:t})=>Ts(bb,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:c("Follows the site"),hint:c("Whether this page sits on the site's content column, or runs edge to edge."),onChange:n=>t(n)})}}var ZA=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],rY={pageBackground:Hg(),topSpace:Q("Top space",Ts(jA,{}),ZA,Nu),widthChoice:qA()},Hb=["pageBackground","topSpace","widthChoice"],JA="Record type",uc=new Map,Db=-1;function QA(e){Db!==ai()&&(uc.clear(),Db=ai());let t=oi(),n=t.some(a=>a.key===e)?"":e,o=uc.get(n);return o||(o=Q(JA,Ts(KA,{}),[...t.map(a=>({label:a.label,value:a.key})),...n?[{label:n,value:n}]:[]],st),uc.set(n,o)),o}var Fb=new WeakMap;function iY(e,t){if(!Un()||oi().length<2||la in e)return e;let n=QA($n(t)),o=Fb.get(e);if(o&&o.row===n)return o.fields;let a={[la]:n,...e};return Fb.set(e,{row:n,fields:a}),a}var eR="On: the site's Side space is counted once at each edge of every page. Off: as before.",tR=ct("Count side space once",!1,Ts(VA,{}),eR),dc={_gWebsite:YA("Website"),[wt]:tR,[nt]:Lb,[Fn]:zl},Bb=new WeakMap;function lY(e,t){if(t?.kind!==Hi||wt in e)return e;let n=Bb.get(e);return n||(n={...e,...dc},Bb.set(e,n)),n}function cY(e){if(!cc()||wt in e)return e;let t=Mb.get(e);if(!t){t={};let n=!1;for(let[o,a]of Object.entries(e))o===nR&&!n&&(Object.assign(t,dc),n=!0),t[o]=a;n||Object.assign(t,dc),Mb.set(e,t)}return t}var nR=XA.Animation,Mb=new WeakMap;function uY(e){return cc()?$b(e):e}function $b(e){let t=e?.props;if(!t||!Array.isArray(t[nt]))return e;let n=t[nt];return Ca(n)?lc(n).then(o=>({...e,props:{...t,[nt]:[...o]}})):e}function dY(e){return e?.props?.kind===Hi?$b(e):e}import{previewFrame as gR}from"efficient-easel/screen/lib/document/preview-dom";import{pictureShadowColor as bR}from"efficient-easel/screen/lib/document/shadow-values";var fc="sf-site-styles",yR="sf-site-styles-tabpanel",qY="text",zb="basics",Ub="this-page-group",Es=[{id:zb,label:"Basics",icon:L(mR,{})},{id:"theme",label:"Theme",icon:L(fR,{})},{id:"text",label:"Text",icon:L(hR,{})}];function SR({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=Gb(u=>u),{theme:a,setTheme:s}=B(),r=n.data,i=r.root?.props??{},l=u=>{if(e){let d={...i,theme:u};o({type:"replaceRoot",root:{...r.root,props:d},recordHistory:!0})}else s(u);t({selected_preset:u.selected,theme_presets:u.themes})};return L(Ep,{value:e?i.theme:a,onChange:l})}function _R({themeFromDocument:e,persist:t}){let[n,o]=mc(null),{theme:a,setFonts:s,setSizes:r,setHeadingTypography:i}=B(),l=bp({themeFromDocument:e,persist:t}),{old:u,saved:d,writeRoot:p}=l,f=l.fonts,m=l.sizes,b=l.typography,y=xR,_=C=>l.write(C),S=hp(a),E=gp(a),x=C=>{let D={...f,accent:C};e?p({fonts:D}):s(D),t({accent_font:C})},v=C=>{r({...m,accent:C}),t({accent_size_px:C})},w=C=>{let D={...b,weightStrong:C};e?p({headingTypography:D}):i(D),t({heading_weight_strong:C})},R=C=>{let D={...b,italicStrong:C};e?p({headingTypography:D}):i(D),t({accent_italic:C})};return $t(Sn,{children:[L(pp,{saved:d,old:u,colours:S,colourNameOf:E,sizeOf:y,onChange:_,openId:n===pc?null:n,onOpenChange:o,withoutSize:e}),L(ub,{font:f.accent,size:m.accent,weight:b.weightStrong,italic:b.italicStrong,headingWeight:b.weight,open:n===pc,onOpenChange:C=>o(C?pc:null),onChange:C=>{C.key==="font"?x(C.value):C.key==="size"?v(C.value):C.key==="weight"?w(C.value):R(C.value)},withoutSize:e})]})}var pc="accent",TR={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},ER={heading:32,body:14};function xR(e){return e.values.size??wR(j(TR,e.id)??"body")??ER[e.kind]}var vR={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function wR(e){if(typeof document>"u")return null;let t=(gR()?.contentDocument??document).querySelector(vR[e]);if(!t)return null;let n=parseFloat(getComputedStyle(t).fontSize);return Number.isFinite(n)?n:null}function CR({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=Gb(f=>f),{cornerRadiusPx:a,setCornerRadiusPx:s}=B(),r=n.data,i=r.root?.props??{},l=i.cornerRadiusPx===void 0?su[ou(i.cornerStyle)]:Ie(i.cornerRadiusPx),u=e?l:a,d=lo("cornerRadius",a,s,t),p=f=>o({type:"replaceRoot",root:{...r.root,props:{...i,...f}},recordHistory:!0});return L(zg,{value:u,onChange:f=>{e?(p({cornerRadiusPx:f}),t({corner_radius_px:f})):d.write(f)},...e?{}:{length:d.length}})}function OR({persist:e}){let{siteWidth:t,setSiteWidth:n,sectionBackgroundWidth:o,setSectionBackgroundWidth:a,sectionContentWidth:s,setSectionContentWidth:r}=B(),i=hc(),l=lo("siteWidth",t??null,n,e);if(i!=="desktop")return null;let u=typeof t=="number"?t:l.shown(V.default),d=l.write,p=m=>{a(m),e({section_background_width:m},!0)},f=m=>{r(m),e({section_content_width:m},!0)};return $t(Sn,{children:[L(rb,{value:o??"full",changed:o!==null,detail:c("Full width"),onChange:p,onReset:()=>p(null),hint:ab}),L(ib,{mode:s??"content",px:u,min:V.min,max:V.max,changed:typeof t=="number"||s!==null,detail:`${c("Content width")} ${V.default}px`,onMode:f,onPx:m=>d(m),onReset:()=>{f(null),d(null)},hint:sb,length:l.length})]})}function PR({persist:e}){let{siteGutter:t,siteGutterPhone:n,setSiteGutter:o,setSiteGutterPhone:a,siteLengthUnits:s}=B(),r=nb(hc(),{gutter:t,phone:n,gutterUnit:s.siteGutterUnit}),i=r?.key==="site_gutter_phone",l=lo(nc("siteGutter",i?"mobile":"desktop"),r?.value??null,i?a:o,e);return r?L(ob,{value:r.value,onChange:l.write,unsetPx:r.unsetPx,restsOn:l.shown(r.unsetPx),bounds:r.bounds,length:l.length}):null}function kR({persist:e}){let{blockGap:t,blockGapPhone:n,setBlockGap:o,setBlockGapPhone:a,siteLengthUnits:s}=B(),r=Xg(hc(),{gap:t,phone:n}),i=r?.key==="block_gap_phone",l=r?.followsPx==null?null:{figure:r.followsPx,unit:F(s.blockGapUnit)},u=lo(nc("blockGap",i?"mobile":"desktop"),r?.value??null,i?a:o,e,l);return r?L(qg,{value:r.value,onChange:u.write,followsPx:u.rest,followsUnit:u.length.unit,length:u.length}):null}function IR({persist:e}){return $t(Sn,{children:[L(OR,{persist:e}),L(PR,{persist:e}),L(kR,{persist:e})]})}function AR(e){return{card_shadow:e}}function RR(e){return e===null?{shadow_color:null}:{shadow_color:bR(e)}}function NR(e){return{hover_effect:e}}function LR({persist:e}){let{cardShadow:t,setCardShadow:n,shadowColor:o,setShadowColor:a,hoverEffect:s,setHoverEffect:r}=B();return $t(Sn,{children:[L(Wg,{value:t,onChange:i=>{n(i),e(AR(i),!0)}}),L(Vg,{value:o,onChange:i=>{a(i),e(RR(i),i===null)}}),L(Zg,{value:s,onChange:i=>{r(i),e(NR(i),!0)}})]})}function DR(e){return{photography_grayscale:e}}function FR({persist:e}){let{photographyGrayscale:t,setPhotographyGrayscale:n}=B();return L(Qg,{value:t,onChange:o=>{n(o),e(DR(o),!0)}})}function BR({persist:e}){return L(Sn,{children:L(FR,{persist:e})})}function MR(e){return{share_button_on_posts:e}}function HR({persist:e}){let{shareButtonOnPosts:t,setShareButtonOnPosts:n}=B();return L(eb,{value:t,onChange:o=>{n(o),e(MR(o),!0)}})}function ZY(){let{websiteName:e}=B();return e?.trim()||Lu}function JY({themeFromDocument:e=!1,tokenRef:t,siteId:n,onNotify:o,tab:a,onTabChange:s,initialTab:r,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:u}=Fo({themeFromDocument:e,tokenRef:t,siteId:n,onResult:_=>{let S=gb(_);S&&o?.(S.msg,S.tone)}}),[d,p]=mc(r??Es[0].id),f=a!==void 0,m=f?a:d,b=f?s??(()=>{}):p,y=Es.find(_=>_.id===m)??Es[0];return $t(cR,{children:[L(GR,{activeId:y.id,onSelect:b}),$t("div",{id:pR(fc,y.id),className:yR,role:"tabpanel","aria-labelledby":dR(fc,y.id),children:[m===zb&&$t(Sn,{children:[L(CR,{themeFromDocument:e,persist:u}),!e&&L(LR,{persist:u}),!e&&L(IR,{persist:u}),!e&&L(BR,{persist:u}),!e&&L(HR,{persist:u}),L($R,{reveal:i,onRevealed:l})]}),m==="theme"&&L(SR,{themeFromDocument:e,persist:u}),m==="text"&&L(_R,{themeFromDocument:e,persist:u})]})]})}function $R({reveal:e,onRevealed:t}){let[n,o]=mc(!0),a=iR(t);return a.current=t,rR(()=>{if(!e)return;o(!0);let s=requestAnimationFrame(()=>{document.getElementById(Ub)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(s)},[e]),L(sR,{title:c("This page"),open:n,onToggle:o,id:Ub,children:L(UR,{})})}function UR(){let{fields:e,values:t,readOnly:n,onChange:o}=oR(),a=Object.fromEntries(Hb.filter(s=>s in e).map(s=>[s,e[s]]));return Object.keys(a).length===0?L(lR,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):L(aR,{fields:a,values:t,onChange:o,readOnly:n,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function GR({activeId:e,onSelect:t}){return L("div",{className:"es-insp-tabs",children:L(uR,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:fc,value:e,onChange:t,items:Es.map(n=>{let o=c(n.label);return{id:n.id,icon:n.icon,label:o}})})})}export{xe as a,eN as b,KR as c,P as d,jR as e,VR as f,c as g,xn as h,V as i,$T as j,Wr as k,KD as l,Dp as m,YD as n,ie as o,zr as p,Le as q,we as r,tt as s,qD as t,KT as u,ZD as v,Kr as w,JD as x,QD as y,eF as z,VT as A,tF as B,nF as C,oF as D,aF as E,Mp as F,sF as G,$p as H,rF as I,iF as J,Gp as K,zp as L,Wp as M,nE as N,oE as O,dF as P,fF as Q,mF as R,hF as S,gF as T,Uh as U,Nt as V,dO as W,sz as X,pO as Y,rz as Z,ne as _,iz as $,fO as aa,lz as ba,cz as ca,uz as da,dz as ea,pz as fa,fz as ga,hn as ha,mz as ia,hz as ja,ZE as ka,ui as la,pi as ma,_M as na,fi as oa,tx as pa,TM as qa,fa as ra,Ff as sa,ma as ta,nx as ua,ox as va,wM as wa,CM as xa,OM as ya,ax as za,PM as Aa,mi as Ba,kM as Ca,IM as Da,AM as Ea,RM as Fa,NM as Ga,LM as Ha,DM as Ia,FM as Ja,BM as Ka,sx as La,Lr as Ma,wp as Na,xT as Oa,iD as Pa,Cp as Qa,vT as Ra,lD as Sa,Op as Ta,wT as Ua,cD as Va,wG as Wa,qn as Xa,KC as Ya,ol as Za,dn as _a,sl as $a,rl as ab,CG as bb,OG as cb,PG as db,ll as eb,Ih as fb,kG as gb,De as hb,Jr as ib,lB as jb,Ct as kb,BG as lb,MG as mb,HG as nb,$G as ob,UG as pb,Yn as qb,Vi as rb,_C as sb,zi as tb,Yi as ub,ch as vb,Xi as wb,xC as xb,nG as yb,Da as zb,oG as Ab,vC as Bb,wC as Cb,aG as Db,CC as Eb,nh as Fb,sG as Gb,rG as Hb,iG as Ib,SF as Jb,rE as Kb,iE as Lb,_F as Mb,$e as Nb,Po as Ob,ju as Pb,i0 as Qb,l0 as Rb,Gu as Sb,_i as Tb,DH as Ub,FH as Vb,Qf as Wb,MH as Xb,HH as Yb,Gx as Zb,$H as _b,tm as $b,UH as ac,GH as bc,em as cc,nm as dc,zH as ec,Wn as fc,Ei as gc,WH as hc,KH as ic,jH as jc,VH as kc,$o as lc,ES as mc,Pd as nc,kd as oc,In as pc,wS as qc,Uo as rc,Nd as sc,VN as tc,YN as uc,pr as vc,XN as wc,Ld as xc,RS as yc,NS as zc,LS as Ac,t1 as Bc,n1 as Cc,fr as Dc,s1 as Ec,h1 as Fc,g1 as Gc,b1 as Hc,y1 as Ic,S1 as Jc,FS as Kc,BS as Lc,_1 as Mc,Zt as Nc,MS as Oc,$d as Pc,HS as Qc,T1 as Rc,$S as Sc,E1 as Tc,x1 as Uc,Od as Vc,Ho as Wc,Ko as Xc,Gd as Yc,zd as Zc,_r as _c,WS as $c,jo as ad,Et as bd,M1 as cd,qS as dd,ZS as ed,JS as fd,H1 as gd,$1 as hd,c_ as id,St as jd,U1 as kd,G1 as ld,T_ as md,z1 as nd,W1 as od,vr as pd,K1 as qd,wr as rd,P_ as sd,j1 as td,V1 as ud,Cr as vd,Y1 as wd,X1 as xd,q1 as yd,N_ as zd,Z1 as Ad,B_ as Bd,M_ as Cd,J1 as Dd,Q1 as Ed,eL as Fd,$_ as Gd,tL as Hd,nL as Id,z_ as Jd,oL as Kd,aL as Ld,fn as Md,fl as Nd,ml as Od,Lh as Pd,im as Qd,JH as Rd,lm as Sd,QH as Td,e$ as Ud,t$ as Vd,gi as Wd,GM as Xd,u2 as Yd,Ow as Zd,d2 as _d,Mi as $d,Hi as ae,p2 as be,f2 as ce,m2 as de,Aa as ee,h2 as fe,ko as ge,qt as he,vn as ie,Vs as je,wn as ke,d0 as le,p0 as me,f0 as ne,Zu as oe,Ju as pe,Qu as qe,m0 as re,ve as se,Ge as te,Mr as ue,ND as ve,ta as we,LD as xe,DD as ye,na as ze,FD as Ae,BD as Be,MD as Ce,x0 as De,On as Ee,v0 as Fe,mV as Ge,hV as He,co as Ie,xF as Je,vF as Ke,wF as Le,CF as Me,Kp as Ne,OF as Oe,PF as Pe,Hh as Qe,JG as Re,yl as Se,Sl as Te,QG as Ue,ez as Ve,W$ as We,st as Xe,OB as Ye,LE as Ze,ai as _e,$n as $e,PB as af,AB as bf,FE as cf,yf as df,RB as ef,HE as ff,UE as gf,ri as hf,LB as if,DB as jf,zE as kf,$B as lf,UB as mf,Un as nf,GB as of,Tf as pf,Hr as qf,eM as rf,tM as sf,Ef as tf,nM as uf,CT as vf,re as wf,dD as xf,OT as yf,PT as zf,hD as Af,kT as Bf,IT as Cf,gD as Df,AT as Ef,bD as Ff,yD as Gf,SD as Hf,_D as If,TD as Jf,ED as Kf,xD as Lf,vD as Mf,wD as Nf,CD as Of,OD as Pf,PD as Qf,$m as Rf,ZC as Sf,$a as Tf,RG as Uf,fB as Vf,jh as Wf,Qn as Xf,Be as Yf,Q as Zf,eo as _f,gn as $f,wz as ag,Cz as bg,Pz as cg,kz as dg,Iz as eg,Az as fg,Rz as gg,Lz as hg,Dz as ig,to as jg,Fz as kg,wO as lg,CO as mg,Yh as ng,Bz as og,xl as pg,Rp as qg,NF as rg,LF as sg,fE as tg,mE as ug,GF as vg,gE as wg,Jp as xg,zF as yg,WF as zg,KF as Ag,VF as Bg,ef as Cg,YF as Dg,XF as Eg,tB as Fg,nB as Gg,of as Hg,oB as Ig,lM as Jg,Cf as Kg,hM as Lg,Mf as Mg,Hf as Ng,zn as Og,Wf as Pg,YM as Qg,XM as Rg,ya as Sg,yi as Tg,Mx as Ug,EH as Vg,am as Wg,a$ as Xg,Ca as Yg,mm as Zg,Ry as _g,Se as $g,Pn as ah,N$ as bh,ki as ch,Ii as dh,F$ as eh,_m as fh,B$ as gh,M$ as hh,H$ as ih,wm as jh,Om as kh,oN as lh,aN as mh,md as nh,sN as oh,hd as ph,iN as qh,Fo as rh,bS as sh,kN as th,xd as uh,wU as vh,km as wh,Nm as xh,Lm as yh,Dm as zh,Fm as Ah,Bm as Bh,Mm as Ch,Di as Dh,fw as Eh,mw as Fh,Vn as Gh,Fi as Hh,Um as Ih,VU as Jh,gw as Kh,YU as Lh,XU as Mh,qU as Nh,zm as Oh,e2 as Ph,Sw as Qh,t2 as Rh,n2 as Sh,Tw as Th,xw as Uh,vw as Vh,ww as Wh,r2 as Xh,Cw as Yh,i2 as Zh,$i as _h,x2 as $h,Vm as ai,Aw as bi,w2 as ci,k2 as di,Ui as ei,Kw as fi,j2 as gi,DC as hi,gG as ii,BC as ji,bG as ki,yG as li,SG as mi,mn as ni,Ka as oi,VG as pi,YG as qi,XG as ri,OO as si,PO as ti,$z as ui,RO as vi,NO as wi,Uz as xi,Gz as yi,zz as zi,Wz as Ai,Kz as Bi,Jz as Ci,Qz as Di,eW as Ei,tW as Fi,nW as Gi,oW as Hi,aW as Ii,sW as Ji,rW as Ki,iW as Li,lW as Mi,qh as Ni,cW as Oi,uW as Pi,zO as Qi,WO as Ri,dg as Si,Bt as Ti,Z4 as Ui,J4 as Vi,Q4 as Wi,eK as Xi,tK as Yi,nK as Zi,Hl as _i,oK as $i,aK as aj,lK as bj,cK as cj,ZP as dj,uK as ej,ss as fj,$l as gj,bn as hj,Pg as ij,dK as jj,pK as kj,fK as lj,mK as mj,tk as nj,hK as oj,gK as pj,bK as qj,yK as rj,SK as sj,_K as tj,TK as uj,EK as vj,rs as wj,pe as xj,Pe as yj,kg as zj,cn as Aj,Ig as Bj,Ag as Cj,xK as Dj,vK as Ej,wK as Fj,Ok as Gj,CK as Hj,OK as Ij,PK as Jj,kK as Kj,IK as Lj,AK as Mj,RK as Nj,Z as Oj,Rk as Pj,NK as Qj,LK as Rj,Qa as Sj,DK as Tj,FK as Uj,BK as Vj,MK as Wj,HK as Xj,$K as Yj,ct as Zj,UK as _j,Jk as $j,GK as ak,zK as bk,WK as ck,KK as dk,jK as ek,$g as fk,VK as gk,YK as hk,XK as ik,Ug as jk,ZK as kk,JK as lk,cI as mk,QK as nk,ej as ok,tj as pk,nj as qk,oj as rk,jl as sk,Gg as tk,aj as uk,sj as vk,rj as wk,ij as xk,C$ as yk,O$ as zk,HV as Ak,$V as Bk,cc as Ck,aA as Dk,rb as Ek,ib as Fk,ec as Gk,bL as Hk,nn as Ik,yL as Jk,SL as Kk,_L as Lk,TL as Mk,Z_ as Nk,EL as Ok,xL as Pk,pp as Qk,bb as Rk,wb as Sk,wA as Tk,aV as Uk,PA as Vk,Ob as Wk,cV as Xk,uV as Yk,dV as Zk,RA as _k,pV as $k,Ss as al,_V as bl,WA as cl,rY as dl,Hb as el,iY as fl,lY as gl,cY as hl,uY as il,dY as jl,hp as kl,gp as ll,bp as ml,qY as nl,zb as ol,Es as pl,xR as ql,ZY as rl,JY as sl};
|
|
9
|
+
*${co.accent}*`,tagline:co.body},sc=xc.Footprint,_V={label:"Locations Map",fields:sc,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:To.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};var Ab={field:Ye,is:mo,default:""},ic={field:Gt,is:mt,default:mt},UA={field:Gt,is:"list",default:mt},GA={field:Gt,is:"map",default:mt},Rb={all:[ic,{field:"listPosition",in:["left","right"],default:"below"}]},Nb={any:[{all:[Ab,{not:GA}]},Rb]},zA={any:[{all:[ic,{field:"listPosition",is:"below",default:"below"}]},UA]},Ib={all:[Nb,{field:"search",is:!0,default:!1}]};Sc([kb,Vp]);async function lc(e){return Ca(e)?mm(e,t=>[t.address,t.city,t.country].map(n=>String(n??"").replace(/\*/g,"").trim()).filter(Boolean).join(", ")):e}var WA={fields:{_gContent:rc("Section"),sectionNumber:ss("Section number",Ss.sectionNumber),heading:$l("Heading",Ss.heading),tagline:$l("Body",Ss.tagline),_gOffices:rc("Offices"),[Ye]:wb("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:bn("Role"),city:bn("City"),country:bn("Region \xB7 country"),address:Pg("Address"),phone:bn("Phone"),group:bn("Group"),hq:ct("HQ",!1,ut(LA,{})),geocode:$g(Ug,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...sc,[Gt]:gn("Shows",ut(MA,{}),[{label:"Map and list",value:mt},{label:"Map only",value:"map"},{label:"List only",value:"list"}],mt),mapTheme:gn("Map theme",ut($A,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],To.mapTheme),_gList:rc("List"),listPosition:yn("desktop",le(gn("Position",ut(FA,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below"),ic)),listColumns:yn("desktop",le(gn("Columns",ut(NA,{}),[{label:"Auto",value:Ls},...Wc.map(e=>({label:String(e),value:String(e)}))],Ls),zA)),[Gc]:yn("desktop",le(gn("Map height",ut(DA,{}),[{label:"Fixed",value:Ns},{label:"Full height",value:zc}],Ns),Rb)),search:yn("desktop",le(ct("Search",!1,ut(HA,{})),Nb)),searchHint:yn("desktop",le(Hl(ss("Hint","Type a postcode or address")),Ib)),noMatchText:yn("desktop",le(Hl(ss("No match","No place found. Try another postcode.")),Ib)),showDistance:le(ct("Distance",!0,ut(BA,{})),Ab)},resolveData:async(e,t)=>{let n=t?.changed,o=e.props;if(n?.listPosition===!0||n?.[Gt]===!0||n?.[Ye]===!0){let i=Kc(o);i!==o&&(e={...e,props:i})}let a=e.props,s=a.offices??[],r=await lc(s);return r===s?e:{...e,props:{...a,offices:[...r]}}},resolveFields:(e,{fields:t})=>$c(Ob("Footprint",t,e.props,{hides:["offices"]}),e.props.headPlacement,Hc.Footprint.headRows)},Lb=WA.fields.offices;var _s=null;function HV(e){_s=e}function $V(){return!!(_s&&_s.state().lockHolder)}function cc(){return _s!==null}import{BUCKET_KEY as XA}from"efficient-easel/screen/lib/document/field-buckets";function qA(){return{type:"custom",render:({value:e,onChange:t})=>Ts(bb,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:c("Follows the site"),hint:c("Whether this page sits on the site's content column, or runs edge to edge."),onChange:n=>t(n)})}}var ZA=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],rY={pageBackground:Hg(),topSpace:Q("Top space",Ts(jA,{}),ZA,Nu),widthChoice:qA()},Hb=["pageBackground","topSpace","widthChoice"],JA="Record type",uc=new Map,Db=-1;function QA(e){Db!==ai()&&(uc.clear(),Db=ai());let t=oi(),n=t.some(a=>a.key===e)?"":e,o=uc.get(n);return o||(o=Q(JA,Ts(KA,{}),[...t.map(a=>({label:a.label,value:a.key})),...n?[{label:n,value:n}]:[]],st),uc.set(n,o)),o}var Fb=new WeakMap;function iY(e,t){if(!Un()||oi().length<2||la in e)return e;let n=QA($n(t)),o=Fb.get(e);if(o&&o.row===n)return o.fields;let a={[la]:n,...e};return Fb.set(e,{row:n,fields:a}),a}var eR="On: the site's Side space is counted once at each edge of every page. Off: as before.",tR=ct("Count side space once",!1,Ts(VA,{}),eR),dc={_gWebsite:YA("Website"),[wt]:tR,[nt]:Lb,[Fn]:zl},Bb=new WeakMap;function lY(e,t){if(t?.kind!==Hi||wt in e)return e;let n=Bb.get(e);return n||(n={...e,...dc},Bb.set(e,n)),n}function cY(e){if(!cc()||wt in e)return e;let t=Mb.get(e);if(!t){t={};let n=!1;for(let[o,a]of Object.entries(e))o===nR&&!n&&(Object.assign(t,dc),n=!0),t[o]=a;n||Object.assign(t,dc),Mb.set(e,t)}return t}var nR=XA.Animation,Mb=new WeakMap;function uY(e){return cc()?$b(e):e}function $b(e){let t=e?.props;if(!t||!Array.isArray(t[nt]))return e;let n=t[nt];return Ca(n)?lc(n).then(o=>({...e,props:{...t,[nt]:[...o]}})):e}function dY(e){return e?.props?.kind===Hi?$b(e):e}import{previewFrame as gR}from"efficient-easel/screen/lib/document/preview-dom";import{pictureShadowColor as bR}from"efficient-easel/screen/lib/document/shadow-values";var fc="sf-site-styles",yR="sf-site-styles-tabpanel",qY="text",zb="basics",Ub="this-page-group",Es=[{id:zb,label:"Basics",icon:L(mR,{})},{id:"theme",label:"Theme",icon:L(fR,{})},{id:"text",label:"Text",icon:L(hR,{})}];function SR({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=Gb(u=>u),{theme:a,setTheme:s}=B(),r=n.data,i=r.root?.props??{},l=u=>{if(e){let d={...i,theme:u};o({type:"replaceRoot",root:{...r.root,props:d},recordHistory:!0})}else s(u);t({selected_preset:u.selected,theme_presets:u.themes})};return L(Ep,{value:e?i.theme:a,onChange:l})}function _R({themeFromDocument:e,persist:t}){let[n,o]=mc(null),{theme:a,setFonts:s,setSizes:r,setHeadingTypography:i}=B(),l=bp({themeFromDocument:e,persist:t}),{old:u,saved:d,writeRoot:p}=l,f=l.fonts,m=l.sizes,b=l.typography,y=xR,_=C=>l.write(C),S=hp(a),E=gp(a),x=C=>{let D={...f,accent:C};e?p({fonts:D}):s(D),t({accent_font:C})},v=C=>{r({...m,accent:C}),t({accent_size_px:C})},w=C=>{let D={...b,weightStrong:C};e?p({headingTypography:D}):i(D),t({heading_weight_strong:C})},R=C=>{let D={...b,italicStrong:C};e?p({headingTypography:D}):i(D),t({accent_italic:C})};return $t(Sn,{children:[L(pp,{saved:d,old:u,colours:S,colourNameOf:E,sizeOf:y,onChange:_,openId:n===pc?null:n,onOpenChange:o,withoutSize:e}),L(ub,{font:f.accent,size:m.accent,weight:b.weightStrong,italic:b.italicStrong,headingWeight:b.weight,open:n===pc,onOpenChange:C=>o(C?pc:null),onChange:C=>{C.key==="font"?x(C.value):C.key==="size"?v(C.value):C.key==="weight"?w(C.value):R(C.value)},withoutSize:e})]})}var pc="accent",TR={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},ER={heading:32,body:14};function xR(e){return e.values.size??wR(j(TR,e.id)??"body")??ER[e.kind]}var vR={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function wR(e){if(typeof document>"u")return null;let t=(gR()?.contentDocument??document).querySelector(vR[e]);if(!t)return null;let n=parseFloat(getComputedStyle(t).fontSize);return Number.isFinite(n)?n:null}function CR({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=Gb(f=>f),{cornerRadiusPx:a,setCornerRadiusPx:s}=B(),r=n.data,i=r.root?.props??{},l=i.cornerRadiusPx===void 0?su[ou(i.cornerStyle)]:Ie(i.cornerRadiusPx),u=e?l:a,d=lo("cornerRadius",a,s,t),p=f=>o({type:"replaceRoot",root:{...r.root,props:{...i,...f}},recordHistory:!0});return L(zg,{value:u,onChange:f=>{e?(p({cornerRadiusPx:f}),t({corner_radius_px:f})):d.write(f)},...e?{}:{length:d.length}})}function OR({persist:e}){let{siteWidth:t,setSiteWidth:n,sectionBackgroundWidth:o,setSectionBackgroundWidth:a,sectionContentWidth:s,setSectionContentWidth:r}=B(),i=hc(),l=lo("siteWidth",t??null,n,e);if(i!=="desktop")return null;let u=typeof t=="number"?t:l.shown(V.default),d=l.write,p=m=>{a(m),e({section_background_width:m},!0)},f=m=>{r(m),e({section_content_width:m},!0)};return $t(Sn,{children:[L(rb,{value:o??"full",changed:o!==null,detail:c("Full width"),onChange:p,onReset:()=>p(null),hint:ab}),L(ib,{mode:s??"content",px:u,min:V.min,max:V.max,changed:typeof t=="number"||s!==null,detail:`${c("Content width")} ${V.default}px`,onMode:f,onPx:m=>d(m),onReset:()=>{f(null),d(null)},hint:sb,length:l.length})]})}function PR({persist:e}){let{siteGutter:t,siteGutterPhone:n,setSiteGutter:o,setSiteGutterPhone:a,siteLengthUnits:s}=B(),r=nb(hc(),{gutter:t,phone:n,gutterUnit:s.siteGutterUnit}),i=r?.key==="site_gutter_phone",l=lo(nc("siteGutter",i?"mobile":"desktop"),r?.value??null,i?a:o,e);return r?L(ob,{value:r.value,onChange:l.write,unsetPx:r.unsetPx,restsOn:l.shown(r.unsetPx),bounds:r.bounds,length:l.length}):null}function kR({persist:e}){let{blockGap:t,blockGapPhone:n,setBlockGap:o,setBlockGapPhone:a,siteLengthUnits:s}=B(),r=Xg(hc(),{gap:t,phone:n}),i=r?.key==="block_gap_phone",l=r?.followsPx==null?null:{figure:r.followsPx,unit:F(s.blockGapUnit)},u=lo(nc("blockGap",i?"mobile":"desktop"),r?.value??null,i?a:o,e,l);return r?L(qg,{value:r.value,onChange:u.write,followsPx:u.rest,followsUnit:u.length.unit,length:u.length}):null}function IR({persist:e}){return $t(Sn,{children:[L(OR,{persist:e}),L(PR,{persist:e}),L(kR,{persist:e})]})}function AR(e){return{card_shadow:e}}function RR(e){return e===null?{shadow_color:null}:{shadow_color:bR(e)}}function NR(e){return{hover_effect:e}}function LR({persist:e}){let{cardShadow:t,setCardShadow:n,shadowColor:o,setShadowColor:a,hoverEffect:s,setHoverEffect:r}=B();return $t(Sn,{children:[L(Wg,{value:t,onChange:i=>{n(i),e(AR(i),!0)}}),L(Vg,{value:o,onChange:i=>{a(i),e(RR(i),i===null)}}),L(Zg,{value:s,onChange:i=>{r(i),e(NR(i),!0)}})]})}function DR(e){return{photography_grayscale:e}}function FR({persist:e}){let{photographyGrayscale:t,setPhotographyGrayscale:n}=B();return L(Qg,{value:t,onChange:o=>{n(o),e(DR(o),!0)}})}function BR({persist:e}){return L(Sn,{children:L(FR,{persist:e})})}function MR(e){return{share_button_on_posts:e}}function HR({persist:e}){let{shareButtonOnPosts:t,setShareButtonOnPosts:n}=B();return L(eb,{value:t,onChange:o=>{n(o),e(MR(o),!0)}})}function ZY(){let{websiteName:e}=B();return e?.trim()||Lu}function JY({themeFromDocument:e=!1,tokenRef:t,siteId:n,onNotify:o,tab:a,onTabChange:s,initialTab:r,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:u}=Fo({themeFromDocument:e,tokenRef:t,siteId:n,onResult:_=>{let S=gb(_);S&&o?.(S.msg,S.tone)}}),[d,p]=mc(r??Es[0].id),f=a!==void 0,m=f?a:d,b=f?s??(()=>{}):p,y=Es.find(_=>_.id===m)??Es[0];return $t(cR,{children:[L(GR,{activeId:y.id,onSelect:b}),$t("div",{id:pR(fc,y.id),className:yR,role:"tabpanel","aria-labelledby":dR(fc,y.id),children:[m===zb&&$t(Sn,{children:[L(CR,{themeFromDocument:e,persist:u}),!e&&L(LR,{persist:u}),!e&&L(IR,{persist:u}),!e&&L(BR,{persist:u}),!e&&L(HR,{persist:u}),L($R,{reveal:i,onRevealed:l})]}),m==="theme"&&L(SR,{themeFromDocument:e,persist:u}),m==="text"&&L(_R,{themeFromDocument:e,persist:u})]})]})}function $R({reveal:e,onRevealed:t}){let[n,o]=mc(!0),a=iR(t);return a.current=t,rR(()=>{if(!e)return;o(!0);let s=requestAnimationFrame(()=>{document.getElementById(Ub)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(s)},[e]),L(sR,{title:c("This page"),open:n,onToggle:o,id:Ub,children:L(UR,{})})}function UR(){let{fields:e,values:t,readOnly:n,onChange:o}=oR(),a=Object.fromEntries(Hb.filter(s=>s in e).map(s=>[s,e[s]]));return Object.keys(a).length===0?L(lR,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):L(aR,{fields:a,values:t,onChange:o,readOnly:n,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function GR({activeId:e,onSelect:t}){return L("div",{className:"es-insp-tabs",children:L(uR,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:fc,value:e,onChange:t,items:Es.map(n=>{let o=c(n.label);return{id:n.id,icon:n.icon,label:o}})})})}export{xe as a,eN as b,KR as c,P as d,jR as e,VR as f,c as g,xn as h,V as i,$T as j,Wr as k,KD as l,Dp as m,YD as n,ie as o,zr as p,Le as q,we as r,tt as s,qD as t,KT as u,ZD as v,Kr as w,JD as x,QD as y,eF as z,VT as A,tF as B,nF as C,oF as D,aF as E,Mp as F,sF as G,$p as H,rF as I,iF as J,Gp as K,zp as L,Wp as M,nE as N,oE as O,dF as P,fF as Q,mF as R,hF as S,gF as T,Uh as U,Nt as V,dO as W,sz as X,pO as Y,rz as Z,ne as _,iz as $,fO as aa,lz as ba,cz as ca,uz as da,dz as ea,pz as fa,fz as ga,hn as ha,mz as ia,hz as ja,ZE as ka,ui as la,pi as ma,_M as na,fi as oa,tx as pa,TM as qa,fa as ra,Ff as sa,ma as ta,nx as ua,ox as va,wM as wa,CM as xa,OM as ya,ax as za,PM as Aa,mi as Ba,kM as Ca,IM as Da,AM as Ea,RM as Fa,NM as Ga,LM as Ha,DM as Ia,FM as Ja,BM as Ka,sx as La,Lr as Ma,wp as Na,xT as Oa,iD as Pa,Cp as Qa,vT as Ra,lD as Sa,Op as Ta,wT as Ua,cD as Va,wG as Wa,qn as Xa,KC as Ya,ol as Za,dn as _a,sl as $a,rl as ab,CG as bb,OG as cb,PG as db,ll as eb,Ih as fb,kG as gb,De as hb,Jr as ib,lB as jb,Ct as kb,BG as lb,MG as mb,HG as nb,$G as ob,UG as pb,Yn as qb,Vi as rb,_C as sb,zi as tb,Yi as ub,ch as vb,Xi as wb,xC as xb,nG as yb,Da as zb,oG as Ab,vC as Bb,wC as Cb,aG as Db,CC as Eb,nh as Fb,sG as Gb,rG as Hb,iG as Ib,SF as Jb,rE as Kb,iE as Lb,_F as Mb,$e as Nb,Po as Ob,ju as Pb,i0 as Qb,l0 as Rb,Gu as Sb,_i as Tb,DH as Ub,FH as Vb,Qf as Wb,MH as Xb,HH as Yb,Gx as Zb,$H as _b,tm as $b,UH as ac,GH as bc,em as cc,nm as dc,zH as ec,Wn as fc,Ei as gc,WH as hc,KH as ic,jH as jc,VH as kc,$o as lc,ES as mc,Pd as nc,kd as oc,In as pc,wS as qc,Uo as rc,Nd as sc,VN as tc,YN as uc,pr as vc,XN as wc,Ld as xc,RS as yc,NS as zc,LS as Ac,t1 as Bc,n1 as Cc,fr as Dc,s1 as Ec,h1 as Fc,g1 as Gc,b1 as Hc,y1 as Ic,S1 as Jc,FS as Kc,BS as Lc,_1 as Mc,Zt as Nc,MS as Oc,$d as Pc,HS as Qc,T1 as Rc,$S as Sc,E1 as Tc,x1 as Uc,Od as Vc,Ho as Wc,Ko as Xc,Gd as Yc,zd as Zc,_r as _c,WS as $c,jo as ad,Et as bd,M1 as cd,qS as dd,ZS as ed,JS as fd,H1 as gd,$1 as hd,c_ as id,St as jd,U1 as kd,G1 as ld,T_ as md,z1 as nd,W1 as od,vr as pd,K1 as qd,wr as rd,P_ as sd,j1 as td,V1 as ud,Cr as vd,Y1 as wd,X1 as xd,q1 as yd,N_ as zd,Z1 as Ad,B_ as Bd,M_ as Cd,J1 as Dd,Q1 as Ed,eL as Fd,$_ as Gd,tL as Hd,nL as Id,z_ as Jd,oL as Kd,aL as Ld,fn as Md,fl as Nd,ml as Od,Lh as Pd,im as Qd,JH as Rd,lm as Sd,QH as Td,e$ as Ud,t$ as Vd,gi as Wd,GM as Xd,u2 as Yd,Ow as Zd,d2 as _d,Mi as $d,Hi as ae,p2 as be,f2 as ce,m2 as de,Aa as ee,h2 as fe,ko as ge,qt as he,vn as ie,Vs as je,wn as ke,d0 as le,p0 as me,f0 as ne,Zu as oe,Ju as pe,Qu as qe,m0 as re,ve as se,Ge as te,Mr as ue,ND as ve,ta as we,LD as xe,DD as ye,na as ze,FD as Ae,BD as Be,MD as Ce,x0 as De,On as Ee,v0 as Fe,mV as Ge,hV as He,co as Ie,xF as Je,vF as Ke,wF as Le,CF as Me,Kp as Ne,OF as Oe,PF as Pe,Hh as Qe,JG as Re,yl as Se,Sl as Te,QG as Ue,ez as Ve,W$ as We,st as Xe,OB as Ye,LE as Ze,ai as _e,$n as $e,PB as af,AB as bf,FE as cf,yf as df,RB as ef,HE as ff,UE as gf,ri as hf,LB as if,DB as jf,zE as kf,$B as lf,UB as mf,Un as nf,GB as of,Tf as pf,Hr as qf,eM as rf,tM as sf,Ef as tf,nM as uf,CT as vf,re as wf,dD as xf,OT as yf,PT as zf,hD as Af,kT as Bf,IT as Cf,gD as Df,AT as Ef,bD as Ff,yD as Gf,SD as Hf,_D as If,TD as Jf,ED as Kf,xD as Lf,vD as Mf,wD as Nf,CD as Of,OD as Pf,PD as Qf,$m as Rf,ZC as Sf,$a as Tf,RG as Uf,fB as Vf,jh as Wf,Qn as Xf,Be as Yf,Q as Zf,eo as _f,gn as $f,wz as ag,Cz as bg,Pz as cg,kz as dg,Iz as eg,Az as fg,Rz as gg,Lz as hg,Dz as ig,to as jg,Fz as kg,wO as lg,CO as mg,Yh as ng,Bz as og,xl as pg,Rp as qg,NF as rg,LF as sg,fE as tg,mE as ug,GF as vg,gE as wg,Jp as xg,zF as yg,WF as zg,KF as Ag,VF as Bg,ef as Cg,YF as Dg,XF as Eg,tB as Fg,nB as Gg,of as Hg,oB as Ig,lM as Jg,Cf as Kg,hM as Lg,Mf as Mg,Hf as Ng,Gf as Og,zn as Pg,Wf as Qg,YM as Rg,XM as Sg,ya as Tg,yi as Ug,Mx as Vg,EH as Wg,am as Xg,a$ as Yg,Ca as Zg,mm as _g,Ry as $g,Se as ah,Pn as bh,N$ as ch,ki as dh,Ii as eh,F$ as fh,_m as gh,B$ as hh,M$ as ih,H$ as jh,wm as kh,Om as lh,oN as mh,aN as nh,md as oh,sN as ph,hd as qh,iN as rh,Fo as sh,bS as th,kN as uh,xd as vh,wU as wh,km as xh,Nm as yh,Lm as zh,Dm as Ah,Fm as Bh,Bm as Ch,Mm as Dh,Di as Eh,fw as Fh,mw as Gh,Vn as Hh,Fi as Ih,Um as Jh,VU as Kh,gw as Lh,YU as Mh,XU as Nh,qU as Oh,zm as Ph,e2 as Qh,Sw as Rh,t2 as Sh,n2 as Th,Tw as Uh,xw as Vh,vw as Wh,ww as Xh,r2 as Yh,Cw as Zh,i2 as _h,$i as $h,x2 as ai,Vm as bi,Aw as ci,w2 as di,k2 as ei,Ui as fi,Kw as gi,j2 as hi,DC as ii,gG as ji,BC as ki,bG as li,yG as mi,SG as ni,mn as oi,Ka as pi,VG as qi,YG as ri,XG as si,OO as ti,PO as ui,$z as vi,RO as wi,NO as xi,Uz as yi,Gz as zi,zz as Ai,Wz as Bi,Kz as Ci,Jz as Di,Qz as Ei,eW as Fi,tW as Gi,nW as Hi,oW as Ii,aW as Ji,sW as Ki,rW as Li,iW as Mi,lW as Ni,qh as Oi,cW as Pi,uW as Qi,zO as Ri,WO as Si,dg as Ti,Bt as Ui,Z4 as Vi,J4 as Wi,Q4 as Xi,eK as Yi,tK as Zi,nK as _i,Hl as $i,oK as aj,aK as bj,lK as cj,cK as dj,ZP as ej,uK as fj,ss as gj,$l as hj,bn as ij,Pg as jj,dK as kj,pK as lj,fK as mj,mK as nj,tk as oj,hK as pj,gK as qj,bK as rj,yK as sj,SK as tj,_K as uj,TK as vj,EK as wj,rs as xj,pe as yj,Pe as zj,kg as Aj,cn as Bj,Ig as Cj,Ag as Dj,xK as Ej,vK as Fj,wK as Gj,Ok as Hj,CK as Ij,OK as Jj,PK as Kj,kK as Lj,IK as Mj,AK as Nj,RK as Oj,Z as Pj,Rk as Qj,NK as Rj,LK as Sj,Qa as Tj,DK as Uj,FK as Vj,BK as Wj,MK as Xj,HK as Yj,$K as Zj,ct as _j,UK as $j,Jk as ak,GK as bk,zK as ck,WK as dk,KK as ek,jK as fk,$g as gk,VK as hk,YK as ik,XK as jk,Ug as kk,ZK as lk,JK as mk,cI as nk,QK as ok,ej as pk,tj as qk,nj as rk,oj as sk,jl as tk,Gg as uk,aj as vk,sj as wk,rj as xk,ij as yk,C$ as zk,O$ as Ak,HV as Bk,$V as Ck,cc as Dk,aA as Ek,rb as Fk,ib as Gk,ec as Hk,bL as Ik,nn as Jk,yL as Kk,SL as Lk,_L as Mk,TL as Nk,Z_ as Ok,EL as Pk,xL as Qk,pp as Rk,bb as Sk,wb as Tk,wA as Uk,aV as Vk,PA as Wk,Ob as Xk,cV as Yk,uV as Zk,dV as _k,RA as $k,pV as al,Ss as bl,_V as cl,WA as dl,rY as el,Hb as fl,iY as gl,lY as hl,cY as il,uY as jl,dY as kl,hp as ll,gp as ml,bp as nl,qY as ol,zb as pl,Es as ql,xR as rl,ZY as sl,JY as tl};
|