(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3489],{223:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/upgrade",function(){return e(20717)}])},20717:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSP:function(){return _},default:function(){return d}});var o=e(39324),u=e(35250),r=e(60554),c=e(70079),i=e(93683),a=e(88798),s=e(27986),l=e(21739),p=e(78931),f=e(50795),h=e(82081),_=!0;function d(n){return(0,u.jsx)(g,(0,o._)({},n))}function g(n){var t=n.user,e=n.isUserInCanPayGroup,o=n.serviceStatus,f=n.userCountry,h=n.cohort,_=(0,r.useRouter)(),d=(0,p.WY)(),g=(0,l.g)(function(n){return n.updateFlagValue});(0,c.useEffect)(function(){void 0!==e&&g("isUserInCanPayGroup",e)},[g,e]),(0,c.useEffect)(function(){(null==o?void 0:o.type)&&void 0!==d&&!d&&a.m.warning(o.message,{hasCloseButton:!0,duration:5})},[d,null==o?void 0:o.message,null==o?void 0:o.type]);var E={};void 0!==h&&h.length>0&&(E.email_cohort=h),(0,s.Z)("ChatGPT",t,E);var C=(0,c.useCallback)(function(){_.push("/")},[_]);return(0,u.jsx)(v,{cohort:h,userCountry:f,children:(0,u.jsx)(i.Z,{isOpen:!0,onClose:C})})}var v=function(n){var t=n.children,e=n.cohort,o=n.userCountry;return(0,c.useEffect)(function(){void 0!==e&&e.length>0&&f.o.logEvent(h.a.accountUpgradeFullpageLoaded,{content:"Email Cohort: ".concat(e),tags:["actual_location:".concat(o)]})},[e,o]),t}},56817:function(n,t,e){"use strict";e.d(t,{_4:function(){return r},m1:function(){return u},ti:function(){return o}});var o="https://help.openai.com/en/collections/3943089-billing",u="https://help.openai.com/en/articles/7905690-how-do-i-cancel-my-apple-subscription-for-chatgpt-plus-in-the-chatgpt-ios-app",r={WEBAPP:"chatgpt_web",MOBILE_IOS:"chatgpt_mobile_ios",GRANTED:"chatgpt_gratis_recepient",NOT_PURCHASED:"chatgpt_not_purchased"}}},function(n){n.O(0,[8246,8937,9774,2888,179],function(){return n(n.s=223)}),_N_E=n.O()}]);