1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`45cd1b50abb4a09678f0cd171d36dc2dec888a52`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3bc63f85-46d9-4bf8-ace2-8bd0a7ada141`,e._sentryDebugIdIdentifier=`sentry-dbid-3bc63f85-46d9-4bf8-ace2-8bd0a7ada141`)}catch{}})();import{o as e}from"./B4swkjZV.js";import{En as t,g as n}from"./X1fH4ICN.js";import{n as r}from"./CL7xc2El.js";import{h as i}from"./Y9E2WAYs.js";import{t as a}from"./B3siTBSS.js";import{t as o}from"./CHCPW-zq.js";import{t as s}from"./CA_6EcIB.js";import{t as c}from"./DMsNY-gX.js";var l={de:`patenschaft`,fr:`parrainage`,en:`sponsorship`};function u(e){let t=e?.split(`-`)[0];return t&&l[t]||null}function d(e,t){let n=u(t);return n?`${p(e)}/${n}`:null}function f(e,t){let n=u(t);if(!n)return null;let r=p(e),i=`/${n}`;if(!r.endsWith(i)||r.length<=i.length)return null;let a=r.slice(0,-i.length);return a.startsWith(`/`)?a:`/${a}`}function p(e){return e.replace(/\/+$/,``)}var m=()=>{let{locale:e}=r();return{godparentDetailUrl:(t,n)=>d(t,n??e.value),speciesUriFromGodparentDetailUri:t=>f(t,e.value)}};s(` 2 fragment GodparentDetailSpecies on EntryInterface { 3 __typename 4 id 5 title 6 url 7 blueprint 8 9 alternates { 10 ...PageAlternate 11 } 12 13 seo { 14 ...SEO 15 } 16 17 breadcrumbs(get_full_path_of_mount_page: true) { 18 title 19 url 20 } 21 22 ... on Entry_Species_Animal { 23 ...HeaderGodparentDetailAnimal 24 color_hash 25 has_godparent 26 is_favorite 27 } 28 ... on Entry_Species_Plant { 29 ...HeaderGodparentDetailPlant 30 color_hash 31 has_godparent 32 is_favorite 33 } 34 } 35`);var h=s(` 36 query GodparentDetailPage($speciesUri: String!, $site: String!) { 37 species: speciesEntry(uri: $speciesUri, site: $site) { 38 ...GodparentDetailSpecies 39 } 40 normalTemplate: entries( 41 collection: ["pages"] 42 site: $site 43 limit: 1 44 sort: ["id"] 45 filter: { blueprint: "godparent_detail" } 46 ) { 47 total 48 data { 49 ... on Entry_Pages_GodparentDetail { 50 ...BlueprintPageGodparentDetail 51 } 52 } 53 } 54 favoriteTemplate: entries( 55 collection: ["pages"] 56 site: $site 57 limit: 1 58 sort: ["id"] 59 filter: { blueprint: "godparent_detail_favorite" } 60 ) { 61 total 62 data { 63 ... on Entry_Pages_GodparentDetailFavorite { 64 ...BlueprintPageGodparentDetailFavorite 65 } 66 } 67 } 68 } 69`),g=()=>{let{$gql:t}=e(),{t:n}=r(),{godparentDetailUrl:i}=m(),a=(e,t)=>e?{...e,compiled_title:t,og_title:t,twitter_title:t,canonical_url:e.canonical_url?i(e.canonical_url):null,alternate_locales:e.alternate_locales?.flatMap(e=>{let t=e?.url&&i(e.url,e.site?.locale);return t?[{...e,url:t}]:[]})??null}:null;return{fetchGodparentDetailPage:async(e,r,o)=>{let{species:s,normalTemplate:c,favoriteTemplate:l}=await t(h,{speciesUri:r,site:o});if(s?.__typename!==`Entry_Species_Animal`&&s?.__typename!==`Entry_Species_Plant`||!s.has_godparent)return null;let u=(s.annual_fee??0)>=3e3?l?.data[0]:c?.data[0];if(!u)return null;let d=n(`species.godparent_page.page_title`,{species:s.title});return{...u,color_hash:s.color_hash,godparent_species:s,seo:a(s.seo,d),alternates:s.alternates?.flatMap(e=>{let t=e?.url&&i(e.url,e.locale);return!e||!t?[]:[{...e,url:t,permalink:e.permalink?i(e.permalink,e.locale):e.permalink}]})??null,breadcrumbs:[...s.breadcrumbs??[],{title:d,url:e}]}}}};s(` 70 fragment PageAlternate on AlternateEntry { 71 locale 72 url 73 permalink 74 } 75`),s(` 76 fragment PageEntry on EntryInterface { 77 id 78 edit_url 79 blueprint 80 81 # blueprints 82 ...Blueprints 83 84 # alternates for language switching 85 alternates { 86 ...PageAlternate 87 } 88 89 # SEO Pro 90 seo { 91 ...SEO 92 } 93 } 94`);var _=s(` 95 query Page($uri: String!, $site: String!) { 96 entry(uri: $uri, site: $site) { 97 ...PageEntry 98 } 99 } 100`),v=s(` 101 query SponsorShopPage($uri: String!, $site: String!) { 102 sponsorShopEntry(uri: $uri, site: $site) { 103 ...PageEntry 104 } 105 } 106`),y=s(` 107 query MicrositePage($host: String!, $uri: String!, $site: String!) { 108 entry: micrositeEntry(host: $host, uri: $uri, site: $site) { 109 id 110 edit_url 111 blueprint 112 113 ...BlueprintMicrosite 114 115 alternates { 116 ...PageAlternate 117 } 118 119 seo { 120 ...SEO 121 } 122 } 123 } 124`),b=r=>{let{$gql:s}=e(),{uri:l,lang:u}=o(),{isMicrositeHost:d,requestHost:f}=c(),{fetchGodparentDetailPage:p}=g(),{speciesUriFromGodparentDetailUri:h}=m(),b=i(),S=n(()=>r?t(r):l.value),C=n(()=>b.path);return a({queryKey:n(()=>[`statamic`,`page`,d.value?`microsite`:`main`,...d.value?[f.value]:[],S.value,C.value,u.value]),queryFn:async()=>
124{if(d.value){let e=f.value;return e?(await s(y,{host:e,uri:S.value,site:u.value})).entry:null}let e={uri:S.value,site:u.value};if(x(S.value)){let t=await s(v,e);if(t.sponsorShopEntry)return t.sponsorShopEntry}let t=h(S.value);if(t){let e=await p(S.value,t,u.value);if(e)return e}return(await s(_,e)).entry}})};function x(e){let t=e.replace(/\/+$/,``),n=t.slice(t.lastIndexOf(`/`)+1);return/^[a-f0-9]{24}$/.test(n)}export{m as n,b as t};
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.