(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9163],{54215:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/content",function(){return t(8562)}])},8562:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return P}});var o=t(47568),i=t(828),s=t(72655),l=t.n(s),c=t(10972),a=t(52379),r=t.n(a),u=t(97176),d=t(57851),f=t(22503),x=t(7517),m=t(25177),p=t(56849),h=t(7775),w=t(18906),g=t(33533),v=t(29381),j=t(99826),_=t(8176),y=t(60125),N=t(68967),b=t(78533),k=t(37492),S=t(10185),C=t(29167),E=t(90207),O=t(34479),F=function(){return(0,c.jsx)(k.Z,{className:"bg-gradient-1 bg-cover bg-center py-10 md:py-14",children:(0,c.jsxs)("div",{className:(0,d.m)("flex w-full max-w-2xl flex-col gap-8","sm:max-w-none sm:flex-row sm:gap-10","md:gap-14","lg:gap-18"),children:[(0,c.jsx)("div",{className:"relative hidden aspect-video w-full flex-1 flex-col items-end justify-center sm:flex",children:(0,c.jsx)(r(),{src:"/images/content/extension_product_saved.webp",unoptimized:!0,layout:"fill",objectFit:"contain",objectPosition:"right"})}),(0,c.jsx)("div",{className:"relative flex aspect-video w-full flex-1 flex-col items-end justify-center sm:hidden",children:(0,c.jsx)(r(),{src:"/images/content/extension_product_saved.webp",unoptimized:!0,layout:"fill",objectFit:"contain",objectPosition:"center"})}),(0,c.jsxs)("div",{className:(0,d.m)("flex w-full flex-1 flex-col items-center justify-center gap-4","sm:items-start"),children:[(0,c.jsx)("h2",{className:(0,d.m)("text-h3","sm:text-h3","md:text-[2.5rem]","lg:text-h2"),children:"Add to Chrome"}),(0,c.jsx)("p",{className:"max-w-96 text-h5",children:"All of your wishlists - now in one place"}),(0,c.jsx)(p.g,{solid:!0,size:"lg",className:"mt-4 w-auto px-6 py-3 shadow-lg",href:g.D.EXTENSION_INSTALL_URL,target:"_blank",children:"Download Now"})]})]})})},P=!0;n.default=function(){var e=(0,w.vR)(),n=(0,j.KFF)({fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),t=n.data,s=n.loading,a=(0,f.Eu)().user,r=(0,u.useContext)(h.E).showMessage,d=(0,u.useContext)(x._).showSignupModal,p=(0,i.Z)((0,j.soY)(),1)[0],g=(0,u.useState)(!1),k=g[0],P=g[1],T=function(e,n){e.preventDefault(),e.stopPropagation(),a?(O.ZP.trackEvent("[PROFILE] follow clicked",{userId:n,authorized:O.ZP.isAuthorized}),p({variables:{where:{id:n}},update:function(e,t){var o=t.data;(null===o||void 0===o?void 0:o.followOneUser)&&E.u.updateAfterFollowUser(a,n)},onCompleted:function(){r("Successfully followed user")}})):d()},I=(0,u.useMemo)((function(){return s?null:t?((0,v.LB)()||P(!0),t.liveContentSectionsV2):null}),[t,s]);return(0,u.useEffect)((function(){var n=function(){var n=(0,o.Z)(l().mark((function n(){var t,o,i;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.query,o="true"===t.signup,i="true"===t.login,!o&&!i||e.navigating){n.next=8;break}return n.next=6,e.replace("/content",void 0,{shallow:!0});case 6:o&&d("Welcome"),i&&r("Welcome back!");case 8:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n()}),[e.navigating,e,r,d]),(0,c.jsxs)(m.Z,{className:"bg-cream",children:[s&&(0,c.jsx)(_.Z,{loadingText:"Fetching Content"}),null===I||void 0===I?void 0:I.map((function(e,n){var t=null;return e.contentSectionType===j.O2H.Hero&&(t=(0,c.jsx)(S.D,{sectionInfo:e},e.id)),e.contentSectionType===j.O2H.Collection&&(t=(0,c.jsx)(b.i,{sectionInfo:e},e.id)),e.contentSectionType===j.O2H.Collage&&(t=(0,c.jsx)(N.k,{sectionInfo:e,handleFollowClick:T},e.id)),e.contentSectionType===j.O2H.User&&(t=(0,c.jsx)(C.h,{sectionInfo:e,handleFollowClick:T},e.id)),e.contentSectionType===j.O2H.Brand&&(t=(0,c.jsx)(y.o,{sectionInfo:e},e.id)),k&&4===n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(F,{}),t]}):t}))]})}}},function(e){e.O(0,[4482,5177,5902,9774,2888,179],(function(){return n=54215,e(e.s=n);var n}));var n=e.O();_N_E=n}]);