1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{504:(e,r,t)=>{"use strict";t.d(r,{default:()=>i});var n=t(2115);function i(){return(0,n.useEffect)(()=>{t.e(8017).then(t.bind(t,8017)).then(e=>{let{onLCP:r,onINP:t,onCLS:n,onFCP:i,onTTFB:l}=e,a=e=>{let r=window.dataLayer;r&&r.push({event:"web_vitals",metric_name:e.name,metric_value:Math.round("CLS"===e.name?1e3*e.value:e.value),metric_id:e.id,metric_rating:e.rating})};r(a),t(a),n(a),i(a),l(a)})},[]),null}},1813:(e,r,t)=>{"use strict";t.d(r,{default:()=>l});var n=t(5155),i=t(7882);function l(e){let{children:r}=e;return(0,n.jsx)(i.SessionProvider,{children:r})}},2593:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return g}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let l=t(3623),a=t(6388),o=t(5155),s=l._(t(7650)),d=a._(t(2115)),c=t(5368),p=t(3584),u=t(8356),h=new Map,m=new Set,f=e=>{let{src:r,id:t,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:l,children:a="",strategy:o="afterInteractive",onError:d,stylesheets:c}=e,u=t||r;if(u&&m.has(u))return;if(h.has(r)){m.add(u),h.get(r).then(n,d);return}let f=()=>{i&&i(),m.add(u)},b=document.createElement("script"),g=new Promise((e,r)=>{b.addEventListener("load",function(r){e(),n&&n.call(this,r),f()}),b.addEventListener("error",function(e){r(e)})}).catch(function(e){d&&d(e)});l?(b.innerHTML=l.__html||"",f()):a?(b.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",f()):r&&(b.src=r,h.set(r,g)),(0,p.setAttributesFromProps)(b,e),"worker"===o&&b.setAttribute("type","text/partytown"),b.setAttribute("data-nscript",o),c&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});{let r=document.head;e.forEach(e=>{let t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,r.appendChild(t)})}})(c),document.body.appendChild(b)};function b(e){let{strategy:r="afterInteractive"}=e;"lazyOnload"===r?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>f(e))}):f(e)}function g(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let r=e.id||e.getAttribute("src");m.add(r)})}function x(e){let{id:r,src:t="",onLoad:n=()=>{},onReady:i=null,strategy:l="afterInteractive",onError:a,stylesheets:p,...h}=e,{updateScripts:b,scripts:g,getIsSsr:x,appDir:y,nonce:v}=(0,d.useContext)(c.HeadManagerContext);v=h.nonce||v;let j=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let e=r||t;j.current||(i&&e&&m.has(e)&&i(),j.current=!0)},[i,r,t]);let w=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{if(!w.current){if("afterInteractive"===l)f(e);else"lazyOnload"===l&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>f(e))}));w.current=!0}},[e,l]),("beforeInteractive"===l||"worker"===l)&&(b?(g[l]=(g[l]||[]).concat([{id:r,src:t,onLoad:n,onReady:i,onError:a,...h,nonce:v}]),b(g)):x&&x()?m.add(r||t):x&&!x()&&f({...e,nonce:v})),y){if(p&&p.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===l)if(!t)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...h,id:r}])})`}});else return s.default.preload(t,h.integrity?{as:"script",integrity:h.integrity,nonce:v,crossOrigin:h.crossOrigin}:{as:"script",nonce:v,crossOrigin:h.crossOrigin}),(0,o.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([t,{...h,id:r}])})`}});"afterInteractive"===l&&t&&s.default.preload(t,h.integrity?{as:"script",integrity:h.integrity,nonce:v,crossOrigin:h.crossOrigin}:{as:"script",nonce:v,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let y=x;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},3321:(e,r,t)=>{"use strict";var n=t(4645);t.o(n,"useParams")&&t.d(r,{useParams:function(){return n.useParams}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},4940:(e,r,t)=>{"use strict";function n(e,r){let t=window.dataLayer;t&&t.push({event:e,...r})}t.d(r,{s:()=>n})},5353:(e,r,t)=>{"use strict";t.d(r,{default:()=>s});var n=t(5155),i=t(2115),l=t(8500),a=t.n(l);function o(e){document.cookie=`pp_consent=${e}; Max-Age=31536000; Path=/; SameSite=Lax`}function s(){let[e,r]=(0,i.useState)(!1);return e?null:(0,n.jsxs)("div",{role:"dialog","aria-label":"Cookie consent",style:{position:"fixed",left:16,right:16,bottom:16,zIndex:1e3,maxWidth:720,margin:"0 auto",padding:"16px 18px",background:"var(--pp-card)",color:"var(--pp-text)",border:"1px solid var(--pp-border)",borderRadius:"var(--pp-radius)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.4)",fontFamily:"var(--pp-font-body)",fontSize:"0.92rem",lineHeight:1.5},children:[(0,n.jsxs)("p",{style:{margin:"0 0 12px 0"},children:["We use cookies to keep you signed in (essential) and, with your permission, Google Analytics to understand how the site is used. Read our"," ",(0,n.jsx)(a(),{href:"/privacy",style:{color:"var(--pp-yellow)",textDecoration:"underline"},children:"privacy policy"}),"."]}),(0,n.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:[(0,n.jsx)("button",{type:"button",onClick:function(){o("accepted"),function(){let e=window,r=e.dataLayer;if(Array.isArray(r)&&r.some(e=>e?.event==="gtm.js"))return;e.dataLayer=r||[],e.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"});let t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtm.js?id=GTM-P626NW";let n=document.getElementsByTagName("script")[0];n?.parentNode?.insertBefore(t,n)}(),r(!0)},style:{flex:"1 1 160px",padding:"10px 16px",background:"var(--pp-yellow)",color:"#000",border:"1px solid var(--pp-yellow)",borderRadius:8,fontFamily:"var(--pp-font-body)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer"},children:"Accept all cookies"}),(0,n.jsx)("button",{type:"button",onClick:function(){o("rejected"),r(!0)},style:{flex:"1 1 160px",padding:"10px 16px",background:"transparent",color:"var(--pp-text)",border:"1px solid var(--pp-border)",borderRadius:8,fontFamily:"var(--pp-font-body)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer"},children:"Reject non-essential"})]})]})}},5384:(e,r,t)=>{"use strict";t.d(r,{default:()=>c});var n=t(5155),i=t(2115),l=t(8500),a=t.n(l),o=t(4940);let s=[{id:"explore",label:"Explore",url:"#",children:[{id:"f-poems",label:"Browse Poems",url:"/browse-poems"},{id:"f-slams",label:"Slams",url:"/slams"},{id:"f-fresh",label:"Fresh Drop",url:"/fresh"},{id:"f-write",label:"Write a Poem",url:"/write"}]},{id:"resources-col",label:"Resources",url:"#",children:[{id:"f-action",label:"Take Action",url:"/action"},{id:"f-tips",label:"Writing Tips",url:"/tips"},{id:"f-famous",label:"Poets & Artists",url:"/famous-poets"},{id:"f-terms",label:"Poetry Terms",url:"/poetry-terms"},{id:"f-books",label:"Books",url:"/books"},{id:"f-groups",label:"Groups",url:"/groups"}]},{id:"about-col",label:"About",url:"#",children:[{id:"f-about",label:"About Us",url:"/about"},{id:"f-contact",label:"Contact",url:"/contact"},{id:"f-privacy",label:"Privacy Policy",url:"/privacy"},{id:"f-tos",label:"Terms of Service",url:"/tos"}]}];function d(){let[e,r]=(0,i.useState)(""),[t,l]=(0,i.useState)("idle"),[a,s]=(0,i.useState)("");async function d(n){if(n.preventDefault(),e.trim()&&"sending"!==t){l("sending");try{let t=await fetch("/api/subscribers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.trim()})}),n=await t.json();t.ok?((0,o.s)("newsletter_signup",{}),l("success"),s("You're subscribed!"),r("")):(l("error"),s(n.error||"Something went wrong"))}catch{l("error"),s("Network error â try again")}}}return"success"===t?(0,n.jsx)("p",{style:{fontSize:"0.82rem",color:"var(--pp-yellow)",marginTop:"12px"},children:a}):(0,n.jsxs)("form",{onSubmit:d,style:{marginTop:"12px",display:"flex",gap:"6px",maxWidth:"300px"}
1,children:[(0,n.jsx)("input",{type:"email",value:e,onChange:e=>{r(e.target.value),l("idle")},placeholder:"Your email",required:!0,style:{flex:1,padding:"8px 12px",borderRadius:"6px",border:"1px solid var(--pp-border)",background:"var(--pp-surface)",color:"var(--pp-text)",fontSize:"0.82rem",outline:"none",minWidth:0}}),(0,n.jsx)("button",{type:"submit",disabled:"sending"===t,style:{padding:"8px 14px",borderRadius:"6px",border:"none",background:"var(--pp-yellow)",color:"#000",fontSize:"0.82rem",fontWeight:700,cursor:"sending"===t?"wait":"pointer",whiteSpace:"nowrap",opacity:"sending"===t?.6:1},children:"sending"===t?"...":"Subscribe"})]})}function c(){let[e,r]=(0,i.useState)(s);return(0,i.useEffect)(()=>{fetch("/api/menus").then(e=>e.json()).then(e=>{e.footer&&Array.isArray(e.footer)&&r(e.footer)}).catch(()=>{})},[]),(0,n.jsx)("footer",{className:"pp-footer",children:(0,n.jsxs)("div",{className:"pp-footer__inner",children:[(0,n.jsxs)("div",{className:"pp-footer__top",children:[(0,n.jsxs)("div",{className:"pp-footer__brand",children:[(0,n.jsx)("img",{src:"/images/pp-logo-dark-nav-sm.webp",alt:"Power Poetry",className:"pp-logo-dark"}),(0,n.jsx)("img",{src:"/images/pp-logo-light-nav-sm.webp",alt:"Power Poetry",className:"pp-logo-light",style:{display:"none"}}),(0,n.jsx)("p",{children:"The platform for young poets and self-expression."}),(0,n.jsx)("p",{style:{fontSize:"0.78rem",color:"var(--pp-muted)",margin:"16px 0 0"},children:"Get updates from Power Poetry"}),(0,n.jsx)(d,{})]}),e.map(e=>(0,n.jsxs)("div",{className:"pp-footer__links",children:[e.url&&"#"!==e.url?(0,n.jsx)("h4",{children:(0,n.jsx)(a(),{href:e.url,children:e.label})}):(0,n.jsx)("h4",{children:e.label}),e.children&&e.children.length>0&&(0,n.jsx)("ul",{children:e.children.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:e.url,children:e.label})},e.id))})]},e.id))]}),(0,n.jsxs)("div",{className:"pp-footer__quote",children:[(0,n.jsx)("span",{id:"pp-quote-text"}),(0,n.jsx)("span",{className:"cursor"})]}),(0,n.jsx)("div",{className:"pp-footer__bottom",children:(0,n.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," Power Poetry. All rights reserved."]})})]})})}},6519:(e,r,t)=>{"use strict";t.d(r,{default:()=>l});var n=t(5155),i=t(2115);function l(){let[e,r]=(0,i.useState)(!1),[l,o]=(0,i.useState)(""),[s,d]=(0,i.useState)(!0),[c,p]=(0,i.useState)(null),[u,h]=(0,i.useState)(!1),[m,f]=(0,i.useState)(!1),[b,g]=(0,i.useState)(!1),[x,y]=(0,i.useState)(null);async function v(){h(!0),y(null);let e=document.getElementById("pp-bug-modal");e&&(e.style.visibility="hidden");try{let e=(await t.e(4316).then(t.t.bind(t,2201,23))).default,r=await e(document.body,{useCORS:!0,scale:Math.min(window.devicePixelRatio||1,2),logging:!1,backgroundColor:null});p(r.toDataURL("image/png"))}catch(e){y(`Screenshot failed: ${e?.message??e}`)}finally{e&&(e.style.visibility="visible"),h(!1)}}function j(){r(!1),o(""),p(null),y(null),g(!1),d(!0)}async function w(){f(!0),y(null);try{let e=await fetch("/api/admin/bug-reports",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:l.trim(),pageUrl:window.location.href,userAgent:navigator.userAgent,viewport:`${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio||1}x`,screenshot:s?c:null})});if(!e.ok){let r=await e.json().catch(()=>({}));throw Error(r.error||`HTTP ${e.status}`)}g(!0),setTimeout(j,1800)}catch(e){y(e?.message??"Submit failed")}finally{f(!1)}}return e?(0,n.jsx)("div",{id:"pp-bug-modal",role:"dialog","aria-label":"Report a bug",onClick:e=>{e.target===e.currentTarget&&j()},style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.55)",zIndex:1001,display:"flex",alignItems:"center",justifyContent:"center",padding:16},children:(0,n.jsxs)("div",{style:{width:"100%",maxWidth:560,background:"var(--pp-card)",border:"1px solid var(--pp-border)",borderRadius:"var(--pp-radius)",padding:20,fontFamily:"var(--pp-font-body)",color:"var(--pp-text)"},children:[(0,n.jsx)("h3",{style:{margin:"0 0 12px",fontFamily:"var(--pp-font-display)",fontWeight:800,fontSize:"1.1rem"},children:"Report a bug"}),b?(0,n.jsx)("p",{style:{color:"var(--pp-yellow)",margin:0},children:"Thanks â logged. The team will take a look."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("textarea",{value:l,onCh
1ange:e=>o(e.target.value),placeholder:"What's wrong, what did you expect, what did you seeâ¦",rows:5,style:{width:"100%",padding:10,background:"var(--pp-bg)",color:"var(--pp-text)",border:"1px solid var(--pp-border)",borderRadius:8,fontFamily:"var(--pp-font-body)",fontSize:"0.92rem",resize:"vertical",boxSizing:"border-box"}}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,margin:"12px 0"},children:[(0,n.jsx)("input",{type:"checkbox",id:"pp-bug-screenshot",checked:s,onChange:e=>{d(e.target.checked),e.target.checked&&!c&&v()}}),(0,n.jsx)("label",{htmlFor:"pp-bug-screenshot",style:{fontSize:"0.88rem"},children:"Include screenshot of the current page"}),u&&(0,n.jsx)("span",{style:{fontSize:"0.8rem",color:"var(--pp-text-secondary)"},children:"capturingâ¦"})]}),s&&c&&(0,n.jsx)("div",{style:{margin:"8px 0",border:"1px solid var(--pp-border)",borderRadius:8,overflow:"hidden",background:"#000",maxHeight:180},children:(0,n.jsx)("img",{src:c,alt:"Screenshot preview",style:{width:"100%",display:"block",objectFit:"contain",maxHeight:180}})}),(0,n.jsx)("div",{style:{fontSize:"0.75rem",color:"var(--pp-text-secondary)",margin:"8px 0 16px"},children:"We will also log: page URL, user agent, viewport size."}),x&&(0,n.jsx)("div",{style:{margin:"0 0 12px",padding:10,background:"rgba(220,30,30,0.15)",border:"1px solid rgba(220,30,30,0.4)",borderRadius:8,color:"#ff8a8a",fontSize:"0.85rem"},children:x}),(0,n.jsxs)("div",{style:{display:"flex",gap:10,justifyContent:"flex-end"},children:[(0,n.jsx)("button",{type:"button",onClick:j,disabled:m,style:a("ghost"),children:"Cancel"}),(0,n.jsx)("button",{type:"button",onClick:w,disabled:m||!l.trim(),style:{...a("primary"),opacity:m||!l.trim()?.6:1,cursor:m||!l.trim()?"not-allowed":"pointer"},children:m?"Sendingâ¦":"Submit"})]})]})]})}):(0,n.jsx)("button",{type:"button",onClick:function(){r(!0),s&&setTimeout(()=>{v()},80)},"aria-label":"Report a bug",style:{position:"fixed",bottom:16,right:16,zIndex:999,padding:"10px 14px",background:"var(--pp-card)",color:"var(--pp-text)",border:"1px solid var(--pp-border)",borderRadius:999,fontFamily:"var(--pp-font-body)",fontSize:"0.85rem",fontWeight:600,boxShadow:"0 4px 16px rgba(0,0,0,0.4)",cursor:"pointer"},children:"Report bug"})}function a(e){let r={padding:"9px 16px",borderRadius:8,fontFamily:"var(--pp-font-body)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer",border:"1px solid var(--pp-border)"};return"primary"===e?{...r,background:"var(--pp-yellow)",color:"#000",borderColor:"var(--pp-yellow)"}:{...r,background:"transparent",color:"var(--pp-text)"}}},6599:(e,r,t)=>{"use strict";t.d(r,{default:()=>i});var n=t(2115);function i(){return(0,n.useEffect)(()=>{if(!("serviceWorker"in navigator))return;let e=()=>{navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(()=>{})};"complete"===document.readyState?e():window.addEventListener("load",e,{once:!0})},[]),null}},7917:(e,r,t)=>{Promise.resolve().then(t.bind(t,6519)),Promise.resolve().then(t.bind(t,5353)),Promise.resolve().then(t.bind(t,5384)),Promise.resolve().then(t.bind(t,9490)),Promise.resolve().then(t.bind(t,1813)),Promise.resolve().then(t.bind(t,6599)),Promise.resolve().then(t.bind(t,504)),Promise.resolve().then(t.t.bind(t,2593,23))},8356:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t={cancelIdleCallback:function(){return l},requestIdleCallback:function(){return i}};for(var n in t)Object.defineProperty(r,n,{enumerable:!0,get:t[n]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let r=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-r))}})},1)},l="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},9490:(e,r,t)=>{"use strict";t.d(r,{default:()=>u});
1var n=t(5155),i=t(2115),l=t(7882),a=t(8500),o=t.n(a),s=t(3321),d=t(4940);function c(e){let{open:r,onClose:t}=e,l=(0,s.useRouter)(),[a,o]=(0,i.useState)(""),[c,p]=(0,i.useState)("poems"),u=(0,i.useRef)(null);return((0,i.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>u.current?.focus(),0);function n(e){"Escape"===e.key&&t()}return document.addEventListener("keydown",n),document.body.style.overflow="hidden",()=>{clearTimeout(e),document.removeEventListener("keydown",n),document.body.style.overflow=""}},[r,t]),r)?(0,n.jsx)("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.55)",backdropFilter:"blur(4px)",zIndex:1e3,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"12vh"},children:(0,n.jsx)("div",{onClick:e=>e.stopPropagation(),role:"dialog","aria-label":"Site search",style:{background:"var(--pp-card)",border:"1px solid var(--pp-border)",borderRadius:"var(--pp-radius)",padding:"20px",width:"min(560px, 92vw)",boxShadow:"0 20px 60px rgba(0,0,0,0.4)"},children:(0,n.jsxs)("form",{onSubmit:function(e){e.preventDefault();let r=a.trim();if(!r)return;(0,d.s)("site_search",{query:r,mode:c});let n=new URLSearchParams({q:r,mode:c});l.push(`/search?${n.toString()}`),o(""),t()},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,n.jsx)("span",{style:{fontSize:"1.1rem",color:"var(--pp-muted)"},children:"\uD83D\uDD0D"}),(0,n.jsx)("input",{ref:u,type:"search",value:a,onChange:e=>o(e.target.value),placeholder:"poems"===c?"Search poems, poets, and tagsâ¦":"Search tips, terms, lessons, and moreâ¦","aria-label":"Search query",style:{flex:1,background:"transparent",border:"none",outline:"none",color:"var(--pp-text)",fontSize:"1.05rem",padding:"6px 0",minWidth:0}}),(0,n.jsx)("button",{type:"button",onClick:t,"aria-label":"Close search",style:{background:"transparent",border:"none",color:"var(--pp-muted)",fontSize:"1.1rem",cursor:"pointer",padding:"4px 8px"},children:"â"})]}),(0,n.jsx)("div",{role:"tablist","aria-label":"Search mode",style:{marginTop:"14px",display:"inline-flex",gap:"0",padding:"3px",background:"var(--pp-surface)",border:"1px solid var(--pp-border)",borderRadius:"999px"},children:["poems","editorial"].map(e=>(0,n.jsx)("button",{type:"button",role:"tab","aria-selected":c===e,onClick:()=>p(e),style:{padding:"6px 16px",borderRadius:"999px",border:"none",background:c===e?"var(--pp-yellow)":"transparent",color:c===e?"#000":"var(--pp-text-secondary)",fontSize:"0.82rem",fontWeight:c===e?700:500,cursor:"pointer",fontFamily:"var(--pp-font-mono)",textTransform:"uppercase",letterSpacing:"0.04em"},children:"poems"===e?"Poems":"Editorial"},e))}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"14px"},children:[(0,n.jsx)("p",{style:{fontSize:"0.78rem",color:"var(--pp-muted)",margin:0},children:"poems"===c?"Poems written by the community, plus poets and tags.":"Writing tips, poetry terms, lessons, famous poets, and articles."}),(0,n.jsx)("button",{type:"submit",className:"pp-btn pp-btn--primary",style:{fontSize:"0.82rem",padding:"8px 18px"},disabled:!a.trim(),children:"Search"})]})]})})}):null}let p=[{id:"poems",label:"Poems",url:"#",children:[{id:"browse",label:"Browse Poems",url:"/browse-poems"},{id:"slams",label:"Slams",url:"/slams"},{id:"fresh",label:"Fresh Drop",url:"/fresh"},{id:"echoes",label:"Echoes",url:"/echoes"}]},{id:"learn",label:"Learn",url:"#",children:[{id:"tips",label:"Writing Tips",url:"/tips"},{id:"poetry-terms",label:"Poetry Terms",url:"/poetry-terms"},{id:"famous-poets",label:"Poets & Artists",url:"/famous-poets"},{id:"books",label:"Books",url:"/books"},{id:"teachers",label:"For Teachers",url:"/teachers"}]},{id:"explore",label:"Explore",url:"#",children:[{id:"genome",label:"Poetry Genome",url:"/genome"},{id:"poem-map",label:"Poem Map",url:"/poem-map"},{id:"echoes-explore",label:"Echoes",url:"/echoes"},{id:"actions",label:"Take Action",url:"/action"},{id:"groups",label:"Groups",url:"/groups"}]},{id:"about",label:"About",url:"/about"}];function u(){let[e,r]=(0,i.useState)(!1),[t,a]=(0,i.useState)(!1),[s,d]=(0,i.useState)(p),{data:u}=(0,l.useSession)(),h=u?.user,m=h?.role&&["ADMIN","CONTENT","MENTOR"].includes(h.role);return(0,i.useEffect)(()=>{fetch("/api/menus").then(e=>e.json()).then(e=>{e.main&&Array.isArray(e.main)&&d(e.main)}).catch(()=>{})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("nav",{className:"pp-site-nav",children:(0,n.jsxs)("div",{className:"pp-site-nav__inner",children:[(0,n.jsxs)(o(),{href:"/",className:"pp-site-nav__logo",children:[(0,n.jsx)("img",{src:"/images/pp-logo-dark-nav-sm.webp",alt:"Power Poetry",className:"pp-logo-dark"}),(0,n.jsx)("img",{src:"/images/pp-logo-light-nav-sm.webp",alt:"Power Poetry",className:"pp-logo-light",style:{display:"none"}})]}),(0,n.jsxs)("ul",{className:"pp-site-nav__links",children:[s.map(e=>e.children&&e.children.length>0?(0,n.jsxs)("li",{className:"pp-nav-dropdown",children:[(0,n.jsxs)("span",{className:"pp-site-nav__link pp-site-nav__link--dropdown",children:[e.label," ",(0,n.jsx)("span",{className:"pp-nav-dropdown__caret",children:"â¾"})]}),(0,n.jsx)("div",{className:"pp-nav-dropdown__menu",children:e.children.map(e=>(0,n.jsx)(o(),{href:e.url,children:e.label},e.id))})]},e.id):(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:e.url,className:"pp-site-nav__link",children:e.label})},e.id)),h&&(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/for-you",className:"pp-site-nav__link",children:"For You"})}),h&&(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/digest",className:"pp-site-nav__link",children:"Digest"})}),m&&(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/admin",className:"pp-site-nav__link",children:"Admin"})})]}),(0,n.jsxs)("div",{className:"pp-site-nav__right",children:[(0,n.jsx)("button",{type:"button",onClick:()=>a(!0),"aria-label":"Search the site",className:"pp-site-nav__search-btn",style:{background:"transparent",border:"1px solid var(--pp-border)",color:"var(--pp-text-secondary)",borderRadius:"999px",width:"36px",height:"36px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"1rem",lineHeight:1},children:(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("line",{x1:"20",y1:"20",x2:"16.5",y2:"16.5"})]})}),(0,n.jsxs)(o(),{href:"/donate",className:"pp-btn pp-btn--donate",children:[(0,n.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})}),"Donate"]}),(0,n.jsx)(o(),{href:"/write",className:"pp-btn pp-btn--primary",children:"Write a Poem"}),h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:"/profile",className:"pp-btn pp-btn--ghost",children:h.name}),(0,n.jsx)("button",{className:"pp-btn pp-btn--ghost",onClick:()=>(0,l.signOut)({callbackUrl:"/"}),children:"Log Out"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:"/register",className:"pp-btn pp-btn--ghost",children:"Sign Up"}),(0,n.jsx)(o(),{href:"/login",className:"pp-btn pp-btn--ghost",children:"Log In"})]}),(0,n.jsx)("button",{className:"pp-theme-toggle",onClick:()=>{window.togglePPTheme&&window.togglePPTheme()},"aria-label":"Toggle theme",children:(0,n.jsx)("span",{className:"pp-theme-toggle__icon",children:"â½"})}),(0,n.jsx)("button",{className:"pp-mobile-toggle",onClick:()=>r(!e),"aria-label":"Toggle menu",children:e?"â":"â°"})]})]})}),(0,n.jsxs)("div",{className:`pp-mobile-menu${e?" is-open":""}`,children:[s.map(e=>e.children&&e.children.length>0?(0,n.jsxs)("div",{className:"pp-mobile-menu__group",children:[(0,n.jsx)("span",{className:"pp-mobile-menu__group-label",children:e.label}),e.children.map(e=>(0,n.jsx)(o(),{href:e.url,onClick:()=>r(!1),className:"pp-mobile-menu__child",children:e.label},e.id))]},e.id):(0,n.jsx)(o(),{href:e.url,onClick:()=>r(!1),children:e.label},e.id)),(0,n.jsx)(o(),{href:"/write",onClick:()=>r(!1),children:"Write a Poem"}),(0,n.jsx)(o(),{href:"/donate",onClick:()=>r(!1),children:"Donate"}),m&&(0,n.jsx)(o(),{href:"/admin",onClick:()=>r(!1),children:"Admin"}),h&&(0,n.jsx)(o(),{href:"/for-you",onClick:()=>r(!1),children:"For You"}),h&&(0,n.jsx)(o(),{href:"/digest",onClick:()=>r(!1),children:"Digest"}),h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:"/profile",onClick:()=>r(!1),children:"My Profile"}),(0,n.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),r(!1),(0,l.signOut)({callbackUrl:"/"})},children:"Log Out"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:"/register",onClick:()=>r(!1),children:"Sign Up"}),(0,n.jsx)(o(),{href:"/login",onClick:()=>r(!1),children:"Log In"})]})]}),(0,n.jsx)(c,{open:t,onClose:()=>a(!1)})]})}}},e=>{e.O(0,[8500,7882,8441,4192,7358],()=>e(e.s=7917)),_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.