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:`v1.297.1-d19e27b`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:core-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`86cf21e4-6745-4844-a374-1a33ed0a50d5`,e._sentryDebugIdIdentifier=`sentry-dbid-86cf21e4-6745-4844-a374-1a33ed0a50d5`)}catch{}})();import{T as e,an as t,en as n,tn as r,w as i}from"./i18n-CgeRjOKj.js";import{R as a,n as o,t as s}from"./queryOptions-BCObqFm4.js";import{t as c}from"./useInfiniteQuery-BBQ_-M_F.js";import{t as ee}from"./infiniteQueryOptions-BXYHG4Wd.js";import{C as l,M as u,N as d,g as f,k as p,l as te,p as ne,u as m,w as h}from"./zod-CmoIo3iX.js";var g=async({isPreview:t=!1,query:n,variables:r,signal:a})=>{let o=await fetch(t?i:e,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/graphql-response+json`},signal:a,body:JSON.stringify({query:n,variables:r})});if(!o.ok)throw Error(`Network response was not ok`);return(await o.json()).data},_=class extends String{__apiType;value;__meta__;constructor(e,t){super(e),this.value=e,this.__meta__=t}toString(){return this.value}},re={"\n query ecosystemCarouselItem {\n ecosystemCarouselItemCollection {\n items {\n name\n description\n website\n hideOnMobile\n imageSmall {\n title\n description\n contentType\n fileName\n size\n url\n width\n height\n }\n imageLarge {\n title\n description\n contentType\n fileName\n size\n url\n width\n height\n }\n logo {\n title\n description\n contentType\n fileName\n size\n url\n width\n height\n }\n }\n }\n }\n":new _(` 2 query ecosystemCarouselItem { 3 ecosystemCarouselItemCollection { 4 items { 5 name 6 description 7 website 8 hideOnMobile 9 imageSmall { 10 title 11 description 12 contentType 13 fileName 14 size 15 url 16 width 17 height 18 } 19 imageLarge { 20 title 21 description 22 contentType 23 fileName 24 size 25 url 26 width 27 height 28 } 29 logo { 30 title 31 description 32 contentType 33 fileName 34 size 35 url 36 width 37 height 38 } 39 } 40 } 41} 42 `),"\n query discoverBannerCollection {\n discoverBannerCollection {\n items {\n _id\n projectDescription\n projectHeroSubtitle\n projectHeroTitle\n projectName\n projectPrimaryColor\n projectUrl\n projectLogo {\n title\n url\n }\n }\n }\n }\n":new _(` 43 query discoverBannerCollection { 44 discoverBannerCollection { 45 items { 46 _id 47 projectDescription 48 projectHeroSubtitle 49 projectHeroTitle 50 projectName 51 projectPrimaryColor 52 projectUrl 53 projectLogo { 54 title 55 url 56 } 57 } 58 } 59} 60 `),"\n query blogCategories {\n blogCategoryCollection {\n items {\n name\n slug\n description\n }\n }\n }\n":new _(` 61 query blogCategories { 62 blogCategoryCollection { 63 items { 64 name 65 slug 66 description 67 } 68 } 69} 70 `),"\n query blogNextPosts($limit: Int!, $publishDate: DateTime!) {\n blogPostCollection(order: publishDate_DESC, limit: $limit, where: { publishDate_lt: $publishDate }) {\n total\n items {\n title\n slug\n excerpt\n body {\n json\n }\n publishDate\n readingTimeMinutes\n twitter\n discord\n linkedIn\n instagram\n youtube\n reddit\n hero {\n title\n url\n width\n height\n }\n author {\n name\n slug\n avatar {\n url\n }\n }\n category {\n name\n slug\n }\n }\n }\n }\n":new _(` 71 query blogNextPosts($limit: Int!, $publishDate: DateTime!) { 72 blogPostCollection( 73 order: publishDate_DESC 74 limit: $limit 75 where: {publishDate_lt: $publishDate} 76 ) { 77 total 78 items { 79 title 80 slug 81 excerpt 82 body { 83 json 84 } 85 publishDate 86 readingTimeMinutes 87 twitter 88 discord 89 linkedIn 90 instagram 91 youtube 92 reddit 93 hero { 94 title 95 url 96 width 97 height 98 } 99 author { 100 name 101 slug 102 avatar { 103 url 104 } 105 } 106 category { 107 name 108 slug 109 } 110 } 111 } 112} 113 `),"\n query blogPost($slug: String!) {\n blogPostCollection(where: { slug: $slug }, limit: 1) {\n items {\n title\n slug\n excerpt\n body {\n json\n links {\n assets {\n block {\n sys {\n id\n }\n url\n width\n height\n title\n description\n contentType\n fileName\n }\n hyperlink {\n sys {\n id\n }\n url\n title\n description\n contentType\n fileName\n }\n }
113\n entries {\n block {\n __typename\n sys {\n id\n }\n }\n inline {\n __typename\n sys {\n id\n }\n }\n hyperlink {\n __typename\n sys {\n id\n }\n }\n }\n }\n }\n publishDate\n readingTimeMinutes\n twitter\n discord\n linkedIn\n instagram\n youtube\n reddit\n hero {\n title\n url\n width\n height\n }\n author {\n name\n slug\n avatar {\n url\n }\n }\n category {\n name\n slug\n }\n tagsCollection {\n items {\n name\n slug\n }\n }\n }\n }\n }\n":new _(` 114 query blogPost($slug: String!) { 115 blogPostCollection(where: {slug: $slug}, limit: 1) { 116 items { 117 title 118 slug 119 excerpt 120 body { 121 json 122 links { 123 assets { 124 block { 125 sys { 126 id 127 } 128 url 129 width 130 height 131 title 132 description 133 contentType 134 fileName 135 } 136 hyperlink { 137 sys { 138 id 139 } 140 url 141 title 142 description 143 contentType 144 fileName 145 } 146 } 147 entries { 148 block { 149 __typename 150 sys { 151 id 152 } 153 } 154 inline { 155 __typename 156 sys { 157 id 158 } 159 } 160 hyperlink { 161 __typename 162 sys { 163 id 164 } 165 } 166 } 167 } 168 } 169 publishDate 170 readingTimeMinutes 171 twitter 172 discord 173 linkedIn 174 instagram 175 youtube 176 reddit 177 hero { 178 title 179 url 180 width 181 height 182 } 183 author { 184 name 185 slug 186 avatar { 187 url 188 } 189 } 190 category { 191 name 192 slug 193 } 194 tagsCollection { 195 items { 196 name 197 slug 198 } 199 } 200 } 201 } 202} 203 `),"\n query blogPosts($limit: Int!, $skip: Int!) {\n blogPostCollection(order: publishDate_DESC, limit: $limit, skip: $skip) {\n total\n items {\n title\n slug\n excerpt\n body {\n json\n }\n publishDate\n readingTimeMinutes\n twitter\n discord\n linkedIn\n instagram\n youtube\n reddit\n hero {\n title\n url\n width\n height\n }\n author {\n name\n slug\n avatar {\n url\n }\n }\n category {\n name\n slug\n }\n }\n }\n }\n":new _(` 204 query blogPosts($limit: Int!, $skip: Int!) { 205 blogPostCollection(order: publishDate_DESC, limit: $limit, skip: $skip) { 206 total 207 items { 208 title 209 slug 210 excerpt 211 body { 212 json 213 } 214 publishDate 215 readingTimeMinutes 216 twitter 217 discord 218 linkedIn 219 instagram 220 youtube 221 reddit 222 hero { 223 title 224 url 225 width 226 height 227 } 228 author { 229 name 230 slug 231 avatar { 232 url 233 } 234 } 235 category { 236 name 237 slug 238 } 239 } 240 } 241} 242 `),"\n query blogSearch($query: String!, $limit: Int!) {\n blogPostCollection(\n order: publishDate_DESC\n limit: $limit\n where: { title_contains: $query }\n ) {\n total\n items {\n title\n slug\n excerpt\n hero {\n title\n url\n width\n height\n }\n }\n }\n }\n":new _(` 243 query blogSearch($query: String!, $limit: Int!) { 244 blogPostCollection( 245 order: publishDate_DESC 246 limit: $limit 247 where: {title_contains: $query} 248 ) { 249 total 250 items { 251 title 252 slug 253 excerpt 254 hero { 255 title 256 url 257 width 258 height 259 } 260 } 261 } 262} 263 `),"\n query termsAndServices($id: String!) {\n termsAndServicesCollection(where: { sys: { id_in: [$
263id] } }) {\n items {\n name\n content {\n json\n }\n }\n }\n }\n":new _(` 264 query termsAndServices($id: String!) { 265 termsAndServicesCollection(where: {sys: {id_in: [$id]}}) { 266 items { 267 name 268 content { 269 json 270 } 271 } 272 } 273} 274 `)};function v(e){return re[e]??{}}v(` 275 query ecosystemCarouselItem { 276 ecosystemCarouselItemCollection { 277 items { 278 name 279 description 280 website 281 hideOnMobile 282 imageSmall { 283 title 284 description 285 contentType 286 fileName 287 size 288 url 289 width 290 height 291 } 292 imageLarge { 293 title 294 description 295 contentType 296 fileName 297 size 298 url 299 width 300 height 301 } 302 logo { 303 title 304 description 305 contentType 306 fileName 307 size 308 url 309 width 310 height 311 } 312 } 313 } 314 } 315`);var y=e=>{if(e!==null)return e},b=e=>{if(typeof e!=`object`||!e)return!1;let t=e;return t.nodeType===`document`&&Array.isArray(t.content)},x=e=>e.nullable().optional().transform(y),S=p().nullable().optional().transform(y),C=l().nullable().optional().transform(y),w=d(),T=d().nullable().optional().transform(y),ie=f(),ae=f().nullable().optional().transform(y),oe=e=>h(e).nullable().optional().transform(y),E=e=>e!=null,D=h({title:S,description:S,contentType:S,fileName:S,size:C,url:S,width:C,height:C});h({ecosystemCarouselItemCollection:h({items:m(h({name:p(),description:p(),website:p(),hideOnMobile:ne().nullish().transform(Boolean),imageSmall:D,imageLarge:D,logo:D}).optional().catch(()=>{})).transform(e=>e.filter(e=>!!e))})});var O=v(` 316 query discoverBannerCollection { 317 discoverBannerCollection { 318 items { 319 _id 320 projectDescription 321 projectHeroSubtitle 322 projectHeroTitle 323 projectName 324 projectPrimaryColor 325 projectUrl 326 projectLogo { 327 title 328 url 329 } 330 } 331 } 332 } 333`),k=h({discoverBannerCollection:h({items:m(h({_id:p(),projectDescription:p(),projectHeroSubtitle:p(),projectHeroTitle:p(),projectName:p(),projectPrimaryColor:p(),projectUrl:p(),projectLogo:h({title:p(),url:p()})}))})}),A=s({staleTime:1/0,queryKey:[`contentful-discover`,`useDiscoverHero`],queryFn:async({signal:e})=>{let t=await g({query:O,signal:e});return k.parse(t).discoverBannerCollection.items}}),j=()=>o(A),M=v(` 334 query termsAndServices($id: String!) { 335 termsAndServicesCollection(where: { sys: { id_in: [$id] } }) { 336 items { 337 name 338 content { 339 json 340 } 341 } 342 } 343 } 344`),N=h({termsAndServicesCollection:h({items:m(h({name:p(),content:h({json:te().refine(e=>!!e)})}).optional().catch(()=>{})).transform(e=>e?.filter(Boolean))})}),P=e=>s({staleTime:1/0,queryKey:[`contentful-discover`,`useTerms`,e],queryFn:async()=>{let t=await g({query:M,variables:{id:e}});return N.parse(t).termsAndServicesCollection.items[0]??void 0}}),F=e=>o(P(e)),I=()=>F(r),L=()=>F(n),R=v(` 345 query blogPosts($limit: Int!, $skip: Int!) { 346 blogPostCollection(order: publishDate_DESC, limit: $limit, skip: $skip) { 347 total 348 items { 349 title 350 slug 351 excerpt 352 body { 353 json 354 } 355 publishDate 356 readingTimeMinutes 357 twitter 358 discord 359 linkedIn 360 instagram 361 youtube 362 reddit 363 hero { 364 title 365 url 366 width 367 height 368 } 369 author { 370 name 371 slug 372 avatar { 373 url 374 } 375 } 376 category { 377 name 378 slug 379 } 380 } 381 } 382 } 383`),z=h({blogCategoryCollection:h({items:m(h({name:S,slug:S,description:S}).optional().catch(()=>void 0)).transform(e=>e.filter(E))})}),B=h({name:p(),slug:p(),description:p().optional()}),V=e=>{let t=B.safeParse(e);return t.success?t.data:void 0},H=z.transform(e=>({blogCategoryCollection:{items:e.blogCategoryCollection.items.map(V).filter(E)}})),U=h({name:S,slug:S,avatar:oe({url:T}),twitter:T,email:ae}),W=h({name:S,slug:S}),G=h({name:S,slug:S}),K=h({items:x(m(x(W)))}),q=h({title:S,slug:S,excerpt:S,body:x(h({json:x(u()),links:x(u())})),publishDate:S,readingTimeMinutes:C,twitter:T,discord:T,linkedIn:T,instagram:T,youtube:T,reddit:T,hero:x(D),author:x(U),category:x(G),tagsCollection:x(K)}),se=h({blogPostCollection:h({items:m(x(q))})}),J=h({blogPostCollection:h({total:l(),items:m(x(q))})}),ce=h({name:p(),slug:p(),avatar:h({url:w.optional()}).optional(),twitter:w.optional(),email:ie.optional()}),le=h({name:p(),slug:p()}),ue=h({name:p(),slug:p()}),de=h({items:m(le)}),fe=h({json:u().refine(b),links:u()}),pe=h({title:p(),slug:p(),excerpt:p(),body:fe,publishDate:p(),readingTimeMinutes:l().optional(),twitter:w.optional(),discord:w.optional(),linkedIn:w.optional(),instagram:w.optional(),youtube:w.optional(),reddit:w.optional(),hero:D,author:ce,category:ue,tagsCollection:de.optional()}),me=h({title:p(),slug:p(),excerpt:p(),hero:D}),Y=e=>{let t=pe.safeParse(e);return t.success?t.data:void 0},X=J.transform(e=>({blogPostCollection:{total:e.blogPostCollection.total,items:e.blogPostCollection.items.map(Y).filter(E)}})),he=se.transform(e=>({blogPostCollection:{items:e.blogPostCollection.items.map(Y).filter(E)}})),ge=J.transform(e=>({blogPostCollection:{total:e.blogPostCollection.total,items:e.blogPostCollection.items.map(e=>{let t=me.safeParse(e);return t.success?t.data:void 0}).filter(E)}})),Z=10,_e=()=>
383ee({staleTime:1/0,queryKey:[`contentful-discover`,`useDiscoverBlogs`],queryFn:async({pageParam:e})=>{let t=await g({query:R,variables:{limit:Z,skip:e}}),n=X.parse(t);return{items:n.blogPostCollection.items,total:n.blogPostCollection.total,nextSkip:e+Z}},initialPageParam:0,getNextPageParam:e=>{if(!(e.nextSkip>=e.total))return e.nextSkip}}),ve=()=>c(_e()),ye=v(` 384 query blogPost($slug: String!) { 385 blogPostCollection(where: { slug: $slug }, limit: 1) { 386 items { 387 title 388 slug 389 excerpt 390 body { 391 json 392 links { 393 assets { 394 block { 395 sys { 396 id 397 } 398 url 399 width 400 height 401 title 402 description 403 contentType 404 fileName 405 } 406 hyperlink { 407 sys { 408 id 409 } 410 url 411 title 412 description 413 contentType 414 fileName 415 } 416 } 417 entries { 418 block { 419 __typename 420 sys { 421 id 422 } 423 } 424 inline { 425 __typename 426 sys { 427 id 428 } 429 } 430 hyperlink { 431 __typename 432 sys { 433 id 434 } 435 } 436 } 437 } 438 } 439 publishDate 440 readingTimeMinutes 441 twitter 442 discord 443 linkedIn 444 instagram 445 youtube 446 reddit 447 hero { 448 title 449 url 450 width 451 height 452 } 453 author { 454 name 455 slug 456 avatar { 457 url 458 } 459 } 460 category { 461 name 462 slug 463 } 464 tagsCollection { 465 items { 466 name 467 slug 468 } 469 } 470 } 471 } 472 } 473`),be=e=>s({staleTime:1/0,queryKey:[`contentful-discover`,`useDiscoverBlogPost`,e],queryFn:async({signal:t})=>{let n=await g({query:ye,variables:{slug:e},signal:t});return he.parse(n).blogPostCollection.items[0]}}),xe=e=>o(be(e)),Q=v(` 474 query blogCategories { 475 blogCategoryCollection { 476 items { 477 name 478 slug 479 description 480 } 481 } 482 } 483`),Se=()=>s({staleTime:1/0,queryKey:[`contentful-discover`,`useDiscoverBlogCategories`],queryFn:async()=>{let e=await g({query:Q});return H.parse(e).blogCategoryCollection.items}}),Ce=()=>o(Se()),we=v(` 484 query blogNextPosts($limit: Int!, $publishDate: DateTime!) { 485 blogPostCollection(order: publishDate_DESC, limit: $limit, where: { publishDate_lt: $publishDate }) { 486 total 487 items { 488 title 489 slug 490 excerpt 491 body { 492 json 493 } 494 publishDate 495 readingTimeMinutes 496 twitter 497 discord 498 linkedIn 499 instagram 500 youtube 501 reddit 502 hero { 503 title 504 url 505 width 506 height 507 } 508 author { 509 name 510 slug 511 avatar { 512 url 513 } 514 } 515 category { 516 name 517 slug 518 } 519 } 520 } 521 } 522`),$=3,Te=(e,t=$)=>s({staleTime:1/0,enabled:e.length>0,queryKey:[`contentful-discover`,`useDiscoverNextBlogPosts`,e,t],queryFn:async({signal:n})=>{let r=await g({query:we,variables:{limit:t,publishDate:e},signal:n});return X.parse(r).blogPostCollection.items}}),Ee=(e,t=$)=>o(Te(e,t)),De=v(` 523 query blogSearch($query: String!, $limit: Int!) { 524 blogPostCollection( 525 order: publishDate_DESC 526 limit: $limit 527 where: { title_contains: $query } 528 ) { 529 total 530 items { 531 title 532 slug 533 excerpt 534 hero { 535 title 536 url 537 width 538 height 539 } 540 } 541 } 542 } 543`),Oe=5,ke=5*t,Ae=(e,t=Oe)=>{let n=e.trim();return s({staleTime:ke,queryKey:[`contentful-discover`,`useDiscoverBlogSearch`,n,t],queryFn:n.length>0?async({signal:e})=>{let r=await g({query:De,variables:{query:n,limit:t},signal:e});return ge.parse(r).blogPostCollection.items}:a})};export{ve as a,j as c,xe as i,Ee as n,L as o,Ce as r,I as s,Ae as t}; 544//# sourceMappingURL=src-U_gPkTfp.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.