PageSourceSearch

https://www.simoncommunity.org.uk/slice---src-components-card-deck-js-0846151fec33c69f0b64.js

js simoncommunity.org.uk collected 2026-10-02 06:19:47 UTC 7,497 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksimon_community=self.webpackChunksimon_community||[]).push([[654],{4126:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}});var r=n(6540),l=n(9291),i=n(6656),o=n(2532);var s=e=>{var t,n,s,a;let{fields:d}=e;return r.createElement("li",{className:"component-card ease group relative flex transform flex-col md:m-2"},d.image.gatsbyImageData&&r.createElement("div",{className:"relative aspect-4/3 overflow-hidden"},r.createElement("div",{className:"prose prose-invert absolute left-0 top-0 z-10 max-w-none bg-brand-light-blue p-4 md:prose-lg md:px-6"},r.createElement(l.$,{field:d.title.richText})),r.createElement(o.G,{className:`${null!=(null===(t=d.button_link)||void 0===t?void 0:t.url)&&"transition duration-500 ease-in group-hover:scale-105"} h-full w-full transform`,image:d.image.gatsbyImageData,alt:d.image.alt||""})),((null===(n=d.button_link)||void 0===n?void 0:n.url)||!d.image.gatsbyImageData&&d.title.text||d.text.text)&&r.createElement("div",{className:"mx-6 flex flex-grow -translate-y-6 flex-col gap-4 bg-white p-4 md:px-6"},r.createElement("div",{className:"prose max-w-none md:prose-lg"},!d.image.gatsbyImageData&&r.createElement(l.$,{field:d.title.richText}),r.createElement(l.$,{field:d.text.richText})),(null===(s=d.button_link)||void 0===s?void 0:s.url)&&r.createElement("div",{className:"mt-auto"},r.createElement(i.s,{className:(d.button_text?"button":"link")+" lg:text-xl",href:null===(a=d.button_link)||void 0===a?void 0:a.url},d.button_text,r.createElement("span",{className:"absolute inset-0","aria-hidden":"true"})))))};var a=e=>{var t;let{slice:n}=e;var i="md:grid-cols-2 max-w-screen-md mx-auto";return 3===n.items.length&&(i="md:grid-cols-3 max-w-screen-xl mx-auto"),4===n.items.length&&(i="md:grid-cols-2 max-w-screen-md mx-auto"),r.createElement("div",{className:"relative z-10 "+(!0===n.primary.background?"bg-brand-lightest-blue":"bg-white")},r.createElement("section",{className:"component-card_deck mx-auto w-full p-6"},r.createElement("div",{className:"prose mx-auto mb-6 max-w-screen-xl text-center md:prose-lg"},r.createElement(l.$,{field:null===(t=n.primary.title)||void 0===t?void 0:t.richText})),r.createElement("ul",{className:`grid grid-cols-1 gap-3 ${i}`},n.items.map((e,t)=>r.createElement(s,{fields:e,key:`card-${t}`})))))}},6656:function(e,t,n){n.d(t,{s:function(){return s}});var r=n(4848),l=n(6540),i=n(3786),o=n(8794);const s=l.forwardRef(function(e,t){const n=(0,o.U)();return(0,r.jsx)(i.s,{ref:t,linkResolver:n.linkResolver,internalComponent:n.internalLinkComponent,externalComponent:n.externalLinkComponent,...e})})},9291:function(e,t,n){n.d(t,{$:function(){return _}});var r=n(4848);const l=(...e)=>(...t)=>{for(let n=0;n<e.length;n++){const r=e[n];if(r){const e=r(...t);if(null!=e)return e}}},i="list-item",o="o-list-item",s="group-list-item",a="group-o-list-item",d="span",c={[i]:"listItem",[o]:"oListItem",[s]:"list",[a]:"oList"},m=e=>(t,n,r,l,i)=>{const o=e[c[t]||t];if(o)return o({type:t,node:n,text:r,children:l,key:i})};var p=n(6540);const h=()=>(++h.i).toString();h.i=0;const u=(e,t=[])=>({key:h(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),x=e=>u({type:d,text:e,spans:[]}),g=e=>{const t=e.slice(0);for(let n=0;n<t.length;n++){const e=t[n];if(e.type===i||e.type===o){const r=[e];for(;t[n+1]&&t[n+1].type===e.type;)r.push(t[n+1]),t.splice(n,1);e.type===i?t[n]={type:s,items:r}:t[n]={type:a,items:r}}}return t},k=e=>{if("text"in e)return u(e,f(e.spans,e));if("items"in e){const t=[];for(let n=0;n<e.items.length;n++)t.push(k(e.items[n]));return u(e,t)}return u(e)},f=(e,t,n)=>{if(!e.length)return[x(t.text)];const r=e.slice(0);r.sort((e,t)=>e.start-t.start||t.end-e.end);const l=[];for(let i=0;i<r.length;i++){const e=r[i],o=n&&n.start||0,s=e.start-o,a=e.end-o,d=t.text.slice(s,a),c=[];for(let t=i;t<r.length;t++){const n=r[t];n!==e&&(n.start>=e.start&&n.end<=e.end?(c.push(n),r.splice(t,1),t--):n.start<e.end&&n.end>e.start&&(c.push({...n,end:e.end}),r[t]={...n,start:e.end}))}0===i&&s>0&&l.push(x(t.text.slice(0,s)));const m={...e,text:d};l.push(u(m,f(c,{...t,text:d},e))),a<t.text.length&&l.push(x(t.text.slice(a,r[i+1]?r[i+1].start-o:void 0)))}return l},y=(e,t)=>v((e=>{const t=g(e),n=[];for(let r=0;r<t.length;r++)n.push(k(t[r]));return{key:h(),children:n}})(e).children,t),v=(e,t)=>
1{const n=[];for(let r=0;r<e.length;r++){const l=e[r],i=t(l.type,l.node,l.text,v(l.children,t),l.key);null!=i&&n.push(i)}return n};var b=n(3786),j=n(5564);const C=e=>{if("direction"in e&&"rtl"===e.direction)return"rtl"};function E({linkResolver:e,field:t,fallback:n,components:i,externalLinkComponent:o,internalLinkComponent:s,...a}){return p.useMemo(()=>{if((0,j.YD)(t)){const n=l("object"==typeof i?m(i):i,(a={linkResolver:e,internalLinkComponent:s,externalLinkComponent:o},m({heading1:({node:e,children:t,key:n})=>(0,r.jsx)("h1",{dir:C(e),children:t},n),heading2:({node:e,children:t,key:n})=>(0,r.jsx)("h2",{dir:C(e),children:t},n),heading3:({node:e,children:t,key:n})=>(0,r.jsx)("h3",{dir:C(e),children:t},n),heading4:({node:e,children:t,key:n})=>(0,r.jsx)("h4",{dir:C(e),children:t},n),heading5:({node:e,children:t,key:n})=>(0,r.jsx)("h5",{dir:C(e),children:t},n),heading6:({node:e,children:t,key:n})=>(0,r.jsx)("h6",{dir:C(e),children:t},n),paragraph:({node:e,children:t,key:n})=>(0,r.jsx)("p",{dir:C(e),children:t},n),preformatted:({node:e,key:t})=>(0,r.jsx)("pre",{children:e.text},t),strong:({children:e,key:t})=>(0,r.jsx)("strong",{children:e},t),em:({children:e,key:t})=>(0,r.jsx)("em",{children:e},t),listItem:({node:e,children:t,key:n})=>(0,r.jsx)("li",{dir:C(e),children:t},n),oListItem:({node:e,children:t,key:n})=>(0,r.jsx)("li",{dir:C(e),children:t},n),list:({children:e,key:t})=>(0,r.jsx)("ul",{children:e},t),oList:({children:e,key:t})=>(0,r.jsx)("ol",{children:e},t),image:({node:e,key:t})=>{const n=(0,r.jsx)("img",{src:e.url,alt:e.alt??void 0,"data-copyright":e.copyright?e.copyright:void 0});return(0,r.jsx)("p",{className:"block-img",children:e.linkTo?(0,r.jsx)(b.s,{linkResolver:a.linkResolver,internalComponent:a.internalLinkComponent,externalComponent:a.externalLinkComponent,field:e.linkTo,children:n}):n},t)},embed:({node:e,key:t})=>(0,r.jsx)("div",{"data-oembed":e.oembed.embed_url,"data-oembed-type":e.oembed.type,"data-oembed-provider":e.oembed.provider_name,dangerouslySetInnerHTML:{__html:e.oembed.html??""}},t),hyperlink:({node:e,children:t,key:n})=>(0,r.jsx)(b.s,{field:e.data,linkResolver:a.linkResolver,internalComponent:a.internalLinkComponent,externalComponent:a.externalLinkComponent,children:t},n),label:({node:e,children:t,key:n})=>(0,r.jsx)("span",{className:e.data.label,children:t},n),span:({text:e,key:t})=>{const n=[];let l=0;for(const i of e.split("\n"))l>0&&n.push((0,r.jsx)("br",{},`${l}__break`)),n.push((0,r.jsx)(p.Fragment,{children:i},`${l}__line`)),l++;return(0,r.jsx)(p.Fragment,{children:n},t)}}))),d=y(t,(e,t,r,l,i)=>{const o=n(e,t,r,l,i);return p.isValidElement(o)&&null==o.key?p.cloneElement(o,{key:i}):o});return(0,r.jsx)(r.Fragment,{children:d})}return null!=n?(0,r.jsx)(r.Fragment,{children:n}):null;var a},[t,s,o,i,e,n])}var L=n(8794);const _=function({components:e,...t}){const n=(0,L.U)(),i=l("object"==typeof e?m(e):e,"object"==typeof n.richTextComponents?m(n.richTextComponents):n.richTextComponents);return(0,r.jsx)(E,{components:i,internalLinkComponent:n.internalLinkComponent,externalLinkComponent:n.externalLinkComponent,...t})}}}]);
2//# sourceMappingURL=slice---src-components-card-deck-js-0846151fec33c69f0b64.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.