1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{2270:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var a=s(12115),n=s(18720),r=s(18955);let l="sl_extension_prompt_dismissed",o="ckhgmilpofjdgiokbkpehjppkpkapdjp",i="https://chromewebstore.google.com/detail/social-libra-%C2%AE/".concat(o);function c(){let e=(0,r.c)("ExtensionPrompt");return(0,a.useEffect)(()=>{if(window.localStorage.getItem(l))return;let t=navigator.userAgent;if(!(/Chrome\//.test(t)&&!/Edg\/|OPR\/|SamsungBrowser|Mobile|Android/.test(t)))return;let s=!1;return new Promise(e=>{let t=new Image;t.onload=()=>e(!0),t.onerror=()=>e(!1),t.src="chrome-extension://".concat(o,"/public/icons/icon.png")}).then(t=>{if(t||s)return;let a=()=>{window.localStorage.setItem(l,"1")};(0,n.toast)(e("getExtension"),{duration:15e3,closeButton:!0,onDismiss:a,onAutoClose:a,action:{label:e("install"),onClick:()=>{a(),window.open(i,"_blank","noopener")}},cancel:{label:e("notNow"),onClick:a}})}),()=>{s=!0}},[e]),null}},5182:()=>{},16200:(e,t,s)=>{"use strict";s.d(t,{I:()=>m,M5:()=>f,SQ:()=>g,V0:()=>N,_2:()=>j,dc:()=>x,lp:()=>b,lv:()=>h,mB:()=>v,nV:()=>p,rI:()=>d,ty:()=>u});var a=s(95155),n=s(12115),r=s(60186),l=s(27937),o=s(5917),i=s(99051),c=s(25016);let d=r.bL,u=r.l9,m=r.YJ,x=r.ZL,h=r.Pb;r.z6;let p=n.forwardRef((e,t)=>{let{className:s,inset:n,children:o,...i}=e;return(0,a.jsxs)(r.ZP,{ref:t,className:(0,c.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"ps-8",s),...i,children:[o,(0,a.jsx)(l.A,{className:"ms-auto"})]})});p.displayName=r.ZP.displayName;let f=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.G5,{ref:t,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...n})});f.displayName=r.G5.displayName;let g=n.forwardRef((e,t)=>{let{className:s,sideOffset:n=4,...l}=e;return(0,a.jsx)(r.ZL,{children:(0,a.jsx)(r.UC,{ref:t,sideOffset:n,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...l})})});g.displayName=r.UC.displayName;let j=n.forwardRef((e,t)=>{let{className:s,inset:n,...l}=e;return(0,a.jsx)(r.q7,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"ps-8",s),...l})});j.displayName=r.q7.displayName,n.forwardRef((e,t)=>{let{className:s,children:n,checked:l,...i}=e;return(0,a.jsxs)(r.H_,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:l,...i,children:[(0,a.jsx)("span",{className:"absolute start-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})}),n]})}).displayName=r.H_.displayName,n.forwardRef((e,t)=>{let{className:s,children:n,...l}=e;return(0,a.jsxs)(r.hN,{ref:t,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...l,children:[(0,a.jsx)("span",{className:"absolute start-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(i.A,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=r.hN.displayName;let b=n.forwardRef((e,t)=>
1{let{className:s,inset:n,...l}=e;return(0,a.jsx)(r.JU,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",n&&"ps-8",s),...l})});b.displayName=r.JU.displayName;let v=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.wv,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",s),...n})});v.displayName=r.wv.displayName;let N=e=>{let{className:t,...s}=e;return(0,a.jsx)("span",{className:(0,c.cn)("ms-auto text-xs tracking-widest opacity-60",t),...s})};N.displayName="DropdownMenuShortcut"},38825:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var a=s(95155),n=s(12115),r=s(18955),l=s(42409),o=s(63433),i=s(33431),c=s(38966);function d(){let e=(0,r.c)("TopicsMenu"),{topics:t}=(0,n.useContext)(l.U5),s=(0,c.a8)(),d=s.startsWith("/topic/")?decodeURIComponent(s.split("/")[2]||""):"";return(0,a.jsx)("div",{className:"w-screen sm:w-full flex items-center justify-center border-t border-b py-2 px-6 border-border mt-3 sticky top-0 z-[100000] bg-background",children:(0,a.jsx)(o.FN,{opts:{align:"center"},className:"w-full mx-auto",children:(0,a.jsxs)(o.Wk,{children:[(0,a.jsx)(o.A7,{className:"basis-auto px-1",children:(0,a.jsx)(i.$,{asChild:!0,size:"sm",variant:""===d?"default":"outline",className:"rounded-full text-nowrap",children:(0,a.jsx)(c.N_,{href:"/",children:e("all")})})}),t.choices&&t.choices.map((e,t)=>(0,a.jsx)(o.A7,{className:"basis-auto px-1",children:(0,a.jsx)(i.$,{asChild:!0,size:"sm",variant:d===e.value?"default":"outline",className:"rounded-full text-nowrap",children:(0,a.jsx)(c.N_,{href:"/topic/".concat(e.value),children:e.label})})},t))]})})})}},44959:(e,t,s)=>{Promise.resolve().then(s.bind(s,69748)),Promise.resolve().then(s.bind(s,42409)),Promise.resolve().then(s.bind(s,2270)),Promise.resolve().then(s.bind(s,79806)),Promise.resolve().then(s.t.bind(s,5182,23)),Promise.resolve().then(s.bind(s,49279)),Promise.resolve().then(s.bind(s,38825)),Promise.resolve().then(s.bind(s,64707)),Promise.resolve().then(s.bind(s,3809)),Promise.resolve().then(s.bind(s,5379)),Promise.resolve().then(s.t.bind(s,81356,23)),Promise.resolve().then(s.bind(s,18720))},49279:(e,t,s)=>{"use strict";s.d(t,{default:()=>Y});var a=s(95155),n=s(38966),r=s(18955),l=s(31459),o=s(24033),i=s(12115),c=s(42409),d=s(36230),u=s(25016),m=s(1399),x=s(29698),h=s(92296),p=s(12284),f=s(63354);function g(){let{user:e}=(0,i.useContext)(c.Rs),[t,s]=(0,i.useState)({sandboxData:{token:"",ctx:""}});if((0,i.useEffect)(()=>{(async()=>{let t=await fetch("https://api.sociallibra.com/wp-json/social_libra/v2/sandbox_token",{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e.token)}}),a=await t.json();s(e=>({...e,sandboxData:a.data}))})()},[e.token]),"administrator"!=e.role)return null;if(!t.sandboxData.token)return(0,a.jsx)("div",{children:"Loading sandbox data..."});let n={options:{product_id:"23134",plan_id:"38795",sandbox:t.sandboxData,user_email:e.email,user_firstname:e.first_name,user_lastname:e.last_name},link:"https://checkout.freemius.com/".concat("23134","/"),baseUrl:"https://checkout.freemius.com"};return(0,a.jsx)(p.s,{endpoint:"https://www.sociallibra.com//api/checkout",checkout:n,children:(0,a.jsx)(j,{})})}function j(){let e=(0,f.Q5)();return(0,a.jsx)("button",{onClick:()=>{e.open()},children:"Test Upgrade Account"})}var b=s(42475),v=s(33431),N=s(18720),w=s(96354),y=s(23664),k=s(5917),_=s(65229),C=s(32382);function A(e){let{onClose:t}=e,s=(0,r.c)("InviteFriend"),{user:n}=(0,i.useContext)(c.Rs),[l,o]=(0,i.useState)(""),[d,u]=(0,i.useState)(!1),[x,h]=(0,i.useState)(null);if(!n.token)return(0,a.jsxs)(C.A,{className:"sm:w-1/3",onClose:t,children:[(0,a.jsx)("p",{className:"text-center",children:s("mustBeLoggedIn")}),(0,a.jsx)(m.default,{})]});let p=async e=>{e.preventDefault();let t=Array.from(new Set(l.split(/[\n,]/).map(e=>e.trim()).filter(Boolean))).slice(0,w.Ve);if(t.length){u(!0),h(null);try{let e=await (0,w.s9)(t,n.token);e.results?h(e.results):(N.toast.success(e.message||s("inviteSent")),o(""))}catch(e){var a;N.toast.error(e.message||s("inviteFailed"),(null==(a=e.data)?void 0:a.code)==="invite_limit_reached"?{duration:8e3}:void 0)}finally{u(!1)}}};return(0,a.jsx)(C.A,{className:"w-full sm:w-1/3",onClose:t,children:(0,a.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,a.jsxs)("h3",{className:"text-2xl font-bold",children:[s("title")," ",(0,a.jsx)(y.A,{className:"inline"})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:s("description")}),(0,a.jsxs)("form",{onSubmit:p,className:"flex flex-col gap-3",children:[(0,a.jsx)("textarea",{className:"input-text-type",rows:3,placeholder:s("placeholder"),value:l,onCh
1ange:e=>o(e.target.value)}),(0,a.jsx)("button",{type:"submit",className:"btn-primary",disabled:d||!l.trim(),children:d?s("sending"):s("sendInvite")})]}),x&&(0,a.jsx)("ul",{className:"flex flex-col gap-2 mt-2",children:x.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[e.success?(0,a.jsx)(k.A,{className:"text-green-600 shrink-0",size:16}):(0,a.jsx)(_.A,{className:"text-destructive shrink-0",size:16}),(0,a.jsx)("span",{className:"font-medium",children:e.email}),!e.success&&e.message&&(0,a.jsxs)("span",{className:"text-muted-foreground",children:["â ",e.message]})]},e.email))})]})})}function S(e){let{className:t=""}=e,s=(0,r.c)("AccountDetails"),{user:l,setCurrentUser:p}=(0,i.useContext)(c.Rs),[f,j]=(0,i.useState)({LoginForm:"",accountForm:!1,inviteFriend:!1}),N=()=>{j({...f,LoginForm:"",accountForm:!1})};return(0,a.jsx)("div",{className:(0,u.cn)("flex content-end gap-2",t),children:l.token?(0,a.jsxs)(d.AM,{children:[(0,a.jsx)(d.Wv,{children:(0,a.jsxs)("div",{children:[s("hello",{name:l.name}),(0,a.jsx)(o.A,{className:"inline-block",size:20})]})}),(0,a.jsxs)(d.hl,{className:"bg-background",sideOffset:5,children:[(0,a.jsx)("button",{className:"w-full hover:bg-gray-400 hover:text-background px-1 text-start",children:(0,a.jsx)(n.N_,{href:"/account/edit",className:"",children:s("editAccount")})})," ",(0,a.jsx)(g,{}),(0,a.jsx)("button",{className:"hover:bg-gray-400 hover:text-background px-1 w-full text-start",children:(0,a.jsx)(n.N_,{className:"w-full",href:"/influencer/".concat(l.slug),children:s("myStoryFrames")})}),(0,a.jsx)("button",{className:"hover:bg-gray-400 hover:text-background px-1 w-full text-start",children:(0,a.jsx)(n.N_,{className:"w-full",href:"/account/subscription",children:s("subscription")})}),(0,a.jsx)("button",{className:"hover:bg-gray-400 hover:text-background px-1 w-full text-start",children:(0,a.jsx)(n.N_,{className:"w-full",href:"/account/notifications",children:s("notifications")})}),(0,a.jsx)("button",{className:"hover:bg-gray-400 hover:text-background px-1 w-full text-start",onClick:()=>j({...f,inviteFriend:!0}),children:s("inviteFriend")}),(0,a.jsx)("button",{className:"hover:bg-gray-400 hover:text-background px-1 w-full text-start",onClick:()=>{(0,x.Ay)("",p)},children:s("logOut")})]}),(0,a.jsx)(b.lG,{open:f.accountForm,onOpenChange:N,children:(0,a.jsx)(b.Cf,{children:(0,a.jsx)(h.A,{onSuccess:N})})}),f.inviteFriend&&(0,a.jsx)(A,{onClose:()=>j({...f,inviteFriend:!1})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.lG,{open:""!=f.LoginForm,onOpenChange:N,children:(0,a.jsxs)(b.Cf,{className:"p-5 content-start",children:[(0,a.jsx)(b.c7,{children:(0,a.jsx)(b.L3,{className:"pt-3",children:s("loginToYourAccount")})}),(0,a.jsxs)("p",{children:[s("noAccountPrompt")," ",(0,a.jsx)(n.N_,{href:"sign-up",className:"text-blue-500 underline",children:s("signUp")})]}),(0,a.jsx)(m.default,{onSuccess:N,tab:f.LoginForm})]})}),(0,a.jsx)(v.$,{variant:"ghost",className:"btn-primary",onClick:()=>{j({...f,LoginForm:"Login"})},children:s("login")}),(0,a.jsxs)(n.N_,{href:"sign-up",children:[(0,a.jsx)(v.$,{variant:"link",children:s("signUp")})," "]})]})})}var P=s(97998),F=s(64717);let z=()=>{let{search:e,setSearch:t}=(0,i.useContext)(c.o7),{activeSearch:s,query:n}=e;return(0,a.jsx)("div",{className:"relative flex justify-end",children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"text",className:"my-5 mx-auto border rounded-md p-2 w-full",placeholder:"Search anything...",value:e.query,onChange:e=>{t&&(history&&history.pushState({searchQuery:e.target.value},"","/?search=".concat(e.target.value)),t(t=>({...t,query:e.target.value})))}}),(0,a.jsx)(F.zhF,{className:"absolute top-8 right-8 text-2xl cursor-pointer",onClick:()=>{history&&history.pushState({searchQuery:""},"","/"),t&&t(e=>({...e,query:"",activeSearch:!1}))}})]}):(0,a.jsx)(P.KSO,{onClick:()=>t&&t(e=>({...e,activeSearch:!0})),className:"text-2xl cursor-pointer"})})};var L=s(59427),R=s(37494),U=s(5379),I=s(16200);function D(){let{setTheme:e}=(0,U.D)();return(0,a.jsxs)(I.rI,{children:[(0,a.jsx)(I.ty,{asChild:!0,children:(0,a.jsxs)(v.$,{variant:"outline",size:"icon",children:[(0,a.jsx)(L.A,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(R.A,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(I.SQ,{align:"end",children:[(0,a.jsx)(I._2,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(I._2,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(I._2,{onClick:()=>e("system"),children:"System"})]})]})}var E=s(51567),O=s(8842),M=s(14744);let T=M.bL;M.YJ;let B=M.WT,V=i.forwardRef((e,t)=>
1{let{className:s,children:n,...r}=e;return(0,a.jsxs)(M.l9,{ref:t,className:(0,u.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),...r,children:[n,(0,a.jsx)(M.In,{asChild:!0,children:(0,a.jsx)(o.A,{className:"h-4 w-4 opacity-50"})})]})});V.displayName=M.l9.displayName;let q=i.forwardRef((e,t)=>{let{className:s,children:n,position:r="popper",...l}=e;return(0,a.jsx)(M.ZL,{children:(0,a.jsx)(M.UC,{ref:t,className:(0,u.cn)("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-80","popper"===r&&"translate-y-1",s),position:r,...l,children:(0,a.jsx)(M.LM,{className:(0,u.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n})})})});q.displayName=M.UC.displayName,i.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(M.JU,{ref:t,className:(0,u.cn)("py-1.5 ps-8 pe-2 text-sm font-semibold",s),...n})}).displayName=M.JU.displayName;let J=i.forwardRef((e,t)=>{let{className:s,children:n,...r}=e;return(0,a.jsxs)(M.q7,{ref:t,className:(0,u.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...r,children:[(0,a.jsx)("span",{className:"absolute start-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(M.VF,{children:(0,a.jsx)(k.A,{className:"h-4 w-4"})})}),(0,a.jsx)(M.p4,{children:n})]})});J.displayName=M.q7.displayName,i.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(M.wv,{ref:t,className:(0,u.cn)("-mx-1 my-1 h-px bg-muted",s),...n})}).displayName=M.wv.displayName;let W={en:"English",es:"Espa\xf1ol",fr:"Fran\xe7ais",de:"Deutsch",pt:"Portugu\xeas",ar:"Ø§ÙØ¹Ø±Ø¨ÙØ©",he:"×¢×ר×ת"};function G(){let e=(0,E.Ym)(),t=(0,n.rd)(),s=(0,n.a8)(),[,r]=(0,i.useTransition)();return(0,a.jsxs)(T,{value:e,onValueChange:e=>{r(()=>{t.replace(s,{locale:e})})},children:[(0,a.jsx)(V,{"aria-label":"Language",className:"w-auto h-auto border-none bg-transparent px-2 py-1 gap-1",children:(0,a.jsx)(B,{})}),(0,a.jsx)(q,{children:O.D.locales.map(e=>(0,a.jsx)(J,{value:e,children:W[e]},e))})]})}function Q(e){let{className:t,showSearch:s=!0}=e,l=(0,r.c)("Nav"),m=(0,n.a8)(),{topics:x}=(0,i.useContext)(c.U5),{users:h}=(0,i.useContext)(c.Aw),p=h.choices;return(0,a.jsxs)("div",{className:(0,u.cn)("flex-col sm:flex-row items-center",t),children:[(0,a.jsx)("div",{children:(0,a.jsx)(n.N_,{className:"nav-item ".concat("/about"==m&&"active"),href:"/about",children:l("about")})}),(0,a.jsx)("div",{children:(0,a.jsx)(n.N_,{className:"nav-item ".concat("/votes"==m&&"active"),href:"/votes",children:l("votes")})}),(0,a.jsx)("div",{children:(0,a.jsxs)(d.AM,{children:[(0,a.jsx)(d.Wv,{children:(0,a.jsxs)("div",{children:[l("influencers"),(0,a.jsx)(o.A,{className:"inline-block",size:20})]})}),(0,a.jsx)(d.hl,{className:"bg-background",sideOffset:5,children:(0,a.jsx)("ul",{className:"grid gap-3 p-2 m-auto lg:grid-cols-[1fr] max-h-[50vh] overflow-y-scroll",children:p&&Object.keys(p).map(e=>{let t=p[e];if("subscriber"!=t.role)return(0,a.jsx)("li",{className:"hover:bg-gray-400 hover:text-background row-span-3",children:(0,a.jsx)(n.N_,{className:"block w-full p-1 ".concat("/influencer/"+t.slug==m&&"active"),href:"/influencer/".concat(t.slug),children:t.name})},t.id)})})})]})}),(0,a.jsx)(S,{}),s&&(0,a.jsx)(z,{}),(0,a.jsx)(G,{}),(0,a.jsx)(D,{})]})}function Y(){return(0,a.jsxs)("div",{className:"menu relative flex items-center gap-2 basis-3/4 justify-end",children:[(0,a.jsx)("div",{className:"flex-1 text-end sm:hidden",children:(0,a.jsx)(z,{})}),(0,a.jsx)("div",{className:"group sm:hidden text-center",children:(0,a.jsxs)(d.AM,{children:[(0,a.jsx)(d.Wv,{children:(0,a.jsx)("div",{className:"p-2 text-2xl cursor-pointer",children:(0,a.jsx)(l.Jtp,{})})}),(0,a.jsx)(d.hl,{className:"bg-background",sideOffset:5,children:(0,a.jsx)(Q,{className:"flex justify-center w-full gap-4",showSearch:!1})})]})}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(Q,{className:"flex flex-row justify-center w-full gap-4"})})]})}},69748:(e,t,s)=>{"use strict";s.d(t,{Toaster:()=>l});var a=s(95155),n=s(5379),r=s(18720);let l=e=>{let{...t}=e,{theme:s="system"}=(0,n.D)();return(0,a.jsx)(r.l,{theme:s,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})}},79806:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var a=s(12115),n=s(18720),r=s(18955),l=s(42409),o=s(96354),i=s(95704);
1async function c(e){if(!("serviceWorker"in navigator)||!("PushManager"in window))return!1;let t=i.env.NEXT_PUBLIC_VAPID_PUBLIC_KEY;if(!t||"granted"!==await Notification.requestPermission())return!1;let s=await navigator.serviceWorker.ready,a=await s.pushManager.getSubscription();return a||(a=await s.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),s=atob((e+t).replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from([...s].map(e=>e.charCodeAt(0)))}(t)})),await (0,o.pU)({platform:"web",subscription:a.toJSON()},e),!0}let d="sl_push_prompt_dismissed";function u(){let e=(0,r.c)("PushNotificationsPrompt"),{user:t}=(0,a.useContext)(l.Rs);return(0,a.useEffect)(()=>{if(!t.token||"undefined"==typeof Notification||"default"!==Notification.permission||window.localStorage.getItem(d))return;let s=t.token,a=()=>{window.localStorage.setItem(d,"1")};(0,n.toast)(e("getNotified"),{duration:15e3,closeButton:!0,onDismiss:a,onAutoClose:a,action:{label:e("enable"),onClick:()=>{a(),c(s)}},cancel:{label:e("notNow"),onClick:a}})},[t.token]),null}}},e=>{e.O(0,[4173,3098,9344,3349,2084,8720,2619,4707,1474,4579,3096,1359,5779,1356,9510,7295,1912,251,1399,7510,8441,783,7358],()=>e(e.s=44959)),_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.