@clickview/lite 0.36.7-rc.1 → 0.37.0

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1296],{2158:(e,t,r)=>{r.d(t,{T:()=>b});var a=r(32735),n=r(2948),c=r(20354),l=r(50122),i=r(25925),o=r(21750),s=r(5112),u=r(61699),m=r(31949),d=r(22902),f=r(37802),v=r(75795),p=r(33857);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function b(e){var t,r,b,E=(r=(0,n.D)("has:playlist",null),b=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,c,l,i=[],o=!0,s=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=c.call(r)).done)&&(i.push(a.value),i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{if(!o&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(r,b)||function(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}(r,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.")}()),y=E[0],g=E[1],w=c.a.useBasicFetch(m.N.currentUser()),N=c.a.useBasicFetch((null===(t=w.data)||void 0===t?void 0:t.isAuthenticated)&&m.N.user(w.data.id)),x=c.a.useBasicFetch(o.x.availablePresentations(i.R.Subject)),S=c.a.useBasicFetch(o.x.presentation(i.R.Subject)),j=c.a.useBasicFetch(o.x.availablePresentations(i.R.Curriculum)),C=c.a.useBasicFetch(s.C.getUserPlaylists(new p.l)),D=c.a.useBasicFetch(u.o.mySubjectPreferences()),A=(0,d.T)().hasPermissions;a.useEffect((function(){var e,t,r,a;C.hasCompleted&&y!==!!(null===(t=null===(e=C.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&g(!!(null===(a=null===(r=C.data)||void 0===r?void 0:r.data)||void 0===a?void 0:a.length))}),[C.hasCompleted]);var O=w.hasCompleted&&N.hasCompleted&&x.hasCompleted&&j.hasCompleted&&S.hasCompleted&&C.hasCompleted&&D.hasCompleted&&null!==y,T=(0,f.r)(null).userSettings;return{getPathway:function(){var t,r,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=n.jobTitleOverride||(null===(a=null===(r=null===(t=N.data)||void 0===t?void 0:t.userProfile)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a.jobTitle),i=n.preferredPresentationOverride||S.data;return O?l.m.getOnboardingPathway({jobTitle:c,userSettings:T.data,presentations:x.data,curriculums:j.data,preferredSubjects:D.data,preferredPresentation:i,appLink:v.O.getCurrentRoute().appLink,appLinks:e,masterUser:N.data,hasPlaylist:y,hasPermissions:A}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:O}}},63478:(e,t,r)=>{r.d(t,{B:()=>n});var a=r(32735);function n(e){return a.createElement("div",{className:"w-100 h-100 position-fixed bg-".concat(e.variant)},e.children)}},24250:(e,t,r)=>{r.d(t,{R:()=>u});var a=r(32735),n=r(75896),c=r(55171),l=r(54610),i=r(79967),o=r(67453);function s(e,t){return"mobile"===t?function(e){var t=e%10,r={top:"".concat(4*e,"%")};switch(t){case 0:return r.left="12.5%",r.animationDelay="0.5s",r;case 1:return r.right="7.5%",r.animationDelay="1s",r;case 2:return r.left="10%",r;case 3:return r.right="2.5%",r.animationDelay="0.5s",r;case 4:return r.left="2.5%",r.animationDelay="1.5s",r;case 5:return r.right="10%",r;case 6:return r.left="12.5%",r.animationDelay="1.5s",r;case 7:return r.right="7.5%",r.animationDelay="0.5s",r;case 8:return r.left="5%",r.animationDelay="1s",r;case 9:return r.right="2.5%",r.animationDelay="1s",r;default:return r.left="10%",r.animationDelay="1.5s",r}}(e):"50%"===t?function(e){var t=e%10,r={top:"".concat(4*e,"%")};switch(t){case 0:return r.left="25%",r.animationDelay="0.5s",r;case 1:return r.right="15%",r.animationDelay="1s",r;case 2:return r.left="20%",r;case 3:return r.right="5%",r.animationDelay="0.5s",r;case 4:return r.left="5%",r.animationDelay="1.5s",r;case 5:return r.right="20%",r;case 6:return r.left="25%",r.animationDelay="1.5s",r;case 7:return r.right="15%",r.animationDelay="0.5s",r;case 8:return r.left="10%",r.animationDelay="1s",r;case 9:return r.right="5%",r.animationDelay="1s",r;default:return r.left="20%",r.animationDelay="1.5s",r}}(e):function(e){var t=e%10,r={top:"".concat(4*e,"%")};switch(t){case 0:return r.left="25%",r.animationDelay="0.5s",r;case 1:return r.right="30%",r.animationDelay="1s",r;case 2:return r.left="40%",r;case 3:return r.right="10%",r.animationDelay="0.5s",r;case 4:return r.left="10%",r.animationDelay="1.5s",r;case 5:return r.right="40%",r;case 6:return r.left="30%",r.animationDelay="1.5s",r;case 7:return r.right="30%",r.animationDelay="0.5s",r;case 8:return r.left="10%",r.animationDelay="1s",r;case 9:return r.right="10%",r.animationDelay="1s",r;default:return r.left="40%",r.animationDelay="1.5s",r}}(e)}var u=a.memo((function(e){var t=n.m.shuffle(c.e.Onboarding.LOADING_THUMBNAILS),r=(0,i.k)();return a.createElement("div",{className:"".concat("n2Qe4"," ").concat("50%"===e.screenSize?"w-50":"w-100")},t.map((function(t,n){return a.createElement("div",{key:n,className:"".concat("ZlA2t"," position-absolute rounded-3 overflow-hidden"),style:s(n,r.xs?"mobile":e.screenSize)},!e.hideThumbnailMask&&a.createElement("div",{className:"".concat("jNop3"," ").concat("blue"===e.variant?"jVOWE":"YNfFq")}),a.createElement("img",{className:"img-fluid",src:o.j.createUrl(t,{size:l.h2.Small})}))})))}))},39375:(e,t,r)=>{r.d(t,{Y:()=>u});var a=r(32735),n=r(54610),c=r(67453),l=r(2248);const i={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function o(e){return a.createElement("li",{className:"col-4"},a.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(i.subjectPlaceholder)},e.coverUrl?a.createElement("div",{className:i.placeholderCover},a.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:n.h2.Small})})):a.createElement("div",{className:"".concat(i.placeholderCover," bg-light-blue")})))}function s(){return a.createElement("li",{className:"col-4"},a.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(i.promotedTopicPlaceholder)}))}function u(e){var t,r,n,c=Math.max(12-(null!==(r=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==r?r:0),0);return a.createElement(l.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},a.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},a.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},a.createElement("div",{className:"bg-light ".concat(i.magicTab)}),a.createElement("div",{className:"".concat(i.magicTab)})),a.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(n=e.subjects)||void 0===n?void 0:n.map((function(e){var t;return a.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 a.createElement(o,{key:t})}))),a.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},a.createElement(s,null),a.createElement(s,null),a.createElement(s,null),a.createElement(s,null),a.createElement(s,null),a.createElement(s,null),a.createElement(s,null),a.createElement(s,null),a.createElement(s,null))))}},2248:(e,t,r)=>{r.d(t,{L:()=>p});var a=r(32735),n=r(60376),c=r(83914),l=r(2786),i=r(83345),o=r(72639),s=r(79967),u=r(35223),m=r(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 a.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},a.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),a.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function p(e){var t,r,p=(0,s.k)();return a.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&&a.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},a.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},a.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},a.createElement("h2",{className:"h6 text-start"},a.createElement(i.x,{namespace:f,phrase:"curriculum"})),e.curriculum?a.createElement("div",{className:"d-flex align-items-center"},a.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},a.createElement(n.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),a.createElement("div",{className:"text-start"},e.curriculum.name)):a.createElement("div",{className:"d-flex align-items-center text-muted"},a.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},a.createElement(n.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),a.createElement(i.x,{namespace:f,phrase:"selectCurriculum"}))))),a.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},a.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),a.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),a.createElement("div",{className:"rounded-circle ".concat(d.dot)})),a.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},a.createElement("div",{className:"".concat(d.logo," me-4")},p.xs?a.createElement(l.bc,null):a.createElement(l.$S,null)),a.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},a.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&a.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},a.createElement(n.f,{imageUrl:null===(r=e.curriculum.cover)||void 0===r?void 0:r.url}))),a.createElement("div",{className:"d-flex ".concat(d.belowHeader)},a.createElement("div",{className:"".concat(d.leftNav," border-end")},a.createElement("div",{className:"d-flex flex-column pt-3 h-100"},a.createElement(v,null),a.createElement(v,null),a.createElement(v,null),a.createElement(v,null),a.createElement(v,null),a.createElement("div",{className:"d-flex align-items-end h-100 w-100"},a.createElement("div",{className:"border-top p-3 w-100"},a.createElement("div",{className:"d-flex align-items-center"},a.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")},a.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?a.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):a.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},a.createElement(i.x,{namespace:f,phrase:"schoolLevel"}))))))),a.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},62007:(e,t,r)=>{r.d(t,{u:()=>u});var a=r(32735),n=r(5465),c=r(72188),l=r(54610),i=r(2248);const o={banner:"CQxNy",title:"NzV5V",description1:"kjCZi",description2:"cBeyJ",placeholder:"Ks_Tl",playlistName:"eFPqz",thumbnailCol:"dgCQ7",videoInfoCol:"pzfE2"};function s(e){return a.createElement("li",{className:"row mb-2"},a.createElement("div",{className:"col-lg-4 col-5 ".concat(o.thumbnailCol)},e.video?a.createElement(c.u,{video:e.video,type:"cosmetic",hideDuration:!0,imageOptions:{size:l.h2.Small}}):a.createElement(n.oy,{type:n.mS.Video,extraClasses:"position-relative rounded-3 ".concat(o.placeholder)})),a.createElement("div",{className:"col-lg-8 col-7 ".concat(o.videoInfoCol)},a.createElement("div",{className:"".concat(o.title," rounded-pill bg-grey mb-1")}),a.createElement("div",{className:"".concat(o.description1," rounded-pill bg-grey mb-1")}),a.createElement("div",{className:"".concat(o.description2," rounded-pill bg-grey mb-1")})))}function u(e){var t,r,n,c=e.hidePlaceholders?0:Math.max(6-(null!==(r=null===(t=e.videos)||void 0===t?void 0:t.length)&&void 0!==r?r:0),0);return a.createElement(i.L,{presentation:e.presentation,curriculum:e.curriculum},a.createElement("div",{className:"bg-teal ".concat(o.banner," position-relative")},e.name&&a.createElement("div",{className:"h5 text-white mb-0 ".concat(o.playlistName)},e.name)),a.createElement("ul",{className:"list-unstyled mb-0 w-100 p-2"},null===(n=e.videos)||void 0===n?void 0:n.map((function(e){return a.createElement(s,{key:e.id,video:e})})),new Array(c).fill(0).map((function(e,t){return a.createElement(s,{key:t})}))))}},9962:(e,t,r)=>{r.r(t),r.d(t,{OnboardingCompletedLoaderView:()=>J});var a=r(32735),n=r(57900),c=r(2948),l=r(20354),i=r(2158),o=r(21750),s=r(86702),u=r(82817),m=r(86698),d=r(83345),f=r(63478),v=r(24250),p=r(81886),h=r(14070),b=r(97291);function E(e){a.useEffect((function(){var t=window.setTimeout((function(){p.Q.C$.trigger({application:b.O.DASHBOARD,action:h.e.Dashboard.HOME})}),e);return function(){window.clearTimeout(t)}}),[])}const y={loaderText:"acbPl"};var g="onboarding.advisorVideoLoader";function w(){return E(4e3),a.createElement(f.B,{variant:"blue"},a.createElement("h1",{className:"h-100 w-100 d-flex align-items-center justify-content-center text-white h3 mb-3 position-relative ".concat(y.loaderText)},a.createElement(d.x,{namespace:g,phrase:"takingYouToClickView"})),a.createElement(v.R,{screenSize:"100%",variant:"blue"}))}var N=r(99742);const x={content:"qggDl",imageContainer:"lqHIJ"};var S="onboarding.contactSalesLoader";function j(){return E(4e3),a.createElement(f.B,{variant:"blue"},a.createElement("div",{className:"".concat(x.content," text-center")},a.createElement("div",{className:"".concat(x.imageContainer," mx-auto")},a.createElement("img",{className:"img-fluid",src:N.W.OnboardingV2.ContactSales.LOADER})),a.createElement("h1",{className:"h-100 w-100 d-flex align-items-center justify-content-center text-white h3"},a.createElement(d.x,{namespace:S,phrase:"heading"}))),a.createElement(v.R,{screenSize:"100%",variant:"blue"}))}var C=r(62007),D=r(96347);function A(){a.useEffect((function(){(0,D.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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var k="onboarding.creatingPlaylistLoader",P=5e3;function I(e){var t,r,n=(t=a.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,c,l,i=[],o=!0,s=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=c.call(r)).done)&&(i.push(a.value),i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{if(!o&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return T(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)?T(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=n[0],l=n[1];return A(),a.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),P);return function(){window.clearTimeout(e)}}),[]),a.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:b.O.DASHBOARD,action:h.e.Dashboard.HOME})}),P);return function(){window.clearTimeout(e)}}}),[c]),c?a.createElement(f.B,{variant:"dark-blue"},a.createElement("div",{className:"".concat(O.playlistContainer," ").concat(O.discover)},a.createElement("h1",{className:"text-white h3 text-center mb-3"},a.createElement(d.x,{namespace:k,phrase:"takingYouToDiscover"})),a.createElement(C.u,{presentation:e.presentation,curriculum:e.curriculum,videos:e.videos,name:e.name,hidePlaceholders:!0})),a.createElement(v.R,{screenSize:"100%",variant:"dark-blue"})):a.createElement(f.B,{variant:"dark-blue"},a.createElement("div",{className:"".concat(O.playlistContainer," ").concat(O.confetti)},a.createElement("h1",{className:"text-white h3 text-center mb-3"},a.createElement(d.x,{namespace:k,phrase:"greatJob"}),a.createElement("br",null),a.createElement(d.x,{namespace:k,phrase:"creatingPlaylist"})),a.createElement(C.u,{presentation:e.presentation,curriculum:e.curriculum,videos:e.videos,name:e.name,hidePlaceholders:!0})))}var L=r(39375);const B={container:"GVDR9"};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var z="onboarding.defaultLoader",U=5e3;function M(e){var t,r,n=(t=a.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,c,l,i=[],o=!0,s=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=c.call(r)).done)&&(i.push(a.value),i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{if(!o&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return R(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)?R(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=n[0],l=n[1];return A(),a.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),U);return function(){window.clearTimeout(e)}}),[]),a.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:b.O.DASHBOARD,action:h.e.Dashboard.HOME})}),U);return function(){window.clearTimeout(e)}}}),[c]),c?a.createElement(f.B,{variant:"dark-blue"},a.createElement("div",{className:"".concat(B.container)},a.createElement("h1",{className:"text-white h3 text-center mb-3"},a.createElement(d.x,{namespace:z,phrase:"takingYouToDiscover"})),a.createElement(L.Y,{presentation:e.presentation,curriculum:e.curriculum,subjects:e.subjects})),a.createElement(v.R,{screenSize:"100%",variant:"dark-blue"})):a.createElement(f.B,{variant:"dark-blue"},a.createElement("div",{className:"".concat(B.container)},a.createElement("h1",{className:"text-white h3 text-center mb-3"},a.createElement(d.x,{namespace:z,phrase:"allDone"})),a.createElement(L.Y,{presentation:e.presentation,subjects:e.subjects,curriculum:e.curriculum})))}const V={discoverContainer:"u6Ak8",confetti:"BVY_E",discover:"yYZ_G"};function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var Y="onboarding.preferencesLoader",F=5e3;function H(e){var t,r,n=(t=a.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,c,l,i=[],o=!0,s=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=c.call(r)).done)&&(i.push(a.value),i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{if(!o&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=n[0],l=n[1];return A(),a.useEffect((function(){var e=window.setTimeout((function(){l(!0)}),F);return function(){window.clearTimeout(e)}}),[]),a.useEffect((function(){if(c){var e=window.setTimeout((function(){p.Q.C$.trigger({application:b.O.DASHBOARD,action:h.e.Dashboard.HOME})}),F);return function(){window.clearTimeout(e)}}}),[c]),c?a.createElement(f.B,{variant:"dark-blue"},a.createElement("div",{className:"".concat(V.discoverContainer," ").concat(V.discover)},a.createElement("h1",{className:"text-white h3 text-center mb-3"},a.createElement(d.x,{namespace:Y,phrase:"takingYouToDiscover"})),a.createElement(L.Y,{presentation:e.presentation,curriculum:e.curriculum,subjects:e.subjects})),a.createElement(v.R,{screenSize:"100%",variant:"dark-blue"})):a.createElement(f.B,{variant:"dark-blue"},a.createElement("div",{className:"".concat(V.discoverContainer," ").concat(V.confetti)},a.createElement("h1",{className:"text-white h3 text-center mb-3"},a.createElement(d.x,{namespace:Y,phrase:"greatJob"}),a.createElement("br",null),a.createElement(d.x,{namespace:Y,phrase:"loadingPreferences"})),a.createElement(L.Y,{presentation:e.presentation,curriculum:e.curriculum,subjects:e.subjects})))}var $=r(67963);function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,c,l,i=[],o=!0,s=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(a=c.call(r)).done)&&(i.push(a.value),i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{if(!o&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(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)?G(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function J(){var e=(0,$.u)(),t=(0,i.T)(e).getPathway,r=Q((0,c.D)(s.y.ONBOARDING_LOADER,{}),1)[0],d=Q((0,c.D)(s.y.ONBOARDING_VIDEOS,[],{storage:n.Z1.LocalStorage}),1)[0],f=(0,m.y)().preferredPresentation,v=(0,u.M)().activeCurriculum,p=l.a.useBasicFetch(o.x.classifications()),h=a.useMemo((function(){switch(t().currentScreen){case"create-playlist":return"create-playlist";case"advisor-video":return"advisor-video";case"contact-sales":return"contact-sales";case"subjects-summary":case"subjects":case"school-level":case"select-curriculum":return"preferences";default:return"default"}}),[]);return"default"===h?a.createElement(M,{subjects:p.data,presentation:f,curriculum:v}):"create-playlist"===h?a.createElement(I,{name:r.playlistName,videos:d,presentation:f,curriculum:v}):"advisor-video"===h?a.createElement(w,null):"contact-sales"===h?a.createElement(j,null):"preferences"===h?a.createElement(H,{subjects:p.data,presentation:f,curriculum:v}):a.createElement(a.Fragment,null)}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 1895-af3baa476d-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1895],{12058:(e,t,r)=>{r.d(t,{X:()=>a});var n=r(32735);function a(e){return n.createElement("p",{className:e.className},e.children)}},75919:(e,t,r)=>{r.d(t,{N:()=>c});var n=r(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function c(e){return n.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},!!e.annotationUrl&&n.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}()},n.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&n.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},39375:(e,t,r)=>{r.d(t,{Y:()=>u});var n=r(32735),a=r(54610),c=r(67453),o=r(2248);const l={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(l.subjectPlaceholder)},e.coverUrl?n.createElement("div",{className:l.placeholderCover},n.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):n.createElement("div",{className:"".concat(l.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(l.promotedTopicPlaceholder)}))}function u(e){var t,r,a,c=Math.max(12-(null!==(r=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==r?r:0),0);return n.createElement(o.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(l.magicTab)}),n.createElement("div",{className:"".concat(l.magicTab)})),n.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 n.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 n.createElement(i,{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,r)=>{r.d(t,{L:()=>v});var n=r(32735),a=r(60376),c=r(83914),o=r(2786),l=r(83345),i=r(72639),s=r(79967),u=r(35223),m=r(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function h(){return 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 v(e){var t,r,v=(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(l.x,{namespace:f,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(a.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(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),n.createElement(l.x,{namespace:f,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")},v.xs?n.createElement(o.bc,null):n.createElement(o.$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(a.f,{imageUrl:null===(r=e.curriculum.cover)||void 0===r?void 0:r.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(h,null),n.createElement(h,null),n.createElement(h,null),n.createElement(h,null),n.createElement(h,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 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")},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(l.x,{namespace:f,phrase:"schoolLevel"}))))))),n.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},92351:(e,t,r)=>{r.r(t),r.d(t,{OnboardingSubjectsSummaryView:()=>S});var n=r(32735),a=r(81886),c=r(23481),o=r(20354),l=r(65858),i=r(10874),s=r(83345),u=r(55171),m=r(61699),d=r(35223),f=r(82817),h=r(86698),v=r(75359),p=r(12058),g=r(40695),E=r(75919),y=r(39375),b=r(73190),w=r(90815),x=r(67963);const N={icon:"K6Rsv"};function L(e){return L="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},L(e)}function k(){k=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},o=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",i=c.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 c=t&&t.prototype instanceof g?t:g,o=Object.create(c.prototype),l=new O(n||[]);return a(o,"_invoke",{value:P(e,r,l)}),o}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",v="completed",p={};function g(){}function E(){}function y(){}var b={};s(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==r&&n.call(x,o)&&(b=x);var N=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(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"==L(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(i.arg)}var c;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return c=c?c.then(a,a):a()}})}function P(t,r,n){var a=d;return function(c,o){if(a===h)throw new Error("Generator is already running");if(a===v){if("throw"===c)throw o;return{value:e,done:!0}}for(n.method=c,n.arg=o;;){var l=n.delegate;if(l){var i=S(l,n);if(i){if(i===p)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var s=m(t,r,n);if("normal"===s.type){if(a=n.done?v:f,s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=v,n.method="throw",n.arg=s.arg)}}}function S(t,r){var n=r.method,a=t.iterator[n];if(a===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")),p;var c=m(a,t.iterator,r.arg);if("throw"===c.type)return r.method="throw",r.arg=c.arg,r.delegate=null,p;var o=c.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function _(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}throw new TypeError(L(t)+" is not iterable")}return E.prototype=y,a(N,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:E,configurable:!0}),E.displayName=s(y,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"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(N),e},t.awrap=function(e){return{__await:e}},C(j.prototype),s(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,a,c){void 0===c&&(c=Promise);var o=new j(u(e,r,n,a),c);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(N),s(N,i,"Generator"),s(N,o,(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=I,O.prototype={constructor:O,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),!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 a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.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=n.call(o,"catchLoc"),s=n.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 r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}var C=function(e,t,r,n){return new(r||(r=Promise))((function(a,c){function o(e){try{i(n.next(e))}catch(e){c(e)}}function l(e){try{i(n.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,l)}i((n=n.apply(e,t||[])).next())}))},j="onboarding.subjectsSummary";function P(e){return n.createElement("div",{className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(N.icon)},n.createElement("img",{src:e.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},e.heading),n.createElement("p",{className:"mb-0"},e.description)),n.createElement(i.h,{className:"btn btn-link ms-auto align-self-start",onClick:e.onClick,svgName:d.vn.Edit}))}function S(){var e,t,r,i,d=(0,b.Q)(),N=d.onClickBack,L=d.exitOnboarding,S=d.completeStepAsync,_=d.onSaveError,T=(0,w.H)().logEvent,O=(0,h.y)(),I=O.preferredPresentation,U=O.availablePresentations,z=(0,f.M)(),G=z.activeCurriculum,V=z.availableCurriculums,B=(0,x.u)(),F=o.a.useBasicFetch(m.o.mySubjectPreferences());return n.createElement(g.z,{namespace:j},n.createElement(g.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},n.createElement(E.N,{contentPosition:"right"},n.createElement(y.Y,{presentation:I,curriculum:G,subjects:F.data}))),n.createElement(g.z.Right,{hasCustomButtons:!1,onClickNext:function(){return C(this,void 0,void 0,k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(l.Vw.Click,l.Ix.Next),e.prev=1,e.next=4,S();case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),_(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickBack:N,onClickComeBackLater:L,disableNext:!G},n.createElement(v.W,null,n.createElement(s.x,{phrase:"heading"})),n.createElement(p.X,null,n.createElement(s.x,{phrase:"dontWorry"})),(null==U?void 0:U.length)>1&&I&&n.createElement(P,{onClick:function(){T(l.Vw.Click,l.Ix.UpdateSchoolLevel),a.Q.C$.trigger(B["school-level"])},imageUrl:null===(e=I.cover)||void 0===e?void 0:e.url,heading:c.T.getPhrase(j,"schoolLevel"),description:I.name}),(null==V?void 0:V.length)>1&&G&&n.createElement(P,{onClick:function(){T(l.Vw.Click,l.Ix.UpdateCurriculum),a.Q.C$.trigger(B["select-curriculum"])},imageUrl:null===(t=G.cover)||void 0===t?void 0:t.url,heading:c.T.getPhrase(j,"curriculums"),description:G.name}),n.createElement(P,{onClick:function(){T(l.Vw.Click,l.Ix.UpdateSubjects),a.Q.C$.trigger(B.subjects)},imageUrl:u.e.Images.Level_2.TOPIC_COVER,heading:c.T.getPhrase(j,"subjects"),description:null!==(i=null===(r=F.data)||void 0===r?void 0:r.map((function(e){return e.name})).join(", "))&&void 0!==i?i:""})))}}}]);
1
+ /*! For license information please see 1895-62366995f9-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1895],{12058:(e,t,r)=>{r.d(t,{X:()=>a});var n=r(32735);function a(e){return n.createElement("p",{className:e.className},e.children)}},75919:(e,t,r)=>{r.d(t,{N:()=>c});var n=r(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function c(e){return n.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},!!e.annotationUrl&&n.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}()},n.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&n.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},39375:(e,t,r)=>{r.d(t,{Y:()=>s});var n=r(32735),a=r(54610),c=r(67453),o=r(2248);const l={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(l.subjectPlaceholder)},e.coverUrl?n.createElement("div",{className:l.placeholderCover},n.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):n.createElement("div",{className:"".concat(l.placeholderCover," bg-light-blue")})))}function u(){return n.createElement("li",{className:"col-4"},n.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(l.promotedTopicPlaceholder)}))}function s(e){var t,r,a,c=Math.max(12-(null!==(r=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==r?r:0),0);return n.createElement(o.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(l.magicTab)}),n.createElement("div",{className:"".concat(l.magicTab)})),n.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 n.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 n.createElement(i,{key:t})}))),n.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null))))}},2248:(e,t,r)=>{r.d(t,{L:()=>v});var n=r(32735),a=r(60376),c=r(83914),o=r(2786),l=r(83345),i=r(72639),u=r(79967),s=r(35223),m=r(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function h(){return 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 v(e){var t,r,v=(0,u.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(l.x,{namespace:f,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(a.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(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:s.vn.GraduationCap})),n.createElement(l.x,{namespace:f,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")},v.xs?n.createElement(o.bc,null):n.createElement(o.$S,null)),n.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},n.createElement(c.x,{svgName:s.vn.Search})),!!e.curriculum&&n.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},n.createElement(a.f,{imageUrl:null===(r=e.curriculum.cover)||void 0===r?void 0:r.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(h,null),n.createElement(h,null),n.createElement(h,null),n.createElement(h,null),n.createElement(h,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 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")},n.createElement(c.x,{svgName:s.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(l.x,{namespace:f,phrase:"schoolLevel"}))))))),n.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},92351:(e,t,r)=>{r.r(t),r.d(t,{OnboardingSubjectsSummaryView:()=>S});var n=r(32735),a=r(81886),c=r(23481),o=r(20354),l=r(65858),i=r(10874),u=r(83345),s=r(55171),m=r(61699),d=r(35223),f=r(82817),h=r(86698),v=r(75359),p=r(12058),g=r(40695),E=r(75919),y=r(39375),b=r(73190),w=r(90815),x=r(67963);const N={icon:"K6Rsv"};function L(e){return L="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},L(e)}function k(){k=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},o=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var c=t&&t.prototype instanceof g?t:g,o=Object.create(c.prototype),l=new O(n||[]);return a(o,"_invoke",{value:P(e,r,l)}),o}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",f="suspendedYield",h="executing",v="completed",p={};function g(){}function E(){}function y(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==r&&n.call(x,o)&&(b=x);var N=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(a,c,o,l){var i=m(e[a],e,c);if("throw"!==i.type){var u=i.arg,s=u.value;return s&&"object"==L(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(s).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(i.arg)}var c;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return c=c?c.then(a,a):a()}})}function P(t,r,n){var a=d;return function(c,o){if(a===h)throw new Error("Generator is already running");if(a===v){if("throw"===c)throw o;return{value:e,done:!0}}for(n.method=c,n.arg=o;;){var l=n.delegate;if(l){var i=S(l,n);if(i){if(i===p)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var u=m(t,r,n);if("normal"===u.type){if(a=n.done?v:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function S(t,r){var n=r.method,a=t.iterator[n];if(a===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")),p;var c=m(a,t.iterator,r.arg);if("throw"===c.type)return r.method="throw",r.arg=c.arg,r.delegate=null,p;var o=c.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function _(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}throw new TypeError(L(t)+" is not iterable")}return E.prototype=y,a(N,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:E,configurable:!0}),E.displayName=u(y,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,i,"GeneratorFunction")),e.prototype=Object.create(N),e},t.awrap=function(e){return{__await:e}},C(j.prototype),u(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,a,c){void 0===c&&(c=Promise);var o=new j(s(e,r,n,a),c);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(N),u(N,i,"Generator"),u(N,o,(function(){return this})),u(N,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,O.prototype={constructor:O,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),!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 a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.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=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(i&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}var C=function(e,t,r,n){return new(r||(r=Promise))((function(a,c){function o(e){try{i(n.next(e))}catch(e){c(e)}}function l(e){try{i(n.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,l)}i((n=n.apply(e,t||[])).next())}))},j="onboarding.subjectsSummary";function P(e){return n.createElement("div",{className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(N.icon)},n.createElement("img",{src:e.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},e.heading),n.createElement("p",{className:"mb-0"},e.description)),n.createElement(i.h,{className:"btn btn-link ms-auto align-self-start",onClick:e.onClick,svgName:d.vn.Edit}))}function S(){var e,t,r,i,d=(0,b.Q)(),N=d.onClickBack,L=d.exitOnboarding,S=d.completeStepAsync,_=d.onSaveError,T=(0,w.H)().logEvent,O=(0,h.y)(),I=O.preferredPresentation,U=O.availablePresentations,z=(0,f.M)(),G=z.activeCurriculum,V=z.availableCurriculums,B=(0,x.u)(),F=o.a.useBasicFetch(m.o.mySubjectPreferences());return n.createElement(g.z,{namespace:j},n.createElement(g.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},n.createElement(E.N,{contentPosition:"right"},n.createElement(y.Y,{presentation:I,curriculum:G,subjects:F.data}))),n.createElement(g.z.Right,{hasCustomButtons:!1,onClickNext:function(){return C(this,void 0,void 0,k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(l.Vw.Click,l.Ix.Next),e.prev=1,e.next=4,S();case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),_(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickBack:N,onClickComeBackLater:L},n.createElement(v.W,null,n.createElement(u.x,{phrase:"heading"})),n.createElement(p.X,null,n.createElement(u.x,{phrase:"dontWorry"})),(null==U?void 0:U.length)>1&&I&&n.createElement(P,{onClick:function(){T(l.Vw.Click,l.Ix.UpdateSchoolLevel),a.Q.C$.trigger(B["school-level"])},imageUrl:null===(e=I.cover)||void 0===e?void 0:e.url,heading:c.T.getPhrase(j,"schoolLevel"),description:I.name}),(null==V?void 0:V.length)>1&&G&&n.createElement(P,{onClick:function(){T(l.Vw.Click,l.Ix.UpdateCurriculum),a.Q.C$.trigger(B["select-curriculum"])},imageUrl:null===(t=G.cover)||void 0===t?void 0:t.url,heading:c.T.getPhrase(j,"curriculums"),description:G.name}),n.createElement(P,{onClick:function(){T(l.Vw.Click,l.Ix.UpdateSubjects),a.Q.C$.trigger(B.subjects)},imageUrl:s.e.Images.Level_2.TOPIC_COVER,heading:c.T.getPhrase(j,"subjects"),description:null!==(i=null===(r=F.data)||void 0===r?void 0:r.map((function(e){return e.name})).join(", "))&&void 0!==i?i:""})))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2261],{73758:(e,t,n)=>{function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}n.d(t,{n:()=>o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}var t,n;return t=e,n=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var r;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(r=this.listeners[e])&&void 0!==r?r:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var r=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof r&&-1!==r&&(this.listeners[e].splice(r,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.listeners[e]){var a=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&a.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(r))})),a.length&&a.forEach((function(n){return t.deregisterListener(e,n)}))}}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},25723:(e,t,n)=>{n.d(t,{m:()=>f});var r=n(32735),i=n(29014),a=n(99940),o=n(23481),l=n(79014),c=n(44704),s=n(49985);const u={button:"nckQw"};function m(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 d=null,v=!1,p="shared.immersiveReader";function f(e){var t,n,f=(t=r.useState(d),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],g=f[1];return d||v||(v=!0,(0,c.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:a.k.GET,success:function(e){d=e,g(e),window.setTimeout((function(){d=null,v=!1}),9e5)},error:function(){}})),h?(e.title||(e.title=o.T.getPhrase(p,"titleFallback")),r.createElement("span",{className:"".concat(u.button," ").concat(e.className||""),onClick:function(){l.q.isFunction(e.onLaunch)&&e.onLaunch(),s.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},n=h.subdomain,r=h.token,a={uiZIndex:5e3,onExit:function(){l.q.isFunction(e.onExit)&&e.onExit()}};i.launchAsync(r,n,t,a)}},r.createElement("svg",{viewBox:"0 0 40 37"},r.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),r.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),r.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),r.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))):r.createElement(r.Fragment,null)}},87311:(e,t,n)=>{n.d(t,{G:()=>i});var r=n(81886),i={getTagActionProps:function(e,t){return t?{onClick:function(t){var n=e?e(t):null;if(n)return r.Q.C$.trigger(n)}}:{getAppLink:function(t){return e?e(t):null}}}}},19670:(e,t,n)=>{n.d(t,{o:()=>p});var r=n(32735),i=n(1048),a=n(11607),o=n(87311),l=n(91743),c=n(83345),s=n(54610),u=n(67453),m=n(32614),d=n(93563),v="shared.videoAtAGlance";function p(e){var t=(0,m.Wp)(e.video,e.theme),n=(0,m.md)(e.video,e.pointsOfInterest,t,e.suppressInteractivity),p=(0,m.RH)(e.pointsOfInterest,t);if(!t)return r.createElement(r.Fragment,null);var f,h,g,y,b,E=(null===(g=null===(h=null==(f=e.theme)?void 0:f.data)||void 0===h?void 0:h.colours)||void 0===g?void 0:g.primary)&&(null===(b=null===(y=null==f?void 0:f.data)||void 0===y?void 0:y.colours)||void 0===b?void 0:b.secondary)?f.data.colours:{primary:"#F5F4FF",secondary:"#9294FF"},k="function"==typeof e.onClickShowDescription,L="function"==typeof e.onClickShowCurriculumLinks;return r.createElement("div",{className:"rounded border px-3 px-sm-5 py-3 mb-3 position-relative d-flex justify-content-center ".concat(d.Z.container),style:{backgroundColor:E.primary}},r.createElement("div",{className:"".concat(d.Z.content," d-flex align-items-center pt-4 pt-sm-0")},r.createElement("div",null,r.createElement("h2",{className:"h4"},r.createElement(c.x,{namespace:v,phrase:"videoAtAGlance"})),k&&r.createElement(a.L,{onClick:e.onClickShowDescription,className:"".concat(d.Z.detailsBtn," position-absolute cursor-pointer me-4 fw-semibold text-info")},r.createElement(c.x,{namespace:v,phrase:"readFullDescription"})),r.createElement("div",{ref:p,onClick:function(t){return(0,m.$H)(t,e.pointsOfInterest,e.setStartTime)},dangerouslySetInnerHTML:{__html:n}}),function(){var t,n,i,a;return(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?r.createElement("div",{className:"py-1"},r.createElement(l.P,Object.assign({tags:null===(a=null===(i=e.video)||void 0===i?void 0:i.tags)||void 0===a?void 0:a.data,themeColours:E},o.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity)))):r.createElement(r.Fragment,null)}(),r.createElement("div",{className:"mt-2"},L&&r.createElement(a.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info"},r.createElement(c.x,{namespace:v,phrase:"seeCurriculumLinks"}))))),function(){var t,n,a,o=null!==(a=null===(n=null===(t=e.theme)||void 0===t?void 0:t.data)||void 0===n?void 0:n.images)&&void 0!==a?a:{};return i.t.keys(o).filter((function(e){return!i.t.isEmpty(o[e])})).map((function(e){var t,n,i=u.j.createUrl(null===(t=o[e])||void 0===t?void 0:t.url,{size:s.h2.Medium});return r.createElement("div",{key:null===(n=o[e])||void 0===n?void 0:n.fileId,className:"".concat(d.Z[e]," ").concat(d.Z.background),style:{backgroundImage:"url('".concat(i,"')")}})}))}())}},32614:(e,t,n)=>{n.d(t,{Wp:()=>g,$H:()=>p,md:()=>f,RH:()=>h});var r=n(32735),i=n(16367),a=n(73758);function o(e,t,n,i){var o=function(){a.n.unsubscribe(e,t)};return(0,r.useEffect)((function(){if(i)return n?a.n.subscribeOnce(e,t):a.n.subscribe(e,t),function(){o()}}),[]),o}var l=n(93264),c=n(93563);function s(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=/(\[.*\]\(cv:\/\/poi\?id=[0-9]+\))/g,m=/[0-9]+/,d=/\[.*\]/,v=/[\[\]]/g;function p(e,t,n){e.preventDefault();var r=e.target.getAttribute("href");if((null==r?void 0:r.includes("cv://poi"))&&(null==t?void 0:t.length)){var i=r.split("cv://poi?id=")[1],a=t.find((function(e){return e.id.toString()===i}));n&&a&&n(a.startTime)}}function f(e,t,n,a){var o,c,p,f=(c=(0,r.useState)(""),p=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,p)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(c,p)||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.")}()),h=f[0],g=f[1];return(0,r.useEffect)((function(){if(n){var r=function(e,t,n){var r=function(e,t,n){return(null==t?void 0:t.length)?e.content.replace(u,(function(e){var r=e.match(m);if(!(null==r?void 0:r.length))return e;var i=t.find((function(e){return e.id.toString()===r[0]})),a=e.match(d);if(!i||!(null==a?void 0:a.length))return e;var o='<span class="me-2">'.concat(l.T.ToDisplayDuration(1e3*i.startTime),"</span>"),c=a[0];return c=(c=c.replace(v,""))||i.description,c="".concat(o," ").concat(c),n?'<span class="d-flex">'.concat(c,"</span>"):e.replace(d,"[".concat(c,"]"))})):e.content}(e,t,n);return i(r).split('a href="cv://poi').join('a class="d-flex" href="cv://poi')}(e.glance,t,a);g(r)}}),[null===(o=e.glance)||void 0===o?void 0:o.content,null==t?void 0:t.length,n]),h}function h(e,t){var n=(0,r.useRef)();function i(){var t=this.getAttribute("href");if((null==t?void 0:t.includes("cv://poi"))&&(null==e?void 0:e.length)){var n=t.split("cv://poi?id=")[1];if(n){var r=e.find((function(e){return e.id.toString()===n}));r&&a.n.trigger("glance:poi:mouseover",r)}}}function l(){a.n.trigger("glance:poi:mouseleave")}function s(){var e;return null===(e=n.current)||void 0===e?void 0:e.querySelectorAll('[href*="cv://poi"]')}return o("player:poi:mouseover",(function(e){var t,r=null==e?void 0:e.id;r&&(null===(t=function(e){var t;return null===(t=n.current)||void 0===t?void 0:t.querySelector('[href="cv://poi?id='.concat(e,'"]'))}(r))||void 0===t||t.classList.add(c.Z.highlightPoi))}),null,t),o("player:poi:mouseleave",(function(){var e;null===(e=s())||void 0===e||e.forEach((function(e){return e.classList.remove(c.Z.highlightPoi)}))}),null,t),(0,r.useEffect)((function(){if(n.current&&t){var e=s();return e.forEach((function(e){return e.addEventListener("mouseover",i)})),e.forEach((function(e){return e.addEventListener("mouseleave",l)})),function(){e.forEach((function(e){return e.removeEventListener("mouseover",i)})),e.forEach((function(e){return e.removeEventListener("mouseleave",l)}))}}}),[n.current]),n}function g(e,t){var n,r;return t&&(null===(n=e.glance)||void 0===n?void 0:n.content)&&"text/markdown"===(null===(r=e.glance)||void 0===r?void 0:r.format)}},15446:(e,t,n)=>{n.d(t,{C:()=>u});var r=n(32735),i=n(65858),a=n(36848),o=n(72188),l=n(3133),c=n(54610),s=n(68626);var u=r.memo((function(e){var t;return r.createElement("div",{className:"flex-shrink-0 px-1 ".concat("hzP5u")},r.createElement("div",{className:"row m-0 border rounded p-2 h-100"},r.createElement("div",{className:"col-6 p-0"},r.createElement(o.u,{video:e.data,appLink:e.getAppLink(e.data),type:"cosmetic",imageOptions:{size:c.h2.Small},textPosition:s.z.Independent,analyticsOptions:{location:i.LZ.SlidingListItem},preload:!0})),r.createElement("div",{className:"col-6 p-0"},r.createElement("div",{className:"ps-2"},r.createElement(a.F,{appLink:e.getAppLink(e.data)},r.createElement("h3",{className:"h6 mb-1"},r.createElement("span",{className:"clamp-2"},e.data.name))),r.createElement(l.R,{owner:e.data.owner,isClickViewContent:null===(t=e.data._isClickViewContent)||void 0===t?void 0:t.value,imageCdnUrl:e.imageCdnUrl})))))}))},28907:(e,t,n)=>{n.d(t,{r:()=>a});var r=n(99940),i=n(97395),a={theme:function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},themeImages:function(e,t){return{url:i._.urlBuilder("/api/domain/v1/themes",{name:e,type:t}),key:"themes:".concat(e,":").concat(t)}},themes:function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n,formatData:function(e){return e.sort((function(e,t){return e.name.localeCompare(t.name)}))}}},createTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:r.k.POST,invalidationKeys:"themes",success:t,error:n,always:i}},updateTheme:function(e,t,n,i,a){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:r.k.PUT,success:n,error:i,always:a}},deleteTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:r.k.DELETE,invalidationKeys:"themes",success:t,error:n,always:i}}}},57654:(e,t,n)=>{n.d(t,{v:()=>C});var r=n(32735),i=n(79014),a=n(65858),o=n(83657),l=n(36848),c=n(40955),s=n(76246),u=n(17464),m=n(96022),d=n(83345),v=n(38647),p=n(80143),f=n(10038),h=n(31908),g=n(99092),y=n(65986);const b={series:"_4XDZ",badgeListContainer:"d42pt",actionsContainer:"QYD37",belowTitle:"cMbeG"};function E(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w="shared.playPage";function C(e){var t,n,L,C,N,x,S,A,P,T=(A=r.useState(!1),P=2,function(e){if(Array.isArray(e))return e}(A)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(A,P)||k(A,P)||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.")}()),I=T[0],j=T[1],O=(0,p.n)(null===(t=e.media.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),V=r.useRef(null),M=r.useRef(null);function F(){if(V.current&&M.current){var e=V.current.getBoundingClientRect().width,t=M.current.getBoundingClientRect().width>e/2;t&&!I?j(!0):!t&&I&&j(!1)}}var R=i.q.throttle(F,300);(0,f.H)(R,null,[I]),r.useEffect(F,[V,M,I]);var Z=(0,g.A1)(e.media),D=Z.hasBadges,_=Z.hasSeries,B=(0,y._)(y.i.PlayPage),H=!!e.originalVideoAppLink&&h.M.isClip(e.media)&&h.M.canViewOriginalVideo(e.media);return r.createElement("section",{className:"".concat(_||D?"mb-3":"mb-2"," position-relative"),ref:V},r.createElement("div",{className:"d-inline-block",ref:M},!!h.M.isVideo(e.media)&&r.createElement(m.Mr,{video:e.media,appLink:null===(n=e.getSeriesAppLink)||void 0===n?void 0:n.call(e,e.media.series),className:"".concat(b.series," text-truncate mw-100"),analyticsOptions:{location:a.LZ.PlayPage}}),r.createElement("h1",{className:"h4 d-inline-flex align-items-center mb-2 mt-n1 mw-100 ".concat(_||D?"":"mb-0 pt-2")},r.createElement("span",{className:"align-self-center"},e.media.name),r.createElement(v.m,{tooltipPlacement:"right",className:"ps-1 mb-n1",video:e.media,yearGroups:e.yearGroups}))),D&&r.createElement(u.c,{className:b.badgeListContainer},r.createElement(c.P,{audience:O,className:"bg-white text-dark",border:"dark"}),h.M.isVideo(e.media)&&r.createElement(s.C,{type:s.g.Rating,data:e.media.rating}),!!e.hasResources&&r.createElement(s.C,{type:s.g.Resources,data:[].concat(E(null!==(C=null===(L=e.media.resources)||void 0===L?void 0:L.data)&&void 0!==C?C:[]),E(null!==(x=null===(N=e.media.links)||void 0===N?void 0:N.data)&&void 0!==x?x:[]))})),h.M.isClip(e.media)&&H&&r.createElement("p",{className:"my-1 me-3 clamp-1"},r.createElement(d.x,{namespace:w,phrase:"viewOriginal"})," ",r.createElement(l.F,{className:"info-link",appLink:e.originalVideoAppLink},null===(S=e.media._parentVideo)||void 0===S?void 0:S.name)),e.featureAccess.canNavigate&&r.createElement("div",{className:"ms-2 ".concat(b.actionsContainer," ").concat(I?b.belowTitle:"")},r.createElement(o.e,{actions:B(e.media),actionsDropdownClassName:"btn btn-outline-dark"})))}},81024:(e,t,n)=>{n.d(t,{S:()=>f});var r=n(32735),i=n(23481),a=n(65858),o=n(36848),l=n(83914),c=n(54610),s=n(67453),u=n(35223),m=n(31908);const d="LL7My",v="QoLgZ";var p=i.T.encloseNamespace("shared.playerPlaceholder");function f(e){switch(e.type){case"pip":return r.createElement(h,Object.assign({},e));case"public":return r.createElement(g,Object.assign({},e));default:return r.createElement(r.Fragment,null)}}var h=function(e){var t,n;return r.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(null!==(n=null===(t=m.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"","')")}},r.createElement("p",{className:"m-0 text-white h3 ".concat("BcnSH")},p("playingPiP")),r.createElement("div",{className:d}))},g=function(e){var t,n,i=s.j.createUrl(null!==(n=null===(t=m.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"",{size:c.h2.Large});return r.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(i,"')")}},r.createElement(o.F,{appLink:e.appLink,analyticsOptions:{actionType:a.Vw.Click,location:a.LZ.PlayPage,entity:a.py.AppLink,workflowPhase:a.eu.Start,descriptor:a.Yu.SignUp},analyticsData:{}},r.createElement(l.x,{svgName:u.vn.PlayCircle,className:"x_1f6"}),r.createElement("div",{className:d})))}},99719:(e,t,n)=>{n.d(t,{X:()=>k});var r=n(32735),i=n(98495),a=n(23481),o=n(78259),l=n(65858),c=n(11607),s=n(25723),u=n(87311),m=n(91743),d=n(83345),v=n(31908),p=n(90102),f=n(52588);const h={closeButton:"j5mgW",descriptionBorder:"uotsN"};var g="shared.videoDetails",y=a.T.encloseNamespace(g);function b(e){var t=e.label,n=e.items,i=e.className;if(!(n&&n.data&&n.data.length))return r.createElement(r.Fragment,null);var a=n.data.map((function(e){return e.name})).join(", ");return r.createElement("div",{className:i},t,": ",a)}function E(e){var t,n,i,a,o,l,c,s,p,f,h=e.video;if(!v.M.isVideo(h)&&!v.M.isClip(h))return r.createElement(r.Fragment,null);var g=v.M.getParentVideo(h);return r.createElement("div",{className:h.description?"col-md-5 ps-md-3 pt-3 pt-md-0":"col-12"},r.createElement("h2",{className:"h6 mb-1"},r.createElement(d.x,{phrase:"details"})),e.hasPPDD&&r.createElement("div",{className:"pb-2"},r.createElement(b,{label:y("productionCompanies",{smartCount:null===(n=null===(t=g.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length}),items:g.productionCompanies}),r.createElement(b,{label:y("distributors",{smartCount:null===(a=null===(i=g.distributors)||void 0===i?void 0:i.data)||void 0===a?void 0:a.length}),items:g.distributors}),r.createElement(b,{label:y("producers",{smartCount:null===(l=null===(o=g.producers)||void 0===o?void 0:o.data)||void 0===l?void 0:l.length}),items:g.producers}),r.createElement(b,{label:y("directors",{smartCount:null===(s=null===(c=g.directors)||void 0===c?void 0:c.data)||void 0===s?void 0:s.length}),items:g.directors})),!!(null===(f=null===(p=h.tags)||void 0===p?void 0:p.data)||void 0===f?void 0:f.length)&&r.createElement(m.P,Object.assign({tags:h.tags.data},u.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity))))}function k(e){var t,n,a=e.video,u=e.maxHeight,m=void 0===u?p.x:u,y=!!e.video.description,b=(0,f._)(e.video),k=b||(v.M.isVideo(e.video)||v.M.isClip(e.video))&&!!(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),L="function"==typeof e.onClickClose,w="function"==typeof e.onClickShowCurriculumLinks;return y||k?r.createElement(d.D.Provider,{value:g},r.createElement("div",{className:"rounded border p-3 mb-3 position-relative"},r.createElement(i.ZP,{autoHeight:!0,autoHeightMax:m},r.createElement("div",{className:"row g-0"},y&&r.createElement("div",{className:k?"".concat(h.descriptionBorder," pe-3 col-md-7"):"col-12"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("h2",{className:"h6 mb-1"},r.createElement(d.x,{phrase:"description"})),r.createElement(s.m,{text:a.description,title:a.name,className:"ps-2",onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:l.LZ.PlayPage,entity:l.py.Video,actionType:l.Vw.Click,descriptor:l._S.LaunchImmersiveReader},analyticsData:{id:a.id,type:"description"}})),r.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:o.O.linkifyText(e.video.description,{nl2br:!0})}}),w&&r.createElement(c.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info mt-2 mb-1"},r.createElement(d.x,{namespace:g,phrase:"seeCurriculumLinks"}))),k&&r.createElement(E,Object.assign({},e,{hasPPDD:b})))),L&&r.createElement("button",{type:"button",className:"btn-close ".concat(h.closeButton),"aria-label":"Close",onClick:e.onClickClose}))):r.createElement(r.Fragment,null)}},42571:(e,t,n)=>{n.d(t,{H:()=>i});var r=n(32735);function i(){return r.createElement("div",{className:"p-3 mb-3 border rounded"},r.createElement("div",{className:"row"},r.createElement("div",{className:"pe-3 col-md-7 border-right"},r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"4.5rem"}}),r.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"15rem"}})),r.createElement("div",{className:"col-md-5 ps-md-3 pt-3 pt-md-0"},r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"7rem"}}),r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"10rem"}}),r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3.5rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4.5rem"}}))))}},90102:(e,t,n)=>{n.d(t,{x:()=>r});var r=368},35014:(e,t,n)=>{n.d(t,{I:()=>u});var r=n(20354),i=n(16714),a=n(12754),o=n(39151),l=n(22902),c=n(15311),s=n(11387);function u(){var e=(0,l.T)(),t=e.hasPermissions,n=e.hasLocalPermissions,u=(0,c.r)().hasProduct,m=r.a.useBasicFetch(o.L.config()),d=u(a.x.Primary);return{canWatchPublicly:function(e){var t,n;return!!e&&!!(null===(n=null===(t=m.data)||void 0===t?void 0:t.allowedPublicVideos)||void 0===n?void 0:n[e])},canViewGlance:t(i.C.ViewVideoGlance),canViewResources:!0,canViewInteractives:d&&t(i.C.ViewVideoInteractives),canViewClips:d&&t(i.C.ViewVideoClips),canViewCurriculumLinks:t(i.C.ViewCurriculums),canUseActions:n(i.E.UseVideoActions),canViewPublicLayout:!n(i.E.WatchVideos)&&s.C.hasRegionPrefix(),canViewResourceItems:n(i.E.ViewVideoResourceItems),canNavigate:d}}},93563:(e,t,n)=>{n.d(t,{Z:()=>r});const r={container:"BImYH",background:"aAY0j",topLeft:"azcIT",bottomLeft:"mBkCx",topRight:"tcN5n",bottomRight:"sHsOr",detailsBtn:"jyxT7",content:"PeWbM",highlightPoi:"un8Q0"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2261],{73758:(e,t,n)=>{function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}n.d(t,{n:()=>o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}var t,n;return t=e,n=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var r;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(r=this.listeners[e])&&void 0!==r?r:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var r=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof r&&-1!==r&&(this.listeners[e].splice(r,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.listeners[e]){var a=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&a.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(r))})),a.length&&a.forEach((function(n){return t.deregisterListener(e,n)}))}}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},25723:(e,t,n)=>{n.d(t,{m:()=>f});var r=n(32735),i=n(29014),a=n(99940),o=n(23481),l=n(79014),c=n(44704),s=n(49985);const u={button:"nckQw"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=null,v=!1,p="shared.immersiveReader";function f(e){var t,n,f=(t=r.useState(m),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],g=f[1];return m||v||(v=!0,(0,c.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:a.k.GET,success:function(e){m=e,g(e),window.setTimeout((function(){m=null,v=!1}),9e5)},error:function(){}})),h?(e.title||(e.title=o.T.getPhrase(p,"titleFallback")),r.createElement("span",{className:"".concat(u.button," ").concat(e.className||""),onClick:function(){l.q.isFunction(e.onLaunch)&&e.onLaunch(),s.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},n=h.subdomain,r=h.token,a={uiZIndex:5e3,onExit:function(){l.q.isFunction(e.onExit)&&e.onExit()}};i.launchAsync(r,n,t,a)}},r.createElement("svg",{viewBox:"0 0 40 37"},r.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),r.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),r.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),r.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))):r.createElement(r.Fragment,null)}},87311:(e,t,n)=>{n.d(t,{G:()=>i});var r=n(81886),i={getTagActionProps:function(e,t){return t?{onClick:function(t){var n=e?e(t):null;if(n)return r.Q.C$.trigger(n)}}:{getAppLink:function(t){return e?e(t):null}}}}},19670:(e,t,n)=>{n.d(t,{o:()=>p});var r=n(32735),i=n(1048),a=n(11607),o=n(87311),l=n(91743),c=n(83345),s=n(54610),u=n(67453),d=n(32614),m=n(93563),v="shared.videoAtAGlance";function p(e){var t=(0,d.Wp)(e.video,e.theme),n=(0,d.md)(e.video,e.pointsOfInterest,t,e.suppressInteractivity),p=(0,d.RH)(e.pointsOfInterest,t);if(!t)return r.createElement(r.Fragment,null);var f,h,g,y,b,E=(null===(g=null===(h=null==(f=e.theme)?void 0:f.data)||void 0===h?void 0:h.colours)||void 0===g?void 0:g.primary)&&(null===(b=null===(y=null==f?void 0:f.data)||void 0===y?void 0:y.colours)||void 0===b?void 0:b.secondary)?f.data.colours:{primary:"#F5F4FF",secondary:"#9294FF"},k="function"==typeof e.onClickShowDescription,L="function"==typeof e.onClickShowCurriculumLinks;return r.createElement("div",{className:"rounded border px-3 px-sm-5 py-3 mb-3 position-relative d-flex justify-content-center ".concat(m.Z.container),style:{backgroundColor:E.primary}},r.createElement("div",{className:"".concat(m.Z.content," d-flex align-items-center pt-4 pt-sm-0")},r.createElement("div",null,r.createElement("h2",{className:"h4"},r.createElement(c.x,{namespace:v,phrase:"videoAtAGlance"})),k&&r.createElement(a.L,{onClick:e.onClickShowDescription,className:"".concat(m.Z.detailsBtn," position-absolute cursor-pointer me-4 fw-semibold text-info")},r.createElement(c.x,{namespace:v,phrase:"readFullDescription"})),r.createElement("div",{ref:p,onClick:function(t){return(0,d.$H)(t,e.pointsOfInterest,e.setStartTime)},dangerouslySetInnerHTML:{__html:n}}),function(){var t,n,i,a;return(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)?r.createElement("div",{className:"py-1"},r.createElement(l.P,Object.assign({tags:null===(a=null===(i=e.video)||void 0===i?void 0:i.tags)||void 0===a?void 0:a.data,themeColours:E},o.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity)))):r.createElement(r.Fragment,null)}(),r.createElement("div",{className:"mt-2"},L&&r.createElement(a.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info"},r.createElement(c.x,{namespace:v,phrase:"seeCurriculumLinks"}))))),function(){var t,n,a,o=null!==(a=null===(n=null===(t=e.theme)||void 0===t?void 0:t.data)||void 0===n?void 0:n.images)&&void 0!==a?a:{};return i.t.keys(o).filter((function(e){return!i.t.isEmpty(o[e])})).map((function(e){var t,n,i=u.j.createUrl(null===(t=o[e])||void 0===t?void 0:t.url,{size:s.h2.Medium});return r.createElement("div",{key:null===(n=o[e])||void 0===n?void 0:n.fileId,className:"".concat(m.Z[e]," ").concat(m.Z.background),style:{backgroundImage:"url('".concat(i,"')")}})}))}())}},32614:(e,t,n)=>{n.d(t,{Wp:()=>g,$H:()=>p,md:()=>f,RH:()=>h});var r=n(32735),i=n(16367),a=n(73758);function o(e,t,n,i){var o=function(){a.n.unsubscribe(e,t)};return(0,r.useEffect)((function(){if(i)return n?a.n.subscribeOnce(e,t):a.n.subscribe(e,t),function(){o()}}),[]),o}var l=n(93264),c=n(93563);function s(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=/(\[.*\]\(cv:\/\/poi\?id=[0-9]+\))/g,d=/[0-9]+/,m=/\[.*\]/,v=/[\[\]]/g;function p(e,t,n){e.preventDefault();var r=e.target.getAttribute("href");if((null==r?void 0:r.includes("cv://poi"))&&(null==t?void 0:t.length)){var i=r.split("cv://poi?id=")[1],a=t.find((function(e){return e.id.toString()===i}));n&&a&&n(a.startTime)}}function f(e,t,n,a){var o,c,p,f=(c=(0,r.useState)(""),p=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,p)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(c,p)||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.")}()),h=f[0],g=f[1];return(0,r.useEffect)((function(){if(n){var r=function(e,t,n){var r=function(e,t,n){return(null==t?void 0:t.length)?e.content.replace(u,(function(e){var r=e.match(d);if(!(null==r?void 0:r.length))return e;var i=t.find((function(e){return e.id.toString()===r[0]})),a=e.match(m);if(!i||!(null==a?void 0:a.length))return e;var o='<span class="me-2">'.concat(l.T.ToDisplayDuration(1e3*i.startTime),"</span>"),c=a[0];return c=(c=c.replace(v,""))||i.description,c="".concat(o," ").concat(c),n?'<span class="d-flex">'.concat(c,"</span>"):e.replace(m,"[".concat(c,"]"))})):e.content}(e,t,n);return i(r).split('a href="cv://poi').join('a class="d-flex" href="cv://poi')}(e.glance,t,a);g(r)}}),[null===(o=e.glance)||void 0===o?void 0:o.content,null==t?void 0:t.length,n]),h}function h(e,t){var n=(0,r.useRef)();function i(){var t=this.getAttribute("href");if((null==t?void 0:t.includes("cv://poi"))&&(null==e?void 0:e.length)){var n=t.split("cv://poi?id=")[1];if(n){var r=e.find((function(e){return e.id.toString()===n}));r&&a.n.trigger("glance:poi:mouseover",r)}}}function l(){a.n.trigger("glance:poi:mouseleave")}function s(){var e;return null===(e=n.current)||void 0===e?void 0:e.querySelectorAll('[href*="cv://poi"]')}return o("player:poi:mouseover",(function(e){var t,r=null==e?void 0:e.id;r&&(null===(t=function(e){var t;return null===(t=n.current)||void 0===t?void 0:t.querySelector('[href="cv://poi?id='.concat(e,'"]'))}(r))||void 0===t||t.classList.add(c.Z.highlightPoi))}),null,t),o("player:poi:mouseleave",(function(){var e;null===(e=s())||void 0===e||e.forEach((function(e){return e.classList.remove(c.Z.highlightPoi)}))}),null,t),(0,r.useEffect)((function(){if(n.current&&t){var e=s();return e.forEach((function(e){return e.addEventListener("mouseover",i)})),e.forEach((function(e){return e.addEventListener("mouseleave",l)})),function(){e.forEach((function(e){return e.removeEventListener("mouseover",i)})),e.forEach((function(e){return e.removeEventListener("mouseleave",l)}))}}}),[n.current]),n}function g(e,t){var n,r;return t&&(null===(n=e.glance)||void 0===n?void 0:n.content)&&"text/markdown"===(null===(r=e.glance)||void 0===r?void 0:r.format)}},15446:(e,t,n)=>{n.d(t,{C:()=>u});var r=n(32735),i=n(65858),a=n(36848),o=n(72188),l=n(3133),c=n(54610),s=n(68626);var u=r.memo((function(e){var t;return r.createElement("div",{className:"flex-shrink-0 px-1 ".concat("hzP5u")},r.createElement("div",{className:"row m-0 border rounded p-2 h-100"},r.createElement("div",{className:"col-6 p-0"},r.createElement(o.u,{video:e.data,appLink:e.getAppLink(e.data),type:"cosmetic",imageOptions:{size:c.h2.Small},textPosition:s.z.Independent,analyticsOptions:{location:i.LZ.SlidingListItem},preload:!0})),r.createElement("div",{className:"col-6 p-0"},r.createElement("div",{className:"ps-2"},r.createElement(a.F,{appLink:e.getAppLink(e.data)},r.createElement("h3",{className:"h6 mb-1"},r.createElement("span",{className:"clamp-2"},e.data.name))),r.createElement(l.R,{owner:e.data.owner,isClickViewContent:null===(t=e.data._isClickViewContent)||void 0===t?void 0:t.value,imageCdnUrl:e.imageCdnUrl})))))}))},28907:(e,t,n)=>{n.d(t,{r:()=>a});var r=n(99940),i=n(97395),a={theme:function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},themeImages:function(e,t){return{url:i._.urlBuilder("/api/domain/v1/themes",{name:e,type:t}),key:"themes:".concat(e,":").concat(t)}},themes:function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n,formatData:function(e){return e.sort((function(e,t){return e.name.localeCompare(t.name)}))}}},createTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:r.k.POST,invalidationKeys:"themes",success:t,error:n,always:i}},updateTheme:function(e,t,n,i,a){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:r.k.PUT,success:n,error:i,always:a}},deleteTheme:function(e,t,n,i){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:r.k.DELETE,invalidationKeys:"themes",success:t,error:n,always:i}}}},57654:(e,t,n)=>{n.d(t,{v:()=>C});var r=n(32735),i=n(79014),a=n(65858),o=n(83657),l=n(36848),c=n(40955),s=n(76246),u=n(17464),d=n(96022),m=n(83345),v=n(38647),p=n(80143),f=n(10038),h=n(31908),g=n(99092),y=n(65986);const b={series:"_4XDZ",badgeListContainer:"d42pt",actionsContainer:"QYD37",belowTitle:"cMbeG"};function E(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w="shared.playPage";function C(e){var t,n,L,C,N,x,S,P,A,T=(P=r.useState(!1),A=2,function(e){if(Array.isArray(e))return e}(P)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(P,A)||k(P,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.")}()),I=T[0],j=T[1],O=(0,p.n)(null===(t=e.media.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),V=r.useRef(null),M=r.useRef(null);function F(){if(V.current&&M.current){var e=V.current.getBoundingClientRect().width,t=M.current.getBoundingClientRect().width>e/2;t&&!I?j(!0):!t&&I&&j(!1)}}var R=i.q.throttle(F,300);(0,f.H)(R,null,[I]),r.useEffect(F,[V,M,I]);var Z=(0,g.A1)(e.media),D=Z.hasBadges,_=Z.hasSeries,B=(0,y._)(y.i.PlayPage),H=!!e.originalVideoAppLink&&h.M.isClip(e.media)&&h.M.canViewOriginalVideo(e.media);return r.createElement("section",{className:"".concat(_||D?"mb-3":"mb-2"," position-relative"),ref:V},r.createElement("div",{className:"d-inline-block",ref:M},!!h.M.isVideo(e.media)&&r.createElement(d.Mr,{video:e.media,appLink:null===(n=e.getSeriesAppLink)||void 0===n?void 0:n.call(e,e.media.series),className:"".concat(b.series," text-truncate mw-100"),analyticsOptions:{location:a.LZ.PlayPage}}),r.createElement("h1",{className:"h4 d-inline-flex align-items-center mb-2 mt-n1 mw-100 ".concat(_||D?"":"mb-0 pt-2")},r.createElement("span",{className:"align-self-center"},e.media.name),r.createElement(v.m,{tooltipPlacement:"right",className:"ps-1 mb-n1",video:e.media,yearGroups:e.yearGroups}))),D&&r.createElement(u.c,{className:b.badgeListContainer},r.createElement(c.P,{audience:O,className:"bg-white text-dark",border:"dark"}),h.M.isVideo(e.media)&&r.createElement(s.C,{type:s.g.Rating,data:e.media.rating}),h.M.isVideo(e.media)&&r.createElement(s.C,{type:s.g.ProductionYear,data:e.media.productionYear}),!!e.hasResources&&r.createElement(s.C,{type:s.g.Resources,data:[].concat(E(null!==(C=null===(L=e.media.resources)||void 0===L?void 0:L.data)&&void 0!==C?C:[]),E(null!==(x=null===(N=e.media.links)||void 0===N?void 0:N.data)&&void 0!==x?x:[]))})),h.M.isClip(e.media)&&H&&r.createElement("p",{className:"my-1 me-3 clamp-1"},r.createElement(m.x,{namespace:w,phrase:"viewOriginal"})," ",r.createElement(l.F,{className:"info-link",appLink:e.originalVideoAppLink},null===(S=e.media._parentVideo)||void 0===S?void 0:S.name)),e.featureAccess.canNavigate&&r.createElement("div",{className:"ms-2 ".concat(b.actionsContainer," ").concat(I?b.belowTitle:"")},r.createElement(o.e,{actions:B(e.media),actionsDropdownClassName:"btn btn-outline-dark"})))}},81024:(e,t,n)=>{n.d(t,{S:()=>f});var r=n(32735),i=n(23481),a=n(65858),o=n(36848),l=n(83914),c=n(54610),s=n(67453),u=n(35223),d=n(31908);const m="LL7My",v="QoLgZ";var p=i.T.encloseNamespace("shared.playerPlaceholder");function f(e){switch(e.type){case"pip":return r.createElement(h,Object.assign({},e));case"public":return r.createElement(g,Object.assign({},e));default:return r.createElement(r.Fragment,null)}}var h=function(e){var t,n;return r.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(null!==(n=null===(t=d.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"","')")}},r.createElement("p",{className:"m-0 text-white h3 ".concat("BcnSH")},p("playingPiP")),r.createElement("div",{className:m}))},g=function(e){var t,n,i=s.j.createUrl(null!==(n=null===(t=d.M.getThumbnail(e.video))||void 0===t?void 0:t.url)&&void 0!==n?n:"",{size:c.h2.Large});return r.createElement("div",{className:"position-relative responsive-img ".concat(v),style:{backgroundImage:"url('".concat(i,"')")}},r.createElement(o.F,{appLink:e.appLink,analyticsOptions:{actionType:a.Vw.Click,location:a.LZ.PlayPage,entity:a.py.AppLink,workflowPhase:a.eu.Start,descriptor:a.Yu.SignUp},analyticsData:{}},r.createElement(l.x,{svgName:u.vn.PlayCircle,className:"x_1f6"}),r.createElement("div",{className:m})))}},99719:(e,t,n)=>{n.d(t,{X:()=>k});var r=n(32735),i=n(98495),a=n(23481),o=n(78259),l=n(65858),c=n(11607),s=n(25723),u=n(87311),d=n(91743),m=n(83345),v=n(31908),p=n(90102),f=n(52588);const h={closeButton:"j5mgW",descriptionBorder:"uotsN"};var g="shared.videoDetails",y=a.T.encloseNamespace(g);function b(e){var t=e.label,n=e.items,i=e.className;if(!(n&&n.data&&n.data.length))return r.createElement(r.Fragment,null);var a=n.data.map((function(e){return e.name})).join(", ");return r.createElement("div",{className:i},t,": ",a)}function E(e){var t,n,i,a,o,l,c,s,p,f,h=e.video;if(!v.M.isVideo(h)&&!v.M.isClip(h))return r.createElement(r.Fragment,null);var g=v.M.getParentVideo(h);return r.createElement("div",{className:h.description?"col-md-5 ps-md-3 pt-3 pt-md-0":"col-12"},r.createElement("h2",{className:"h6 mb-1"},r.createElement(m.x,{phrase:"details"})),e.hasPPDD&&r.createElement("div",{className:"pb-2"},r.createElement(b,{label:y("productionCompanies",{smartCount:null===(n=null===(t=g.productionCompanies)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length}),items:g.productionCompanies}),r.createElement(b,{label:y("distributors",{smartCount:null===(a=null===(i=g.distributors)||void 0===i?void 0:i.data)||void 0===a?void 0:a.length}),items:g.distributors}),r.createElement(b,{label:y("producers",{smartCount:null===(l=null===(o=g.producers)||void 0===o?void 0:o.data)||void 0===l?void 0:l.length}),items:g.producers}),r.createElement(b,{label:y("directors",{smartCount:null===(s=null===(c=g.directors)||void 0===c?void 0:c.data)||void 0===s?void 0:s.length}),items:g.directors})),!!(null===(f=null===(p=h.tags)||void 0===p?void 0:p.data)||void 0===f?void 0:f.length)&&r.createElement(d.P,Object.assign({tags:h.tags.data},u.G.getTagActionProps(e.getTagAppLink,e.suppressInteractivity))))}function k(e){var t,n,a=e.video,u=e.maxHeight,d=void 0===u?p.x:u,y=!!e.video.description,b=(0,f._)(e.video),k=b||(v.M.isVideo(e.video)||v.M.isClip(e.video))&&!!(null===(n=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),L="function"==typeof e.onClickClose,w="function"==typeof e.onClickShowCurriculumLinks;return y||k?r.createElement(m.D.Provider,{value:g},r.createElement("div",{className:"rounded border p-3 mb-3 position-relative"},r.createElement(i.ZP,{autoHeight:!0,autoHeightMax:d},r.createElement("div",{className:"row g-0"},y&&r.createElement("div",{className:k?"".concat(h.descriptionBorder," pe-3 col-md-7"):"col-12"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("h2",{className:"h6 mb-1"},r.createElement(m.x,{phrase:"description"})),r.createElement(s.m,{text:a.description,title:a.name,className:"ps-2",onLaunch:e.onLaunchImmersiveReader,onExit:e.onExitImmersiveReader,analyticsOptions:{location:l.LZ.PlayPage,entity:l.py.Video,actionType:l.Vw.Click,descriptor:l._S.LaunchImmersiveReader},analyticsData:{id:a.id,type:"description"}})),r.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:o.O.linkifyText(e.video.description,{nl2br:!0})}}),w&&r.createElement(c.L,{onClick:e.onClickShowCurriculumLinks,className:"cursor-pointer d-inline-block fw-semibold text-info mt-2 mb-1"},r.createElement(m.x,{namespace:g,phrase:"seeCurriculumLinks"}))),k&&r.createElement(E,Object.assign({},e,{hasPPDD:b})))),L&&r.createElement("button",{type:"button",className:"btn-close ".concat(h.closeButton),"aria-label":"Close",onClick:e.onClickClose}))):r.createElement(r.Fragment,null)}},42571:(e,t,n)=>{n.d(t,{H:()=>i});var r=n(32735);function i(){return r.createElement("div",{className:"p-3 mb-3 border rounded"},r.createElement("div",{className:"row"},r.createElement("div",{className:"pe-3 col-md-7 border-right"},r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"4.5rem"}}),r.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"15rem"}})),r.createElement("div",{className:"col-md-5 ps-md-3 pt-3 pt-md-0"},r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"7rem"}}),r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"10rem"}}),r.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.5rem",width:"12rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"3.5rem"}}),r.createElement("div",{className:"partial-loading-background mb-2 me-2 d-inline-block",style:{height:"1.5rem",width:"4.5rem"}}))))}},90102:(e,t,n)=>{n.d(t,{x:()=>r});var r=368},35014:(e,t,n)=>{n.d(t,{I:()=>u});var r=n(20354),i=n(16714),a=n(12754),o=n(39151),l=n(22902),c=n(15311),s=n(11387);function u(){var e=(0,l.T)(),t=e.hasPermissions,n=e.hasLocalPermissions,u=(0,c.r)().hasProduct,d=r.a.useBasicFetch(o.L.config()),m=u(a.x.Primary);return{canWatchPublicly:function(e){var t,n;return!!e&&!!(null===(n=null===(t=d.data)||void 0===t?void 0:t.allowedPublicVideos)||void 0===n?void 0:n[e])},canViewGlance:t(i.C.ViewVideoGlance),canViewResources:!0,canViewInteractives:m&&t(i.C.ViewVideoInteractives),canViewClips:m&&t(i.C.ViewVideoClips),canViewCurriculumLinks:t(i.C.ViewCurriculums),canUseActions:n(i.E.UseVideoActions),canViewPublicLayout:!n(i.E.WatchVideos)&&s.C.hasRegionPrefix(),canViewResourceItems:n(i.E.ViewVideoResourceItems),canNavigate:m}}},93563:(e,t,n)=>{n.d(t,{Z:()=>r});const r={container:"BImYH",background:"aAY0j",topLeft:"azcIT",bottomLeft:"mBkCx",topRight:"tcN5n",bottomRight:"sHsOr",detailsBtn:"jyxT7",content:"PeWbM",highlightPoi:"un8Q0"}}}]);