1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[590],{235:(e,a,t)=>{t.d(a,{A:()=>o,O:()=>r});var n=t(5155),s=t(2115),l=t(4924);let i=(0,s.createContext)(),r=e=>{let{children:a}=e,[t,r]=(0,s.useState)(null),[o,c]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1),[u,h]=(0,s.useState)(!1),[f,_]=(0,s.useState)(null),[g,p]=(0,s.useState)(!1),[v,x]=(0,s.useState)({id:"affluenz-app",public_settings:{name:"Affluenz Magazine"}});(0,s.useEffect)(()=>{let e=(0,l.Ti)();e&&(0,l.gf)()&&(r(e),c(!0)),y()},[]);let y=async()=>{h(!0),_(null),x({id:"affluenz-app",public_settings:{name:"Affluenz Magazine",environment:"production"}}),await j(),h(!1)},j=async()=>{m(!0);let e=null;if((0,l.gf)())try{e=await l.ZQ.me(),(0,l.h)({user:e,token:(0,l.gf)()})}catch(a){(0,l.q7)(),e=null}return r(e),c(!!e),m(!1),p(!0),e},N=async(e,a)=>{let t=await l.ZQ.login(e,a),n=(0,l.h)(t);return r(n),c(!0),_(null),n},b=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"google",a=await l.ZQ.providerLogin(e),t=(0,l.h)(a);return r(t),c(!0),_(null),t},k=async e=>{let{email:a,password:t,name:n}=e,s=await l.ZQ.register({email:a,password:t,name:n}),i=(0,l.h)(s);return r(i),c(!0),_(null),i},w=async e=>{let a=await l.ZQ.forgotPassword(e);return(null==a?void 0:a.devResetToken)||null},S=async e=>{let{resetToken:a,newPassword:t}=e,n=await l.ZQ.resetPassword({resetToken:a,newPassword:t}),s=(0,l.h)(n);return r(s),c(!0),_(null),s};return(0,n.jsx)(i.Provider,{value:{user:t,isAuthenticated:o,isLoadingAuth:d,isLoadingPublicSettings:u,authError:f,appPublicSettings:v,authChecked:g,login:N,loginViaProvider:b,register:k,resetPasswordRequest:w,resetPassword:S,logout:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];r(null),c(!1),l.ZQ.logout().catch(()=>{}),(0,l.q7)(),e&&(window.location.href="/login")},navigateToLogin:()=>{window.location.href="/login"},checkUserAuth:j,checkAppState:y},children:a})},o=()=>{let e=(0,s.useContext)(i);if(!e)throw Error("useAuth must be used within an AuthProvider");return e}},2801:(e,a,t)=>{t.d(a,{A:()=>n});let n=(0,t(4294).A)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},4924:(e,a,t)=>{t.d(a,{Ez:()=>i,Ti:()=>m,VT:()=>p,YY:()=>x,ZQ:()=>w,b7:()=>b,cn:()=>k,gf:()=>c,h:()=>h,n0:()=>j,q7:()=>f,qq:()=>g,rC:()=>N,vl:()=>y,xZ:()=>v,zj:()=>l});let n="https://theaffluenzmedia.com/api",s=n.replace(/\/api\/?$/,""),l=e=>{let a=String(e||"");return/^https?:\/\//i.test(a)?a:"".concat(s,"/uploads/").concat(a.replace(/^\/+/,""))},i=e=>{let a=String(e||"");return/^https?:\/\//i.test(a)?a:"/_pdf/".concat(a.replace(/^\/+/,""))},r="affluenz_token",o="affluenz_user",c=()=>window.localStorage.getItem(r),d=e=>{e?window.localStorage.setItem(r,e):window.localStorage.removeItem(r)},m=()=>{try{let e=window.localStorage.getItem(o);return e?JSON.parse(e):null}catch(e){return null}},u=e=>{e?window.localStorage.setItem(o,JSON.stringify(e)):window.localStorage.removeItem(o)},h=function(){let{user:e,token:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(a||null),u(e||null),e||null},f=()=>{d(null),u(null)};async function _(e){let a,{method:t="GET",body:s,headers:l={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={...l},r={method:t,headers:i};void 0!==s&&(i["Content-Type"]="application/json",r.body=JSON.stringify(s));let o=c();o&&(i.Authorization="Bearer ".concat(o));try{a=await fetch("".concat(n).concat(e),r)}catch(e){throw Error("Unable to reach the server. Please check your connection and try again.")}let d=(a.headers.get("content-type")||"").includes("application/json")?await a.json():null;if(!a.ok){var m,u;let e=Error((null==d||null==(m=d.error)?void 0:m.message)||a.statusText||"Request failed (".concat(a.status,")"));throw e.status=a.status,e.details=null==d||null==(u=d.error)?void 0:u.details,e}return d}let g=e=>_("/articles".concat(e?"?category=".concat(encodeURIComponent(e)):"")).then(e=>e.data),p=()=>_("/articles/categories").then(e=>e.data),v=e=>_("/articles/".concat(e)).then(e=>e.data),x=e=>_("/magazines".concat(e?"?category=".concat(encodeURIComponent(e)):"")).then(e=>e.data),y=e=>_("/magazines/".concat(e)).then(e=>e.data),j=()=>c()?_("/magazines/purchases").then(e=>e.data||[]).catch(()=>[]):Promise.resolve([]),N=e=>_("/home/overview".concat(e?"?limit=".concat(encodeURIComponent(e)):"")).then(e=>e.data),b=()=>_("/pricing-plans").then(e=>e.data),k=e=>{let{reference:a,planId:t,magazineId:n}=e;return _("/payments/paystack/verify",{method:"POST",body:{reference:a,planId:t,...n?{magazineId:n}:{}}})},w={login:(e,a)=>_("/auth/login",{method:"POST",body:{email:e,password:a}}),providerLogin:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"google";return _("/auth/provider-login",{method:"POST",body:{provider:e}}
1)},register:e=>{let{email:a,password:t,name:n}=e;return _("/auth/register",{method:"POST",body:{email:a,password:t,...n?{name:n}:{}}})},forgotPassword:e=>_("/auth/forgot-password",{method:"POST",body:{email:e}}),resetPassword:e=>{let{resetToken:a,newPassword:t}=e;return _("/auth/reset-password",{method:"POST",body:{resetToken:a,newPassword:t}})},logout:()=>_("/auth/logout",{method:"POST"}),me:()=>_("/auth/me").then(e=>e.user)}},5330:(e,a,t)=>{t.d(a,{A:()=>r});var n=t(5155),s=t(2115),l=t(235);let i=[{label:"Leadership",category:"/features?category=Leadership"},{label:"Style",category:"/features?category=Style"},{label:"Culture",category:"/features?category=Culture"},{label:"Lifestyle",category:"/features?category=Lifestyle"},{label:"Wellbeing",category:"/features?category=Wellbeing"},{label:"Taste",category:"/features?category=Taste"},{label:"Travel",category:"/features?category=Travel"},{label:"Property",category:"/features?category=Property"},{label:"Contact Us",category:"/contact"},{label:"Media Kit & Rate Card",category:"/media-kit"},{label:"Case Studies",category:"/case-studies"},{label:"About Affluenz",category:"/about"}];
1function r(){let[e,a]=(0,s.useState)(!1),[t,r]=(0,s.useState)(!1),{isAuthenticated:o,logout:c}=(0,l.A)();return(0,s.useEffect)(()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""}),[t]),(0,s.useEffect)(()=>{let e=window.scrollY,t=()=>{let t=window.scrollY;t<80?a(!1):t>e?a(!0):t<e&&a(!1),e=t};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("header",{className:"masthead has--headroom is--not-bottom is--pinned is--top",style:{position:"sticky",top:0,zIndex:1e3,transform:e?"translateY(-100%)":"translateY(0)",transition:"transform 0.3s ease"},children:(0,n.jsx)("div",{className:"masthead__inner",children:(0,n.jsxs)("div",{className:"masthead__row masthead__row--primary",children:[(0,n.jsxs)("div",{className:"masthead__section masthead__section--primary",children:[(0,n.jsxs)("div",{className:"masthead__actions-left",children:[(0,n.jsx)("div",{className:"masthead-hamburger",children:(0,n.jsx)("button",{type:"button",className:"c-hamburger c-hamburger--netbook".concat(t?" js-is-active":""),id:"js-toggle-main-nav","aria-label":"Toggle navigation menu","aria-expanded":t,onClick:()=>r(e=>!e),children:(0,n.jsx)("span",{className:"c-hamburger__container",children:(0,n.jsx)("span",{className:"c-hamburger__inner"})})})}),(0,n.jsx)("div",{className:"masthead-actions__item masthead-actions__item--search",children:(0,n.jsx)("button",{className:"masthead-actions__search js-search-input",children:(0,n.jsx)("i",{className:"c-icon","data-fa-i2svg":"",children:(0,n.jsx)("svg",{className:"svg-inline--fa fa-magnifying-glass fa-fw","aria-hidden":"true",focusable:"false","data-prefix":"far","data-icon":"magnifying-glass",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":"",children:(0,n.jsx)("path",{fill:"currentColor",d:"M504.1 471l-134-134C399.1 301.5 415.1 256.8 415.1 208c0-114.9-93.13-208-208-208S-.0002 93.13-.0002 208S93.12 416 207.1 416c48.79 0 93.55-16.91 129-45.04l134 134C475.7 509.7 481.9 512 488 512s12.28-2.344 16.97-7.031C514.3 495.6 514.3 480.4 504.1 471zM48 208c0-88.22 71.78-160 160-160s160 71.78 160 160s-71.78 160-160 160S48 296.2 48 208z"})})})})})]}),(0,n.jsx)("div",{className:"masthead__center",children:(0,n.jsx)("div",{className:"o-logo o-logo--masthead c-masthead__logo masthead-logo",itemScope:!0,itemType:"http://schema.org/Organization",children:(0,n.jsx)("a",{className:"o-logo__link",itemProp:"url",rel:"home",href:"https://theaffluenzmedia.com",children:(0,n.jsx)("div",{className:"o-logo--wordmark",children:(0,n.jsx)("img",{src:"/images/logo1.png",alt:"Affluenz",className:"w-[180px] h-auto"})})})})}),(0,n.jsx)("nav",{className:"masthead-actions","aria-label":"actions",children:(0,n.jsx)("ul",{className:"masthead-actions__list",children:(0,n.jsx)("li",{className:"masthead-actions__item",children:o?(0,n.jsx)("a",{className:"masthead-actions__link",href:"/login",onClick:e=>{e.preventDefault(),c()},children:"Sign Out"}):(0,n.jsx)("a",{className:"masthead-actions__link",href:"/login",children:"Sign In"})})})})]}),(0,n.jsx)("nav",{className:"masthead-nav-upper","aria-label":"nav-cornerstone",children:(0,n.jsxs)("ul",{className:"masthead-nav-upper__list",children:[(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"150",children:(0,n.jsx)("a",{href:"/features?category=Leadership",className:"masthead-nav-upper__link masthead-nav-upper__link--150",children:"Leadership"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"160",children:(0,n.jsx)("a",{href:"/features?category=Style",className:"masthead-nav-upper__link masthead-nav-upper__link--160",children:"Style"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"42",children:(0,n.jsx)("a",{href:"/features?category=Culture",className:"masthead-nav-upper__link masthead-nav-upper__link--wp-global-styles-lydia",children:"Culture"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"28099",children:(0,n.jsx)("a",{href:"/features?category=Lifestyle",className:"masthead-nav-upper__link masthead-nav-upper__link--28099",children:"Lifestyle"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"163",children:(0,n.jsx)("a",{href:"/features?category=Wellbeing",className:"masthead-nav-upper__link masthead-nav-upper__link--163",children:"Wellbeing"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"161",children:(0,n.jsx)("a",{href:"/features?category=Taste",className:"masthead-nav-upper__link masthead-nav-upper__link--161",children:"Taste"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"162",children:(0,n.jsx)("a",{href:"/features?category=Travel",className:"masthead-nav-upper__link masthead-nav-upper__link--162",children:"Travel"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"28150",children:(0,n.jsx)("a",{href:"/features?category=Property",className:"masthead-nav-upper__link masthead-nav-upper__link--28150",children:"Property"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"113291",children:(0,n.jsx)("a",{href:"/contact",className:"masthead-nav-upper__link masthead-nav-upper__link--113291",children:"Contact Us"})}),(0,n.jsx)("li",{className:"masthead-nav-upper__item ","data-nav-id":"113293",children:(0,n.jsx)("a",{href:"/about",className:"masthead-nav-upper__link masthead-nav-upper__link--113293",children:"About Affluenz"})})]})})]})})}),(0,n.jsxs)("div",{className:"masthead-mobile-nav".concat(t?" is--open":""),"aria-hidden":!t,children:[(0,n.jsxs)("nav",{className:"masthead-mobile-nav__panel","aria-label":"mobile navigation",children:[(0,n.jsx)("ul",{className:"masthead-mobile-nav__list",children:i.map(e=>(0,n.jsx)("li",{className:"masthead-mobile-nav__item",children:(0,n.jsx)("a",{className:"masthead-mobile-nav__link",href:e.category,onClick:()=>r(!1),children:e.label})},e.category))}),(0,n.jsx)("a",{className:"masthead-mobile-nav__signin",href:"/login",onClick:e=>{r(!1),o&&(e.preventDefault(),c())},children:o?"Sign Out":"Sign In"})]}),(0,n.jsx)("button",{type:"button",className:"masthead-mobile-nav__overlay","aria-label":"Close navigation menu",onClick:()=>r(!1)})]})]})}},7373:(e,a,t)=>{t.d(a,{A:()=>c});var n=t(5155);t(2115);var s=t(4924),l=t(2454),i=t(2801),r=t(9931),o=t(9906);function c(){let{data:e,isLoading:a}=(0,l.I)({queryKey:["home-overview"],queryFn:()=>(0,s.rC)()}),t=(null==e?void 0:e.latestMagazine)||null;return(0,n.jsx)("footer",{className:"c-foundation",itemScope:!0,itemType:"http://schema.org/WPFooter",role:"contentinfo",children:(0,n.jsx)("div",{className:"c-foundation__inner",children:(0,n.jsxs)("div",{className:"c-foundation__items",children:[(0,n.jsx)("div",{className:"c-foundation__item c-foundation__item--one",children:(0,n.jsxs)("div",{className:"c-foundation__group",children:[(0,n.jsx)("nav",{className:"c-foundation-menu",children:(0,n.jsxs)("ul",{className:"c-foundation-menu__items",children:[(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Leadership",className:"c-foundation-menu__link",children:"Leadership"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Style",className:"c-foundation-menu__link",children:"Style"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Culture",className:"c-foundation-menu__link",children:"Culture"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Lifestyle",className:"c-foundation-menu__link",children:"Lifestyle"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Wellbeing",className:"c-foundation-menu__link",children:"Wellbeing"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Taste",className:"c-foundation-menu__link",children:"Taste"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Travel",className:"c-foundation-menu__link",children:"Travel"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/features?category=Property",className:"c-foundation-menu__link",children:"Property"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/about",className:"c-foundation-menu__link",children:"About Affluenz"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/media-kit",className:"c-foundation-menu__link",children:"Media Kit & Rate Card"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/case-studies",className:"c-foundation-menu__link",children:"Case Studies"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/pricing",className:"c-foundation-menu__link",children:"Pricing"})}),(0,n.jsx)("li",{className:"c-foundation-menu__item c-foundation-menu__item--parent ",children:(0,n.jsx)("a",{href:"/contact",className:"c-foundation-menu__link",children:"Contact Us"})})]})}),(0,n.jsxs)("div",{className:"c-foundation-social",style:{display:"flex",gap:"16px"},children:[(0,n.jsx)("a",{href:"https://web.facebook.com/Theaffluenz",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",style:{color:"#ffffff"},children:(0,n.jsx)(i.A,{size:20})}),(0,n.jsx)("a",{href:"https://www.instagram.com/theaffluenzmag",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",style:{color:"#ffffff"},children:(0,n.jsx)(r.A,{size:20})}),!1,!1,(0,n.jsx)("a",{href:"https://m.youtube.com/feed/library",target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",style:{color:"#ffffff"},children:(0,n.jsx)(o.A,{size:20})})]}),(0,n.jsx)("section",{className:"c-foundation-legal",children:(0,n.jsxs)("div",{className:"c-foundation-legal__inner",children:[(0,n.jsx)("div",{className:"o-logo o-logo--foundation c-foundation__logo foundation-logo",itemScope:!0,itemType:"http://schema.org/Organization",children:(0,n.jsx)("a",{className:"o-logo__link",itemProp:"url",rel:"home",href:"https://theaffluenzmedia.com",children:(0,n.jsx)("div",{className:"o-logo--wordmark",children:(0,n.jsx)("img",{src:"/images/logo2.png",alt:"The Affluenz Media"})})})}),(0,n.jsxs)("div",{className:"c-foundation-legal__info",children:[(0,n.jsxs)("p",{className:"c-foundation-legal__copyright",children:["\xa9 2021-2026 - The Affluenz Media. ",(0,n.jsx)("span",{className:"u-block",children:"All rights reserved."})]}),(0,n.jsx)("p",{className:"c-foundation-legal__copyright",children:"The Affluenz Media is not responsible for the content of external sites."}),(0,n.jsx)("p",{className:"c-foundation-legal__copyright",children:"Part of The Affluenz Media Ltd (09312298)"})]})]})})]})}),(0,n.jsx)("div",{className:"c-foundation__item c-foundation__item--two",children:(0,n.jsx)("div",{className:"c-foundation__group",children:(0,n.jsx)("section",{className:"c-newsletter c-newsletter--standard c-foundation__newsletter",children:(0,n.jsx)("div",{className:"c-newsletter__inner",children:(0,n.jsxs)("div",{className:"c-newsletter__content",children:[(0,n.jsx)("a",{href:"/magazines",children:(0,n.jsx)("img",{className:"c-newsletter__image",src:(0,s.zj)(null==t?void 0:t.thumbnail),alt:"Magazine cover"})}),(0,n.jsx)("div",{className:"klaviyo-form-VNyueg"})]})})})})})]})})})}},9906:(e,a,t)=>{t.d(a,{A:()=>n});let n=(0,t(4294).A)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.5
15 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},9931:(e,a,t)=>{t.d(a,{A:()=>n});let n=(0,t(4294).A)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])}}]);
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.