1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16206],{82702:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/youtube/callback",function(){return t(84682)}])},84682:function(n,e,t){"use strict";t.r(e),t.d(e,{ButtonGroup:function(){return k},Container:function(){return C},ContainerInner:function(){return N}});var r=t(47568),c=t(7297),o=t(20414),i=t(85893),u=t(11163),s=t(67294),a=t(85430),l=t(3001),d=t(37823),f=t(11198),h=t(63453),p=t(41664),g=t.n(p),x=t(15313),b=t(87379),v=t(9950),y=t(87297),_=t(28598);function w(){var n=(0,c.Z)(["\n background: linear-gradient(\n 180deg,\n var(--color-ultra-light-purple) 0%,\n #c9c4e9 100%\n );\n padding: 0 16px;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n"]);return w=function(){return n},n}function m(){var n=(0,c.Z)(["\n width: 100%;\n max-width: 550px;\n padding: 60px;\n background-color: ",";\n border-radius: 8px;\n\n h2 {\n font-size: 36px;\n line-height: 46px;\n }\n\n p {\n margin-top: 20px;\n font-size: 16px;\n }\n"]);return m=function(){return n},n}function j(){var n=(0,c.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n\n .go-back__btn {\n margin: 30px 0 40px;\n cursor: pointer;\n }\n\n h6 {\n color: var(--color-secondary);\n font-size: 12px;\n }\n\n .contact-us {\n text-decoration: underline;\n color: var(--color-secondary);\n font-size: 12px;\n }\n"]);return j=function(){return n},n}var C=b.ZP.div.withConfig({componentId:"sc-c2c9926b-0"})(w()),N=b.ZP.div.withConfig({componentId:"sc-c2c9926b-1"})(m(),_.WN),k=b.ZP.div.withConfig({componentId:"sc-c2c9926b-2"})(j()),E=function(){var n=(0,u.useRouter)(),e=(0,x.I0)(),t=(0,s.useState)(!1),c=t[0],h=t[1],p=function(){var t=(0,r.Z)((function(){var t,r,c,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return r=new URLSearchParams(location.search),[4,d.default.getMe()];case 1:return c=o.sent(),[4,d.default.connectYoutube(null===c||void 0===c||null===(t=c.user)||void 0===t?void 0:t.id,r)];case 2:return i=o.sent(),e(a.lx(i)),(null===c||void 0===c?void 0:c.subscription)&&e((0,v.jw)(c.subscription)),e(l.mn("Your Youtube account was connected successfully")),n.push("/settings/preferences"),[2]}}))}));return function(){return t.apply(this,arguments)}}();return(0,s.useEffect)((function(){if(n.isReady){var t=n.query,r=t.error,c=t.error_description,o=Array.isArray(r)?r[0]:r,i=Array.isArray(c)?c[0]:c;if(o)return n.push({pathname:"/settings/preferences"}),void("access_denied"!==o&&e(l.Cz(i||"Something went wrong")));localStorage.getItem(f.d.CONNECT_WITH_YOUTUBE)&&p().catch((function(t){t&&("Youtube_ACCOUNT_ALREADY_LINKED"===t.code?h(!0):(n.push("/settings/preferences"),e(l.Cz("Your Youtube account was not connected successfully. Please try again."))))}))}}),[n.isReady]),c&&(0,i.jsx)(C,{children:(0,i.jsxs)(N,{children:[(0,i.jsx)("h2",{children:"This Youtube account belongs to another user"}),(0,i.jsx)("p",{children:"The Youtube account you are trying to link is already associated with another account on chloeting.com. If you are the owner of that account, you will first need to disconnect it from the other account before you can connect it to this account."}),(0,i.jsx)("p",{children:"If you need further assistance, please contact [email protected]."}),(0,i.jsxs)(k,{children:[(0,i.jsx)(g(),{href:"/settings/preferences",passHref:!0,children:(0,i.jsx)(y.Qj,{className:"go-back__btn",children:"Back To Preferences"})}),(0,i.jsxs)("h6",{children:["Need help?"," ",(0,i.jsx)("a",{className:"contact-us",href:"mailto:[email protected]",children:"Contact us"})]})]})]})})};e.default=E,E.getLayout=function(n){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.P,{}),n]})}},63453:function(n,e,t){"use strict";t.d(e,{P:function(){return o}});var r=t(7297);function c(){var n=(0,r.Z)(["\n [class='publift-widget-container'],\n [class='publift-widget-sticky_footer-container'],\n [class='publift-widget-22662372786-container'],\n [class='publift-widget-22648926236-container'] {\n display: none !important;\n }\n"]);return c=function(){return n},n}var o=(0,t(87379).vJ)(c())}},function(n){n.O(0,[41664,49774,92888,40179],(function(){return e=82702,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.