PageSourceSearch

https://santorini-gatsby-prismic.netlify.app/6486-d89a45e6fe4be05df959.js

js santorini-gatsby-prismic.netlify.app collected 2026-10-03 11:23:19 UTC 15,455 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksantorini_gatsby=self.webpackChunksantorini_gatsby||[]).push([[6486],{6486:function(e,t,n){n.r(t),n.d(t,{default:function(){return je}});var i=n(4160),r=n(836),a=n(5785);const s="Group",o="Image",l="Link",c="Slices",d="StructuredText",u="Slice",p="SharedSlice";var m=n(610);const g=e=>null!=e,f=e=>!!e.length,h=e=>!!g(e)&&(1===e.length&&"text"in e[0]?!!e[0].text:!!e.length),y=e=>g(e)&&!!e.url;var v=n(361);const b=/["'&<>]/,w=e=>{const t=""+e,n=b.exec(t);if(!n)return t;let i,r="",a=0,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}s!==a&&(r+=t.substring(s,a)),s=a+1,r+=i}return s!==a?r+t.substring(s,a):r},k=(e,t)=>{const n={...t};"data"in e&&"label"in e.data&&e.data.label&&(n.class=n.class?`${n.class} ${e.data.label}`:e.data.label);const i=[];for(const r in n){const e=n[r];e&&("boolean"==typeof e?i.push(r):i.push(`${r}="${w(e)}"`))}return i.length&&i.unshift(""),i.join(" ")},P=e=>e&&"function"!=typeof e?e:{},x=(e,t)=>{const n=P(t);return({node:t,children:i})=>`<${e}${k(t,n)}>${i}</${e}>`},_=e=>{const t=P(e);return({node:e})=>`<pre${k(e,t)}>${w(e.text)}</pre>`},j=(e,t)=>{const n=P(t);return({node:t})=>{const i={...n,src:t.url,alt:t.alt,copyright:t.copyright};let r=`<img${k(t,i)} />`;return t.linkTo&&(r=$(e)({type:"hyperlink",node:{type:"hyperlink",data:t.linkTo,start:0,end:0},text:"",children:r,key:""})),`<p class="block-img">${r}</p>`}},I=e=>{const t=P(e);return({node:e})=>{const n={...t,"data-oembed":e.oembed.embed_url,"data-oembed-type":e.oembed.type,"data-oembed-provider":e.oembed.provider_name};return`<div${k(e,n)}>${e.oembed.html}</div>`}},$=(e,t)=>{const n=P(t);return({node:t,children:i})=>{const r={...n};return t.data.link_type===v.U.Web?(r.href=t.data.url,r.target=t.data.target,r.rel="noopener noreferrer"):t.data.link_type===v.U.Document?r.href=(0,m.s)(t.data,{linkResolver:e}):t.data.link_type===v.U.Media&&(r.href=t.data.url),`<a${k(t,r)}>${i}</a>`}},R="list-item",Z="o-list-item",L="group-list-item",A="group-o-list-item",D="span",S=()=>(++S.i).toString();S.i=0;const C=(e,t=[])=>({key:S(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),O=e=>C({type:D,text:e,spans:[]}),U=e=>{const t=e.slice(0);for(let n=0;n<t.length;n++){const e=t[n];if(e.type===R||e.type===Z){const i=[e];for(;t[n+1]&&t[n+1].type===e.type;)i.push(t[n+1]),t.splice(n,1);e.type===R?t[n]={type:L,items:i}:t[n]={type:A,items:i}}}return t},z=e=>{if("text"in e)return C(e,B(e.spans,e));if("items"in e){const t=[];for(let n=0;n<e.items.length;n++)t.push(z(e.items[n]));return C(e,t)}return C(e)},B=(e,t,n)=>{if(!e.length)return[O(t.text)];const i=e.slice(0);i.sort(((e,t)=>e.start-t.start||t.end-e.end));const r=[];for(let a=0;a<i.length;a++){const e=i[a],s=n&&n.start||0,o=e.start-s,l=e.end-s,c=t.text.slice(o,l),d=[];for(let t=a;t<i.length;t++){const n=i[t];n!==e&&(n.start>=e.start&&n.end<=e.end?(d.push(n),i.splice(t,1),t--):n.start<e.end&&n.end>e.start&&(d.push({...n,end:e.end}),i[t]={...n,start:e.end}))}0===a&&o>0&&r.push(O(t.text.slice(0,o)));const u={...e,text:c};r.push(C(u,B(d,{...t,text:c},e))),l<t.text.length&&r.push(O(t.text.slice(l,i[a+1]?i[a+1].start-s:void 0)))}return r},M=(e,t)=>F((e=>{const t=U(e),n=[];for(let i=0;i<t.length;i++)n.push(z(t[i]));return{key:S(),children:n}})(e).children,t),F=(e,t)=>{const n=[];for(let i=0;i<e.length;i++){const r=e[i],a=t(r.type,r.node,r.text,F(r.children,t),r.key);null!=a&&n.push(a)}return n},T={[R]:"listItem",[Z]:"oListItem",[L]:"list",[A]:"oList"},N=(e,t)=>{const n=(e,t)=>"function"==typeof e?n=>e(n)||t(n):t,i={heading1:n(null==t?void 0:t.heading1,x("h1",null==t?void 0:t.heading1)),heading2:n(null==t?void 0:t.heading2,x("h2",null==t?void 0:t.heading2)),heading3:n(null==t?void 0:t.heading3,x("h3",null==t?void 0:t.heading3)),heading4:n(null==t?void 0:t.heading4,x("h4",null==t?void 0:t.heading4)),heading5:n(null==t?void 0:t.heading5,x("h5",null==t?void 0:t.heading5)),heading6:n(null==t?void 0:t.heading6,x("h6",null==t?void 0:t.heading6)),paragraph:n(null==t?void 0:t.paragraph,x("p",null==t?void 0:t.paragraph)),preformatted:n(null==t?void 0:t.preformatted,_(null==t?void 0:t.preformatted)),strong:n(null==t?void 0:t.strong,x("strong",null==t?void 0:t.strong)),em:n(null==t?void 0:t.em,x("em",null==t?void 0:t.em)),listItem:n(null==t?void 0:t.listItem,x("li",null==t?void 0:t.listItem)),oListItem:n(null==t?void 0:t.oListItem,x("li",null==t?void 0:t.oListItem)),list:n(null==t?void 0:t.list,x("ul",null==t?void 0:t.list)),oList:n(null==t?void 0:t.oList,x("ol",null==t?void 0:t.oList)),image:n(null==t?void 0:t.image,j(e,null==t?void 0:t.image)),embed:n(null==t?void 0:t.embed,I(null==t?void 0:t.embed)),hyperlink:n(null==t?void 0:t.hyperlink,$(e,null==t?void 0:t.hyperlink)),label:n(null==t?void 0:t.label,x("span",null==t?void 0:t.label)),span:n(null==t?void 0:t.span,(({text:e})=>e?w(e).replace(/\n/g,"<br />"):""))};return q(i)},q=e=>{const t={};for(const n in e){const i=e[n];i&&(t[n]=e=>i({...e,children:e.children.join("")}))}return(e=>(t,n,i,r,a)=>{const s=e[T[t]||t];if(s)return s({type:t,node:n,text:i,children:r,key:a})})(t)};var E=n(8032);const H=(e,t)=>{const n=new URL(e);for(const r in t){const e=r.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)),i=t[r];void 0===i?n.searchParams.delete(e):Array.isArray(i)?n.searchParams.set(e,i.join(",")):n.searchParams.set(e,`${i}`)}const i=n.searchParams.get("s");return i&&(n.searchParams.delete("s"),n.searchParams.append("s",i)),n.toString()};const W={fit:"max"};var G=n(6780),K=n(8581);var Q=function(){return Q=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Q.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function J(e){return e.toLowerCase()}var V=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],X=/[^A-Z0-9]+/gi;function Y(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function ee(e,t){var n=e.charAt(0),i=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+i:""+n.toUpperCase()+i}function te(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function ne(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,i=void 0===n?V:n,r=t.stripRegexp,a=void 0===r?X:r,s=t.transform,o=void 0===s?J:s,l=t.delimiter,c=void 0===l?" ":l,d=Y(Y(e,i,"$1\0$2"),a,"\0"),u=0,p=d.length;"\0"===d.charAt(u);)u++;for(;"\0"===d.charAt(p-1);)p--;return d.slice(u,p).split("\0").map(o).join(c)}(e,Q({delimiter:"",transform:ee},t))}const ie=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne(t.filter(Boolean).join(" "),{transform:te})},re=()=>(++re.i).toString();re.i=0;const ae=e=>e.replace(/-/g,"_"),se=(e,t)=>new Proxy(e,{get(e,n,i){if("document"===n){if((0,K.n)(e,"id")&&"string"==typeof e.id)return(0,G.M)(e.id)||null}else if("url"===n&&(0,K.n)(e,"id")&&"string"==typeof e.id){const n=(0,G.M)(e.id);if(n)return(0,m.s)(n.raw,{linkResolver:t.linkResolver})}return Reflect.get(e,n,i)}}),oe=e=>H(e.baseUrl,{...W,...e.options.imageImgixParams,fm:e.format&&"auto"!==e.format?e.format:void 0,w:e.width,h:e.height}),le=(e,t)=>
1({...e,get url(){return y(e)?H(e.url,{...W,...t.imageImgixParams}):null},get gatsbyImageData(){return y(e)?(0,E.f)({baseUrl:e.url,sourceWidth:e.dimensions.width,sourceHeight:e.dimensions.height,urlBuilder:oe,options:{imageImgixParams:t.imageImgixParams}}):null},get localFile(){return y(e)?{publicURL:e.url,childImageSharp:{get gatsbyImageData(){return(0,E.f)({baseUrl:e.url,sourceWidth:e.dimensions.width,sourceHeight:e.dimensions.height,urlBuilder:oe,options:{imageImgixParams:t.imageImgixParams}})}}}:null}}),ce=async(e,t,n,i,r,y)=>{switch(null==e?void 0:e.type){case c:{const s=t;return g(w=s)&&f(w)?await Promise.all(s.map((async t=>{var s,o;const l=null==(o=null==(s=e.config)?void 0:s.choices)?void 0:o[t.slice_type];if(l){const e={...t,id:re(),__typename:ie.apply(void 0,["Prismic",y.typePrefix].concat((0,a.Z)(n),[t.slice_type]))};if(l.type===u)e.primary=await de(t.primary,l["non-repeat"]||{},[].concat((0,a.Z)(n),[t.slice_type,"primary"]),i,r,y),e.items=await Promise.all(t.items.map((async e=>await de(e,l.repeat||{},[].concat((0,a.Z)(n),[t.slice_type,"item"]),i,r,y))));else if(l.type===p){const s=t,o=i.find((e=>e.id===t.slice_type)),l=null==o?void 0:o.variations.find((e=>e.id===s.variation));o&&l&&(e.__typename=ie("Prismic",y.typePrefix,o.id),e.primary=await de(t.primary,l.primary||{},[].concat((0,a.Z)(n),[t.slice_type,"primary"]),i,r,y),e.items=await Promise.all(t.items.map((async e=>await de(e,l.items||{},[].concat((0,a.Z)(n),[t.slice_type,"item"]),i,r,y)))))}return e}return t}))):[]}case s:{const a=t;return g(b=a)&&f(b)?await Promise.all(a.map((async t=>{var a;const s=e;return await de(t,(null==(a=s.config)?void 0:a.fields)||{},n,i,r,y)}))):[]}case l:{var v;const e=t,n={...e,target:"target"in e&&e.target?e.target||null:void 0,url:null!==(v=(0,m.s)(e,{linkResolver:r.linkResolver}))&&void 0!==v?v:null,raw:e,localFile:null};return"Media"===e.link_type&&"url"in e&&e.url&&(n.localFile={publicURL:e.url}),se(n,r)}case d:{const e=t;return{get html(){return h(e)?((e,...t)=>{if(e){const[n,i]=t;let r,a;return r="function"==typeof n||null==n?{linkResolver:n,serializer:i}:{...n},a=r.serializer?"function"==typeof r.serializer?((...e)=>(...t)=>{for(let n=0;n<e.length;n++){const i=e[n];if(i){const e=i(...t);if(null!=e)return e}}})(((e,t,n,i,a)=>r.serializer(e,t,n,i.join(""),a)),N(r.linkResolver)):N(r.linkResolver,r.serializer):N(r.linkResolver),M(e,a).join("")}return null})(e,{linkResolver:r.linkResolver,serializer:r.htmlSerializer}):null},get text(){return h(e)?((e,...t)=>{if(e){const[n]=t;let i;return i="string"==typeof n?{separator:n}:{...n},((e,t=" ")=>{let n="";for(let i=0;i<e.length;i++)"text"in e[i]&&(n+=(n?t:"")+e[i].text);return n})(e,i.separator)}return null})(e):null},richText:e,raw:e}}case o:{const n=t;return{...le(n,y),get thumbnails(){var t;const i=e,a=r.transformFieldName||ae;if(null==(t=i.config)?void 0:t.thumbnails){const e={};for(const t of i.config.thumbnails){e[a(t.name)]=le(n[t.name],y)}return e}}}}default:return t}var b,w},de=async(e,t,n,i,r,s)=>{const o={},l=Object.keys(t);return await Promise.all(l.map((async l=>{if("uid"!==l){const c=(r.transformFieldName||ae)(l);o[c]=await ce(t[l],e[l],[].concat((0,a.Z)(n),[l]),i,r,s)}}))),o},ue=async(e,t,n,i,r)=>{var s;const o={...e,__typename:ie("Prismic",r.typePrefix,t.id),_previewable:e.id,prismicId:e.id,id:re(),url:null!==(s=(0,m.s)(e,{linkResolver:i.linkResolver}))&&void 0!==s?s:null,dataRaw:e.data,raw:e,alternate_languages:e.alternate_languages.map((e=>se(e,i)))};if(Object.keys(e.data).length>0){const s=Object.assign.apply(Object,[{}].concat((0,a.Z)(Object.values(t.json))));o.data=await de(e.data,s,[t.id,"data"],n,i,r)}return o},pe=async(e,t,n)=>{const i=Object.keys(t);return(await Promise.all(i.map((async i=>(async(e,t,n)=>{switch(t.type){case c:{const i=e;return(await Promise.all(i.map((async e=>{var i,r,s;const o=null==(r=null==(i=t.config)?void 0:i.choices)?void 0:r[e.slice_type];if(o){if(o.type===u)return(await Promise.all([pe(e.primary,o["non-repeat"]||{},n)].concat((0,a.Z)(e.items.map((async e=>pe(e,o.repeat||{},n))))))).flat();if(o.type===p){const t=e,i=null==(s=n.find((t=>t.id===e.slice_type)))?void 0:s.variations.find((e=>e.id===t.variation));return i?(await Promise.all([pe(e.primary,i.primary||{},n)].concat((0,a.Z)(e.items.map((async e=>pe(e,i.items||{},n))))))).flat():[]}return[]}return[]})))).flat()}case s:{const i=e;return(await Promise.all(i.map((async e=>{var i;const r=t;return await pe(e,(null==(i=r.config)?void 0:i.fields)||{},n)})))).flat()}case l:{const t=e;if("id"in t&&!t.isBroken)return[t.id]}default:return[]}})(e[i],t[i],n))))).flat()},me=async function(e,t,n,i,s,o,l,c,d,u){if(void 0===c&&(c=0),void 0===d&&(d=3),void 0===u&&(u=[]),c>=d)return void console.warn(`The maximum depth to which gatsby-plugin-prismic-previews will fetch linked documents (${d} levels deep) was reached. Any Link field's \`document\` property nested below ${d} levels deep will return undefined.`);const p=[].concat((0,a.Z)(u),(0,a.Z)(e.map((e=>e.id)))),m=(await Promise.all(e.map((async e=>(async(e,t,n)=>{const i=t.find((t=>t.id===e.type));if(i){const t=Object.assign.apply(Object,[{}].concat((0,a.Z)(Object.values(i.json)))),r=await pe(e.data,t,n),s=e.alternate_languages.map((e=>e.id));return r.push.apply(r,(0,a.Z)(s)),r}return[]})(e,s,o))))).flat(),g=m.filter((e=>!p.includes(e)));if(g.length>0){const e=await t.getAllByIDs((0,a.Z)(new Set(g)),{signal:l.signal});await Promise.all([Promise.all(e.map((async e=>{const t=s.find((t=>t.id===e.type));if(t){const a=await ue(e,t,o,n,i);r.K.getState().addDocument(a)}}))),me(e,t,n,i,s,o,l,c+1,d,[].concat((0,a.Z)(p),(0,a.Z)(g)))])}};var ge=n(978),fe=n(9248);const he=()=>/\/previews\/.*~.*\?websitePreviewId/.test((0,fe.k)()||""),ye=async e=>{let{client:t,abortController:n}=e;const i=n.signal,r=await t.getFirst({signal:i});if(he()){const e=await t.dangerouslyGetAll({predicates:[ge.h.dateBetween("document.last_publication_date",Date.parse(r.last_publication_date),Date.parse(r.last_publication_date)+1e3),ge.h.not("document.id",r.id)],signal:i});return[r].concat((0,a.Z)(e))}return[r]};var ve=n(2194),be=n(5744);const we=async e=>{let{client:t,abortController:n,pluginOptions:i}=e;if(he()){const e=i.graphQLEndpoint||(e=>{if((0,be.Z)(e))return`https://${e}
1.cdn.prismic.io/graphql`;throw new ve.b(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)})(i.repositoryName),r=[];let a,s=!1;do{const i=new URL(e),o=a?`,after:"${a}"`:"";i.searchParams.set("query",`query AllDocumentIDs{_allDocuments(first:100${o}){pageInfo{endCursor,hasNextPage}edges{node{_meta{id}}}}}`);const l=await t.graphQLFetch(i.toString(),{signal:n.signal}),c=await l.json();for(let e=0;e<c.data._allDocuments.edges.length;e++)r.push(c.data._allDocuments.edges[e].node._meta.id);a=c.data._allDocuments.pageInfo.endCursor,s=c.data._allDocuments.pageInfo.hasNextPage}while(s);return r}return[]};var ke=n(3173),Pe=n(8110),xe=n(91),_e=n(7604);const je=async(e,t)=>{const n=r.K.getState();if(n.isBootstrapped)return;const a=(0,xe.l)(e);if(!a)return void console.error((0,ke.l)(e,'Plugin options could not be found. Did you add "gatsby-plugin-prismic-previews" for this repository to your app\'s "gatsby-config.js" file?'));const s=(0,_e.H)(e);if(!s)return void console.error((0,ke.l)(e,'Repository configuration could not be found. Did you add <PrismicPreviewProvider> to your "gatsby-browser.js" and "gatsby-ssr.js"? It must contain a repository configuration object for this repository.'));const o=(0,Pe.s)(a),l=t.signal;await o.getCachedRepository();const[c,d]=await Promise.all([we({client:o,abortController:t,pluginOptions:a}),ye({client:o,abortController:t})]);c.length&&n.setPublishedDocumentIDs(c);const u=await fetch((0,i.withAssetPrefix)("/static/e4d3fbe5c779d7aba59901d3c31c37f9.json"),{signal:l}),p=(await u.json())[a.repositoryName];await Promise.all([me(d,o,a,s,p.customTypeModels,p.sharedSliceModels,t),Promise.all(d.map((async e=>{const t=p.customTypeModels.find((t=>t.id===e.type));if(t){const i=await ue(e,t,p.sharedSliceModels,s,a);n.addDocument(i)}})))]),n.setIsBootstrapped(!0)}}}]);
2//# sourceMappingURL=6486-d89a45e6fe4be05df959.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.