@clickview/lite 0.41.1-rc.2 → 0.41.1-rc.3
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/{6489-lite-bab22c35d3.chunk.css → 6489-lite-12d339be54.chunk.css} +1 -1
- package/dist/css/{6617-lite-467f605f74.chunk.css → 6617-lite-f649a736b2.chunk.css} +2 -2
- package/dist/css/{9173-lite-b6115064f0.chunk.css → 9173-lite-b361d438f6.chunk.css} +1 -1
- package/dist/css/{lite-app-03feae8437.css → lite-app-b408ef9dec.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/3095-80e1f51160-lite.chunk.js +2 -0
- package/dist/scripts/{3867-5134bdab8c-lite.chunk.js → 3867-035d82765d-lite.chunk.js} +2 -2
- package/dist/scripts/537-043bbaa802-lite.chunk.js +2 -0
- package/dist/scripts/{6102-2959f323fb-lite.chunk.js → 6102-fddf34d5c5-lite.chunk.js} +2 -2
- package/dist/scripts/{6489-c7502eb99e-lite.chunk.js → 6489-4c4a1ec73f-lite.chunk.js} +1 -1
- package/dist/scripts/6617-2636f52eb6-lite.chunk.js +2 -0
- package/dist/scripts/{7670-648e6e8945-lite.chunk.js → 7670-07bdb592d6-lite.chunk.js} +2 -2
- package/dist/scripts/9173-a164d38e0e-lite.chunk.js +2 -0
- package/dist/scripts/9918-a3f3629e1a-lite.chunk.js +2 -0
- package/dist/scripts/bundle-907119580e.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/3095-719e391940-lite.chunk.js +0 -2
- package/dist/scripts/537-9c745fb245-lite.chunk.js +0 -2
- package/dist/scripts/6617-9c4a14d7ec-lite.chunk.js +0 -2
- package/dist/scripts/9173-05803bdaca-lite.chunk.js +0 -2
- package/dist/scripts/9918-6eae7cefdf-lite.chunk.js +0 -2
- package/dist/scripts/bundle-5771c11f65.min.js +0 -2
- /package/dist/scripts/{3095-719e391940-lite.chunk.js.LICENSE.txt → 3095-80e1f51160-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3867-5134bdab8c-lite.chunk.js.LICENSE.txt → 3867-035d82765d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{537-9c745fb245-lite.chunk.js.LICENSE.txt → 537-043bbaa802-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6102-2959f323fb-lite.chunk.js.LICENSE.txt → 6102-fddf34d5c5-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6489-c7502eb99e-lite.chunk.js.LICENSE.txt → 6489-4c4a1ec73f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6617-9c4a14d7ec-lite.chunk.js.LICENSE.txt → 6617-2636f52eb6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7670-648e6e8945-lite.chunk.js.LICENSE.txt → 7670-07bdb592d6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9173-05803bdaca-lite.chunk.js.LICENSE.txt → 9173-a164d38e0e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9918-6eae7cefdf-lite.chunk.js.LICENSE.txt → 9918-a3f3629e1a-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-5771c11f65.min.js.LICENSE.txt → bundle-907119580e.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 6489-
|
|
1
|
+
/*! For license information please see 6489-4c4a1ec73f-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6489],{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),u=n(83345),s=n(54610),m=n(67453),d=n(35223),f=n(92038),h=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(u.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},v=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-3 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:t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?s.h2.Medium:s.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&&!e.hideCheckmark&&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(h,Object.assign({},n)):r.createElement(v,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",imageContainer:"QZZMF"};function c(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},!!e.annotationUrl&&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"}},39375:(e,t,n)=>{n.d(t,{Y:()=>s});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 u(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(l.promotedTopicPlaceholder)}))}function s(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(u,null),r.createElement(u,null),r.createElement(u,null),r.createElement(u,null),r.createElement(u,null),r.createElement(u,null),r.createElement(u,null),r.createElement(u,null),r.createElement(u,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>v});var r=n(32735),a=n(60376),c=n(83914),o=n(2786),l=n(83345),i=n(72639),u=n(79967),s=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,u.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:s.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")},v.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:s.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 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:s.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)))}},90987:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSelectCurriculumView:()=>C});var r=n(32735),a=n(20354),c=n(74254),o=n(11607),l=n(83345),i=n(2192),u=n(19808),s=n(31949),m=n(99742),d=n(82817),f=n(86698),h=n(75359),v=n(12058),p=n(40695),g=n(75919),y=n(39375),b=n(73190),E=n(90815);const x={annotation:"JX1ui"};function N(e){return N="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},N(e)}function w(){w=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 u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(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:j(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=s;var d="suspendedStart",f="suspendedYield",h="executing",v="completed",p={};function g(){}function y(){}function b(){}var E={};u(E,o,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(T([])));L&&L!==n&&r.call(L,o)&&(E=L);var k=b.prototype=g.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,c,o,l){var i=m(e[a],e,c);if("throw"!==i.type){var u=i.arg,s=u.value;return s&&"object"==N(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(s).then((function(e){u.value=e,o(u)}),(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 j(t,n,r){var a=d;return function(c,o){if(a===h)throw new Error("Generator is already running");if(a===v){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=P(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=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=h;var u=m(t,n,r);if("normal"===u.type){if(a=r.done?v:f,u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a=v,r.method="throw",r.arg=u.arg)}}}function P(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,P(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(N(t)+" is not iterable")}return y.prototype=b,a(k,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,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,b):(e.__proto__=b,u(e,i,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(C.prototype),u(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var o=new C(s(e,n,r,a),c);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),u(k,i,"Generator"),u(k,o,(function(){return this})),u(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"),u=r.call(o,"finallyLoc");if(i&&u){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(!u)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 L(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 k=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())}))},S="onboarding.selectCurriculum";function C(e){var t,n,N,C=(0,b.Q)(e.redirectUrl),j=C.onClickBack,P=C.exitOnboarding,O=C.completeStepAsync,I=C.onSaveError,_=(0,E.H)().logEvent,T=(0,f.y)().preferredPresentation,U=(0,d.M)(),A=U.hasLoaded,Z=U.activeCurriculum,F=U.availableCurriculums,z=U.updateCurriculum,G=a.a.useBasicFetch(s.N.currentUser()),V=(n=r.useState(Z),N=2,function(e){if(Array.isArray(e))return e}(n)||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,u=!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){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(n,N)||function(e,t){if(e){if("string"==typeof e)return L(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)?L(e,t):void 0}}(n,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.")}()),B=V[0],M=V[1];return r.useEffect((function(){A&&(null==Z?void 0:Z.id)&&M(Z)}),[A]),r.createElement(p.z,{namespace:S},r.createElement(p.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(g.N,{contentPosition:"right",annotationClassName:x.annotation,annotationUrl:(null===(t=G.data)||void 0===t?void 0:t.instanceRegion)===u.b.US?m.W.OnboardingV2.SelectCurriculum.ANNOTATION_US:m.W.OnboardingV2.SelectCurriculum.ANNOTATION,annotationPosition:"top-left"},r.createElement(y.Y,{presentation:T,curriculum:B,editingCurriculum:!0}))),r.createElement(p.z.Right,{hasCustomButtons:!1,onClickNext:function(){return k(this,void 0,void 0,w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(c.Vw.Click,c.Ix.Next,{curriculumId:B.id,curriculumName:B.name}),e.prev=1,e.next=4,Promise.all([z(B),O()]);case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),I(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickBack:j,onClickComeBackLater:P,disableNext:!B},r.createElement(h.W,null,r.createElement(l.x,{phrase:"heading"})),r.createElement(v.X,null,r.createElement(l.x,{phrase:"info"})),r.createElement("ul",{className:"list-unstyled mb-2 row g-2"},null==F?void 0:F.map((function(e){var t;return r.createElement("li",{key:e.id,className:"col-12 col-xl-12 col-lg-12 col-md-6 col-sm-6"},r.createElement(o.L,{onClick:function(){return function(e){_(c.Vw.Select,c.Ix.SelectCurriculum,{curriculumId:e.id,curriculumName:e.name}),M(e)}(e)}},r.createElement(i.M,{data:e,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url,imageClassName:"border-end",isSelected:e.id===(null==B?void 0:B.id),hideCheckmark:!0,multiline:!0,hideFallback:!0})))}))),r.createElement(v.X,null,r.createElement(l.x,{phrase:"dontWorry"}))))}},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"}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 6617-2636f52eb6-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6617],{36669:(e,t,r)=>{r.d(t,{t:()=>n});var n={currentProspect:function(){return{url:"/api/prospects/current",key:"prospect:current"}},getLookups:function(e){return{url:"/api/prospects/".concat(e,"/lookups"),key:"prospect:".concat(e)}}}},44842:(e,t,r)=>{r.d(t,{h:()=>f});var n=r(97395),o=r(12238),a=r(19808);function i(e){return i="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},i(e)}function l(e,t){return 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,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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 c(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}function u(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=/\$+[\w\s]?/,d=u(u(u(u({},a.b.AU,"02 9509 2600"),a.b.UK,"+44 (0)333 207 6595"),a.b.NZ,"09 916 1156"),a.b.US,null),f={getSalesforceId:function(e){if(e&&e.length){var t=e.find((function(e){return e.type===o.C.SalesforceId}));if(t)return t.externalId}},buildQueryData:function(e,t){var r={id:e,fname:null==t?void 0:t.givenName,sname:null==t?void 0:t.familyName,email:null==t?void 0:t.email};return Object.entries(r).filter((function(e){return!!l(e,2)[1]})).reduce((function(e,t){var r=l(t,2),n=r[0],o=r[1];return Object.assign(Object.assign({},e),u({},n,o))}),{})},getBookDemoUrl:function(e,t,r){var o=f.getSalesforceId(r),a=n._.safeUrlConcat(e,"/book-a-demo/");return n._.urlBuilder(a,f.buildQueryData(o,t))},getUpgradePageUrl:function(e,t,r){var o=f.getSalesforceId(r),a=n._.safeUrlConcat(e,"/contact-us/trial-upgrade/");return n._.urlBuilder(a,f.buildQueryData(o,t))},getContactNumber:function(e){return d[e]},validateJobTitle:function(e){return s.test(e)?{isValid:!1,errorMessage:"Please enter a valid job title."}:e.length>255?{isValid:!1,errorMessage:"Job title cannot exceed max length of 255 characters."}:{isValid:!0}}}},56617:(e,t,r)=>{r.r(t),r.d(t,{UpgradeView:()=>z});var n=r(32735),o=r(63093),a=r(23481),i=r(70624),l=r(20354),c=r(49985),u=r(65858),s=r(68293),d=r(76153),f=r(61404),m=r(50023),h=r(2786);const p={left:"cPQ38",right:"eq01J",logo:"P3dev",inverted:"B8NaM",normal:"sXO9_",close:"kM8S5"};function v(e){return n.createElement(f.Z,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:"md"===e.size?null:e.size,contentClassName:e.contentClassName,dialogClassName:e.dialogClassName,centered:e.centered,backdrop:e.backdrop},e.showLoadingSpinner?n.createElement(m.E,null):n.createElement(f.Z.Body,{className:e.bodyClassName},n.createElement("div",{className:"bg-".concat(e.backgroundColour," ").concat(p.left),style:{backgroundImage:"url(".concat(e.backgroundImage,")")}}),n.createElement("div",{className:"".concat(p.logo," ").concat(p.inverted)},n.createElement(h.Yo,null)),n.createElement("div",{className:"".concat(p.logo," ").concat(p.normal)},n.createElement(h.$S,null)),n.createElement("div",{className:"".concat(p.right," ").concat(e.rightPanelClassName)},n.createElement("button",{type:"button",className:"btn-close ".concat(p.close),"aria-label":"Close",onClick:e.closePopup}),e.children)))}var y=r(2102),b=r(83345),g=r(16714),E=r(1666),w=r(31949),S=r(69883),N=r(84703),x=r(22902),C=r(64818),k=r(99742),j=r(57322),P=r(99940),U={checkEmail:function(e){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(e),type:P.k.POST,data:{email:e}}}},A=r(36669),L=r(44842);const T={modal:"pYcyR",withJobTitle:"B7QsN",submittedImage:"I1q0f",formContainer:"KhXJt"};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 _(){_=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",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),l=new A(n||[]);return o(i,"_invoke",{value:k(e,r,l)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",m="suspendedYield",h="executing",p="completed",v={};function y(){}function b(){}function g(){}var E={};u(E,i,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(L([])));S&&S!==r&&n.call(S,i)&&(E=S);var N=g.prototype=y.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,a,i,l){var c=d(e[o],e,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==O(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,l)}))}l(c.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 k(t,r,n){var o=f;return function(a,i){if(o===h)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 l=n.delegate;if(l){var c=j(l,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?p:m,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=p,n.method="throw",n.arg=u.arg)}}}function j(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,j(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=d(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 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 U(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function L(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 b.prototype=g,o(N,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:b,configurable:!0}),b.displayName=u(g,c,"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,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(N),e},t.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new C(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(N),u(N,c,"Generator"),u(N,i,(function(){return this})),u(N,"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=L,A.prototype={constructor:A,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(U),!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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){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(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),U(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;U(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function I(e,t,r){var n;return n=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==O(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e,t){return 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,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D(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)?D(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 D(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 B=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function l(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((n=n.apply(e,t||[])).next())}))},G="product_trial_upgrade_requested",K=/^\+?\d{4,255}$/,M=250,q="signUp.upgrade",V=a.T.encloseNamespace(q);function z(e){var t,r,f,m,h=F(n.useState(""),2),p=h[0],P=h[1],O=F(n.useState(""),2),D=O[0],z=O[1],J=F(n.useState(""),2),R=J[0],Q=J[1],Y=F(n.useState(""),2),Z=Y[0],$=Y[1],W=F(n.useState(""),2),H=W[0],X=W[1],ee=F(n.useState(!1),2),te=ee[0],re=ee[1],ne=F(n.useState("form"),2),oe=ne[0],ae=ne[1],ie=l.a.useBasicFetch(w.N.currentUser()),le=l.a.useBasicFetch(ie.data&&w.N.user(ie.data.id)),ce=l.a.useBasicFetch(ie.data&&E.h.customer(ie.data.customerId)),ue=l.a.useBasicFetch(A.t.currentProspect()),se=l.a.useBasicFetch(ie.data&&U.checkEmail(ie.data.email)),de=(0,N.n)(),fe=(0,x.T)(),me=fe.hasPermissions,he=fe.isLoaded,pe=(0,S.Z)(),ve=(0,i.G)(he&&(null===(t=ie.data)||void 0===t?void 0:t.isAuthenticated)&&!me(g.C.StudentExperience)&&j.K.BrazeClient),ye=!!(null===(m=null===(f=null===(r=le.data)||void 0===r?void 0:r.userProfile)||void 0===f?void 0:f.metadata)||void 0===m?void 0:m.jobTitle);function be(){re(!1),pe.error(a.T.getPhrase(q,"saveError"))}return n.createElement(b.D.Provider,{value:q},n.createElement(v,{closePopup:e.closePopup,backgroundColour:"dark-blue",backgroundImage:de?k.W.SignUp.UPGRADE_TRIAL_KDM:k.W.SignUp.UPGRADE_TRIAL,size:"lg",showLoadingSpinner:!ie.hasCompleted||!le.hasCompleted,bodyClassName:"".concat(T.modal," ").concat(ye?"":T.withJobTitle),rightPanelClassName:"d-flex align-items-center justify-content-center",title:V("title")},"form"===oe&&n.createElement("div",{className:T.formContainer},n.createElement("h1",{className:"h4"},n.createElement(b.x,{phrase:de?"titleKdm":"title"})),n.createElement("p",null,n.createElement(b.x,{phrase:de?"infoKdm":"info"})),n.createElement("form",{onSubmit:function(e){var t,r,n,a,i,l,s,f,m,h,v,y,b,g,E,w,S,N,x;return B(this,void 0,void 0,_().mark((function k(){var j,P,U,A,L;return _().wrap((function(k){for(;;)switch(k.prev=k.next){case 0:e.preventDefault(),re(!0),k.prev=2,j=ye?null===(n=null===(r=null===(t=le.data)||void 0===t?void 0:t.userProfile)||void 0===r?void 0:r.metadata)||void 0===n?void 0:n.jobTitle:Z,P="Trial Upgrade Request",ve.setUserPhone(p),U=d.F.removeEmptyKeys(I(I(I(I({},o.DefaultUserAttributes.Email,null===(a=le.data)||void 0===a?void 0:a.email),o.DefaultUserAttributes.FirstName,null===(i=le.data)||void 0===i?void 0:i.name),o.DefaultUserAttributes.LastName,null===(l=le.data)||void 0===l?void 0:l.surname),o.DefaultUserAttributes.Phone,p)),A=d.F.removeEmptyKeys(I(I(I(I(I(I(I({},o.CustomUserAttributes.JobTitle,null===(m=null===(f=null===(s=le.data)||void 0===s?void 0:s.userProfile)||void 0===f?void 0:f.metadata)||void 0===m?void 0:m.jobTitle),o.CustomUserAttributes.AccountName,null===(h=ie.data)||void 0===h?void 0:h.customerName),o.CustomUserAttributes.CrmId,null===(v=ce.data)||void 0===v?void 0:v.crmId),o.CustomUserAttributes.OrgSubType,d.F.getSchoolType(null===(y=ue.data)||void 0===y?void 0:y.prospectType)),"account_address",{country_code:null===(b=ie.data)||void 0===b?void 0:b.countryCode,province:d.F.parseProvince((null===(g=ue.data)||void 0===g?void 0:g.province)||"")}),"topic",P),o.CustomUserAttributes.SyncToCrm,!(null===(w=null===(E=se.data)||void 0===E?void 0:E.users)||void 0===w?void 0:w.length))),L=d.F.removeEmptyKeys(I(I(I(I({},o.EventUserAttributes.AccountCity,null===(S=ue.data)||void 0===S?void 0:S.city),o.EventUserAttributes.AccountState,null===(N=ue.data)||void 0===N?void 0:N.province),o.EventUserAttributes.ContactUsComment,R),o.EventUserAttributes.EventTopic,P)),ve.bulkSetCustomUserAttributes(A),ve.logEvent({type:G,data:Object.assign(Object.assign(Object.assign({},U),A),L)}),c.k.logUserAction({id:null===(x=ie.data)||void 0===x?void 0:x.id,jobTitle:j,phoneNumber:p,otherInformation:R,isKDM:C.l.isKDM(j)},{actionType:u.Vw.Submit,entity:u.py.User,descriptor:u.HS.RequestUpgrade,location:u.LZ.TrialBanner,eventVersion:u.eq.V2}),ve.sendData((function(e){if(!e)throw be(),new Error("Failed to send trial upgrade request.");ae("success")})),k.next=19;break;case 15:throw k.prev=15,k.t0=k.catch(2),be(),new Error("Failed to send trial upgrade request.");case 19:case"end":return k.stop()}}),k,null,[[2,15]])})))}},n.createElement("div",{className:"mb-3"},n.createElement("label",{htmlFor:"phone-number"},n.createElement(b.x,{phrase:"phoneNumber"}),n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"phone-number",name:"phone-number",className:"form-control form-control-lg ".concat(!!D&&"is-invalid"),type:"tel",value:p,onChange:function(e){var t=e.target.value;P(t),(null==t?void 0:t.length)?K.test(t)?D&&z(""):z("Please enter a valid phone number."):z("Please enter your phone number.")},placeholder:V("phoneNumberPlaceholder")}),!!D&&n.createElement("div",{className:"invalid-feedback"},D)),!ye&&n.createElement("div",{className:"mb-3"},n.createElement("label",{htmlFor:"upgrade-banner-job-title"},n.createElement(b.x,{phrase:"roleLabel"}),n.createElement("span",{className:"text-danger"},"*")),n.createElement(s.B,{id:"upgrade-banner-job-title",onChange:function(e){$(e);var t=L.h.validateJobTitle(e),r=t.isValid,n=t.errorMessage;r?n&&X(""):X(n)},countryCode:ie.data.countryCode,placeholder:V("rolePlaceholder"),initialValue:Z,error:H})),n.createElement("label",{htmlFor:"other-information"},n.createElement(b.x,{phrase:"otherLabel"})),n.createElement("textarea",{id:"other-information",name:"other-information",className:"form-control form-control-lg",value:R,onChange:function(e){var t=e.target.value;t.length>M||Q(t)},placeholder:V("otherPlaceholder"),rows:3}),n.createElement("div",{className:"text-end mb-3"},n.createElement(b.x,{phrase:"charCount",options:{count:R.length,max:M}})),n.createElement(y.m,{type:"submit",disabled:!(ye||Z&&!H)||!(p&&!D),className:"d-block w-100",size:"lg",variant:"dark",showSpinner:te},n.createElement(b.x,{phrase:"requestTrial"})))),"success"===oe&&n.createElement("div",{className:"text-center ".concat(T.formContainer)},n.createElement("img",{src:k.W.SignUp.REQUEST_SUBMITTED,className:"".concat(T.submittedImage," pb-3"),alt:"",role:"presentation"}),n.createElement("h1",{className:"h4"},n.createElement(b.x,{phrase:"requestSubmitted"})),n.createElement("p",null,n.createElement(b.x,{phrase:"getBackToYou"})))))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 7670-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7670],{68293:(e,t,r)=>{r.d(t,{B:()=>f});var n=r(32735),o=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],a=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],i={au:o,nz:o,uk:["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:a};function c(e,t){return 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,u=!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){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(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 l(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 u="OTHER";function s(e,t){return t.includes(e)?e:e?u:""}function f(e){var t,r,o=e.error,l=e.onChange,f=(t=e.countryCode,r=null==t?void 0:t.toLowerCase(),i[r]||a),h=s(e.initialValue,f),d=c(n.useState(h),2),m=d[0],y=d[1],p=c(n.useState(h===u?e.initialValue:""),2),v=p[0],g=p[1];n.useEffect((function(){y(s(e.initialValue,f))}),[e.initialValue]);var b=m===u;return n.createElement(n.Fragment,null,n.createElement("div",{className:"mb-2"},n.createElement("select",{id:e.id,name:e.id,className:"form-select form-select-lg ".concat(m.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:m,placeholder:"Role",onChange:function(e){y(e.target.value),g(""),l(e.target.value===u?"":e.target.value)}},n.createElement("option",{value:"",disabled:!0,className:"text-muted"},e.placeholder?e.placeholder:n.createElement(n.Fragment,null,"What do you do?")),f.map((function(e,t){return n.createElement("option",{value:e,className:"text-dark",key:t},e)})),n.createElement("option",{value:u,className:"text-dark"},"Other")),!!o&&!b&&n.createElement("div",{className:"invalid-feedback"},o)),b&&n.createElement("div",{className:"mb-3"},n.createElement("input",{className:"form-control form-control-lg ".concat(!!o&&"is-invalid"),type:"text",value:v,placeholder:"What do you do?",autoFocus:!0,onChange:function(e){g(e.target.value),l(e.target.value)}}),!!o&&n.createElement("div",{className:"invalid-feedback"},o)))}},12238:(e,t,r)=>{var n;r.d(t,{C:()=>n}),function(e){e.MasterId="master_id",e.CrmId="crm_id",e.SalesforceId="salesforce_id"}(n||(n={}))},58329:(e,t,r)=>{r.r(t),r.d(t,{OnboardingSelectRoleView:()=>I});var n=r(32735),o=r(23481),a=r(20354),i=r(65858),c=r(38304),l=r(68293),u=r(60376),s=r(83914),f=r(83345),h=r(54610),d=r(31949),m=r(22902),y=r(67453),p=r(35223),v=r(99742),g=r(75359),b=r(12058),w=r(40695),S=r(73190),E=r(90815),x=r(44842);const L={customerLogo:"O0Fk5"};function j(e){return j="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},j(e)}function O(){O=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 u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:N(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var h="suspendedStart",d="suspendedYield",m="executing",y="completed",p={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(_([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(o,a,i,c){var l=f(e[o],e,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==j(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(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 N(t,r,n){var o=h;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===y){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=C(c,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?y:d,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function C(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,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=f(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(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 A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(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(j(t)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(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,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(T.prototype),u(T.prototype,c,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new T(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"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=_,A.prototype={constructor:A,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 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"),u=n.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(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,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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),p}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function T(e,t){return 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,u=!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){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(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)?N(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 N(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 C=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())}))},k="onboarding.selectRole";function I(e){var t,r,j,N=(0,S.Q)(e.redirectUrl),I=N.onClickBack,A=N.exitOnboarding,_=N.completeStepAsync,P=N.onSaveError,U=(0,E.H)().logEvent,B=a.a.useBasicFetch(d.N.currentUser()),V=a.a.useBasicFetch(B.data&&d.N.user(B.data.id)),D=a.a.useGetFetchAsync(),F=(0,m.T)().hasPermissions,G=T(n.useState(""),2),H=G[0],R=G[1],M=T(n.useState(""),2),z=M[0],J=M[1];return n.createElement(w.z,{namespace:k},n.createElement(w.z.Left,{className:"bg-dark-blue d-flex align-items-center"},n.createElement("div",{className:"px-5 pt-4"},n.createElement("img",{className:"img-fluid",src:v.W.OnboardingV2.SelectRole.BACKGROUND}))),n.createElement(w.z.Right,{hasCustomButtons:!1,onClickNext:function(){return C(this,void 0,void 0,O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(H){e.next=2;break}return e.abrupt("return");case 2:return U(i.Vw.Click,i.Ix.Next,{jobTitle:H},{jobTitleOverride:H}),e.prev=3,e.next=6,D(d.N.updateJobTitle(B.data.id,B.data.customerId,H));case 6:return e.next=8,_({jobTitleOverride:H});case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(3),P(),e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))},onClickBack:I,onClickComeBackLater:(null===(j=null===(r=null===(t=V.data)||void 0===t?void 0:t.userProfile)||void 0===r?void 0:r.metadata)||void 0===j?void 0:j.jobTitle)||!c.m.hasNonBdmTrial(F)?A:null,disableNext:!!z||!H},n.createElement("div",{className:"position-relative"},n.createElement("div",{className:"".concat(L.customerLogo," mx-auto mb-3")},n.createElement(u.f,{imageUrl:y.j.createUrl(B.data.customerLogo,{size:h.h2.Small}),svgName:p.vn.GraduationCap,variant:"green",svgSize:s.S.Large})),n.createElement(g.W,null,n.createElement(f.x,{phrase:"heading",options:{schoolName:B.data.customerName}}))),n.createElement(b.X,{className:"mb-3 mt-2"},n.createElement(f.x,{phrase:"info"})),n.createElement(l.B,{id:"onboarding-job-title",onChange:function(e){R(e),U(i.Vw.Select,i.Ix.SelectJobTitle,{jobTitle:H});var t=x.h.validateJobTitle(e),r=t.isValid,n=t.errorMessage;r?n&&J(""):J(n)},countryCode:B.data.countryCode,placeholder:o.T.getPhrase(k,"rolePlaceholder"),initialValue:H,error:z})))}},44842:(e,t,r)=>{r.d(t,{h:()=>h});var n=r(97395),o=r(12238),a=r(19808);function i(e){return i="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},i(e)}function c(e,t){return 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,u=!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){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(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 l(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}function u(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=/\$+[\w\s]?/,f=u(u(u(u({},a.b.AU,"02 9509 2600"),a.b.UK,"+44 (0)333 207 6595"),a.b.NZ,"09 916 1156"),a.b.US,null),h={getSalesforceId:function(e){if(e&&e.length){var t=e.find((function(e){return e.type===o.C.SalesforceId}));if(t)return t.externalId}},buildQueryData:function(e,t){var r={id:e,fname:null==t?void 0:t.givenName,sname:null==t?void 0:t.familyName,email:null==t?void 0:t.email};return Object.entries(r).filter((function(e){return!!c(e,2)[1]})).reduce((function(e,t){var r=c(t,2),n=r[0],o=r[1];return Object.assign(Object.assign({},e),u({},n,o))}),{})},getBookDemoUrl:function(e,t,r){var o=h.getSalesforceId(r),a=n._.safeUrlConcat(e,"/book-a-demo/");return n._.urlBuilder(a,h.buildQueryData(o,t))},getUpgradePageUrl:function(e,t,r){var o=h.getSalesforceId(r),a=n._.safeUrlConcat(e,"/contact-us/trial-upgrade/");return n._.urlBuilder(a,h.buildQueryData(o,t))},getContactNumber:function(e){return f[e]},validateJobTitle:function(e){return s.test(e)?{isValid:!1,errorMessage:"Please enter a valid job title."}:e.length>255?{isValid:!1,errorMessage:"Job title cannot exceed max length of 255 characters."}:{isValid:!0}}}}}]);
|
|
1
|
+
/*! For license information please see 7670-07bdb592d6-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7670],{68293:(e,t,r)=>{r.d(t,{B:()=>f});var n=r(32735),o=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],a=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],i={au:o,nz:o,uk:["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:a};function l(e,t){return 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,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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 c(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 u="OTHER";function s(e,t){return t.includes(e)?e:e?u:""}function f(e){var t,r,o=e.error,c=e.onChange,f=(t=e.countryCode,r=null==t?void 0:t.toLowerCase(),i[r]||a),d=s(e.initialValue,f),h=l(n.useState(d),2),m=h[0],y=h[1],p=l(n.useState(d===u?e.initialValue:""),2),v=p[0],g=p[1];n.useEffect((function(){y(s(e.initialValue,f))}),[e.initialValue]);var b=m===u;return n.createElement(n.Fragment,null,n.createElement("div",{className:"mb-2"},n.createElement("select",{id:e.id,name:e.id,className:"form-select form-select-lg ".concat(m.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:m,placeholder:"Role",onChange:function(e){y(e.target.value),g(""),c(e.target.value===u?"":e.target.value)}},n.createElement("option",{value:"",disabled:!0,className:"text-muted"},e.placeholder?e.placeholder:n.createElement(n.Fragment,null,"What do you do?")),f.map((function(e,t){return n.createElement("option",{value:e,className:"text-dark",key:t},e)})),n.createElement("option",{value:u,className:"text-dark"},"Other")),!!o&&!b&&n.createElement("div",{className:"invalid-feedback"},o)),b&&n.createElement("div",{className:"mb-3"},n.createElement("input",{className:"form-control form-control-lg ".concat(!!o&&"is-invalid"),type:"text",value:v,placeholder:"What do you do?",autoFocus:!0,onChange:function(e){g(e.target.value),c(e.target.value)}}),!!o&&n.createElement("div",{className:"invalid-feedback"},o)))}},12238:(e,t,r)=>{var n;r.d(t,{C:()=>n}),function(e){e.MasterId="master_id",e.CrmId="crm_id",e.SalesforceId="salesforce_id"}(n||(n={}))},58329:(e,t,r)=>{r.r(t),r.d(t,{OnboardingSelectRoleView:()=>I});var n=r(32735),o=r(23481),a=r(20354),i=r(65858),l=r(38304),c=r(68293),u=r(60376),s=r(83914),f=r(83345),d=r(54610),h=r(31949),m=r(22902),y=r(67453),p=r(35223),v=r(99742),g=r(75359),b=r(12058),w=r(40695),S=r(73190),E=r(90815),x=r(44842);const L={customerLogo:"O0Fk5"};function j(e){return j="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},j(e)}function O(){O=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",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new A(n||[]);return o(i,"_invoke",{value:N(e,r,l)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",h="suspendedYield",m="executing",y="completed",p={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(_([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(o,a,i,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==j(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,l)}))}l(c.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 N(t,r,n){var o=d;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var c=C(l,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?y:h,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function C(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,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=f(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;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,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(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 A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function _(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(j(t)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,c,"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,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(T.prototype),u(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new T(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(x),u(x,c,"Generator"),u(x,i,(function(){return this})),u(x,"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=_,A.prototype={constructor:A,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 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 l.type="throw",l.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],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){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(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,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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),p}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}function T(e,t){return 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,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(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)?N(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 N(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 C=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function l(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((n=n.apply(e,t||[])).next())}))},k="onboarding.selectRole";function I(e){var t,r=(0,S.Q)(e.redirectUrl),j=r.onClickBack,N=r.exitOnboarding,I=r.completeStepAsync,A=r.onSaveError,_=(0,E.H)().logEvent,P=a.a.useBasicFetch(h.N.currentUser()),U=a.a.useBasicFetch(P.data&&h.N.user(P.data.id)),B=a.a.useGetFetchAsync(),V=(0,m.T)().hasPermissions,D=T(n.useState(""),2),F=D[0],G=D[1],H=T(n.useState(""),2),R=H[0],M=H[1];return n.createElement(w.z,{namespace:k},n.createElement(w.z.Left,{className:"bg-dark-blue d-flex align-items-center"},n.createElement("div",{className:"px-5 pt-4"},n.createElement("img",{className:"img-fluid",src:v.W.OnboardingV2.SelectRole.BACKGROUND}))),n.createElement(w.z.Right,{hasCustomButtons:!1,onClickNext:function(){return C(this,void 0,void 0,O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F){e.next=2;break}return e.abrupt("return");case 2:return _(i.Vw.Click,i.Ix.Next,{jobTitle:F},{jobTitleOverride:F}),e.prev=3,e.next=6,B(h.N.updateJobTitle(P.data.id,P.data.customerId,F));case 6:return e.next=8,I({jobTitleOverride:F});case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(3),A(),e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))},onClickBack:j,onClickComeBackLater:function(){var e,t,r;return!!(null===(r=null===(t=null===(e=U.data)||void 0===e?void 0:e.userProfile)||void 0===t?void 0:t.metadata)||void 0===r?void 0:r.jobTitle)||!l.m.hasNonBdmTrial(V)}()?N:null,disableNext:!!R||!F},n.createElement("div",{className:"position-relative"},!!(null===(t=P.data)||void 0===t?void 0:t.customerLogo)&&n.createElement("div",{className:"".concat(L.customerLogo," mx-auto mb-3")},n.createElement(u.f,{imageUrl:y.j.createUrl(P.data.customerLogo,{size:d.h2.Small}),svgName:p.vn.GraduationCap,variant:"green",svgSize:s.S.ExtraLarge})),n.createElement(g.W,null,n.createElement(f.x,{phrase:"heading"}))),n.createElement(b.X,{className:"mb-3 mt-2"},n.createElement(f.x,{phrase:"info",options:{schoolName:P.data.customerName}})),n.createElement("label",null,n.createElement(f.x,{phrase:"roleLabel"})),n.createElement(c.B,{id:"onboarding-job-title",onChange:function(e){G(e),_(i.Vw.Select,i.Ix.SelectJobTitle,{jobTitle:F});var t=x.h.validateJobTitle(e),r=t.isValid,n=t.errorMessage;r?n&&M(""):M(n)},countryCode:P.data.countryCode,placeholder:o.T.getPhrase(k,"rolePlaceholder"),initialValue:F,error:R})))}},44842:(e,t,r)=>{r.d(t,{h:()=>d});var n=r(97395),o=r(12238),a=r(19808);function i(e){return i="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},i(e)}function l(e,t){return 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,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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 c(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}function u(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=/\$+[\w\s]?/,f=u(u(u(u({},a.b.AU,"02 9509 2600"),a.b.UK,"+44 (0)333 207 6595"),a.b.NZ,"09 916 1156"),a.b.US,null),d={getSalesforceId:function(e){if(e&&e.length){var t=e.find((function(e){return e.type===o.C.SalesforceId}));if(t)return t.externalId}},buildQueryData:function(e,t){var r={id:e,fname:null==t?void 0:t.givenName,sname:null==t?void 0:t.familyName,email:null==t?void 0:t.email};return Object.entries(r).filter((function(e){return!!l(e,2)[1]})).reduce((function(e,t){var r=l(t,2),n=r[0],o=r[1];return Object.assign(Object.assign({},e),u({},n,o))}),{})},getBookDemoUrl:function(e,t,r){var o=d.getSalesforceId(r),a=n._.safeUrlConcat(e,"/book-a-demo/");return n._.urlBuilder(a,d.buildQueryData(o,t))},getUpgradePageUrl:function(e,t,r){var o=d.getSalesforceId(r),a=n._.safeUrlConcat(e,"/contact-us/trial-upgrade/");return n._.urlBuilder(a,d.buildQueryData(o,t))},getContactNumber:function(e){return f[e]},validateJobTitle:function(e){return s.test(e)?{isValid:!1,errorMessage:"Please enter a valid job title."}:e.length>255?{isValid:!1,errorMessage:"Job title cannot exceed max length of 255 characters."}:{isValid:!0}}}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 9173-a164d38e0e-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9173],{75919:(t,e,n)=>{n.d(e,{N:()=>i});var r=n(32735);const o={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function i(t){return r.createElement("div",{className:(e="d-flex align-items-center text-center position-relative w-100 ".concat(o.imageContainer),"center"===t.contentPosition&&(e+=" px-5 justify-content-center"),"right"===t.contentPosition&&(e+=" me-n5 justify-content-end"),e)},!!t.annotationUrl&&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}i.defaultProps={contentPosition:"center"}},68276:(t,e,n)=>{n.r(e),n.d(e,{OnboardingUsageIntentionView:()=>_});var r=n(32735),o=n(23481),i=n(65858),a=n(38304),c=n(83345),l=n(84703),s=n(99742),u=n(75359),f=n(11607);const h={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function m(t){return r.createElement("ul",{className:"list-unstyled mb-0"},t.options.map((function(e){return r.createElement("li",{key:e.id,className:"".concat(h.option," mb-2 border border-2 rounded-3 ").concat(t.selection===e.id?"border-dark bg-light-blue":"border-transparent")},r.createElement(f.L,{onClick:function(){return t.setSelection(e.id)},className:"d-flex align-items-center p-2"},r.createElement("div",{className:"rounded border border-dark ".concat(e.colourClass," ").concat(h.icon)},r.createElement("img",{src:e.imageUrl,className:"img-fluid"})),r.createElement("div",null,r.createElement("h2",{className:"mb-1 h6"},e.title),r.createElement("p",{className:"mb-0 ".concat(h.description)},e.description))))})))}var d=n(12058),p=n(40695),g=n(75919),v=n(73190),y=n(90815);const b={notSureImage:"MuA8k",searchVideoImage:"d82DS",searchVideoAnnotation:"BxbBK",browseTopicsAnnotation:"hwc8g",notSureAnnotation:"PwDKP",evaluatingAnnotation:"VGkUH"};function E(t){return E="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},E(t)}function O(){O=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new L(r||[]);return o(a,"_invoke",{value:S(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",m="suspendedYield",d="executing",p="completed",g={};function v(){}function y(){}function b(){}var w={};s(w,a,(function(){return this}));var N=Object.getPrototypeOf,I=N&&N(N(T([])));I&&I!==n&&r.call(I,a)&&(w=I);var U=b.prototype=v.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==E(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,n,r){var o=h;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=A(c,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?p:m,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=p,r.method="throw",r.arg=s.arg)}}}function A(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,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}throw new TypeError(E(e)+" is not iterable")}return y.prototype=b,o(U,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(U),t},e.awrap=function(t){return{__await:t}},_(x.prototype),s(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(U),s(U,l,"Generator"),s(U,a,(function(){return this})),s(U,"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,L.prototype={constructor:L,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(k),!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 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 l=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},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;k(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),g}},e}function w(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 N=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function c(t){try{l(r.throw(t))}catch(t){i(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(a,c)}l((r=r.apply(t,e||[])).next())}))},I="onboarding.usageIntention",U=o.T.encloseNamespace(I);function _(t){var e,n,o=(0,v.Q)(t.redirectUrl),f=o.onClickBack,h=o.exitOnboarding,E=o.completeStepAsync,_=o.onSaveError,x=(0,y.H)().logEvent,S=a.m.getUsageIntention(),A=(e=r.useState(S),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,n)||function(t,e){if(t){if("string"==typeof t)return w(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)?w(t,e):void 0}}(e,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.")}()),C=A[0],k=A[1],L=(0,l.n)(),T=function(){var t=[{id:"search-video",imageUrl:s.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_ICON,colourClass:"bg-blue",title:U("searchVideoTitle"),description:U("searchVideoDescription")},{id:"browse-topics",imageUrl:s.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_ICON,colourClass:"bg-yellow",title:U("browseTopicsTitle"),description:U("browseTopicsDescription")}];return L&&t.push({id:"evaluating-for-school",imageUrl:s.W.OnboardingV2.UsageIntention.EVALUATING_ICON,colourClass:"bg-green",title:U("evaluatingTitle"),description:U("evaluatingDescription")}),t.push({id:"not-sure",imageUrl:s.W.OnboardingV2.UsageIntention.NOT_SURE_ICON,colourClass:"bg-indigo",title:U("notSureTitle"),description:U("notSureDescription")}),t}();return r.createElement(p.z,{namespace:I},r.createElement(p.z.Left,{className:"bg-dark-blue d-flex align-items-center"},("search-video"===C||!C)&&r.createElement(g.N,{annotationUrl:s.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_ANNOTATION,annotationPosition:"top-left",annotationClassName:"ps-5 ms-4 ".concat(b.searchVideoAnnotation)},r.createElement("img",{className:"img-fluid ".concat(b.searchVideoImage),src:s.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_BACKGROUND})),"browse-topics"===C&&r.createElement(g.N,{annotationUrl:s.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_ANNOTATION,annotationPosition:"bottom-left",annotationClassName:"ps-5 ms-4 ".concat(b.browseTopicsAnnotation)},r.createElement("img",{className:"img-fluid",src:s.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_BACKGROUND})),"evaluating-for-school"===C&&r.createElement(g.N,{annotationUrl:s.W.OnboardingV2.UsageIntention.EVALUATING_ANNOTATION,annotationPosition:"top-left",annotationClassName:"ps-5 ms-4 ".concat(b.evaluatingAnnotation)},r.createElement("img",{className:"img-fluid ".concat(b.notSureImage),src:s.W.OnboardingV2.UsageIntention.EVALUATING_BACKGROUND})),"not-sure"===C&&r.createElement(g.N,{annotationUrl:s.W.OnboardingV2.UsageIntention.NOT_SURE_ANNOTATION,annotationPosition:"top-left",annotationClassName:"ps-5 ms-4 ".concat(b.notSureAnnotation)},r.createElement("img",{className:"img-fluid ".concat(b.notSureImage),src:s.W.OnboardingV2.UsageIntention.NOT_SURE_BACKGROUND}))),r.createElement(p.z.Right,{hasCustomButtons:!1,onClickNext:function(){return N(this,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C){t.next=2;break}return t.abrupt("return");case 2:return a.m.updateUsageIntention(C),x(i.Vw.Click,i.Ix.Next,{usageIntention:C}),t.prev=4,t.next=7,E();case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(4),_(),t.abrupt("return",Promise.reject());case 13:case"end":return t.stop()}}),t,null,[[4,9]])})))},onClickBack:f,onClickComeBackLater:h,disableNext:!C},r.createElement(u.W,null,r.createElement(c.x,{phrase:"heading"})),r.createElement(d.X,null,r.createElement(c.x,{phrase:L?"infoKdm":"info"})),r.createElement(m,{options:T,selection:C,setSelection:function(t){var e;x(i.Vw.Select,i.Ix.SelectOption,{optionId:t,optionName:null===(e=T.find((function(e){return e.id===t})))||void 0===e?void 0:e.title}),k(t)}}),r.createElement(d.X,{className:"pb-4"},r.createElement(c.x,{phrase:"dontWorry"})),r.createElement("div",{className:"d-none"},r.createElement("img",{src:s.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_BACKGROUND}),r.createElement("img",{src:s.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_BACKGROUND}),r.createElement("img",{src:s.W.OnboardingV2.UsageIntention.EVALUATING_BACKGROUND}),r.createElement("img",{src:s.W.OnboardingV2.UsageIntention.NOT_SURE_BACKGROUND}))))}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 9918-a3f3629e1a-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9918],{2158:(t,e,r)=>{r.d(e,{T:()=>m});var n=r(32735),o=r(2948),a=r(20354),i=r(38304),c=r(25925),u=r(21750),l=r(5112),s=r(61699),f=r(31949),h=r(22902),p=r(37802),d=r(75795),v=r(33857);function y(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 m(t){var e,r,m,g=(r=(0,o.D)("has:playlist",null),m=2,function(t){if(Array.isArray(t))return t}(r)||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}}(r,m)||function(t,e){if(t){if("string"==typeof t)return y(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)?y(t,e):void 0}}(r,m)||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.")}()),b=g[0],w=g[1],x=a.a.useBasicFetch(f.N.currentUser()),E=a.a.useBasicFetch((null===(e=x.data)||void 0===e?void 0:e.isAuthenticated)&&f.N.user(x.data.id)),L=a.a.useBasicFetch(u.x.availablePresentations(c.R.Subject)),k=a.a.useBasicFetch(u.x.presentation(c.R.Subject)),O=a.a.useBasicFetch(u.x.availablePresentations(c.R.Curriculum)),S=a.a.useBasicFetch(l.C.getUserPlaylists(new v.l)),N=a.a.useBasicFetch(s.o.mySubjectPreferences()),P=(0,h.T)().hasPermissions;n.useEffect((function(){var t,e,r,n;S.hasCompleted&&b!==!!(null===(e=null===(t=S.data)||void 0===t?void 0:t.data)||void 0===e?void 0:e.length)&&w(!!(null===(n=null===(r=S.data)||void 0===r?void 0:r.data)||void 0===n?void 0:n.length))}),[S.hasCompleted]);var j=x.hasCompleted&&E.hasCompleted&&L.hasCompleted&&O.hasCompleted&&k.hasCompleted&&S.hasCompleted&&N.hasCompleted&&null!==b,C=(0,p.r)(null).userSettings;return{getPathway:function(){var e,r,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.jobTitleOverride||(null===(n=null===(r=null===(e=E.data)||void 0===e?void 0:e.userProfile)||void 0===r?void 0:r.metadata)||void 0===n?void 0:n.jobTitle),c=o.preferredPresentationOverride||k.data;return j?i.m.getOnboardingPathway({jobTitle:a,userSettings:C.data,presentations:L.data,curriculums:O.data,preferredSubjects:N.data,preferredPresentation:c,appLink:d.O.getCurrentRoute().appLink,appLinks:t,masterUser:E.data,hasPlaylist:b,hasPermissions:P,currentUser:x.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:j}}},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)}},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)}},40695:(t,e,r)=>{r.d(e,{z:()=>m});var n=r(32735),o=r(2158),a=r(2102),i=r(2786),c=r(83345),u=r(67963),l=r(38304);const s="AZBhg",f="fWxc8";function h(t){var e=n.useMemo((function(){return l.m.getProgress(t.pathway)}),[]),r=e.totalScreensInProgressBar,o=e.currentStepProgressBarNumber,a=e.progressBarPercentage;return e.showProgressBar?n.createElement("div",{className:"".concat(s," position-absolute rounded-pill bg-light-blue d-flex align-items-center")},n.createElement("div",{className:f},o," / ",r),n.createElement("div",{className:"flex-grow-1 h-50"},n.createElement("div",{className:"h-100 rounded-pill bg-green",style:{width:"".concat(a,"%")}}))):n.createElement(n.Fragment,null)}function p(t){return p="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},p(t)}function d(){d=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:P(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",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,k=L&&L(L(A([])));k&&k!==r&&n.call(k,i)&&(E=k);var O=x.prototype=b.prototype=Object.create(E);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function N(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"==p(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 P(e,r,n){var o=h;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=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===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(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 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 a=f(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(p(e)+" is not iterable")}return w.prototype=x,o(O,"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(O),t},e.awrap=function(t){return{__await:t}},S(N.prototype),l(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new N(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(O),l(O,u,"Generator"),l(O,i,(function(){return this})),l(O,"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 v(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 y="onboarding.onboardingLayout";function m(t){return(0,o.T)((0,u.u)()).hasLoadedPathway?n.createElement(c.D.Provider,{value:t.namespace},n.createElement("div",{className:"d-flex"},t.children)):n.createElement(n.Fragment,null)}m.Left=function(t){return n.createElement("div",{className:"".concat("umlwF"," ").concat(t.className?t.className:"")},t.children)},m.Right=function(t){var e,r,l=(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 v(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)?v(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.")}()),s=l[0],f=l[1],p=(0,u.u)(),m=(0,o.T)(p),g=m.getPathway,b=m.hasLoadedPathway,w=g();if(!b)return n.createElement(n.Fragment,null);var x=w.screens[w.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(i.$S,null)),n.createElement(h,{pathway:w})),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 align-items-center ".concat("H5x66")},t.onClickComeBackLater&&n.createElement("button",{className:"btn btn-link btn-lg text-info",onClick:t.onClickComeBackLater},n.createElement(c.x,{namespace:y,phrase:"comeBackLater"})),t.onClickAreYouATeacher&&n.createElement("button",{className:"btn btn-link btn-lg text-info text-start",onClick:t.onClickAreYouATeacher},n.createElement(c.x,{namespace:y,phrase:"areYouATeacher"})),n.createElement("div",{className:"d-flex ms-auto"},!!(null==x?void 0:x.previous)&&n.createElement("button",{className:"btn btn-outline-dark btn-lg me-2",onClick:t.onClickBack},n.createElement(c.x,{namespace:y,phrase:"back"})),n.createElement(a.m,{className:"".concat(t.disableNext?"disabled":""),onClick:function(){return e=this,r=void 0,n=void 0,o=d().mark((function e(){return d().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 f(!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),f(!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:s,variant:"dark",size:"lg"},t.nextText?t.nextText:n.createElement(c.x,{namespace:y,phrase:(null==x?void 0:x.next)?(null==x?void 0:x.next)===(null==x?void 0:x.previous)?"save":"next":"finish"})))))}},73190:(t,e,r)=>{r.d(e,{Q:()=>L});var n=r(81886),o=r(23481),a=r(20354),i=r(65858),c=r(45716),u=r(2158),l=r(38304),s=r(77963),f=r(65728),h=r(31949),p=r(69883),d=r(37802),v=r(14070),y=r(97291),m=r(90815),g=r(67963);function b(t){return b="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},b(t)}function w(){w=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 m?e:m,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:P(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 m(){}function g(){}function x(){}var E={};l(E,i,(function(){return this}));var L=Object.getPrototypeOf,k=L&&L(L(A([])));k&&k!==r&&n.call(k,i)&&(E=k);var O=x.prototype=m.prototype=Object.create(E);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function N(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"==b(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 P(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=j(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 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")),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(b(e)+" is not iterable")}return g.prototype=x,o(O,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:g,configurable:!0}),g.displayName=l(x,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,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},S(N.prototype),l(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new N(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(O),l(O,u,"Generator"),l(O,i,(function(){return this})),l(O,"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 x=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())}))},E="onboarding.hooks";function L(t){var e=(0,g.u)(t),r=(0,u.T)(e).getPathway,b=a.a.useBasicFetch(h.N.currentUser()),L=r(),k=c.H[L.currentScreen],O=(0,p.Z)(),S=(0,m.H)().logEvent,N=(0,d.r)(null==k?void 0:k.analyticsLocation).updateSettingAsync;function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{hasLoader:!1};S(i.Vw.Click,i.Ix.ComeBackLater),N(b.data.id,{name:f.E.HasExitedOnboarding,value:!0,kind:s.g.Permanent}).then((function(){e.hasLoader?n.Q.C$.trigger({application:y.O.ONBOARDING,action:v.e.Onboarding.COMPLETED_LOADER,params:{redirectUrl:t}}):(0,g.i)(t)}))}function j(){S(i.Vw.Complete,i.Ix.Complete),N(b.data.id,{name:f.E.HasCompletedOnboardingV2,value:!0,kind:s.g.Permanent}).then((function(){n.Q.C$.trigger({application:y.O.ONBOARDING,action:v.e.Onboarding.COMPLETED_LOADER,params:{redirectUrl:t}})}))}return{onClickBack:function(){S(i.Vw.Click,i.Ix.Back);var t=l.m.getPreviousAppLink(L,e);n.Q.C$.trigger(t)},exitOnboarding:P,onSaveError:function(){O.error(o.T.getPhrase(E,"saveError"))},completeStepAsync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isExiting:!1};return x(this,void 0,void 0,w().mark((function o(){var a,i,c;return w().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,N(b.data.id,{name:null==k?void 0:k.setting,value:!0,kind:s.g.Permanent});case 2:if(!t.isExiting){o.next=5;break}return P({hasLoader:!0}),o.abrupt("return");case 5:if(a=r(t),null==(i=a.screens[a.currentScreen])?void 0:i.next){o.next=11;break}return j(),o.abrupt("return");case 11:c=l.m.getNextAppLink(a,e),n.Q.C$.trigger(c);case 13:case"end":return o.stop()}}),o)})))},completeOnboarding:j}}},90815:(t,e,r)=>{r.d(e,{H:()=>p});var n=r(20354),o=r(49985),a=r(65858),i=r(45716),c=r(2158),u=r(38304),l=r(31949),s=r(84703),f=r(67963),h=r(36669);function p(){var t=(0,f.u)(),e=(0,c.T)(t).getPathway,r=n.a.useBasicFetch(l.N.currentUser()),p=n.a.useBasicFetch(l.N.user(r.data.id)),d=n.a.useBasicFetch(h.t.currentProspect()),v=(0,s.n)()?"kdm":"teacher";return{logEvent:function(t,r){var n,c,l,s,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=e(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),y=i.H[h.currentScreen],m=u.m.getProgress(h),g=h.screens[h.currentScreen],b=null==g?void 0:g.next,w=null==g?void 0:g.previous,x={jobTitle:null===(l=null===(c=null===(n=p.data)||void 0===n?void 0:n.userProfile)||void 0===c?void 0:c.metadata)||void 0===l?void 0:l.jobTitle,prospectId:null===(s=d.data)||void 0===s?void 0:s.id};o.k.logUserAction(Object.assign(Object.assign(Object.assign({currentScreen:null==y?void 0:y.id,nextScreen:b,previousScreen:w,progress:m,pathway:v},x),u.m.getOnboardingScreenStates(h)),f),{actionType:t,descriptor:r,location:null==y?void 0:y.analyticsLocation,entity:a.py.User})}}}},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)}}}}}]);
|