1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4608],{49234:function(e,t,n){"use strict";n.r(t);var r=n(35991),o=n(80066),u=n(49573),c=n(52487),i=n(59305),a=n(13811),s=n(68496),f=n(20408),p=n(90066),l=n(78865),d=n(31549),h=["token"];t.default=function(e){var t=e.route,n=(0,u.useGlobal)("redirectUrl"),v=(0,o.Z)(n,2),w=v[0],b=v[1],_=(0,u.useGlobal)("user"),O=(0,o.Z)(_,2)[1];return(0,u.useEffect)((function(){var e=s.parse(window.location.search),n=e.code,o=e.error;return n&&(0,c.Uj)("signup").then((function(e){return(0,p.uZ)({authorization_code:n,redirect_url:"".concat("https://adplist.org","/authorize/linkedin"),recaptchaToken:e}).then((function(e){var t,n=e.token.actual,o=(0,r.Z)(e,h);(0,i.Z)().setCookie("token",n),O(o),["mentor","designer"].includes(null===o||void 0===o||null===(t=o.identity_type)||void 0===t?void 0:t.toLowerCase())?window.close():window.location.href="".concat("https://app.adplist.org")})).catch((function(){}))})),o&&t(w||"/"),function(){return b(null)}}),[]),(0,d.jsx)(l.Z,{route:t,footer:!1,children:(0,d.jsxs)(f.Z,{className:"py-5 text-center",children:[(0,d.jsx)("p",{className:"mb-3 font-weight-600",children:"Authorizing user"}),(0,d.jsx)(a.Z,{className:"d-flex justify-content-center"})]})})}},90066:function(e,t,n){"use strict";n.d(t,{r1:function(){return i},uZ:function(){return a}});var r=n(49631),o=n(23480);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i=function(e){return o.Z.post("/user/authenticate/with-google/",e)},a=function(e){return o.Z.post("/user/authenticate/with-linkedin/",c(c({},e),{},{auto_sign_up:!0}))}},52487:function(e,t,n){"use strict";n.d(t,{Uj:function(){return a}});var r=n(86349),o=n(9312),u=n.n(o),c=n(73656),i=function(){var e;if("undefined"===typeof c||!c.env)return!0;var t=null!==(e=c.env.NEXT_PUBLIC_RECAPTCHA_ENABLED)&&void 0!==e?e:c.env.REACT_APP_RECAPTCHA_ENABLED;return void 0===t||"false"!==t&&"0"!==t},a=function(){var e=(0,r.Z)(u().mark((function e(t){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;
1case 2:if(i()){e.next=4;break}return e.abrupt("return",void 0);case 4:if((n=window.grecaptcha&&window.grecaptcha.enterprise)&&"function"===typeof n.execute){e.next=7;break}return e.abrupt("return",void 0);case 7:return e.prev=7,e.next=10,n.execute("6LfGrVEpAAAAAFO_Ht4IY083UJEfsBkxGZVVO8yK",{action:t});case 10:return e.abrupt("return",e.sent);case 13:return e.prev=13,e.t0=e.catch(7),console.warn("recaptcha challenge failed"),e.abrupt("return",void 0);case 17:case"end":return e.stop()}}),e,null,[[7,13]])})));return function(t){return e.apply(this,arguments)}}()},86295:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/authorize/linkedin",function(){return n(49234)}])}},function(e){e.O(0,[739,9414,7690,730,2504,4213,6338,2793,3330,5361,3121,2311,8865,9774,2888,179],(function(){return t=86295,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.