@clickview/lite 0.36.4 → 0.36.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{1426-lite-840995aa62.chunk.css → 1426-lite-f235024cee.chunk.css} +2 -2
- package/dist/css/{1805-lite-971ea2bd5a.chunk.css → 1805-lite-4f255acc0f.chunk.css} +1 -1
- package/dist/css/{2703-lite-7ba8cc4d1e.chunk.css → 2703-lite-280e305215.chunk.css} +1 -1
- package/dist/css/{2819-lite-1ebce7bdcf.chunk.css → 2819-lite-76abb49edd.chunk.css} +2 -2
- package/dist/css/{487-lite-96ad0f943f.chunk.css → 487-lite-41e5cfe5e2.chunk.css} +1 -1
- package/dist/css/{536-lite-b8b24bff42.chunk.css → 536-lite-95733858df.chunk.css} +2 -2
- package/dist/css/{5379-lite-b9ce6d4999.chunk.css → 5379-lite-5079e96f25.chunk.css} +1 -1
- package/dist/css/{7791-lite-afbd54454d.chunk.css → 7791-lite-8d2f0b5c3e.chunk.css} +2 -2
- package/dist/css/{7877-lite-753ceb57d9.chunk.css → 7877-lite-86ada23fbf.chunk.css} +2 -2
- package/dist/css/{8296-lite-1e63b6b5d8.chunk.css → 8296-lite-adedfcc844.chunk.css} +2 -2
- package/dist/css/{lite-app-ddb4f64bbb.css → lite-app-cf320ec59b.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1426-1a41d98bf6-lite.chunk.js +2 -0
- package/dist/scripts/1805-2e25435263-lite.chunk.js +2 -0
- package/dist/scripts/{2188-174de868f2-lite.chunk.js → 2188-f481ece87e-lite.chunk.js} +1 -1
- package/dist/scripts/2703-2302d53365-lite.chunk.js +2 -0
- package/dist/scripts/2819-7eb2c2342d-lite.chunk.js +2 -0
- package/dist/scripts/316-32f72340c8-lite.chunk.js +1 -0
- package/dist/scripts/487-49dc182b07-lite.chunk.js +2 -0
- package/dist/scripts/536-7a7ee070d2-lite.chunk.js +2 -0
- package/dist/scripts/5379-8989645c66-lite.chunk.js +1 -0
- package/dist/scripts/5442-7790521d8c-lite.chunk.js +2 -0
- package/dist/scripts/{7293-6cdd27c4c9-lite.chunk.js → 7293-760b4e2a16-lite.chunk.js} +1 -1
- package/dist/scripts/7791-8141407cfd-lite.chunk.js +2 -0
- package/dist/scripts/7877-f8a7a4c607-lite.chunk.js +2 -0
- package/dist/scripts/8296-eb7c394089-lite.chunk.js +2 -0
- package/dist/scripts/993-7eef290805-lite.chunk.js +2 -0
- package/dist/scripts/bundle-5d6ccf790d.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/1426-ee1fac309f-lite.chunk.js +0 -2
- package/dist/scripts/1805-05413695af-lite.chunk.js +0 -2
- package/dist/scripts/2703-dacf5ee1d8-lite.chunk.js +0 -2
- package/dist/scripts/2819-08030fb5fb-lite.chunk.js +0 -2
- package/dist/scripts/316-d1a5484ee3-lite.chunk.js +0 -1
- package/dist/scripts/487-55f69c7d70-lite.chunk.js +0 -2
- package/dist/scripts/536-09a05e5b6f-lite.chunk.js +0 -2
- package/dist/scripts/5379-06693f6727-lite.chunk.js +0 -1
- package/dist/scripts/5442-82e8147edc-lite.chunk.js +0 -2
- package/dist/scripts/7791-76129dec22-lite.chunk.js +0 -2
- package/dist/scripts/7877-ac08d68d6f-lite.chunk.js +0 -2
- package/dist/scripts/8296-61fbedf389-lite.chunk.js +0 -2
- package/dist/scripts/993-e32d521f7a-lite.chunk.js +0 -2
- package/dist/scripts/bundle-6f6195f034.min.js +0 -2
- /package/dist/scripts/{1426-ee1fac309f-lite.chunk.js.LICENSE.txt → 1426-1a41d98bf6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1805-05413695af-lite.chunk.js.LICENSE.txt → 1805-2e25435263-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2703-dacf5ee1d8-lite.chunk.js.LICENSE.txt → 2703-2302d53365-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2819-08030fb5fb-lite.chunk.js.LICENSE.txt → 2819-7eb2c2342d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{487-55f69c7d70-lite.chunk.js.LICENSE.txt → 487-49dc182b07-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{536-09a05e5b6f-lite.chunk.js.LICENSE.txt → 536-7a7ee070d2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5442-82e8147edc-lite.chunk.js.LICENSE.txt → 5442-7790521d8c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7791-76129dec22-lite.chunk.js.LICENSE.txt → 7791-8141407cfd-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7877-ac08d68d6f-lite.chunk.js.LICENSE.txt → 7877-f8a7a4c607-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8296-61fbedf389-lite.chunk.js.LICENSE.txt → 8296-eb7c394089-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{993-e32d521f7a-lite.chunk.js.LICENSE.txt → 993-7eef290805-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-6f6195f034.min.js.LICENSE.txt → bundle-5d6ccf790d.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 487-55f69c7d70-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[487],{12058:(t,e,n)=>{n.d(e,{X:()=>o});var r=n(32735);function o(t){return r.createElement("p",{className:t.className},t.children)}},75919:(t,e,n)=>{n.d(e,{N:()=>a});var r=n(32735);const o={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",height:"kRhKC"};function a(t){return r.createElement("div",{className:(e="d-flex align-items-center text-center position-relative w-100 ".concat(o.height),"center"===t.contentPosition&&(e+=" px-5 justify-content-center"),"right"===t.contentPosition&&(e+=" me-n5 justify-content-end"),e)},r.createElement("div",{className:function(){var e=o.annotation;switch(t.annotationPosition){case"top-left":e+=" ".concat(o.above," ").concat(o.left);break;case"top-right":e+=" ".concat(o.above," ").concat(o.right);break;case"bottom-left":e+=" ".concat(o.below," ").concat(o.left);break;case"bottom-right":e+=" ".concat(o.below," ").concat(o.right)}return t.annotationClassName&&(e+=" ".concat(t.annotationClassName)),e}()},r.createElement("img",{className:"img-fluid",src:t.annotationUrl})),t.children,"right"===t.contentPosition&&r.createElement("div",{className:o.divider}));var e}a.defaultProps={contentPosition:"center"}},45038:(t,e,n)=>{n.d(e,{P:()=>i});var r=n(32735),o=n(57245);const a={playerContainer:"w7_Oy",fallback:"xcBuH"};function i(t){return r.createElement("div",{className:"".concat(a.playerContainer," w-100")},t.hasDataLoaded?r.createElement(o._,{config:t.config,video:t.video,currentUser:t.currentUser,shareLink:t.shareLink,viewKey:t.viewKey,onReady:t.onReady,allowPip:!1,allowCreateClip:!1}):r.createElement("div",{className:"".concat(a.fallback," w-100 h-100 bg-light rounded-3 overflow-hidden")}))}},98065:(t,e,n)=>{n.d(e,{x:()=>r});var r={getWelcomeVideo:function(t){return t?t.primaryUrl.includes("staging")?{videoId:"43000110",shareId:"GgX4xD"}:{videoId:"49331262",shareId:"0DYKrb"}:null},getAdvisorVideo:function(t){return t?t.primaryUrl.includes("staging")?{videoId:"43002959",shareId:"b98KVj"}:{videoId:"49331262",shareId:"0DYKrb"}:null}}},30544:(t,e,n)=>{n.r(e),n.d(e,{OnboardingWelcomeVideoView:()=>P});var r=n(32735),o=n(20354),a=n(30439),i=n(83914),c=n(83345),l=n(60051),u=n(39151),s=n(47812),f=n(31949),h=n(1575),d=n(79967),p=n(35223),m=n(99742),v=n(75359),y=n(12058),g=n(27583),b=n(75919),w=n(45038),E=n(73190),x=n(98065);const k={headingContainer:"hPvDP",buttonContainer:"ORgxa",icon:"BogCL",skipButton:"uaLaz",replayContainer:"d1Nj9",playerContainer:"pHDzd",infoContainer:"lmbyg"};function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function N(){N=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new I(r||[]);return o(i,"_invoke",{value:j(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(T([])));x&&x!==n&&r.call(x,i)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==L(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=h;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=O(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:d,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=f(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(L(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},C(S.prototype),u(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new S(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(k),u(k,l,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var j=function(t,e,n,r){return new(n||(n=Promise))((function(o,a){function i(t){try{l(r.next(t))}catch(t){a(t)}}function c(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}l((r=r.apply(t,e||[])).next())}))},O="onboarding.welcomeVideo";function P(){var t=(0,E.Q)(),e=t.completeStepAsync,n=t.onSaveError,L=o.a.useBasicFetch(u.L.config()),S=o.a.useBasicFetch(f.N.currentUser()),P=x.x.getWelcomeVideo(L.data),_=r.useRef(),I=o.a.useBasicFetch(P&&h.R.sharedVideo(P.videoId,P.shareId)),T=o.a.useBasicFetch(a.o.getShareObject(P.shareId)),V=o.a.useBasicFetch(s.k.createViewKey(P.shareId,l.f.Share)),B=C(r.useState(!1),2),R=B[0],A=B[1],F=C(r.useState(0),2),U=F[0],G=F[1],K=C(r.useState(!1),2),D=K[0],z=K[1],W=C(r.useState(!1),2),H=W[0],Y=W[1],X=(0,d.k)();function M(){return j(this,void 0,void 0,N().mark((function t(){return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e();case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),n(),t.abrupt("return",Promise.reject());case 9:case"end":return t.stop()}}),t,null,[[0,5]])})))}function Q(t){_.current=t;var e=function(){var e=t.currentTime();e===t.duration()&&Y(!0),!t.isPaused()&&!D&&!R&&e>=t.duration()-23&&A(!0)};t.on("timeupdate",e),t.one("dispose",(function(){t.off("timeupdate",e)}))}r.useEffect((function(){if(R){G(3);var t=window.setTimeout((function(){G(2)}),1e3),e=window.setTimeout((function(){G(1)}),2e3),n=window.setTimeout((function(){G(0),z(!0)}),3e3);return function(){window.clearTimeout(t),window.clearTimeout(e),window.clearTimeout(n)}}}),[R]);var $=I.data&&S.hasCompleted&&L.hasCompleted&&T.hasCompleted&&V.hasCompleted,q=X.lg||X.xl||X.xxl;return r.createElement(g.z,{namespace:O},r.createElement(g.z.Left,{className:"bg-dark-blue d-flex justify-content-center flex-column"},q&&r.createElement(b.N,{annotationUrl:m.W.OnboardingV2.WelcomeVideo.HIT_PLAY,annotationPosition:"bottom-right",annotationClassName:"pe-5"},r.createElement(w.P,{hasDataLoaded:$,config:L.data,video:I.data,currentUser:S.data,shareLink:T.data,viewKey:V.data,onReady:Q}))),r.createElement(g.z.Right,{hasCustomButtons:!0},r.createElement(v.W,{className:k.headingContainer},r.createElement(c.x,{phrase:"heading"})),!q&&r.createElement(w.P,{hasDataLoaded:$,config:L.data,video:I.data,currentUser:S.data,shareLink:T.data,viewKey:V.data,onReady:Q}),r.createElement(y.X,{className:k.infoContainer},r.createElement(c.x,{phrase:"watchVideo"})),H&&r.createElement("div",{className:"position-absolute ".concat(k.replayContainer)},r.createElement("button",{className:"btn btn-link text-info text-decoration-none btn-lg ".concat(k.replayButton),onClick:function(){var t,e;Y(!1),null===(t=_.current)||void 0===t||t.currentTime(0),null===(e=_.current)||void 0===e||e.play()}},r.createElement(i.x,{svgName:p.vn.Retry,className:"svg-container ".concat(k.icon)}),r.createElement(c.x,{phrase:"replayVideo"}))),r.createElement("div",{className:"position-absolute ".concat(k.buttonContainer)},r.createElement("button",{className:"btn btn-link text-decoration-none btn-lg ".concat(k.skipButton),onClick:function(){M()}},r.createElement(c.x,{phrase:"skipVideo"})),0!==U||D?r.createElement("button",{className:"btn btn-dark btn-lg",disabled:!D,onClick:function(){M()}},U>0?r.createElement(c.x,{phrase:"getStartedIn",options:{time:U}}):r.createElement(c.x,{phrase:"getStarted"})):r.createElement("button",{className:"btn btn-dark btn-lg",onClick:function(){var t;null===(t=_.current)||void 0===t||t.play()}},r.createElement(i.x,{svgName:p.vn.Play,className:"svg-container ".concat(k.icon)}),r.createElement(c.x,{phrase:"playVideo"})))))}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 536-09a05e5b6f-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[536],{49602:(e,t,n)=>{var r;n.d(t,{b:()=>o}),function(e){e[e.None=0]="None",e[e.AllSubjects=1]="AllSubjects",e[e.AllLevels=2]="AllLevels",e[e.AllSubjectsAndAllLevels=3]="AllSubjectsAndAllLevels"}(r||(r={}));var a=n(25925),o={hasManyPresentationTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0,n=0;return null==e||e.forEach((function(e){e.type===a.R.Subject?t++:e.type===a.R.Curriculum&&n++})),{hasManySubjectPresentations:t>1,hasManyCurriculumPresentations:n>1}},getBulkPreferencesState:function(e){return e===r.AllSubjectsAndAllLevels?{levels:!0,subjects:!0}:{levels:e===r.AllLevels,subjects:e===r.AllSubjects}},hasBulkSelectedLevels:function(e){return e===r.AllLevels||e===r.AllSubjectsAndAllLevels},hasBulkSelectedTopics:function(e){return e===r.AllSubjects||e===r.AllSubjectsAndAllLevels},getNextBulkState:function(e,t){var n=r.None,a=r.AllSubjects,o=r.AllLevels,i=r.AllSubjectsAndAllLevels,c="topics"===t;switch(e){case n:default:return c?a:o;case a:return c?n:i;case o:return c?i:n;case i:return c?o:a}}}},80143:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(32735),a=n(69454);function o(e,t){var n=r.useMemo((function(){return(null==e?void 0:e.length)&&t&&a.T.shouldShowAudiences(t)?a.T.getSortedPresentationAudiences(e,t):null}),[e]);return r.useMemo((function(){return(null==n?void 0:n.length)?a.T.getMergedPresentationAudienceString(n):null}),[n])}},69454:(e,t,n)=>{n.d(t,{T:()=>m});var r=n(75896),a=n(1048),o=n(55171);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=/\d/,l=function(e){var t,n,a=r.m.first(e),o=r.m.last(e);return a.name===o.name?a.name:"Advanced"===o.name?"lower"===(t=a.name.split(" "),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,m={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,a,i="";switch(+r.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],r=t.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!c.test(e.name)})),o=r.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(o+="s"),a&&n.length)return"".concat(o," ").concat(a.name.charAt(0)," - ").concat(n.pop());var i=function(e){var t,n,r,a,o=!1,i=[];for(e=e.sort((function(e,t){return e-t})),r=0;r<e.length;r++)a=r+1,o||(t=e[r]),n=e[a],e[r]+1===n?o=!0:o?(i.push("".concat(t," - ").concat(e[r])),o=!1):(i.push("".concat(e[r])),o=!1);return i}(n);return"".concat(o," ").concat(i.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var r=e.split(" ");Object.keys(n).forEach((function(e){r.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var r=Object.keys(n)[0],a=n[r];if(!r)return e[0].name;var o=e[0].name,i=e[e.length-1].name,c=function(e){return e.split(r)[0]},l="".concat(c(o)," - ").concat(c(i));return"start"===a?"".concat(r," ").concat(l):"".concat(l," ").concat(r)}(e);break;case o.e.PresentationIds.ENGLISH_SECONDARY:i=l(e);break;case o.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=r.m.first(t),a=r.m.last(t),i=n.name===a.name?n.name:"Senior Phase"===a.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case o.e.PresentationIds.ENGLAND_PRIMARY:i=function(e){var t=r.m.first(e),n=r.m.last(e),a=r.m.first(t.name.split(" ")),o=r.m.first(n.name.split(" ")),i=t.name.split(" ").find((function(e){return!isNaN(+e)})),c=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===a||"Reception"===a?t.name:"".concat(a," KS").concat(i);var l="",s="";return l="Reception"===a?"R":"KS".concat(i),s="KS".concat(c),"Lower"===a&&"Upper"===o?"L ".concat(l," - U ").concat(s):("Lower"===a&&(l="Lower ".concat(l)),"Upper"===o&&(s="Upper ".concat(s)),"Key"===o&&(s=n.name),"".concat(l," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return i?{name:i}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var a=+r.m.first(e.name.match(s));if(!t)return t=e,void(n=a);a<n&&(t=e)})),t):null;var t,n},n={},a=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void a.push(e);a.push(e),n[e.name]++;var r=a.splice(a.length-n[e.name]).sort((function(e,n){var r=t(e.subjectPresentationAudiences.data),a=t(n.subjectPresentationAudiences.data);if(!r&&a)return 1;if(!a)return-1;var o=r.name.localeCompare(a.name);return 0===o?o:o>0?-1:1}));a=a.concat(r)})),a},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(t)&&!a.t.isEmpty(t)&&e&&e.length&&m.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var r=function(e){return e.replace(u,"").toLowerCase()},o=n.reduce((function(e,t){return e[r(t)]=t,e}),{});return e.filter((function(e){return o[r(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},12058:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(32735);function a(e){return r.createElement("p",{className:e.className},e.children)}},75919:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",height:"kRhKC"};function o(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.height),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},r.createElement("div",{className:function(){var t=a.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(a.above," ").concat(a.left);break;case"top-right":t+=" ".concat(a.above," ").concat(a.right);break;case"bottom-left":t+=" ".concat(a.below," ").concat(a.left);break;case"bottom-right":t+=" ".concat(a.below," ").concat(a.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:a.divider}));var t}o.defaultProps={contentPosition:"center"}},63478:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(32735);function a(e){return r.createElement("div",{className:"w-100 h-100 position-fixed bg-".concat(e.variant)},e.children)}},24250:(e,t,n)=>{n.d(t,{R:()=>u});var r=n(32735),a=n(75896),o=n(55171),i=n(54610),c=n(79967),l=n(67453);function s(e,t){return"mobile"===t?function(e){var t=e%10,n={top:"".concat(4*e,"%")};switch(t){case 0:return n.left="12.5%",n.animationDelay="0.5s",n;case 1:return n.right="7.5%",n.animationDelay="1s",n;case 2:return n.left="10%",n;case 3:return n.right="2.5%",n.animationDelay="0.5s",n;case 4:return n.left="2.5%",n.animationDelay="1.5s",n;case 5:return n.right="10%",n;case 6:return n.left="12.5%",n.animationDelay="1.5s",n;case 7:return n.right="7.5%",n.animationDelay="0.5s",n;case 8:return n.left="5%",n.animationDelay="1s",n;case 9:return n.right="2.5%",n.animationDelay="1s",n;default:return n.left="10%",n.animationDelay="1.5s",n}}(e):"50%"===t?function(e){var t=e%10,n={top:"".concat(4*e,"%")};switch(t){case 0:return n.left="25%",n.animationDelay="0.5s",n;case 1:return n.right="15%",n.animationDelay="1s",n;case 2:return n.left="20%",n;case 3:return n.right="5%",n.animationDelay="0.5s",n;case 4:return n.left="5%",n.animationDelay="1.5s",n;case 5:return n.right="20%",n;case 6:return n.left="25%",n.animationDelay="1.5s",n;case 7:return n.right="15%",n.animationDelay="0.5s",n;case 8:return n.left="10%",n.animationDelay="1s",n;case 9:return n.right="5%",n.animationDelay="1s",n;default:return n.left="20%",n.animationDelay="1.5s",n}}(e):function(e){var t=e%10,n={top:"".concat(4*e,"%")};switch(t){case 0:return n.left="25%",n.animationDelay="0.5s",n;case 1:return n.right="30%",n.animationDelay="1s",n;case 2:return n.left="40%",n;case 3:return n.right="10%",n.animationDelay="0.5s",n;case 4:return n.left="10%",n.animationDelay="1.5s",n;case 5:return n.right="40%",n;case 6:return n.left="30%",n.animationDelay="1.5s",n;case 7:return n.right="30%",n.animationDelay="0.5s",n;case 8:return n.left="10%",n.animationDelay="1s",n;case 9:return n.right="10%",n.animationDelay="1s",n;default:return n.left="40%",n.animationDelay="1.5s",n}}(e)}var u=r.memo((function(e){var t=a.m.shuffle(o.e.Onboarding.LOADING_THUMBNAILS),n=(0,c.k)();return r.createElement("div",{className:"".concat("n2Qe4"," ").concat("50%"===e.screenSize?"w-50":"w-100")},t.map((function(t,a){return r.createElement("div",{key:a,className:"".concat("ZlA2t"," position-absolute rounded-3 overflow-hidden"),style:s(a,n.xs?"mobile":e.screenSize)},!e.hideThumbnailMask&&r.createElement("div",{className:"".concat("jNop3"," ").concat("blue"===e.variant?"jVOWE":"YNfFq")}),r.createElement("img",{className:"img-fluid",src:l.j.createUrl(t,{size:i.h2.Small})}))})))}))},2248:(e,t,n)=>{n.d(t,{L:()=>v});var r=n(32735),a=n(60376),o=n(83914),i=n(2786),c=n(83345),l=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function h(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function v(e){var t,n,v=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(c.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:o.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(c.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},v.xs?r.createElement(i.bc,null):r.createElement(i.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(o.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(h,null),r.createElement(h,null),r.createElement(h,null),r.createElement(h,null),r.createElement(h,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case l.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case l.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case l.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(o.x,{svgName:u.vn.School,size:o.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(c.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},62007:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(32735),a=n(5465),o=n(72188),i=n(54610),c=n(2248);const l={banner:"CQxNy",title:"NzV5V",description1:"kjCZi",description2:"cBeyJ",placeholder:"Ks_Tl",playlistName:"eFPqz",thumbnailCol:"dgCQ7",videoInfoCol:"pzfE2"};function s(e){return r.createElement("li",{className:"row mb-2"},r.createElement("div",{className:"col-lg-4 col-5 ".concat(l.thumbnailCol)},e.video?r.createElement(o.u,{video:e.video,type:"cosmetic",hideDuration:!0,imageOptions:{size:i.h2.Small}}):r.createElement(a.oy,{type:a.mS.Video,extraClasses:"position-relative rounded-3 ".concat(l.placeholder)})),r.createElement("div",{className:"col-lg-8 col-7 ".concat(l.videoInfoCol)},r.createElement("div",{className:"".concat(l.title," rounded-pill bg-grey mb-1")}),r.createElement("div",{className:"".concat(l.description1," rounded-pill bg-grey mb-1")}),r.createElement("div",{className:"".concat(l.description2," rounded-pill bg-grey mb-1")})))}function u(e){var t,n,a,o=e.hidePlaceholders?0:Math.max(6-(null!==(n=null===(t=e.videos)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(c.L,{presentation:e.presentation,curriculum:e.curriculum},r.createElement("div",{className:"bg-teal ".concat(l.banner," position-relative")},e.name&&r.createElement("div",{className:"h5 text-white mb-0 ".concat(l.playlistName)},e.name)),r.createElement("ul",{className:"list-unstyled mb-0 w-100 p-2"},null===(a=e.videos)||void 0===a?void 0:a.map((function(e){return r.createElement(s,{key:e.id,video:e})})),new Array(o).fill(0).map((function(e,t){return r.createElement(s,{key:t})}))))}},14495:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSelectVideosView:()=>Q});var r=n(32735),a=n(57900),o=n(2948),i=n(20354),c=n(83345),l=n(89454),s=n(79967),u=n(99742),m=n(86702),d=n(82817),f=n(86698),h=n(89682),v=n(72188),p=n(54610),y=n(80143);const g={selected:"ZG5MR"};function b(e){var t,n=(0,y.n)(null===(t=e.video.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences);return r.createElement(v.u,{type:"cosmetic",video:e.video,imageOptions:{size:p.h2.Small},audience:n,checkMarkStatus:e.isSelected?h.h.Complete:h.h.Incomplete,setCheckMarkStatus:function(){return e.onSelectVideo(e.video),Promise.resolve()},extraClasses:e.isSelected?"border border-success border-2 rounded-3 overflow-hidden":"",imageClassName:e.isSelected?"".concat(g.selected):"",hideDuration:!0})}function E(e){return r.createElement("ul",{className:"list-unstyled"},e.classificationVideosGrouping.map((function(t){return r.createElement("li",{key:t.classificationId,className:"pb-3"},r.createElement("h2",{className:"h6"},t.classificationName),r.createElement("ul",{className:"row list-unstyled g-2"},t.videos.map((function(t){return r.createElement("li",{key:t.id,className:"col-sm-6 col-md-4 col-lg-6 col-xl-6"},r.createElement(b,{video:t,onSelectVideo:e.onSelectVideo,audiences:e.audiences,isSelected:e.isSelected(t.id)}))}))))})))}var N=n(75359),w=n(12058),S=n(27583),A=n(75919),x=n(63478),L=n(24250),j=n(62007),I=n(75896),O=n(60736),k=n(49602),P=n(61699),C=n(1575),D=n(37802);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var M=n(73190);const B={loaderText:"pg4Oj"};function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function V(){V=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new k(r||[]);return a(i,"_invoke",{value:L(e,n,c)}),i}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",v="completed",p={};function y(){}function g(){}function b(){}var E={};s(E,i,(function(){return this}));var N=Object.getPrototypeOf,w=N&&N(N(P([])));w&&w!==n&&r.call(w,i)&&(E=w);var S=b.prototype=y.prototype=Object.create(E);function A(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,c){var l=m(e[a],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==U(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function L(t,n,r){var a=d;return function(o,i){if(a===h)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var l=j(c,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=h;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?v:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=v,r.method="throw",r.arg=s.arg)}}}function j(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=m(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(U(t)+" is not iterable")}return g.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(u(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(S),s(S,l,"Generator"),s(S,i,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function c(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},H=6e3,K=3,W="onboarding.selectVideos";function Q(){var e=(0,M.Q)(),t=e.onClickBack,n=e.exitOnboarding,h=e.completeStepAsync,v=e.onSaveError,p=G(r.useState(!1),2),y=p[0],g=p[1],b=G((0,o.D)(m.y.ONBOARDING_VIDEOS,[],{storage:a.Z1.LocalStorage}),2),U=b[0],Q=b[1],q=i.a.useBasicFetch(l.O.presentationAudiences()),Z=(0,f.y)().preferredPresentation,X=(0,d.M)().activeCurriculum,$=function(){var e,t,n=(0,f.y)().preferredPresentation,r=(0,D.r)(null),a=r.bulkOnboardingPreferencesState,o=r.isLoadingSettings,c=i.a.useBasicFetch(P.o.mySubjectPreferences()),l=O.A[n.id]||{},s=Object.entries(l).reduce((function(e,t){var n=T(t,2),r=n[0],a=n[1].name;return e[r]=a,e}),{}),u=k.b.hasBulkSelectedTopics(a)?l:null!==(t=null===(e=c.data)||void 0===e?void 0:e.reduce((function(e,t){return l[t.id]?(e[t.id]=l[t.id],e):e}),{}))&&void 0!==t?t:{},m=[],d={};Object.entries(u).forEach((function(e){var t,n=T(e,2),r=n[0],a=n[1];m.push.apply(m,function(e){if(Array.isArray(e))return R(e)}(t=a.videoIds)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a.videoIds.forEach((function(e){d[e]||(d[e]=[]),d[e].push(r)}))}));var h=i.a.useBasicFetchAll(I.m.chunk(I.m.uniq(m),25).map((function(e){return C.R.videos(e)}))),v=I.m.flatten(h.data||[]),p={};return null==v||v.forEach((function(e){d[e.id].forEach((function(t){p[t]||(p[t]={classificationId:t,classificationName:s[t],videos:[]}),p[t].videos.push(e)}))})),{hasCompleted:c.hasCompleted&&h.hasCompleted&&!o,data:Object.values(p)}}(),J=(0,s.k)(),ee=J.lg||J.xl||J.xxl;r.useEffect((function(){var e=window.setTimeout((function(){g(!0)}),H);return function(){window.clearTimeout(e)}}),[]);var te=$.hasCompleted&&q.hasCompleted,ne=!y||!te,re=ne?{hasCustomButtons:!0}:{hasCustomButtons:!1,onClickNext:function(){return Y(this,void 0,void 0,V().mark((function e(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h();case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),v(),e.abrupt("return",Promise.reject());case 9:case"end":return e.stop()}}),e,null,[[0,5]])})))},onClickBack:t,onClickComeBackLater:n,disableNext:U.length<K};return ne&&!ee?r.createElement(x.B,{variant:"dark-blue"},r.createElement("div",{className:"w-100 d-flex align-items-center px-4 text-center flex-column text-white ".concat(B.loaderText)},r.createElement("h1",{className:"h3 mb-4"},r.createElement(c.x,{namespace:W,phrase:"loadingHeading"})),r.createElement("p",{className:"h6"},r.createElement(c.x,{namespace:W,phrase:"searching"}))),r.createElement(L.R,{variant:"dark-blue",screenSize:"100%",hideThumbnailMask:!0})):r.createElement(S.z,{namespace:W},r.createElement(S.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},ne?r.createElement(L.R,{variant:"dark-blue",screenSize:"50%"}):r.createElement(A.N,{contentPosition:"right",annotationUrl:U.length>=K?u.W.OnboardingV2.SelectVideos.LOOKING_GOOD:u.W.OnboardingV2.SelectVideos.BEFORE_SELECTION,annotationPosition:U.length>=K?"bottom-left":"top-left"},r.createElement(j.u,{presentation:Z,curriculum:X,videos:U}))),r.createElement(S.z.Right,Object.assign({},re),ne?r.createElement(r.Fragment,null,r.createElement(N.W,null,r.createElement(c.x,{phrase:"loadingHeading"})),r.createElement("p",null,r.createElement(c.x,{phrase:"searching"}))):r.createElement(r.Fragment,null,r.createElement(N.W,null,r.createElement(c.x,{phrase:"heading"})),r.createElement(w.X,null,r.createElement(c.x,{phrase:"info"})),r.createElement(E,{classificationVideosGrouping:$.data,onSelectVideo:function(e){var t;U.some((function(t){return t.id.toString()===e.id.toString()}))?Q(U.filter((function(t){return t.id.toString()!==e.id.toString()}))):Q([].concat(function(e){if(Array.isArray(e))return F(e)}(t=U)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||z(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))},audiences:q.data,isSelected:function(e){return U.some((function(t){return t.id.toString()===e.toString()}))}}))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5379],{2158:(e,t,a)=>{a.d(t,{T:()=>u});var n=a(20354),r=a(50122),c=a(25925),l=a(21750),i=a(31949),o=a(37802),s=a(75795);function u(e){var t=n.a.useBasicFetch(i.N.currentUser()),a=n.a.useBasicFetch(t.data.isAuthenticated&&i.N.user(t.data.id)),u=n.a.useBasicFetch(l.x.availablePresentations(c.R.Subject)),m=n.a.useBasicFetch(l.x.presentation(c.R.Subject)),d=n.a.useBasicFetch(l.x.availablePresentations(c.R.Curriculum)),v=t.hasCompleted&&a.hasCompleted&&u.hasCompleted&&d.hasCompleted&&m.hasCompleted,f=(0,o.r)(null).userSettings;return{getPathway:function(t){var n,c,l;return r.m.getOnboardingPathway({jobTitle:t||(null===(l=null===(c=null===(n=a.data)||void 0===n?void 0:n.userProfile)||void 0===c?void 0:c.metadata)||void 0===l?void 0:l.jobTitle),userSettings:f.data,presentations:u.data,curriculums:d.data,preferredPresentation:m.data,appLink:s.O.getCurrentRoute().appLink,appLinks:e})},hasLoadedPathway:v}}},63478:(e,t,a)=>{a.d(t,{B:()=>r});var n=a(32735);function r(e){return n.createElement("div",{className:"w-100 h-100 position-fixed bg-".concat(e.variant)},e.children)}},24250:(e,t,a)=>{a.d(t,{R:()=>u});var n=a(32735),r=a(75896),c=a(55171),l=a(54610),i=a(79967),o=a(67453);function s(e,t){return"mobile"===t?function(e){var t=e%10,a={top:"".concat(4*e,"%")};switch(t){case 0:return a.left="12.5%",a.animationDelay="0.5s",a;case 1:return a.right="7.5%",a.animationDelay="1s",a;case 2:return a.left="10%",a;case 3:return a.right="2.5%",a.animationDelay="0.5s",a;case 4:return a.left="2.5%",a.animationDelay="1.5s",a;case 5:return a.right="10%",a;case 6:return a.left="12.5%",a.animationDelay="1.5s",a;case 7:return a.right="7.5%",a.animationDelay="0.5s",a;case 8:return a.left="5%",a.animationDelay="1s",a;case 9:return a.right="2.5%",a.animationDelay="1s",a;default:return a.left="10%",a.animationDelay="1.5s",a}}(e):"50%"===t?function(e){var t=e%10,a={top:"".concat(4*e,"%")};switch(t){case 0:return a.left="25%",a.animationDelay="0.5s",a;case 1:return a.right="15%",a.animationDelay="1s",a;case 2:return a.left="20%",a;case 3:return a.right="5%",a.animationDelay="0.5s",a;case 4:return a.left="5%",a.animationDelay="1.5s",a;case 5:return a.right="20%",a;case 6:return a.left="25%",a.animationDelay="1.5s",a;case 7:return a.right="15%",a.animationDelay="0.5s",a;case 8:return a.left="10%",a.animationDelay="1s",a;case 9:return a.right="5%",a.animationDelay="1s",a;default:return a.left="20%",a.animationDelay="1.5s",a}}(e):function(e){var t=e%10,a={top:"".concat(4*e,"%")};switch(t){case 0:return a.left="25%",a.animationDelay="0.5s",a;case 1:return a.right="30%",a.animationDelay="1s",a;case 2:return a.left="40%",a;case 3:return a.right="10%",a.animationDelay="0.5s",a;case 4:return a.left="10%",a.animationDelay="1.5s",a;case 5:return a.right="40%",a;case 6:return a.left="30%",a.animationDelay="1.5s",a;case 7:return a.right="30%",a.animationDelay="0.5s",a;case 8:return a.left="10%",a.animationDelay="1s",a;case 9:return a.right="10%",a.animationDelay="1s",a;default:return a.left="40%",a.animationDelay="1.5s",a}}(e)}var u=n.memo((function(e){var t=r.m.shuffle(c.e.Onboarding.LOADING_THUMBNAILS),a=(0,i.k)();return n.createElement("div",{className:"".concat("n2Qe4"," ").concat("50%"===e.screenSize?"w-50":"w-100")},t.map((function(t,r){return n.createElement("div",{key:r,className:"".concat("ZlA2t"," position-absolute rounded-3 overflow-hidden"),style:s(r,a.xs?"mobile":e.screenSize)},!e.hideThumbnailMask&&n.createElement("div",{className:"".concat("jNop3"," ").concat("blue"===e.variant?"jVOWE":"YNfFq")}),n.createElement("img",{className:"img-fluid",src:o.j.createUrl(t,{size:l.h2.Small})}))})))}))},49036:(e,t,a)=>{a.d(t,{Y:()=>u});var n=a(32735),r=a(54610),c=a(67453),l=a(2248);const i={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function o(e){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(i.subjectPlaceholder)},e.coverUrl?n.createElement("div",{className:i.placeholderCover},n.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:r.h2.Small})})):n.createElement("div",{className:"".concat(i.placeholderCover," bg-light-blue")})))}function s(){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(i.promotedTopicPlaceholder)}))}function u(e){var t,a,r,c=Math.max(12-(null!==(a=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==a?a:0),0);return n.createElement(l.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},n.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},n.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},n.createElement("div",{className:"bg-light ".concat(i.magicTab)}),n.createElement("div",{className:"".concat(i.magicTab)})),n.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(r=e.subjects)||void 0===r?void 0:r.map((function(e){var t;return n.createElement(o,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return n.createElement(o,{key:t})}))),n.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null))))}},2248:(e,t,a)=>{a.d(t,{L:()=>p});var n=a(32735),r=a(60376),c=a(83914),l=a(2786),i=a(83345),o=a(72639),s=a(79967),u=a(35223),m=a(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var v="onboarding.mockLayout";function f(){return n.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},n.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),n.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function p(e){var t,a,p=(0,s.k)();return n.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&n.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},n.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},n.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},n.createElement("h2",{className:"h6 text-start"},n.createElement(i.x,{namespace:v,phrase:"curriculum"})),e.curriculum?n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},n.createElement(r.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"text-start"},e.curriculum.name)):n.createElement("div",{className:"d-flex align-items-center text-muted"},n.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},n.createElement(r.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),n.createElement(i.x,{namespace:v,phrase:"selectCurriculum"}))))),n.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},n.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),n.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),n.createElement("div",{className:"rounded-circle ".concat(d.dot)})),n.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},n.createElement("div",{className:"".concat(d.logo," me-4")},p.xs?n.createElement(l.bc,null):n.createElement(l.$S,null)),n.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},n.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&n.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},n.createElement(r.f,{imageUrl:null===(a=e.curriculum.cover)||void 0===a?void 0:a.url}))),n.createElement("div",{className:"d-flex ".concat(d.belowHeader)},n.createElement("div",{className:"".concat(d.leftNav," border-end")},n.createElement("div",{className:"d-flex flex-column pt-3 h-100"},n.createElement(f,null),n.createElement(f,null),n.createElement(f,null),n.createElement(f,null),n.createElement(f,null),n.createElement("div",{className:"d-flex align-items-end h-100 w-100"},n.createElement("div",{className:"border-top p-3 w-100"},n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case o.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case o.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case o.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},n.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?n.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):n.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},n.createElement(i.x,{namespace:v,phrase:"schoolLevel"}))))))),n.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},62007:(e,t,a)=>{a.d(t,{u:()=>u});var n=a(32735),r=a(5465),c=a(72188),l=a(54610),i=a(2248);const o={banner:"CQxNy",title:"NzV5V",description1:"kjCZi",description2:"cBeyJ",placeholder:"Ks_Tl",playlistName:"eFPqz",thumbnailCol:"dgCQ7",videoInfoCol:"pzfE2"};function s(e){return n.createElement("li",{className:"row mb-2"},n.createElement("div",{className:"col-lg-4 col-5 ".concat(o.thumbnailCol)},e.video?n.createElement(c.u,{video:e.video,type:"cosmetic",hideDuration:!0,imageOptions:{size:l.h2.Small}}):n.createElement(r.oy,{type:r.mS.Video,extraClasses:"position-relative rounded-3 ".concat(o.placeholder)})),n.createElement("div",{className:"col-lg-8 col-7 ".concat(o.videoInfoCol)},n.createElement("div",{className:"".concat(o.title," rounded-pill bg-grey mb-1")}),n.createElement("div",{className:"".concat(o.description1," rounded-pill bg-grey mb-1")}),n.createElement("div",{className:"".concat(o.description2," rounded-pill bg-grey mb-1")})))}function u(e){var t,a,r,c=e.hidePlaceholders?0:Math.max(6-(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.length)&&void 0!==a?a:0),0);return n.createElement(i.L,{presentation:e.presentation,curriculum:e.curriculum},n.createElement("div",{className:"bg-teal ".concat(o.banner," position-relative")},e.name&&n.createElement("div",{className:"h5 text-white mb-0 ".concat(o.playlistName)},e.name)),n.createElement("ul",{className:"list-unstyled mb-0 w-100 p-2"},null===(r=e.videos)||void 0===r?void 0:r.map((function(e){return n.createElement(s,{key:e.id,video:e})})),new Array(c).fill(0).map((function(e,t){return n.createElement(s,{key:t})}))))}},81217:(e,t,a)=>{a.r(t),a.d(t,{OnboardingCompletedLoaderView:()=>H});var n=a(32735),r=a(57900),c=a(2948),l=a(20354),i=a(2158),o=a(21750),s=a(86702),u=a(82817),m=a(86698),d=a(83345),v=a(63478),f=a(24250),p=a(81886),h=a(14070),E=a(97291);function g(e){n.useEffect((function(){var t=window.setTimeout((function(){p.Q.C$.trigger({application:E.O.DASHBOARD,action:h.e.Dashboard.HOME})}),e);return function(){window.clearTimeout(t)}}),[])}const b={loaderText:"acbPl"};var y="onboarding.advisorVideoLoader";function N(){return g(4e3),n.createElement(v.B,{variant:"blue"},n.createElement("h1",{className:"h-100 w-100 d-flex align-items-center justify-content-center text-white h3 mb-3 position-relative ".concat(b.loaderText)},n.createElement(d.x,{namespace:y,phrase:"takingYouToClickView"})),n.createElement(f.R,{screenSize:"100%",variant:"blue"}))}var w=a(99742);const x={content:"qggDl",imageContainer:"lqHIJ"};var D="onboarding.contactSalesLoader";function S(){return g(4e3),n.createElement(v.B,{variant:"blue"},n.createElement("div",{className:"".concat(x.content," text-center")},n.createElement("div",{className:"".concat(x.imageContainer," mx-auto")},n.createElement("img",{className:"img-fluid",src:w.W.OnboardingV2.ContactSales.LOADER})),n.createElement("h1",{className:"h-100 w-100 d-flex align-items-center justify-content-center text-white h3"},n.createElement(d.x,{namespace:D,phrase:"heading"}))),n.createElement(f.R,{screenSize:"100%",variant:"blue"}))}var C=a(62007),j=a(96347);function T(){n.useEffect((function(){(0,j.p)("tsparticles",{count:500,drift:25,origin:{x:50,y:100},position:{x:50,y:100},startVelocity:100,ticks:100,gravity:3})}),[])}const O={playlistContainer:"J5iom",confetti:"Ja1bk",discover:"njFgx"};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var A="onboarding.creatingPlaylistLoader",L=5e3;function P(e){var t,a,r=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(t,a)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?k(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=r[0],l=r[1];return T(),n.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),L);return function(){window.clearTimeout(e)}}),[]),n.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:E.O.DASHBOARD,action:h.e.Dashboard.HOME})}),L);return function(){window.clearTimeout(e)}}}),[c]),c?n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(O.playlistContainer," ").concat(O.discover)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:A,phrase:"takingYouToDiscover"})),n.createElement(C.u,{presentation:e.presentation,curriculum:e.curriculum,videos:e.videos,name:e.name,hidePlaceholders:!0})),n.createElement(f.R,{screenSize:"100%",variant:"dark-blue"})):n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(O.playlistContainer," ").concat(O.confetti)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:A,phrase:"greatJob"}),n.createElement("br",null),n.createElement(d.x,{namespace:A,phrase:"creatingPlaylist"})),n.createElement(C.u,{presentation:e.presentation,curriculum:e.curriculum,videos:e.videos,name:e.name,hidePlaceholders:!0})))}var I=a(49036);const B={container:"GVDR9"};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var z="onboarding.defaultLoader",V=5e3;function U(e){var t,a,r=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(t,a)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?R(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=r[0],l=r[1];return T(),n.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),V);return function(){window.clearTimeout(e)}}),[]),n.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:E.O.DASHBOARD,action:h.e.Dashboard.HOME})}),V);return function(){window.clearTimeout(e)}}}),[c]),c?n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(B.container)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:z,phrase:"takingYouToDiscover"})),n.createElement(I.Y,{presentation:e.presentation,curriculum:e.curriculum,subjects:e.subjects})),n.createElement(f.R,{screenSize:"100%",variant:"dark-blue"})):n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(B.container)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:z,phrase:"allDone"})),n.createElement(I.Y,{presentation:e.presentation,subjects:e.subjects,curriculum:e.curriculum})))}var _=a(67963);function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?F(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function H(){var e=(0,_.u)(),t=(0,i.T)(e).getPathway,a=M((0,c.D)(s.y.ONBOARDING_LOADER,{}),1)[0],d=M((0,c.D)(s.y.ONBOARDING_VIDEOS,[],{storage:r.Z1.LocalStorage}),1)[0],v=(0,m.y)().preferredPresentation,f=(0,u.M)().activeCurriculum,p=l.a.useBasicFetch(o.x.classifications()),h=n.useMemo((function(){switch(t().currentScreen){case"create-playlist":return"create-playlist";case"advisor-video":return"advisor-video";case"contact-sales":return"contact-sales";default:return"default"}}),[]);return"default"===h?n.createElement(U,{subjects:p.data,presentation:v,curriculum:f}):"create-playlist"===h?n.createElement(P,{name:a.playlistName,videos:d,presentation:v,curriculum:f}):"advisor-video"===h?n.createElement(N,null):"contact-sales"===h?n.createElement(S,null):n.createElement(n.Fragment,null)}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 5442-82e8147edc-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5442],{84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},76153:(t,e,r)=>{r.d(e,{F:()=>v});var n=r(63093),o=r(33003),i=r.n(o),a=r(84789),c=r(86664);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function C(){}var E={};s(E,a,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(_([])));x&&x!==r&&n.call(x,a)&&(E=x);var S=C.prototype=b.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function r(o,i,a,c){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,n);if("normal"===l.type){if(o=n.done?y:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function _(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=s(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,s(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(N.prototype),s(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new N(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),s(S,l,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function h(t,e,r){var n;return n=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==u(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={k12:"Primary & Secondary"},p={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},m=h(h({},a.X.Auth,"auth.web"),a.X.Lite,"lite.web"),v={getClient:function(t){var e,r,o,i,a,u;return o=this,i=void 0,a=void 0,u=f().mark((function o(){var i,a,u,l,s,h;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=t.brazeConfig,a=t.geoLocation,u=t.version,l=i[c.I.getInstanceRegion(null==a?void 0:a.countryCode)],s=m[t.productName],h=(0,n.getInstance)({baseUrl:l.url,apiKey:l.apiKey,productVersion:u,productName:s,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&h.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),o.abrupt("return",h);case 6:case"end":return o.stop()}}),o)})),new(a||(a=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof a?o:new a((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,i||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return i().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=l(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=l(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),h({},n,o===Object(o)?v.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return n.ProductFormEvent.ProductTrailRequested},getProductFormEventType:function(){return"product_form_submission"},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return d[e]||t}},parseProvince:function(t){return t.length?p[t.toLowerCase()]||t:""}}},86664:(t,e,r)=>{r.d(e,{I:()=>u});var n=r(83765),o=r(93824),i=["uk","gb","gg","im","je","ie"],a={au:o.C.AU,nz:o.C.NZ,us:o.C.US,uk:o.C.UK,gb:o.C.UK,gg:o.C.UK,im:o.C.UK,je:o.C.UK,ie:o.C.UK},c={au:n.M.CvApSoutheast1,uk:n.M.CvEuWest1,us:n.M.CvNaWest1,nz:n.M.CvApSoutheast2},u={getInstanceRegion:function(t){var e=u.getCountryCode(t);return c[e]},getCountryCode:function(t){return a[null==t?void 0:t.toLowerCase()]||o.C.US},isCountryCodeUK:function(t){return i.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===o.C.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===o.C.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===o.C.NZ},isSupportedCountryCode:function(t){return Object.keys(a).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return u.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":u.isCountryCodeAU(t)||u.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":u.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=u.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}}},93824:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}))},74887:(t,e,r)=>{r.d(e,{f:()=>a});var n=r(32735),o=r(11607);const i={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function a(t){return n.createElement("ul",{className:"list-unstyled mb-3"},t.options.map((function(e){return n.createElement("li",{key:e.id,className:"mb-2 ".concat(i.option," rounded-3 ").concat(t.selection===e.id?"border border-dark border-2 bg-light-blue":"")},n.createElement(o.L,{onClick:function(){return t.setSelection(e.id)},className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(e.colourClass," ").concat(i.icon)},n.createElement("img",{src:e.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},e.title),n.createElement("p",{className:"mb-0 ".concat(i.description)},e.description))))})))}},12058:(t,e,r)=>{r.d(e,{X:()=>o});var n=r(32735);function o(t){return n.createElement("p",{className:t.className},t.children)}},11572:(t,e,r)=>{r.r(e),r.d(e,{OnboardingContactSalesView:()=>T});var n=r(32735),o=r(63093),i=r(23481),a=r(20354),c=r(84789),u=r(76153),l=r(83345),s=r(39151),f=r(1666),h=r(31949),d=r(99742),p=r(99940),m={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:p.k.POST,data:{email:t}}}},v=r(75359),y=r(74887),g=r(12058),b=r(27583),w=r(73190),C=r(36669),E=r(17762);const L={imageContainer:"QqX1V",topImage:"mjPRy",bottomImage:"uHwHs",info:"dNDnN"};function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var C=Object.getPrototypeOf,E=C&&C(C(_([])));E&&E!==r&&n.call(E,a)&&(w=E);var L=b.prototype=y.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==x(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function _(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(N.prototype),l(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new N(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(L),l(L,u,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function k(t,e,r){var n;return n=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==x(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j,U=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},P="onboarding.contactSales",A=i.T.encloseNamespace(P),_="product_onboarding_submission";!function(t){t.BookADemo="Book a demo",t.RequestPricing="Request pricing",t.ContactUs="Onboarding contact us"}(j||(j={}));var F=[{id:j.BookADemo,imageUrl:d.W.OnboardingV2.ContactSales.BOOK_DEMO_ICON,colourClass:"bg-yellow",title:A("bookDemo"),description:A("bookDemoInfo")},{id:j.RequestPricing,imageUrl:d.W.OnboardingV2.ContactSales.REQUEST_PRICING_ICON,colourClass:"bg-purple",title:A("requestPricing"),description:A("requestPricingInfo")},{id:j.ContactUs,imageUrl:d.W.OnboardingV2.ContactSales.OTHER_ICON,colourClass:"bg-dark-blue",title:A("other"),description:A("otherInfo")}];function T(){var t=(0,w.Q)(),e=t.onClickBack,r=t.exitOnboarding,i=t.completeStepAsync,p=t.onSaveError,x=a.a.useBasicFetch(h.N.currentUser()),O=a.a.useBasicFetch(x.data&&h.N.user(x.data.id)),T=a.a.useBasicFetch(s.L.version()),I=a.a.useBasicFetch(s.L.config()),G=a.a.useBasicFetch(x.data&&f.h.customer(x.data.customerId)),K=a.a.useBasicFetch(C.t.currentProspect()),B=a.a.useBasicFetch(x.data&&m.checkEmail(x.data.email)),R=(0,E.M)(),z=N(n.useState(),2),D=z[0],q=z[1],M=N(n.useState(""),2),W=M[0],X=M[1],V=N(n.useState(""),2),Y=V[0],Z=V[1];function H(){switch(D){case j.BookADemo:return"book_a_demo";case j.RequestPricing:return"request_pricing";case j.ContactUs:return"other"}}return n.createElement(b.z,{namespace:P},n.createElement(b.z.Left,{className:"bg-blue d-flex align-items-center"},n.createElement("div",{className:"px-5"},n.createElement("img",{className:"img-fluid",src:d.W.OnboardingV2.ContactSales.BACKGROUND}))),n.createElement(b.z.Right,{hasCustomButtons:!1,onClickNext:function(){var t,e,r,n,a,l,s,f,h,d,m,v,y,g,b,w,C,E,L,N;return U(this,void 0,void 0,S().mark((function j(){var P,A,F,z,q=this;return S().wrap((function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.next=3,u.F.getClient({brazeConfig:I.data.braze,geoLocation:R.isFallback?{countryCode:null!==(e=null===(t=x.data)||void 0===t?void 0:t.countryCode)&&void 0!==e?e:R.countryCode}:R,productName:c.X.Lite,version:T.data});case 3:(P=j.sent).setUser(u.F.hashedEmail(null===(r=O.data)||void 0===r?void 0:r.email)),P.openSession(),P.setUserFirstName(null===(n=O.data)||void 0===n?void 0:n.name),P.setUserLastName(null===(a=O.data)||void 0===a?void 0:a.surname),P.setUserPhone(W),P.setUserEmail(null===(l=O.data)||void 0===l?void 0:l.email),A=u.F.removeEmptyKeys(k(k(k(k({},o.DefaultUserAttributes.Email,null===(s=O.data)||void 0===s?void 0:s.email),o.DefaultUserAttributes.FirstName,null===(f=O.data)||void 0===f?void 0:f.name),o.DefaultUserAttributes.LastName,null===(h=O.data)||void 0===h?void 0:h.surname),o.DefaultUserAttributes.Phone,W)),F=u.F.removeEmptyKeys(k(k(k(k(k(k(k({},o.CustomUserAttributes.JobTitle,null===(v=null===(m=null===(d=O.data)||void 0===d?void 0:d.userProfile)||void 0===m?void 0:m.metadata)||void 0===v?void 0:v.jobTitle),o.CustomUserAttributes.AccountName,null===(y=x.data)||void 0===y?void 0:y.customerName),o.CustomUserAttributes.CrmId,null===(g=G.data)||void 0===g?void 0:g.crmId),o.CustomUserAttributes.OrgSubType,u.F.getSchoolType("")),"account_address",{country_code:null===(b=x.data)||void 0===b?void 0:b.countryCode,province:u.F.parseProvince((null===(w=K.data)||void 0===w?void 0:w.province)||"")}),"topic",D),o.CustomUserAttributes.SyncToCrm,!(null===(E=null===(C=B.data)||void 0===C?void 0:C.users)||void 0===E?void 0:E.length))),z=u.F.removeEmptyKeys(k(k(k(k({},o.EventUserAttributes.AccountCity,null===(L=K.data)||void 0===L?void 0:L.city),o.EventUserAttributes.AccountState,null===(N=K.data)||void 0===N?void 0:N.province),o.EventUserAttributes.ContactUsComment,Y),"form_type",H())),P.bulkSetCustomUserAttributes(F),P.logEvent({type:_,data:Object.assign(Object.assign(Object.assign({},A),F),z)}),P.sendData((function(t){return U(q,void 0,void 0,S().mark((function e(){return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return p(),e.abrupt("return",Promise.reject());case 3:return e.prev=3,e.next=6,i();case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),p(),e.abrupt("return",Promise.reject());case 12:case"end":return e.stop()}}),e,null,[[3,8]])})))})),j.next=22;break;case 18:return j.prev=18,j.t0=j.catch(0),p(),j.abrupt("return",Promise.reject());case 22:case"end":return j.stop()}}),j,null,[[0,18]])})))},onClickBack:e,onClickComeBackLater:r,disableNext:!D||!W||!O.data||D===j.ContactUs&&!Y,nextText:A("contactSales")},n.createElement(v.W,{className:"mb-0"},n.createElement(l.x,{phrase:"heading"})),n.createElement(g.X,{className:"".concat(L.info," mb-0 mt-1")},n.createElement(l.x,{phrase:"info"})),n.createElement(g.X,{className:"fw-semibold mt-3"},n.createElement(l.x,{phrase:"howCanWeHelp"})),n.createElement(y.f,{options:F,selection:D,setSelection:function(t){q(t)}}),n.createElement("label",{htmlFor:"phone-number"},A("phoneNumber"),n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"phone-number",name:"phone-number",className:"form-control form-control-lg mb-3",type:"tel",value:W,onChange:function(t){return X(t.target.value)},placeholder:A("phoneNumberPlaceholder")}),n.createElement("label",{htmlFor:"other-information"},A("otherLabel"),D===j.ContactUs&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"other-information",name:"other-information",className:"form-control form-control-lg",value:Y,onChange:function(t){return Z(t.target.value)},placeholder:A("otherPlaceholder")})))}},36669:(t,e,r)=>{r.d(e,{t:()=>n});var n={currentProspect:function(){return{url:"/api/prospects/current",key:"prospect:current"}},getLookups:function(t){return{url:"/api/prospects/".concat(t,"/lookups"),key:"prospect:".concat(t)}}}},17762:(t,e,r)=>{r.d(e,{M:()=>a});var n=r(20354),o=r(39151),i={countryCode:"us",isFallback:!0};function a(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasCompleted&&!t.data?i:t.data}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7791-76129dec22-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7791],{49602:(e,t,n)=>{var r;n.d(t,{b:()=>c}),function(e){e[e.None=0]="None",e[e.AllSubjects=1]="AllSubjects",e[e.AllLevels=2]="AllLevels",e[e.AllSubjectsAndAllLevels=3]="AllSubjectsAndAllLevels"}(r||(r={}));var a=n(25925),c={hasManyPresentationTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0,n=0;return null==e||e.forEach((function(e){e.type===a.R.Subject?t++:e.type===a.R.Curriculum&&n++})),{hasManySubjectPresentations:t>1,hasManyCurriculumPresentations:n>1}},getBulkPreferencesState:function(e){return e===r.AllSubjectsAndAllLevels?{levels:!0,subjects:!0}:{levels:e===r.AllLevels,subjects:e===r.AllSubjects}},hasBulkSelectedLevels:function(e){return e===r.AllLevels||e===r.AllSubjectsAndAllLevels},hasBulkSelectedTopics:function(e){return e===r.AllSubjects||e===r.AllSubjectsAndAllLevels},getNextBulkState:function(e,t){var n=r.None,a=r.AllSubjects,c=r.AllLevels,l=r.AllSubjectsAndAllLevels,o="topics"===t;switch(e){case n:default:return o?a:c;case a:return o?n:l;case c:return o?l:n;case l:return o?c:a}}}},2192:(e,t,n)=>{n.d(t,{M:()=>p,Q:()=>g});var r=n(32735),a=n(45157),c=n(36848),l=n(60376),o=n(5465),i=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),f=n(92038),v=function(e){var t=e.name,n=e.multiline,a="".concat(f.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),c="";return n?c+=" ".concat(f.Z.clamped," clamp-2"):(a+=" text-nowrap",c+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},h=function(e){var t=e.name,n=e.multiline,a=e.subtitle,c="px-3 d-flex flex-column justify-content-center",l="".concat(f.Z.name," h6");return n?l+=" clamp-2 text-start":(c+=" text-nowrap text-truncate",l+=" text-truncate mb-0 pb-1"),r.createElement("div",{className:c},a&&r.createElement("div",{className:"text-secondary clamp-1 ".concat(f.Z.text)},a),r.createElement("div",{className:l,title:n?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return r.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(f.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(a.Y.getRandomInt())},e.isSelected&&r.createElement("div",{className:"".concat(f.Z.selectedMask," border-2")}),r.createElement("div",{className:"".concat(f.Z.imagePanel," ").concat(e.isLarge?f.Z.large:"")},e.isSelected&&r.createElement("div",{className:f.Z.selected},r.createElement(l.f,{svgName:d.vn.Check,svgSize:i.S.Large,textVariant:"white",variant:"green"})),r.createElement("div",{className:"".concat(f.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&r.createElement(o.oy,{type:o.mS.Subject,extraClasses:e.isLarge?f.Z.large:""})),e.isComingSoon?r.createElement(v,Object.assign({},n)):r.createElement(h,Object.assign({},n)))}function g(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return r.createElement(r.Fragment,null,n?r.createElement(c.F,{className:f.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},r.createElement(p,Object.assign({},e))):r.createElement(p,Object.assign({},e)))}},75919:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",height:"kRhKC"};function c(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.height),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},r.createElement("div",{className:function(){var t=a.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(a.above," ").concat(a.left);break;case"top-right":t+=" ".concat(a.above," ").concat(a.right);break;case"bottom-left":t+=" ".concat(a.below," ").concat(a.left);break;case"bottom-right":t+=" ".concat(a.below," ").concat(a.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},49036:(e,t,n)=>{n.d(t,{Y:()=>u});var r=n(32735),a=n(54610),c=n(67453),l=n(2248);const o={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(o.subjectPlaceholder)},e.coverUrl?r.createElement("div",{className:o.placeholderCover},r.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):r.createElement("div",{className:"".concat(o.placeholderCover," bg-light-blue")})))}function s(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(o.promotedTopicPlaceholder)}))}function u(e){var t,n,a,c=Math.max(12-(null!==(n=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(l.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},r.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},r.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},r.createElement("div",{className:"bg-light ".concat(o.magicTab)}),r.createElement("div",{className:"".concat(o.magicTab)})),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(a=e.subjects)||void 0===a?void 0:a.map((function(e){var t;return r.createElement(i,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return r.createElement(i,{key:t})}))),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>h});var r=n(32735),a=n(60376),c=n(83914),l=n(2786),o=n(83345),i=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function h(e){var t,n,h=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(o.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(o.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},h.xs?r.createElement(l.bc,null):r.createElement(l.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case i.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case i.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case i.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(o.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},59158:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSubjectsView:()=>B});var r=n(32735),a=n(23481),c=n(20354),l=n(64534),o=n(2158),i=n(49602),s=n(11607),u=n(83345),m=n(2192),d=n(54610),f=n(77963),v=n(65728),h=n(61699),p=n(31949),g=n(37802),b=n(67453),y=n(10144),E=n(99742),N=n(82817),x=n(86698),w=n(75359),L=n(27583),S=n(75919),j=n(49036),k=n(73190),P=n(67963);const A={selected:"igx0Y",disabled:"nDUWB"};function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function O(){O=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",o=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var c=t&&t.prototype instanceof g?t:g,l=Object.create(c.prototype),o=new I(r||[]);return a(l,"_invoke",{value:j(e,n,o)}),l}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",v="executing",h="completed",p={};function g(){}function b(){}function y(){}var E={};s(E,l,(function(){return this}));var N=Object.getPrototypeOf,x=N&&N(N(T([])));x&&x!==n&&r.call(x,l)&&(E=x);var w=y.prototype=g.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(a,c,l,o){var i=m(e[a],e,c);if("throw"!==i.type){var s=i.arg,u=s.value;return u&&"object"==C(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,o)}),(function(e){n("throw",e,l,o)})):t.resolve(u).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,o)}))}o(i.arg)}var c;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return c=c?c.then(a,a):a()}})}function j(t,n,r){var a=d;return function(c,l){if(a===v)throw new Error("Generator is already running");if(a===h){if("throw"===c)throw l;return{value:e,done:!0}}for(r.method=c,r.arg=l;;){var o=r.delegate;if(o){var i=k(o,r);if(i){if(i===p)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?h:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var c=m(a,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,p;var l=c.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}throw new TypeError(C(t)+" is not iterable")}return b.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,i,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},L(S.prototype),s(S.prototype,o,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var l=new S(u(e,n,r,a),c);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},L(w),s(w,i,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return o.type="throw",o.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],o=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var i=r.call(l,"catchLoc"),s=r.call(l,"finallyLoc");if(i&&s){if(this.prev<l.catchLoc)return a(l.catchLoc,!0);if(this.prev<l.finallyLoc)return a(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return a(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return a(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var c=a;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var l=c?c.completion:{};return l.type=e,l.arg=t,c?(this.method="next",this.next=c.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,c,l,o=[],i=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=c.call(n)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _=function(e,t,n,r){return new(n||(n=Promise))((function(a,c){function l(e){try{i(r.next(e))}catch(e){c(e)}}function o(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}i((r=r.apply(e,t||[])).next())}))},U="onboarding.subjects";function B(){var e,t=(0,P.u)(),n=(0,o.T)(t).getPathway,C=c.a.useBasicFetch(p.N.currentUser()),T=(0,x.y)().preferredPresentation,B=c.a.useGetFetchAsync(),F=(0,k.Q)(),Z=F.onClickBack,z=F.exitOnboarding,G=F.onSaveError,M=F.completeStepAsync,R=(0,N.M)().activeCurriculum,Y=n(),H=l.H[Y.currentScreen],V=(0,g.r)(H.analyticsLocation),W=V.updateSettingAsync,D=V.bulkOnboardingPreferencesState,J=c.a.useBasicFetch(h.o.allSubjectPreferences()),Q=c.a.useBasicFetch(h.o.mySubjectPreferences()),q=i.b.hasBulkSelectedTopics(D),K=I(r.useState([]),2),X=K[0],$=K[1],ee=I(r.useState(q),2),te=ee[0],ne=ee[1];return r.useEffect((function(){var e;Q.hasCompleted&&(null===(e=Q.data)||void 0===e?void 0:e.length)&&(te||$(Q.data))}),[Q.hasCompleted]),r.createElement(L.z,{namespace:U},r.createElement(L.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(S.N,{annotationUrl:E.W.OnboardingV2.Subjects.ANNOTATION,annotationPosition:"top-right",annotationClassName:"me-5"},r.createElement(j.Y,{presentation:T,subjects:te?J.data:X,curriculum:R}))),r.createElement(L.z.Right,{hasCustomButtons:!1,onClickNext:function(){return _(this,void 0,void 0,O().mark((function e(){var t,n,r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=[],te!==q&&t.push(W(C.data.id,{name:v.E.BulkOnboardingPreferencesState,value:i.b.getNextBulkState(D,"topics"),kind:f.g.Permanent})),te||(n=X.filter((function(e){return!Q.data.find((function(t){return t.id===e.id}))})),r=Q.data.filter((function(e){return!X.find((function(t){return t.id===e.id}))})),(null==n?void 0:n.length)&&t.push(B(h.o.followSubjects(n.map((function(e){return e.id}))))),(null==r?void 0:r.length)&&t.push(B(h.o.unfollowSubjects(r.map((function(e){return e.id})))))),e.next=6,Promise.all(t);case 6:return e.next=8,M();case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(0),G(),e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))},onClickBack:Z,onClickComeBackLater:z,disableNext:!X.length&&!te},r.createElement(w.W,null,r.createElement(u.x,{phrase:"heading"})),r.createElement("p",null,r.createElement(u.x,{phrase:"addMoreLater"})),r.createElement("ul",{className:"list-unstyled row g-2 mb-0"},r.createElement("li",{className:"col-12 col-sm-6 col-md-4 col-lg-6"},r.createElement(s.L,{onClick:function(){te||$([]),ne(!te)}},r.createElement(m.M,{data:{name:a.T.getPhrase(U,"allSubjects")},coverUrl:y.i.getPresentationLevelImage(T.learningLevel,"cover"),isSelected:te,multiline:!0}))),null===(e=J.data)||void 0===e?void 0:e.map((function(e){var t,n=!!X.find((function(t){return t.id===e.id})),a="";return te?a+="cursor-default ".concat(A.disabled):n&&(a+=A.selected),r.createElement("li",{key:e.id,className:"col-12 col-sm-6 col-md-4 col-lg-6"},r.createElement(s.L,{onClick:function(){return function(e){te||(X.find((function(t){return t.id===e.id}))?$(X.filter((function(t){return t.id!==e.id}))):$(X.concat(e)))}(e)},disabled:te,className:a},r.createElement(m.M,{data:e,coverUrl:b.j.createUrl(null===(t=e.cover)||void 0===t?void 0:t.url,{size:d.h2.Small}),isSelected:n,multiline:!0})))})))))}},92038:(e,t,n)=>{n.d(t,{Z:()=>r});const r={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7877-ac08d68d6f-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7877],{2192:(e,t,n)=>{n.d(t,{M:()=>p,Q:()=>g});var r=n(32735),a=n(45157),c=n(36848),o=n(60376),l=n(5465),i=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),f=n(92038),v=function(e){var t=e.name,n=e.multiline,a="".concat(f.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),c="";return n?c+=" ".concat(f.Z.clamped," clamp-2"):(a+=" text-nowrap",c+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},h=function(e){var t=e.name,n=e.multiline,a=e.subtitle,c="px-3 d-flex flex-column justify-content-center",o="".concat(f.Z.name," h6");return n?o+=" clamp-2 text-start":(c+=" text-nowrap text-truncate",o+=" text-truncate mb-0 pb-1"),r.createElement("div",{className:c},a&&r.createElement("div",{className:"text-secondary clamp-1 ".concat(f.Z.text)},a),r.createElement("div",{className:o,title:n?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return r.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(f.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(a.Y.getRandomInt())},e.isSelected&&r.createElement("div",{className:"".concat(f.Z.selectedMask," border-2")}),r.createElement("div",{className:"".concat(f.Z.imagePanel," ").concat(e.isLarge?f.Z.large:"")},e.isSelected&&r.createElement("div",{className:f.Z.selected},r.createElement(o.f,{svgName:d.vn.Check,svgSize:i.S.Large,textVariant:"white",variant:"green"})),r.createElement("div",{className:"".concat(f.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&r.createElement(l.oy,{type:l.mS.Subject,extraClasses:e.isLarge?f.Z.large:""})),e.isComingSoon?r.createElement(v,Object.assign({},n)):r.createElement(h,Object.assign({},n)))}function g(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return r.createElement(r.Fragment,null,n?r.createElement(c.F,{className:f.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},r.createElement(p,Object.assign({},e))):r.createElement(p,Object.assign({},e)))}},12058:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(32735);function a(e){return r.createElement("p",{className:e.className},e.children)}},75919:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",height:"kRhKC"};function c(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.height),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},r.createElement("div",{className:function(){var t=a.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(a.above," ").concat(a.left);break;case"top-right":t+=" ".concat(a.above," ").concat(a.right);break;case"bottom-left":t+=" ".concat(a.below," ").concat(a.left);break;case"bottom-right":t+=" ".concat(a.below," ").concat(a.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},49036:(e,t,n)=>{n.d(t,{Y:()=>u});var r=n(32735),a=n(54610),c=n(67453),o=n(2248);const l={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(l.subjectPlaceholder)},e.coverUrl?r.createElement("div",{className:l.placeholderCover},r.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):r.createElement("div",{className:"".concat(l.placeholderCover," bg-light-blue")})))}function s(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(l.promotedTopicPlaceholder)}))}function u(e){var t,n,a,c=Math.max(12-(null!==(n=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(o.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},r.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},r.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},r.createElement("div",{className:"bg-light ".concat(l.magicTab)}),r.createElement("div",{className:"".concat(l.magicTab)})),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(a=e.subjects)||void 0===a?void 0:a.map((function(e){var t;return r.createElement(i,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return r.createElement(i,{key:t})}))),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>h});var r=n(32735),a=n(60376),c=n(83914),o=n(2786),l=n(83345),i=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function h(e){var t,n,h=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(l.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(l.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},h.xs?r.createElement(o.bc,null):r.createElement(o.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case i.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case i.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case i.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(l.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},1039:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSchoolLevelView:()=>k});var r=n(32735),a=n(57900),c=n(2948),o=n(11607),l=n(83345),i=n(2192),s=n(38143),u=n(99742),m=n(86698),d=n(75359),f=n(12058),v=n(27583),h=n(75919),p=n(49036),g=n(73190);const y={cover:"p3PFT",presentationList:"PT_ec"};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function E(){E=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},o=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var c=t&&t.prototype instanceof g?t:g,o=Object.create(c.prototype),l=new _(r||[]);return a(o,"_invoke",{value:P(e,n,l)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",v="executing",h="completed",p={};function g(){}function y(){}function N(){}var x={};s(x,o,(function(){return this}));var w=Object.getPrototypeOf,L=w&&w(w(T([])));L&&L!==n&&r.call(L,o)&&(x=L);var k=N.prototype=g.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(a,c,o,l){var i=m(e[a],e,c);if("throw"!==i.type){var s=i.arg,u=s.value;return u&&"object"==b(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(i.arg)}var c;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return c=c?c.then(a,a):a()}})}function P(t,n,r){var a=d;return function(c,o){if(a===v)throw new Error("Generator is already running");if(a===h){if("throw"===c)throw o;return{value:e,done:!0}}for(r.method=c,r.arg=o;;){var l=r.delegate;if(l){var i=C(l,r);if(i){if(i===p)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?h:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var c=m(a,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,p;var o=c.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}throw new TypeError(b(t)+" is not iterable")}return y.prototype=N,a(k,"constructor",{value:N,configurable:!0}),a(N,"constructor",{value:y,configurable:!0}),y.displayName=s(N,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,s(e,i,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var o=new j(u(e,n,r,a),c);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),s(k,i,"Generator"),s(k,o,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var c=this.tryEntries.length-1;c>=0;--c){var o=this.tryEntries[c],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var c=a;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var o=c?c.completion:{};return o.type=e,o.arg=t,c?(this.method="next",this.next=c.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;I(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,c,o,l=[],i=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=c.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(e,t,n,r){return new(n||(n=Promise))((function(a,c){function o(e){try{i(r.next(e))}catch(e){c(e)}}function l(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}i((r=r.apply(e,t||[])).next())}))},L="onboarding.schoolLevel";function k(){var e=(0,g.Q)(),t=e.onClickBack,n=e.exitOnboarding,b=e.completeStepAsync,x=e.onSaveError,k=(0,m.y)(),S=k.availablePresentations,j=k.preferredPresentation,P=k.setPresentation,C=N((0,c.D)(s.g.AUDIENCE_FILTER,void 0,{storage:a.Z1.SessionStorage}),2)[1],O=N(r.useState(j),2),I=O[0],_=O[1];return r.createElement(v.z,{namespace:L},r.createElement(v.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(h.N,{contentPosition:"right",annotationUrl:u.W.OnboardingV2.SchoolLevel.ANNOTATION,annotationPosition:"bottom-left"},r.createElement(p.Y,{presentation:I}))),r.createElement(v.z.Right,{hasCustomButtons:!1,onClickNext:function(){return w(this,void 0,void 0,E().mark((function e(){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(null),e.prev=1,e.next=4,Promise.all([P(I,"activeAndPreferred"),b()]);case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),x(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickBack:t,onClickComeBackLater:n,disableNext:!I},r.createElement(d.W,null,r.createElement(l.x,{phrase:"heading"})),r.createElement(f.X,null,r.createElement(l.x,{phrase:"dontWorry"})),r.createElement("ul",{className:"list-unstyled mb-3 ".concat(y.presentationList)},S.map((function(e){var t;return r.createElement("li",{key:e.id,className:"mb-2"},r.createElement(o.L,{onClick:function(){return function(e){_(e)}(e)}},r.createElement(i.M,{data:e,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url,className:e.id===(null==I?void 0:I.id)?"border border-dark rounded-3 border-2 overflow-hidden":"",imageClassName:y.cover})))})))))}},92038:(e,t,n)=>{n.d(t,{Z:()=>r});const r={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8296-61fbedf389-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8296],{74887:(e,t,r)=>{r.d(t,{f:()=>i});var n=r(32735),o=r(11607);const a={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function i(e){return n.createElement("ul",{className:"list-unstyled mb-3"},e.options.map((function(t){return n.createElement("li",{key:t.id,className:"mb-2 ".concat(a.option," rounded-3 ").concat(e.selection===t.id?"border border-dark border-2 bg-light-blue":"")},n.createElement(o.L,{onClick:function(){return e.setSelection(t.id)},className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(t.colourClass," ").concat(a.icon)},n.createElement("img",{src:t.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},t.title),n.createElement("p",{className:"mb-0 ".concat(a.description)},t.description))))})))}},12058:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(32735);function o(e){return n.createElement("p",{className:e.className},e.children)}},75919:(e,t,r)=>{r.d(t,{N:()=>a});var n=r(32735);const o={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",height:"kRhKC"};function a(e){return n.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(o.height),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},n.createElement("div",{className:function(){var t=o.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(o.above," ").concat(o.left);break;case"top-right":t+=" ".concat(o.above," ").concat(o.right);break;case"bottom-left":t+=" ".concat(o.below," ").concat(o.left);break;case"bottom-right":t+=" ".concat(o.below," ").concat(o.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},n.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&n.createElement("div",{className:o.divider}));var t}a.defaultProps={contentPosition:"center"}},45038:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(32735),o=r(57245);const a={playerContainer:"w7_Oy",fallback:"xcBuH"};function i(e){return n.createElement("div",{className:"".concat(a.playerContainer," w-100")},e.hasDataLoaded?n.createElement(o._,{config:e.config,video:e.video,currentUser:e.currentUser,shareLink:e.shareLink,viewKey:e.viewKey,onReady:e.onReady,allowPip:!1,allowCreateClip:!1}):n.createElement("div",{className:"".concat(a.fallback," w-100 h-100 bg-light rounded-3 overflow-hidden")}))}},98065:(e,t,r)=>{r.d(t,{x:()=>n});var n={getWelcomeVideo:function(e){return e?e.primaryUrl.includes("staging")?{videoId:"43000110",shareId:"GgX4xD"}:{videoId:"49331262",shareId:"0DYKrb"}:null},getAdvisorVideo:function(e){return e?e.primaryUrl.includes("staging")?{videoId:"43002959",shareId:"b98KVj"}:{videoId:"49331262",shareId:"0DYKrb"}:null}}},92560:(e,t,r)=>{r.r(t),r.d(t,{OnboardingAdvisorVideoView:()=>P});var n=r(32735),o=r(23481),a=r(20354),i=r(50122),c=r(30439),l=r(83345),s=r(19808),u=r(60051),h=r(39151),d=r(47812),f=r(31949),m=r(1575),p=r(79967),v=r(99742),y=r(75359),g=r(74887),b=r(12058),w=r(27583),E=r(75919),x=r(45038),k=r(73190),N=r(98065);const L={headingContainer:"NrAKd",usa:"EC1r8",partners:"uXTN6",infoContainer:"U79xU"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function C(){C=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:_(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",m="executing",p="completed",v={};function y(){}function g(){}function b(){}var w={};s(w,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(P([])));x&&x!==r&&n.call(x,i)&&(w=x);var k=b.prototype=y.prototype=Object.create(w);function N(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,a,i,c){var l=h(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==O(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function _(t,r,n){var o=d;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=h(t,r,n);if("normal"===s.type){if(o=n.done?p:f,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(O(t)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},N(L.prototype),s(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new L(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(k),s(k,l,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))},A="onboarding.advisorVideo",j=o.T.encloseNamespace(A),I=[{id:"book-demo",imageUrl:v.W.OnboardingV2.AdvisorVideo.BOOK_DEMO_ICON,colourClass:"bg-yellow",title:j("bookDemoTitle"),description:j("bookDemoDescription")},{id:"check-out-clickview",imageUrl:v.W.OnboardingV2.AdvisorVideo.CHECK_OUT_CLICKVIEW_ICON,colourClass:"bg-purple",title:j("checkOutClickViewTitle"),description:j("checkOutClickViewDescription")}];function P(){var e,t,r=(0,k.Q)(),o=r.completeStepAsync,O=r.onSaveError,j=r.onClickBack,P=r.onClickAreYouATeacher,V=a.a.useBasicFetch(h.L.config()),T=a.a.useBasicFetch(f.N.currentUser()),U=N.x.getAdvisorVideo(V.data),K=a.a.useBasicFetch(U&&m.R.sharedVideo(U.videoId,U.shareId)),B=a.a.useBasicFetch(c.o.getShareObject(U.shareId)),D=a.a.useBasicFetch(d.k.createViewKey(U.shareId,u.f.Share)),F=(e=n.useState(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.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)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),G=F[0],R=F[1],W=(0,p.k)(),Y=K.data&&T.hasCompleted&&V.hasCompleted&&B.hasCompleted&&D.hasCompleted,z=W.lg||W.xl||W.xxl,H=T.data.instanceRegion===s.b.US;return n.createElement(w.z,{namespace:A},n.createElement(w.z.Left,{className:"bg-blue d-flex justify-content-center flex-column"},z&&n.createElement(E.N,{annotationUrl:v.W.OnboardingV2.AdvisorVideo.ANNOTATION,annotationPosition:"bottom-right"},n.createElement(x.P,{hasDataLoaded:Y,config:V.data,video:K.data,currentUser:T.data,shareLink:B.data,viewKey:D.data}))),n.createElement(w.z.Right,{hasCustomButtons:!1,onClickNext:function(){return S(this,void 0,void 0,C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.m.setAdvisorVideoSelection(G),e.prev=1,e.next=4,o({isExiting:"check-out-clickview"===G});case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),O(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickAreYouATeacher:P,onClickBack:j,disableNext:!G,className:"position-relative"},n.createElement(y.W,{className:"".concat(L.headingContainer," ").concat(H?L.usa:"")},n.createElement(l.x,{phrase:"heading"})),!z&&n.createElement(x.P,{hasDataLoaded:Y,config:V.data,video:K.data,currentUser:T.data,shareLink:B.data,viewKey:D.data}),n.createElement(b.X,{className:L.infoContainer},n.createElement(l.x,{phrase:"description"})),n.createElement(g.f,{options:I,selection:G,setSelection:R}),H&&n.createElement("div",{className:L.partners},n.createElement("h2",{className:"h6 text-center"},n.createElement(l.x,{phrase:"lovedByEducators"})),n.createElement("div",{className:"w-100"},n.createElement("img",{className:"img-fluid",src:v.W.OnboardingV2.AdvisorVideo.PARTNER_LOGOS})))))}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 993-e32d521f7a-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[993],{2158:(t,e,r)=>{r.d(e,{T:()=>s});var n=r(20354),o=r(50122),a=r(25925),i=r(21750),c=r(31949),u=r(37802),l=r(75795);function s(t){var e=n.a.useBasicFetch(c.N.currentUser()),r=n.a.useBasicFetch(e.data.isAuthenticated&&c.N.user(e.data.id)),s=n.a.useBasicFetch(i.x.availablePresentations(a.R.Subject)),f=n.a.useBasicFetch(i.x.presentation(a.R.Subject)),h=n.a.useBasicFetch(i.x.availablePresentations(a.R.Curriculum)),p=e.hasCompleted&&r.hasCompleted&&s.hasCompleted&&h.hasCompleted&&f.hasCompleted,d=(0,u.r)(null).userSettings;return{getPathway:function(e){var n,a,i;return o.m.getOnboardingPathway({jobTitle:e||(null===(i=null===(a=null===(n=r.data)||void 0===n?void 0:n.userProfile)||void 0===a?void 0:a.metadata)||void 0===i?void 0:i.jobTitle),userSettings:d.data,presentations:s.data,curriculums:h.data,preferredPresentation:f.data,appLink:l.O.getCurrentRoute().appLink,appLinks:t})},hasLoadedPathway:p}}},75359:(t,e,r)=>{r.d(e,{W:()=>a});var n=r(32735);const o={heading:"Y1xND"};function a(t){return n.createElement("h1",{className:"".concat(o.heading," ").concat(t.className)},t.children)}},27583:(t,e,r)=>{r.d(e,{z:()=>v});var n=r(32735),o=r(64534),a=r(2158),i=r(50122),c=r(2102),u=r(2786),l=r(83345),s=r(67963);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var E={};l(E,i,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(A([])));O&&O!==r&&n.call(O,i)&&(E=O);var N=x.prototype=b.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=p(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==f(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=d;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(f(e)+" is not iterable")}return w.prototype=x,o(N,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(N),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(N),l(N,u,"Generator"),l(N,i,(function(){return this})),l(N,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var d="onboarding.onboardingLayout";function v(t){return(0,a.T)((0,s.u)()).hasLoadedPathway?n.createElement(l.D.Provider,{value:t.namespace},n.createElement("div",{className:"d-flex"},t.children)):n.createElement(n.Fragment,null)}v.Left=function(t){return n.createElement("div",{className:"".concat("umlwF"," ").concat(t.className?t.className:"")},t.children)},v.Right=function(t){var e,r,f=(e=n.useState(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=f[0],y=f[1],m=(0,s.u)(),g=(0,(0,a.T)(m).getPathway)(),b=i.m.getProgress(g),w=b.totalScreensInProgressBar,x=b.currentStepProgressBarNumber,E=b.progressBarPercentage,L=o.H[g.currentScreen];return n.createElement("div",{className:"".concat("JjoUT"," ").concat(t.className?t.className:"")},n.createElement("div",{className:"position-relative"},n.createElement("div",{className:"".concat("eyQ3y"," position-absolute")},n.createElement(u.$S,null)),!!L.includeInProgressBar&&n.createElement("div",{className:"".concat("sVF6v"," position-absolute rounded-pill bg-light-blue d-flex align-items-center")},n.createElement("div",{className:"yMTpw"},x," / ",w),n.createElement("div",{className:"flex-grow-1 h-50"},n.createElement("div",{className:"h-100 rounded-pill bg-green",style:{width:"".concat(E,"%")}})))),n.createElement("div",{className:"".concat("xKAjJ"," d-flex flex-column justify-content-center h-100")},t.children),!1===t.hasCustomButtons&&n.createElement("div",{className:"position-fixed bg-white d-flex justify-content-between align-items-center ".concat("H5x66")},t.onClickComeBackLater&&n.createElement("button",{className:"btn btn-link btn-lg text-info",onClick:t.onClickComeBackLater},n.createElement(l.x,{namespace:d,phrase:"comeBackLater"})),t.onClickAreYouATeacher&&n.createElement("button",{className:"btn btn-link btn-lg text-info text-start",onClick:t.onClickAreYouATeacher},n.createElement(l.x,{namespace:d,phrase:"areYouATeacher"})),n.createElement("div",{className:"d-flex"},n.createElement("button",{className:"btn btn-outline-dark btn-lg me-2",onClick:t.onClickBack},n.createElement(l.x,{namespace:d,phrase:"back"})),n.createElement(c.m,{className:"".concat(t.disableNext?"disabled":""),onClick:function(){return e=this,r=void 0,n=void 0,o=h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!0!==t.hasCustomButtons){e.next=2;break}return e.abrupt("return");case 2:return y(!0),e.prev=3,e.next=6,t.onClickNext();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),y(!1);case 11:case"end":return e.stop()}}),e,null,[[3,8]])})),new(n||(n=Promise))((function(t,a){function i(t){try{u(o.next(t))}catch(t){a(t)}}function c(t){try{u(o.throw(t))}catch(t){a(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}u((o=o.apply(e,r||[])).next())}));var e,r,n,o},disabled:t.disableNext,showSpinner:v,variant:"dark",size:"lg"},t.nextText?t.nextText:n.createElement(l.x,{namespace:d,phrase:"next"})))))}},73190:(t,e,r)=>{r.d(e,{Q:()=>x});var n=r(81886),o=r(23481),a=r(20354),i=r(64534),c=r(2158),u=r(50122),l=r(77963),s=r(65728),f=r(31949),h=r(69883),p=r(37802),d=r(14070),v=r(97291),y=r(67963);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function b(){}function w(){}function x(){}var E={};l(E,i,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(A([])));O&&O!==r&&n.call(O,i)&&(E=O);var N=x.prototype=b.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==m(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=h;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(m(e)+" is not iterable")}return w.prototype=x,o(N,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(N),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(N),l(N,u,"Generator"),l(N,i,(function(){return this})),l(N,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var b=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{u(n.next(t))}catch(t){a(t)}}function c(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}u((n=n.apply(t,e||[])).next())}))},w="onboarding.hooks";function x(){var t=(0,y.u)(),e=(0,c.T)(t).getPathway,r=a.a.useBasicFetch(f.N.currentUser()),m=a.a.useBasicFetch(f.N.user(r.data.id)),x=e(),E=i.H[x.currentScreen],L=(0,h.Z)(),O=(0,p.r)(E.analyticsLocation).updateSettingAsync;function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{hasLoader:!1};O(r.data.id,{name:s.E.HasExitedOnboarding,value:!0,kind:l.g.Permanent}).then((function(){t.hasLoader?n.Q.C$.trigger({application:v.O.ONBOARDING,action:d.e.Onboarding.COMPLETED_LOADER}):n.Q.C$.trigger({application:v.O.DASHBOARD,action:d.e.Dashboard.HOME})}))}function k(){O(r.data.id,{name:s.E.HasCompletedOnboardingV2,value:!0,kind:l.g.Permanent}).then((function(){n.Q.C$.trigger({application:v.O.ONBOARDING,action:d.e.Onboarding.COMPLETED_LOADER})}))}return{onClickBack:function(){var e=u.m.getPreviousAppLink(x,t);n.Q.C$.trigger(e)},exitOnboarding:N,onSaveError:function(){L.error(o.T.getPhrase(w,"saveError"))},completeStepAsync:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isExiting:!1};return b(this,void 0,void 0,g().mark((function a(){var i,c;return g().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,O(r.data.id,{name:E.setting,value:!0,kind:l.g.Permanent});case 2:if(!o.isExiting){a.next=5;break}return N({hasLoader:!0}),a.abrupt("return");case 5:if(i=e(o.jobTitleOverride),i.screens[i.currentScreen].next){a.next=11;break}return k(),a.abrupt("return");case 11:c=u.m.getNextAppLink(i,t),n.Q.C$.trigger(c);case 13:case"end":return a.stop()}}),a)})))},completeOnboarding:k,onClickAreYouATeacher:function(){var t,e,r;if("admin"!==u.m.getPersonaFromJobTitle(null===(r=null===(e=null===(t=m.data)||void 0===t?void 0:t.userProfile)||void 0===e?void 0:e.metadata)||void 0===r?void 0:r.jobTitle))return"evaluating-for-school-or-district"===u.m.getUsageIntention()?(u.m.removeUsageIntention(),void n.Q.C$.trigger({application:v.O.ONBOARDING,action:d.e.Onboarding.USAGE_INTENTION})):void n.Q.C$.trigger({application:v.O.ONBOARDING,action:d.e.Onboarding.SELECT_ROLE});n.Q.C$.trigger({application:v.O.ONBOARDING,action:d.e.Onboarding.SELECT_ROLE})}}}}}]);
|