PageSourceSearch

https://newparadigminstitute.org/_next/static/chunks/app/layout-1786f9b9c1f20ed3.js

js newparadigminstitute.org collected 2026-10-03 22:01:42 UTC 11,046 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{290:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>l});var s=t(8409),i=t(8653),n=t(6807);let l=e=>{let{gtmId:a}=e,[t,l]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{function e(){window.dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("consent","default",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"}),e("event","gdpr_accepted"),window.localStorage.setItem("gdpr",!0),l(!0)},[]),(0,s.jsx)(s.Fragment,{children:t&&a&&(0,s.jsx)(n.default,{id:"gtm",src:`https://www.googletagmanager.com/gtm.js?id=${a}`,onLoad:()=>{function e(){window.dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",a)}})})}},2798:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>d});var s=t(8409),i=t(8653),n=t(509),l=t(9894),r=t(3686);let o={show:{height:"auto",pointerEvents:"auto"},hide:{height:0,pointerEvents:"none"}},d=e=>{let{enabled:a,heading:t,button:d}=e,[c,m]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{setTimeout(()=>{let e=window.localStorage.getItem("announcement")===t;e&&m(!1),a&&!e&&m(!0)},0)},[]),(0,s.jsx)(n.P.div,{initial:"hide",variants:o,animate:c?"show":"hide",className:"multi-gradient-b noise relative overflow-hidden",children:(0,s.jsx)(l.mc,{variant:"xl",className:"relative z-10",children:(0,s.jsxs)("div",{className:"flex basis-full flex-wrap items-center justify-between gap-4 py-2 md:basis-2/3 md:gap-8 md:py-4",children:[(0,s.jsx)(l.EY,{html:t,className:"font-heading leading-compact max-w-lg text-xs uppercase"}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-8",children:[d?.url&&(0,s.jsx)(r.Ez,{href:d.url,className:"font-heading shrink-0 text-xs font-medium uppercase underline decoration-2 underline-offset-[0.15em] duration-200 hover:opacity-60",children:d.text}),(0,s.jsxs)("button",{type:"button","aria-label":"dismiss the announcement",onClick:()=>{window.localStorage.setItem("announcement",t),m(!1)},className:"shrink-0",children:[(0,s.jsx)("span",{className:"sr-only",children:"close"}),(0,s.jsx)(r.In,{name:"close",className:"h-2.5 w-2.5 duration-200 hover:opacity-60"})]})]})]})})})}},3185:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>r});var s=t(8409),i=t(8653),n=t(6807),l=t(4486);let r=()=>{let[e,a]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{window.Userback=window.Userback||{},window.Userback.access_token=l.env.NEXT_PUBLIC_USERBACK_TOKEN,a(!0)},[]),e)?(0,s.jsx)(n.default,{id:"userback",src:"https://static.userback.io/widget/v1.js"}):null}},5113:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>g});var s=t(8409),i=t(8653),n=t(2167),l=t(453),r=t(509),o=t(4956),d=t(907),c=t(9894),m=t(3686),u=t(8033);let h=()=>{let e=(0,i.useRef)(null),[{navigating:a,searchFilter:t},l]=(0,u.A)(),[r,o]=(0,i.useState)(""),[h,p]=(0,i.useState)(!1),[g,x]=(0,i.useState)([]),{search:f,loaded:w}=(()=>{let[e,a]=(0,i.useState)();return(0,i.useEffect)(()=>{(async()=>{if(void 0===window.pagefind)try{window.pagefind=await import("./pagefind/pagefind.js"),await window.pagefind.options({ranking:{termSimilarity:10}}),a(!0)}catch(e){window.pagefind={debouncedSearch:async()=>({results:[]})}}else a(!0)})()},[]),{search:(0,i.useCallback)(async function(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";if(e&&window.pagefind){let e=await window.pagefind.search(a,{baseUrl:"/"},500),{results:s}=await e||{},i=await Promise.all((s||[]).map(async e=>e.data())),n=RegExp(String.raw`(${a})`,"gi");return i.filter(e=>"all"===t||e?.meta?.section===t).slice(0,20).map(e=>({title:e.meta.title.replace(n,"<mark>$1</mark>"),description:e.excerpt,url:e.meta?.url,image:{url:e.meta?.image?.replace(/\/cdn-cgi.*?\/uploads/,"/uploads")},section:e.meta?.section||"Page"}))}return null},[e]),loaded:e}})();return(0,i.useEffect)(()=>{a&&l({type:"closeSearch"})},[a]),(0,i.useEffect)(()=>{w&&r?(async e=>{p(!0),x((await f(e,t)).map(e=>({...e,heading:e.title}))),p(!1)})(r):x([])},[r,w,t]),(0,i.useEffect)(()=>{if(w&&e.current)try{e.current.focus()}catch(e){console.log(e)}},[w,e.current]),(0,s.jsxs)(s.Fragment,{children:[!w&&(0,s.jsx)("div",{}),w&&(0,s.jsx)(c.mc,{variant:"sm",children:(0,s.jsxs)("div",{className:"relative flex flex-col gap-8 bg-white p-8 md:p-12",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 border-2 border-black p-2",children:[(0,s.jsx)("input",{ref:e,className:"w-full bg-transparent pr-6 text-lg placeholder-black/50",onChange:e=>o(e.target.value),placeholder:"Search"}),(0,s.jsx)(m.In,{name:h?"loading":"search",className:(0,n.A)("pointer-events-none size-4 duration-200",{"animate-spin":h})})]}),(0,s.jsxs)("ul",{className:(0,n.A)("flex flex-col gap-8",{"opacity-60":h}),children:[!r&&(0,s.jsx)("div",{children:"Search resources, actions, and pages on our site above."}),r&&!g.length&&!h&&(0,s.jsx)("div",{children:"Your query returned no results."}),!!g?.length&&g.map(e=>(0,s.jsx)("li",{className:"animate-fade-in",children:(0,s.jsx)(d.iD,{small:!0,...e})},e.url))]})]})})]})};var p=t(4378);let g=e=>
1{let{nav:a,subNav:t}=e,[g,x]=(0,i.useState)(!1),{theme:f}=(0,o.D)(),[{searchActive:w},b]=(0,u.A)(),v={initial:"closed",animate:g?"open":"closed",stroke:"currentColor",strokeWidth:"4"};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.N,{mode:"sync",children:w&&(0,s.jsx)(p.A,{centered:!0,background:"bg-black/80",className:"pt-16",fullscreen:!0,close:()=>b({type:"closeSearch"}),children:(0,s.jsx)(h,{})},"search")}),(0,s.jsxs)("header",{className:(0,n.A)("absolute z-100 flex w-full items-center py-4 duration-200",{"bg-black":"light"!==f,"bg-black/40":"light"===f}),children:[(0,s.jsx)(c.mc,{variant:"xl",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(m.Ez,{href:"/",children:(0,s.jsx)(d.gu,{})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"hidden items-center justify-end gap-4 md:flex",children:[t?.map((e,a)=>{let{uid:t,url:i,text:n}=e;return i?(0,s.jsx)(c.$n,{href:i,color:0===a?"gray":"light",size:"sm",children:n},t):null}),(0,s.jsx)("button",{type:"button",title:"open search modal","aria-label":"open search modal",onClick:()=>b({type:"openSearch"}),className:"duration-200 hover:opacity-60",children:(0,s.jsx)(m.In,{name:"search",className:"text-gray size-4"})})]}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)("nav",{"aria-label":"header navigation",children:[(0,s.jsx)("ul",{className:"hidden gap-4 md:flex md:gap-8",children:a?.map((e,a)=>(0,s.jsx)(d.YK,{index:a,...e},e.uid))}),(0,s.jsx)("button",{type:"button",className:"flex md:hidden","aria-label":"Toggle mobile navigation",onClick:()=>x(!g),children:(0,s.jsx)("span",{className:"svg-icon text-gray",children:(0,s.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 34 24",children:[(0,s.jsx)(r.P.path,{...v,variants:{closed:{d:"M32 2L2 2"},open:{d:"M32 2L12 22"}}}),(0,s.jsx)(r.P.path,{...v,d:"M32 12L2 12",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.2}}),(0,s.jsx)(r.P.path,{...v,variants:{closed:{d:"M32 22L2 22"},open:{d:"M32 22L12 2"}}})]})})})]})})]})]})}),(0,s.jsx)(d.id,{nav:a,subNav:t,state:[g,x],dispatch:b})]})]})}},7027:()=>{},9551:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>p});var s=t(8409),i=t(8653),n=t(7917),l=t(1538),r=t(5864),o=t(453),d=t(509),c=t(9894),m=t(3686),u=t(2167);let h={visible:{y:"0%",opacity:1,transition:{type:"tween",ease:"easeInOut",duration:.2}},hidden:{y:"150%",opacity:0,transition:{type:"tween",ease:"easeInOut",duration:.2}}},p=()=>{let{register:e,handleSubmit:a,formState:{errors:t,isSubmitting:p},setError:g}=(0,n.mN)(),[x,f]=(0,i.useState)(0),[w,b]=(0,i.useState)(!0),[v,j]=(0,i.useState)(!1),{scrollY:y}=(0,l.L)();(0,r.L)(y,"change",e=>{f(e)});let N=(0,i.useMemo)(()=>x>=500,[x]),S=async e=>{try{let a=await fetch("/api/people/find-or-create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),{success:t}=await a.json();t?(window.localStorage.setItem("submitted","true"),j(!0)):g("server",{type:400,message:"There was a problem with your submission. Please try again."})}catch(e){console.log(e)}};return(0,i.useEffect)(()=>{setTimeout(()=>{let e="false"===window.sessionStorage.getItem("showToaster")||"true"===window.localStorage.getItem("submitted"),a=window.localStorage.getItem("gdpr");(e||void 0===a)&&b(!1)},0)},[]),(0,s.jsx)(o.N,{children:N&&w&&(0,s.jsx)(d.P.div,{initial:"hidden",animate:"visible",exit:"hidden",variants:h,className:"fixed right-4 bottom-4 z-100 block bg-white",children:(0,s.jsx)("div",{className:"multi-gradient-c noise relative max-w-xs overflow-hidden",children:(0,s.jsxs)("div",{className:"relative z-10 p-8",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.EY,{html:"Sign Up for Our Newsletter",className:"font-heading leading-compact text-center text-base font-bold"}),(0,s.jsxs)("form",{onSubmit:a(S),className:"relative flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsx)("input",{type:"text",...e("firstName",{required:"Please enter a first name."}),placeholder:"First Name",className:"bg-white p-2 text-xs"}),(0,s.jsx)("input",{type:"lastName",...e("lastName",{required:"Please enter a last name."}),placeholder:"Last Name",className:"bg-white p-2 text-xs"})]}),(0,s.jsx)("input",{type:"email",...e("email",{required:"Please enter a valid email address."}),placeholder:"Email Address",className:"w-full bg-white p-2 text-xs"}),(0,s.jsx)("button",{type:"submit",title:"submit form","aria-label":"submit form",disabled:p,className:"group absolute right-0 bottom-0 z-10 rotate-45 p-2",children:(0,s.jsx)(m.In,{name:p?"loading":"arrow",className:(0,u.A)("size-3",{"animate-spin rounded-full":p,"group-hover:text-coral duration-200":!p})})})]}),(t?.email||t?.server)&&(0,s.jsx)(c.EY,{html:t?.email?.message||t?.server?.message,className:"block bg-red-100 p-2 text-xs leading-snug font-medium text-red-500"})]}
1),v&&(0,s.jsx)(c.EY,{html:"Thank you for subscribing!",className:"font-heading leading-compact text-center text-base font-bold"})]}),(0,s.jsx)("button",{type:"button",title:"close newsletter dialog","aria-label":"close newsletter dialog",onClick:()=>{window.sessionStorage.setItem("showToaster","false"),b(!1)},className:"absolute top-2 right-2 z-10",children:(0,s.jsx)(m.In,{name:"close",className:"size-3 duration-200 hover:opacity-60"})})]})})})})}},9887:(e,a,t)=>{Promise.resolve().then(t.bind(t,7585)),Promise.resolve().then(t.t.bind(t,4239,23)),Promise.resolve().then(t.t.bind(t,3208,23)),Promise.resolve().then(t.t.bind(t,4380,23)),Promise.resolve().then(t.bind(t,2798)),Promise.resolve().then(t.bind(t,290)),Promise.resolve().then(t.bind(t,5113)),Promise.resolve().then(t.bind(t,9551)),Promise.resolve().then(t.bind(t,3185)),Promise.resolve().then(t.bind(t,8033)),Promise.resolve().then(t.bind(t,4956)),Promise.resolve().then(t.t.bind(t,7027,23))}},e=>{e.O(0,[392,715,808,566,608,743,358],()=>e(e.s=9887)),_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.