efficient-storefront-blocks 0.95.0 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/chunks/{EditorPreviewCheckout-3F3CP5MR.js → EditorPreviewCheckout-BXTY7X47.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-HN7TFLUJ.js → SiteEditorProvider-JF3MS6J7.js} +1 -1
- package/dist/chunks/{chunk-CYLLSHDF.js → chunk-KJQS4BOV.js} +1 -1
- package/dist/chunks/chunk-QNBU3FGY.js +1 -0
- package/dist/chunks/{chunk-WLMM7L6N.js → chunk-YCB5WS3U.js} +1 -1
- package/dist/chunks/chunk-Z2TVM6MN.js +389 -0
- package/dist/chunks/{fitment-data-Z62WUQGC.js → fitment-data-KWJP5ZQB.js} +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/config.d.ts +1 -0
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +5 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +31 -31
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +11 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -2
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/lib/content/booking-card-seed.d.ts +4 -0
- package/dist/render/lib/content/booking-card-seed.js +1 -1
- package/dist/render/lib/content/contact-card-seed.d.ts +4 -0
- package/dist/render/lib/content/contact-card-seed.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/render-config.d.ts +1 -0
- package/dist/render/lib/document/render-config.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-listing.d.ts +2 -0
- package/dist/render/lib/document/section-to-box-rows-listing.js +1 -0
- package/dist/words.d.ts +11 -0
- package/dist/words.js +4 -4
- package/package.json +4 -3
- package/dist/chunks/chunk-7SMQDDLZ.js +0 -1
- package/dist/chunks/chunk-SUKEQRMP.js +0 -389
- /package/dist/chunks/{chunk-GW5M2ATK.js → chunk-KNUGQTUV.js} +0 -0
- /package/dist/chunks/{chunk-SUKEQRMP.js.LEGAL.txt → chunk-Z2TVM6MN.js.LEGAL.txt} +0 -0
package/dist/links.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var h={bold:{open:"**",close:"**",placeholder:"bold text"},italic:{open:"_",close:"_",placeholder:"italic text"},strike:{open:"~~",close:"~~",placeholder:"struck out"},code:{open:"`",close:"`",placeholder:"code"},highlight:{open:"==",close:"==",placeholder:"highlighted text"},quiet:{open:"^^",close:"^^",placeholder:"quiet text"},underline:{open:"[",close:"]{underline}",placeholder:"underlined text"},sup:{open:"[",close:"]{sup}",placeholder:"superscript"},sub:{open:"[",close:"]{sub}",placeholder:"subscript"}};var ue=["main","text","background","muted"],en=[...ue,"surface"];var nn={bold:h.bold.placeholder,italic:h.italic.placeholder,strike:h.strike.placeholder,code:h.code.placeholder,highlight:h.highlight.placeholder,quiet:h.quiet.placeholder,link:"link text",underline:h.underline.placeholder,sup:h.sup.placeholder,sub:h.sub.placeholder,color:"colored text",style:"styled text"};var ce=[{style:"bold",label:"B",name:"Strong",title:"Strong \xB7 **words** \xB7 \u2318B",shortcut:"b"},{style:"italic",label:"I",name:"Italic",title:"Italic \xB7 _words_ \xB7 \u2318I",shortcut:"i"},{style:"strike",label:"S",name:"Strikethrough",title:"Strikethrough \xB7 ~~words~~"},{style:"highlight",label:"\u25C6",name:"Emphasis",title:"Emphasis \xB7 ==words=="},{style:"quiet",label:"a",name:"Quiet",title:"Quiet \xB7 ^^words^^"},{style:"code",label:"\u2039\u203A",name:"Code",title:"Code"},{style:"link",label:"\u{1F517}",name:"Link",title:"Link \xB7 [words](https://\u2026) \xB7 \u2318K",shortcut:"k"},{style:"bullet",label:"\u2022",name:"Bulleted list",title:"Bulleted list"},{style:"number",label:"1.",name:"Numbered list",title:"Numbered list"},{style:"quote",label:"\u275D",name:"Quote",title:"Quote"},{style:"clear",label:"T\xD7",name:"Clear marks",title:"Clear marks \xB7 \u2318\u21E7X",shortcut:"shift+x"}];var F=[{open:"**",close:"**",kind:"bold"},{open:"==",close:"==",kind:"highlight"},{open:"~~",close:"~~",kind:"strike"},{open:"_",close:"_",kind:"italic",wordBoundary:!0},{open:"^^",close:"^^",kind:"quiet"},{open:"@@",close:"@@",kind:"highlight"},{open:"++",close:"++",kind:"bold",wordStart:!0}],pe=["highlight","quiet"],tn=ce.map(e=>e.style).filter(e=>F.some(n=>n.kind===e)).filter(e=>!pe.includes(e)),rn=[...F,{open:"*",close:"*",kind:"accent"}],on=[...F,{open:"*",close:"*",kind:"accent"},{open:"#",close:"#",kind:"bold",notBefore:"0123456789"},{open:"[",close:"]",kind:"italic",notBefore:"(",notBeforeBlock:!0}];var sn=["http","https","mailto","tel"];function $(e){if(e===""||/[\s\u0000-\u001f\u007f]/.test(e))return!1;let n=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(e);return!n||sn.includes(n[1].toLowerCase())}var de=["width","profile","rim"];var ln=/^\s*(\d{2,3})\s*\/\s*(\d{2,3})\s*[A-Za-z]*\s*(\d{2}(?:\.\d+)?)\s*$/,an={width:[100,500],profile:[20,100],rim:[10,30]};function B(e){let n=ln.exec(e??"");if(!n)return null;let t={width:Number(n[1]),profile:Number(n[2]),rim:Number(n[3])};return de.every(o=>{let[i,a]=an[o];return t[o]>=i&&t[o]<=a})?t:null}function _(e){if(e.width==null)return"";if(e.profile==null)return String(e.width);let n=`${e.width}/${e.profile}`;return e.rim==null?n:`${n} R${e.rim}`}function fe(e){return[_({width:e.width}),_({width:e.width,profile:e.profile}),_(e)]}var k=["alloy-wheel","tyre"],me=["alloy-wheel"],R={"alloy-wheel":"Alloy wheels",tyre:"Tyres"};var yt=k.map(e=>({value:e,label:R[e]}));function O(e){return e==null?[...me]:Array.isArray(e)?k.filter(n=>e.includes(n)):[...me]}var m=e=>e;function d(e){return m(e).kind==="tyre"?"tyre":"alloy-wheel"}function W(e){return m(e).brand??""}function ge(e){return m(e).prices??void 0}function he(e){return m(e).inStock!==!1}function ye(e){let n=m(e),t=d(e)==="tyre"?n.rimDiameters:n.sizes;return Array.isArray(t)?t.filter(r=>typeof r=="number"&&Number.isFinite(r)):[]}function G(e){return d(e)==="tyre"?[]:(m(e).finishes??[]).filter(n=>typeof n?.family=="string").map(n=>({family:n.family,color:n.color??null}))}function Pe(e){return G(e).map(n=>n.family)}function H(e){if(d(e)==="tyre")return[];let n=m(e);return Array.isArray(n.categories)?n.categories:n.process?[n.process]:[]}function Se(e){return d(e)==="tyre"?[]:m(e).spec?.pcds??[]}function be(e){return d(e)!=="tyre"?[]:m(e).tyreTypes??[]}function ke(e){return d(e)!=="tyre"?[]:m(e).speedRatings??[]}function xe(e){if(d(e)!=="tyre")return[];let n=m(e).sizes;return Array.isArray(n)?n.map(t=>B(typeof t=="string"?t:null)).filter(t=>t!==null):[]}var Y=e=>typeof e=="string"&&e?e:void 0;var we=null;function Te(e,n){return n?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>Object.prototype.hasOwnProperty.call(n,r)?String(n[r]):t):e}function y(e,n){let t=we?we[e]:void 0;if(typeof t=="function"){try{let r=Y(t(n??{}));if(r)return r}catch{}return Te(e,n)}return Te(Y(t)??e,n)}function q(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var E=(e,n,t,r)=>({default:e,min:n,max:t,step:r}),wt=E(30,0,100,10),Tt=E(0,0,100,5),Lt=E(100,0,100,5),Ft=E(2,0,4,.5);function Le(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Fe="homepage";var A=[{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 I(e){return e.offersCommerce&&e.offersService?A:A.filter(n=>!n.needs||(n.needs==="commerce"?e.offersCommerce:e.offersService))}var j="#popup:";function _e(e){return`${j}${e}`}function Re(e){return e.startsWith(j)&&e.slice(j.length).trim()||null}function P(e){return e===Fe?"/":`/${e}`}function N(e){return`/journal/${e}`}function C(e){return`/wheels/${e}`}function v(e,n){return`${P(e)}#${n}`}function K(...e){let n=new Set,t=[];for(let r of e)for(let o of r?.content??[]){let i=Le(o?.props?.anchor);if(!i)continue;let a=q(i);!a||n.has(a)||(n.add(a),t.push({slug:a,name:i}))}return t}function Oe(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}var un=()=>({choosePage:y("Choose a page"),chooseSection:y("Choose a section"),noSections:y("No section anchors yet"),sectionHint:y("Jumps to a section on that page."),choosePost:y("Choose a post"),chooseProduct:y("Choose a product"),choosePopup:y("Choose a popup")});function D(e,n,t){if(!e)return"page";if(Re(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(Oe(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||n.includes(r))return"anchor"}return e==="/"||n.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function Ee(e,n){let t=un(),r=e.pages.map(s=>({value:P(s.slug),label:s.title})),o=n?.pageOptions?n.pageOptions(r):r,i=o.map(s=>s.value),a=e.pages.map(s=>({label:s.title,options:K(...s.docs).map(u=>({value:v(s.slug,u.slug),label:u.name}))})).filter(s=>s.options.length>0),p=s=>{switch(s){case"page":return{type:"select",options:o,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:a,placeholder:a.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:N(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:_e(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=I(e.offers).map(s=>({value:s.value,label:y(s.label),target:p(s.value),...s.value==="anchor"?{hint:t.sectionHint}:{},...s.value==="blog"||s.value==="product"||s.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!n)return{kinds:l,rules:{kindOf:s=>D(s,i),targetOf:s=>s,readFilter:()=>null,withFilter:s=>s}};let c=s=>{let u=n.withFilter(s,null);return n.listingPaths.includes(u)?u:s};return{kinds:l,rules:{kindOf:s=>D(s,i,{listingPaths:n.listingPaths,targetOf:c}),targetOf:c,readFilter:n.readFilter,withFilter:n.withFilter},filtersFor:s=>n.listingPaths.includes(s)?n.filtersFor(s):null}}var Ae=Object.freeze([]);function V(e,n){return e.length===0?e:e.filter(t=>t.kind===void 0||t.kind===n)}function Ie(e,n){let t=n==="filter"?"filterOrder":"cardOrder",r=new Map;for(let o of e){let i=o[t];if(typeof i!="number"||!Number.isFinite(i))continue;let a=r.get(o.fieldKey);(a===void 0||i<a)&&r.set(o.fieldKey,i)}return o=>o?r.get(o):void 0}function Ne(e,n,t,r){let o=new Map;for(let l of t){let c=l[r];typeof c=="number"&&o.set(l.fieldKey,c)}if(o.size===0)return e;let i=[],a=[];e.forEach((l,c)=>{let s=n(l);s&&(i.push(c),a.push({item:l,index:c,order:o.get(s)}))}),a.sort((l,c)=>l.order!==void 0&&c.order!==void 0?l.order-c.order||l.index-c.index:l.order!==void 0?-1:c.order!==void 0?1:l.index-c.index);let p=[...e];return i.forEach((l,c)=>{p[l]=a[c].item}),p.every((l,c)=>l===e[c])?e:p}function Ce(e){return pn(e,"filter")}var cn="collection";function Z(e,n){return{tyreSizes:{},brands:{"alloy-wheel":"brand",tyre:"brand"},finishes:{"alloy-wheel":"wheel_finish_ref"},diameters:{"alloy-wheel":"diameter",tyre:"rim_diameter"},collections:{"alloy-wheel":cn},pcds:{"alloy-wheel":"pcd"},tyreTypes:{tyre:"tire_type"},speedRatings:{tyre:"speed_rating"}}[e]?.[n]}function pn(e,n){let t=new Set(e.filter(r=>r[n]===!1).map(r=>r.fieldKey));return r=>!r||!t.has(r)}var Q={inStock:"In stock",outOfStock:"Out of stock",notInStockHere:"Not in stock here"};function dn(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function ve(e,n){let t=e?.[n];return dn(t)?t:null}function Ke(e,n,t,r){if(t==null&&r==null)return!0;let o=ve(e,n);return!(o===null||t!=null&&o<t||r!=null&&o>r)}function De(e){let n=e.spec?.lugs;return typeof n=="number"?n:null}var fn={recommended:"Recommended","price-asc":"Price \xB7 low to high","price-desc":"Price \xB7 high to low",new:"Newest",name:"Name A\u2013Z"},cr=Object.keys(fn);var X=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],J={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},mn={diameters:"tyreSizes"};function gn(e){if(e.length===0)return[];let n=X.filter(t=>e.every(r=>J[t].includes(r)));return n.filter(t=>{let r=mn[t];return!r||!n.includes(r)})}function hn(e){let n=new Set;for(let t of e)n.add(d(t));return[...n]}var ee={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function Me(e,n,t,r=null,o="fail"){let i=d(e),a=p=>o==="fail"||(p==="lugs"?i==="alloy-wheel":J[p].includes(i));if(r!=="kind"&&n.kind&&i!==n.kind)return!1;for(let p of X){if(r===p)continue;let l=n[p];if(l.length===0||!a(p))continue;let c=l.map(String);if(!Ue(e,p).some(s=>c.includes(s)))return!1}if(r!=="lugs"&&n.lugs&&n.lugs.length>0&&a("lugs")){let p=De(e);if(p===null||!n.lugs.includes(p))return!1}return!(r!=="price"&&!Ke(ge(e),t,n.priceMin??null,n.priceMax)||r!=="inStock"&&n.inStockOnly&&!he(e))}var yn={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size \xB7 diameter",collections:"Collection",pcds:"PCD \xB7 fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function Ue(e,n){switch(n){case"tyreSizes":return[...new Set(xe(e).flatMap(fe))];case"brands":return W(e)?[W(e)]:[];case"finishes":return Pe(e);case"diameters":return ye(e).map(String);case"collections":return H(e);case"pcds":return Se(e);case"tyreTypes":return be(e);case"speedRatings":return ke(e)}}function Pn(e){let n=new Map;for(let t of e)for(let r of G(t))r.color&&!n.has(r.family)&&n.set(r.family,r.color);return n}function ze(e,n,t,r=hn(e),o=Ae,i="fail"){let a=u=>bn(u,r,o),p=Pn(e),c=(i==="pass"?X.filter(u=>r.some(b=>J[u].includes(b))):gn(r)).filter(u=>u!=="tyreSizes").filter(a).map(u=>{let b=n[u].map(String),ae=new Set,z=new Map,L=new Map;for(let f of e){let S=Ue(f,u);for(let g of S)ae.add(g);for(let g of new Set(S))L.set(g,(L.get(g)??0)+1);if(Me(f,n,t,u,i))for(let g of new Set(S))z.set(g,(z.get(g)??0)+1)}let Je=[...ae].map(f=>({value:f,label:u==="diameters"?`${f}\u2033`:f,count:z.get(f)??0,checked:b.includes(f),swatch:u==="finishes"?p.get(f)??null:null})).sort((f,S)=>{if(u==="diameters")return Number(f.value)-Number(S.value);let g=(L.get(S.value)??0)-(L.get(f.value)??0);return g!==0?g:f.value.localeCompare(S.value)});return{key:u,label:yn[u],options:Je}}).filter(u=>u.options.length>Sn),s=[];for(let u of c){let b=kn(u.key,r,o);b!==void 0&&s.push({fieldKey:u.key,filterOrder:b})}return[...Ne(c,u=>u.key,s,"filterOrder")]}var Sn=1;function $e(e){return e.showCollection===!1?["collections"]:[]}function bn(e,n,t){return n.length===0||t.length===0?!0:n.some(r=>Ce(V(t,r))(Z(e,r)))}function kn(e,n,t){if(t.length===0)return;let r;for(let o of n){let i=Ie(V(t,o),"filter")(Z(e,o));i!==void 0&&(r===void 0||i<r)&&(r=i)}return r}var ne={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},te="type";var x="FilterBlock";function Be(e){let n=e;return!!n&&typeof n=="object"&&typeof n.type=="string"&&!!n.props&&typeof n.props=="object"}function xn(e){return Object.entries(e.props??{}).filter(n=>Array.isArray(n[1])&&n[1].length>0&&n[1].every(Be))}function wn(e){let n=e??{},t=[];Array.isArray(n.content)&&t.push(n.content);for(let r of Object.values(n.zones??{}))Array.isArray(r)&&t.push(r);return t}function We(e){let n=[],t=(r,o)=>{let i=[r,...o];for(let a of r)if(Be(a)){n.push({node:a,order:n.length,lists:i});for(let[,p]of xn(a))t(p,i)}};for(let r of wn(e))t(r,[]);return n}function w(e){return We(e).map(n=>n.node)}var re={vehicle:"My Car",process:"Process",size:"Size",lugs:"Lugs",finish:"Finish",price:"Price"};var kr=[{value:"inStock",label:Q.inStock},{value:"category",label:"Category"},{value:"lugs",label:re.lugs},{value:"price",label:re.price}];var He="AlloyWheelsListing";function Ye(e){return $(e.trim())}var T="/wheels",M="Products";function qe(e,n){return n>1?`${M} \xB7 ${e}`:M}function oe(...e){for(let n of[He,x])for(let t of e){let r=w({content:t?.content}).find(o=>o.type===n);if(r)return r.props??{}}return null}function U(...e){return oe(...e)!==null}function je(e,n){let t=e.filter(r=>U(...r.docs)).map(r=>P(r.slug));return n.fallback&&!t.includes(T)?[...t,T]:t}var ie=[te,...Object.entries(ne).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function Ve(e){let n=e.indexOf("#"),t=n===-1?"":e.slice(n),r=n===-1?e:e.slice(0,n),o=r.indexOf("?");return{path:o===-1?r:r.slice(0,o),query:o===-1?"":r.slice(o+1),hash:t}}function _n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Ze(e){let n=new URLSearchParams(Ve(e).query);for(let t of ie){let r=n.get(t);if(r)return{param:t,value:r}}return null}function se(e,n){let{path:t,query:r,hash:o}=Ve(e),i=r.split("&").filter(a=>a&&!ie.includes(_n(a.split("=")[0])));return n?.value&&i.push(`${encodeURIComponent(n.param)}=${encodeURIComponent(n.value)}`),`${t}${i.length?`?${i.join("&")}`:""}${o}`}function Qe(e,n){let t=se(e,null);return n.includes(t)?t:e}function Rn(e,n,t=[]){return D(e,n,{listingPaths:t,targetOf:r=>Qe(r,t)})}function On(e){return Array.isArray(e)?e.filter(n=>typeof n?.kind=="string"&&typeof n.field_key=="string").map(n=>({kind:n.kind,fieldKey:n.field_key,...typeof n.filter=="boolean"?{filter:n.filter}:{},filterOrder:n.filter_order??null})):[]}var Xe="Product type",En="AUD";function le(e,n){let t=n.listing??{},r=O(t.kinds),o=e.filter(l=>r.includes(d(l))),i=$e(t),a=ze(o,ee,En,r,n.fieldUsage).filter(l=>!i.includes(l.key)).map(l=>({param:ne[l.key],label:l.label,values:l.options.filter(c=>!c.value.includes(",")).map(c=>({value:c.value,label:c.label}))})).filter(l=>l.values.length>0),p=k.filter(l=>r.includes(l)&&o.some(c=>d(c)===l));return p.length>1&&a.unshift({param:te,label:Xe,values:p.map(l=>({value:l,label:R[l]}))}),a}function An(e){return n=>{let t=je(n,{fallback:e.offersCommerce}),r=n.filter(o=>U(...o.docs)).length;return{listingPaths:t,pageOptions:o=>{let i=o.map(a=>{let p=n.find(l=>P(l.slug)===a.value);return p&&U(...p.docs)?{...a,label:qe(p.title,r)}:a});return r===0&&e.offersCommerce&&!i.some(a=>a.value===T)&&i.push({value:T,label:M}),i},filtersFor:o=>{if(!t.includes(o))return null;let i=n.find(a=>P(a.slug)===o);return le(e.catalogue,{listing:i?oe(...i.docs):null,fieldUsage:e.fieldUsage})},readFilter:Ze,withFilter:se}}}function In(e){let n=An({catalogue:e.catalogue,fieldUsage:e.fieldUsage,offersCommerce:e.offers.offersCommerce})(e.pages),t=Ee({pages:e.pages,posts:e.posts,products:e.products.map(r=>({href:C(r.slug),name:r.name||r.slug})),offers:e.offers},n);return{...t,rules:{...t.rules,isSafe:Ye},filtersFor:t.filtersFor??(()=>null)}}function fo(e,n){return le(e,n)}export{T as BUILT_IN_LISTING_PATH,A as LINK_KINDS,ie as LISTING_FILTER_PARAMS,M as LISTING_PAGE_LABEL,Xe as PRODUCT_TYPE_FILTER_LABEL,v as anchorPath,On as fieldUsageFromAdminRows,Rn as inferLinkKind,U as isProductListingPage,Ye as isSafeLink,I as linkKindsFor,In as linkPickerSetup,fo as listingFilterFields,oe as listingNode,qe as listingPageLabel,Qe as listingTarget,K as pageAnchors,P as pagePath,N as postPath,je as productListingPaths,Ze as readListingFilter,C as wheelPath,se as withListingFilter};
|
|
1
|
+
var h={bold:{open:"**",close:"**",placeholder:"bold text"},italic:{open:"_",close:"_",placeholder:"italic text"},strike:{open:"~~",close:"~~",placeholder:"struck out"},code:{open:"`",close:"`",placeholder:"code"},highlight:{open:"==",close:"==",placeholder:"highlighted text"},quiet:{open:"^^",close:"^^",placeholder:"quiet text"},underline:{open:"[",close:"]{underline}",placeholder:"underlined text"},sup:{open:"[",close:"]{sup}",placeholder:"superscript"},sub:{open:"[",close:"]{sub}",placeholder:"subscript"}};var ue=["main","text","background","muted"],en=[...ue,"surface"];var nn={bold:h.bold.placeholder,italic:h.italic.placeholder,strike:h.strike.placeholder,code:h.code.placeholder,highlight:h.highlight.placeholder,quiet:h.quiet.placeholder,link:"link text",underline:h.underline.placeholder,sup:h.sup.placeholder,sub:h.sub.placeholder,color:"colored text",style:"styled text"};var ce=[{style:"bold",label:"B",name:"Strong",title:"Strong \xB7 **words** \xB7 \u2318B",shortcut:"b"},{style:"italic",label:"I",name:"Italic",title:"Italic \xB7 _words_ \xB7 \u2318I",shortcut:"i"},{style:"strike",label:"S",name:"Strikethrough",title:"Strikethrough \xB7 ~~words~~"},{style:"highlight",label:"\u25C6",name:"Emphasis",title:"Emphasis \xB7 ==words=="},{style:"quiet",label:"a",name:"Quiet",title:"Quiet \xB7 ^^words^^"},{style:"code",label:"\u2039\u203A",name:"Code",title:"Code"},{style:"link",label:"\u{1F517}",name:"Link",title:"Link \xB7 [words](https://\u2026) \xB7 \u2318K",shortcut:"k"},{style:"bullet",label:"\u2022",name:"Bulleted list",title:"Bulleted list"},{style:"number",label:"1.",name:"Numbered list",title:"Numbered list"},{style:"quote",label:"\u275D",name:"Quote",title:"Quote"},{style:"clear",label:"T\xD7",name:"Clear marks",title:"Clear marks \xB7 \u2318\u21E7X",shortcut:"shift+x"}];var _=[{open:"**",close:"**",kind:"bold"},{open:"==",close:"==",kind:"highlight"},{open:"~~",close:"~~",kind:"strike"},{open:"_",close:"_",kind:"italic",wordBoundary:!0},{open:"^^",close:"^^",kind:"quiet"},{open:"@@",close:"@@",kind:"highlight"},{open:"++",close:"++",kind:"bold",wordStart:!0}],pe=["highlight","quiet"],tn=ce.map(e=>e.style).filter(e=>_.some(n=>n.kind===e)).filter(e=>!pe.includes(e)),rn=[..._,{open:"*",close:"*",kind:"accent"}],on=[..._,{open:"*",close:"*",kind:"accent"},{open:"#",close:"#",kind:"bold",notBefore:"0123456789"},{open:"[",close:"]",kind:"italic",notBefore:"(",notBeforeBlock:!0}];var sn=["http","https","mailto","tel"];function $(e){if(e===""||/[\s\u0000-\u001f\u007f]/.test(e))return!1;let n=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(e);return!n||sn.includes(n[1].toLowerCase())}var de=["width","profile","rim"];var ln=/^\s*(\d{2,3})\s*\/\s*(\d{2,3})\s*[A-Za-z]*\s*(\d{2}(?:\.\d+)?)\s*$/,an={width:[100,500],profile:[20,100],rim:[10,30]};function B(e){let n=ln.exec(e??"");if(!n)return null;let t={width:Number(n[1]),profile:Number(n[2]),rim:Number(n[3])};return de.every(o=>{let[i,a]=an[o];return t[o]>=i&&t[o]<=a})?t:null}function R(e){if(e.width==null)return"";if(e.profile==null)return String(e.width);let n=`${e.width}/${e.profile}`;return e.rim==null?n:`${n} R${e.rim}`}function fe(e){return[R({width:e.width}),R({width:e.width,profile:e.profile}),R(e)]}var k=["alloy-wheel","tyre"],me=["alloy-wheel"],F={"alloy-wheel":"Alloy wheels",tyre:"Tyres"};var yt=k.map(e=>({value:e,label:F[e]}));function O(e){return e==null?[...me]:Array.isArray(e)?k.filter(n=>e.includes(n)):[...me]}var m=e=>e;function d(e){return m(e).kind==="tyre"?"tyre":"alloy-wheel"}function W(e){return m(e).brand??""}function ge(e){return m(e).prices??void 0}function he(e){return m(e).inStock!==!1}function ye(e){let n=m(e),t=d(e)==="tyre"?n.rimDiameters:n.sizes;return Array.isArray(t)?t.filter(r=>typeof r=="number"&&Number.isFinite(r)):[]}function G(e){return d(e)==="tyre"?[]:(m(e).finishes??[]).filter(n=>typeof n?.family=="string").map(n=>({family:n.family,color:n.color??null}))}function Pe(e){return G(e).map(n=>n.family)}function H(e){if(d(e)==="tyre")return[];let n=m(e);return Array.isArray(n.categories)?n.categories:n.process?[n.process]:[]}function Se(e){return d(e)==="tyre"?[]:m(e).spec?.pcds??[]}function be(e){return d(e)!=="tyre"?[]:m(e).tyreTypes??[]}function ke(e){return d(e)!=="tyre"?[]:m(e).speedRatings??[]}function xe(e){if(d(e)!=="tyre")return[];let n=m(e).sizes;return Array.isArray(n)?n.map(t=>B(typeof t=="string"?t:null)).filter(t=>t!==null):[]}var Y=e=>typeof e=="string"&&e?e:void 0;var we=null;function Te(e,n){return n?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>Object.prototype.hasOwnProperty.call(n,r)?String(n[r]):t):e}function y(e,n){let t=we?we[e]:void 0;if(typeof t=="function"){try{let r=Y(t(n??{}));if(r)return r}catch{}return Te(e,n)}return Te(Y(t)??e,n)}function V(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var A=(e,n,t,r)=>({default:e,min:n,max:t,step:r}),wt=A(30,0,100,10),Tt=A(0,0,100,5),Lt=A(100,0,100,5),_t=A(2,0,4,.5);function Le(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var _e="homepage";var E=[{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 I(e){return e.offersCommerce&&e.offersService?E:E.filter(n=>!n.needs||(n.needs==="commerce"?e.offersCommerce:e.offersService))}var q="#popup:";function Re(e){return`${q}${e}`}function Fe(e){return e.startsWith(q)&&e.slice(q.length).trim()||null}function P(e){return e===_e?"/":`/${e}`}function N(e){return`/journal/${e}`}function C(e){return`/wheels/${e}`}function v(e,n){return`${P(e)}#${n}`}function D(...e){let n=new Set,t=[];for(let r of e)for(let o of r?.content??[]){let i=Le(o?.props?.anchor);if(!i)continue;let a=V(i);!a||n.has(a)||(n.add(a),t.push({slug:a,name:i}))}return t}function Oe(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}var un=()=>({choosePage:y("Choose a page"),chooseSection:y("Choose a section"),noSections:y("No section anchors yet"),sectionHint:y("Jumps to a section on that page."),choosePost:y("Choose a post"),chooseProduct:y("Choose a product"),choosePopup:y("Choose a popup")});function K(e,n,t){if(!e)return"page";if(Fe(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(Oe(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||n.includes(r))return"anchor"}return e==="/"||n.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function Ae(e,n){let t=un(),r=e.pages.map(s=>({value:P(s.slug),label:s.title})),o=n?.pageOptions?n.pageOptions(r):r,i=o.map(s=>s.value),a=e.pages.map(s=>({label:s.title,options:D(...s.docs).map(u=>({value:v(s.slug,u.slug),label:u.name}))})).filter(s=>s.options.length>0),p=s=>{switch(s){case"page":return{type:"select",options:o,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:a,placeholder:a.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:N(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:Re(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=I(e.offers).map(s=>({value:s.value,label:y(s.label),target:p(s.value),...s.value==="anchor"?{hint:t.sectionHint}:{},...s.value==="blog"||s.value==="product"||s.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!n)return{kinds:l,rules:{kindOf:s=>K(s,i),targetOf:s=>s,readFilter:()=>null,withFilter:s=>s}};let c=s=>{let u=n.withFilter(s,null);return n.listingPaths.includes(u)?u:s};return{kinds:l,rules:{kindOf:s=>K(s,i,{listingPaths:n.listingPaths,targetOf:c}),targetOf:c,readFilter:n.readFilter,withFilter:n.withFilter},filtersFor:s=>n.listingPaths.includes(s)?n.filtersFor(s):null}}var Ee=Object.freeze([]);function j(e,n){return e.length===0?e:e.filter(t=>t.kind===void 0||t.kind===n)}function Ie(e,n){let t=n==="filter"?"filterOrder":"cardOrder",r=new Map;for(let o of e){let i=o[t];if(typeof i!="number"||!Number.isFinite(i))continue;let a=r.get(o.fieldKey);(a===void 0||i<a)&&r.set(o.fieldKey,i)}return o=>o?r.get(o):void 0}function Ne(e,n,t,r){let o=new Map;for(let l of t){let c=l[r];typeof c=="number"&&o.set(l.fieldKey,c)}if(o.size===0)return e;let i=[],a=[];e.forEach((l,c)=>{let s=n(l);s&&(i.push(c),a.push({item:l,index:c,order:o.get(s)}))}),a.sort((l,c)=>l.order!==void 0&&c.order!==void 0?l.order-c.order||l.index-c.index:l.order!==void 0?-1:c.order!==void 0?1:l.index-c.index);let p=[...e];return i.forEach((l,c)=>{p[l]=a[c].item}),p.every((l,c)=>l===e[c])?e:p}function Ce(e){return pn(e,"filter")}var cn="collection";function Z(e,n){return{tyreSizes:{},brands:{"alloy-wheel":"brand",tyre:"brand"},finishes:{"alloy-wheel":"wheel_finish_ref"},diameters:{"alloy-wheel":"diameter",tyre:"rim_diameter"},collections:{"alloy-wheel":cn},pcds:{"alloy-wheel":"pcd"},tyreTypes:{tyre:"tire_type"},speedRatings:{tyre:"speed_rating"}}[e]?.[n]}function pn(e,n){let t=new Set(e.filter(r=>r[n]===!1).map(r=>r.fieldKey));return r=>!r||!t.has(r)}var Q={inStock:"In stock",outOfStock:"Out of stock",notInStockHere:"Not in stock here"};function dn(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function ve(e,n){let t=e?.[n];return dn(t)?t:null}function De(e,n,t,r){if(t==null&&r==null)return!0;let o=ve(e,n);return!(o===null||t!=null&&o<t||r!=null&&o>r)}function Ke(e){let n=e.spec?.lugs;return typeof n=="number"?n:null}var fn={recommended:"Recommended","price-asc":"Price \xB7 low to high","price-desc":"Price \xB7 high to low",new:"Newest",name:"Name A\u2013Z"},cr=Object.keys(fn);var X=["tyreSizes","brands","finishes","diameters","collections","pcds","tyreTypes","speedRatings"],J={tyreSizes:["tyre"],brands:["alloy-wheel","tyre"],finishes:["alloy-wheel"],diameters:["alloy-wheel","tyre"],collections:["alloy-wheel"],pcds:["alloy-wheel"],tyreTypes:["tyre"],speedRatings:["tyre"]},mn={diameters:"tyreSizes"};function gn(e){if(e.length===0)return[];let n=X.filter(t=>e.every(r=>J[t].includes(r)));return n.filter(t=>{let r=mn[t];return!r||!n.includes(r)})}function hn(e){let n=new Set;for(let t of e)n.add(d(t));return[...n]}var ee={tyreSizes:[],brands:[],finishes:[],diameters:[],collections:[],pcds:[],tyreTypes:[],speedRatings:[],priceMax:null,inStockOnly:!1,kind:null,sort:"recommended",page:1};function Me(e,n,t,r=null,o="fail"){let i=d(e),a=p=>o==="fail"||(p==="lugs"?i==="alloy-wheel":J[p].includes(i));if(r!=="kind"&&n.kind&&i!==n.kind)return!1;for(let p of X){if(r===p)continue;let l=n[p];if(l.length===0||!a(p))continue;let c=l.map(String);if(!Ue(e,p).some(s=>c.includes(s)))return!1}if(r!=="lugs"&&n.lugs&&n.lugs.length>0&&a("lugs")){let p=Ke(e);if(p===null||!n.lugs.includes(p))return!1}return!(r!=="price"&&!De(ge(e),t,n.priceMin??null,n.priceMax)||r!=="inStock"&&n.inStockOnly&&!he(e))}var yn={tyreSizes:"Size",brands:"Brand",finishes:"Colour",diameters:"Size \xB7 diameter",collections:"Collection",pcds:"PCD \xB7 fitment",tyreTypes:"Tyre type",speedRatings:"Speed rating"};function Ue(e,n){switch(n){case"tyreSizes":return[...new Set(xe(e).flatMap(fe))];case"brands":return W(e)?[W(e)]:[];case"finishes":return Pe(e);case"diameters":return ye(e).map(String);case"collections":return H(e);case"pcds":return Se(e);case"tyreTypes":return be(e);case"speedRatings":return ke(e)}}function Pn(e){let n=new Map;for(let t of e)for(let r of G(t))r.color&&!n.has(r.family)&&n.set(r.family,r.color);return n}function ze(e,n,t,r=hn(e),o=Ee,i="fail"){let a=u=>bn(u,r,o),p=Pn(e),c=(i==="pass"?X.filter(u=>r.some(b=>J[u].includes(b))):gn(r)).filter(u=>u!=="tyreSizes").filter(a).map(u=>{let b=n[u].map(String),ae=new Set,z=new Map,L=new Map;for(let f of e){let S=Ue(f,u);for(let g of S)ae.add(g);for(let g of new Set(S))L.set(g,(L.get(g)??0)+1);if(Me(f,n,t,u,i))for(let g of new Set(S))z.set(g,(z.get(g)??0)+1)}let Je=[...ae].map(f=>({value:f,label:u==="diameters"?`${f}\u2033`:f,count:z.get(f)??0,checked:b.includes(f),swatch:u==="finishes"?p.get(f)??null:null})).sort((f,S)=>{if(u==="diameters")return Number(f.value)-Number(S.value);let g=(L.get(S.value)??0)-(L.get(f.value)??0);return g!==0?g:f.value.localeCompare(S.value)});return{key:u,label:yn[u],options:Je}}).filter(u=>u.options.length>Sn),s=[];for(let u of c){let b=kn(u.key,r,o);b!==void 0&&s.push({fieldKey:u.key,filterOrder:b})}return[...Ne(c,u=>u.key,s,"filterOrder")]}var Sn=1;function $e(e){return e.showCollection===!1?["collections"]:[]}function bn(e,n,t){return n.length===0||t.length===0?!0:n.some(r=>Ce(j(t,r))(Z(e,r)))}function kn(e,n,t){if(t.length===0)return;let r;for(let o of n){let i=Ie(j(t,o),"filter")(Z(e,o));i!==void 0&&(r===void 0||i<r)&&(r=i)}return r}var ne={tyreSizes:"tyreSize",brands:"brand",finishes:"colour",diameters:"size",collections:"collection",pcds:"pcd",tyreTypes:"tyreType",speedRatings:"speed"},te="type";var x="FilterBlock";function Be(e){let n=e;return!!n&&typeof n=="object"&&typeof n.type=="string"&&!!n.props&&typeof n.props=="object"}function xn(e){return Object.entries(e.props??{}).filter(n=>Array.isArray(n[1])&&n[1].length>0&&n[1].every(Be))}function wn(e){let n=e??{},t=[];Array.isArray(n.content)&&t.push(n.content);for(let r of Object.values(n.zones??{}))Array.isArray(r)&&t.push(r);return t}function We(e){let n=[],t=(r,o)=>{let i=[r,...o];for(let a of r)if(Be(a)){n.push({node:a,order:n.length,lists:i});for(let[,p]of xn(a))t(p,i)}};for(let r of wn(e))t(r,[]);return n}function w(e){return We(e).map(n=>n.node)}var re={vehicle:"My Car",process:"Process",size:"Size",lugs:"Lugs",finish:"Finish",price:"Price"};var kr=[{value:"inStock",label:Q.inStock},{value:"category",label:"Category"},{value:"lugs",label:re.lugs},{value:"price",label:re.price}];var He="AlloyWheelsListing";function Ye(e){return $(e.trim())}var T="/wheels",M="Products";function Ve(e,n){return n>1?`${M} \xB7 ${e}`:M}function oe(...e){for(let n of[He,x])for(let t of e){let r=w({content:t?.content}).find(o=>o.type===n);if(r)return r.props??{}}return null}function U(...e){return oe(...e)!==null}function qe(e,n){let t=e.filter(r=>U(...r.docs)).map(r=>P(r.slug));return n.fallback&&!t.includes(T)?[...t,T]:t}var ie=[te,...Object.entries(ne).filter(([e])=>e!=="tyreSizes").map(([,e])=>e)];function je(e){let n=e.indexOf("#"),t=n===-1?"":e.slice(n),r=n===-1?e:e.slice(0,n),o=r.indexOf("?");return{path:o===-1?r:r.slice(0,o),query:o===-1?"":r.slice(o+1),hash:t}}function Rn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Ze(e){let n=new URLSearchParams(je(e).query);for(let t of ie){let r=n.get(t);if(r)return{param:t,value:r}}return null}function se(e,n){let{path:t,query:r,hash:o}=je(e),i=r.split("&").filter(a=>a&&!ie.includes(Rn(a.split("=")[0])));return n?.value&&i.push(`${encodeURIComponent(n.param)}=${encodeURIComponent(n.value)}`),`${t}${i.length?`?${i.join("&")}`:""}${o}`}function Qe(e,n){let t=se(e,null);return n.includes(t)?t:e}function Fn(e,n,t=[]){return K(e,n,{listingPaths:t,targetOf:r=>Qe(r,t)})}function On(e){return Array.isArray(e)?e.filter(n=>typeof n?.kind=="string"&&typeof n.field_key=="string").map(n=>({kind:n.kind,fieldKey:n.field_key,...typeof n.filter=="boolean"?{filter:n.filter}:{},filterOrder:n.filter_order??null})):[]}var Xe="Product type",An="AUD";function le(e,n){let t=n.listing??{},r=O(t.kinds),o=e.filter(l=>r.includes(d(l))),i=$e(t),a=ze(o,ee,An,r,n.fieldUsage).filter(l=>!i.includes(l.key)).map(l=>({param:ne[l.key],label:l.label,values:l.options.filter(c=>!c.value.includes(",")).map(c=>({value:c.value,label:c.label}))})).filter(l=>l.values.length>0),p=k.filter(l=>r.includes(l)&&o.some(c=>d(c)===l));return p.length>1&&a.unshift({param:te,label:Xe,values:p.map(l=>({value:l,label:F[l]}))}),a}function En(e){return n=>{let t=qe(n,{fallback:e.offersCommerce}),r=n.filter(o=>U(...o.docs)).length;return{listingPaths:t,pageOptions:o=>{let i=o.map(a=>{let p=n.find(l=>P(l.slug)===a.value);return p&&U(...p.docs)?{...a,label:Ve(p.title,r)}:a});return r===0&&e.offersCommerce&&!i.some(a=>a.value===T)&&i.push({value:T,label:M}),i},filtersFor:o=>{if(!t.includes(o))return null;let i=n.find(a=>P(a.slug)===o);return le(e.catalogue,{listing:i?oe(...i.docs):null,fieldUsage:e.fieldUsage})},readFilter:Ze,withFilter:se}}}function In(e){let n=En({catalogue:e.catalogue,fieldUsage:e.fieldUsage,offersCommerce:e.offers.offersCommerce})(e.pages),t=Ae({pages:e.pages,posts:e.posts,products:e.products.map(r=>({href:C(r.slug),name:r.name||r.slug})),offers:e.offers},n);return{...t,rules:{...t.rules,isSafe:Ye},filtersFor:t.filtersFor??(()=>null)}}function fo(e,n){return le(e,n)}export{T as BUILT_IN_LISTING_PATH,E as LINK_KINDS,ie as LISTING_FILTER_PARAMS,M as LISTING_PAGE_LABEL,Xe as PRODUCT_TYPE_FILTER_LABEL,v as anchorPath,On as fieldUsageFromAdminRows,Fn as inferLinkKind,U as isProductListingPage,Ye as isSafeLink,I as linkKindsFor,In as linkPickerSetup,fo as listingFilterFields,oe as listingNode,Ve as listingPageLabel,Qe as listingTarget,D as pageAnchors,P as pagePath,N as postPath,qe as productListingPaths,Ze as readListingFilter,C as wheelPath,se as withListingFilter};
|
|
@@ -1553,12 +1553,18 @@ body:has([data-page-width="full"]) footer {
|
|
|
1553
1553
|
and `--motion-pin-length` the same way, from `--sf-pin-on` and
|
|
1554
1554
|
`--sf-pin-length`. No default is written here: an unwritten one makes the
|
|
1555
1555
|
shell's variable invalid, so the shell's own default holds (on, 2 screens).
|
|
1556
|
-
§5.
|
|
1556
|
+
§5. A view that pins with Screens 0 while another view pins for its
|
|
1557
|
+
Screens draws the stick look inside the track: `--motion-pin-stick` and
|
|
1558
|
+
`--motion-pin-track-position` from `--sf-pin-stick` and
|
|
1559
|
+
`--sf-pin-track-position`, the same way, no default (the shell's own is 0,
|
|
1560
|
+
relative). §6. */
|
|
1557
1561
|
[data-motion-pin] {
|
|
1558
1562
|
--motion-pin-top: calc(var(--sf-pin-header, var(--sf-header-h, 88px)) + var(--sf-pin-distance, 0px));
|
|
1559
1563
|
--motion-pin-position: var(--sf-pin-position, sticky);
|
|
1560
1564
|
--motion-pin-on: var(--sf-pin-on);
|
|
1561
1565
|
--motion-pin-length: var(--sf-pin-length);
|
|
1566
|
+
--motion-pin-stick: var(--sf-pin-stick);
|
|
1567
|
+
--motion-pin-track-position: var(--sf-pin-track-position);
|
|
1562
1568
|
}
|
|
1563
1569
|
@media (min-width: 720px) and (max-width: 1099.98px) {
|
|
1564
1570
|
[data-motion-pin] {
|
|
@@ -1566,6 +1572,8 @@ body:has([data-page-width="full"]) footer {
|
|
|
1566
1572
|
--motion-pin-position: var(--sf-pin-position-tablet, var(--sf-pin-position, sticky));
|
|
1567
1573
|
--motion-pin-on: var(--sf-pin-on-tablet, var(--sf-pin-on));
|
|
1568
1574
|
--motion-pin-length: var(--sf-pin-length-tablet, var(--sf-pin-length));
|
|
1575
|
+
--motion-pin-stick: var(--sf-pin-stick-tablet, var(--sf-pin-stick));
|
|
1576
|
+
--motion-pin-track-position: var(--sf-pin-track-position-tablet, var(--sf-pin-track-position));
|
|
1569
1577
|
}
|
|
1570
1578
|
}
|
|
1571
1579
|
@media not all and (min-width: 720px) {
|
|
@@ -1574,6 +1582,8 @@ body:has([data-page-width="full"]) footer {
|
|
|
1574
1582
|
--motion-pin-position: var(--sf-pin-position-phone, var(--sf-pin-position, sticky));
|
|
1575
1583
|
--motion-pin-on: var(--sf-pin-on-phone, var(--sf-pin-on));
|
|
1576
1584
|
--motion-pin-length: var(--sf-pin-length-phone, var(--sf-pin-length));
|
|
1585
|
+
--motion-pin-stick: var(--sf-pin-stick-phone, var(--sf-pin-stick));
|
|
1586
|
+
--motion-pin-track-position: var(--sf-pin-track-position-phone, var(--sf-pin-track-position));
|
|
1577
1587
|
}
|
|
1578
1588
|
}
|
|
1579
1589
|
|
|
@@ -26,11 +26,11 @@ export interface AlloyWheelsListingProps {
|
|
|
26
26
|
ownerId?: string;
|
|
27
27
|
template?: SlotComponent;
|
|
28
28
|
facetTemplate?: SlotComponent;
|
|
29
|
-
|
|
29
|
+
omitHead?: boolean;
|
|
30
30
|
hover?: CardHoverDrawn;
|
|
31
31
|
}
|
|
32
32
|
export declare const PLP_GATE_DEFAULTS: {
|
|
33
33
|
readonly heading: "Let's find wheels that fit your car.";
|
|
34
34
|
readonly intro: "Tell us what you drive and we'll show you every set that bolts straight on — bolt pattern, offset and hub bore checked for you.";
|
|
35
35
|
};
|
|
36
|
-
export default function AlloyWheelsListing({ heading, intro, askForCar, gateHeading, gateIntro, perPage, columns, defaultSort, hiddenFacets, fieldUsage, showPrice, showInStock, kinds, products, wheels, requestQuery, editing, ownerId, template, facetTemplate, hover, titleLevel, }: AlloyWheelsListingProps): import("react").JSX.Element | null;
|
|
36
|
+
export default function AlloyWheelsListing({ heading, intro, askForCar, gateHeading, gateIntro, perPage, columns, defaultSort, hiddenFacets, fieldUsage, showPrice, showInStock, kinds, products, wheels, requestQuery, editing, ownerId, template, facetTemplate, hover, titleLevel, omitHead, }: AlloyWheelsListingProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r,jsxs as p,Fragment as
|
|
1
|
+
"use client";import{jsx as r,jsxs as p,Fragment as $e}from"react/jsx-runtime";import{useScopeClass as He}from"../../lib/use-scope-class.js";import{useCallback as d,useEffect as Ye,useMemo as i,useRef as qe,useState as Je}from"react";import{cardHoverOf as Qe}from"efficient-web-builder/format/lib/animation/hover";import{SHARED_ROWS_LIST_CLASS as Ue}from"efficient-web-builder/render/lib/content/box-shared-columns";import{NO_FIELD_ANSWERS as Xe,answersForKind as ne}from"../../lib/content/field-usage.js";import{useCurrency as Ze}from"../CurrencyContext.js";import et from"../NoCurrencyNote.js";import{usePreviewDevice as tt}from"efficient-easel/screen/components/PreviewDeviceContext";import{renderGold as ot,renderHeadline as rt}from"efficient-web-builder/render/components/goldPhrases";import{useUnifiedProductCatalog as nt}from"../useProductCatalog.js";import{scrollBehavior as st}from"efficient-web-builder/render/components/useReducedMotion";import{normalizePlpColumns as it,PLP_GRID_GAP_VAR as se,plpGridVars as lt}from"../../lib/wheels/plp-grid.js";import{plpCardImageSizes as at}from"../../lib/sections/card-image-sizes.js";import{CARD_ROWS_GRID_CLASS as ct,cardRowsGridStyle as pt}from"../WheelCardFrame.js";import{applyPlpFilters as dt,buildPlpFacets as mt,buildPlpTypeOptions as ut,buildTyreSizeBoxes as ht,EMPTY_PLP_FILTERS as ie,hasActivePlpFilters as ft,paginatePlp as gt,pickTyreSize as yt,plpTyreSizeBoxesShown as St,plpInStockCount as xt,plpOpeningSort as wt,plpPriceBounds as bt,plpShownKinds as vt,plpSortKeysFor as Pt,PLP_SORT_LABELS as kt}from"../../lib/wheels/plp-filters.js";import{itemKind as z,itemSlug as Nt,itemTyreSizes as Ct,plpBrandVaries as Tt,plpProcessVaries as _t,plpItemsOfKinds as At,plpKindNoun as le,resolvePlpKinds as zt}from"../../lib/catalog/plp-item.js";import{plpGateWords as Lt,plpVehicleCopy as Ot}from"../../lib/catalog/plp-vehicle-copy.js";import{oemBadgeSize as Rt,oemTyreSizes as Ft}from"../../lib/tyres/tyre-vehicle-fitment.js";import{wheelsFittingVehicle as Gt}from"../../lib/wheels/plp-fitment-match.js";import It from"./PlpActiveChips.js";import{GridCardProvider as Vt,GridMixedCards as Et,gridIndexCss as Kt,LISTING_CARD_RULES as jt}from"../GridCardTemplate.js";import{wheelCardEyebrowShows as Bt}from"../ProductCardEyebrow.js";import Mt from"./PlpPagination.js";import Dt from"./PlpSidebar.js";import{PlpResultRange as Wt,PlpToolbar as $t}from"./PlpToolbar.js";import Ht from"../catalog/SortSelect.js";import Yt from"./PlpVehicleBar.js";import qt from"./PlpVehicleGate.js";import{useVehicleCatalog as Jt}from"./useVehicleCatalog.js";import{useVehicleFit as Qt}from"../fitment/useVehicleFit.js";import{usePlpFiltersInUrl as Ut}from"./usePlpFiltersInUrl.js";import{say as I}from"efficient-web-builder/format/lib/editor-words";const Go={heading:"Let's find wheels that fit your car.",intro:"Tell us what you drive and we'll show you every set that bolts straight on — bolt pattern, offset and hub bore checked for you."};function Xt({level:v,className:P,children:k}){return r(v===2?"h2":"h1",{className:P,children:k})}const Zt=Qe({},"AlloyWheelsListing");function eo({heading:v="",intro:P="",askForCar:k=!0,gateHeading:V="",gateIntro:ae="",perPage:E=24,columns:ce,defaultSort:pe="recommended",hiddenFacets:de=[],fieldUsage:f=Xe,showPrice:K=!0,showInStock:me=!0,kinds:ue,products:he,wheels:fe,requestQuery:ge,editing:m=!1,ownerId:j="",template:ye,facetTemplate:Se,hover:xe=Zt,titleLevel:we,omitHead:B=!1}){const{currency:a}=Ze(),u=zt(ue),M=tt(),D=it(ce),be=lt(D,m?M:null),ve=at(D,m?M:null),W=He("plp"),Pe=Kt(W),ke=nt(),$=he??fe??ke??[],H=i(()=>At($,u),[$,u.join(",")]),o=Qt({editing:m,enabled:k,autoApply:!0}),[Ne,L]=Je(!1),Ce=wt(pe,u),g=o.applied?.vehicle??null,[e,x]=Ut({editing:m,openingSort:Ce,appliedVehicle:g,vehicleRestored:o.restored,requestQuery:ge}),c=vt(u,e.kind),s=d(t=>x(t),[x]),Y=d((t,h)=>{const l=e[t],De=l.map(String).includes(h)?l.filter(We=>String(We)!==h):[...l,t==="diameters"?Number(h):h];s({...e,[t]:De,page:1})},[e,s]),q=d(t=>s({...e,priceMax:t,page:1}),[e,s]),J=d(t=>s({...e,inStockOnly:t,page:1}),[e,s]),Q=d(t=>s({...ie,kind:t,inStockOnly:e.inStockOnly,priceMax:e.priceMax,sort:e.sort}),[e.inStockOnly,e.priceMax,e.sort,s]),Te=d(t=>s({...e,sort:t,page:1}),[e,s]),_e=d(t=>{s({...e,page:t}),typeof window<"u"&&window.scrollTo({top:0,behavior:st()})},[e,s]),U=d(()=>s({...ie,sort:e.sort}),[e.sort,s]),{clear:C}=o,X=d(()=>{C(),L(!0),x(t=>({...t,page:1}))},[C]),Ae=d(()=>{C(),L(!1),x(t=>({...t,page:1}))},[C]),T=g?[g.make,g.model,g.year,g.modification].join("|"):"",_=qe(null);Ye(()=>{if(o.restored){if(_.current===null){_.current=T;return}_.current!==T&&(_.current=T,x(t=>t.page===1?t:{...t,page:1}))}},[o.restored,T,x]);const A=Jt({catalog:H,shownKinds:u,vehicle:g,editing:m}),n=i(()=>{if(!o.fit)return A;const t=A.filter(l=>z(l)==="alloy-wheel"),h=new Set(Gt(t,o.fit).map(l=>l.slug));return A.filter(l=>z(l)!=="alloy-wheel"||h.has(Nt(l)))},[A,o.fit]),w=de.join(","),ze=i(()=>{const t=new Set(w?w.split(","):[]);return mt(n,e,a,c,f).filter(h=>!t.has(h.key))},[n,e,a,w,c.join(","),f]),y=i(()=>dt(n,e,a),[n,e,a]),Le=c.length>1,Z=i(()=>ne(f,"alloy-wheel"),[f]),Oe=i(()=>ne(f,"tyre"),[f]),O=i(()=>Tt(y),[y]),R=i(()=>_t(y),[y]),F=Le?le(["alloy-wheel"]).one:null,Re=i(()=>({kindLabel:F,brand:O,process:R}),[F,O,R]),Fe=Bt({kind:!!F,brand:O,process:R},Z),Ge=i(()=>K?bt(n,a):null,[n,a,K]),Ie=i(()=>xt(n,e,a),[n,e,a]),Ve=i(()=>ut(n,u,e,a),[n,u.join(","),e,a]),Ee=d((t,h)=>{const l=yt(n.flatMap(Ct),e.tyreSizes[0]??"",t,h);s({...e,tyreSizes:l?[l]:[],page:1})},[n,e,s]),Ke=i(()=>{const t=new Set(w?w.split(","):[]);return!St(n,c)||t.has("tyreSizes")?null:ht(n,e,a)},[n,e,a,w,c.join(","),f]),S=i(()=>gt(y,e.page,E),[y,e.page,E]),b=le(c),G=Ot(c),ee=Lt(V,ae,c,u),te=c.length===1&&c[0]==="tyre",oe=o.applied?.stock??null,N=i(()=>Ft(oe),[oe]),je=i(()=>n.filter(t=>c.includes(z(t))).length,[n,c.join(",")]),re=H.length===0,Be=!re&&n.length===0,Me=k&&!m&&!o.applied&&!Ne;return u.length===0?null:p("section",{children:[k&&r(Yt,{cascade:o.cascade,appliedName:o.appliedName,fit:o.fit,fitSummary:te&&N.length>0?`Takes ${N.join(" · ")}`:null,resolving:o.resolving,unresolved:te?!!o.applied&&!o.resolving&&N.length===0:o.unresolved,matchCount:je,copy:G,onAmend:Ae,onClear:X}),Me&&r(qt,{cascade:o.cascade,heading:ee.heading,intro:ee.intro,ready:o.restored,copy:G,onSkip:()=>L(!0)}),p("div",{className:B?void 0:"px-5 py-10 md:px-[max(2.5rem,calc((100%_-_var(--sf-content-cap,100%))/2_+_2.5rem))]",children:[!B&&(v||P)&&p("header",{className:"mb-6",children:[v&&r(Xt,{level:we,className:"font-display text-[clamp(28px,4vw,40px)] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] leading-[1.05] tracking-[-0.02em]",children:rt(v,!1)}),P&&r("p",{className:"mt-2 max-w-[60ch] text-[15px] text-fg-dim",children:ot(P)})]}),p("div",{className:"flex flex-col gap-8 lg:flex-row lg:items-start",children:[r(Dt,{facets:ze,filters:e,typeOptions:Ve,sizeBoxes:Ke,sizeMatches:e.tyreSizes.length>0?y.length:null,noun:b,priceBounds:Ge,inStockCount:me?Ie:null,onToggle:Y,onPickType:Q,onPickSize:Ee,onPriceMax:q,onInStockOnly:J,onClearAll:U,owner:{id:j,facetTemplate:Se},editing:m}),p("div",{className:"min-w-0 flex-1",children:[r($t,{className:"mb-4",start:p($e,{children:[r(Wt,{total:S.total,range:{from:S.from,to:S.to},noun:b}),r(It,{filters:e,onToggle:Y,onPriceMax:q,onInStockOnly:J,onPickType:Q})]}),end:r(Ht,{value:e.sort,keys:Pt(u),labels:kt,onChange:Te})}),re?r("div",{className:"border border-dashed border-line p-10",children:r("p",{className:"font-mono text-[12px] uppercase tracking-[0.16em] text-fg-dim",children:m?b.many==="wheels"?I("No wheels in this website's catalog yet — curate products to see them here."):b.many==="tyres"?I("No tyres in this website's catalog yet — curate products to see them here."):I("No products in this website's catalog yet — curate products to see them here."):"Our catalog is being updated. Please check back shortly."})}):Be?p("div",{className:"border border-line p-10",children:[p("h3",{className:"font-display text-[22px] font-medium uppercase tracking-[-0.01em]",children:["No confirmed fit for your ",o.appliedName]}),r("p",{className:"mt-2 max-w-[52ch] text-[14px] text-fg-dim",children:G.nothingFits}),p("button",{type:"button",onClick:X,className:"mt-4 cursor-pointer bg-btn px-4 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-btn-ink hover:bg-fg",children:["Show all ",b.many]})]}):S.total===0?p("div",{className:"border border-line p-10",children:[p("h3",{className:"font-display text-[22px] font-medium uppercase tracking-[-0.01em]",children:["No ",b.many," match those filters"]}),r("p",{className:"mt-2 max-w-[46ch] text-[14px] text-fg-dim",children:"Try widening the price range or clearing a filter."}),ft(e)&&r("button",{type:"button",onClick:U,className:"mt-4 cursor-pointer bg-btn px-4 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.24em] text-btn-ink hover:bg-fg",children:"Clear all filters"})]}):p(Vt,{value:{ownerId:j,ownerType:"AlloyWheelsListing",Template:ye,hover:xe,imageSizes:ve,fieldUsage:Z,tyreFieldUsage:Oe,reserveEyebrow:Fe,editing:m,eyebrow:Re,fit:o.fit,colours:e.finishes,setGridGap:`var(${se})`,rules:jt},children:[r("style",{children:Pe}),r("div",{className:`plp-card-grid ${W} ${ct} ${Ue}`,style:{...be,...pt(`var(${se})`)},children:r(Et,{items:S.items,tyreOf:t=>z(t)==="tyre"?t:null,tyreFit:t=>N.length>0?Rt(t.sizes,N):null})})]}),r(Mt,{page:S.page,pageCount:S.pageCount,onPage:_e}),r(et,{editing:m})]})]})]})]})}export{Go as PLP_GATE_DEFAULTS,eo as default};
|
|
@@ -3,12 +3,16 @@ import { type SeededNode } from "efficient-web-builder/format/lib/document/seed-
|
|
|
3
3
|
type Props = Record<string, unknown>;
|
|
4
4
|
export declare const BOOKING_SERVICE_SLOT = "serviceTemplate";
|
|
5
5
|
export declare const BOOKING_TIME_SLOT = "timeTemplate";
|
|
6
|
+
export declare const BOOKING_SERVICE_FIELDS: readonly CardRowFieldSpec[];
|
|
7
|
+
export declare const BOOKING_TIME_FIELDS: readonly CardRowFieldSpec[];
|
|
6
8
|
export declare const BOOKING_TEMPLATE_SLOTS: readonly [{
|
|
7
9
|
readonly slot: "serviceTemplate";
|
|
8
10
|
readonly label: "Service template";
|
|
11
|
+
readonly fields: readonly CardRowFieldSpec[];
|
|
9
12
|
}, {
|
|
10
13
|
readonly slot: "timeTemplate";
|
|
11
14
|
readonly label: "Time template";
|
|
15
|
+
readonly fields: readonly CardRowFieldSpec[];
|
|
12
16
|
}];
|
|
13
17
|
export declare const BOOKING_OPTION_FIELDS: readonly CardRowFieldSpec[];
|
|
14
18
|
export declare const BOOKING_OPTION_ALLOW: readonly ["Text", "Flex"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_HIDE_WHEN_ROW_EMPTY as
|
|
1
|
+
import{BOX_HIDE_WHEN_ROW_EMPTY as g}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as s}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as T,DIM as u,INNER_BOX as d,TEXT as _,boxPadding as f,seedNodes as S}from"efficient-web-builder/format/lib/document/seed-parts";import{parseSectionHeadPlacement as b}from"efficient-web-builder/format/lib/sections/section-head-placement";import{BOOKING_KIND_PROP as P,bookingKindRole as k}from"../booking/text-kinds.js";const p="serviceTemplate",O="timeTemplate",B=[{key:"name",label:"Service"},{key:"meta",label:"Duration · price"},{key:"description",label:"Service description",multiline:!0}],E=[{key:"time",label:"Time"},{key:"businessTime",label:"Business time"}],F=[{slot:p,label:"Service template",fields:B},{slot:O,label:"Time template",fields:E}],C=[...B,...E],I=["Text",o],W={[p]:{type:"slot",allow:[...I]},[O]:{type:"slot",allow:[...I]}},y="BookingBox",L="AppointmentBooking",a=(e,t,n={})=>({fontRole:e,size:t,...n});function c(e,t,n,i=!1){const r=k(n[P[t]]);if(!r)return e;const{fontRole:D,size:N,...x}=e;return{...x,role:r,...i?{size:N}:{}}}const m={lineHeight:1.5};function h(e){return{type:o,props:{...T,direction:"column",name:"Service",justify:"center",gap:12,gapPhone:12,...f(16,16),sectionBorder:{width:1}},slots:{[s]:[{type:o,props:{...d,name:"Words",gap:4,gapPhone:4},slots:{[s]:[l("name",{..._,tag:"span"},c(a("heading",18,{weight:500,...m}),"name",e)),l("meta",{...u,tag:"span"},c(a("label",11,{case:"upper",letterSpacing:.14,...m}),"value",e))]}},{type:o,props:{...d,name:"Description",[g]:["description"]},slots:{[s]:[l("description",{...u,tag:"span"},c(a("heading",14,m),"note",e))]}}]}}}function K(e){return{type:o,props:{...T,direction:"column",name:"Time",align:"center",justify:"center",gap:2,gapPhone:2,...f(8,12),sectionBorder:{width:1},sectionHeightMode:"fixed",sectionHeightValue:44,sectionHeightUnit:"px"},slots:{[s]:[l("time",{..._,tag:"span"},c(a("label",12,{weight:600,case:"upper",letterSpacing:.12,align:"center",...m}),"value",e)),{type:o,props:{...d,name:"Business time",align:"center",[g]:["businessTime"]},slots:{[s]:[l("businessTime",{...u,tag:"span"},c(a("label",9,{case:"upper",letterSpacing:.08,align:"center",...m}),"value",e,!0))]}}]}}}function v(e,t={}){return S([h(t)],(n,i)=>i==="0"?`${e}~service`:`${e}~service.${i.slice(2)}`)}function G(e,t={}){return S([K(t)],(n,i)=>i==="0"?`${e}~time`:`${e}~time.${i.slice(2)}`)}function w(e,t){return e===y?t.region==="booking":e===L?t.layout!=="boxes"||b(t.headPlacement)==="own-box":!1}function Y(e,t){if(!w(e,t))return t;const n=t[p]===void 0,i=t[O]===void 0;if(!n&&!i)return t;const r=typeof t.id=="string"&&t.id.trim()?t.id:e;return{...t,...n?{[p]:v(r,t)}:{},...i?{[O]:G(r,t)}:{}}}export{L as APPOINTMENT_BOOKING_TYPE,y as BOOKING_BOX_TYPE,I as BOOKING_OPTION_ALLOW,C as BOOKING_OPTION_FIELDS,B as BOOKING_SERVICE_FIELDS,p as BOOKING_SERVICE_SLOT,F as BOOKING_TEMPLATE_SLOTS,W as BOOKING_TEMPLATE_SLOT_FIELDS,E as BOOKING_TIME_FIELDS,O as BOOKING_TIME_SLOT,v as bookingServiceSeed,G as bookingTimeSeed,w as drawsBookingStep,Y as withBookingTemplates};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { type CardRowFieldSpec } from "efficient-web-builder/format/lib/content/card-template";
|
|
1
2
|
import { type BlockSeed } from "efficient-web-builder/format/lib/document/seed-parts";
|
|
2
3
|
type Props = Record<string, unknown>;
|
|
3
4
|
export declare const CONTACT_TOPIC_SLOT = "template";
|
|
4
5
|
export declare const CONTACT_REASON_SLOT = "reasonTemplate";
|
|
5
6
|
export declare const CONTACT_CHANNEL_SLOT = "channelTemplate";
|
|
7
|
+
export declare const CONTACT_TOPIC_FIELDS: readonly CardRowFieldSpec[];
|
|
8
|
+
export declare const CONTACT_REASON_FIELDS: readonly CardRowFieldSpec[];
|
|
9
|
+
export declare const CONTACT_CHANNEL_FIELDS: readonly CardRowFieldSpec[];
|
|
6
10
|
export declare const CONTACT_TEMPLATE_ALLOW: readonly ["Text", "ImageBlock", "Flex"];
|
|
7
11
|
export declare const contactTopicSeed: () => BlockSeed;
|
|
8
12
|
export declare const contactReasonSeed: () => BlockSeed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_HIDE_WHEN_ROW_EMPTY as
|
|
1
|
+
import{BOX_HIDE_WHEN_ROW_EMPTY as E,CARD_ROW_LINK_PROP as u}from"efficient-web-builder/format/lib/content/card-template";import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as l}from"efficient-web-builder/format/lib/document/container-blocks";import{rowFieldTextSeed as n}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{BOX as b,DIM as r,INNER_BOX as S,LABEL_FACE as N,TEXT as c,boxPadding as d,seedNodes as f,token as T}from"efficient-web-builder/format/lib/document/seed-parts";const _="template",h="reasonTemplate",L="channelTemplate",y={key:"title",label:"Title",plain:!0},$=[{key:"eyebrow",label:"Eyebrow",plain:!0},y,{key:"copy",label:"Body",multiline:!0},{key:"response",label:"Response time"}],M=[y],V=[{key:"label",label:"Label",plain:!0},{key:"value",label:"Value",plain:!0},{key:"sub",label:"Sub line",plain:!0},{key:"href",label:"Link",kind:"link"}],Y=["Text","ImageBlock",o],p=(e,t)=>({...N,...T("label",e),letterSpacing:t,lineHeight:1.5}),m={...p(12,.24),color:"main"},P={textStyle:"heading-3",...T("headingSmall",26),weight:500,case:"upper",lineHeight:1.05,letterSpacing:-.02},x={textStyle:"heading-1",...T("body",14),weight:400,case:"none",lineHeight:1.5,letterSpacing:0,color:"muted"},C=p(12,.22),A=p(12,.2),w={...p(12,.3),color:"main"},R={textStyle:"heading-3",...T("headingSmall",24),weight:500,case:"none",lineHeight:1.2,letterSpacing:-.02},H={...p(12,.2),color:"muted"},s=(e,t,i={})=>({...S,name:e,gap:t,gapPhone:t,...i}),B=()=>({type:o,props:s("Topic",16,{justify:"between",...d(40,32),sectionHeightMode:"fixed",sectionHeightValue:240,sectionHeightUnit:"px"}),slots:{[l]:[{type:o,props:s("Head",16),slots:{[l]:[n("eyebrow",{...c,tag:"p",widthFit:"fill"},m),n("title",{...c,tag:"h3",widthFit:"fill"},P)]}},{type:o,props:s("Foot",24),slots:{[l]:[n("copy",{...r,tag:"p",widthFit:"fill"},x),{type:o,props:{...b,name:"Response",direction:"row",justify:"between",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",...d(0,0),sectionPaddingTop:16,sectionPaddingTopPhone:16,sectionBorder:{top:1},[E]:["response"]},slots:{[l]:[{type:"Text",props:{...r,tag:"p",text:"Response",_partStyles:{text:C}}},n("response",{...c,tag:"p"},C)]}}]}}]}}),I=()=>({type:o,props:{...s("Reason",0),...d(12,16),sectionBorder:{width:1}},slots:{[l]:[n("title",{...r,tag:"p"},A)]}}),k=()=>({type:o,props:{...s("Channel",12),...d(32,20,20,20),sectionPaddingLeft:22,sectionPaddingTopTablet:20,sectionPaddingRightTablet:20,sectionPaddingBottomTablet:20,sectionPaddingLeftTablet:20,sectionBorder:{bottom:1}},slots:{[l]:[n("label",{...c,tag:"p",widthFit:"fill"},w),{type:o,props:{...s("Value",0),[u]:"href"},slots:{[l]:[n("value",{...c,tag:"p",widthFit:"fill"},R)]}},n("sub",{...r,tag:"p",widthFit:"fill"},H)]}});function g(e,t,i){return f([e],(O,a)=>a==="0"?`${t}~${i}`:`${t}~${i}.${a.slice(2)}`)}const F=e=>typeof e.id=="string"&&e.id.trim()?e.id:"ContactRouting";function U(e){const t=e[_]===void 0,i=e[h]===void 0,O=e[L]===void 0;if(!t&&!i&&!O)return e;const a=F(e);return{...e,...t?{[_]:g(B(),a,"topic")}:{},...i?{[h]:g(I(),a,"reason")}:{},...O?{[L]:g(k(),a,"channel")}:{}}}export{V as CONTACT_CHANNEL_FIELDS,L as CONTACT_CHANNEL_SLOT,M as CONTACT_REASON_FIELDS,h as CONTACT_REASON_SLOT,Y as CONTACT_TEMPLATE_ALLOW,$ as CONTACT_TOPIC_FIELDS,_ as CONTACT_TOPIC_SLOT,k as contactChannelSeed,I as contactReasonSeed,B as contactTopicSeed,U as withContactTemplates};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import r from"../../../../../components/wheels-plp/AlloyWheelsListing.js";import{hidableText as n}from"efficient-easel/screen/lib/document/hidable";import{asPlpSortKey as m,listingHiddenFacets as g}from"../../../../wheels/plp-filters.js";import{cardHoverOf as f}from"efficient-web-builder/format/lib/animation/hover";import{phHide as a}from"efficient-web-builder/render/lib/document/blocks/scaffold";import{headInOwnBox as h}from"efficient-web-builder/render/lib/sections/section-to-box";import{FACET_TEMPLATE_SLOT as c}from"../../../../content/facet-row-seed.js";import{AlloyWheelsListingMeta as s,ALLOYWHEELSLISTING_PH as d}from"./meta.js";const k={...s,render:e=>{const t=h(e),i=o=>t?void 0:o;return l(r,{titleLevel:e.titleLevel,heading:i(a(e.heading,d.heading,e.editor)),intro:i(a(e.intro,d.intro,e.editor)),omitHead:t,askForCar:e.askForCar!==!1,gateHeading:n(e.gateHeading),gateIntro:n(e.gateIntro),perPage:e.perPage,columns:e.columns,defaultSort:m(e.defaultSort),ownerId:typeof e.id=="string"?e.id:"",template:e.template,facetTemplate:e[c],hover:f(e,"AlloyWheelsListing"),hiddenFacets:g(e),showPrice:e.showPrice,showInStock:e.showInStock!==!1,kinds:e.kinds,products:e.products,wheels:e.wheels,fieldUsage:e.fieldUsage,editing:e.editor?.isEditing})}};export{k as AlloyWheelsListingRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CARD_LIST_TYPE as
|
|
1
|
+
import{CARD_LIST_TYPE as E,CARD_ROW_FIELD_PROP as h,CARD_ROW_LINK_PROP as k,CARD_TEMPLATE_SLOT as y,registerCardTemplates as F}from"efficient-web-builder/format/lib/content/card-template";import{DIM as o,INNER_BOX as a,TEXT as s,boxPadding as d,fillSlot as H,labelLook as K,labelStyle as U,seedNodes as M,token as c}from"efficient-web-builder/format/lib/document/seed-parts";import{BOX_TYPE as i,CONTAINER_BLOCKS_SLOT as n}from"efficient-web-builder/format/lib/document/container-blocks";import{BOX_ROW_IMAGE_PROP as x}from"efficient-web-builder/format/lib/content/box-card-rule";import{POST_CARD_HEIGHT as V}from"efficient-web-builder/format/lib/post-card-layout";import{EVENTS_FEATURED_DARKEN as v,EVENTS_FEATURED_DARKEN_STYLE as L,EVENTS_FEATURED_PLACEMENT as G}from"../content/events-featured-look.js";import{SH_LINK as W}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{rowFieldTextSeed as l}from"efficient-web-builder/format/lib/document/blocks/general/Cards/card-seed";import{withRelatedTabletColumns as _}from"../sections/product-grid-columns.js";import{bundleColumns as Y}from"../sections/bundle-to-grid.js";import{HERO_PRICE_BLOCK as X,withHeroPriceTemplate as $}from"../content/hero-price-seed.js";import{HERO_OPTION_FIELDS as g,HERO_OPTION_SLOT as j,HERO_OPTION_SLOT_LABEL as z,withHeroOptionTemplate as q}from"../content/hero-option-seed.js";import{FILTER_OPTIONS_FIELD as Q,withFilterChipsTemplate as Z,withFilterTemplate as J}from"../content/filter-card-seed.js";import{FACET_ROW_FIELDS as R,FACET_TEMPLATE_LABEL as ee,FACET_TEMPLATE_SLOT as te,withFacetTemplate as le}from"../content/facet-row-seed.js";import{MENU_LINK_BLOCK as oe,withMenuTemplate as ae}from"../content/menu-card-seed.js";import{CONTACT_CHANNEL_FIELDS as f,CONTACT_CHANNEL_SLOT as ie,CONTACT_REASON_FIELDS as ne,CONTACT_REASON_SLOT as re,CONTACT_TOPIC_FIELDS as S,CONTACT_TOPIC_SLOT as se,withContactTemplates as de}from"../content/contact-card-seed.js";import{ARTICLE_BODY_BLOCK as Te,withArticleBodyTemplate as Ee}from"../content/article-body-seed.js";import{APPOINTMENT_BOOKING_TYPE as ce,BOOKING_BOX_TYPE as _e,BOOKING_OPTION_FIELDS as pe,BOOKING_TEMPLATE_SLOTS as Oe,withBookingTemplates as be}from"../content/booking-card-seed.js";import{PRODUCT_BUY_BLOCK as me,PRODUCT_CARD_FIELDS as p,PRODUCT_COLOUR_BLOCK as Ce,PRODUCT_EYEBROW_BLOCK as Pe,PRODUCT_NAME_BLOCK as he,PRODUCT_PICTURE_BLOCK as ke,PRODUCT_PRICE_BLOCK as ye,PRODUCT_SIZE_BLOCK as Le,PRODUCT_SPECS_BLOCK as ge,productCardSeed as Re,withKitCardTemplate as O,withListingCardTemplate as fe,withProductCardTemplate as b}from"../content/product-card-seed.js";const u="tags",r=K(12),N={textStyle:"heading-3",...c("headingSmall",20),weight:500,lineHeight:1.2,letterSpacing:-.02},A={textStyle:"body-1",...c("body",14),lineHeight:1.55},Se={...N,...c("headingSmall",30)},ue={sectionPaddingTop:24,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:24,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},Ne=V.fallback,Ae=480,Ie=70,De=()=>({type:i,props:{...a,name:"Featured",[x]:"cover",darken:v,darkenStyle:L,darkenPhone:Ie,darkenStylePhone:L,placement:G,direction:"column",gap:8,gapPhone:8,...d(32,32,20,20),sectionHeightMode:"fixed",sectionHeightValue:Ne,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:Ae,sectionHeightUnitPhone:"px",[k]:"href"},slots:{[n]:[l("meta",{...s,tag:"p"},r,!0),l("title",{...s,tag:"h3",widthFit:"fill"},Se),l("excerpt",{...o,tag:"p",widthFit:"fill",maxWidth:384},A),l("dateLabel",{...o,tag:"p"},{...r,color:"muted"})]}}),Be=()=>({type:i,props:{...a,name:"Post",gap:0,gapPhone:0,...d(0,0,0,0),...H("surface"),shadow:!0},slots:{[n]:[{type:"ImageBlock",props:{[h]:"cover",aspect:"16/10",contained:!1}},{type:i,props:{...a,name:"Words",gap:12,gapPhone:12,...ue},slots:{[n]:[{type:i,props:{...a,name:"Meta",direction:"row",wrap:!0,share:"content",sharePhone:"content",phoneRow:2,gap:12,gapPhone:12,...d(0,0,0,0)},slots:{[n]:[l("meta",{...s,tag:"p"},r,!0),l("dateLabel",{...o,tag:"p"},{...r,color:"muted"},!0)]}},l("title",{...s,tag:"h3",widthFit:"fill"},N),l("excerpt",{...o,tag:"p",widthFit:"fill"},A),{type:E,props:{[h]:u},slots:{template:[{type:i,props:{...a,name:"Chip",...d(4,8,4,8),sectionBorder:{width:1}},slots:{[n]:[l("label",{...o,tag:"p"},r)]}}]}},{type:"ButtonBlock",props:{variant:"ghost",label:"Read more",href:"",[k]:"href",...W,icon:"arrow-right",iconPosition:"after",_partStyles:{label:U(12)}}}]}}]}}),we=()=>[De(),Be()];function Fe(e){if(e.template!==void 0)return e;const t=typeof e.id=="string"&&e.id.trim()?e.id:"Events",B=["featured","post"];return{...e,template:M(we(),(xe,w)=>{const[m,...C]=w.split("."),P=B[Number(m)]??`card${m}`;return C.length?`${t}~${P}.${C.join(".")}`:`${t}~${P}`})}}const He={fields:[{key:"cover",label:"Cover",kind:"image",alt:"title"},{key:"meta",label:"Eyebrow"},{key:"dateLabel",label:"Date"},{key:"title",label:"Title"},{key:"excerpt",label:"Excerpt",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:u,label:"Tags",kind:"list",fields:[{key:"label",label:"Tag"}]}],blocks:[{type:E,label:"Card list"}],seedOnInsert:Fe},Ke=["showCardPrice","showCardFinishes","showCardSizes","showCardBuy","showCardPage"],Ue=e=>Object.fromEntries(Object.entries(e).filter(([t])=>!Ke.includes(t))),I={fields:[{key:"label",label:"Label"},{key:"href",label:"Link",kind:"link"}],blocks:[{type:oe,label:"Menu link"}],seed:ae},D=e=>e.dynamic===!0&&e.relationship==="bundles",nt=(e={})=>Re(e),T={fields:p,blocks:[{type:ke,label:"Picture"},{type:Pe,label:"Eyebrow"},{type:he,label:"Name"},{type:ge,label:"Specs"},{type:ye,label:"Price"},{type:Ce,label:"Colour"},{type:Le,label:"Size"},{type:me,label:"Buy"}],seed:e=>{if(e.dynamic!==!0)return b(e);const t=_(e);return D(e)?O(t):b(t)}},Me=[{block:"Reviews",fields:[{key:"quote",label:"Quote"},{key:"title",label:"Title"},{key:"name",label:"Name"},{key:"role",label:"Role · location"},{key:"rating",label:"Rating"},{key:"dateLabel",label:"Date"}],blocks:[{type:"RatingBlock",label:"Rating"}]},{block:"SpecTable",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]},{block:"DetailRows",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"}]},{block:"FooterMenu",...I},{block:"MenuBlock",...I},{block:"ProductGrid",...T},{block:"AlloyWheelsListing",...T,slots:[{slot:y,fields:p},{slot:te,label:ee,fields:R}],fields:[...p,...R],seed:e=>le(fe(e))},{block:"RelatedProducts",...T,seed:e=>{const t=_({...Ue(e),dynamic:!0});return D(t)?O(t):b(t,{legacyWellHonoured:!0})}},{block:"BundleOffer",...T,seed:e=>O(_({...e,columns:Y(e),dynamic:!0}))},{block:"ProductHero",slots:[{slot:y,fields:[]},{slot:j,label:z,fields:g}],fields:g,blocks:[{type:X,label:"Price"}],seed:e=>q($(e))},{block:"FilterBlock",fields:[{key:"label",label:"Filter name"},{key:Q,label:"Options",kind:"list",fields:[{key:"label",label:"Option"},{key:"count",label:"Count"}]}],blocks:[{type:E,label:"Card list"}],seed:J},{block:"FilterChipsBlock",fields:[{key:"label",label:"Pick"},{key:"mark",label:"Remove mark"}],seed:Z},{block:"ContactRouting",slots:[{slot:se,label:"Topic card",fields:S},{slot:re,label:"Reason chip",fields:ne},{slot:ie,label:"Channel row",fields:f}],fields:[...S,...f],seed:de},{block:Te,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:Ee},...[_e,ce].map(e=>({block:e,slots:Oe,fields:pe,seed:t=>be(e,t)})),{block:"Events",...He}];F(Me);export{Me as STOREFRONT_CARD_TEMPLATES,D as drawsKits,we as eventsCardSeeds,nt as productGridCardSeed,Fe as withEventsTemplate};
|
|
@@ -7,5 +7,6 @@ import "./section-to-box-rows-productgrid.js";
|
|
|
7
7
|
import "./section-to-box-rows-events.js";
|
|
8
8
|
import "./section-to-box-rows-detail.js";
|
|
9
9
|
import "./section-to-box-rows-service.js";
|
|
10
|
+
import "./section-to-box-rows-listing.js";
|
|
10
11
|
export declare function renderConfig(): Config;
|
|
11
12
|
export declare function headerRenderConfig(): Config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as u,jsx as E}from"react/jsx-runtime";import{generalRenderMetas as h}from"efficient-web-builder/format/lib/document/blocks/general/metas";import{finishRenderRegistry as g}from"efficient-web-builder/render/lib/document/render-registry";import{buildBlockCategories as S}from"efficient-web-builder/format/lib/document/section-catalog";import{SITE_HEADER_TYPE as a}from"efficient-web-builder/format/lib/document/section-groups";import"./slot-seeds.js";import"./card-templates.js";import"./section-to-box-rows-reviews.js";import"./section-to-box-rows-spec.js";import"./section-to-box-rows-productgrid.js";import"./section-to-box-rows-events.js";import"./section-to-box-rows-detail.js";import"./section-to-box-rows-service.js";import{COMMERCE_METAS as R}from"./blocks/commerce/metas.js";import{SERVICE_METAS as _}from"./blocks/service/metas.js";import P from"./blocks/text-part-shapes.json";import{addPageBlocksFromFooter as y}from"./footer-page-blocks.js";import{LAZY_DRAWS as f}from"./lazy-draws.js";import{drawPublishedStorefrontRoot as T}from"./storefront-root.js";import{withShopperAddressMark as b}from"../../components/catalog/ShopperScope.js";import{SHOPPER_BLOCK_TYPES as k}from"../wheels/shopper-first-paint.js";const A=P,O=(t,e)=>{const r=A[t];return{...e,...r?{textParts:r}:null}};let p=null;function l(){if(p)return p;const t={},e=h();for(const o of Object.keys(e))t[o]={...e[o],render:f[o]};const r={...R,..._};for(const o of Object.keys(r)){const m=k.has(o)?b(f[o]):f[o];t[o]=O(o,{...r[o],render:m})}y(t);const n={root:{render:T},categories:S(),components:t};return g(n),p=n,n}function j(t=l()){const e=t.components,r=Object.keys(e),n=new Set([a]),o=[a];for(;o.length;){const m=o.shift();for(const c of Object.values(e[m]?.fields??{})){if(c?.type!=="slot")continue;const d=c.allow??r.filter(s=>!c.disallow?.includes(s));for(const s of d)n.has(s)||!(s in e)||(n.add(s),o.push(s))}}return[...n]}let i=null;function
|
|
1
|
+
import{Fragment as u,jsx as E}from"react/jsx-runtime";import{generalRenderMetas as h}from"efficient-web-builder/format/lib/document/blocks/general/metas";import{finishRenderRegistry as g}from"efficient-web-builder/render/lib/document/render-registry";import{buildBlockCategories as S}from"efficient-web-builder/format/lib/document/section-catalog";import{SITE_HEADER_TYPE as a}from"efficient-web-builder/format/lib/document/section-groups";import"./slot-seeds.js";import"./card-templates.js";import"./section-to-box-rows-reviews.js";import"./section-to-box-rows-spec.js";import"./section-to-box-rows-productgrid.js";import"./section-to-box-rows-events.js";import"./section-to-box-rows-detail.js";import"./section-to-box-rows-service.js";import"./section-to-box-rows-listing.js";import{COMMERCE_METAS as R}from"./blocks/commerce/metas.js";import{SERVICE_METAS as _}from"./blocks/service/metas.js";import P from"./blocks/text-part-shapes.json";import{addPageBlocksFromFooter as y}from"./footer-page-blocks.js";import{LAZY_DRAWS as f}from"./lazy-draws.js";import{drawPublishedStorefrontRoot as T}from"./storefront-root.js";import{withShopperAddressMark as b}from"../../components/catalog/ShopperScope.js";import{SHOPPER_BLOCK_TYPES as k}from"../wheels/shopper-first-paint.js";const A=P,O=(t,e)=>{const r=A[t];return{...e,...r?{textParts:r}:null}};let p=null;function l(){if(p)return p;const t={},e=h();for(const o of Object.keys(e))t[o]={...e[o],render:f[o]};const r={...R,..._};for(const o of Object.keys(r)){const m=k.has(o)?b(f[o]):f[o];t[o]=O(o,{...r[o],render:m})}y(t);const n={root:{render:T},categories:S(),components:t};return g(n),p=n,n}function j(t=l()){const e=t.components,r=Object.keys(e),n=new Set([a]),o=[a];for(;o.length;){const m=o.shift();for(const c of Object.values(e[m]?.fields??{})){if(c?.type!=="slot")continue;const d=c.allow??r.filter(s=>!c.disallow?.includes(s));for(const s of d)n.has(s)||!(s in e)||(n.add(s),o.push(s))}}return[...n]}let i=null;function Q(){if(i)return i;const t=l(),e=t.components;return i={...t,root:{render:({children:r})=>E(u,{children:r})},components:Object.fromEntries(j(t).map(r=>[r,e[r]]))},i}export{Q as headerRenderConfig,l as renderConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerSectionToBox as m}from"efficient-web-builder/render/lib/sections/section-to-box";import{DIM as h,DROP_COMMON as l,DROP_SIDE_PADDING as g,FOLLOW_THE_BOX as O,INNER_BOX as E,SAME_KEYS as T,SECTION_BOX as _,TEXT as n,wrapperPad as y,wrapperPadKeys as L}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{token as S}from"efficient-web-builder/format/lib/document/seed-parts";import{fluidToken as c}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{PAGE_TITLE_LEVEL_PROP as r}from"efficient-web-builder/format/lib/document/one-h1";import{CARD_TEMPLATE_SLOT as P,templateOnInsert as k,templateOnRead as I}from"efficient-web-builder/format/lib/content/card-template";import{FACET_TEMPLATE_SLOT as b}from"../content/facet-row-seed.js";import"./card-templates.js";const p={top:40,bottom:40,topPhone:40,bottomPhone:40},i=e=>e[r]===2,s={textStyle:"heading-1",...c("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},A=["heading","intro"],a=[P,b];function f(e,t){const d=(t?k:I)("AlloyWheelsListing",e);return Object.fromEntries(a.map(o=>[o,d[o]]))}const x=()=>({name:"List",boxProps:e=>({..._,direction:"column",gap:24,gapPhone:24,...y(e,p)}),box:[...T,...L(p)],parts:[{kind:"group",name:"Heading",props:{...E,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...n,tag:"h1"},style:s,when:e=>!i(e)},{kind:"text",key:"heading",role:"heading",props:{...n,tag:"h2"},style:s,when:i},{kind:"text",key:"intro",role:"body",props:h,style:{textStyle:"body-1",...S("body",15)}}]},{kind:"core",keep:"rest",props:O,derive:{reads:[...a],props:(e,t)=>f(e,t.press===!0)}}],pressKeepsEmpty:A,drop:{...l,...g,[r]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});m({AlloyWheelsListing:x()});export{A as LISTING_HEAD_ROWS};
|
package/dist/words.d.ts
CHANGED
|
@@ -856,6 +856,7 @@ export type WebBuilderPhrase =
|
|
|
856
856
|
| "On the top line"
|
|
857
857
|
| "On this page"
|
|
858
858
|
| "On {count} pages"
|
|
859
|
+
| "On: the pinned box stays on top, and the sections after it scroll under it."
|
|
859
860
|
| "One"
|
|
860
861
|
| "One line"
|
|
861
862
|
| "One row"
|
|
@@ -917,6 +918,7 @@ export type WebBuilderPhrase =
|
|
|
917
918
|
| "Pick who to reach, then a form that routes the message."
|
|
918
919
|
| "Picture"
|
|
919
920
|
| "Picture first"
|
|
921
|
+
| "Pin stops at"
|
|
920
922
|
| "Pin while scrolling"
|
|
921
923
|
| "Pinterest"
|
|
922
924
|
| "Place"
|
|
@@ -1029,6 +1031,7 @@ export type WebBuilderPhrase =
|
|
|
1029
1031
|
| "Scale"
|
|
1030
1032
|
| "Screen"
|
|
1031
1033
|
| "Screen 16:10"
|
|
1034
|
+
| "Screen top"
|
|
1032
1035
|
| "Screens"
|
|
1033
1036
|
| "Scroll"
|
|
1034
1037
|
| "Scroll-Over Text"
|
|
@@ -1160,6 +1163,7 @@ export type WebBuilderPhrase =
|
|
|
1160
1163
|
| "Stats & social proof"
|
|
1161
1164
|
| "Stats with Text"
|
|
1162
1165
|
| "Status chip"
|
|
1166
|
+
| "Stays above"
|
|
1163
1167
|
| "Step *one*"
|
|
1164
1168
|
| "Step *three*"
|
|
1165
1169
|
| "Step *two*"
|
|
@@ -1336,6 +1340,8 @@ export type WebBuilderPhrase =
|
|
|
1336
1340
|
| "Tyre Sizes"
|
|
1337
1341
|
| "URL pill"
|
|
1338
1342
|
| "URL: /{slug}"
|
|
1343
|
+
| "Under the header"
|
|
1344
|
+
| "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."
|
|
1339
1345
|
| "Under this screen width the blocks stand one under another, with the Phone Gap and Padding."
|
|
1340
1346
|
| "Undo"
|
|
1341
1347
|
| "Undo did not work. Nothing changed. Try again."
|
|
@@ -1612,6 +1618,7 @@ export type StorefrontBlocksPhrase =
|
|
|
1612
1618
|
| "Centered"
|
|
1613
1619
|
| "Centre Bore"
|
|
1614
1620
|
| "Channel"
|
|
1621
|
+
| "Channel row"
|
|
1615
1622
|
| "Channels"
|
|
1616
1623
|
| "Checkout"
|
|
1617
1624
|
| "Choose a form in the inspector, under Form — until then this form is hidden on the live page and nothing can be submitted."
|
|
@@ -2008,6 +2015,7 @@ export type StorefrontBlocksPhrase =
|
|
|
2008
2015
|
| "Read all posts →"
|
|
2009
2016
|
| "Read more"
|
|
2010
2017
|
| "Ready when *you are.*"
|
|
2018
|
+
| "Reason chip"
|
|
2011
2019
|
| "Recent issues"
|
|
2012
2020
|
| "Recent posts"
|
|
2013
2021
|
| "Recommended"
|
|
@@ -2058,6 +2066,7 @@ export type StorefrontBlocksPhrase =
|
|
|
2058
2066
|
| "See all results"
|
|
2059
2067
|
| "Select a menu…"
|
|
2060
2068
|
| "Select a product…"
|
|
2069
|
+
| "Service template"
|
|
2061
2070
|
| "Session · 60 min"
|
|
2062
2071
|
| "Session · 60 min · Night"
|
|
2063
2072
|
| "Set a design code"
|
|
@@ -2190,9 +2199,11 @@ export type StorefrontBlocksPhrase =
|
|
|
2190
2199
|
| "Tick label"
|
|
2191
2200
|
| "Tiled"
|
|
2192
2201
|
| "Time"
|
|
2202
|
+
| "Time template"
|
|
2193
2203
|
| "Title / product"
|
|
2194
2204
|
| "To"
|
|
2195
2205
|
| "Tools"
|
|
2206
|
+
| "Topic card"
|
|
2196
2207
|
| "Tracked to your door."
|
|
2197
2208
|
| "Trigger"
|
|
2198
2209
|
| "Trim"
|