1"use strict";(self.webpackChunksantorini_gatsby=self.webpackChunksantorini_gatsby||[]).push([[9839],{2322:function(e,t,n){n.d(t,{v:function(){return w}});var l=n(5893);const r=(...e)=>(...t)=>{for(let n=0;n<e.length;n++){const l=e[n];if(l){const e=l(...t);if(null!=e)return e}}},i="list-item",o="o-list-item",s="group-list-item",a="group-o-list-item",c="span",d={[i]:"listItem",[o]:"oListItem",[s]:"list",[a]:"oList"},u=e=>(t,n,l,r,i)=>{const o=e[d[t]||t];if(o)return o({type:t,node:n,text:l,children:r,key:i})};var h=n(7294);const m=()=>(++m.i).toString();m.i=0;const p=(e,t=[])=>({key:m(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),k=e=>p({type:c,text:e,spans:[]}),y=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 l=[e];for(;t[n+1]&&t[n+1].type===e.type;)l.push(t[n+1]),t.splice(n,1);e.type===i?t[n]={type:s,items:l}:t[n]={type:a,items:l}}}return t},f=e=>{if("text"in e)return p(e,x(e.spans,e));if("items"in e){const t=[];for(let n=0;n<e.items.length;n++)t.push(f(e.items[n]));return p(e,t)}return p(e)},x=(e,t,n)=>{if(!e.length)return[k(t.text)];const l=e.slice(0);l.sort(((e,t)=>e.start-t.start||t.end-e.end));const r=[];for(let i=0;i<l.length;i++){const e=l[i],o=n&&n.start||0,s=e.start-o,a=e.end-o,c=t.text.slice(s,a),d=[];for(let t=i;t<l.length;t++){const n=l[t];n!==e&&(n.start>=e.start&&n.end<=e.end?(d.push(n),l.splice(t,1),t--):n.start<e.end&&n.end>e.start&&(d.push({...n,end:e.end}),l[t]={...n,start:e.end}))}0===i&&s>0&&r.push(k(t.text.slice(0,s)));const u={...e,text:c};r.push(p(u,x(d,{...t,text:c},e))),a<t.text.length&&r.push(k(t.text.slice(a,l[i+1]?l[i+1].start-o:void 0)))}return r},v=(e,t)=>g((e=>{const t=y(e),n=[];for(let l=0;l<t.length;l++)n.push(f(t[l]));return{key:m(),children:n}})(e).children,t),g=(e,t)=>{const n=[];for(let l=0;l<e.length;l++){const r=e[l],i=t(r.type,r.node,r.text,g(r.children,t),r.key);null!=i&&n.push(i)}return n},b="Document",j="Media",C="Web",L=(e,...t)=>{if(!e)return null;const n="link_type"in e?e:{link_type:b,id:(l=e).id,uid:l.uid||void 0,type:l.type,tags:l.tags,lang:l.lang,url:null==l.url?void 0:l.url,slug:null==(r=l.slugs)?void 0:r[0],...l.data&&Object.keys(l.data).length>0?{data:l.data}:{}};var l,r;const[i]=t;let o;switch(o="function"==typeof i||null==i?{linkResolver:i}:{...i},n.link_type){case j:case C:return"url"in n?n.url:null;case b:if("id"in n&&o.linkResolver){const e=o.linkResolver(n);if(null!=e)return e}return"url"in n&&n.url?n.url:null;default:return null}},_=e=>null!=e,E=(e,t={})=>{if(e&&("link_type"in e?_(n=e)&&("id"in n||"url"in n):e)){const n="target"in e?e.target:void 0,l=L(e,t.linkResolver),r=null==l?void 0:l,i="string"==typeof r&&!(e=>{const t=/^(\/(?!\/)|#)/.test(e),n=!t&&!/^https?:\/\//.test(e);return t&&!n})(r),o=t.rel?t.rel({href:r,isExternal:i,target:n}):i?"noreferrer":void 0;return{href:r,target:n,rel:null==o?void 0:o}}var n;return{}},R=h.forwardRef((function({field:e,document:t,linkResolver:n,internalComponent:r,externalComponent:i,...o},s){const{href:a,rel:c,...d}=E(e??t,{linkResolver:n,rel:"function"==typeof o.rel?o.rel:void 0});let u=c;"rel"in o&&"function"!=typeof o.rel&&(u=o.rel);const h=("href"in o?o.href:a)||"",m=r||"a",p=i||"a",k=h&&(e=>{const t=/^(\/(?!\/)|#)/.test(e),n=!t&&!/^https?:\/\//.test(e);return t&&!n})(h)?m:p;return(0,l.jsx)(k,{ref:s,...d,...o,href:h,rel:u})}));function N({linkResolver:e,field:t,fallback:n,components:i,externalLinkComponent:o,internalLinkComponent:s,...a}){return h.useMemo((()=>{if((e=>!!_(e)&&(1===e.length&&"text"in e[0]?!!e[0].text:!!e.length))(t)){const n=r("object"==typeof i?u(i):i,(a={linkResolver:e,internalLinkComponent:s,externalLinkComponent:o},u({heading1:({children:e,key:t})=>(0,l.jsx)("h1",{children:e},t),heading2:({children:e,key:t})=>(0,l.jsx)("h2",{children:e},t),heading3:({children:e,key:t})=>(0,l.jsx)("h3",{children:e},t),heading4:({children:e,key:t})=>(0,l.jsx)("h4",{children:e},t),heading5:({children:e,key:t})=>(0,l.jsx)("h5",{children:e},t),heading6:({children:e,key:t})=>(0,l.jsx)("h6",{children:e},t),paragraph:({children:e,key:t})=>(0,l.jsx)("p",{children:e}
1,t),preformatted:({node:e,key:t})=>(0,l.jsx)("pre",{children:e.text},t),strong:({children:e,key:t})=>(0,l.jsx)("strong",{children:e},t),em:({children:e,key:t})=>(0,l.jsx)("em",{children:e},t),listItem:({children:e,key:t})=>(0,l.jsx)("li",{children:e},t),oListItem:({children:e,key:t})=>(0,l.jsx)("li",{children:e},t),list:({children:e,key:t})=>(0,l.jsx)("ul",{children:e},t),oList:({children:e,key:t})=>(0,l.jsx)("ol",{children:e},t),image:({node:e,key:t})=>{const n=(0,l.jsx)("img",{src:e.url,alt:e.alt??void 0,"data-copyright":e.copyright?e.copyright:void 0});return(0,l.jsx)("p",{className:"block-img",children:e.linkTo?(0,l.jsx)(R,{linkResolver:a.linkResolver,internalComponent:a.internalLinkComponent,externalComponent:a.externalLinkComponent,field:e.linkTo,children:n}):n},t)},embed:({node:e,key:t})=>(0,l.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,l.jsx)(R,{field:e.data,linkResolver:a.linkResolver,internalComponent:a.internalLinkComponent,externalComponent:a.externalLinkComponent,children:t},n),label:({node:e,children:t,key:n})=>(0,l.jsx)("span",{className:e.data.label,children:t},n),span:({text:e,key:t})=>{const n=[];let r=0;for(const i of e.split("\n"))r>0&&n.push((0,l.jsx)("br",{},`${r}__break`)),n.push((0,l.jsx)(h.Fragment,{children:i},`${r}__line`)),r++;return(0,l.jsx)(h.Fragment,{children:n},t)}}))),c=v(t,((e,t,l,r,i)=>{const o=n(e,t,l,r,i);return h.isValidElement(o)&&null==o.key?h.cloneElement(o,{key:i}):o}));return(0,l.jsx)(l.Fragment,{children:c})}return null!=n?(0,l.jsx)(l.Fragment,{children:n}):null;var a}),[t,s,o,i,e,n])}var T=n(3696);const w=function({components:e,...t}){const n=h.useContext(T.Z)||{},i=r("object"==typeof e?u(e):e,"object"==typeof n.richTextComponents?u(n.richTextComponents):n.richTextComponents);return(0,l.jsx)(N,{components:i,internalLinkComponent:n.internalLinkComponent,externalLinkComponent:n.externalLinkComponent,...t})}},6434:function(e,t,n){var l=n(7294),r=n(4160);const i=e=>{var t;let{data:n,callback:i}=e;const o=`button-${null==n?void 0:n.button_theme}`,s=null==n||null===(t=n.button_title)||void 0===t?void 0:t.text,a=null==n?void 0:n.button_link;return null!=a&&a.url?l.createElement(r.Link,{className:`button ${o}`,to:null==a?void 0:a.url,target:null==a?void 0:a.target},s):l.createElement("button",{className:`button ${o}`,type:"button",onClick:i},s)};t.Z=(0,l.memo)(i)},7479:function(e,t,n){n.d(t,{a:function(){return r}});var l=n(7294);const r=(e,t)=>{const{0:n,1:r}=(0,l.useState)(t),{0:i,1:o}=(0,l.useState)(!1);return(0,l.useEffect)((()=>{const t=window.matchMedia(e);r(t.matches),o(!0);const n=e=>{r(e.matches)};return t.addEventListener?t.addEventListener("change",n):t.addListener(n),()=>t.removeEventListener?t.removeEventListener("change",n):t.removeListener(n)}),[e]),{isMatching:n,calculated:i}}},9839:function(e,t,n){n.r(t);var l=n(7294),r=n(2322),i=n(8738),o=n(5624),s=n(6434),a=n(7479);const c=e=>{let{slice:t}=e;const{primary:n,items:c}=t,d=(0,o.to)(null==n?void 0:n.background_image.gatsbyImageData),{isMatching:u,calculated:h}=(0,a.a)("(max-width:510px)",!0),m=(0,l.useMemo)((()=>{var e,t;return l.createElement("div",{className:"container"},l.createElement("div",{className:"sustainability-description"},l.createElement(r.v,{field:null==n||null===(e=n.title)||void 0===e?void 0:e.richText}),l.createElement("p",{className:"p-18"},null==n||null===(t=n.description)||void 0===t?void 0:t.text),l.createElement(s.Z,{data:n})))}),[n]);return l.createElement("section",{className:"section sustainability-section"},!u&&h?l.createElement(i.Z,Object.assign({Tag:"div"},d),m):m)};t.default=(0,l.memo)(c)}}]); 2//# sourceMappingURL=9839-dd2f2c252b502814288e.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.