@clickview/lite 0.36.4 → 0.36.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{1426-lite-840995aa62.chunk.css → 1426-lite-f235024cee.chunk.css} +2 -2
- package/dist/css/{1805-lite-971ea2bd5a.chunk.css → 1805-lite-4f255acc0f.chunk.css} +1 -1
- package/dist/css/{2703-lite-7ba8cc4d1e.chunk.css → 2703-lite-280e305215.chunk.css} +1 -1
- package/dist/css/{2819-lite-1ebce7bdcf.chunk.css → 2819-lite-76abb49edd.chunk.css} +2 -2
- package/dist/css/{487-lite-96ad0f943f.chunk.css → 487-lite-41e5cfe5e2.chunk.css} +1 -1
- package/dist/css/{536-lite-b8b24bff42.chunk.css → 536-lite-95733858df.chunk.css} +2 -2
- package/dist/css/{5379-lite-b9ce6d4999.chunk.css → 5379-lite-5079e96f25.chunk.css} +1 -1
- package/dist/css/{7791-lite-afbd54454d.chunk.css → 7791-lite-8d2f0b5c3e.chunk.css} +2 -2
- package/dist/css/{7877-lite-753ceb57d9.chunk.css → 7877-lite-86ada23fbf.chunk.css} +2 -2
- package/dist/css/{8296-lite-1e63b6b5d8.chunk.css → 8296-lite-adedfcc844.chunk.css} +2 -2
- package/dist/css/{lite-app-ddb4f64bbb.css → lite-app-cf320ec59b.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1426-1a41d98bf6-lite.chunk.js +2 -0
- package/dist/scripts/1805-2e25435263-lite.chunk.js +2 -0
- package/dist/scripts/{2188-174de868f2-lite.chunk.js → 2188-f481ece87e-lite.chunk.js} +1 -1
- package/dist/scripts/2703-2302d53365-lite.chunk.js +2 -0
- package/dist/scripts/2819-7eb2c2342d-lite.chunk.js +2 -0
- package/dist/scripts/316-32f72340c8-lite.chunk.js +1 -0
- package/dist/scripts/487-49dc182b07-lite.chunk.js +2 -0
- package/dist/scripts/536-7a7ee070d2-lite.chunk.js +2 -0
- package/dist/scripts/5379-8989645c66-lite.chunk.js +1 -0
- package/dist/scripts/5442-7790521d8c-lite.chunk.js +2 -0
- package/dist/scripts/{7293-6cdd27c4c9-lite.chunk.js → 7293-760b4e2a16-lite.chunk.js} +1 -1
- package/dist/scripts/7791-8141407cfd-lite.chunk.js +2 -0
- package/dist/scripts/7877-f8a7a4c607-lite.chunk.js +2 -0
- package/dist/scripts/8296-eb7c394089-lite.chunk.js +2 -0
- package/dist/scripts/993-7eef290805-lite.chunk.js +2 -0
- package/dist/scripts/bundle-5d6ccf790d.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/1426-ee1fac309f-lite.chunk.js +0 -2
- package/dist/scripts/1805-05413695af-lite.chunk.js +0 -2
- package/dist/scripts/2703-dacf5ee1d8-lite.chunk.js +0 -2
- package/dist/scripts/2819-08030fb5fb-lite.chunk.js +0 -2
- package/dist/scripts/316-d1a5484ee3-lite.chunk.js +0 -1
- package/dist/scripts/487-55f69c7d70-lite.chunk.js +0 -2
- package/dist/scripts/536-09a05e5b6f-lite.chunk.js +0 -2
- package/dist/scripts/5379-06693f6727-lite.chunk.js +0 -1
- package/dist/scripts/5442-82e8147edc-lite.chunk.js +0 -2
- package/dist/scripts/7791-76129dec22-lite.chunk.js +0 -2
- package/dist/scripts/7877-ac08d68d6f-lite.chunk.js +0 -2
- package/dist/scripts/8296-61fbedf389-lite.chunk.js +0 -2
- package/dist/scripts/993-e32d521f7a-lite.chunk.js +0 -2
- package/dist/scripts/bundle-6f6195f034.min.js +0 -2
- /package/dist/scripts/{1426-ee1fac309f-lite.chunk.js.LICENSE.txt → 1426-1a41d98bf6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1805-05413695af-lite.chunk.js.LICENSE.txt → 1805-2e25435263-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2703-dacf5ee1d8-lite.chunk.js.LICENSE.txt → 2703-2302d53365-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2819-08030fb5fb-lite.chunk.js.LICENSE.txt → 2819-7eb2c2342d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{487-55f69c7d70-lite.chunk.js.LICENSE.txt → 487-49dc182b07-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{536-09a05e5b6f-lite.chunk.js.LICENSE.txt → 536-7a7ee070d2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5442-82e8147edc-lite.chunk.js.LICENSE.txt → 5442-7790521d8c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7791-76129dec22-lite.chunk.js.LICENSE.txt → 7791-8141407cfd-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7877-ac08d68d6f-lite.chunk.js.LICENSE.txt → 7877-f8a7a4c607-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8296-61fbedf389-lite.chunk.js.LICENSE.txt → 8296-eb7c394089-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{993-e32d521f7a-lite.chunk.js.LICENSE.txt → 993-7eef290805-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-6f6195f034.min.js.LICENSE.txt → bundle-5d6ccf790d.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5379],{2158:(e,t,a)=>{a.d(t,{T:()=>u});var n=a(20354),r=a(50122),c=a(25925),l=a(21750),i=a(31949),o=a(37802),s=a(75795);function u(e){var t,a=n.a.useBasicFetch(i.N.currentUser()),u=n.a.useBasicFetch((null===(t=a.data)||void 0===t?void 0:t.isAuthenticated)&&i.N.user(a.data.id)),m=n.a.useBasicFetch(l.x.availablePresentations(c.R.Subject)),d=n.a.useBasicFetch(l.x.presentation(c.R.Subject)),v=n.a.useBasicFetch(l.x.availablePresentations(c.R.Curriculum)),f=a.hasCompleted&&u.hasCompleted&&m.hasCompleted&&v.hasCompleted&&d.hasCompleted,p=(0,o.r)(null).userSettings;return{getPathway:function(){var t,a,n,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=c.jobTitleOverride||(null===(n=null===(a=null===(t=u.data)||void 0===t?void 0:t.userProfile)||void 0===a?void 0:a.metadata)||void 0===n?void 0:n.jobTitle),i=c.preferredPresentationOverride||d.data;return r.m.getOnboardingPathway({jobTitle:l,userSettings:p.data,presentations:m.data,curriculums:v.data,preferredPresentation:i,appLink:s.O.getCurrentRoute().appLink,appLinks:e})},hasLoadedPathway:f}}},63478:(e,t,a)=>{a.d(t,{B:()=>r});var n=a(32735);function r(e){return n.createElement("div",{className:"w-100 h-100 position-fixed bg-".concat(e.variant)},e.children)}},24250:(e,t,a)=>{a.d(t,{R:()=>u});var n=a(32735),r=a(75896),c=a(55171),l=a(54610),i=a(79967),o=a(67453);function s(e,t){return"mobile"===t?function(e){var t=e%10,a={top:"".concat(4*e,"%")};switch(t){case 0:return a.left="12.5%",a.animationDelay="0.5s",a;case 1:return a.right="7.5%",a.animationDelay="1s",a;case 2:return a.left="10%",a;case 3:return a.right="2.5%",a.animationDelay="0.5s",a;case 4:return a.left="2.5%",a.animationDelay="1.5s",a;case 5:return a.right="10%",a;case 6:return a.left="12.5%",a.animationDelay="1.5s",a;case 7:return a.right="7.5%",a.animationDelay="0.5s",a;case 8:return a.left="5%",a.animationDelay="1s",a;case 9:return a.right="2.5%",a.animationDelay="1s",a;default:return a.left="10%",a.animationDelay="1.5s",a}}(e):"50%"===t?function(e){var t=e%10,a={top:"".concat(4*e,"%")};switch(t){case 0:return a.left="25%",a.animationDelay="0.5s",a;case 1:return a.right="15%",a.animationDelay="1s",a;case 2:return a.left="20%",a;case 3:return a.right="5%",a.animationDelay="0.5s",a;case 4:return a.left="5%",a.animationDelay="1.5s",a;case 5:return a.right="20%",a;case 6:return a.left="25%",a.animationDelay="1.5s",a;case 7:return a.right="15%",a.animationDelay="0.5s",a;case 8:return a.left="10%",a.animationDelay="1s",a;case 9:return a.right="5%",a.animationDelay="1s",a;default:return a.left="20%",a.animationDelay="1.5s",a}}(e):function(e){var t=e%10,a={top:"".concat(4*e,"%")};switch(t){case 0:return a.left="25%",a.animationDelay="0.5s",a;case 1:return a.right="30%",a.animationDelay="1s",a;case 2:return a.left="40%",a;case 3:return a.right="10%",a.animationDelay="0.5s",a;case 4:return a.left="10%",a.animationDelay="1.5s",a;case 5:return a.right="40%",a;case 6:return a.left="30%",a.animationDelay="1.5s",a;case 7:return a.right="30%",a.animationDelay="0.5s",a;case 8:return a.left="10%",a.animationDelay="1s",a;case 9:return a.right="10%",a.animationDelay="1s",a;default:return a.left="40%",a.animationDelay="1.5s",a}}(e)}var u=n.memo((function(e){var t=r.m.shuffle(c.e.Onboarding.LOADING_THUMBNAILS),a=(0,i.k)();return n.createElement("div",{className:"".concat("n2Qe4"," ").concat("50%"===e.screenSize?"w-50":"w-100")},t.map((function(t,r){return n.createElement("div",{key:r,className:"".concat("ZlA2t"," position-absolute rounded-3 overflow-hidden"),style:s(r,a.xs?"mobile":e.screenSize)},!e.hideThumbnailMask&&n.createElement("div",{className:"".concat("jNop3"," ").concat("blue"===e.variant?"jVOWE":"YNfFq")}),n.createElement("img",{className:"img-fluid",src:o.j.createUrl(t,{size:l.h2.Small})}))})))}))},49036:(e,t,a)=>{a.d(t,{Y:()=>u});var n=a(32735),r=a(54610),c=a(67453),l=a(2248);const i={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function o(e){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(i.subjectPlaceholder)},e.coverUrl?n.createElement("div",{className:i.placeholderCover},n.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:r.h2.Small})})):n.createElement("div",{className:"".concat(i.placeholderCover," bg-light-blue")})))}function s(){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(i.promotedTopicPlaceholder)}))}function u(e){var t,a,r,c=Math.max(12-(null!==(a=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==a?a:0),0);return n.createElement(l.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},n.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},n.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},n.createElement("div",{className:"bg-light ".concat(i.magicTab)}),n.createElement("div",{className:"".concat(i.magicTab)})),n.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(r=e.subjects)||void 0===r?void 0:r.map((function(e){var t;return n.createElement(o,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return n.createElement(o,{key:t})}))),n.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null),n.createElement(s,null))))}},2248:(e,t,a)=>{a.d(t,{L:()=>p});var n=a(32735),r=a(60376),c=a(83914),l=a(2786),i=a(83345),o=a(72639),s=a(79967),u=a(35223),m=a(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var v="onboarding.mockLayout";function f(){return n.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},n.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),n.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function p(e){var t,a,p=(0,s.k)();return n.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&n.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},n.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},n.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},n.createElement("h2",{className:"h6 text-start"},n.createElement(i.x,{namespace:v,phrase:"curriculum"})),e.curriculum?n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},n.createElement(r.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"text-start"},e.curriculum.name)):n.createElement("div",{className:"d-flex align-items-center text-muted"},n.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},n.createElement(r.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),n.createElement(i.x,{namespace:v,phrase:"selectCurriculum"}))))),n.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},n.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),n.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),n.createElement("div",{className:"rounded-circle ".concat(d.dot)})),n.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},n.createElement("div",{className:"".concat(d.logo," me-4")},p.xs?n.createElement(l.bc,null):n.createElement(l.$S,null)),n.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},n.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&n.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},n.createElement(r.f,{imageUrl:null===(a=e.curriculum.cover)||void 0===a?void 0:a.url}))),n.createElement("div",{className:"d-flex ".concat(d.belowHeader)},n.createElement("div",{className:"".concat(d.leftNav," border-end")},n.createElement("div",{className:"d-flex flex-column pt-3 h-100"},n.createElement(f,null),n.createElement(f,null),n.createElement(f,null),n.createElement(f,null),n.createElement(f,null),n.createElement("div",{className:"d-flex align-items-end h-100 w-100"},n.createElement("div",{className:"border-top p-3 w-100"},n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case o.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case o.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case o.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},n.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?n.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):n.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},n.createElement(i.x,{namespace:v,phrase:"schoolLevel"}))))))),n.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},62007:(e,t,a)=>{a.d(t,{u:()=>u});var n=a(32735),r=a(5465),c=a(72188),l=a(54610),i=a(2248);const o={banner:"CQxNy",title:"NzV5V",description1:"kjCZi",description2:"cBeyJ",placeholder:"Ks_Tl",playlistName:"eFPqz",thumbnailCol:"dgCQ7",videoInfoCol:"pzfE2"};function s(e){return n.createElement("li",{className:"row mb-2"},n.createElement("div",{className:"col-lg-4 col-5 ".concat(o.thumbnailCol)},e.video?n.createElement(c.u,{video:e.video,type:"cosmetic",hideDuration:!0,imageOptions:{size:l.h2.Small}}):n.createElement(r.oy,{type:r.mS.Video,extraClasses:"position-relative rounded-3 ".concat(o.placeholder)})),n.createElement("div",{className:"col-lg-8 col-7 ".concat(o.videoInfoCol)},n.createElement("div",{className:"".concat(o.title," rounded-pill bg-grey mb-1")}),n.createElement("div",{className:"".concat(o.description1," rounded-pill bg-grey mb-1")}),n.createElement("div",{className:"".concat(o.description2," rounded-pill bg-grey mb-1")})))}function u(e){var t,a,r,c=e.hidePlaceholders?0:Math.max(6-(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.length)&&void 0!==a?a:0),0);return n.createElement(i.L,{presentation:e.presentation,curriculum:e.curriculum},n.createElement("div",{className:"bg-teal ".concat(o.banner," position-relative")},e.name&&n.createElement("div",{className:"h5 text-white mb-0 ".concat(o.playlistName)},e.name)),n.createElement("ul",{className:"list-unstyled mb-0 w-100 p-2"},null===(r=e.videos)||void 0===r?void 0:r.map((function(e){return n.createElement(s,{key:e.id,video:e})})),new Array(c).fill(0).map((function(e,t){return n.createElement(s,{key:t})}))))}},81217:(e,t,a)=>{a.r(t),a.d(t,{OnboardingCompletedLoaderView:()=>H});var n=a(32735),r=a(57900),c=a(2948),l=a(20354),i=a(2158),o=a(21750),s=a(86702),u=a(82817),m=a(86698),d=a(83345),v=a(63478),f=a(24250),p=a(81886),h=a(14070),E=a(97291);function g(e){n.useEffect((function(){var t=window.setTimeout((function(){p.Q.C$.trigger({application:E.O.DASHBOARD,action:h.e.Dashboard.HOME})}),e);return function(){window.clearTimeout(t)}}),[])}const b={loaderText:"acbPl"};var y="onboarding.advisorVideoLoader";function N(){return g(4e3),n.createElement(v.B,{variant:"blue"},n.createElement("h1",{className:"h-100 w-100 d-flex align-items-center justify-content-center text-white h3 mb-3 position-relative ".concat(b.loaderText)},n.createElement(d.x,{namespace:y,phrase:"takingYouToClickView"})),n.createElement(f.R,{screenSize:"100%",variant:"blue"}))}var w=a(99742);const x={content:"qggDl",imageContainer:"lqHIJ"};var D="onboarding.contactSalesLoader";function S(){return g(4e3),n.createElement(v.B,{variant:"blue"},n.createElement("div",{className:"".concat(x.content," text-center")},n.createElement("div",{className:"".concat(x.imageContainer," mx-auto")},n.createElement("img",{className:"img-fluid",src:w.W.OnboardingV2.ContactSales.LOADER})),n.createElement("h1",{className:"h-100 w-100 d-flex align-items-center justify-content-center text-white h3"},n.createElement(d.x,{namespace:D,phrase:"heading"}))),n.createElement(f.R,{screenSize:"100%",variant:"blue"}))}var C=a(62007),j=a(96347);function T(){n.useEffect((function(){(0,j.p)("tsparticles",{count:500,drift:25,origin:{x:50,y:100},position:{x:50,y:100},startVelocity:100,ticks:100,gravity:3})}),[])}const O={playlistContainer:"J5iom",confetti:"Ja1bk",discover:"njFgx"};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var A="onboarding.creatingPlaylistLoader",L=5e3;function P(e){var t,a,r=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(t,a)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?k(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=r[0],l=r[1];return T(),n.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),L);return function(){window.clearTimeout(e)}}),[]),n.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:E.O.DASHBOARD,action:h.e.Dashboard.HOME})}),L);return function(){window.clearTimeout(e)}}}),[c]),c?n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(O.playlistContainer," ").concat(O.discover)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:A,phrase:"takingYouToDiscover"})),n.createElement(C.u,{presentation:e.presentation,curriculum:e.curriculum,videos:e.videos,name:e.name,hidePlaceholders:!0})),n.createElement(f.R,{screenSize:"100%",variant:"dark-blue"})):n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(O.playlistContainer," ").concat(O.confetti)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:A,phrase:"greatJob"}),n.createElement("br",null),n.createElement(d.x,{namespace:A,phrase:"creatingPlaylist"})),n.createElement(C.u,{presentation:e.presentation,curriculum:e.curriculum,videos:e.videos,name:e.name,hidePlaceholders:!0})))}var I=a(49036);const B={container:"GVDR9"};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var z="onboarding.defaultLoader",V=5e3;function U(e){var t,a,r=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(t,a)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?R(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=r[0],l=r[1];return T(),n.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),V);return function(){window.clearTimeout(e)}}),[]),n.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:E.O.DASHBOARD,action:h.e.Dashboard.HOME})}),V);return function(){window.clearTimeout(e)}}}),[c]),c?n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(B.container)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:z,phrase:"takingYouToDiscover"})),n.createElement(I.Y,{presentation:e.presentation,curriculum:e.curriculum,subjects:e.subjects})),n.createElement(f.R,{screenSize:"100%",variant:"dark-blue"})):n.createElement(v.B,{variant:"dark-blue"},n.createElement("div",{className:"".concat(B.container)},n.createElement("h1",{className:"text-white h3 text-center mb-3"},n.createElement(d.x,{namespace:z,phrase:"allDone"})),n.createElement(I.Y,{presentation:e.presentation,subjects:e.subjects,curriculum:e.curriculum})))}var _=a(67963);function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?F(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function H(){var e=(0,_.u)(),t=(0,i.T)(e).getPathway,a=M((0,c.D)(s.y.ONBOARDING_LOADER,{}),1)[0],d=M((0,c.D)(s.y.ONBOARDING_VIDEOS,[],{storage:r.Z1.LocalStorage}),1)[0],v=(0,m.y)().preferredPresentation,f=(0,u.M)().activeCurriculum,p=l.a.useBasicFetch(o.x.classifications()),h=n.useMemo((function(){switch(t().currentScreen){case"create-playlist":return"create-playlist";case"advisor-video":return"advisor-video";case"contact-sales":return"contact-sales";default:return"default"}}),[]);return"default"===h?n.createElement(U,{subjects:p.data,presentation:v,curriculum:f}):"create-playlist"===h?n.createElement(P,{name:a.playlistName,videos:d,presentation:v,curriculum:f}):"advisor-video"===h?n.createElement(N,null):"contact-sales"===h?n.createElement(S,null):n.createElement(n.Fragment,null)}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 5442-7790521d8c-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5442],{84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},76153:(t,e,r)=>{r.d(e,{F:()=>v});var n=r(63093),o=r(33003),i=r.n(o),a=r(84789),c=r(86664);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function C(){}var E={};s(E,a,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(_([])));x&&x!==r&&n.call(x,a)&&(E=x);var S=C.prototype=b.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function r(o,i,a,c){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,n);if("normal"===l.type){if(o=n.done?y:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function _(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=s(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,s(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(N.prototype),s(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new N(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),s(S,l,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function h(t,e,r){var n;return n=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==u(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={k12:"Primary & Secondary"},p={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},m=h(h({},a.X.Auth,"auth.web"),a.X.Lite,"lite.web"),v={getClient:function(t){var e,r,o,i,a,u;return o=this,i=void 0,a=void 0,u=f().mark((function o(){var i,a,u,l,s,h;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=t.brazeConfig,a=t.geoLocation,u=t.version,l=i[c.I.getInstanceRegion(null==a?void 0:a.countryCode)],s=m[t.productName],h=(0,n.getInstance)({baseUrl:l.url,apiKey:l.apiKey,productVersion:u,productName:s,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&h.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),o.abrupt("return",h);case 6:case"end":return o.stop()}}),o)})),new(a||(a=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof a?o:new a((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,i||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return i().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=l(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=l(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),h({},n,o===Object(o)?v.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return n.ProductFormEvent.ProductTrailRequested},getProductFormEventType:function(){return"product_form_submission"},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return d[e]||t}},parseProvince:function(t){return t.length?p[t.toLowerCase()]||t:""}}},86664:(t,e,r)=>{r.d(e,{I:()=>u});var n=r(83765),o=r(93824),i=["uk","gb","gg","im","je","ie"],a={au:o.C.AU,nz:o.C.NZ,us:o.C.US,uk:o.C.UK,gb:o.C.UK,gg:o.C.UK,im:o.C.UK,je:o.C.UK,ie:o.C.UK},c={au:n.M.CvApSoutheast1,uk:n.M.CvEuWest1,us:n.M.CvNaWest1,nz:n.M.CvApSoutheast2},u={getInstanceRegion:function(t){var e=u.getCountryCode(t);return c[e]},getCountryCode:function(t){return a[null==t?void 0:t.toLowerCase()]||o.C.US},isCountryCodeUK:function(t){return i.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===o.C.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===o.C.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===o.C.NZ},isSupportedCountryCode:function(t){return Object.keys(a).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return u.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":u.isCountryCodeAU(t)||u.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":u.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=u.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}}},93824:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}))},74887:(t,e,r)=>{r.d(e,{f:()=>a});var n=r(32735),o=r(11607);const i={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function a(t){return n.createElement("ul",{className:"list-unstyled mb-3"},t.options.map((function(e){return n.createElement("li",{key:e.id,className:"".concat(i.option," mb-2 border border-2 rounded-3 ").concat(t.selection===e.id?"border-dark bg-light-blue":"border-transparent")},n.createElement(o.L,{onClick:function(){return t.setSelection(e.id)},className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(e.colourClass," ").concat(i.icon)},n.createElement("img",{src:e.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},e.title),n.createElement("p",{className:"mb-0 ".concat(i.description)},e.description))))})))}},12058:(t,e,r)=>{r.d(e,{X:()=>o});var n=r(32735);function o(t){return n.createElement("p",{className:t.className},t.children)}},11572:(t,e,r)=>{r.r(e),r.d(e,{OnboardingContactSalesView:()=>T});var n=r(32735),o=r(63093),i=r(23481),a=r(20354),c=r(84789),u=r(76153),l=r(83345),s=r(39151),f=r(1666),h=r(31949),d=r(99742),p=r(99940),m={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:p.k.POST,data:{email:t}}}},v=r(75359),y=r(74887),g=r(12058),b=r(27583),w=r(73190),C=r(36669),E=r(17762);const L={imageContainer:"QqX1V",topImage:"mjPRy",bottomImage:"uHwHs",info:"dNDnN"};function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var C=Object.getPrototypeOf,E=C&&C(C(_([])));E&&E!==r&&n.call(E,a)&&(w=E);var L=b.prototype=y.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==x(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function _(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(N.prototype),l(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new N(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(L),l(L,u,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function k(t,e,r){var n;return n=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==x(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j,U=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},P="onboarding.contactSales",A=i.T.encloseNamespace(P),_="product_onboarding_submission";!function(t){t.BookADemo="Book a demo",t.RequestPricing="Request pricing",t.ContactUs="Onboarding contact us"}(j||(j={}));var F=[{id:j.BookADemo,imageUrl:d.W.OnboardingV2.ContactSales.BOOK_DEMO_ICON,colourClass:"bg-yellow",title:A("bookDemo"),description:A("bookDemoInfo")},{id:j.RequestPricing,imageUrl:d.W.OnboardingV2.ContactSales.REQUEST_PRICING_ICON,colourClass:"bg-teal",title:A("requestPricing"),description:A("requestPricingInfo")},{id:j.ContactUs,imageUrl:d.W.OnboardingV2.ContactSales.OTHER_ICON,colourClass:"bg-dark-blue",title:A("other"),description:A("otherInfo")}];function T(){var t=(0,w.Q)(),e=t.onClickBack,r=t.exitOnboarding,i=t.completeStepAsync,p=t.onSaveError,x=a.a.useBasicFetch(h.N.currentUser()),O=a.a.useBasicFetch(x.data&&h.N.user(x.data.id)),T=a.a.useBasicFetch(s.L.version()),I=a.a.useBasicFetch(s.L.config()),G=a.a.useBasicFetch(x.data&&f.h.customer(x.data.customerId)),K=a.a.useBasicFetch(C.t.currentProspect()),B=a.a.useBasicFetch(x.data&&m.checkEmail(x.data.email)),R=(0,E.M)(),z=N(n.useState(),2),D=z[0],q=z[1],M=N(n.useState(""),2),W=M[0],X=M[1],V=N(n.useState(""),2),Y=V[0],Z=V[1];function H(){switch(D){case j.BookADemo:return"book_a_demo";case j.RequestPricing:return"request_pricing";case j.ContactUs:return"other"}}return n.createElement(b.z,{namespace:P},n.createElement(b.z.Left,{className:"bg-blue d-flex align-items-center"},n.createElement("div",{className:"px-5"},n.createElement("img",{className:"img-fluid",src:d.W.OnboardingV2.ContactSales.BACKGROUND}))),n.createElement(b.z.Right,{hasCustomButtons:!1,onClickNext:function(){var t,e,r,n,a,l,s,f,h,d,m,v,y,g,b,w,C,E,L,N;return U(this,void 0,void 0,S().mark((function j(){var P,A,F,z,q=this;return S().wrap((function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.next=3,u.F.getClient({brazeConfig:I.data.braze,geoLocation:R.isFallback?{countryCode:null!==(e=null===(t=x.data)||void 0===t?void 0:t.countryCode)&&void 0!==e?e:R.countryCode}:R,productName:c.X.Lite,version:T.data});case 3:(P=j.sent).setUser(u.F.hashedEmail(null===(r=O.data)||void 0===r?void 0:r.email)),P.openSession(),P.setUserFirstName(null===(n=O.data)||void 0===n?void 0:n.name),P.setUserLastName(null===(a=O.data)||void 0===a?void 0:a.surname),P.setUserPhone(W),P.setUserEmail(null===(l=O.data)||void 0===l?void 0:l.email),A=u.F.removeEmptyKeys(k(k(k(k({},o.DefaultUserAttributes.Email,null===(s=O.data)||void 0===s?void 0:s.email),o.DefaultUserAttributes.FirstName,null===(f=O.data)||void 0===f?void 0:f.name),o.DefaultUserAttributes.LastName,null===(h=O.data)||void 0===h?void 0:h.surname),o.DefaultUserAttributes.Phone,W)),F=u.F.removeEmptyKeys(k(k(k(k(k(k(k({},o.CustomUserAttributes.JobTitle,null===(v=null===(m=null===(d=O.data)||void 0===d?void 0:d.userProfile)||void 0===m?void 0:m.metadata)||void 0===v?void 0:v.jobTitle),o.CustomUserAttributes.AccountName,null===(y=x.data)||void 0===y?void 0:y.customerName),o.CustomUserAttributes.CrmId,null===(g=G.data)||void 0===g?void 0:g.crmId),o.CustomUserAttributes.OrgSubType,u.F.getSchoolType("")),"account_address",{country_code:null===(b=x.data)||void 0===b?void 0:b.countryCode,province:u.F.parseProvince((null===(w=K.data)||void 0===w?void 0:w.province)||"")}),"topic",D),o.CustomUserAttributes.SyncToCrm,!(null===(E=null===(C=B.data)||void 0===C?void 0:C.users)||void 0===E?void 0:E.length))),z=u.F.removeEmptyKeys(k(k(k(k({},o.EventUserAttributes.AccountCity,null===(L=K.data)||void 0===L?void 0:L.city),o.EventUserAttributes.AccountState,null===(N=K.data)||void 0===N?void 0:N.province),o.EventUserAttributes.ContactUsComment,Y),"form_type",H())),P.bulkSetCustomUserAttributes(F),P.logEvent({type:_,data:Object.assign(Object.assign(Object.assign({},A),F),z)}),P.sendData((function(t){return U(q,void 0,void 0,S().mark((function e(){return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return p(),e.abrupt("return",Promise.reject());case 3:return e.prev=3,e.next=6,i();case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),p(),e.abrupt("return",Promise.reject());case 12:case"end":return e.stop()}}),e,null,[[3,8]])})))})),j.next=22;break;case 18:return j.prev=18,j.t0=j.catch(0),p(),j.abrupt("return",Promise.reject());case 22:case"end":return j.stop()}}),j,null,[[0,18]])})))},onClickBack:e,onClickComeBackLater:r,disableNext:!D||!W||!O.data||D===j.ContactUs&&!Y,nextText:A("contactSales")},n.createElement(v.W,{className:"mb-0"},n.createElement(l.x,{phrase:"heading"})),n.createElement(g.X,{className:"".concat(L.info," mb-0 mt-1")},n.createElement(l.x,{phrase:"info"})),n.createElement(g.X,{className:"fw-semibold mt-3 mb-1"},n.createElement(l.x,{phrase:"howCanWeHelp"})),n.createElement(y.f,{options:F,selection:D,setSelection:function(t){q(t)}}),n.createElement("label",{htmlFor:"phone-number"},A("phoneNumber"),n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"phone-number",name:"phone-number",className:"form-control form-control-lg mb-3",type:"tel",value:W,onChange:function(t){return X(t.target.value)},placeholder:A("phoneNumberPlaceholder")}),n.createElement("label",{htmlFor:"other-information"},A("otherLabel"),D===j.ContactUs&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"other-information",name:"other-information",className:"form-control form-control-lg",value:Y,onChange:function(t){return Z(t.target.value)},placeholder:A("otherPlaceholder")})))}},36669:(t,e,r)=>{r.d(e,{t:()=>n});var n={currentProspect:function(){return{url:"/api/prospects/current",key:"prospect:current"}},getLookups:function(t){return{url:"/api/prospects/".concat(t,"/lookups"),key:"prospect:".concat(t)}}}},17762:(t,e,r)=>{r.d(e,{M:()=>a});var n=r(20354),o=r(39151),i={countryCode:"us",isFallback:!0};function a(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasCompleted&&!t.data?i:t.data}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7293],{91200:(e,t,a)=>{a.d(t,{Y:()=>c});var n=a(32735),r=a(68050),i=a(69111),l=a(84231);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function c(e){var t,a=function(e){if(Array.isArray(e))return o(e)}(t=Array(e.numItems))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}}(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.")}(),c=e.itemClassName||"";return n.createElement(n.Fragment,null,e.showHeading&&n.createElement("div",{className:"".concat(l.Z.partialHeading," mb-1 partial-loading-background")}),n.createElement(r.Z,{className:"mx-n1 mb-n2"},a.map((function(e,t){return n.createElement(i.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(c," px-1 pb-2")},n.createElement("div",{className:"".concat(l.Z.playlistItem," partial-loading-background rounded-3")}))}))))}c.defaultProps={numItems:8}},48745:(e,t,a)=>{a.d(t,{t:()=>A});var n=a(32735),r=a(82602),i=a(23481),l=a(110),o=a(65858),c=a(83345);const s={fontSmall:"OYBRp"};var u="playlists.playlistCount";function m(e){var t=function(e){var t,a,n,r,i,l;return!!e&&(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==a?a:0)+(null!==(r=null===(n=e.interactives)||void 0===n?void 0:n.count)&&void 0!==r?r:0)+(null!==(l=null===(i=e.clips)||void 0===i?void 0:i.count)&&void 0!==l?l:0)}(e.playlist);return!1===t||Number.isNaN(t)?n.createElement(n.Fragment,null):n.createElement("span",{className:s.fontSmall},n.createElement(c.x,{namespace:u,phrase:"count",options:{smartCount:t}}))}var d=a(20789),v=a(89725),g=a(55452);function f(e){var t,a,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewPlaylist)||void 0===t?void 0:t.value)return n.createElement(v.F,null);if(!(null==i?void 0:i.id)||!(null===(a=e.currentUser)||void 0===a?void 0:a.id))return n.createElement(n.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return n.createElement(n.Fragment,null);var l="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return n.createElement(d.q,{imageUrl:l,imageCdnUrl:e.imageCdnUrl,initials:g.l.getInitials(i.name,i.surname)})}var p=a(36848),y=a(40955),h=a(75163),b=a(5465),w=a(54610),E=a(80143),C=a(9085),S=a(67453),N=a(84231),j="playlists.playlistList";function A(e){var t,a,c=S.j.createUrl(e.data.cover&&e.data.cover.url,{size:w.h2.Medium,resizeType:w.Nq.Cover}),s=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,u=(0,E.n)(s,e.presentationAudiences),d=N.Z.playlistItem,v=!!c||!!e.showFallbackImage;v&&(d+=" ".concat(N.Z.playlistItemGradient)),!v&&e.bgColourClassNames&&(d+=" ".concat(N.Z.playlistItem," ").concat((0,C.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(d+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(d+=" rounded-start-lg overflow-hidden");var g=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(a=e.data)||void 0===a?void 0:a.name}),A=Object.assign(Object.assign({},e.analyticsOptions),{entity:o.py.Playlist});return n.createElement(p.F,{appLink:e.appLink,analyticsData:g,analyticsOptions:A,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewPlaylist)||void 0===t?void 0:t.value)?"":i.T.getPhrase(j,"lastUpdated",{timeago:(0,r.WU)(l.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},n.createElement(h.Z,{data:c,alt:e.data.name,className:d},!!e.showFallbackImage&&n.createElement(b.oy,{type:b.mS.Playlist}),n.createElement("div",{className:"text-white ".concat(N.Z.playlistMetadata)},!!e.showCount&&n.createElement(m,{playlist:e.data}),n.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},n.createElement("span",{className:"clamp-2"},e.data.name)),!!s&&!!s.length&&!!u&&n.createElement(y.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:u,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&n.createElement("div",{className:N.Z.ownerAvatarContainer},n.createElement(f,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}A.defaultProps={itemStyle:"square"}},31273:(e,t,a)=>{a.d(t,{P:()=>s});var n=a(32735),r=a(68050),i=a(69111),l=a(65858),o=a(48745),c={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function s(e){return n.createElement(r.Z,{className:"mx-n1"},e.extraPlaylistItem&&n.createElement(i.Z,{key:"extra-playlist-item",xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},e.extraPlaylistItem),e.playlists.map((function(t){return n.createElement(i.Z,{key:t.id,xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},n.createElement(o.t,{data:t,appLink:e.getPlaylistAppLink(t),imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,presentationAudiences:e.presentationAudiences,bgColourClassNames:e.bgColourClassNames,showCount:e.showCount,showOwner:e.showOwner,showFallbackImage:e.showFallbackImage,titleClassName:e.itemTitleClassName,itemStyle:e.itemStyle,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),c)}))})))}},98981:(e,t,a)=>{a.d(t,{YA:()=>n.Y,tN:()=>r.t});var n=a(91200),r=(a(31273),a(48745))},3626:(e,t,a)=>{a.d(t,{J:()=>S});var n=a(32735),r=a(68050),i=a(69111),l=a(49985),o=a(65858),c=a(40955),s=a(76246),u=a(17464),m=a(96022),d=a(72188),v=a(47325),g=a(90927),f=a(85784),p=a(70872),y=a(54610),h=a(68626),b=a(78479),w=a(80143),E=a(31908);const C={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",description:"zejMP",details:"MRyVe"};function S(e){var t,a=e.video,S=e.presentationAudiences,N=e.videoAppLink,j=e.seriesAppLink,A=e.hideInteractiveBadge,O=null===(t=null==a?void 0:a.subjectPresentationAudiences)||void 0===t?void 0:t.data,I=(0,w.n)(O,S),x=(null==a?void 0:a.series)&&!!(null==a?void 0:a.series.id),T=l.k.mergeOptions(e.analyticsOptions,{location:o.LZ.ClassificationHero,entity:E.M.getAnalyticsEntity(a)}),k=n.useRef();return a?n.createElement(r.Z,null,n.createElement(i.Z,{xs:12,md:6},n.createElement("div",{ref:k},n.createElement(d.u,{analyticsData:e.analyticsData,analyticsOptions:T,video:a,appLink:N,seriesAppLink:x?j:null,imageOptions:{size:y.h2.Medium},textPosition:h.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?I:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!I}))),n.createElement(i.Z,{xs:12,md:6,className:"".concat(C.details," position-relative")},n.createElement(f.Q,{analyticsData:e.analyticsData,analyticsOptions:T,video:a}),n.createElement(m.Mr,{analyticsData:e.analyticsData,analyticsOptions:T,video:a,appLink:j,className:"text-reset"}),n.createElement(p.u,{video:a,analyticsData:e.analyticsData,analyticsOptions:T,appLink:N,linkClassName:"d-inline-block",textClassName:"h4",yearGroups:e.yearGroups}),"info-panel"===e.badgePosition&&n.createElement(u.c,{className:"pb-1"},!A&&n.createElement(s.C,{type:s.g.Interactive,data:a.interactives}),n.createElement(s.C,{type:s.g.Rating,data:a.rating}),n.createElement(s.C,{type:s.g.ProductionYear,data:a.productionYear})),n.createElement("p",{className:"mb-1"},n.createElement("span",{className:C.description},a.description)),"info-panel"===e.badgePosition&&n.createElement(c.P,{audience:I,className:"mt-1",border:"dark"}),e.showVideoGuidance&&n.createElement("div",{className:"d-flex ".concat(C.guidance)},n.createElement(g.N,{containerRef:k,widgetTemplate:b.f.ThumbnailFeaturedMedia,video:a,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),n.createElement(v.I,{containerRef:k,widgetTemplate:b.f.ThumbnailFeaturedMedia,video:a,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))):n.createElement(n.Fragment,null)}S.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},34004:(e,t,a)=>{a.d(t,{r:()=>v});var n=a(32735),r=a(40955),i=a(76246),l=a(75163),o=a(5465),c=a(54610),s=a(49439),u=a(80143);const m={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",largeHoverDescription:"Uh4gM",smallHoverDescription:"TiqqV"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function v(e){var t,a,v=(t=(0,s.L)({className:m.hoverActive}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?d(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=v[0],f=v[1],p=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],y=(0,u.n)(p,e.presentationAudiences),h=!!(p&&p.length&&y);return n.createElement("div",{ref:g},f&&n.createElement("div",{className:"py-3 text-white text-center mb-3 ".concat(m.mask)},n.createElement("h3",{className:"fw-semibold ".concat(m.hoverTitle," ").concat(e.isSmall?m.smallHoverTitle:m.largeHoverTitle)},n.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&n.createElement("p",{className:"".concat(m.hoverDescription," ").concat(e.isSmall?m.smallHoverDescription:m.largeHoverDescription," mb-0")},e.series.description)),n.createElement(l.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:c.__.TallPosters,preload:e.preloadImage,imageOptions:{size:c.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},n.createElement(o.oy,{type:o.mS.Series}),n.createElement("div",{className:"position-absolute text-white ".concat(m.labelContainer)},h?n.createElement(r.P,{audience:y,border:"white"}):n.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}},87648:(e,t,a)=>{a.d(t,{$:()=>i});var n=a(32735);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var i=function(e){var t,a,i=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],o=i[1];return n.useEffect((function(){o(!!e)}),[e]),{active:l,setActive:o}}},47721:(e,t,a)=>{a.d(t,{j:()=>m});var n=a(32735),r=a(98495),i=a(83914),l=a(79967),o=a(92310);const c={header:"kiea4",icon:"C3rvx"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var u=52;function m(e){var t,a,m,d,v=(m=n.useState(!1),d=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(m,d)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}(m,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=v[0],f=v[1],p=(0,l.k)(),y=null===(a=null===(t=e.containerRef)||void 0===t?void 0:t.current)||void 0===a?void 0:a.getBoundingClientRect(),h=o.w.getMaxHeight(y,e.widgetTemplate,p),b=o.w.getWidth(y,e.widgetTemplate,p);return n.createElement("div",{className:"bg-white rounded-3 box-shadow overflow-hidden",style:Object.assign({maxHeight:h},b)},n.createElement("div",{className:"".concat(c.header," d-flex align-items-center px-3 py-2 ").concat(g?"box-shadow":"")},n.createElement("div",{className:"".concat(c.icon," bg-").concat(e.iconVariant," text-white rounded-circle")},n.createElement(i.x,{svgName:e.svgName,size:i.S.Large})),n.createElement("h2",{className:"h6 mb-0 ps-2"},e.heading)),n.createElement(r.ZP,{onUpdate:function(e){var t=e.top;g&&0===t?f(!1):!g&&t>0&&f(!0)},autoHeight:!0,autoHeightMax:h-u},n.createElement("div",{className:"pb-3 px-3"},e.children)))}},956:(e,t,a)=>{a.d(t,{C:()=>u});var n=a(32735),r=a(12788),i=a(79967),l=a(49439),o=a(92310);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var u=n.forwardRef((function(e,t){var a=c(n.useState(!1),2),s=a[0],u=a[1],m=c(n.useState(null),2),d=m[0],v=m[1],g=n.useRef(),f=c((0,l.X)(),2),p=f[0],y=f[1],h=(0,i.k)(),b=n.useCallback((function(){y||e.show||e.tagIsHovering?u(!0):(u(!1),v(null))}),[y,e.show,e.tagIsHovering]),w=n.useCallback((function(){var a,n,r,i,l=null===(a=g.current)||void 0===a?void 0:a.getBoundingClientRect(),c=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect(),s=null===(i=null===(r=e.containerRef)||void 0===r?void 0:r.current)||void 0===i?void 0:i.getBoundingClientRect();if(l){var u=o.w.getPositionStyles(e.widgetTemplate,l,s,c,h);v(u)}}),[g.current,t.current,e.containerRef,e.widgetTemplate,h]);if(n.useEffect((function(){var e=setTimeout(b,150),t=setTimeout(w,200);return function(){clearTimeout(e),clearTimeout(t)}}),[b,w]),!t.current)return n.createElement(n.Fragment,null);var E=e.childComponent;return s?(0,r.createPortal)(n.createElement("div",{ref:p,className:"gZ3Ae",style:d},n.createElement(E,Object.assign({ref:g,isShowing:s&&d},e.childProps))),document.body):n.createElement(n.Fragment,null)}))},47325:(e,t,a)=>{a.d(t,{I:()=>p});var n=a(32735),r=a(956),i=a(87648),l=a(23481),o=a(47721),c=a(35223),s=a(75931),u=l.T.encloseNamespace("shared.whatsIncluded"),m=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(o.j,{iconVariant:"blue",heading:u("whatsIncluded"),svgName:c.vn.Video,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},n.createElement(s.V,{video:e.video,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.imageErrorFallbackUrl,isShowing:e.isShowing})))})),d=a(6296),v=a(49439),g=a(31908);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function p(e){var t,a,l=(t=(0,v.L)({delay:50}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?f(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=l[0],c=l[1],s=(0,i.$)(c),u=s.active,p=s.setActive;return n.useMemo((function(){return g.M.showWhatsIncluded(e.video)}),[e.video])?n.createElement(n.Fragment,null,n.createElement(d.V,{ref:o,active:u}),n.createElement(r.C,{childComponent:m,childProps:{video:e.video,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},show:u,ref:o,setActive:p,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate,tagIsHovering:c})):n.createElement(n.Fragment,null)}},90927:(e,t,a)=>{a.d(t,{N:()=>p});var n=a(32735),r=a(956),i=a(87648),l=a(23481),o=a(47721),c=a(35223),s=a(38803),u=l.T.encloseNamespace("shared.whyThisVideo"),m=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(o.j,{iconVariant:"navy",heading:u("whyThisVideo"),svgName:c.vn.StarOutline,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},n.createElement(s.p,{video:e.video,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest})))})),d=a(16226),v=a(49439),g=a(31908);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function p(e){var t,a,l=(t=(0,v.L)({delay:50}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?f(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=l[0],c=l[1],s=(0,i.$)(c),u=s.active,p=s.setActive;return n.useMemo((function(){return g.M.showWhyThisVideo(e.video)}),[e.video])?n.createElement(n.Fragment,null,n.createElement(d.A,{ref:o,active:u}),n.createElement(r.C,{childComponent:m,childProps:{video:e.video,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest},show:u,ref:o,setActive:p,tagIsHovering:c,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate})):n.createElement(n.Fragment,null)}},2192:(e,t,a)=>{a.d(t,{M:()=>p,Q:()=>y});var n=a(32735),r=a(45157),i=a(36848),l=a(60376),o=a(5465),c=a(83914),s=a(83345),u=a(54610),m=a(67453),d=a(35223),v=a(92038),g=function(e){var t=e.name,a=e.multiline,r="".concat(v.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),i="";return a?i+=" ".concat(v.Z.clamped," clamp-2"):(r+=" text-nowrap",i+=" text-truncate"),n.createElement("div",{className:r},n.createElement("small",{className:"text-muted"},n.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),n.createElement("p",{className:"".concat(v.Z.name," h6")},n.createElement("span",{className:i},t)))},f=function(e){var t=e.name,a=e.multiline,r=e.subtitle,i="px-3 d-flex flex-column justify-content-center",l="".concat(v.Z.name," h6");return a?l+=" clamp-2 text-start":(i+=" text-nowrap text-truncate",l+=" text-truncate mb-0 pb-1"),n.createElement("div",{className:i},r&&n.createElement("div",{className:"text-secondary clamp-1 ".concat(v.Z.text)},r),n.createElement("div",{className:l,title:a?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),a={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return n.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(v.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},e.isSelected&&n.createElement("div",{className:"".concat(v.Z.selectedMask," border-2")}),n.createElement("div",{className:"".concat(v.Z.imagePanel," ").concat(e.isLarge?v.Z.large:"")},e.isSelected&&n.createElement("div",{className:v.Z.selected},n.createElement(l.f,{svgName:d.vn.Check,svgSize:c.S.Large,textVariant:"white",variant:"green"})),n.createElement("div",{className:"".concat(v.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&n.createElement(o.oy,{type:o.mS.Subject,extraClasses:e.isLarge?v.Z.large:""})),e.isComingSoon?n.createElement(g,Object.assign({},a)):n.createElement(f,Object.assign({},a)))}function y(e){var t,a=e.getChildAppLink?e.getChildAppLink(e.data):null;return n.createElement(n.Fragment,null,a?n.createElement(i.F,{className:v.Z.appLink,appLink:a,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},n.createElement(p,Object.assign({},e))):n.createElement(p,Object.assign({},e)))}},43741:(e,t,a)=>{a.d(t,{M:()=>s,Q:()=>c});var n=a(32735),r=a(45157),i=a(5465),l=a(92038);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var c=function(){var e,t,a=(e=n.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(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.")}())[0];return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:l.Z.imagePanel}),n.createElement("div",{className:"px-2",style:{width:a}}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject})))},s=function(){return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:"".concat(l.Z.partialLargeImage)}),n.createElement("div",{className:"px-2"}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject,extraClasses:l.Z.partialLargeFallback})))}},91028:(e,t,a)=>{a.d(t,{V:()=>c});var n=a(32735),r=a(65858),i=a(2192),l=a(52641),o=a(2284),c=n.memo((function(e){var t,a,c,s,u,m=(null===(t=e.data)||void 0===t?void 0:t.status)===o.W.ComingSoon,d=function(e,t){var a;if((null==t?void 0:t.length)>=l._.MULTI_PRESENTATION_THRESHOLD)return null===(a=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===a?void 0:a.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),v=Object.assign(Object.assign({},e.analyticsData),{id:null===(a=e.data)||void 0===a?void 0:a.id,name:null===(c=e.data)||void 0===c?void 0:c.name,presentationId:e.data.presentationId,comingSoon:!!m}),g=Object.assign(Object.assign({location:r.LZ.ClassificationListItem},e.analyticsOptions),{actionType:r.Vw.Click,entity:r.py.Classification,descriptor:r._S.Cover});return n.createElement(i.Q,Object.assign({},e,{analyticsData:v,analyticsOptions:g,coverUrl:null===(s=e.data.cover)||void 0===s?void 0:s.url,subtitle:(null===(u=e.getSubtitle)||void 0===u?void 0:u.call(e,e.data))||d,isComingSoon:m}))}))},9513:(e,t,a)=>{a.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>n.V});var n=a(91028),r=a(43741),i=(a(32735),a(65858));a(36848),a(83914),a(83345),a(35223),a(92038),i.Vw.Click,i.py.UserSetting,i._S.Tile,a(2786),i.Vw.Click,i.py.Url,i._S.Tile},2284:(e,t,a)=>{var n;a.d(t,{W:()=>n}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(n||(n={}))},92310:(e,t,a)=>{a.d(t,{w:()=>i});var n=a(78479),r=function(e){return e.xs||e.sm},i={getPositionStyles:function(e,t,a,i,l){var o={padding:"".concat(10,"px 0"),visibility:"visible"},c=i.top-a.bottom;if(r(l)){var s=t.height+c+20,u=document.documentElement.clientWidth-a.right+10,m=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:m,right:u,height:s})}switch(e){case n.f.ThumbnailHeroMedia:var d=t.height+(c+20),v=document.documentElement.clientWidth-a.right+10,g=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:g,right:v,height:d});case n.f.ThumbnailFeaturedMedia:var f=t.height+20,p=document.documentElement.clientWidth-a.right-t.width-20,y=a.bottom+window.scrollY-t.height-i.height-20;return Object.assign(Object.assign({},o),{top:y,right:p,height:f});case n.f.ThumbnailFixedListMediaLarge:var h=a.height+c,b=document.documentElement.clientWidth-a.right+10,w=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:w,right:b,height:h})}},getMaxHeight:function(e,t,a){return r(a)?(null==e?void 0:e.height)-20:t===n.f.ThumbnailFeaturedMedia?(null==e?void 0:e.height)-52+20:(null==e?void 0:e.height)-20},getWidth:function(e,t,a){if(r(a))return{width:e.width-20};switch(t){case n.f.ThumbnailHeroMedia:return{width:480,maxWidth:e.width-20};case n.f.ThumbnailFeaturedMedia:return{width:null==e?void 0:e.width};case n.f.ThumbnailFixedListMediaLarge:return{width:(null==e?void 0:e.width)-20}}}}},84231:(e,t,a)=>{a.d(t,{Z:()=>n});const n={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},92038:(e,t,a)=>{a.d(t,{Z:()=>n});const n={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"}},82602:(e,t,a)=>{a.d(t,{WU:()=>s});var n=["second","minute","hour","day","week","month","year"],r=["秒","分钟","小时","天","周","个月","年"],i={},l=function(e,t){i[e]=t},o=[60,60,24,7,365/7/12,12];function c(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var s=function(e,t,a){var n=function(e,t){return(+(t?c(t):new Date)-+c(e))/1e3}(e,a&&a.relativeDate);return function(e,t){for(var a=e<0?1:0,n=e=Math.abs(e),r=0;e>=o[r]&&r<o.length;r++)e/=o[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,n)[a].replace("%s",e.toString())}(n,function(e){return i[e]||i.en_US}(t))};l("en_US",(function(e,t){if(0===t)return["just now","right now"];var a=n[Math.floor(t/2)];return e>1&&(a+="s"),[e+" "+a+" ago","in "+e+" "+a]})),l("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var a=r[~~(t/2)];return[e+" "+a+"前",e+" "+a+"后"]}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7293],{91200:(e,t,a)=>{a.d(t,{Y:()=>c});var n=a(32735),r=a(68050),i=a(69111),l=a(84231);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function c(e){var t,a=function(e){if(Array.isArray(e))return o(e)}(t=Array(e.numItems))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}}(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.")}(),c=e.itemClassName||"";return n.createElement(n.Fragment,null,e.showHeading&&n.createElement("div",{className:"".concat(l.Z.partialHeading," mb-1 partial-loading-background")}),n.createElement(r.Z,{className:"mx-n1 mb-n2"},a.map((function(e,t){return n.createElement(i.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(c," px-1 pb-2")},n.createElement("div",{className:"".concat(l.Z.playlistItem," partial-loading-background rounded-3")}))}))))}c.defaultProps={numItems:8}},48745:(e,t,a)=>{a.d(t,{t:()=>A});var n=a(32735),r=a(82602),i=a(23481),l=a(110),o=a(65858),c=a(83345);const s={fontSmall:"OYBRp"};var u="playlists.playlistCount";function m(e){var t=function(e){var t,a,n,r,i,l;return!!e&&(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==a?a:0)+(null!==(r=null===(n=e.interactives)||void 0===n?void 0:n.count)&&void 0!==r?r:0)+(null!==(l=null===(i=e.clips)||void 0===i?void 0:i.count)&&void 0!==l?l:0)}(e.playlist);return!1===t||Number.isNaN(t)?n.createElement(n.Fragment,null):n.createElement("span",{className:s.fontSmall},n.createElement(c.x,{namespace:u,phrase:"count",options:{smartCount:t}}))}var d=a(20789),v=a(89725),g=a(55452);function f(e){var t,a,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewPlaylist)||void 0===t?void 0:t.value)return n.createElement(v.F,null);if(!(null==i?void 0:i.id)||!(null===(a=e.currentUser)||void 0===a?void 0:a.id))return n.createElement(n.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return n.createElement(n.Fragment,null);var l="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return n.createElement(d.q,{imageUrl:l,imageCdnUrl:e.imageCdnUrl,initials:g.l.getInitials(i.name,i.surname)})}var p=a(36848),y=a(40955),h=a(75163),b=a(5465),w=a(54610),E=a(80143),C=a(9085),S=a(67453),N=a(84231),j="playlists.playlistList";function A(e){var t,a,c=S.j.createUrl(e.data.cover&&e.data.cover.url,{size:w.h2.Medium,resizeType:w.Nq.Cover}),s=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,u=(0,E.n)(s,e.presentationAudiences),d=N.Z.playlistItem,v=!!c||!!e.showFallbackImage;v&&(d+=" ".concat(N.Z.playlistItemGradient)),!v&&e.bgColourClassNames&&(d+=" ".concat(N.Z.playlistItem," ").concat((0,C.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(d+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(d+=" rounded-start-lg overflow-hidden");var g=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(a=e.data)||void 0===a?void 0:a.name}),A=Object.assign(Object.assign({},e.analyticsOptions),{entity:o.py.Playlist});return n.createElement(p.F,{appLink:e.appLink,analyticsData:g,analyticsOptions:A,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewPlaylist)||void 0===t?void 0:t.value)?"":i.T.getPhrase(j,"lastUpdated",{timeago:(0,r.WU)(l.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},n.createElement(h.Z,{data:c,alt:e.data.name,className:d},!!e.showFallbackImage&&n.createElement(b.oy,{type:b.mS.Playlist}),n.createElement("div",{className:"text-white ".concat(N.Z.playlistMetadata)},!!e.showCount&&n.createElement(m,{playlist:e.data}),n.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},n.createElement("span",{className:"clamp-2"},e.data.name)),!!s&&!!s.length&&!!u&&n.createElement(y.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:u,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&n.createElement("div",{className:N.Z.ownerAvatarContainer},n.createElement(f,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}A.defaultProps={itemStyle:"square"}},31273:(e,t,a)=>{a.d(t,{P:()=>s});var n=a(32735),r=a(68050),i=a(69111),l=a(65858),o=a(48745),c={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function s(e){return n.createElement(r.Z,{className:"mx-n1"},e.extraPlaylistItem&&n.createElement(i.Z,{key:"extra-playlist-item",xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},e.extraPlaylistItem),e.playlists.map((function(t){return n.createElement(i.Z,{key:t.id,xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},n.createElement(o.t,{data:t,appLink:e.getPlaylistAppLink(t),imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,presentationAudiences:e.presentationAudiences,bgColourClassNames:e.bgColourClassNames,showCount:e.showCount,showOwner:e.showOwner,showFallbackImage:e.showFallbackImage,titleClassName:e.itemTitleClassName,itemStyle:e.itemStyle,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),c)}))})))}},98981:(e,t,a)=>{a.d(t,{YA:()=>n.Y,tN:()=>r.t});var n=a(91200),r=(a(31273),a(48745))},3626:(e,t,a)=>{a.d(t,{J:()=>S});var n=a(32735),r=a(68050),i=a(69111),l=a(49985),o=a(65858),c=a(40955),s=a(76246),u=a(17464),m=a(96022),d=a(72188),v=a(47325),g=a(90927),f=a(85784),p=a(70872),y=a(54610),h=a(68626),b=a(78479),w=a(80143),E=a(31908);const C={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",description:"zejMP",details:"MRyVe"};function S(e){var t,a=e.video,S=e.presentationAudiences,N=e.videoAppLink,j=e.seriesAppLink,A=e.hideInteractiveBadge,O=null===(t=null==a?void 0:a.subjectPresentationAudiences)||void 0===t?void 0:t.data,I=(0,w.n)(O,S),x=(null==a?void 0:a.series)&&!!(null==a?void 0:a.series.id),T=l.k.mergeOptions(e.analyticsOptions,{location:o.LZ.ClassificationHero,entity:E.M.getAnalyticsEntity(a)}),k=n.useRef();return a?n.createElement(r.Z,null,n.createElement(i.Z,{xs:12,md:6},n.createElement("div",{ref:k},n.createElement(d.u,{analyticsData:e.analyticsData,analyticsOptions:T,video:a,appLink:N,seriesAppLink:x?j:null,imageOptions:{size:y.h2.Medium},textPosition:h.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?I:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!I}))),n.createElement(i.Z,{xs:12,md:6,className:"".concat(C.details," position-relative")},n.createElement(f.Q,{analyticsData:e.analyticsData,analyticsOptions:T,video:a}),n.createElement(m.Mr,{analyticsData:e.analyticsData,analyticsOptions:T,video:a,appLink:j,className:"text-reset"}),n.createElement(p.u,{video:a,analyticsData:e.analyticsData,analyticsOptions:T,appLink:N,linkClassName:"d-inline-block",textClassName:"h4",yearGroups:e.yearGroups}),"info-panel"===e.badgePosition&&n.createElement(u.c,{className:"pb-1"},!A&&n.createElement(s.C,{type:s.g.Interactive,data:a.interactives}),n.createElement(s.C,{type:s.g.Rating,data:a.rating}),n.createElement(s.C,{type:s.g.ProductionYear,data:a.productionYear})),n.createElement("p",{className:"mb-1"},n.createElement("span",{className:C.description},a.description)),"info-panel"===e.badgePosition&&n.createElement(c.P,{audience:I,className:"mt-1",border:"dark"}),e.showVideoGuidance&&n.createElement("div",{className:"d-flex ".concat(C.guidance)},n.createElement(g.N,{containerRef:k,widgetTemplate:b.f.ThumbnailFeaturedMedia,video:a,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),n.createElement(v.I,{containerRef:k,widgetTemplate:b.f.ThumbnailFeaturedMedia,video:a,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))):n.createElement(n.Fragment,null)}S.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},34004:(e,t,a)=>{a.d(t,{r:()=>v});var n=a(32735),r=a(40955),i=a(76246),l=a(75163),o=a(5465),c=a(54610),s=a(49439),u=a(80143);const m={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",largeHoverDescription:"Uh4gM",smallHoverDescription:"TiqqV"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function v(e){var t,a,v=(t=(0,s.L)({className:m.hoverActive}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?d(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=v[0],f=v[1],p=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],y=(0,u.n)(p,e.presentationAudiences),h=!!(p&&p.length&&y);return n.createElement("div",{ref:g},f&&n.createElement("div",{className:"py-3 text-white text-center mb-3 ".concat(m.mask)},n.createElement("h3",{className:"fw-semibold ".concat(m.hoverTitle," ").concat(e.isSmall?m.smallHoverTitle:m.largeHoverTitle)},n.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&n.createElement("p",{className:"".concat(m.hoverDescription," ").concat(e.isSmall?m.smallHoverDescription:m.largeHoverDescription," mb-0")},e.series.description)),n.createElement(l.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:c.__.TallPosters,preload:e.preloadImage,imageOptions:{size:c.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},n.createElement(o.oy,{type:o.mS.Series}),n.createElement("div",{className:"position-absolute text-white ".concat(m.labelContainer)},h?n.createElement(r.P,{audience:y,border:"white"}):n.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}},87648:(e,t,a)=>{a.d(t,{$:()=>i});var n=a(32735);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var i=function(e){var t,a,i=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],o=i[1];return n.useEffect((function(){o(!!e)}),[e]),{active:l,setActive:o}}},47721:(e,t,a)=>{a.d(t,{j:()=>m});var n=a(32735),r=a(98495),i=a(83914),l=a(79967),o=a(92310);const c={header:"kiea4",icon:"C3rvx"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var u=52;function m(e){var t,a,m,d,v=(m=n.useState(!1),d=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(m,d)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}(m,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=v[0],f=v[1],p=(0,l.k)(),y=null===(a=null===(t=e.containerRef)||void 0===t?void 0:t.current)||void 0===a?void 0:a.getBoundingClientRect(),h=o.w.getMaxHeight(y,e.widgetTemplate,p),b=o.w.getWidth(y,e.widgetTemplate,p);return n.createElement("div",{className:"bg-white rounded-3 box-shadow overflow-hidden",style:Object.assign({maxHeight:h},b)},n.createElement("div",{className:"".concat(c.header," d-flex align-items-center px-3 py-2 ").concat(g?"box-shadow":"")},n.createElement("div",{className:"".concat(c.icon," bg-").concat(e.iconVariant," text-white rounded-circle")},n.createElement(i.x,{svgName:e.svgName,size:i.S.Large})),n.createElement("h2",{className:"h6 mb-0 ps-2"},e.heading)),n.createElement(r.ZP,{onUpdate:function(e){var t=e.top;g&&0===t?f(!1):!g&&t>0&&f(!0)},autoHeight:!0,autoHeightMax:h-u},n.createElement("div",{className:"pb-3 px-3"},e.children)))}},956:(e,t,a)=>{a.d(t,{C:()=>u});var n=a(32735),r=a(12788),i=a(79967),l=a(49439),o=a(92310);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var u=n.forwardRef((function(e,t){var a=c(n.useState(!1),2),s=a[0],u=a[1],m=c(n.useState(null),2),d=m[0],v=m[1],g=n.useRef(),f=c((0,l.X)(),2),p=f[0],y=f[1],h=(0,i.k)(),b=n.useCallback((function(){y||e.show||e.tagIsHovering?u(!0):(u(!1),v(null))}),[y,e.show,e.tagIsHovering]),w=n.useCallback((function(){var a,n,r,i,l=null===(a=g.current)||void 0===a?void 0:a.getBoundingClientRect(),c=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect(),s=null===(i=null===(r=e.containerRef)||void 0===r?void 0:r.current)||void 0===i?void 0:i.getBoundingClientRect();if(l){var u=o.w.getPositionStyles(e.widgetTemplate,l,s,c,h);v(u)}}),[g.current,t.current,e.containerRef,e.widgetTemplate,h]);if(n.useEffect((function(){var e=setTimeout(b,150),t=setTimeout(w,200);return function(){clearTimeout(e),clearTimeout(t)}}),[b,w]),!t.current)return n.createElement(n.Fragment,null);var E=e.childComponent;return s?(0,r.createPortal)(n.createElement("div",{ref:p,className:"gZ3Ae",style:d},n.createElement(E,Object.assign({ref:g,isShowing:s&&d},e.childProps))),document.body):n.createElement(n.Fragment,null)}))},47325:(e,t,a)=>{a.d(t,{I:()=>p});var n=a(32735),r=a(956),i=a(87648),l=a(23481),o=a(47721),c=a(35223),s=a(75931),u=l.T.encloseNamespace("shared.whatsIncluded"),m=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(o.j,{iconVariant:"blue",heading:u("whatsIncluded"),svgName:c.vn.Video,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},n.createElement(s.V,{video:e.video,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.imageErrorFallbackUrl,isShowing:e.isShowing})))})),d=a(6296),v=a(49439),g=a(31908);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function p(e){var t,a,l=(t=(0,v.L)({delay:50}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?f(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=l[0],c=l[1],s=(0,i.$)(c),u=s.active,p=s.setActive;return n.useMemo((function(){return g.M.showWhatsIncluded(e.video)}),[e.video])?n.createElement(n.Fragment,null,n.createElement(d.V,{ref:o,active:u}),n.createElement(r.C,{childComponent:m,childProps:{video:e.video,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},show:u,ref:o,setActive:p,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate,tagIsHovering:c})):n.createElement(n.Fragment,null)}},90927:(e,t,a)=>{a.d(t,{N:()=>p});var n=a(32735),r=a(956),i=a(87648),l=a(23481),o=a(47721),c=a(35223),s=a(38803),u=l.T.encloseNamespace("shared.whyThisVideo"),m=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(o.j,{iconVariant:"navy",heading:u("whyThisVideo"),svgName:c.vn.StarOutline,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},n.createElement(s.p,{video:e.video,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest})))})),d=a(16226),v=a(49439),g=a(31908);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function p(e){var t,a,l=(t=(0,v.L)({delay:50}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?f(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=l[0],c=l[1],s=(0,i.$)(c),u=s.active,p=s.setActive;return n.useMemo((function(){return g.M.showWhyThisVideo(e.video)}),[e.video])?n.createElement(n.Fragment,null,n.createElement(d.A,{ref:o,active:u}),n.createElement(r.C,{childComponent:m,childProps:{video:e.video,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest},show:u,ref:o,setActive:p,tagIsHovering:c,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate})):n.createElement(n.Fragment,null)}},2192:(e,t,a)=>{a.d(t,{M:()=>p,Q:()=>y});var n=a(32735),r=a(45157),i=a(36848),l=a(60376),o=a(5465),c=a(83914),s=a(83345),u=a(54610),m=a(67453),d=a(35223),v=a(92038),g=function(e){var t=e.name,a=e.multiline,r="".concat(v.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),i="";return a?i+=" ".concat(v.Z.clamped," clamp-2"):(r+=" text-nowrap",i+=" text-truncate"),n.createElement("div",{className:r},n.createElement("small",{className:"text-muted"},n.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),n.createElement("p",{className:"".concat(v.Z.name," h6")},n.createElement("span",{className:i},t)))},f=function(e){var t=e.name,a=e.multiline,r=e.subtitle,i="px-3 d-flex flex-column justify-content-center",l="".concat(v.Z.name," h6");return a?l+=" clamp-2 text-start":(i+=" text-nowrap text-truncate",l+=" text-truncate mb-0 pb-1"),n.createElement("div",{className:i},r&&n.createElement("div",{className:"text-secondary clamp-1 ".concat(v.Z.text)},r),n.createElement("div",{className:l,title:a?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),a={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return n.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(v.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},e.isSelected&&n.createElement("div",{className:"".concat(v.Z.selectedMask," border-2")}),n.createElement("div",{className:"".concat(v.Z.imagePanel," ").concat(e.isLarge?v.Z.large:"")},e.isSelected&&!e.hideCheckmark&&n.createElement("div",{className:v.Z.selected},n.createElement(l.f,{svgName:d.vn.Check,svgSize:c.S.Large,textVariant:"white",variant:"green"})),n.createElement("div",{className:"".concat(v.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&n.createElement(o.oy,{type:o.mS.Subject,extraClasses:e.isLarge?v.Z.large:""})),e.isComingSoon?n.createElement(g,Object.assign({},a)):n.createElement(f,Object.assign({},a)))}function y(e){var t,a=e.getChildAppLink?e.getChildAppLink(e.data):null;return n.createElement(n.Fragment,null,a?n.createElement(i.F,{className:v.Z.appLink,appLink:a,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},n.createElement(p,Object.assign({},e))):n.createElement(p,Object.assign({},e)))}},43741:(e,t,a)=>{a.d(t,{M:()=>s,Q:()=>c});var n=a(32735),r=a(45157),i=a(5465),l=a(92038);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var c=function(){var e,t,a=(e=n.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(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.")}())[0];return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:l.Z.imagePanel}),n.createElement("div",{className:"px-2",style:{width:a}}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject})))},s=function(){return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:"".concat(l.Z.partialLargeImage)}),n.createElement("div",{className:"px-2"}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject,extraClasses:l.Z.partialLargeFallback})))}},91028:(e,t,a)=>{a.d(t,{V:()=>c});var n=a(32735),r=a(65858),i=a(2192),l=a(52641),o=a(2284),c=n.memo((function(e){var t,a,c,s,u,m=(null===(t=e.data)||void 0===t?void 0:t.status)===o.W.ComingSoon,d=function(e,t){var a;if((null==t?void 0:t.length)>=l._.MULTI_PRESENTATION_THRESHOLD)return null===(a=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===a?void 0:a.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),v=Object.assign(Object.assign({},e.analyticsData),{id:null===(a=e.data)||void 0===a?void 0:a.id,name:null===(c=e.data)||void 0===c?void 0:c.name,presentationId:e.data.presentationId,comingSoon:!!m}),g=Object.assign(Object.assign({location:r.LZ.ClassificationListItem},e.analyticsOptions),{actionType:r.Vw.Click,entity:r.py.Classification,descriptor:r._S.Cover});return n.createElement(i.Q,Object.assign({},e,{analyticsData:v,analyticsOptions:g,coverUrl:null===(s=e.data.cover)||void 0===s?void 0:s.url,subtitle:(null===(u=e.getSubtitle)||void 0===u?void 0:u.call(e,e.data))||d,isComingSoon:m}))}))},9513:(e,t,a)=>{a.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>n.V});var n=a(91028),r=a(43741),i=(a(32735),a(65858));a(36848),a(83914),a(83345),a(35223),a(92038),i.Vw.Click,i.py.UserSetting,i._S.Tile,a(2786),i.Vw.Click,i.py.Url,i._S.Tile},2284:(e,t,a)=>{var n;a.d(t,{W:()=>n}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(n||(n={}))},92310:(e,t,a)=>{a.d(t,{w:()=>i});var n=a(78479),r=function(e){return e.xs||e.sm},i={getPositionStyles:function(e,t,a,i,l){var o={padding:"".concat(10,"px 0"),visibility:"visible"},c=i.top-a.bottom;if(r(l)){var s=t.height+c+20,u=document.documentElement.clientWidth-a.right+10,m=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:m,right:u,height:s})}switch(e){case n.f.ThumbnailHeroMedia:var d=t.height+(c+20),v=document.documentElement.clientWidth-a.right+10,g=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:g,right:v,height:d});case n.f.ThumbnailFeaturedMedia:var f=t.height+20,p=document.documentElement.clientWidth-a.right-t.width-20,y=a.bottom+window.scrollY-t.height-i.height-20;return Object.assign(Object.assign({},o),{top:y,right:p,height:f});case n.f.ThumbnailFixedListMediaLarge:var h=a.height+c,b=document.documentElement.clientWidth-a.right+10,w=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:w,right:b,height:h})}},getMaxHeight:function(e,t,a){return r(a)?(null==e?void 0:e.height)-20:t===n.f.ThumbnailFeaturedMedia?(null==e?void 0:e.height)-52+20:(null==e?void 0:e.height)-20},getWidth:function(e,t,a){if(r(a))return{width:e.width-20};switch(t){case n.f.ThumbnailHeroMedia:return{width:480,maxWidth:e.width-20};case n.f.ThumbnailFeaturedMedia:return{width:null==e?void 0:e.width};case n.f.ThumbnailFixedListMediaLarge:return{width:(null==e?void 0:e.width)-20}}}}},84231:(e,t,a)=>{a.d(t,{Z:()=>n});const n={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},92038:(e,t,a)=>{a.d(t,{Z:()=>n});const n={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"}},82602:(e,t,a)=>{a.d(t,{WU:()=>s});var n=["second","minute","hour","day","week","month","year"],r=["秒","分钟","小时","天","周","个月","年"],i={},l=function(e,t){i[e]=t},o=[60,60,24,7,365/7/12,12];function c(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var s=function(e,t,a){var n=function(e,t){return(+(t?c(t):new Date)-+c(e))/1e3}(e,a&&a.relativeDate);return function(e,t){for(var a=e<0?1:0,n=e=Math.abs(e),r=0;e>=o[r]&&r<o.length;r++)e/=o[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,n)[a].replace("%s",e.toString())}(n,function(e){return i[e]||i.en_US}(t))};l("en_US",(function(e,t){if(0===t)return["just now","right now"];var a=n[Math.floor(t/2)];return e>1&&(a+="s"),[e+" "+a+" ago","in "+e+" "+a]})),l("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var a=r[~~(t/2)];return[e+" "+a+"前",e+" "+a+"后"]}))}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 7791-8141407cfd-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7791],{49602:(e,t,n)=>{var r;n.d(t,{b:()=>c}),function(e){e[e.None=0]="None",e[e.AllSubjects=1]="AllSubjects",e[e.AllLevels=2]="AllLevels",e[e.AllSubjectsAndAllLevels=3]="AllSubjectsAndAllLevels"}(r||(r={}));var a=n(25925),c={hasManyPresentationTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0,n=0;return null==e||e.forEach((function(e){e.type===a.R.Subject?t++:e.type===a.R.Curriculum&&n++})),{hasManySubjectPresentations:t>1,hasManyCurriculumPresentations:n>1}},getBulkPreferencesState:function(e){return e===r.AllSubjectsAndAllLevels?{levels:!0,subjects:!0}:{levels:e===r.AllLevels,subjects:e===r.AllSubjects}},hasBulkSelectedLevels:function(e){return e===r.AllLevels||e===r.AllSubjectsAndAllLevels},hasBulkSelectedTopics:function(e){return e===r.AllSubjects||e===r.AllSubjectsAndAllLevels},getNextBulkState:function(e,t){var n=r.None,a=r.AllSubjects,c=r.AllLevels,l=r.AllSubjectsAndAllLevels,o="topics"===t;switch(e){case n:default:return o?a:c;case a:return o?n:l;case c:return o?l:n;case l:return o?c:a}}}},2192:(e,t,n)=>{n.d(t,{M:()=>p,Q:()=>g});var r=n(32735),a=n(45157),c=n(36848),l=n(60376),o=n(5465),i=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),f=n(92038),v=function(e){var t=e.name,n=e.multiline,a="".concat(f.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),c="";return n?c+=" ".concat(f.Z.clamped," clamp-2"):(a+=" text-nowrap",c+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},h=function(e){var t=e.name,n=e.multiline,a=e.subtitle,c="px-3 d-flex flex-column justify-content-center",l="".concat(f.Z.name," h6");return n?l+=" clamp-2 text-start":(c+=" text-nowrap text-truncate",l+=" text-truncate mb-0 pb-1"),r.createElement("div",{className:c},a&&r.createElement("div",{className:"text-secondary clamp-1 ".concat(f.Z.text)},a),r.createElement("div",{className:l,title:n?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return r.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(f.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(a.Y.getRandomInt())},e.isSelected&&r.createElement("div",{className:"".concat(f.Z.selectedMask," border-2")}),r.createElement("div",{className:"".concat(f.Z.imagePanel," ").concat(e.isLarge?f.Z.large:"")},e.isSelected&&!e.hideCheckmark&&r.createElement("div",{className:f.Z.selected},r.createElement(l.f,{svgName:d.vn.Check,svgSize:i.S.Large,textVariant:"white",variant:"green"})),r.createElement("div",{className:"".concat(f.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&r.createElement(o.oy,{type:o.mS.Subject,extraClasses:e.isLarge?f.Z.large:""})),e.isComingSoon?r.createElement(v,Object.assign({},n)):r.createElement(h,Object.assign({},n)))}function g(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return r.createElement(r.Fragment,null,n?r.createElement(c.F,{className:f.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},r.createElement(p,Object.assign({},e))):r.createElement(p,Object.assign({},e)))}},75919:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",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)},r.createElement("div",{className:function(){var t=a.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(a.above," ").concat(a.left);break;case"top-right":t+=" ".concat(a.above," ").concat(a.right);break;case"bottom-left":t+=" ".concat(a.below," ").concat(a.left);break;case"bottom-right":t+=" ".concat(a.below," ").concat(a.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},49036:(e,t,n)=>{n.d(t,{Y:()=>u});var r=n(32735),a=n(54610),c=n(67453),l=n(2248);const o={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(o.subjectPlaceholder)},e.coverUrl?r.createElement("div",{className:o.placeholderCover},r.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):r.createElement("div",{className:"".concat(o.placeholderCover," bg-light-blue")})))}function s(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(o.promotedTopicPlaceholder)}))}function u(e){var t,n,a,c=Math.max(12-(null!==(n=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(l.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},r.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},r.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},r.createElement("div",{className:"bg-light ".concat(o.magicTab)}),r.createElement("div",{className:"".concat(o.magicTab)})),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(a=e.subjects)||void 0===a?void 0:a.map((function(e){var t;return r.createElement(i,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return r.createElement(i,{key:t})}))),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>h});var r=n(32735),a=n(60376),c=n(83914),l=n(2786),o=n(83345),i=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function h(e){var t,n,h=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(o.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(o.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},h.xs?r.createElement(l.bc,null):r.createElement(l.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case i.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case i.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case i.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(o.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},59158:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSubjectsView:()=>F});var r=n(32735),a=n(23481),c=n(20354),l=n(60736),o=n(64534),i=n(2158),s=n(49602),u=n(11607),m=n(83345),d=n(2192),f=n(54610),v=n(77963),h=n(65728),p=n(61699),g=n(31949),b=n(37802),y=n(67453),E=n(10144),N=n(99742),x=n(82817),w=n(86698),L=n(75359),S=n(27583),j=n(75919),k=n(49036),P=n(73190),A=n(67963);const C={selected:"igx0Y",disabled:"nDUWB"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function I(){I=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",o=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var c=t&&t.prototype instanceof g?t:g,l=Object.create(c.prototype),o=new C(r||[]);return a(l,"_invoke",{value:j(e,n,o)}),l}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",v="executing",h="completed",p={};function g(){}function b(){}function y(){}var E={};s(E,l,(function(){return this}));var N=Object.getPrototypeOf,x=N&&N(N(T([])));x&&x!==n&&r.call(x,l)&&(E=x);var w=y.prototype=g.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(a,c,l,o){var i=m(e[a],e,c);if("throw"!==i.type){var s=i.arg,u=s.value;return u&&"object"==O(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,o)}),(function(e){n("throw",e,l,o)})):t.resolve(u).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,o)}))}o(i.arg)}var c;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return c=c?c.then(a,a):a()}})}function j(t,n,r){var a=d;return function(c,l){if(a===v)throw new Error("Generator is already running");if(a===h){if("throw"===c)throw l;return{value:e,done:!0}}for(r.method=c,r.arg=l;;){var o=r.delegate;if(o){var i=k(o,r);if(i){if(i===p)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?h:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function k(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var c=m(a,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,p;var l=c.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}throw new TypeError(O(t)+" is not iterable")}return b.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,i,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},L(S.prototype),s(S.prototype,o,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var l=new S(u(e,n,r,a),c);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},L(w),s(w,i,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return o.type="throw",o.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c],o=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var i=r.call(l,"catchLoc"),s=r.call(l,"finallyLoc");if(i&&s){if(this.prev<l.catchLoc)return a(l.catchLoc,!0);if(this.prev<l.finallyLoc)return a(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return a(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return a(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var c=a;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var l=c?c.completion:{};return l.type=e,l.arg=t,c?(this.method="next",this.next=c.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,c,l,o=[],i=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=c.call(n)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(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 _(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 U=function(e,t,n,r){return new(n||(n=Promise))((function(a,c){function l(e){try{i(r.next(e))}catch(e){c(e)}}function o(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}i((r=r.apply(e,t||[])).next())}))},B="onboarding.subjects";function F(){var e,t=(0,A.u)(),n=(0,i.T)(t).getPathway,O=c.a.useBasicFetch(g.N.currentUser()),_=(0,w.y)().preferredPresentation,F=c.a.useGetFetchAsync(),Z=(0,P.Q)(),z=Z.onClickBack,M=Z.exitOnboarding,G=Z.onSaveError,R=Z.completeStepAsync,Y=(0,x.M)().activeCurriculum,H=n(),V=o.H[H.currentScreen],W=(0,b.r)(V.analyticsLocation),D=W.updateSettingAsync,J=W.bulkOnboardingPreferencesState,Q=c.a.useBasicFetch(p.o.allSubjectPreferences()),q=c.a.useBasicFetch(p.o.mySubjectPreferences()),K=s.b.hasBulkSelectedTopics(J),X=T(r.useState([]),2),$=X[0],ee=X[1],te=T(r.useState(K),2),ne=te[0],re=te[1],ae=null===(e=Q.data)||void 0===e?void 0:e.filter((function(e){var t;return!!(null===(t=l.A[e.presentationId])||void 0===t?void 0:t[e.id])}));return r.useEffect((function(){var e;q.hasCompleted&&(null===(e=q.data)||void 0===e?void 0:e.length)&&(ne||ee(q.data))}),[q.hasCompleted]),r.createElement(S.z,{namespace:B},r.createElement(S.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(j.N,{annotationUrl:N.W.OnboardingV2.Subjects.ANNOTATION,annotationPosition:"top-right",annotationClassName:"me-5"},r.createElement(k.Y,{presentation:_,subjects:ne?ae:$,curriculum:Y}))),r.createElement(S.z.Right,{hasCustomButtons:!1,onClickNext:function(){return U(this,void 0,void 0,I().mark((function e(){var t,n,r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=[],ne!==K&&t.push(D(O.data.id,{name:h.E.BulkOnboardingPreferencesState,value:s.b.getNextBulkState(J,"topics"),kind:v.g.Permanent})),ne||(n=$.filter((function(e){return!q.data.find((function(t){return t.id===e.id}))})),r=q.data.filter((function(e){return!$.find((function(t){return t.id===e.id}))})),(null==n?void 0:n.length)&&t.push(F(p.o.followSubjects(n.map((function(e){return e.id}))))),(null==r?void 0:r.length)&&t.push(F(p.o.unfollowSubjects(r.map((function(e){return e.id})))))),e.next=6,Promise.all(t);case 6:return e.next=8,R();case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(0),G(),e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))},onClickBack:z,onClickComeBackLater:M,disableNext:!$.length&&!ne},r.createElement(L.W,null,r.createElement(m.x,{phrase:"heading"})),r.createElement("p",null,r.createElement(m.x,{phrase:"addMoreLater"})),r.createElement("ul",{className:"list-unstyled row g-2 mb-0"},r.createElement("li",{className:"col-12 col-sm-6 col-md-4 col-lg-6"},r.createElement(u.L,{onClick:function(){ne||ee([]),re(!ne)}},r.createElement(d.M,{data:{name:a.T.getPhrase(B,"allSubjects")},coverUrl:E.i.getPresentationLevelImage(_.learningLevel,"cover"),isSelected:ne,multiline:!0}))),null==ae?void 0:ae.map((function(e){var t,n=!!$.find((function(t){return t.id===e.id})),a="";return ne?a+="cursor-default ".concat(C.disabled):n&&(a+=C.selected),r.createElement("li",{key:e.id,className:"col-12 col-sm-6 col-md-4 col-lg-6"},r.createElement(u.L,{onClick:function(){return function(e){ne||($.find((function(t){return t.id===e.id}))?ee($.filter((function(t){return t.id!==e.id}))):ee($.concat(e)))}(e)},disabled:ne,className:a},r.createElement(d.M,{data:e,coverUrl:y.j.createUrl(null===(t=e.cover)||void 0===t?void 0:t.url,{size:f.h2.Small}),isSelected:n,multiline:!0})))})))))}},92038:(e,t,n)=>{n.d(t,{Z:()=>r});const r={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 7877-f8a7a4c607-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7877],{2192:(e,t,n)=>{n.d(t,{M:()=>p,Q:()=>g});var r=n(32735),a=n(45157),c=n(36848),o=n(60376),l=n(5465),i=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),f=n(92038),v=function(e){var t=e.name,n=e.multiline,a="".concat(f.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),c="";return n?c+=" ".concat(f.Z.clamped," clamp-2"):(a+=" text-nowrap",c+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},h=function(e){var t=e.name,n=e.multiline,a=e.subtitle,c="px-3 d-flex flex-column justify-content-center",o="".concat(f.Z.name," h6");return n?o+=" clamp-2 text-start":(c+=" text-nowrap text-truncate",o+=" text-truncate mb-0 pb-1"),r.createElement("div",{className:c},a&&r.createElement("div",{className:"text-secondary clamp-1 ".concat(f.Z.text)},a),r.createElement("div",{className:o,title:n?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return r.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(f.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(a.Y.getRandomInt())},e.isSelected&&r.createElement("div",{className:"".concat(f.Z.selectedMask," border-2")}),r.createElement("div",{className:"".concat(f.Z.imagePanel," ").concat(e.isLarge?f.Z.large:"")},e.isSelected&&!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(h,Object.assign({},n)))}function g(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return r.createElement(r.Fragment,null,n?r.createElement(c.F,{className:f.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},r.createElement(p,Object.assign({},e))):r.createElement(p,Object.assign({},e)))}},12058:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(32735);function a(e){return r.createElement("p",{className:e.className},e.children)}},75919:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",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)},r.createElement("div",{className:function(){var t=a.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(a.above," ").concat(a.left);break;case"top-right":t+=" ".concat(a.above," ").concat(a.right);break;case"bottom-left":t+=" ".concat(a.below," ").concat(a.left);break;case"bottom-right":t+=" ".concat(a.below," ").concat(a.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},49036:(e,t,n)=>{n.d(t,{Y:()=>u});var r=n(32735),a=n(54610),c=n(67453),o=n(2248);const l={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(l.subjectPlaceholder)},e.coverUrl?r.createElement("div",{className:l.placeholderCover},r.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):r.createElement("div",{className:"".concat(l.placeholderCover," bg-light-blue")})))}function s(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(l.promotedTopicPlaceholder)}))}function u(e){var t,n,a,c=Math.max(12-(null!==(n=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(o.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},r.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},r.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},r.createElement("div",{className:"bg-light ".concat(l.magicTab)}),r.createElement("div",{className:"".concat(l.magicTab)})),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(a=e.subjects)||void 0===a?void 0:a.map((function(e){var t;return r.createElement(i,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return r.createElement(i,{key:t})}))),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>h});var r=n(32735),a=n(60376),c=n(83914),o=n(2786),l=n(83345),i=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function h(e){var t,n,h=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(l.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(l.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},h.xs?r.createElement(o.bc,null):r.createElement(o.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case i.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case i.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case i.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(l.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},1039:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSchoolLevelView:()=>k});var r=n(32735),a=n(57900),c=n(2948),o=n(11607),l=n(83345),i=n(2192),s=n(38143),u=n(99742),m=n(86698),d=n(75359),f=n(12058),v=n(27583),h=n(75919),p=n(49036),g=n(73190);const y={cover:"p3PFT",presentationList:"PT_ec"};function E(e){return E="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},E(e)}function b(){b=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},o=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var c=t&&t.prototype instanceof g?t:g,o=Object.create(c.prototype),l=new _(r||[]);return a(o,"_invoke",{value:P(e,n,l)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",v="executing",h="completed",p={};function g(){}function y(){}function x(){}var N={};s(N,o,(function(){return this}));var w=Object.getPrototypeOf,L=w&&w(w(T([])));L&&L!==n&&r.call(L,o)&&(N=L);var k=x.prototype=g.prototype=Object.create(N);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"==E(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(i.arg)}var c;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return c=c?c.then(a,a):a()}})}function P(t,n,r){var a=d;return function(c,o){if(a===v)throw new Error("Generator is already running");if(a===h){if("throw"===c)throw o;return{value:e,done:!0}}for(r.method=c,r.arg=o;;){var l=r.delegate;if(l){var i=C(l,r);if(i){if(i===p)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?h:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var c=m(a,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,p;var o=c.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}throw new TypeError(E(t)+" is not iterable")}return y.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:y,configurable:!0}),y.displayName=s(x,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,x):(e.__proto__=x,s(e,i,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var o=new j(u(e,n,r,a),c);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),s(k,i,"Generator"),s(k,o,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var c=this.tryEntries.length-1;c>=0;--c){var o=this.tryEntries[c],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var c=a;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var o=c?c.completion:{};return o.type=e,o.arg=t,c?(this.method="next",this.next=c.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;I(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function x(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 N(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)?N(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(e,t,n,r){return new(n||(n=Promise))((function(a,c){function o(e){try{i(r.next(e))}catch(e){c(e)}}function l(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}i((r=r.apply(e,t||[])).next())}))},L="onboarding.schoolLevel";function k(){var e=(0,g.Q)(),t=e.onClickBack,n=e.exitOnboarding,E=e.completeStepAsync,N=e.onSaveError,k=(0,m.y)(),S=k.availablePresentations,j=k.preferredPresentation,P=k.setPresentation,C=x((0,c.D)(s.g.AUDIENCE_FILTER,void 0,{storage:a.Z1.SessionStorage}),2)[1],O=x(r.useState(j),2),I=O[0],_=O[1];return r.createElement(v.z,{namespace:L},r.createElement(v.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(h.N,{contentPosition:"right",annotationUrl:u.W.OnboardingV2.SchoolLevel.ANNOTATION,annotationPosition:"bottom-left"},r.createElement(p.Y,{presentation:I}))),r.createElement(v.z.Right,{hasCustomButtons:!1,onClickNext:function(){return w(this,void 0,void 0,b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(null),e.prev=1,e.next=4,P(I,"activeAndPreferred");case 4:return e.next=6,E({preferredPresentationOverride:I});case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(1),N(),e.abrupt("return",Promise.reject());case 12:case"end":return e.stop()}}),e,null,[[1,8]])})))},onClickBack:t,onClickComeBackLater:n,disableNext:!I},r.createElement(d.W,null,r.createElement(l.x,{phrase:"heading"})),r.createElement(f.X,null,r.createElement(l.x,{phrase:"dontWorry"})),r.createElement("ul",{className:"list-unstyled mb-3 ".concat(y.presentationList)},S.map((function(e){var t;return r.createElement("li",{key:e.id,className:"mb-2"},r.createElement(o.L,{onClick:function(){return function(e){_(e)}(e)}},r.createElement(i.M,{data:e,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url,imageClassName:y.cover,isSelected:e.id===(null==I?void 0:I.id)})))})))))}},92038:(e,t,n)=>{n.d(t,{Z:()=>r});const r={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 8296-eb7c394089-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8296],{74887:(e,t,r)=>{r.d(t,{f:()=>i});var n=r(32735),o=r(11607);const a={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function i(e){return n.createElement("ul",{className:"list-unstyled mb-3"},e.options.map((function(t){return n.createElement("li",{key:t.id,className:"".concat(a.option," mb-2 border border-2 rounded-3 ").concat(e.selection===t.id?"border-dark bg-light-blue":"border-transparent")},n.createElement(o.L,{onClick:function(){return e.setSelection(t.id)},className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(t.colourClass," ").concat(a.icon)},n.createElement("img",{src:t.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},t.title),n.createElement("p",{className:"mb-0 ".concat(a.description)},t.description))))})))}},12058:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(32735);function o(e){return n.createElement("p",{className:e.className},e.children)}},75919:(e,t,r)=>{r.d(t,{N:()=>a});var n=r(32735);const o={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function a(e){return n.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(o.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},n.createElement("div",{className:function(){var t=o.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(o.above," ").concat(o.left);break;case"top-right":t+=" ".concat(o.above," ").concat(o.right);break;case"bottom-left":t+=" ".concat(o.below," ").concat(o.left);break;case"bottom-right":t+=" ".concat(o.below," ").concat(o.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},n.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&n.createElement("div",{className:o.divider}));var t}a.defaultProps={contentPosition:"center"}},45038:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(32735),o=r(57245);const a={playerContainer:"w7_Oy",fallback:"xcBuH"};function i(e){return n.createElement("div",{className:"".concat(a.playerContainer," w-100")},e.hasDataLoaded?n.createElement(o._,{config:e.config,video:e.video,currentUser:e.currentUser,shareLink:e.shareLink,viewKey:e.viewKey,onReady:e.onReady,allowPip:!1,allowCreateClip:!1}):n.createElement("div",{className:"".concat(a.fallback," w-100 h-100 bg-light rounded-3 overflow-hidden")}))}},98065:(e,t,r)=>{r.d(t,{x:()=>n});var n={getWelcomeVideo:function(e){return e?e.primaryUrl.includes("staging")?{videoId:"43000110",shareId:"GgX4xD"}:{videoId:"78694940",shareId:"DNBPmD"}:null},getAdvisorVideo:function(e){return e?e.primaryUrl.includes("staging")?{videoId:"43002959",shareId:"b98KVj"}:{videoId:"49331262",shareId:"0DYKrb"}:null}}},92560:(e,t,r)=>{r.r(t),r.d(t,{OnboardingAdvisorVideoView:()=>j});var n=r(32735),o=r(23481),a=r(20354),i=r(50122),c=r(30439),l=r(83345),s=r(19808),u=r(60051),d=r(39151),f=r(47812),h=r(31949),m=r(1575),p=r(79967),v=r(99742),y=r(75359),g=r(74887),b=r(12058),w=r(27583),E=r(75919),x=r(45038),N=r(73190),k=r(98065);const L={headingContainer:"NrAKd",partnerLogos:"jG9GO",infoContainer:"U79xU",options:"Ps0S0"};function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:A(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",m="executing",p="completed",v={};function y(){}function g(){}function b(){}var w={};s(w,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(j([])));x&&x!==r&&n.call(x,i)&&(w=x);var N=b.prototype=y.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,a,i,c){var l=d(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==C(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function A(t,r,n){var o=f;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?p:h,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=p,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=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 U(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(U,this),this.reset(!0)}function j(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(C(t)+" is not iterable")}return g.prototype=b,o(N,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,l,"GeneratorFunction")),e.prototype=Object.create(N),e},t.awrap=function(e){return{__await:e}},k(L.prototype),s(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new L(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(N),s(N,l,"Generator"),s(N,i,(function(){return this})),s(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=j,P.prototype={constructor:P,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(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(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;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))},U="onboarding.advisorVideo",_=o.T.encloseNamespace(U),P=[{id:"contact-us",imageUrl:v.W.OnboardingV2.AdvisorVideo.CONTACT_US_ICON,colourClass:"bg-yellow",title:_("contactUsTitle"),description:_("contactUsDescription")},{id:"check-out-clickview",imageUrl:v.W.OnboardingV2.AdvisorVideo.CHECK_OUT_CLICKVIEW_ICON,colourClass:"bg-purple",title:_("checkOutClickViewTitle"),description:_("checkOutClickViewDescription")}];function j(){var e,t,r=(0,N.Q)(),o=r.completeStepAsync,C=r.onSaveError,j=r.onClickBack,V=r.onClickAreYouATeacher,I=a.a.useBasicFetch(d.L.config()),T=a.a.useBasicFetch(h.N.currentUser()),K=k.x.getAdvisorVideo(I.data),R=a.a.useBasicFetch(K&&m.R.sharedVideo(K.videoId,K.shareId)),B=a.a.useBasicFetch(c.o.getShareObject(K.shareId)),F=a.a.useBasicFetch(f.k.createViewKey(K.shareId,u.f.Share)),G=(e=n.useState(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(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)?A(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.")}()),W=G[0],D=G[1],z=(0,p.k)(),Y=R.data&&T.hasCompleted&&I.hasCompleted&&B.hasCompleted&&F.hasCompleted,H=function(e){switch(e){case s.b.AU:return{heading:_("auPartners"),imageUrl:v.W.OnboardingV2.AdvisorVideo.PARTNERS_AU};case s.b.UK:return{heading:_("ukPartners"),imageUrl:v.W.OnboardingV2.AdvisorVideo.PARTNERS_UK};case s.b.US:return{heading:_("usPartners"),imageUrl:v.W.OnboardingV2.AdvisorVideo.PARTNERS_US};default:return null}}(T.data.instanceRegion),X=z.lg||z.xl||z.xxl;return n.createElement(w.z,{namespace:U},n.createElement(w.z.Left,{className:"bg-blue d-flex justify-content-center flex-column"},X&&n.createElement(E.N,{annotationUrl:v.W.OnboardingV2.AdvisorVideo.ANNOTATION,annotationPosition:"bottom-right"},n.createElement(x.P,{hasDataLoaded:Y,config:I.data,video:R.data,currentUser:T.data,shareLink:B.data,viewKey:F.data}))),n.createElement(w.z.Right,{hasCustomButtons:!1,onClickNext:function(){return S(this,void 0,void 0,O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.m.setAdvisorVideoSelection(W),e.prev=1,e.next=4,o({isExiting:"check-out-clickview"===W});case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),C(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickAreYouATeacher:V,onClickBack:function(){i.m.removeUsageIntention(),j()},disableNext:!W,className:"position-relative"},n.createElement(y.W,{className:"".concat(L.headingContainer)},n.createElement(l.x,{phrase:"heading"})),!X&&n.createElement(x.P,{hasDataLoaded:Y,config:I.data,video:R.data,currentUser:T.data,shareLink:B.data,viewKey:F.data}),n.createElement(b.X,{className:L.infoContainer},n.createElement(l.x,{phrase:"description"})),n.createElement("div",{className:L.options},n.createElement(g.f,{options:P,selection:W,setSelection:D})),!!H&&n.createElement("div",{className:"".concat(L.partnerLogos)},n.createElement("h2",{className:"h6 text-center"},H.heading),n.createElement("div",{className:"w-100 d-flex justify-content-center"},n.createElement("img",{className:"img-fluid",src:H.imageUrl})))))}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 993-7eef290805-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[993],{2158:(t,e,r)=>{r.d(e,{T:()=>s});var n=r(20354),o=r(50122),a=r(25925),i=r(21750),c=r(31949),u=r(37802),l=r(75795);function s(t){var e,r=n.a.useBasicFetch(c.N.currentUser()),s=n.a.useBasicFetch((null===(e=r.data)||void 0===e?void 0:e.isAuthenticated)&&c.N.user(r.data.id)),f=n.a.useBasicFetch(i.x.availablePresentations(a.R.Subject)),h=n.a.useBasicFetch(i.x.presentation(a.R.Subject)),d=n.a.useBasicFetch(i.x.availablePresentations(a.R.Curriculum)),p=r.hasCompleted&&s.hasCompleted&&f.hasCompleted&&d.hasCompleted&&h.hasCompleted,v=(0,u.r)(null).userSettings;return{getPathway:function(){var e,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=a.jobTitleOverride||(null===(n=null===(r=null===(e=s.data)||void 0===e?void 0:e.userProfile)||void 0===r?void 0:r.metadata)||void 0===n?void 0:n.jobTitle),c=a.preferredPresentationOverride||h.data;return o.m.getOnboardingPathway({jobTitle:i,userSettings:v.data,presentations:f.data,curriculums:d.data,preferredPresentation:c,appLink:l.O.getCurrentRoute().appLink,appLinks:t})},hasLoadedPathway:p}}},75359:(t,e,r)=>{r.d(e,{W:()=>a});var n=r(32735);const o={heading:"Y1xND"};function a(t){return n.createElement("h1",{className:"".concat(o.heading," ").concat(t.className)},t.children)}},27583:(t,e,r)=>{r.d(e,{z:()=>m});var n=r(32735),o=r(20354),a=r(64534),i=r(2158),c=r(50122),u=r(2102),l=r(2786),s=r(83345),f=r(31949),h=r(67963);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 T(n||[]);return o(i,"_invoke",{value:P(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var E={};l(E,i,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(A([])));O&&O!==r&&n.call(O,i)&&(E=O);var N=x.prototype=b.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==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){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(d(e)+" is not iterable")}return w.prototype=x,o(N,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(N),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(N),l(N,u,"Generator"),l(N,i,(function(){return this})),l(N,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function 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,i.T)((0,h.u)()).hasLoadedPathway?n.createElement(s.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,d,m,g,b,w=(g=n.useState(!1),b=2,function(t){if(Array.isArray(t))return t}(g)||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}}(g,b)||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}}(g,b)||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.")}()),x=w[0],E=w[1],L=(0,h.u)(),O=(0,(0,i.T)(L).getPathway)(),N=o.a.useBasicFetch(f.N.currentUser()),k=o.a.useBasicFetch((null===(e=N.data)||void 0===e?void 0:e.isAuthenticated)&&f.N.user(N.data.id)),S=n.useMemo((function(){return c.m.getProgress(O)}),[]),P=S.totalScreensInProgressBar,j=S.currentStepProgressBarNumber,C=S.progressBarPercentage,_=a.H[O.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(l.$S,null)),!!_.includeInProgressBar(null===(m=null===(d=null===(r=k.data)||void 0===r?void 0:r.userProfile)||void 0===d?void 0:d.metadata)||void 0===m?void 0:m.jobTitle)&&n.createElement("div",{className:"".concat("sVF6v"," position-absolute rounded-pill bg-light-blue d-flex align-items-center")},n.createElement("div",{className:"yMTpw"},j," / ",P),n.createElement("div",{className:"flex-grow-1 h-50"},n.createElement("div",{className:"h-100 rounded-pill bg-green",style:{width:"".concat(C,"%")}})))),n.createElement("div",{className:"".concat("xKAjJ"," d-flex flex-column justify-content-center h-100")},t.children),!1===t.hasCustomButtons&&n.createElement("div",{className:"position-fixed bg-white d-flex justify-content-between align-items-center ".concat("H5x66")},t.onClickComeBackLater&&n.createElement("button",{className:"btn btn-link btn-lg text-info",onClick:t.onClickComeBackLater},n.createElement(s.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(s.x,{namespace:y,phrase:"areYouATeacher"})),n.createElement("div",{className:"d-flex"},n.createElement("button",{className:"btn btn-outline-dark btn-lg me-2",onClick:t.onClickBack},n.createElement(s.x,{namespace:y,phrase:"back"})),n.createElement(u.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 E(!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),E(!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:x,variant:"dark",size:"lg"},t.nextText?t.nextText:n.createElement(s.x,{namespace:y,phrase:"next"})))))}},73190:(t,e,r)=>{r.d(e,{Q:()=>x});var n=r(81886),o=r(23481),a=r(20354),i=r(64534),c=r(2158),u=r(50122),l=r(77963),s=r(65728),f=r(31949),h=r(69883),d=r(37802),p=r(14070),v=r(97291),y=r(67963);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value: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 b(){}function w(){}function x(){}var E={};l(E,i,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(A([])));O&&O!==r&&n.call(O,i)&&(E=O);var N=x.prototype=b.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==m(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function 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){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(m(e)+" is not iterable")}return w.prototype=x,o(N,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(N),t},e.awrap=function(t){return{__await:t}},k(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(N),l(N,u,"Generator"),l(N,i,(function(){return this})),l(N,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var b=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{u(n.next(t))}catch(t){a(t)}}function c(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}u((n=n.apply(t,e||[])).next())}))},w="onboarding.hooks";function x(){var t=(0,y.u)(),e=(0,c.T)(t).getPathway,r=a.a.useBasicFetch(f.N.currentUser()),m=a.a.useBasicFetch(f.N.user(r.data.id)),x=e(),E=i.H[x.currentScreen],L=(0,h.Z)(),O=(0,d.r)(E.analyticsLocation).updateSettingAsync;function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{hasLoader:!1};O(r.data.id,{name:s.E.HasExitedOnboarding,value:!0,kind:l.g.Permanent}).then((function(){t.hasLoader?n.Q.C$.trigger({application:v.O.ONBOARDING,action:p.e.Onboarding.COMPLETED_LOADER}):n.Q.C$.trigger({application:v.O.DASHBOARD,action:p.e.Dashboard.HOME})}))}function k(){O(r.data.id,{name:s.E.HasCompletedOnboardingV2,value:!0,kind:l.g.Permanent}).then((function(){n.Q.C$.trigger({application:v.O.ONBOARDING,action:p.e.Onboarding.COMPLETED_LOADER})}))}return{onClickBack:function(){var e=u.m.getPreviousAppLink(x,t);n.Q.C$.trigger(e)},exitOnboarding:N,onSaveError:function(){L.error(o.T.getPhrase(w,"saveError"))},completeStepAsync:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isExiting:!1};return b(this,void 0,void 0,g().mark((function a(){var i,c;return g().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,O(r.data.id,{name:E.setting,value:!0,kind:l.g.Permanent});case 2:if(!o.isExiting){a.next=5;break}return N({hasLoader:!0}),a.abrupt("return");case 5:if(i=e(o),i.screens[i.currentScreen].next){a.next=11;break}return k(),a.abrupt("return");case 11:c=u.m.getNextAppLink(i,t),n.Q.C$.trigger(c);case 13:case"end":return a.stop()}}),a)})))},completeOnboarding:k,onClickAreYouATeacher:function(){var t,e,r;if("admin"!==u.m.getPersonaFromJobTitle(null===(r=null===(e=null===(t=m.data)||void 0===t?void 0:t.userProfile)||void 0===e?void 0:e.metadata)||void 0===r?void 0:r.jobTitle))return"evaluating-for-school-or-district"===u.m.getUsageIntention()?(u.m.removeUsageIntention(),void n.Q.C$.trigger({application:v.O.ONBOARDING,action:p.e.Onboarding.USAGE_INTENTION})):void n.Q.C$.trigger({application:v.O.ONBOARDING,action:p.e.Onboarding.SELECT_ROLE});n.Q.C$.trigger({application:v.O.ONBOARDING,action:p.e.Onboarding.SELECT_ROLE})}}}}}]);
|