1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6858],{13682:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>k});var n=t(63857),o=t(60180),a=t.n(o),c=t(14232),i=t(89099),u=t(26900),s=t(46918),l=t(46137),d=t(53403),f=t(17651),p=t(90316),m=t(64191),b=t(63521),v=t(68567),g=t(47607),h=t(15399),w=t(37876),y="signupProps";let k=function(){var e=(0,i.useRouter)(),r=(0,v.A)().safePush,t=(0,c.useRef)(void 0),o=(0,c.useMemo)(function(){return sessionStorage.getItem(y)?"onboarding":"in_app"},[]),k=(0,c.useCallback)((0,n.A)(a().mark(function e(){var t,n,o;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.Di.enterProduct("language_learning");case 2:if(t=e.sent.onboarded,!(null!=(o=(n=sessionStorage.getItem(y))?JSON.parse(n):null)&&o.languagePairId)){e.next=10;break}return(0,b.MO)(o.languagePairId,o.sourceLanguage,o.targetLanguage),e.next=10,u.s2.enroll(o.languagePairId);case 10:if(sessionStorage.removeItem(y),!t){e.next=14;break}return r(d.b.dashboard,!0),e.abrupt("return");case 14:r(null!=o&&o.sourceLanguage?"".concat(d.b.onboarding.selectLevel,"?source=").concat(encodeURIComponent(o.sourceLanguage),"&origin=onboarding&plans=true"):d.b.dashboard,!0);case 16:case"end":return e.stop()}},e)})),[r]),P=(0,c.useCallback)(function(){sessionStorage.removeItem(y),r(d.b.products.examPrep,!0)},[r]),x=(0,c.useCallback)(function(){sessionStorage.removeItem(y),r(d.b.products.podchats,!0)},[r]),j=(0,c.useCallback)(function(){e.back()},[e]),O=(0,c.useCallback)((0,n.A)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.x.webGetAccessToken();case 2:t.current=e.sent.access_token.access_token;case 4:case"end":return e.stop()}},e)})),[]),S=(0,c.useCallback)(function(e){var r;null==(r=window.memriseProductSelectionWeb)||r.mountProductSelection(e,{onSelectMemrise:k,onSelectExamPrep:P,isForTesting:!0,onSelectPodchats:x,onDismiss:j,origin:o,baseUrl:"",accessToken:t.current,apiVersion:l.mG})},[k,P,x,j,o]),_=(0,g.s)(S,"product-selection",O),E=_.containerRef,A=_.status,R=_.error;return"error"===A?(0,w.jsx)(f.H,{title:"Failed to load Product Selection",detail:R}):(0,w.jsx)(m.co,{children:(0,w.jsx)("div",{ref:E,style:{width:"100%",minHeight:"100vh"},"data-testid":"product-selection-kotlin",children:"loading"===A&&(0,w.jsx)(h.z,{children:(0,w.jsx)(p.A,{})})})})}},15399:(e,r,t)=>{"use strict";t.d(r,{z:()=>o});var n=t(5646),o=n.Ay.div.withConfig({componentId:"sc-ac7ui0-0"})(function(e){var r=e.theme;return(0,n.AH)(["margin:"," auto 0 auto;width:",";min-height:100vh;
1"],r.sz.s32,r.sz.s20)})},47607:(e,r,t)=>{"use strict";t.d(r,{s:()=>w});var n=t(63857),o=t(60180),a=t.n(o),c=t(14232),i=t(5720),u=t(99634),s=t(42969);function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach(function(r){(0,s.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var p={examprep:{scriptUrl:"/kotlin-bundles/examprep/memrise-examprep-web.js",isReady:function(){var e;return!!(null!=(e=window.memriseExamPrepWeb)&&e.mount)}},"product-selection":{scriptUrl:"/kotlin-bundles/product-selection/memrise-product-selection-web.js",isReady:function(){var e;return!!(null!=(e=window.memriseProductSelectionWeb)&&e.mountProductSelection)}},podchats:{scriptUrl:"/kotlin-bundles/podchats/memrise-podchat-web.js",isReady:function(){var e,r,t;return!!(null!=(e=null==(r=window.memrisePodchatsWeb)?void 0:r.mount)?e:null==(t=window.memrisePodchatWeb)?void 0:t.mount)}},"reviewer-portal":{scriptUrl:"/kotlin-bundles/reviewer-portal/memrise-reviewer-portal-web.js",isReady:function(){var e;return!!(null!=(e=window.memriseReviewerPortalWeb)&&e.mount)}}},m=!1,b=new Set,v=null,g=new Map;function h(e){!function(){if(!m){m=!0;try{var e=Object.getOwnPropertyDescriptor(Navigator.prototype,"languages");if(!(null!=e&&e.get))return;Object.defineProperty(Navigator.prototype,"languages",f(f({},e),{},{get:function(){var r;return window.__customLocale?[window.__customLocale]:null==(r=e.get)?void 0:r.call(this)}}))}catch(e){}}}();var r=p[e],t=r.scriptUrl,n=r.isReady;if(n())return Promise.resolve();var o=g.get(e);if(o)return o;(!v&&(v=fetch("/kotlin-bundles/manifest.json").then(function(e){return e.ok?e.json():{}}).catch(function(){return{}})),v).then(function(r){var t=r[e];if(t){var n,o=function(e){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return l(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,void 0):void 0}}(e))){r&&(e=r);var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}(t.preload);try{for(o.s();!(n=o.n()).done;){var a=n.value;!function(e,r,t,n){if(!("u"<typeof document)){var o="".concat(r,":").concat(e);if(!b.has(o)){b.add(o);var a=document.createElement("link");a.rel=r,a.href=e,t&&(a.as=t),n&&(a.type=n),"preload"===r&&a.setAttribute("crossorigin","anonymous"),document.head.appendChild(a)}}}(a,"preload","fetch","application/wasm")}}catch(e){o.e(e)}finally{o.f()}}});var a=new Promise(function(e,r){var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){return e()},n.onerror=function(){return r(Error("Failed to load Kotlin bundle script: ".concat(t)))},document.head.appendChild(n)}).then(function(){if(!n())throw Error("".concat(e," bundle loaded but mount function not registered"))}).catch(function(r){throw g.delete(e),r});return g.set(e,a),a}function w(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"examprep",t=arguments.length>2?arguments[2]:void 0,o=(0,c.useRef)(null),s=(0,c.useRef)(!1),l=(0,c.useRef)(e);l.current=e;var d=(0,c.useRef)(t);d.current=t;var f=(0,u.u)().user,m=(0,i.tz)().locale,b=(0,c.useState)("loading"),v=b[0],g=b[1],w=(0,c.useState)(void 0),y=w[0],k=w[1];return(0,c.useEffect)(function(){h(r).catch(function(){})},[r]),(0,c.useEffect)(function(){if(null!=f&&f.id&&!s.current){var e,t=!1;return(e=(0,n.A)(a().mark(function e(){var n,c;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all([h(r),null==(n=d.current)?void 0:n.call(d)]);case 3:if(!t){e.next=5;break}return e.abrupt("return");
1case 5:if(p[r].isReady()){e.next=7;break}throw Error("Kotlin module (".concat(r,") not loaded"));case 7:if(window.__customLocale=m,o.current){e.next=10;break}return e.abrupt("return");case 10:return c="kotlin-module-".concat(Date.now()),o.current.id=c,e.next=14,l.current(c);case 14:if(!t){e.next=16;break}return e.abrupt("return");case 16:s.current=!0,g("ready"),e.next=27;break;case 20:if(e.prev=20,e.t0=e.catch(0),!t){e.next=24;break}return e.abrupt("return");case 24:console.error("Failed to mount Kotlin module (".concat(r,"):"),e.t0),k(e.t0 instanceof Error?e.t0.message:"Unknown error"),g("error");case 27:case"end":return e.stop()}},e,null,[[0,20]])})),function(){return e.apply(this,arguments)})(),function(){t=!0}}},[null==f?void 0:f.id,r,m]),{containerRef:o,status:v,error:y}}},67455:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/select-product",function(){return t(13682)}])}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=67455)),_N_E=e.O()}]); 2//# sourceMappingURL=select-product-78189ad2ed687bc9.js.map
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.