1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6120],{13076:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slug]]",function(){return r(45650)}])},24437:function(e,t,r){"use strict";var a=r(45312),i=r(83454);let n=()=>void 0,l=new Map,s=new Map,c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"==typeof e&&(e.includes("/next/draft")||e.includes("/next/preview"))};new a.qF("https://api.kwsanantonio.com",{frontPage:i.env.DRUPAL_FRONT_PAGE,previewSecret:i.env.DRUPAL_PREVIEW_SECRET,async fetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{scope:r,...a}=t,i=n(),l=r||i||(c(e)?"preview":"default"),s=await o(l);return fetch(e,{...a,headers:{...a.headers,"Content-Type":"application/vnd.api+json",...s&&{Authorization:"Bearer ".concat(s)}},credentials:"include"})}});let o=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=l.get(e);if(t&&t.expiresAt>Date.now())return t.token;let r=s.get(e);if(r)return r;let a="".concat("https://api.kwsanantonio.com","/oauth/token"),n=(async()=>{let t=await fetch(a,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"client_credentials",client_id:i.env.DRUPAL_CLIENT_ID,client_secret:i.env.DRUPAL_CLIENT_SECRET,scope:e})}),r=await t.json();if(r.access_token){let t=Number(r.expires_in)||300;return l.set(e,{token:r.access_token,expiresAt:Date.now()+1e3*Math.max(30,t-30)}),r.access_token}throw console.log("Requesting token from:",a),console.error("Token request failed:",r),Error("Failed to obtain access token")})();s.set(e,n);try{return await n}finally{s.delete(e)}}},45650:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return y},default:function(){return _}});var a=r(85893),i=r(19592),n=r(75317),l=r(15544),s=r(41664),c=r.n(s),o=r(25797),d=e=>{let{term:t}=e;if(!t)return null;let r=p[t.type];return r?(0,a.jsx)(r,{term:t}):null};let p={"taxonomy_term--tags":e=>{let{term:t}=e;return(0,a.jsxs)("div",{className:"container border-t pt-10",children:[(0,a.jsx)("h1",{children:t.name}),(0,a.jsx)("div",{className:"flex flex-wrap gap-5",children:t.items.map(e=>(0,a.jsxs)("div",{className:"w-full flex-initial rounded shadow md:w-[calc(50%-1.25rem)] lg:w-[calc(33%-1.25rem)]",children:[(0,a.jsx)(o.Z,{image:e.field_image}),(0,a.jsxs)("div",{className:"px-4 py-2",children:[(0,a.jsxs)("p",{children:["Posted: ",(0,l.p)(e.created)]}),(0,a.jsx)(c(),{href:e.path.alias,children:(0,a.jsx)("h2",{className:"text-2xl",children:e.title})})]})]},e.id))})]})},"taxonomy_term--categories":e=>{let{term:t}=e;return(0,a.jsxs)("div",{className:"container border-t pt-10",children:[(0,a.jsx)("h1",{children:t.name}),(0,a.jsx)("div",{className:"flex flex-wrap gap-5",children:t.items.map(e=>(0,a.jsxs)("div",{className:"w-full flex-initial rounded shadow md:w-[calc(50%-1.25rem)] lg:w-[calc(33%-1.25rem)]",children:[(0,a.jsx)(o.Z,{image:e.field_image}),(0,a.jsxs)("div",{className:"px-4 py-2",children:[(0,a.jsxs)("p",{children:["Posted: ",(0,l.p)(e.created)]}),(0,a.jsx)(c(),{href:e.path.alias,children:(0,a.jsx)("h2",{className:"text-2xl",children:e.title})})]})]},e.id))})]})}};r(24437),r(22509);let u=new(r(75911)).B().addInclude(["field_site_visibility","field_image.field_media_image"]).getQueryObject(),h=async(e,t)=>{if("paragraph--cards"!==e.type||!Array.isArray(e.field_children)||0===e.field_children.length)return;let r=t.locale||"en",a=t.defaultLocale||"en";e.field_children=await Promise.all(e.field_children.map(async e=>{let t=null==e?void 0:e.id;if(!t)return e;try{return await drupal.getResource("paragraph--card",t,{params:u,locale:r,defaultLocale:a})}catch(i){if(isInvalidSiteVisibilityIncludeError(i))try{return await drupal.getResource("paragraph--card",t,{params:withoutSiteVisibilityIncludes(u),locale:r,defaultLocale:a})}catch(r){return console.error("[cards] failed to fetch paragraph card ".concat(t),r),e}return console.error("[cards] failed to fetch paragraph card ".concat(t),i),e}}))},f=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;await Promise.all(e.map(async e=>{e&&(await h(e,t),Array.isArray(e.field_children)&&e.field_children.length&&await f(e.field_children,t))}))},m=e=>{var t;if(!e||"object"!=typeof e||!(null===(t=e.type)||void 0===t?void 0:t.startsWith("paragraph--")))return e;let r={...e};
1return Object.entries(r).forEach(e=>{let[t,a]=e;if(a&&"object"==typeof a&&!Array.isArray(a)&&Object.keys(a).every(e=>/^\d+$/.test(e))){r[t]=Object.values(a).map(m);return}if(a&&"object"==typeof a&&!Array.isArray(a)&&Object.prototype.hasOwnProperty.call(a,"value")&&!/(body|description|summary)/i.test(t)){r[t]=a.value;return}Array.isArray(a)&&0!==a.length&&(a.every(e=>{var t;return e&&"object"==typeof e&&(null===(t=e.type)||void 0===t?void 0:t.startsWith("paragraph--"))})?r[t]=a.map(m):1===a.length&&a[0]&&"object"==typeof a[0]&&Object.prototype.hasOwnProperty.call(a[0],"value")&&(r[t]=/(body|description|summary)/i.test(t)?a[0]:a[0].value))}),r};var y=!0,_=e=>{let{global:t,resource:r}=e,l={node:(0,a.jsx)(n.Z,{node:r,site:null==t?void 0:t.site}),taxonomy:(0,a.jsx)(d,{term:r})}[r.type.split("--")[0]]||"";return(0,a.jsx)(i.Z,{meta:{title:r.title||r.name,metaTags:r.metatag,resource:r},global:t,children:l})}}},function(e){e.O(0,[3662,1255,5770,4057,7536,9804,4492,9061,5935,7462,1423,9409,9592,9347,8554,5112,5528,5317,2888,9774,179],function(){return e(e.s=13076)}),_N_E=e.O()}]);
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.