@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
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3095-719e391940-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3095],{49602:(e,t,n)=>{var r;n.d(t,{b:()=>i}),function(e){e[e.None=0]="None",e[e.AllSubjects=1]="AllSubjects",e[e.AllLevels=2]="AllLevels",e[e.AllSubjectsAndAllLevels=3]="AllSubjectsAndAllLevels"}(r||(r={}));var a=n(25925),i={hasManyPresentationTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0,n=0;return null==e||e.forEach((function(e){e.type===a.R.Subject?t++:e.type===a.R.Curriculum&&n++})),{hasManySubjectPresentations:t>1,hasManyCurriculumPresentations:n>1}},getBulkPreferencesState:function(e){return e===r.AllSubjectsAndAllLevels?{levels:!0,subjects:!0}:{levels:e===r.AllLevels,subjects:e===r.AllSubjects}},hasBulkSelectedLevels:function(e){return e===r.AllLevels||e===r.AllSubjectsAndAllLevels},hasBulkSelectedTopics:function(e){return e===r.AllSubjects||e===r.AllSubjectsAndAllLevels},getNextBulkState:function(e,t){var n=r.None,a=r.AllSubjects,i=r.AllLevels,o=r.AllSubjectsAndAllLevels,c="topics"===t;switch(e){case n:default:return c?a:i;case a:return c?n:o;case i:return c?o:n;case o:return c?i:a}}}},80143:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(32735),a=n(69454);function i(e,t){var n=r.useMemo((function(){return(null==e?void 0:e.length)&&t&&a.T.shouldShowAudiences(t)?a.T.getSortedPresentationAudiences(e,t):null}),[e]);return r.useMemo((function(){return(null==n?void 0:n.length)?a.T.getMergedPresentationAudienceString(n):null}),[n])}},69454:(e,t,n)=>{n.d(t,{T:()=>d});var r=n(75896),a=n(1048),i=n(55171);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=/\d/,l=function(e){var t,n,a=r.m.first(e),i=r.m.last(e);return a.name===i.name?a.name:"Advanced"===i.name?"lower"===(t=a.name.split(" "),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,a,o="";switch(+r.m.first(e).presentationId){case i.e.PresentationIds.DEFAULT:case i.e.PresentationIds.AU_SECONDARY:case i.e.PresentationIds.US_ELEMENTARY:case i.e.PresentationIds.AU_PRIMARY:case i.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],r=t.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!c.test(e.name)})),i=r.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(i+="s"),a&&n.length)return"".concat(i," ").concat(a.name.charAt(0)," - ").concat(n.pop());var o=function(e){var t,n,r,a,i=!1,o=[];for(e=e.sort((function(e,t){return e-t})),r=0;r<e.length;r++)a=r+1,i||(t=e[r]),n=e[a],e[r]+1===n?i=!0:i?(o.push("".concat(t," - ").concat(e[r])),i=!1):(o.push("".concat(e[r])),i=!1);return o}(n);return"".concat(i," ").concat(o.join(", "))}(e);break;case i.e.PresentationIds.SCOTLAND_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var r=e.split(" ");Object.keys(n).forEach((function(e){r.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var r=Object.keys(n)[0],a=n[r];if(!r)return e[0].name;var i=e[0].name,o=e[e.length-1].name,c=function(e){return e.split(r)[0]},l="".concat(c(i)," - ").concat(c(o));return"start"===a?"".concat(r," ").concat(l):"".concat(l," ").concat(r)}(e);break;case i.e.PresentationIds.ENGLISH_SECONDARY:o=l(e);break;case i.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=r.m.first(t),a=r.m.last(t),o=n.name===a.name?n.name:"Senior Phase"===a.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case i.e.PresentationIds.ENGLAND_PRIMARY:o=function(e){var t=r.m.first(e),n=r.m.last(e),a=r.m.first(t.name.split(" ")),i=r.m.first(n.name.split(" ")),o=t.name.split(" ").find((function(e){return!isNaN(+e)})),c=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===a||"Reception"===a?t.name:"".concat(a," KS").concat(o);var l="",s="";return l="Reception"===a?"R":"KS".concat(o),s="KS".concat(c),"Lower"===a&&"Upper"===i?"L ".concat(l," - U ").concat(s):("Lower"===a&&(l="Lower ".concat(l)),"Upper"===i&&(s="Upper ".concat(s)),"Key"===i&&(s=n.name),"".concat(l," - ").concat(s))}(e);case i.e.PresentationIds.US_MIDDLE:case i.e.PresentationIds.US_HIGH:}return o?{name:o}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var a=+r.m.first(e.name.match(s));if(!t)return t=e,void(n=a);a<n&&(t=e)})),t):null;var t,n},n={},a=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void a.push(e);a.push(e),n[e.name]++;var r=a.splice(a.length-n[e.name]).sort((function(e,n){var r=t(e.subjectPresentationAudiences.data),a=t(n.subjectPresentationAudiences.data);if(!r&&a)return 1;if(!a)return-1;var i=r.name.localeCompare(a.name);return 0===i?i:i>0?-1:1}));a=a.concat(r)})),a},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(t)&&!a.t.isEmpty(t)&&e&&e.length&&d.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var r=function(e){return e.replace(u,"").toLowerCase()},i=n.reduce((function(e,t){return e[r(t)]=t,e}),{});return e.filter((function(e){return i[r(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},75919:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function i(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}i.defaultProps={contentPosition:"center"}},63478:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(32735);function a(e){return r.createElement("div",{className:"w-100 h-100 position-fixed bg-".concat(e.variant)},e.children)}},24250:(e,t,n)=>{n.d(t,{R:()=>u});var r=n(32735),a=n(75896),i=n(55171),o=n(54610),c=n(79967),l=n(67453);function s(e,t){return"mobile"===t?function(e){var t=e%10,n={top:"".concat(4*e,"%")};switch(t){case 0:return n.left="12.5%",n.animationDelay="0.5s",n;case 1:return n.right="7.5%",n.animationDelay="1s",n;case 2:return n.left="10%",n;case 3:return n.right="2.5%",n.animationDelay="0.5s",n;case 4:return n.left="2.5%",n.animationDelay="1.5s",n;case 5:return n.right="10%",n;case 6:return n.left="12.5%",n.animationDelay="1.5s",n;case 7:return n.right="7.5%",n.animationDelay="0.5s",n;case 8:return n.left="5%",n.animationDelay="1s",n;case 9:return n.right="2.5%",n.animationDelay="1s",n;default:return n.left="10%",n.animationDelay="1.5s",n}}(e):"50%"===t?function(e){var t=e%10,n={top:"".concat(4*e,"%")};switch(t){case 0:return n.left="25%",n.animationDelay="0.5s",n;case 1:return n.right="15%",n.animationDelay="1s",n;case 2:return n.left="20%",n;case 3:return n.right="5%",n.animationDelay="0.5s",n;case 4:return n.left="5%",n.animationDelay="1.5s",n;case 5:return n.right="20%",n;case 6:return n.left="25%",n.animationDelay="1.5s",n;case 7:return n.right="15%",n.animationDelay="0.5s",n;case 8:return n.left="10%",n.animationDelay="1s",n;case 9:return n.right="5%",n.animationDelay="1s",n;default:return n.left="20%",n.animationDelay="1.5s",n}}(e):function(e){var t=e%10,n={top:"".concat(4*e,"%")};switch(t){case 0:return n.left="25%",n.animationDelay="0.5s",n;case 1:return n.right="30%",n.animationDelay="1s",n;case 2:return n.left="40%",n;case 3:return n.right="10%",n.animationDelay="0.5s",n;case 4:return n.left="10%",n.animationDelay="1.5s",n;case 5:return n.right="40%",n;case 6:return n.left="30%",n.animationDelay="1.5s",n;case 7:return n.right="30%",n.animationDelay="0.5s",n;case 8:return n.left="10%",n.animationDelay="1s",n;case 9:return n.right="10%",n.animationDelay="1s",n;default:return n.left="40%",n.animationDelay="1.5s",n}}(e)}var u=r.memo((function(e){var t=a.m.shuffle(i.e.Onboarding.LOADING_THUMBNAILS),n=(0,c.k)();return r.createElement("div",{className:"".concat("n2Qe4"," ").concat("50%"===e.screenSize?"w-50":"w-100")},t.map((function(t,a){return r.createElement("div",{key:a,className:"".concat("ZlA2t"," position-absolute rounded-3 overflow-hidden"),style:s(a,n.xs?"mobile":e.screenSize)},!e.hideThumbnailMask&&r.createElement("div",{className:"".concat("jNop3"," ").concat("blue"===e.variant?"jVOWE":"YNfFq")}),r.createElement("img",{className:"img-fluid",src:l.j.createUrl(t,{size:o.h2.Small})}))})))}))},2248:(e,t,n)=>{n.d(t,{L:()=>h});var r=n(32735),a=n(60376),i=n(83914),o=n(2786),c=n(83345),l=n(72639),s=n(79967),u=n(35223),d=n(10144);const m={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(m.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(m.leftNavText," rounded-pill")}))}function h(e){var t,n,h=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(m.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(m.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(c.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(m.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(m.iconPlaceholder)},r.createElement(a.f,{svgSize:i.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(c.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(m.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(m.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(m.dot)}),r.createElement("div",{className:"rounded-circle ".concat(m.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(m.topNav)},r.createElement("div",{className:"".concat(m.logo," me-4")},h.xs?r.createElement(o.bc,null):r.createElement(o.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(i.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(m.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(m.belowHeader)},r.createElement("div",{className:"".concat(m.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return m.presentationPlaceholderIcon;switch(d.i.getMappedPresentationLevel(e.presentation.learningLevel)){case l.p.Level_1:return"bg-indigo ".concat(m.presentationIcon);case l.p.Level_3:return"bg-blue ".concat(m.presentationIcon);default:case l.p.Level_2:return"bg-green ".concat(m.presentationIcon)}}()," text-white rounded")},r.createElement(i.x,{svgName:u.vn.School,size:i.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(m.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(m.presentationPlaceholderText," fw-semibold")},r.createElement(c.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},62007:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(32735),a=n(5465),i=n(5438),o=n(54610),c=n(2248);const l={banner:"CQxNy",title:"NzV5V",description1:"kjCZi",description2:"cBeyJ",placeholder:"Ks_Tl",playlistName:"eFPqz",thumbnailCol:"dgCQ7",videoInfoCol:"pzfE2"};function s(e){return r.createElement("li",{className:"row mb-2"},r.createElement("div",{className:"col-lg-4 col-5 ".concat(l.thumbnailCol)},e.video?r.createElement(i.u,{video:e.video,type:"cosmetic",hideDuration:!0,imageOptions:{size:o.h2.Small}}):r.createElement(a.oy,{type:a.mS.Video,extraClasses:"position-relative rounded-3 ".concat(l.placeholder)})),r.createElement("div",{className:"col-lg-8 col-7 ".concat(l.videoInfoCol)},r.createElement("div",{className:"".concat(l.title," rounded-pill bg-grey mb-1")}),r.createElement("div",{className:"".concat(l.description1," rounded-pill bg-grey mb-1")}),r.createElement("div",{className:"".concat(l.description2," rounded-pill bg-grey mb-1")})))}function u(e){var t,n,a,i=e.hidePlaceholders?0:Math.max(6-(null!==(n=null===(t=e.videos)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(c.L,{presentation:e.presentation,curriculum:e.curriculum},r.createElement("div",{className:"bg-teal ".concat(l.banner," position-relative")},e.name&&r.createElement("div",{className:"h5 text-white mb-0 ".concat(l.playlistName)},e.name)),r.createElement("ul",{className:"list-unstyled mb-0 w-100 p-2"},null===(a=e.videos)||void 0===a?void 0:a.map((function(e){return r.createElement(s,{key:e.id,video:e})})),new Array(i).fill(0).map((function(e,t){return r.createElement(s,{key:t})}))))}},14495:(e,t,n)=>{n.r(t),n.d(t,{ONBOARDING_MAX_VIDEOS:()=>te,OnboardingSelectVideosView:()=>re});var r=n(32735),a=n(57900),i=n(2948),o=n(20354),c=n(65858),l=n(83345),s=n(89454),u=n(79967),d=n(99742),m=n(86702),f=n(82817),v=n(86698),h=n(23481),p=n(89682),y=n(11607),g=n(5438),b=n(76177),E=n(54610),N=n(80143);const S={selected:"ZG5MR"};var w="onboarding.classificationVideos";function x(e){var t,n=(0,N.n)(null===(t=e.video.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),a="border border-2 rounded-3 overflow-hidden";return e.isSelected?a+=" border-success":a+=" border-transparent",r.createElement(y.L,{onClick:function(){return e.onSelectVideo(e.video)},disabled:e.disabled},r.createElement(g.u,{type:"cosmetic",video:e.video,imageOptions:{size:E.h2.Medium},audience:n,checkMarkStatus:e.isSelected?p.h.Complete:p.h.Incomplete,setCheckMarkStatus:e.disabled?null:function(){return e.onSelectVideo(e.video),Promise.resolve()},extraClasses:a,imageClassName:e.isSelected?"".concat(S.selected):"",hideDuration:!0}))}function A(e){function t(t,n){return t?e.onSelectAll(n):e.onDeselectAll(n),Promise.resolve()}var n=e.totalSelected>=te;return r.createElement("ul",{className:"list-unstyled"},e.classificationVideosGrouping.map((function(a){var i=a.videos.filter((function(t){return e.isSelected(t.id)})),o=i.length===a.videos.length,c=!o&&e.totalSelected+a.videos.length-i.length>te;return r.createElement("li",{key:a.classificationId,className:"pb-3"},r.createElement("div",{className:"d-flex justify-content-between align-items-center mb-2"},r.createElement("h2",{className:"h5 mb-1 align-self-end"},a.classificationName),r.createElement(b.u,{title:c?h.T.getPhrase(w,"maxVideos",{limit:te}):"",spanHack:!0,spanHackClassName:""},r.createElement("div",{className:"d-flex align-items-center"},r.createElement(y.L,{disabled:c,onClick:function(){return t(!o,a)},className:"me-2 text-nowrap ".concat(c?"text-muted":"")},r.createElement(l.x,{namespace:w,phrase:"selectAll"})),r.createElement(p.I,{status:o?p.h.Complete:p.h.Incomplete,setStatus:function(e){return t(e===p.h.Complete,a)},style:"outline",disabled:c})))),r.createElement("ul",{className:"row list-unstyled g-2"},a.videos.map((function(t){var i=e.isSelected(t.id),o=n&&!i;return r.createElement("li",{key:t.id,className:"col-sm-6 col-md-4 col-lg-6 col-xl-6"},r.createElement(b.u,{title:o?h.T.getPhrase(w,"maxVideos",{limit:te}):"",spanHack:!0,spanHackClassName:""},r.createElement(x,{video:t,onSelectVideo:function(t){return e.onSelectVideo(t,a.classificationId,a.classificationName)},audiences:e.audiences,isSelected:e.isSelected(t.id),disabled:o})))}))))})))}var I=n(75359),j=n(12058),L=n(40695),O=n(75919),k=n(63478),P=n(24250),C=n(62007),D=n(75896),T=n(60736),_=n(49602),R=n(61699),V=n(1575),M=n(37802);function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||B(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 B(e,t){if(e){if("string"==typeof e)return G(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)?G(e,t):void 0}}function G(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 z=n(73190),F=n(90815);const H={loaderText:"pg4Oj",annotation:"D3Acz"};function Y(e){return Y="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},Y(e)}function K(){K=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),c=new k(r||[]);return a(o,"_invoke",{value:I(e,n,c)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",f="suspendedYield",v="executing",h="completed",p={};function y(){}function g(){}function b(){}var E={};s(E,o,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(P([])));S&&S!==n&&r.call(S,o)&&(E=S);var w=b.prototype=y.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(a,i,o,c){var l=d(e[a],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==Y(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function I(t,n,r){var a=m;return function(i,o){if(a===v)throw new Error("Generator is already running");if(a===h){if("throw"===i)throw o;return{value:e,done:!0}}for(r.method=i,r.arg=o;;){var c=r.delegate;if(c){var l=j(c,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===m)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=d(t,n,r);if("normal"===s.type){if(a=r.done?h:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function j(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=d(a,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.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 L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(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,i=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 i.next=i}}throw new TypeError(Y(t)+" is not iterable")}return g.prototype=b,a(w,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(A.prototype),s(A.prototype,c,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new A(u(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,l,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.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),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function W(e,t,n){var r;return r=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Y(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||q(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 q(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function c(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}l((r=r.apply(e,t||[])).next())}))},J=6e3,ee=3,te=100,ne="onboarding.selectVideos";function re(e){var t=(0,z.Q)(e.redirectUrl),n=t.onClickBack,h=t.exitOnboarding,p=t.completeStepAsync,y=t.onSaveError,g=(0,F.H)().logEvent,b=Z((0,i.D)(m.y.ONBOARDING_VIDEOS_V2,[],{storage:a.Z1.LocalStorage}),2),E=b[0],N=b[1],S=o.a.useBasicFetch(s.O.presentationAudiences()),w=(0,v.y)().preferredPresentation,x=(0,f.M)().activeCurriculum,Y=function(){var e,t,n=(0,v.y)().preferredPresentation,r=(0,M.r)(null),a=r.bulkOnboardingPreferencesState,i=r.isLoadingSettings,c=o.a.useBasicFetch(R.o.mySubjectPreferences()),l=T.A[n.id]||{},s=Object.entries(l).reduce((function(e,t){var n=U(t,2),r=n[0],a=n[1].name;return e[r]=a,e}),{}),u=_.b.hasBulkSelectedTopics(a)?l:null!==(t=null===(e=c.data)||void 0===e?void 0:e.reduce((function(e,t){return l[t.id]?(e[t.id]=l[t.id],e):e}),{}))&&void 0!==t?t:{},d=[],m={};Object.entries(u).forEach((function(e){var t,n=U(e,2),r=n[0],a=n[1];d.push.apply(d,function(e){if(Array.isArray(e))return G(e)}(t=a.videoIds)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||B(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a.videoIds.forEach((function(e){m[e]||(m[e]=[]),m[e].push(r)}))}));var f=o.a.useBasicFetchAll(D.m.chunk(D.m.uniq(d),25).map((function(e){return V.R.videos(e)}))),h=D.m.flatten(f.data||[]),p={};return null==h||h.forEach((function(e){m[e.id].forEach((function(t){p[t]||(p[t]={classificationId:t,classificationName:s[t],videos:[]}),p[t].videos.push(e)}))})),{hasCompleted:c.hasCompleted&&f.hasCompleted&&!i,data:Object.values(p)}}(),q=Z(r.useState(Y.hasCompleted),2),X=q[0],re=q[1],ae=(0,u.k)(),ie=ae.lg||ae.xl||ae.xxl;r.useEffect((function(){var e=window.setTimeout((function(){re(!0)}),J);return function(){window.clearTimeout(e)}}),[]);var oe=Y.hasCompleted&&S.hasCompleted,ce=!X||!oe,le=ce?{hasCustomButtons:!0}:{hasCustomButtons:!1,onClickNext:function(){return $(this,void 0,void 0,K().mark((function e(){return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(c.Vw.Click,c.Ix.Next,{videos:E.map((function(e){var t;return{id:e.data.id,name:e.data.name,thumbnailUrl:null===(t=e.data.thumbnail)||void 0===t?void 0:t.url,videoSubjectId:e.classificationId,videoSubjectName:e.classificationName}})),presentationId:w.id,presentationName:w.name,presentationDescription:w.description}),e.prev=1,e.next=4,p();case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),y(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickBack:n,onClickComeBackLater:h,disableNext:E.length<ee||E.length>te};return ce&&!ie?r.createElement(k.B,{variant:"dark-blue"},r.createElement("div",{className:"w-100 d-flex align-items-center px-4 text-center flex-column text-white ".concat(H.loaderText)},r.createElement("h1",{className:"h3 mb-4"},r.createElement(l.x,{namespace:ne,phrase:"loadingHeading"})),r.createElement("p",{className:"h6 text-center"},r.createElement(l.x,{namespace:ne,phrase:"searching"}))),r.createElement(P.R,{variant:"dark-blue",screenSize:"100%",hideThumbnailMask:!0})):r.createElement(L.z,{namespace:ne},r.createElement(L.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},ce?r.createElement(P.R,{variant:"dark-blue",screenSize:"50%"}):r.createElement(O.N,{contentPosition:"right",annotationUrl:E.length>=ee?d.W.OnboardingV2.SelectVideos.LOOKING_GOOD:d.W.OnboardingV2.SelectVideos.BEFORE_SELECTION,annotationPosition:E.length>=ee?"bottom-left":"top-left",annotationClassName:H.annotation},r.createElement(C.u,{presentation:w,curriculum:x,videos:E.map((function(e){return e.data}))}))),r.createElement(L.z.Right,Object.assign({},le),ce?r.createElement(r.Fragment,null,r.createElement(I.W,null,r.createElement(l.x,{phrase:"loadingHeading"})),r.createElement("p",{className:"text-center"},r.createElement(l.x,{phrase:"searching"}))):r.createElement(r.Fragment,null,r.createElement(I.W,null,r.createElement(l.x,{phrase:"heading"})),r.createElement(j.X,null,r.createElement(l.x,{phrase:"info"})),r.createElement(A,{classificationVideosGrouping:Y.data,onSelectVideo:function(e,t,n){g(c.Vw.Select,c.Ix.SelectVideo,{videoId:e.id,videoName:e.name,videoSubjectId:t,videoSubjectName:n,presentationId:w.id,presentationName:w.name,presentationDescription:w.description}),E.some((function(t){return t.data.id.toString()===e.id.toString()}))?N(E.filter((function(t){return t.data.id.toString()!==e.id.toString()}))):N([].concat(Q(E),[{data:e,classificationId:t,classificationName:n}]))},audiences:S.data,onSelectAll:function(e){g(c.Vw.Click,c.Ix.SelectAllVideos,{subjectId:e.classificationId,subjectName:e.classificationName,videos:e.videos.map((function(t){var n;return{id:t.id,name:t.name,thumbnailUrl:null===(n=t.thumbnail)||void 0===n?void 0:n.url,videoSubjectId:e.classificationId,videoSubjectName:e.classificationName}})),presentationId:w.id,presentationDescription:w.description});var t=E.reduce((function(e,t){return Object.assign(Object.assign({},e),W({},t.data.id,!0))}),{});N([].concat(Q(E),Q(e.videos.filter((function(e){return!t[e.id]})).map((function(t){return{data:t,classificationId:e.classificationId,classificationName:e.classificationName}})))))},onDeselectAll:function(e){g(c.Vw.Click,c.Ix.DeselectAllVideos,{subjectId:e.classificationId,subjectName:e.classificationName,videos:e.videos.map((function(t){var n;return{id:t.id,name:t.name,thumbnailUrl:null===(n=t.thumbnail)||void 0===n?void 0:n.url,videoSubjectId:e.classificationId,videoSubjectName:e.classificationName}})),presentationId:w.id,presentationDescription:w.description});var t=e.videos.reduce((function(e,t){return Object.assign(Object.assign({},e),W({},t.id,!0))}),{});N(E.filter((function(e){return!t[e.data.id]})))},isSelected:function(e){return E.some((function(t){return t.data.id.toString()===e.toString()}))},totalSelected:E.length}))))}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 537-9c745fb245-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[537],{2192:(e,t,n)=>{n.d(t,{M:()=>h,Q:()=>g});var r=n(32735),a=n(45157),c=n(36848),o=n(60376),l=n(5465),i=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),f=n(92038),v=function(e){var t=e.name,n=e.multiline,a="".concat(f.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),c="";return n?c+=" ".concat(f.Z.clamped," clamp-2"):(a+=" text-nowrap",c+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},p=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 h(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return r.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(f.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(a.Y.getRandomInt())},e.isSelected&&r.createElement("div",{className:"".concat(f.Z.selectedMask," border-2")}),r.createElement("div",{className:"".concat(f.Z.imagePanel," ").concat(e.isLarge?f.Z.large:"")},e.isSelected&&!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(v,Object.assign({},n)):r.createElement(p,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(h,Object.assign({},e))):r.createElement(h,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:()=>u});var r=n(32735),a=n(54610),c=n(67453),o=n(2248);const l={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(l.subjectPlaceholder)},e.coverUrl?r.createElement("div",{className:l.placeholderCover},r.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):r.createElement("div",{className:"".concat(l.placeholderCover," bg-light-blue")})))}function s(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(l.promotedTopicPlaceholder)}))}function u(e){var t,n,a,c=Math.max(12-(null!==(n=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(o.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},r.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},r.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},r.createElement("div",{className:"bg-light ".concat(l.magicTab)}),r.createElement("div",{className:"".concat(l.magicTab)})),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(a=e.subjects)||void 0===a?void 0:a.map((function(e){var t;return r.createElement(i,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return r.createElement(i,{key:t})}))),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>p});var r=n(32735),a=n(60376),c=n(83914),o=n(2786),l=n(83345),i=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function p(e){var t,n,p=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(l.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(l.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},p.xs?r.createElement(o.bc,null):r.createElement(o.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case i.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case i.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case i.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(l.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},1039:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSchoolLevelView:()=>P});var r=n(32735),a=n(57900),c=n(2948),o=n(65858),l=n(11607),i=n(83345),s=n(2192),u=n(38143),m=n(84703),d=n(99742),f=n(86698),v=n(75359),p=n(12058),h=n(40695),g=n(75919),y=n(39375),E=n(73190),b=n(90815);const N={cover:"p3PFT",presentationList:"PT_ec"};function x(e){return x="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},x(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 s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var c=t&&t.prototype instanceof g?t:g,o=Object.create(c.prototype),l=new _(r||[]);return a(o,"_invoke",{value:P(e,n,l)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",v="executing",p="completed",h={};function g(){}function y(){}function E(){}var b={};s(b,o,(function(){return this}));var N=Object.getPrototypeOf,L=N&&N(N(T([])));L&&L!==n&&r.call(L,o)&&(b=L);var k=E.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(a,c,o,l){var i=m(e[a],e,c);if("throw"!==i.type){var s=i.arg,u=s.value;return u&&"object"==x(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(i.arg)}var c;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return c=c?c.then(a,a):a()}})}function P(t,n,r){var a=d;return function(c,o){if(a===v)throw new Error("Generator is already running");if(a===p){if("throw"===c)throw o;return{value:e,done:!0}}for(r.method=c,r.arg=o;;){var l=r.delegate;if(l){var i=C(l,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?p:f,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=p,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var c=m(a,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,h;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,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}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(x(t)+" is not iterable")}return y.prototype=E,a(k,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:y,configurable:!0}),y.displayName=s(E,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,E):(e.__proto__=E,s(e,i,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var o=new j(u(e,n,r,a),c);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),s(k,i,"Generator"),s(k,o,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var c=this.tryEntries.length-1;c>=0;--c){var o=this.tryEntries[c],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var c=a;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var o=c?c.completion:{};return o.type=e,o.arg=t,c?(this.method="next",this.next=c.finallyLoc,h):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),h},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),h}},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),h}},t}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,c,o,l=[],i=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=c.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(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 k(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 S=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())}))},j="onboarding.schoolLevel";function P(e){var t=(0,E.Q)(e.redirectUrl),n=t.onClickBack,x=t.exitOnboarding,k=t.completeStepAsync,P=t.onSaveError,C=(0,b.H)().logEvent,O=(0,f.y)(),I=O.availablePresentations,_=O.setPresentation,T=(0,m.n)(),A=L((0,c.D)(u.g.AUDIENCE_FILTER,void 0,{storage:a.Z1.SessionStorage}),2)[1],U=L(r.useState(),2),Z=U[0],F=U[1];return r.createElement(h.z,{namespace:j},r.createElement(h.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(g.N,{contentPosition:"right",annotationUrl:Z?d.W.OnboardingV2.SchoolLevel.ANNOTATION_SELECTED:d.W.OnboardingV2.SchoolLevel.ANNOTATION_NONE_SELECTED,annotationPosition:"bottom-left"},r.createElement(y.Y,{presentation:Z}))),r.createElement(h.z.Right,{hasCustomButtons:!1,onClickNext:function(){return S(this,void 0,void 0,w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(o.Vw.Click,o.Ix.Next,{presentationId:Z.id,presentationName:Z.name,presentationDescription:Z.description},{preferredPresentationOverride:Z}),A(null),e.prev=2,e.next=5,_(Z,"activeAndPreferred");case 5:return e.next=7,k({preferredPresentationOverride:Z});case 7:e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(2),P(),e.abrupt("return",Promise.reject());case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))},onClickBack:n,onClickComeBackLater:x,disableNext:!Z},r.createElement(v.W,null,r.createElement(i.x,{phrase:T?"headingKdm":"heading"})),r.createElement(p.X,null,r.createElement(i.x,{phrase:T?"infoKdm":"info"})),r.createElement("ul",{className:"list-unstyled mb-1 ".concat(N.presentationList)},I.map((function(e){var t;return r.createElement("li",{key:e.id,className:"mb-2"},r.createElement(l.L,{onClick:function(){return function(e){C(o.Vw.Select,o.Ix.SelectPresentation,{presentationId:e.id,presentationName:e.name,presentationDescription:e.description}),F(e)}(e)}},r.createElement(s.M,{data:e,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url,imageClassName:N.cover,isSelected:e.id===(null==Z?void 0:Z.id)})))}))),r.createElement(p.X,null,r.createElement(i.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"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 6617-9c4a14d7ec-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:()=>V});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(22902),x=r(64818),C=r(99742),k=r(57322),j=r(99940),P={checkEmail:function(e){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(e),type:j.k.POST,data:{email:e}}}},A=r(36669),L=r(44842);const T={modal:"pYcyR",withJobTitle:"B7QsN",submittedImage:"I1q0f",formContainer:"KhXJt"};function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function 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 y?t:y,i=Object.create(a.prototype),l=new L(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(T([])));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"==U(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(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(U(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=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var 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),A(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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function _(e,t,r){var n;return n=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==U(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(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 F(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)?F(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var 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())}))},D="product_trial_upgrade_requested",M=/^\+?\d{4,255}$/,q="signUp.upgrade",G=a.T.encloseNamespace(q);function V(e){var t,r,f,m,h,p=I(n.useState(""),2),j=p[0],U=p[1],F=I(n.useState(""),2),V=F[0],z=F[1],J=I(n.useState(""),2),K=J[0],Q=J[1],Y=I(n.useState(""),2),Z=Y[0],$=Y[1],R=I(n.useState(""),2),H=R[0],W=R[1],X=I(n.useState(!1),2),ee=X[0],te=X[1],re=I(n.useState("form"),2),ne=re[0],oe=re[1],ae=l.a.useBasicFetch(w.N.currentUser()),ie=l.a.useBasicFetch(ae.data&&w.N.user(ae.data.id)),le=l.a.useBasicFetch(ae.data&&E.h.customer(ae.data.customerId)),ce=l.a.useBasicFetch(A.t.currentProspect()),ue=l.a.useBasicFetch(ae.data&&P.checkEmail(ae.data.email)),se=(0,N.T)(),de=se.hasPermissions,fe=se.isLoaded,me=(0,S.Z)(),he=(0,i.G)(fe&&(null===(t=ae.data)||void 0===t?void 0:t.isAuthenticated)&&!de(g.C.StudentExperience)&&k.K.BrazeClient),pe=!!(null===(m=null===(f=null===(r=ie.data)||void 0===r?void 0:r.userProfile)||void 0===f?void 0:f.metadata)||void 0===m?void 0:m.jobTitle);function ve(){te(!1),me.error(a.T.getPhrase(q,"saveError"))}return n.createElement(b.D.Provider,{value:q},n.createElement(v,{closePopup:e.closePopup,backgroundColour:"dark-blue",backgroundImage:C.W.SignUp.CONTACT_SALES_MODAL,size:"lg",showLoadingSpinner:!ae.hasCompleted||!ie.hasCompleted,bodyClassName:"".concat(T.modal," ").concat(pe?"":T.withJobTitle),rightPanelClassName:"d-flex align-items-center justify-content-center",title:G("title")},"form"===ne&&n.createElement("div",{className:T.formContainer},n.createElement("h1",{className:"h4"},n.createElement(b.x,{phrase:"title"})),n.createElement("p",null,n.createElement(b.x,{phrase:"fullAccess",options:{schoolName:null===(h=ae.data)||void 0===h?void 0:h.customerName}})),n.createElement("form",{onSubmit:function(e){var t,r,n,a,i,l,s,f,m,h,p,v,y,b,g,E,w,S,N;return B(this,void 0,void 0,O().mark((function C(){var k,P,A,L,T;return O().wrap((function(C){for(;;)switch(C.prev=C.next){case 0:e.preventDefault(),te(!0),C.prev=2,k=pe?null===(n=null===(r=null===(t=ie.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",he.setUserPhone(j),A=d.F.removeEmptyKeys(_(_(_(_({},o.DefaultUserAttributes.Email,null===(a=ie.data)||void 0===a?void 0:a.email),o.DefaultUserAttributes.FirstName,null===(i=ie.data)||void 0===i?void 0:i.name),o.DefaultUserAttributes.LastName,null===(l=ie.data)||void 0===l?void 0:l.surname),o.DefaultUserAttributes.Phone,j)),L=d.F.removeEmptyKeys(_(_(_(_(_(_(_({},o.CustomUserAttributes.JobTitle,null===(m=null===(f=null===(s=ie.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=ae.data)||void 0===h?void 0:h.customerName),o.CustomUserAttributes.CrmId,null===(p=le.data)||void 0===p?void 0:p.crmId),o.CustomUserAttributes.OrgSubType,d.F.getSchoolType(null===(v=ce.data)||void 0===v?void 0:v.prospectType)),"account_address",{country_code:null===(y=ae.data)||void 0===y?void 0:y.countryCode,province:d.F.parseProvince((null===(b=ce.data)||void 0===b?void 0:b.province)||"")}),"topic",P),o.CustomUserAttributes.SyncToCrm,!(null===(E=null===(g=ue.data)||void 0===g?void 0:g.users)||void 0===E?void 0:E.length))),T=d.F.removeEmptyKeys(_(_(_(_({},o.EventUserAttributes.AccountCity,null===(w=ce.data)||void 0===w?void 0:w.city),o.EventUserAttributes.AccountState,null===(S=ce.data)||void 0===S?void 0:S.province),o.EventUserAttributes.ContactUsComment,K),o.EventUserAttributes.EventTopic,P)),he.bulkSetCustomUserAttributes(L),he.logEvent({type:D,data:Object.assign(Object.assign(Object.assign({},A),L),T)}),c.k.logUserAction({id:null===(N=ae.data)||void 0===N?void 0:N.id,jobTitle:k,phoneNumber:j,otherInformation:K,isKDM:x.l.isKDM(k)},{actionType:u.Vw.Submit,entity:u.py.User,descriptor:u.HS.RequestUpgrade,location:u.LZ.TrialBanner,eventVersion:u.eq.V2}),he.sendData((function(e){if(!e)throw ve(),new Error("Failed to send trial upgrade request.");oe("success")})),C.next=19;break;case 15:throw C.prev=15,C.t0=C.catch(2),ve(),new Error("Failed to send trial upgrade request.");case 19:case"end":return C.stop()}}),C,null,[[2,15]])})))}},!pe&&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&&W(""):W(n)},countryCode:ae.data.countryCode,initialValue:Z,error:H})),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(!!V&&"is-invalid"),type:"tel",value:j,onChange:function(e){var t=e.target.value;U(t),(null==t?void 0:t.length)?M.test(t)?V&&z(""):z("Please enter a valid phone number."):z("Please enter your phone number.")},placeholder:G("phoneNumberPlaceholder")}),!!V&&n.createElement("div",{className:"invalid-feedback"},V)),n.createElement("label",{htmlFor:"other-information"},n.createElement(b.x,{phrase:"otherLabel"})),n.createElement("input",{id:"other-information",name:"other-information",className:"form-control form-control-lg mb-3",value:K,onChange:function(e){return Q(e.target.value)},placeholder:G("otherPlaceholder")}),n.createElement(y.m,{type:"submit",disabled:!(!V&&j&&(pe||Z&&!H)),className:"d-block w-100",size:"lg",variant:"dark",showSpinner:ee},n.createElement(b.x,{phrase:"requestTrial"})))),"success"===ne&&n.createElement("div",{className:"text-center ".concat(T.formContainer)},n.createElement("img",{src:C.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 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9173-05803bdaca-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:()=>I});var r=n(32735),o=n(23481),i=n(65858),a=n(38304),c=n(83345),s=n(84703),l=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 p=n(12058),d=n(40695),g=n(75919),y=n(73190),v=n(90815);const b={notSureImage:"MuA8k",searchVideoImage:"d82DS",searchVideoAnnotation:"BxbBK",browseTopicsAnnotation:"hwc8g",notSureAnnotation:"PwDKP",supportTeachersAnnotation:"odEci"};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",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:U(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",p="executing",d="completed",g={};function y(){}function v(){}function b(){}var w={};l(w,a,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(P([])));S&&S!==n&&r.call(S,a)&&(w=S);var _=b.prototype=y.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(o,i,a,c){var s=f(t[o],t,i);if("throw"!==s.type){var l=s.arg,u=l.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){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.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 U(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=x(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?d:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=d,r.method="throw",r.arg=l.arg)}}}function x(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,x(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 T(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function P(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 v.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},I(C.prototype),l(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},I(_),l(_,s,"Generator"),l(_,a,(function(){return this})),l(_,"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=P,k.prototype={constructor:k,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(A),!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 s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var 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),A(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;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(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{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}s((r=r.apply(t,e||[])).next())}))},S="onboarding.usageIntention",_=o.T.encloseNamespace(S);function I(t){var e,n,o=(0,y.Q)(t.redirectUrl),f=o.onClickBack,h=o.exitOnboarding,E=o.completeStepAsync,I=o.onSaveError,C=(0,v.H)().logEvent,U=a.m.getUsageIntention(),x=(e=r.useState(U),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=[],s=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(t){l=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)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.")}()),T=x[0],A=x[1],k=(0,s.n)(),P=function(){var t=[{id:"search-video",imageUrl:l.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_ICON,colourClass:"bg-blue",title:_("searchVideoTitle"),description:_("searchVideoDescription")},{id:"browse-topics",imageUrl:l.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_ICON,colourClass:"bg-yellow",title:_("browseTopicsTitle"),description:_("browseTopicsDescription")}];return k&&t.push({id:"support-teachers",imageUrl:l.W.OnboardingV2.UsageIntention.SUPPORT_TEACHERS_ICON,colourClass:"bg-green",title:_("supportTeachersTitle"),description:_("supportTeachersDescription")}),t.push({id:"not-sure",imageUrl:l.W.OnboardingV2.UsageIntention.NOT_SURE_ICON,colourClass:"bg-indigo",title:_("notSureTitle"),description:_("notSureDescription")}),t}();return r.createElement(d.z,{namespace:S},r.createElement(d.z.Left,{className:"bg-dark-blue d-flex align-items-center"},("search-video"===T||!T)&&r.createElement(g.N,{annotationUrl:l.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:l.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_BACKGROUND})),"browse-topics"===T&&r.createElement(g.N,{annotationUrl:l.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_ANNOTATION,annotationPosition:"bottom-left",annotationClassName:"ps-5 ms-4 ".concat(b.browseTopicsAnnotation)},r.createElement("img",{className:"img-fluid",src:l.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_BACKGROUND})),"support-teachers"===T&&r.createElement(g.N,{annotationUrl:l.W.OnboardingV2.UsageIntention.SUPPORT_TEACHERS_ANNOTATION,annotationPosition:"top-left",annotationClassName:"ps-5 ms-4 ".concat(b.supportTeachersAnnotation)},r.createElement("img",{className:"img-fluid ".concat(b.notSureImage),src:l.W.OnboardingV2.UsageIntention.SUPPORT_TEACHERS_BACKGROUND})),"not-sure"===T&&r.createElement(g.N,{annotationUrl:l.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:l.W.OnboardingV2.UsageIntention.NOT_SURE_BACKGROUND}))),r.createElement(d.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(T){t.next=2;break}return t.abrupt("return");case 2:return a.m.updateUsageIntention(T),C(i.Vw.Click,i.Ix.Next,{usageIntention:T}),t.prev=4,t.next=7,E();case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(4),I(),t.abrupt("return",Promise.reject());case 13:case"end":return t.stop()}}),t,null,[[4,9]])})))},onClickBack:f,onClickComeBackLater:h,disableNext:!T},r.createElement(u.W,null,r.createElement(c.x,{phrase:"heading"})),r.createElement(p.X,null,r.createElement(c.x,{phrase:k?"infoKdm":"info"})),r.createElement(m,{options:P,selection:T,setSelection:function(t){var e;C(i.Vw.Select,i.Ix.SelectOption,{optionId:t,optionName:null===(e=P.find((function(e){return e.id===t})))||void 0===e?void 0:e.title}),A(t)}}),r.createElement(p.X,{className:"pb-4"},r.createElement(c.x,{phrase:"dontWorry"})),r.createElement("div",{className:"d-none"},r.createElement("img",{src:l.W.OnboardingV2.UsageIntention.SEARCH_VIDEO_BACKGROUND}),r.createElement("img",{src:l.W.OnboardingV2.UsageIntention.BROWSE_TOPICS_BACKGROUND}),r.createElement("img",{src:l.W.OnboardingV2.UsageIntention.SUPPORT_TEACHERS_BACKGROUND}),r.createElement("img",{src:l.W.OnboardingV2.UsageIntention.NOT_SURE_BACKGROUND}))))}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9918-6eae7cefdf-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),d=r(37802),p=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,d.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:p.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}}},84703:(t,e,r)=>{r.d(e,{n:()=>i});var n=r(20354),o=r(31949),a=r(64818);function i(){var t,e,r,i,c=n.a.useBasicFetch(o.N.currentUser()),u=n.a.useBasicFetch(c.data&&o.N.user(null===(t=c.data)||void 0===t?void 0:t.id));return a.l.isKDM(null===(i=null===(r=null===(e=u.data)||void 0===e?void 0:e.userProfile)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.jobTitle)}},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 d(t){return d="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},d(t)}function p(){p=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 _(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"==d(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(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(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(d(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,_.prototype={constructor:_,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(T),!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),T(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;T(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],d=(0,u.u)(),m=(0,o.T)(d),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=p().mark((function e(){return p().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),d=r(69883),p=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 _(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",d="suspendedYield",p="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===p)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=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:d,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(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(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,_.prototype={constructor:_,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(T),!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),T(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;T(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,d.Z)(),S=(0,m.H)().logEvent,N=(0,p.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:()=>d});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 d(){var t=(0,f.u)(),e=(0,c.T)(t).getPathway,r=n.a.useBasicFetch(l.N.currentUser()),d=n.a.useBasicFetch(l.N.user(r.data.id)),p=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=d.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=p.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)}}}}}]);
|