@clickview/lite 0.37.0 → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/scripts/1890-fac67abcd4-lite.chunk.js +2 -0
- package/dist/scripts/1919-c92024eb18-lite.chunk.js +1 -0
- package/dist/scripts/2178-9f30edb829-lite.chunk.js +2 -0
- package/dist/scripts/2703-b9c67faeaa-lite.chunk.js +2 -0
- package/dist/scripts/3331-47c346fbb4-lite.chunk.js +2 -0
- package/dist/scripts/{4441-e5d9aad4bd-lite.chunk.js → 4441-6bb928c2ab-lite.chunk.js} +2 -2
- package/dist/scripts/5759-ea2f4e5b7d-lite.chunk.js +2 -0
- package/dist/scripts/6480-69f86ad437-lite.chunk.js +1 -0
- package/dist/scripts/6683-8c6292186c-lite.chunk.js +2 -0
- package/dist/scripts/714-a239d7c2f3-lite.chunk.js +1 -0
- package/dist/scripts/7703-b3cff25cc6-lite.chunk.js +1 -0
- package/dist/scripts/8834-d4101ca13d-lite.chunk.js +1 -0
- package/dist/scripts/{9371-78abb90d7d-lite.chunk.js → 9371-6d41f8c918-lite.chunk.js} +2 -2
- package/dist/scripts/bundle-2a51458b64.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/1890-29ffc32401-lite.chunk.js +0 -2
- package/dist/scripts/1919-462a9742af-lite.chunk.js +0 -1
- package/dist/scripts/2178-322bebcb5f-lite.chunk.js +0 -2
- package/dist/scripts/2703-981f9a6464-lite.chunk.js +0 -2
- package/dist/scripts/3331-a1474ac71d-lite.chunk.js +0 -2
- package/dist/scripts/5759-9c1c05c5a8-lite.chunk.js +0 -2
- package/dist/scripts/6480-320902c961-lite.chunk.js +0 -1
- package/dist/scripts/6683-8f3a9bff6b-lite.chunk.js +0 -2
- package/dist/scripts/714-b50291e308-lite.chunk.js +0 -1
- package/dist/scripts/7703-ef68ccdd14-lite.chunk.js +0 -1
- package/dist/scripts/8834-40ba980fcd-lite.chunk.js +0 -1
- package/dist/scripts/bundle-dc071fa7d1.min.js +0 -2
- /package/dist/scripts/{1890-29ffc32401-lite.chunk.js.LICENSE.txt → 1890-fac67abcd4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2178-322bebcb5f-lite.chunk.js.LICENSE.txt → 2178-9f30edb829-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2703-981f9a6464-lite.chunk.js.LICENSE.txt → 2703-b9c67faeaa-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3331-a1474ac71d-lite.chunk.js.LICENSE.txt → 3331-47c346fbb4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4441-e5d9aad4bd-lite.chunk.js.LICENSE.txt → 4441-6bb928c2ab-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5271-1af494d9bd-lite.chunk.js → 5271-9cad234c26-lite.chunk.js} +0 -0
- /package/dist/scripts/{5759-9c1c05c5a8-lite.chunk.js.LICENSE.txt → 5759-ea2f4e5b7d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6683-8f3a9bff6b-lite.chunk.js.LICENSE.txt → 6683-8c6292186c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9371-78abb90d7d-lite.chunk.js.LICENSE.txt → 9371-6d41f8c918-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-dc071fa7d1.min.js.LICENSE.txt → bundle-2a51458b64.min.js.LICENSE.txt} +0 -0
package/dist/bundles.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1890-fac67abcd4-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1890],{19808:(e,t,n)=>{var r;n.d(t,{b:()=>r}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},12058:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(32735);function o(e){return r.createElement("p",{className:e.className},e.children)}},75919:(e,t,n)=>{n.d(t,{N:()=>a});var r=n(32735);const o={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function a(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(o.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},!!e.annotationUrl&&r.createElement("div",{className:function(){var t=o.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(o.above," ").concat(o.left);break;case"top-right":t+=" ".concat(o.above," ").concat(o.right);break;case"bottom-left":t+=" ".concat(o.below," ").concat(o.left);break;case"bottom-right":t+=" ".concat(o.below," ").concat(o.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:o.divider}));var t}a.defaultProps={contentPosition:"center"}},45038:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(32735),o=n(57245);const a={playerContainer:"w7_Oy",fallback:"xcBuH"};function i(e){return r.createElement("div",{className:"".concat(a.playerContainer," w-100")},e.hasDataLoaded?r.createElement(o._,{config:e.config,video:e.video,currentUser:e.currentUser,shareLink:e.shareLink,viewKey:e.viewKey,onReady:e.onReady,allowPip:!1,allowCreateClip:!1}):r.createElement("div",{className:"".concat(a.fallback," w-100 h-100 bg-light rounded-3 overflow-hidden")}))}},98065:(e,t,n)=>{n.d(t,{x:()=>o});var r=n(19808),o={getWelcomeVideo:function(e){return e?e.primaryUrl.includes("staging")?{videoId:"43000110",shareId:"GgX4xD"}:{videoId:"78694940",shareId:"DNBPmD"}:null},getAdvisorVideo:function(e){if(!e)return null;if(e.primaryUrl.includes("staging"))return{videoId:"43002959",shareId:"b98KVj"};switch(e.instanceRegion){case r.b.US:return{videoId:"78658407",shareId:"GmoxQj"};case r.b.UK:return{videoId:"78647428",shareId:"bwaxkD"};case r.b.AU:default:return{videoId:"78647427",shareId:"Ggo8pG"}}}}},30544:(e,t,n)=>{n.r(t),n.d(t,{OnboardingWelcomeVideoView:()=>B});var r=n(32735),o=n(23481),a=n(20354),i=n(65858),c=n(30439),s=n(83914),u=n(83345),l=n(60051),d=n(39151),f=n(47812),h=n(31949),v=n(1575),p=n(79967),m=n(35223),y=n(99742),g=n(75359),b=n(12058),w=n(40695),I=n(75919),x=n(45038),E=n(73190),C=n(90815),P=n(98065);const k={headingContainer:"hPvDP",buttonContainer:"ORgxa",icon:"BogCL",skipButton:"uaLaz",replayContainer:"d1Nj9",playerContainer:"pHDzd",infoContainer:"lmbyg"};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 N(){N=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),c=new V(r||[]);return o(i,"_invoke",{value:k(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function y(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var I=Object.getPrototypeOf,x=I&&I(I(_([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=b.prototype=y.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,a,i,c){var s=d(e[o],e,a);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==L(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(l).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function k(t,n,r){var o=f;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var s=S(c,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(L(t)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},C(P.prototype),u(P.prototype,c,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new P(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),u(E,s,"Generator"),u(E,i,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,V.prototype={constructor:V,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(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)?j(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 j(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}function O(e,t,n){var r;return r=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==L(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V,_=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))},T="onboarding.welcomeVideo";!function(e){e[e.IsPaused=0]="IsPaused",e[e.IsPlayingDisabled=1]="IsPlayingDisabled",e[e.Countdown3=2]="Countdown3",e[e.Countdown2=3]="Countdown2",e[e.Countdown1=4]="Countdown1",e[e.IsComplete=5]="IsComplete"}(V||(V={}));var U=O(O(O(O(O(O({},V.IsPaused,o.T.getPhrase(T,"playVideo")),V.IsPlayingDisabled,o.T.getPhrase(T,"getStarted")),V.Countdown3,o.T.getPhrase(T,"getStartedIn",{time:3})),V.Countdown2,o.T.getPhrase(T,"getStartedIn",{time:2})),V.Countdown1,o.T.getPhrase(T,"getStartedIn",{time:1})),V.IsComplete,o.T.getPhrase(T,"getStarted"));function B(){var e=(0,E.Q)(),t=e.completeStepAsync,n=e.onSaveError,o=(0,C.H)().logEvent,L=a.a.useBasicFetch(d.L.config()),j=a.a.useBasicFetch(h.N.currentUser()),O=P.x.getWelcomeVideo(L.data),B=r.useRef(),A=a.a.useBasicFetch(O&&v.R.sharedVideo(O.videoId,O.shareId)),D=a.a.useBasicFetch(c.o.getShareObject(O.shareId)),F=a.a.useBasicFetch(f.k.createViewKey(O.shareId,l.f.Share)),R=S(r.useState(V.IsPaused),2),G=R[0],K=R[1],z=S(r.useState(!1),2),W=z[0],H=z[1];function M(e){G!==e&&K(e)}var Q=(0,p.k)();function X(){return _(this,void 0,void 0,N().mark((function e(){return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t();case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),n(),e.abrupt("return",Promise.reject());case 9:case"end":return e.stop()}}),e,null,[[0,5]])})))}function Y(e){B.current=e,e.isPaused()&&M(V.IsPaused);var t=!1,n=function(){var n=e.currentTime();if(n!==e.duration()||W?n!==e.duration()&&W&&H(!1):H(!0),!t)if(e.isPaused())M(V.IsPaused);else{var r=Math.floor(e.duration()-n);r>22?M(V.IsPlayingDisabled):22!==r?21!==r?20!==r?(M(V.IsComplete),t=!0):M(V.Countdown1):M(V.Countdown2):M(V.Countdown3)}},r=function(){o(i.Vw.Click,i.Ix.PlayVideo,{videoId:O.videoId,shareId:O.shareId})},a=function(){o(i.Vw.Click,i.Ix.PauseVideo,{videoId:O.videoId,shareId:O.shareId})},c=function(){o(i.Vw.Complete,i.Ix.FinishVideo,{videoId:O.videoId,shareId:O.shareId})};e.on("timeupdate",n),e.on("play",r),e.on("pause",a),e.on("ended",c),e.one("dispose",(function(){e.off("timeupdate",n),e.off("play",r),e.off("pause",a),e.off("ended",c)}))}var Z=A.data&&j.hasCompleted&&L.hasCompleted&&D.hasCompleted&&F.hasCompleted,$=Q.lg||Q.xl||Q.xxl;return r.createElement(w.z,{namespace:T},r.createElement(w.z.Left,{className:"bg-dark-blue d-flex justify-content-center flex-column"},$&&r.createElement(I.N,{annotationUrl:y.W.OnboardingV2.WelcomeVideo.HIT_PLAY,annotationPosition:"bottom-right",annotationClassName:"pe-5"},r.createElement(x.P,{hasDataLoaded:Z,config:L.data,video:A.data,currentUser:j.data,shareLink:D.data,viewKey:F.data,onReady:Y}))),r.createElement(w.z.Right,{hasCustomButtons:!0},r.createElement(g.W,{className:k.headingContainer},r.createElement(u.x,{phrase:"heading"})),!$&&r.createElement(x.P,{hasDataLoaded:Z,config:L.data,video:A.data,currentUser:j.data,shareLink:D.data,viewKey:F.data,onReady:Y}),r.createElement(b.X,{className:k.infoContainer},r.createElement(u.x,{phrase:"watchVideo"})),W&&r.createElement("div",{className:"position-absolute ".concat(k.replayContainer)},r.createElement("button",{className:"btn btn-link text-info text-decoration-none btn-lg ".concat(k.replayButton),onClick:function(){var e,t;o(i.Vw.Click,i.Ix.ReplayVideo,{videoId:O.videoId,shareId:O.shareId}),H(!1),null===(e=B.current)||void 0===e||e.currentTime(0),null===(t=B.current)||void 0===t||t.play()}},r.createElement(s.x,{svgName:m.vn.Retry,className:"svg-container ".concat(k.icon)}),r.createElement(u.x,{phrase:"replayVideo"}))),r.createElement("div",{className:"position-absolute ".concat(k.buttonContainer)},r.createElement("button",{className:"btn btn-link text-decoration-none btn-lg ".concat(k.skipButton),onClick:function(){o(i.Vw.Click,i.Ix.SkipVideo,{videoId:O.videoId,shareId:O.shareId}),X()}},r.createElement(u.x,{phrase:"skipVideo"})),r.createElement("button",{className:"btn btn-dark btn-lg",onClick:G===V.IsPaused?function(){var e;null===(e=B.current)||void 0===e||e.play()}:function(){o(i.Vw.Click,i.Ix.Next,{videoId:O.videoId,shareId:O.shareId}),X()},disabled:G!==V.IsComplete&&G!==V.IsPaused},G===V.IsPaused&&r.createElement(s.x,{svgName:m.vn.Play,className:"svg-container ".concat(k.icon)}),U[G]))))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1919],{3278:(e,t,n)=>{n.d(t,{z:()=>p});var a=n(32735),r=n(39202),i=n(23481),o=n(65858),c=n(38502),l=n(83345),s=n(32725);const u={pillTab:"bMJM0"};var d="discover.header";function p(e){var t,n,p,m,b,v;if(!e.type)return a.createElement(a.Fragment,null);if(e.type===s.Yv.Learner||e.hasStudentExperience)return a.createElement("div",{className:"py-3"},a.createElement("h1",{className:"h2 mb-0"},a.createElement(l.x,{namespace:d,phrase:"heading"})));var f=[{name:i.T.getPhrase(d,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(d,"forYou"),url:r.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(d,"whatsNew"),appLink:null===(p=e.appLinks)||void 0===p?void 0:p.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(d,"whatsNew"),url:r.C$.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.whatsNew)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return e.showCalendar&&f.push({name:i.T.getPhrase(d,"calendar"),appLink:null===(b=e.appLinks)||void 0===b?void 0:b.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(d,"calendar"),url:r.C$.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}),a.createElement("div",{className:"py-3 text-center"},a.createElement(c.r,{tabs:f,className:u.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>s});var a=n(32735),r=n(49985),i=n(36848),o=n(76246),c=n(11607),l=n(87432);function s(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a.createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(l.Z.pillTabSelector)},e.tabs.map((function(e){return a.createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?a.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(l.Z.pillItem)},e.name,"number"==typeof e.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.count}))):a.createElement(c.L,{className:"".concat(l.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.count}))))}))))}},19808:(e,t,n)=>{var a;n.d(t,{b:()=>a}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(a||(a={}))},74590:(e,t,n)=>{n.d(t,{N:()=>g});var a=n(32735),r=n(35242),i=n(20354),o=n(27022),c=n(72639),l=n(31949),s=n(37802),u=n(10144),d=n(86698);function p(e){return p="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},p(e)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(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)?b(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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function v(e,t,n){var a;return a=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=p(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==p(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=v(v(v(v(v(v({},o.t.AU,[c.p.Level_1]),o.t.US,[c.p.Level_1]),o.t.UK,[c.p.Level_1]),o.t.SCOT,[c.p.Level_1]),o.t.NZ,[]),o.t.GLOBAL,[]);function g(){var e,t=(0,s.r)(null),n=t.hasSpecialEventCalendar,o=t.isLoadingSettings,c=(0,d.y)({redirectOnError:!0}).activePresentation,p=i.a.useBasicFetch(l.N.currentUser()),b=f[null===(e=p.data)||void 0===e?void 0:e.contentRegion],v=u.i.getMappedPresentationLevel(null==c?void 0:c.learningLevel),g=!(null==b?void 0:b.find((function(e){return e.toString()===(null==v?void 0:v.toString())}))),y=!o&&!n,h=m(a.useState(!y&&!g),2),T=h[0],A=h[1],S=m(a.useState(o||!(null==c?void 0:c.id)),2),C=S[0],E=S[1];return a.useEffect((function(){y||g?A(!1):C||A(!0),E(o||!(null==c?void 0:c.id))}),[n,null==c?void 0:c.id,C]),r.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:T,isLoading:C}}},5776:(e,t,n)=>{n.r(t),n.d(t,{CuratedDiscoverView:()=>ie});var a=n(32735),r=n(23481),i=n(57900),o=n(20354),c=n(2948),l=n(49985),s=n(65858),u=n(75896),d=n(3278),p=n(52382),m=n(16714),b=n(22902),v=n(32725),f=n(21366),g=n(23232),y=n(83345),h=n(76177),T=n(35223),A="subjects.discoverDashboardEmptyState",S=r.T.encloseNamespace(A);function C(e){var t,n,i=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===v.GL.Archived;return a.createElement(g.u,null,a.createElement(g.u.Image,{src:e.imageUrl,altText:S("info")}),a.createElement(g.u.Heading,null,a.createElement(y.x,{namespace:A,phrase:"heading"})),a.createElement(g.u.Info,null,a.createElement(y.x,{namespace:A,phrase:"info"})),a.createElement(h.u,{title:i?r.T.getPhrase(A,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(g.u.Cta,{text:r.T.getPhrase(A,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:T.vn.Plus,disabled:i})))}function E(e){var t,n,r=u.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),i=(0,(0,b.T)().hasPermissions)(m.C.StudentExperience);function o(t,n,a){var r=f.S.getWidgetParams(n,a,f.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,r,e.presentation)}var c=e.isReadonly&&!(null==r?void 0:r.length);return a.createElement(a.Fragment,null,a.createElement(d.z,{type:null===(n=e.dashboard)||void 0===n?void 0:n.userType,appLinks:e.headerAppLinks,hasStudentExperience:e.hasStudentExperience,showCalendar:e.showCalendar,active:"forYou"}),r.map((function(t,n){return a.createElement(p.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:o,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,onSubmitFeedback:e.onSubmitFeedback,updatePreferences:e.updatePreferences,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,lazyLoad:e.lazyLoad,dashboardTarget:v.ku.Discover,widgetIndex:n,showVideoGuidance:!i,jobTitle:e.jobTitle,isPreviewing:e.isReadonly,imageUrls:e.imageUrls,settings:e.settings})})),c&&a.createElement(C,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var L=n(38143),k=n(72639),N=n(21750),O=n(39151),D=n(1666),I=n(80889),w=n(31949),U=n(97037),P=n(87348),F=n(79612),R=n(37802),x=n(69454),_=n(10874),j=n(99742),B=n(14070),H=n(97291);const M={banner:"Vqx6B"};var W="shared.upgradeVideoBanner";function V(){return a.createElement("div",{className:"py-4 px-3 rounded h4 ".concat(M.banner," border"),style:{backgroundImage:'url("'.concat(j.W.Upgrade.VIDEO_BANNER,'")')}},a.createElement(y.x,{namespace:W,phrase:"message"}),a.createElement(_.h,{svgName:T.vn.Play,appLink:{application:H.O.DEFAULT,action:B.e.Default.LITE_UPGRADE_VIDEO},className:"btn btn-outline-dark ms-3 align-middle"},a.createElement(y.x,{namespace:W,phrase:"button"})))}var Z=n(52333),G=n(82817),Y=n(23737),$=n(56017),q=n(33192),z=n(74590),K=n(28400),J=n(17475),Q=n(183),X=n(67753),ee=n(67963),te=n(82431),ne="classification-latest-releases";function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var re=r.T.encloseNamespace("dashboard.dashboard");function ie(e){var t,n,r,d,p,f,g,y,h,T=o.a.useBasicFetch(O.L.config()),A=o.a.useBasicFetch(w.N.currentUser()),S=o.a.useBasicFetch((null===(t=A.data)||void 0===t?void 0:t.isAuthenticated)&&w.N.user(A.data.id)),C=(0,b.T)(),_=C.hasLocalPermissions,M=C.hasPermissions,W=o.a.useBasicFetch(_(m.E.ManageDiscoverPreferences)&&A.data&&D.h.customer(A.data.customerId)),ie=o.a.useBasicFetch((null===(n=A.data)||void 0===n?void 0:n.isAuthenticated)&&D.h.yearGroups(A.data.customerId)),oe=(0,G.M)().activeCurriculum,ce=(0,Y.y)({targetType:v.ku.Discover,queryParams:e.queryParams,presentationSlug:e.presentationSlug}),le=ce.dashboard,se=ce.presentation,ue=ce.audiences,de=(0,P.Q)(),pe=o.a.useGetFetchAsync(),me=(0,R.r)(null),be=(0,U.c)(s.LZ.Dashboard),ve=be.setFavourite,fe=be.canFavourite,ge=(y=(0,c.D)(L.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),h=1,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(y,h)||function(e,t){if(e){if("string"==typeof e)return ae(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)?ae(e,t):void 0}}(y,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],ye=(g=x.T.getAudienceParams(ge),{classification:function(e){return{application:H.O.SUBJECT,action:B.e.Subjects.CLASSIFICATION,args:[null==e?void 0:e.id,K.m.slugify(null==e?void 0:e.name)],params:g||{}}},classificationTopics:function(){return{application:H.O.SUBJECT,action:B.e.Subjects.CLASSIFICATION_TOPICS,params:g||{}}},videoType:function(e,t){return X.W.getAppLink(e,{context:Q.Q.Widget,contextId:t})},series:te.j.getSeriesAppLink,playlist:function(e){return{application:H.O.PLAYLISTS,action:B.e.Playlists.PLAYLIST,args:[e.id,K.m.slugify(e.name)]}},latestReleases:function(){return{application:H.O.CONTENT_UPDATES,action:B.e.ContentUpdates.CONTENT_UPDATES}},allTopics:function(e){return{application:H.O.SUBJECT,action:B.e.Subjects.CLASSIFICATION_ALL,params:{presentationId:e}}},classificationLatestReleases:function(e){return e.id===ne?{application:H.O.CONTENT_UPDATES,action:B.e.ContentUpdates.CONTENT_UPDATES}:{application:H.O.CONTENT_UPDATES,action:B.e.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,K.m.slugify(e.name)]}},widgetVideoList:function(e,t){return{application:H.O.DASHBOARD,action:B.e.Dashboard.DASHBOARD,args:[e,K.m.slugify(t)]}},watchHistory:function(){return{application:H.O.WATCH_HISTORY,action:B.e.WatchHistory.HOME}},rating:function(e,t){return{application:H.O.SEARCH,action:B.e.Search.HOME,params:{moviesAndTv:!0,rating:J.S.getFrontendParamValue([u.m.first(t),e])}}},company:function(e){return{application:H.O.MOVIES_AND_TV,action:B.e.MoviesAndTv.COMPANY_DASHBOARD,args:[e.id,K.m.slugify(e.name)]}},discover:function(){return{application:H.O.DASHBOARD,action:B.e.Dashboard.HOME}},calendar:function(){return{application:H.O.CALENDAR,action:B.e.Calendar.CALENDAR}},calendarMonth:function(e,t){var n={application:H.O.CALENDAR,action:B.e.Calendar.CALENDAR_MONTH,args:[e.toLowerCase()]};return t&&(n.params={year:t}),n},onboardingStep:function(e){return(0,ee.u)()[e]},onboardingAppLinks:function(){return(0,ee.u)()}}),he=function(e){return+k.p[null==e?void 0:e.learningLevel]===k.p.Level_1?"VariantOne":"VariantTwo"}(se);(0,F.M)($.C.getDiscoverMetadata({content:se,phraseContext:{phraseHandler:re,titlePhrase:"pageTitle".concat(he),descriptionPhrase:"pageDescription".concat(he)},canonicalLink:q.f.getCanonicalLink(),allowIndexing:q.f.allowIndexing(),hrefLang:q.f.getStaticRouteHrefLang(null==se?void 0:se.learningLevel,ye.discover)}));var Te=(0,z.N)().showCalendar;return a.createElement("div",{className:"bg-white px-4"},de.isUpgrading&&(null===(r=le.data)||void 0===r?void 0:r.userType)===v.Yv.Staff&&a.createElement(V,null),a.createElement(E,{currentUser:A.data,dashboard:le.data,widgetAppLinks:ye,headerAppLinks:{forYou:{application:H.O.DASHBOARD,action:B.e.Dashboard.HOME},whatsNew:{application:H.O.CONTENT_UPDATES,action:B.e.ContentUpdates.CONTENT_UPDATES},calendar:{application:H.O.CALENDAR,action:B.e.Calendar.CALENDAR}},presentation:se,curriculum:oe,getCurriculumLinksRequest:function(e){return N.x.curriculumLinks(e,null==oe?void 0:oe.id)},imageCdnUrl:T.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:j.W.Fallbacks.RESOURCE_THUMBNAIL,getWidgetContentRequest:I._.dashboardWidgetContent,setFavourite:ve,audiences:ue.data,canFavourite:fe,updatePreferences:function(e,t){return pe(I._.updateWidgetPreferences(e,t,A.data))},hasPermissions:M,hasLocalPermissions:_,onSubmitFeedback:M(m.C.CanSubmitFeedback)&&function(e){var t=pe(Z.n.sendDiscoverFooterFeedback(e,A.data,W.data,se,le.data,M(m.C.StudentExperience)));return l.k.logUserAction({feedbackType:e.type,content:e.content,presentationId:se.id,dashboardId:le.data.id},{actionType:s.Vw.Submit,location:s.LZ.DiscoverFooter,entity:s.py.Feedback,workflowPhase:s.eu.Complete}),t},hasStudentExperience:M(m.C.StudentExperience),yearGroups:ie.data,lazyLoad:!q.f.isBot(),showCalendar:Te,jobTitle:null===(f=null===(p=null===(d=S.data)||void 0===d?void 0:d.userProfile)||void 0===p?void 0:p.metadata)||void 0===f?void 0:f.jobTitle,imageUrls:{onboardingAdminBackgroundFull:j.W.OnboardingV2.Widget.ADMIN_BACKGROUND_FULL,onboardingAdminBackground:j.W.OnboardingV2.Widget.ADMIN_BACKGROUND,onboardingTeacherBackground:j.W.OnboardingV2.Widget.TEACHER_BACKGROUND},settings:me}))}},52333:(e,t,n)=>{n.d(t,{n:()=>c});var a=n(99940),r=n(19808),i=n(86613);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c={sendDiscoverFooterFeedback:function(e,t,n,a,r,i){var o=e.content.split("\n").join("<br />");return l("Discover Footer Feedback","\n <b>Type:</b> ".concat("positive"===e.type?"Positive":"Negative","\n <br />\n <b>Location:</b> Discover Footer\n <br />\n <b>Presentation:</b> ").concat(a.description," (ID: ").concat(a.id,")\n <br />\n <b>Dashboard:</b> ").concat(r.name," (ID: ").concat(r.id,")\n <br />\n ").concat(s(t,n,i),"\n <br />\n <b>Feedback:</b>\n <br />\n ").concat(o,"\n "),t,["discover",i?"student":"staff"])},sendTopicFooterFeedback:function(e,t,n,a,r,i,o){var c=e.content.split("\n").join("<br />");return l("Topic Footer Feedback","\n <b>Type:</b> ".concat("positive"===e.type?"Positive":"Negative","\n <br />\n <b>Location:</b> Topic Footer\n <br />\n <b>Presentation:</b> ").concat(a.description," (ID: ").concat(a.id,")\n <br />\n <b>Classification:</b> ").concat(r.name," (ID: ").concat(r.id,")\n <br />\n <b>Dashboard:</b> ").concat(i.name," (ID: ").concat(i.id,")\n <br />\n ").concat(s(t,n,o),"\n <br />\n <b>Feedback:</b>\n <br />\n ").concat(c,"\n "),t,["topics",o?"student":"staff"])}};function l(e,t,n,c){var l,s=["new product","in product feedback"].concat(function(e){if(Array.isArray(e))return o(e)}(l=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(l)||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.")}());n.role===i.i.Admin&&s.push("administrator");var u=function(e){switch(e){case r.b.AU:return"au";case r.b.NZ:return"nz";case r.b.UK:return"uk";case r.b.US:return"us"}}(n.instanceRegion);return u&&s.push(u),{url:"/api/productboard/notes",key:"productboard:feedback",data:{title:e,content:t,user:{email:n.emailVerified?n.email:""},tags:s},type:a.k.POST}}function s(e,t,n){return"\n <b>User:</b>\n <br />\n <li>ID: ".concat(e.id,"</li>\n <li>Username: ").concat(e.username,"</li>\n <li>Email: ").concat(e.email,"</li>\n <li>User Type / Role: ").concat(function(e,t){return t?"Learner":e.role===i.i.Admin?"Admin":"Staff"}(e,n),"</li>\n <li>Customer ID: ").concat(e.customerId,"</li>\n <li>CVC ID: ").concat(t.crmId,"</li>\n <li>Customer Name: ").concat(t.name,"</li>\n <li>Instance Region: ").concat(e.instanceRegion,"</li>\n <li>Content Region: ").concat(e.contentRegion,"</li>\n ")}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(95685),r=n.n(a),i=n(32735),o=n(46304),c=n(74512);const l=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...a},i)=>{const l=(0,o.vE)(e,"row"),s=(0,o.pi)(),u=(0,o.zG)(),d=`${l}-cols`,p=[];return s.forEach((e=>{const t=a[e];let n;delete a[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r=e!==u?`-${e}`:"";null!=n&&p.push(`${d}${r}-${n}`)})),(0,c.jsx)(n,{ref:i,...a,className:r()(t,l,...p)})}));l.displayName="Row";const s=l}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2178-9f30edb829-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2178],{2192:(e,t,n)=>{n.d(t,{M:()=>p,Q:()=>g});var r=n(32735),a=n(45157),c=n(36848),o=n(60376),l=n(5465),i=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),f=n(92038),v=function(e){var t=e.name,n=e.multiline,a="".concat(f.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),c="";return n?c+=" ".concat(f.Z.clamped," clamp-2"):(a+=" text-nowrap",c+=" text-truncate"),r.createElement("div",{className:a},r.createElement("small",{className:"text-muted"},r.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),r.createElement("p",{className:"".concat(f.Z.name," h6")},r.createElement("span",{className:c},t)))},h=function(e){var t=e.name,n=e.multiline,a=e.subtitle,c="px-3 d-flex flex-column justify-content-center",o="".concat(f.Z.name," h6");return n?o+=" clamp-2 text-start":(c+=" text-nowrap text-truncate",o+=" text-truncate mb-0 pb-1"),r.createElement("div",{className:c},a&&r.createElement("div",{className:"text-secondary clamp-1 ".concat(f.Z.text)},a),r.createElement("div",{className:o,title:n?"":t},t))};function p(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return r.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(f.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(a.Y.getRandomInt())},e.isSelected&&r.createElement("div",{className:"".concat(f.Z.selectedMask," border-2")}),r.createElement("div",{className:"".concat(f.Z.imagePanel," ").concat(e.isLarge?f.Z.large:"")},e.isSelected&&!e.hideCheckmark&&r.createElement("div",{className:f.Z.selected},r.createElement(o.f,{svgName:d.vn.Check,svgSize:i.S.Large,textVariant:"white",variant:"green"})),r.createElement("div",{className:"".concat(f.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&r.createElement(l.oy,{type:l.mS.Subject,extraClasses:e.isLarge?f.Z.large:""})),e.isComingSoon?r.createElement(v,Object.assign({},n)):r.createElement(h,Object.assign({},n)))}function g(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return r.createElement(r.Fragment,null,n?r.createElement(c.F,{className:f.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},r.createElement(p,Object.assign({},e))):r.createElement(p,Object.assign({},e)))}},19808:(e,t,n)=>{var r;n.d(t,{b:()=>r}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},12058:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(32735);function a(e){return r.createElement("p",{className:e.className},e.children)}},75919:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(32735);const a={annotation:"LkdHB",above:"ROdbm",below:"OzyHx",left:"W9EBF",right:"zhio2",divider:"cdR_p",imageContainer:"QZZMF"};function c(e){return r.createElement("div",{className:(t="d-flex align-items-center text-center position-relative w-100 ".concat(a.imageContainer),"center"===e.contentPosition&&(t+=" px-5 justify-content-center"),"right"===e.contentPosition&&(t+=" me-n5 justify-content-end"),t)},!!e.annotationUrl&&r.createElement("div",{className:function(){var t=a.annotation;switch(e.annotationPosition){case"top-left":t+=" ".concat(a.above," ").concat(a.left);break;case"top-right":t+=" ".concat(a.above," ").concat(a.right);break;case"bottom-left":t+=" ".concat(a.below," ").concat(a.left);break;case"bottom-right":t+=" ".concat(a.below," ").concat(a.right)}return e.annotationClassName&&(t+=" ".concat(e.annotationClassName)),t}()},r.createElement("img",{className:"img-fluid",src:e.annotationUrl})),e.children,"right"===e.contentPosition&&r.createElement("div",{className:a.divider}));var t}c.defaultProps={contentPosition:"center"}},39375:(e,t,n)=>{n.d(t,{Y:()=>u});var r=n(32735),a=n(54610),c=n(67453),o=n(2248);const l={magicTab:"H5jzm",subjectPlaceholder:"r1L6T",placeholderCover:"z9CFT",promotedTopicPlaceholder:"PbYs6",promotedTopicPlaceholderText:"hZ8Nf"};function i(e){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"d-flex border rounded-3 overflow-hidden ".concat(l.subjectPlaceholder)},e.coverUrl?r.createElement("div",{className:l.placeholderCover},r.createElement("img",{className:"img-fluid",src:c.j.createUrl(e.coverUrl,{size:a.h2.Small})})):r.createElement("div",{className:"".concat(l.placeholderCover," bg-light-blue")})))}function s(){return r.createElement("li",{className:"col-4"},r.createElement("div",{className:"bg-light-blue rounded-3 w-100 p-1 ".concat(l.promotedTopicPlaceholder)}))}function u(e){var t,n,a,c=Math.max(12-(null!==(n=null===(t=e.subjects)||void 0===t?void 0:t.length)&&void 0!==n?n:0),0);return r.createElement(o.L,{presentation:e.presentation,curriculum:e.curriculum,editingCurriculum:e.editingCurriculum},r.createElement("div",{className:"px-3 pt-3 w-100 d-flex flex-column align-items-center"},r.createElement("div",{className:"rounded-3 border overflow-hidden d-flex mb-2"},r.createElement("div",{className:"bg-light ".concat(l.magicTab)}),r.createElement("div",{className:"".concat(l.magicTab)})),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1 mb-2"},null===(a=e.subjects)||void 0===a?void 0:a.map((function(e){var t;return r.createElement(i,{key:e.id,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url})})),new Array(c).fill(0).map((function(e,t){return r.createElement(i,{key:t})}))),r.createElement("ul",{className:"list-unstyled mb-0 row w-100 g-xl-2 g-lg-1"},r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null),r.createElement(s,null))))}},2248:(e,t,n)=>{n.d(t,{L:()=>h});var r=n(32735),a=n(60376),c=n(83914),o=n(2786),l=n(83345),i=n(72639),s=n(79967),u=n(35223),m=n(10144);const d={dot:"AlRQD",logo:"L42gR",blackBar:"ESCxm",topNav:"a3G_4",leftNav:"YxGVV",belowHeader:"jc_cg",leftNavIcon:"U6i6r",leftNavText:"LnYlW",presentationPlaceholderIcon:"Ljaju",presentationIcon:"QdwPq",presentationPlaceholderText:"af06V",curriculumIcon:"N7T4T",curriculumIconSmall:"_6xrUg",curriculumContainer:"Z65qX",iconPlaceholder:"CKOXL",shadow:"zygeJ",presentationName:"Oj7Dt"};var f="onboarding.mockLayout";function v(){return r.createElement("div",{className:"d-flex align-items-center justify-content-center mb-2 px-3"},r.createElement("div",{className:"".concat(d.leftNavIcon," rounded-circle")}),r.createElement("div",{className:"".concat(d.leftNavText," rounded-pill")}))}function h(e){var t,n,h=(0,s.k)();return r.createElement("div",{className:"border border-dark border-2 bg-white rounded-3 user-select-none overflow-hidden position-relative h-100 w-100"},!!e.editingCurriculum&&r.createElement("div",{className:"w-100 h-100 position-absolute ".concat(d.shadow)},r.createElement("div",{className:"d-flex align-items-center h-100 w-50 ".concat(d.curriculumContainer)},r.createElement("div",{className:"bg-white rounded-3 border p-3 w-100"},r.createElement("h2",{className:"h6 text-start"},r.createElement(l.x,{namespace:f,phrase:"curriculum"})),e.curriculum?r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(d.curriculumIcon," rounded-circle me-2 border")},r.createElement(a.f,{imageUrl:null===(t=e.curriculum.cover)||void 0===t?void 0:t.url})),r.createElement("div",{className:"text-start"},e.curriculum.name)):r.createElement("div",{className:"d-flex align-items-center text-muted"},r.createElement("div",{className:"me-2 rounded-circle p-1 ".concat(d.iconPlaceholder)},r.createElement(a.f,{svgSize:c.S.Large,textVariant:"secondary",svgName:u.vn.GraduationCap})),r.createElement(l.x,{namespace:f,phrase:"selectCurriculum"}))))),r.createElement("div",{className:"bg-dark d-flex px-3 py-2 ".concat(d.blackBar)},r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle me-2 ".concat(d.dot)}),r.createElement("div",{className:"rounded-circle ".concat(d.dot)})),r.createElement("div",{className:"border-bottom px-3 py-2 d-flex align-items-center ".concat(d.topNav)},r.createElement("div",{className:"".concat(d.logo," me-4")},h.xs?r.createElement(o.bc,null):r.createElement(o.$S,null)),r.createElement("div",{className:"form-control w-75 d-flex justify-content-start"},r.createElement(c.x,{svgName:u.vn.Search})),!!e.curriculum&&r.createElement("div",{className:"".concat(d.curriculumIconSmall," rounded-circle ms-2 me-n1 border")},r.createElement(a.f,{imageUrl:null===(n=e.curriculum.cover)||void 0===n?void 0:n.url}))),r.createElement("div",{className:"d-flex ".concat(d.belowHeader)},r.createElement("div",{className:"".concat(d.leftNav," border-end")},r.createElement("div",{className:"d-flex flex-column pt-3 h-100"},r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement(v,null),r.createElement("div",{className:"d-flex align-items-end h-100 w-100"},r.createElement("div",{className:"border-top p-3 w-100"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("div",{className:"".concat(function(){if(!e.presentation)return d.presentationPlaceholderIcon;switch(m.i.getMappedPresentationLevel(e.presentation.learningLevel)){case i.p.Level_1:return"bg-indigo ".concat(d.presentationIcon);case i.p.Level_3:return"bg-blue ".concat(d.presentationIcon);default:case i.p.Level_2:return"bg-green ".concat(d.presentationIcon)}}()," text-white rounded")},r.createElement(c.x,{svgName:u.vn.School,size:c.S.Large})),e.presentation?r.createElement("span",{className:"fw-semibold text-truncate ".concat(d.presentationName)},e.presentation.name):r.createElement("div",{className:"".concat(d.presentationPlaceholderText," fw-semibold")},r.createElement(l.x,{namespace:f,phrase:"schoolLevel"}))))))),r.createElement("div",{className:"w-100 h-100 overflow-hidden"},e.children)))}},28457:(e,t,n)=>{n.r(t),n.d(t,{OnboardingSelectCurriculumView:()=>S});var r=n(32735),a=n(20354),c=n(74254),o=n(11607),l=n(83345),i=n(2192),s=n(19808),u=n(31949),m=n(99742),d=n(82817),f=n(86698),v=n(75359),h=n(12058),p=n(40695),g=n(75919),y=n(39375),b=n(73190),E=n(90815);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function x(){x=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},o=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var c=t&&t.prototype instanceof g?t:g,o=Object.create(c.prototype),l=new _(r||[]);return a(o,"_invoke",{value:j(e,n,l)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",v="executing",h="completed",p={};function g(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,L=w&&w(w(T([])));L&&L!==n&&r.call(L,o)&&(E=L);var k=b.prototype=g.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,c,o,l){var i=m(e[a],e,c);if("throw"!==i.type){var s=i.arg,u=s.value;return u&&"object"==N(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(i.arg)}var c;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return c=c?c.then(a,a):a()}})}function j(t,n,r){var a=d;return function(c,o){if(a===v)throw new Error("Generator is already running");if(a===h){if("throw"===c)throw o;return{value:e,done:!0}}for(r.method=c,r.arg=o;;){var l=r.delegate;if(l){var i=P(l,r);if(i){if(i===p)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=m(t,n,r);if("normal"===s.type){if(a=r.done?h:f,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=h,r.method="throw",r.arg=s.arg)}}}function P(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var c=m(a,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,p;var o=c.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,c=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}throw new TypeError(N(t)+" is not iterable")}return y.prototype=b,a(k,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,i,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,a,c){void 0===c&&(c=Promise);var o=new C(u(e,n,r,a),c);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),s(k,i,"Generator"),s(k,o,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return l.type="throw",l.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var c=this.tryEntries.length-1;c>=0;--c){var o=this.tryEntries[c],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var i=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var c=a;break}}c&&("break"===e||"continue"===e)&&c.tryLoc<=t&&t<=c.finallyLoc&&(c=null);var o=c?c.completion:{};return o.type=e,o.arg=t,c?(this.method="next",this.next=c.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;I(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}function w(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 L=function(e,t,n,r){return new(n||(n=Promise))((function(a,c){function o(e){try{i(r.next(e))}catch(e){c(e)}}function l(e){try{i(r.throw(e))}catch(e){c(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}i((r=r.apply(e,t||[])).next())}))},k="onboarding.selectCurriculum";function S(){var e,t,n,N=(0,b.Q)(),S=N.onClickBack,C=N.exitOnboarding,j=N.completeStepAsync,P=N.onSaveError,O=(0,E.H)().logEvent,I=(0,f.y)().preferredPresentation,_=(0,d.M)(),T=_.hasLoaded,U=_.activeCurriculum,A=_.availableCurriculums,Z=_.updateCurriculum,F=a.a.useBasicFetch(u.N.currentUser()),z=(t=r.useState(U),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,a,c,o,l=[],i=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=c.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(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.")}()),G=z[0],V=z[1];r.useEffect((function(){T&&(null==U?void 0:U.id)&&V(U)}),[T]);var B=(null==A?void 0:A.length)>3?6:12;return r.createElement(p.z,{namespace:k},r.createElement(p.z.Left,{className:"bg-dark-blue d-flex flex-column align-items-end justify-content-center"},r.createElement(g.N,{contentPosition:"right",annotationUrl:(null===(e=F.data)||void 0===e?void 0:e.instanceRegion)===s.b.US?m.W.OnboardingV2.SelectCurriculum.ANNOTATION_US:m.W.OnboardingV2.SelectCurriculum.ANNOTATION,annotationPosition:"top-left"},r.createElement(y.Y,{presentation:I,curriculum:G,editingCurriculum:!0}))),r.createElement(p.z.Right,{hasCustomButtons:!1,onClickNext:function(){return L(this,void 0,void 0,x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(c.Vw.Click,c.Ix.Next,{curriculumId:G.id,curriculumName:G.name}),e.prev=1,e.next=4,Promise.all([Z(G),j()]);case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),P(),e.abrupt("return",Promise.reject());case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))},onClickBack:S,onClickComeBackLater:C,disableNext:!G},r.createElement(v.W,null,r.createElement(l.x,{phrase:"heading"})),r.createElement(h.X,null,r.createElement(l.x,{phrase:"dontWorry"})),r.createElement("ul",{className:"list-unstyled mb-3 row g-2"},null==A?void 0:A.map((function(e){var t;return r.createElement("li",{key:e.id,className:"col-12 col-xl-".concat(B," col-lg-").concat(B," col-md-4 col-sm-6")},r.createElement(o.L,{onClick:function(){return function(e){O(c.Vw.Select,c.Ix.SelectCurriculum,{curriculumId:e.id,curriculumName:e.name}),V(e)}(e)}},r.createElement(i.M,{data:e,coverUrl:null===(t=e.cover)||void 0===t?void 0:t.url,imageClassName:"border-end",isSelected:e.id===(null==G?void 0:G.id),hideCheckmark:!0,multiline:!0,hideFallback:!0})))})))))}},92038:(e,t,n)=>{n.d(t,{Z:()=>r});const r={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2703-b9c67faeaa-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2703],{29711:(e,t,n)=>{n.d(t,{X:()=>N});var a=n(32735),r=n(110),i=n(23481),o=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s=i.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=r.O.isToday(e.date),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var i,u,d=(i=(0,o.L)({delay:250}),u=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(i,u)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(i,u)||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.")}()),m=d[0],p=d[1];return a.createElement("div",{className:"".concat(n," ").concat(p?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},r.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},s("today")))}var d=n(49985),m=n(65858),p=n(84963),v=n(12324),f=n(36848),g=n(11607),h=n(44435),y=n(83914),b=n(55171),E=n(2284),k=n(54610),w=n(67453),L=n(35223);const O={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function x(e){var t,n,i,o,l=e.sliderStep,c=e.setSliderStep,s=e.eventsOnDay.length>1,x=e.eventsOnDay.find((function(e,t){return t===l})),S=!!x.endDate,N=x.content.metadata.backgroundColor,T=b.e.SpecialEvents[x.content.id],j=T?w.j.createUrl(T.iconUrl,{size:k.h2.Medium}):w.j.createUrl(null===(t=x.content.icon)||void 0===t?void 0:t.url,{size:k.h2.Small}),D=w.j.createUrl(null===(n=x.content.cover)||void 0===n?void 0:n.url,{size:k.h2.Small}),I=x.content.status===E.W.ComingSoon,A=(i=a.useState(e.hasInitialized?O.appear:""),o=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(i,o)||function(e,t){if(e){if("string"==typeof e)return C(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)?C(e,t):void 0}}(i,o)||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.")}()),M=A[0],P=A[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){P(O.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(x)}),[e.isHovering,x]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===x.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,x]);var F=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return s?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=x.specialEventId,t.topicId=x.content.id,t.eventStatus=x.content.status),t}(),H={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function V(e){return r.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{onClick:function(){I&&d.k.logUserAction(F,H)}},a.createElement(f.F,{appLink:function(){var t,n;return s?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):I?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,x.content.id,x.name)}(),className:"d-flex justify-content-end",analyticsOptions:H,analyticsData:F},a.createElement("div",{className:"".concat(O.tagWrap," p-1")},I&&a.createElement(p.r,{className:"justify-content-center p-0 rounded-circle ".concat(O.tag," ").concat(M),onlyIcon:!0})),!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(O.date," ").concat(M),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(O.wrapper)},a.createElement("div",{style:{backgroundColor:N},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(O.eventCard," ").concat(M," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?O.multiEventFilter:""," ").concat(e.className)},a.createElement("div",{style:{backgroundImage:"url('".concat(j||D,"')")},className:"".concat(T?"".concat(O.hardcodedCover," position-absolute"):O.backgroundImage," ").concat(j?"":O.cover," ").concat(I?O.comingSoon:""," ").concat(M," ").concat(e.hasInitialized?O.noAnimation:""," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?O.multiEventFilter:""," ").concat(e.className)}),S&&a.createElement("div",{className:"".concat(O.displayDate)},v.T.getDisplayDate(x.startDate,x.endDate)),a.createElement("div",{className:"text-center ".concat(O.title," ").concat(s?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(O.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:x.name},x.name)),s&&0!==l&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(O.left)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),c((function(e){return e-1})),d.k.logUserAction({date:V(e.date),action:"previous",eventCount:e.eventsOnDay.length},H)}},a.createElement(y.x,{svgName:L.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(O.arrow)}))),s&&l!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(O.right)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),c((function(e){return e+1})),d.k.logUserAction({date:V(e.date),action:"next",eventCount:e.eventsOnDay.length},H)}},a.createElement(y.x,{svgName:L.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(O.arrow)}))),s&&a.createElement("div",{className:"d-flex ".concat(O.bottomBar," ").concat(s?"":O.bottomPlaceholder)},a.createElement(h.e,{sliderStep:l,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){c(t),d.k.logUserAction({date:V(e.date),action:"jump",eventCount:e.eventsOnDay.length},H)}}))))))}const S={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function N(e){var t,n,i=a.useMemo((function(){var t,n,a,i;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!r.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&r.O.isBetween(r.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(i=e.hoveredEvent)||void 0===i?void 0:i.endDate)}),[e.hoveredEvent]),o=null===(t=e.hoveredEvent)||void 0===t?void 0:t.content.metadata.backgroundColor;return a.createElement("div",{className:"".concat(S.cell," fw-semibold")},!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),i&&a.createElement("div",{style:{backgroundColor:o},className:S.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(x,Object.assign({},e,{isMultiEventDate:i})))}},84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),i=n(83914),o=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(o.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(36848);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 border-light-blue rounded-3 d-block fw-semibold ".concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(i.dateItem)},a.createElement("div",{className:"bg-light-blue py-1 ".concat(i.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.localeData().ordinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},2158:(e,t,n)=>{n.d(t,{T:()=>h});var a=n(32735),r=n(2948),i=n(20354),o=n(50122),l=n(25925),c=n(21750),s=n(5112),u=n(61699),d=n(31949),m=n(22902),p=n(37802),v=n(75795),f=n(33857);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function h(e){var t,n,h,y=(n=(0,r.D)("has:playlist",null),h=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(n,h)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(n,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=y[0],E=y[1],k=i.a.useBasicFetch(d.N.currentUser()),w=i.a.useBasicFetch((null===(t=k.data)||void 0===t?void 0:t.isAuthenticated)&&d.N.user(k.data.id)),L=i.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),O=i.a.useBasicFetch(c.x.presentation(l.R.Subject)),C=i.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),x=i.a.useBasicFetch(s.C.getUserPlaylists(new f.l)),S=i.a.useBasicFetch(u.o.mySubjectPreferences()),N=(0,m.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;x.hasCompleted&&b!==!!(null===(t=null===(e=x.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&E(!!(null===(a=null===(n=x.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[x.hasCompleted]);var T=k.hasCompleted&&w.hasCompleted&&L.hasCompleted&&C.hasCompleted&&O.hasCompleted&&x.hasCompleted&&S.hasCompleted&&null!==b,j=(0,p.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=w.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=r.preferredPresentationOverride||O.data;return T?o.m.getOnboardingPathway({jobTitle:i,userSettings:j.data,presentations:L.data,curriculums:C.data,preferredSubjects:S.data,preferredPresentation:l,appLink:v.O.getCurrentRoute().appLink,appLinks:e,masterUser:w.data,hasPlaylist:b,hasPermissions:N}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:T}}},98364:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>w});var a=n(32735),r=n(80247),i=n(80130),o=n(92802),l=n(79014),c=n(1048),s=n(36848),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),f=n(35223);function g(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-muted fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function k(e){var t,n,i=e.children,s=e.showLoadingSpinner,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(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.")}()),p=d[0],v=d[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function w(e){var t=e.label,n=e.className,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,w=e.formSize,L=e.showOptionalLabel,O=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),C=(0,o.u6)(),x=C.errors,S=C.touched,N=function(){};if("checkbox"===O.type){var T=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(T.onChange=N),a.createElement(d,Object.assign({},T))}var j=Object.assign(Object.assign({},O),{className:v.w.getCustomFormControlClassName(x,S,O.name,w,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=N),a.createElement(i.Z.Group,{className:"form-group"},!!t&&a.createElement(i.Z.Label,{htmlFor:O.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-muted"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!O.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:O.name,limit:O.maxLength}))),a.createElement(k,Object.assign({},j)),!!y&&a.createElement(i.Z.Text,{className:"text-muted"},y),a.createElement(o.Bc,{name:O.name},(function(e){return a.createElement(i.Z.Control.Feedback,{type:"invalid"},e)})))}k.defaultProps={autoComplete:"off"},w.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),r=n(92802),i=n(79014),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(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.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},52382:(e,t,n)=>{n.d(t,{L:()=>oa});var a=n(32735),r=n(79014),i=n(20354),o=n(5281),l=n(65858),c=n(36848),s=n(7733),u=n(54610),d=n(9085),m=n(67453);var p=function(e){var t,n,r,i=m.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,d.x)(e.data.name,s.o),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),v=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.CircleLogoSlidingListWidget,actionType:l.Vw.Click,entity:l.py.Company});return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:p,analyticsOptions:v},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(i,")")}}))},v=n(58704),f=n(32725);function g(e){var t;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Companies,collection:e.content,childComponent:p,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var h=n(55827),y=n(79967);var b=n(47770),E=n(68050),k=n(69111),w=n(9513),L=n(92802),O=n(23481),C=n(98364),x=n(23201),S=n(38365),N=n(82644),T=n(10874),j=n(83345),D=n(69883),I=n(35223),A=n(5173),M=A.Ry().shape({feedbackInput:A.Z_().max(5e3,(function(){return O.T.getPhrase("shared.feedbackForm","tooLong")}))});const P={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function F(e){return F="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},F(e)}function H(){H=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:x(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(D([])));w&&w!==n&&a.call(w,o)&&(E=w);var L=b.prototype=h.prototype=Object.create(E);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==F(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function x(t,n,a){var r=m;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(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 j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(F(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},O(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,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 n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var U=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},W="shared.feedbackForm";function R(e){var t,n,i=(t=a.useState("prompt"),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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return V(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)?V(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.")}()),o=i[0],l=i[1],c=(0,D.Z)();function s(t,n){return U(this,void 0,void 0,H().mark((function a(){return H().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(O.T.getPhrase(W,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})))}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:P.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(P.text)},a.createElement(C.V,{emoji:"🔎"},a.createElement(j.x,{namespace:W,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(T.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:I.vn.ThumbsUp},a.createElement(j.x,{namespace:W,phrase:"yes"})),a.createElement(T.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:I.vn.ThumbsDown},a.createElement(j.x,{namespace:W,phrase:"no"})))):"yes"===o?a.createElement(N.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(L.l0,{className:P.form},a.createElement("p",{className:"fw-semibold ".concat(P.text)},a.createElement(C.V,{emoji:"👏"},a.createElement(j.x,{namespace:W,phrase:"happyFeedback"}))),a.createElement(S.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:O.T.getPhrase(W,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(j.x,{namespace:W,phrase:"back"})),a.createElement(x.A,{variant:"dark",submitText:O.T.getPhrase(W,"sendFeedback")})))):"no"===o?a.createElement(N.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(L.l0,{className:P.form},a.createElement("p",{className:"fw-semibold ".concat(P.text)},a.createElement(C.V,{emoji:"😢"},a.createElement(j.x,{namespace:W,phrase:"unhappyFeedback"}))),a.createElement(S.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:O.T.getPhrase(W,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(j.x,{namespace:W,phrase:"back"})),a.createElement(x.A,{variant:"dark",submitText:O.T.getPhrase(W,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(C.V,{emoji:"🙌"},a.createElement(j.x,{namespace:W,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const B="MtcB3",Y="Geg0V";function z(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(B," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(E.Z,{className:"mb-2 ".concat(Y)},e.content.map((function(t){var n,r,i,o=m.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(k.Z,{key:t.id,xs:12,sm:6,lg:4},a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat("ZMjnx"," me-2")},a.createElement("div",{className:"".concat("SsxEf"," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(R,{onSubmit:e.onSubmitFeedback}))}var Z=n(98981),_=n(94495),G={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function q(e){return a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(Z.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),G)}))}))))}var X=n(16450),K=n(43741);function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function J(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function Q(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ee(e){var t,n,r=function(e,t){var n;if((null===(n=e.metadata)||void 0===n?void 0:n.appLink)===f.OL.ClassificationLatestReleases)return{id:"classification-latest-releases",name:"All new releases",cover:{url:m.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:J(t)}}(e,e.content),i=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===f.OL.ClassificationLatestReleases;return a.createElement(X.e,{collection:r?[r].concat((n=e.content,function(e){if(Array.isArray(e))return $(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:i?function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationLatestReleases)||void 0===a?void 0:a.call(n,t)}:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},childComponent:w.Vz,partialLoadingComponent:K.Q,heading:e.name,getSubtitle:i?Q:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var te=n(65163),ne=n(98269),ae=n(1048),re=n(49985),ie=n(11607),oe=n(17808),le=n(1287),ce=n(2102),se=n(83914),ue=n(83523),de=n(92038),me="shared.subjectWidgetItem",pe=a.forwardRef((function(e,t){var n;return"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(de.Z.widgetItem," ").concat(de.Z.draggingItem),style:ae.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(de.Z.widgetItem),style:ae.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(de.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-muted","\n ")},e.dragAttributes,e.dragListeners),a.createElement(se.x,{svgName:I.vn.Hamburger})),a.createElement("div",{className:"px-3 text-center d-flex flex-column justify-content-center text-nowrap text-truncate"},a.createElement("h3",{className:"".concat(de.Z.name," h6 text-truncate mb-0 mt-1 pb-1 ").concat(e.isVisible?"":"text-muted")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(ue.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?O.T.getPhrase(me,e.isVisible?"hideFromDashboard":"showOnDashboard"):O.T.getPhrase(me,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ve=n(91028),fe=n(16714),ge=n(54569),he=n(49542);function ye(e){return ye="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},ye(e)}function be(){be=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:x(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(D([])));w&&w!==n&&a.call(w,o)&&(E=w);var L=b.prototype=h.prototype=Object.create(E);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==ye(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function x(t,n,a){var r=m;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(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 j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ye(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},O(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,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 n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(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)?ke(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 ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var we="shared.editableCoverFixedPillListSmall";function Le(e){var t,n=Ee(a.useState(!1),2),r=n[0],i=n[1],o=Ee(a.useState(!1),2),c=o[0],s=o[1],u=a.useMemo((function(){var t,n;return null!==(n=null===(t=e.preferences)||void 0===t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==n?n:{}}),[e.preferences]),d=Ee(a.useState(u),2),m=d[0],p=d[1],v=Ee(a.useState(u),2),f=v[0],g=v[1],h=he.d.useGetContent(e.unfilteredContent,Object.values(f)),y=h.content,b=h.unfilteredContent,w=r?b:y,L=(0,D.Z)();a.useEffect((function(){i(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var C=a.useMemo((function(){return!(r||!w.length)&&Object.values(f).some((function(e){return e.hidden}))}),[r,f]);function x(e){return f[e.id]?f[e.id].index:w.findIndex((function(t){return t.id===e.id}))}function S(e){var t;return!(null===(t=f[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},f),n=S(e);t[e.id]={id:e.id,hidden:n,index:x(e)},re.k.logUserAction({id:e.id,name:e.name},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Hide,descriptor:n?l.DL.On:l.DL.Off}),g(t)}var T=a.useMemo((function(){return!ae.t.isEqual(u,f)}),[u,f]),A={id:e.presentation.id,name:O.T.getPhrase(we,"exploreAll"),cover:e.presentation.cover},M=e.hasLocalPermissions(fe.E.ManageDiscoverPreferences);return w.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between ".concat(e.description||r?"":"mb-1")},a.createElement("div",null,a.createElement("div",{className:"d-flex no-wrap flex-row"},a.createElement("h2",{className:"h4 mb-2 align-self-end flex-shrink-0"},r?O.T.getPhrase(we,"updating"):e.name),!r&&M&&a.createElement(ie.L,{className:"ms-1 align-self-end mb-2",onClick:function(){return i(!0)}},a.createElement(se.x,{svgName:I.vn.Edit}))),!!e.description&&!r&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),r&&a.createElement("p",{className:"description mb-2"},a.createElement(j.x,{namespace:we,phrase:"editingDescription"}))),r&&M&&a.createElement("div",{className:"mb-2 d-flex align-items-start"},a.createElement(ne.Z,{variant:"link",className:"me-2",onClick:function(){g(m),i(!1)}},a.createElement(j.x,{namespace:we,phrase:"cancel"})),a.createElement(ce.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=be().mark((function t(){return be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s(!0),e.updatePreferences(e.id,Object.values(f)).then((function(){p(f),s(!1),i(!1)})).catch((function(){s(!1),L.error(O.T.getPhrase(we,"error"))}));case 2:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:c,disabled:!T},a.createElement(j.x,{namespace:we,phrase:"update"})))),a.createElement(E.Z,{className:"mx-n1 mb-n2"},C&&a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(ve.V,{data:A,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})),a.createElement(oe.Q,{ids:w.map((function(e){return e.id})),getDragOverlay:function(e){var t=w.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(pe,{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!0,canToggle:!0}))},onSortStart:function(e){var t=w.find((function(t){return t.id.toString()===e.active.id.toString()})),n=w.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));re.k.logUserAction({id:t.id,name:t.name,index:n},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=x({id:t.id}),r=w.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=w[a];if(i){var o=Object.assign({},f);ge.l.reorder(w,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!S(e)}})),g(o),re.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Complete})}}},vertical:!1},w.map((function(t){return a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,r?a.createElement(le.W,{id:t.id,childComponent:pe,childProps:{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!1,canToggle:!S(t)||e.content.length>1}}):a.createElement(ve.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})))}))))):a.createElement(a.Fragment,null)}var Oe=n(110),Ce=n(11518),xe=n(29711),Se=n(73679);const Ne={dateItemContainer:"Hrx2m",container:"k2Xse"};var Te=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function je(e){return a.createElement("div",{className:"".concat(Ne.container," position-relative flex-shrink-0 bg-light-yellow")},a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none m-2 rounded-3 d-block position-relative",analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:e.data.specialEventId,name:e.data.name,startDate:e.data.startDate,endDate:e.data.endDate,classificationId:e.data.content.id,classificationName:e.data.content.name}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})},a.createElement(xe.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",hasInitialized:!0,hideDay:!0})))}function De(e){var t=e.data,n=Te(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ne.container," ").concat(Ne.dateItemContainer," flex-shrink-0 bg-light-yellow position-relative")},a.createElement(Se.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Url,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget}),className:"m-2"})):a.createElement(je,Object.assign({},n,{data:t}))}function Ie(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(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 Ae(e,t){if(e){if("string"==typeof e)return Me(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)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Pe=O.T.encloseNamespace("widgets.eventIconSlidingList");function Fe(e){var t,n,r=a.useMemo((function(){return function(e){var t=Ie(e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),n=new Date,a=Oe.O.format(n,"YYYY-MM-DD"),r=Oe.O.format(Oe.O.add(a,1,"day"),"YYYY-MM-DD"),i=Oe.O.format(Oe.O.add(Oe.O.startOf(n,"week"),8,"days"),"YYYY-MM-DD"),o=Oe.O.format(Oe.O.add(i,6,"days"),"YYYY-MM-DD"),l=Oe.O.format(Oe.O.startOf(n,"month"),"YYYY-MM-DD"),c=Oe.O.format(Oe.O.endOf(n,"month"),"YYYY-MM-DD"),s=Oe.O.format(Oe.O.startOf(Oe.O.add(n,1,"month"),"month"),"YYYY-MM-DD"),u=Oe.O.format(Oe.O.endOf(Oe.O.add(n,1,"month"),"month"),"YYYY-MM-DD"),d=Oe.O.format(Oe.O.startOf(Oe.O.add(n,2,"month"),"month"),"YYYY-MM-DD"),m=Oe.O.format(Oe.O.endOf(Oe.O.add(n,2,"month"),"month"),"YYYY-MM-DD"),p=new Map;function v(e){if(p.has(e.group)){var t=p.get(e.group);p.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Ie(t.events),[e.event])}))}else p.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}t.forEach((function(e){if(e.startDate<=a)v({group:"today",startDate:a,endDate:null,event:e,body:{text:Oe.O.format(a,"DD"),type:"day"},monthLabel:Oe.O.format(a,"MMMM"),label:Pe("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<i){var t=Oe.O.format(e.startDate,"dddd");v({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:Oe.O.format(e.startDate,"MMMM"),body:{text:Oe.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=i&&e.startDate<=o?v({group:"nextWeek",startDate:i,endDate:o,event:e,monthLabel:Oe.O.isSame(i,o,"month")?Oe.O.format(i,"MMMM"):"".concat(Oe.O.format(i,"MMM")," - ").concat(Oe.O.format(o,"MMM")),body:{text:"".concat(Oe.O.format(i,"DD"),"-").concat(Oe.O.format(o,"DD")),type:"range"},label:Pe("nextWeek")}):e.startDate>=l&&e.startDate<=c?v({group:"thisMonth",startDate:l,endDate:c,event:e,monthLabel:"",body:{text:Oe.O.format(e.startDate,"MMM"),type:"month"},label:Pe("thisMonth")}):e.startDate>=s&&e.startDate<=u?v({group:"nextMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:Oe.O.format(e.startDate,"MMM"),type:"month"},label:Pe("nextMonth")}):e.startDate>=d&&e.startDate<=m&&v({group:"later",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:Oe.O.format(e.startDate,"MMM"),type:"month"},label:Pe("later")});else v({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:Oe.O.format(r,"DD"),type:"day"},monthLabel:Oe.O.format(e.startDate,"MMMM"),label:Pe("tomorrow")})}));var f,g=[],h=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ae(e))){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(p.values());try{for(h.s();!(f=h.n()).done;){var y=f.value,b={label:y.label,body:y.body,month:y.monthLabel,appLinkMonth:Oe.O.format(y.startDate,"MMMM"),appLinkYear:Oe.O.format(y.startDate,"YYYY"),type:"date-widget-item"};g.push(b),y.events.forEach((function(e){g.push(e)}))}}catch(e){h.e(e)}finally{h.f()}return g}(e.content)}),[e.content]);return a.createElement(Ce.kM,{name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:f.l9.Row,contents:v.z.SpecialEvents,getChildAppLink:function(t){var n,a,r,i;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t.content)},collection:r,childComponent:De,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0})}var He=n(39202),Ve=n(72188),Ue=n(49439);function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Re=a.memo((function(e){var t,n,r=e.data,i=e.seriesAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Ue.L)({className:"lZsTl",style:{transform:"scale(".concat((null==o?void 0:o.type)===f.l9.LargeRow?1.1:1.15,")")}}),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 a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return We(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)?We(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.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="lcmBu";return o.type===f.l9.LargeRow&&(m="iVL1A"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("CmXOx")},a.createElement(Ve.u,{video:r,type:"expandable",appLink:e.getAppLink(r),seriesAppLink:i,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d}))}));const Be="eSMIx",Ye="layDP";function ze(e){var t,n,r=he.d.getCustomAppLink(e),i=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(c.F,{appLink:r,style:i?{backgroundImage:"url(".concat(i,")")}:{},className:"".concat(Be," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":Ye),analyticsData:{url:He.C$.getHref(r)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(o.k,{type:f.l9.Row,contents:v.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t)},collection:e.content,childComponent:Re,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var Ze=n(81993);const _e={rowWidth:"TzZuL"};function Ge(e){return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"".concat(_e.rowWidth," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Rating,actionType:l.Vw.Click,location:l.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(Ze.u.mapRatingToClass(e.data.value)," py-3 rounded-3 ")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},a.createElement(se.x,{svgName:I.vn.Search,size:se.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}function qe(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return a.createElement(a.Fragment,null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Ratings,getChildAppLink:function(n){var a,r;return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===r?void 0:r.call(a,n,t)},collection:t,childComponent:Ge,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:t.length},prefetched:!0}))}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ke(e){return a.createElement("div",null,a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}var $e=n(75896);const Je={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function Qe(e){var t,n,r,i,o,s,d=$e.m.first(e.content),p=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.Classification,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Banner});return a.createElement(c.F,{appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,d),analyticsData:e.analyticsData,analyticsOptions:p},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:Je.bannerImage,style:{backgroundImage:"url('".concat(m.j.createBannerUrl(d.banner,{fallbackBaseUrl:"",fallbackCategoryName:d.name,type:u.__.Banners},{size:u.h2.Large}),"')")}},e.name&&a.createElement("div",{className:"".concat(Je.bannerContent," px-3")},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),!!(null===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text)&&a.createElement("div",{className:Je.cta},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)))))}function et(e){return a.createElement(Qe,Object.assign({},e))}const tt="iCyo4",nt="cgv_6";function at(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(tt)},a.createElement("div",{className:"".concat(nt)}))}function rt(e){return rt="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},rt(e)}function it(e,t,n){var a;return a=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=rt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==rt(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot,lt,ct;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(ot||(ot={})),function(e){e.Dark="dark",e.White="white"}(lt||(lt={})),function(e){e.NewWindow="new-window"}(ct||(ct={})),ot.H1,ot.H2,ot.H3,ot.H4,ot.H5,ot.H6,lt.Dark,lt.White,ct.NewWindow;var st=it(it(it(it(it(it(it(it({},ot.H1,"h1"),ot.H2,"h2"),ot.H3,"h3"),ot.H4,"h4"),ot.H5,"h5"),ot.H6,"h6"),lt.Dark,"text-dark"),lt.White,"text-white"),ut=n(42308);function dt(e){var t,n,r,i=st[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||ot.H6],o=st[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||lt.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:"".concat(Je.bannerImage," ").concat(Je.blurb," d-flex"),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Je.bannerContent," ").concat(e.widgetTypeId===ut.z.Blurb?Je.blurb:""," d-flex justify-content-between w-100 px-3")},a.createElement("h2",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.text)&&a.createElement(T.h,{svgName:I.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function mt(e){var t=e.hasPermissions(fe.C.ManageSubjectPreferences)||e.hasLocalPermissions(fe.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Presentation,actionType:l.Vw.Click,location:l.LZ.HeroBannerSmallWidget});return a.createElement(c.F,{className:"info-link d-inline",appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:s},t.name)}var r=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:"".concat(Je.bannerImage," ").concat(Je.presentations),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat(Je.bannerContent," ").concat(Je.presentations," px-3")},a.createElement("h2",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n($e.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function pt(e){switch(e.widgetTypeId){case ut.z.Blurb:return a.createElement(dt,Object.assign({},e));case ut.z.Presentations:return a.createElement(mt,Object.assign({},e));default:return a.createElement(Qe,Object.assign({},e))}}function vt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:"".concat(Je.bannerContent)}))}function ft(e){var t,n,r,i,o,s,d=$e.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("LPw_x")},a.createElement("div",{className:"".concat("UJ8IR"," d-flex justify-content-between align-items-center"),style:f},e.name&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),a.createElement("div",{className:"btn btn-outline-dark me-3"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||O.T.getPhrase("shared.heroThumbnailSmall","buttonLabel"))))):a.createElement(pt,Object.assign({},e))}var gt=n(57900),ht=n(2948),yt=n(45716),bt=n(2158),Et=n(50122);const kt={leftPanel:"Qe3mC",rightPanel:"U4C94",leftImage:"sOu__",dismiss:"_lc7d",subText:"oAOm7",heading:"bsAoB",cta:"HVfW3"};var wt="widgets.onboardingSteps";function Lt(e){var t,n,r,i;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative"},a.createElement("div",{className:"ps-3 py-3 ".concat(kt.leftPanel)},a.createElement("div",{className:"".concat(kt.leftImage," pe-3")},a.createElement("img",{src:null===(t=e.imageUrls)||void 0===t?void 0:t.onboardingAdminBackgroundFull,className:"img-fluid my-n3"})),a.createElement("div",null,a.createElement("h2",{className:"h4 ".concat(kt.heading)},a.createElement(j.x,{namespace:wt,phrase:"letsChat"})),a.createElement("p",{className:"mb-0 ".concat(kt.subText)},a.createElement(j.x,{namespace:wt,phrase:"adminSubtext"})))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat(kt.rightPanel),style:{backgroundImage:"url('".concat(null===(n=e.imageUrls)||void 0===n?void 0:n.onboardingAdminBackground,"')")}},a.createElement("button",{className:"btn btn-link btn-lg text-dark ".concat(kt.dismiss),onClick:function(){return e.onClickDismiss()}},a.createElement(j.x,{namespace:wt,phrase:"dismiss"})),a.createElement(c.F,{appLink:e.isPreviewing?null:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.onboardingStep)||void 0===i?void 0:i.call(r,e.pathway.currentScreen),className:"btn btn-dark btn-lg me-3 text-nowrap ".concat(kt.cta),analyticsData:e.analyticsData,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.User,location:l.LZ.OnboardingStepsWidget,descriptor:l.Ix.ContactSales}},a.createElement(j.x,{namespace:wt,phrase:"contactSales"}))))}var Ot={HIGH:.75,MODERATE:.5};const Ct={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var xt,St,Nt=2,Tt=5.8,jt=.2,Dt=.36;function It(e){var t=e===xt.Large?Tt:Nt,n=e===xt.Large?Dt:jt;return"".concat(t/2-2*n,"rem")}function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot;return e>=t.HIGH?Ct.circleSuccess:e>=t.MODERATE?Ct.circleWarning:Ct.circleDanger}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function Pt(e,t){var n="d-inline-block ".concat(Ct.circleContainer);return e===xt.Large&&(n+=" ".concat(Ct.lgCircleContainer)),Ft(t)&&(n+=" ".concat(Ct.pendingCircle)),n}function Ft(e){return"number"!=typeof e}function Ht(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[]);return a.createElement("svg",null,a.createElement("circle",{r:It(e.size),className:Ct.backgroundCircle}),!Ft(e.percentage)&&a.createElement("circle",{ref:t,r:It(e.size),className:At(e.percentage,e.scoreThresholds)}))}function Vt(e){var t,n,r=function(e){if(!Ft(e))return+e.toFixed(2)}(e.percentage),i=e.layout===St.LabelInside?xt.Large:xt.Small,o=e.customLabel||(Ft(n=r)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===St.LabelOnly?a.createElement("span",{className:Mt(r)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===St.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:Pt(i,r)},a.createElement(Ht,{percentage:r,size:i,scoreThresholds:e.scoreThresholds}),e.layout===St.LabelInside&&a.createElement("span",{className:Ct.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(xt||(xt={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(St||(St={})),Vt.defaultProps={layout:St.CircleOnly};const Ut={leftPanel:"eN_BJ",rightPanel:"oWaCP",description:"kVuV3",container:"po66E",button:"K4JTK",descriptionContainer:"YWmoi",percentageContainer:"crv0d"};var Wt="widgets.onboardingSteps",Rt=O.T.encloseNamespace(Wt);function Bt(e){var t,n,r,i,o,s=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Et.m.getProgress(e.pathway);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),u=s.overallPercentage,d=s.totalScreens,m=s.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat(Ut.container)},a.createElement("div",{className:"".concat(Ut.leftPanel)},a.createElement("div",{className:Ut.percentageContainer},a.createElement(Vt,{percentage:Math.round(u)/100,layout:St.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(t=yt.H["select-videos"])||void 0===t?void 0:t.getWidgetHeading():null===(n=yt.H[e.pathway.currentScreen])||void 0===n?void 0:n.getWidgetHeading()),a.createElement("div",{className:Ut.descriptionContainer},a.createElement(se.x,{svgName:I.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:Ut.description},function(e,t,n){var a=yt.H[e];return t===n?"".concat(Rt("lastStepDescriptionPrefix")," ").concat(null==a?void 0:a.getWidgetDescription()):1===t?"".concat(Rt("firstStepDescriptionPrefix")," ").concat(null==a?void 0:a.getWidgetDescription()):"".concat(Rt("descriptionPrefix")," ").concat(null==a?void 0:a.getWidgetDescription())}(e.isPreviewing?"select-videos":e.pathway.currentScreen,m,d))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat(Ut.rightPanel),style:{backgroundImage:"url('".concat(null===(r=e.imageUrls)||void 0===r?void 0:r.onboardingTeacherBackground,"')")}},a.createElement(c.F,{appLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.onboardingStep)||void 0===o?void 0:o.call(i,e.pathway.currentScreen),className:"btn btn-dark btn-lg ".concat(Ut.button),analyticsData:e.analyticsData,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.User,location:l.LZ.OnboardingStepsWidget,descriptor:l.Ix.FinishPersonalising}},a.createElement(j.x,{namespace:Wt,phrase:"completeSetup"}))))}var Yt=n(38143);function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Zt(e){var t,n,r,i,o,c=(0,bt.T)(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),s=c.getPathway,u=c.hasLoadedPathway,d=(i=(0,ht.D)(Yt.g.ONBOARDING_BANNER_DISMISSED,!1,{storage:gt.Z1.LocalStorage}),o=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(i,o)||function(e,t){if(e){if("string"==typeof e)return zt(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)?zt(e,t):void 0}}(i,o)||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.")}()),m=d[0],p=d[1],v=u&&s();if(function(){var t,n;return!(e.isPreviewing||u&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(fe.C.ViewOnboarding)&&!m&&!v.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var f=function(){if(e.isPreviewing)return{};var t=yt.H[v.currentScreen],n=v.screens[v.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:Et.m.getProgress(v)},Et.m.getOnboardingScreenStates(v))}();return yt.H["contact-sales"].predicate({usageIntention:Et.m.getUsageIntention(),jobTitle:e.jobTitle,hasPermissions:e.hasPermissions})?a.createElement(Lt,{imageUrls:e.imageUrls,appLinks:e.appLinks,pathway:v,onClickDismiss:function(){re.k.logUserAction(f,{entity:l.py.Widget,location:l.LZ.OnboardingStepsWidget,actionType:l.Vw.Click,descriptor:l.Ix.DismissWidget}),p(!0)},analyticsData:f,isPreviewing:e.isPreviewing}):a.createElement(Bt,{imageUrls:e.imageUrls,appLinks:e.appLinks,pathway:v,isPreviewing:e.isPreviewing,analyticsData:f})}function _t(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Gt=n(68626),qt=n(80143),Xt=n(31908);var Kt=a.memo((function(e){var t,n=e.data,r=e.getSeriesAppLink,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,qt.n)(s,c),d=(0,y.k)(),m="JSM4l";return i.type===f.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Ve.u,{type:d.xs?"static":"popout",textPosition:Gt.z.Below,video:n,appLink:e.getAppLink(n),seriesAppLink:Xt.M.isVideo(n)&&Xt.M.hasSeries(n)?null==r?void 0:r(n.series):void 0,imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,audience:u,hideRating:!!u,hideDuration:!1,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,hideTitle:e.hideTitle,hideSeries:e.hideSeries,showVideoGuidance:e.showVideoGuidance}))}));function $t(e){var t,n,r,i,l,c,s,u;return a.createElement(o.k,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Kt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.series,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,yearGroups:e.yearGroups,hideTitle:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(l=e.metadata)||void 0===l?void 0:l.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest},getChildAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name)})}function Jt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function Qt(e){var t,n,r,i,l,c,s,u,d,m,p,g=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name);return e.widgetTypeId===ut.z.ContinueWatching&&(null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)&&(g=null===(l=null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)||void 0===l?void 0:l.call(i)),a.createElement(o.k,{name:!(null===(c=e.metadata)||void 0===c?void 0:c.hideWidgetHeading)&&e.name,description:!(null===(s=e.metadata)||void 0===s?void 0:s.hideWidgetDescription)&&e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Kt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.series,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,hideTitle:null===(d=e.metadata)||void 0===d?void 0:d.hideObjectTitle,hideSeries:null===(m=e.metadata)||void 0===m?void 0:m.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,yearGroups:e.yearGroups},getChildAppLink:null===(p=e.appLinks)||void 0===p?void 0:p.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:g})}const en={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var nn=n(34004);function an(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Series,descriptor:l._S.TallPoster});return a.createElement(c.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?en.smallSeriesItem:en.largeSeriesItem," "),analyticsData:n,analyticsOptions:r},a.createElement(nn.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall}))}function rn(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Series,collection:e.content,childComponent:an,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const on={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var ln=function(e){return a.createElement("div",{className:"".concat(e.type===f.l9.Row?on.slidingSubjectSmall:on.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(on.partialLoading," partial-loading-background rounded-3")}))};function cn(e){for(var t,n,r=(t=e.type,(n=(0,y.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===f.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement(ln,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(h.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var sn=n(75163),un=n(5465);function dn(e){var t,n=e.data,r=e.preloadImage,i=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Classification,actionType:l.Vw.Click,descriptor:l._S.TallPoster});return a.createElement("div",{className:(t=on.posterContainer,e.context.type===f.l9.Row?t+=" ".concat(on.slidingSubjectSmall):t+=" ".concat(on.slidingSubjectLarge),t)},a.createElement(sn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:r,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(un.oy,{type:un.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(on.heading)},n.name)))}function mn(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Subjects,collection:e.content,childComponent:dn,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var vn="explore-all-topics";function fn(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===f.OL.ExploreAllTopics?vn:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),r=he.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(o.k,{name:e.name,appLink:r,description:e.description,type:f.l9.Row,contents:v.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return pn(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return pn(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)?pn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,childComponent:dn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===vn?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function gn(e){var t;return a.createElement("div",null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.SmallSeries,collection:e.content,childComponent:an,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function hn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function yn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(hn,null),a.createElement(hn,null))}var bn=n(3626);function En(e){var t,n,r,i,o=e.content[0];return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(bn.J,{video:o,presentationAudiences:e.audiences,videoAppLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,o),seriesAppLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.series)||void 0===i?void 0:i.call(r,o.series),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:e.showVideoGuidance,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}))}function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var wn=n(2284);const Ln="OZATG",On="hcAU2",Cn="Tbieu",xn="mGGrd",Sn="VtzxT",Nn="jrY7R",Tn="yAgR6",jn="RjJ7O",Dn="TJ7Sl",In="yzmvY",An="hGi43";function Mn(e){var t,n,r,i=m.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=m.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),l={backgroundColor:null===(r=e.data.metadata)||void 0===r?void 0:r.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat(On," ").concat(e.isLarge?Cn:xn),style:l},a.createElement("div",{className:"".concat(Sn)},a.createElement("div",{className:"".concat(Nn)},a.createElement("h3",{className:"".concat(Tn," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start ".concat(jn)},a.createElement("p",{className:In},e.data.description))),e.isLarge&&a.createElement("div",{className:An},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},O.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!i&&a.createElement("div",{className:"".concat(Dn),style:{backgroundImage:"url('".concat(i,"')")}}))}var Pn=a.memo((function(e){var t,n,r,i,o=(null===(t=e.data)||void 0===t?void 0:t.status)===wn.W.ComingSoon,s=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(r=e.data)||void 0===r?void 0:r.name,presentationId:null===(i=e.data)||void 0===i?void 0:i.presentationId,comingSoon:!!o}),u=Object.assign(Object.assign({location:l.LZ.ClassificationListItem},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return e.appLink?a.createElement(c.F,{className:Ln,appLink:e.appLink,analyticsData:s,analyticsOptions:u},a.createElement(Mn,Object.assign({},e))):a.createElement(Mn,Object.assign({},e))}));function Fn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},a.createElement(Pn,{data:t,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===r?void 0:r.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}const Hn="HwejH";var Vn=function(){return a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},Un=n(22843),Wn=n(47325),Rn=n(90927),Bn=n(78479);const Yn={guidance:"uCRU1"};function zn(e){var t,n,r,i,o,c=Xt.M.isVideo(e.video)&&Xt.M.hasSeries(e.video),s=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video),d=c?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.series)||void 0===i?void 0:i.call(r,e.video.series):null,m=a.useRef(null),p={actionType:l.Vw.Click,entity:Xt.M.getAnalyticsEntity(e.video),location:l.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:l._S.Thumbnail},v=(0,qt.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:m},a.createElement(Ve.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),p),video:e.video,appLink:s,seriesAppLink:d,imageOptions:{size:u.h2.Medium},textPosition:Gt.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:v,hideRating:!!v})),a.createElement(Un.h,{video:e.video,appLink:s,seriesAppLink:d,yearGroups:e.yearGroups}),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex justify-content-start align-items-center pt-1 ".concat(Yn.guidance)},a.createElement(Rn.N,{video:e.video,containerRef:m,widgetTemplate:Bn.f.ThumbnailFixedListMediaLarge,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(Wn.I,{video:e.video,containerRef:m,widgetTemplate:Bn.f.ThumbnailFixedListMediaLarge,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))}function Zn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return a.createElement(zn,Object.assign({key:t.id,video:t},e))}))))}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Gn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},a.createElement(Pn,{data:t,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===r?void 0:r.call(n,t),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function qn(e){var t,n,r,i,o,s,d=$e.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(a.Fragment,null,a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:f},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},d.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||O.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(et,Object.assign({},e))}var Xn=n(96022),Kn=n(38647);function $n(e){var t,n,r,i,o,s,d,m,p,v=e.content[0],f=a.useRef(),g=(0,qt.n)(null===(t=v.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),h=Xt.M.hasSeries(v),y=re.k.mergeOptions(e.analyticsOptions,{actionType:l.Vw.Click,entity:Xt.M.getAnalyticsEntity(v),location:l.LZ.ThumbnailHeroMediaWidget}),b=Xt.M.getCanBeConsumed(v).canNavigate;return v?a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{ref:f},a.createElement(Ve.u,{video:v,imageOptions:{size:u.h2.Large},type:"static",textPosition:Gt.z.Independent,analyticsOptions:y,audience:g,hideRating:!!g,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===r?void 0:r.call(n,v),seriesAppLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.series)||void 0===o?void 0:o.call(i,function(e){if(Xt.M.isVideo(e))return e.series}(v)),setFavourite:e.setFavourite,canFavourite:e.canFavourite})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Xt.M.isVideo(v)&&a.createElement(Xn.Mr,{video:v,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.series)||void 0===d?void 0:d.call(s,v.series),analyticsOptions:y,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:h?"":"mt-2"},a.createElement(c.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,v),analyticsData:{id:v.id,name:v.name},analyticsOptions:Object.assign(Object.assign({},y),{descriptor:l._S.Title}),className:"d-inline-block ".concat(b?"":"cursor-default text-decoration-none disabled"),disabled:!b},a.createElement("h3",{className:"h4 mb-0"},v.name,a.createElement(Kn.m,{video:v,yearGroups:e.yearGroups}))))),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},a.createElement(Rn.N,{containerRef:f,widgetTemplate:Bn.f.ThumbnailHeroMedia,video:v,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(Wn.I,{containerRef:f,widgetTemplate:Bn.f.ThumbnailHeroMedia,video:v,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))):a.createElement(a.Fragment,null)}function Jn(e){var t,n,r;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Re,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===r?void 0:r.call(n,e.id,e.name)})}function Qn(e){var t,n,r;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Re,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===r?void 0:r.call(n,e.id,e.name)})}var ea;function ta(e){return ta="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},ta(e)}function na(e,t,n){var a;return a=function(e,t){if("object"!=ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=ta(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==ta(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aa=(na(na(na(na(na(na(na(na(na(na(ea={},Bn.f.ThumbnailHeroMedia,{getComponent:function(){return $n},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(yn,null))))},icon:I.vn.WidgetTemplateThumbnailHeroMedia,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),Bn.f.PosterSlidingListLarge,{getComponent:function(){return rn},partialLoading:function(){var e,t,n=(e=(0,y.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return tn(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return tn(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)?tn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(en.partialLoading," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplatePosterSlidingListLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.PosterSlidingListMedium,{getComponent:function(){return mn},partialLoading:function(){return a.createElement(cn,{type:f.l9.LargeRow})},icon:I.vn.WidgetTemplatePosterSlidingListMedium,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case ut.z.CuratedClassifications:return fn;case ut.z.CuratedSeries:return gn;default:return fn}},partialLoading:function(){return a.createElement(cn,{type:f.l9.Row})},icon:I.vn.WidgetTemplatePosterSlidingListSmall,getTargets:function(e){switch(e){case ut.z.CuratedClassifications:return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv];case ut.z.CuratedSeries:return[f.ku.MoviesAndTv,f.ku.Company];default:return[]}},className:""}),Bn.f.ThumbnailFeaturedMedia,{getComponent:function(){return En},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(E.Z,null,a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(yn,null))))))},icon:I.vn.WidgetTemplateThumbnailFeaturedMedia,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),Bn.f.CoverFixedPillListLarge,{getComponent:function(){return b.K},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(E.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(w.Ml,null)))}))))},icon:I.vn.WidgetTemplateCoverFixedPillListLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),Bn.f.CoverFixedPillListXSmall,{getComponent:function(){return z},partialLoading:function(){return a.createElement("div",{className:"".concat(B," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(E.Z,{className:"mb-2 ".concat(Y)},Array(8).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:I.vn.WidgetTemplateCoverFixedPillListXSmall,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),Bn.f.CoverSlidingPillListSmall,{getComponent:function(){return ee},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(te.QL,{partialLoadingComponent:w.Qh}))},icon:I.vn.WidgetTemplateCoverSlidingPillListSmall,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company,f.ku.StreamableLearning]},className:""}),Bn.f.CoverFixedTileList,{getComponent:function(){return q},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(Z.YA,{itemClassName:"columns-of-five"}))},icon:I.vn.WidgetTemplateCoverFixedTileList,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),Bn.f.FeaturedThumbnailSlidingList,{getComponent:function(){return ze},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(Be," ").concat(Ye," mb-1 ")}),a.createElement(Ce.j7,{hideDescription:!0,hideHeading:!0}))},icon:I.vn.WidgetTemplateFeaturedThumbnailSlidingList,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),na(na(na(na(na(na(na(na(na(na(ea,Bn.f.HeroBanner,{getComponent:function(){return et},partialLoading:at,icon:I.vn.WidgetTemplateHeroBanner,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),Bn.f.OnboardingSteps,{getComponent:function(){return Zt},partialLoading:at,icon:I.vn.WidgetTemplateOnboardingSteps,getTargets:function(){return[f.ku.Discover]},className:""}),Bn.f.HeroBannerSmall,{getComponent:function(){return pt},partialLoading:vt,icon:I.vn.WidgetTemplateHeroBannerSmall,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.StreamableLearning]},className:""}),Bn.f.HeroThumbnailSmall,{getComponent:function(){return ft},partialLoading:function(){return a.createElement(vt,null)},icon:I.vn.WidgetTemplateHeroThumbnailSmall,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.ThumbnailFixedListXLarge,{getComponent:function(){return qn},partialLoading:function(){return a.createElement(at,null)},icon:I.vn.WidgetTemplateThumbnailFixedListXLarge,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.ThumbnailFixedListLarge,{getComponent:function(){return Fn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return kn(e)}(e=Array(2))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return kn(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)?kn(e,t):void 0}}(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.")}();return a.createElement("div",null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1"},t.map((function(e,t){return a.createElement(k.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplateThumbnailFixedListLarge,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.ThumbnailFixedListSmall,{getComponent:function(){return Gn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return _n(e)}(e=Array(3))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(e,t):void 0}}(e)||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.")}();return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1 "},t.map((function(e,t){return a.createElement(k.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplateThumbnailFixedListSmall,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Le},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(E.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(w.Qh,null)))}))))},icon:I.vn.WidgetTemplateEditableCoverFixedPillListSmall,getTargets:function(){return[f.ku.Discover]},className:""}),Bn.f.Heading,{getComponent:function(){return Ke},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:I.vn.WidgetTemplateHeading,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:"heading-widget-template"}),Bn.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Zn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Hn," partial-loading-background rounded-3")}),a.createElement(Vn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(yn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Hn," partial-loading-background rounded-3")}),a.createElement(Vn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(yn,null)))))},icon:I.vn.WidgetTemplateThumbnailFixedListMediaLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),na(na(na(na(na(na(na(ea,Bn.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return $t},partialLoading:function(){return a.createElement(Ce.j7,{size:"lg",childComponent:_t})},icon:I.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),Bn.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Qt},partialLoading:function(){return a.createElement(Ce.j7,{size:"sm",childComponent:Jt})},icon:I.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,getTargets:function(){return[f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company,f.ku.StreamableLearning]},className:""}),Bn.f.FilterSlidingPillListSmall,{getComponent:function(){return qe},partialLoading:function(){var e,t=(0,y.k)();return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(e=Array(t.xs||t.sm?3:t.md||t.lg?4:5),function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xe(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)?Xe(e,t):void 0}}(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.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:I.vn.WidgetTemplateFilterSlidingPillListSmall,getTargets:function(){return[f.ku.MoviesAndTv]},className:""}),Bn.f.CircleLogoSlidingList,{getComponent:function(){return g},partialLoading:function(){var e=8,t=(0,y.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:I.vn.WidgetTemplateCircleLogoSlidingList,getTargets:function(){return[f.ku.MoviesAndTv,f.ku.StreamableLearning]},className:""}),Bn.f.EventIconSlidingList,{getComponent:function(){return Fe},partialLoading:function(){var e,t=(e=(0,y.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:e.xl||e.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:I.vn.WidgetTemplateEventIconSlidingList,getTargets:function(){return[f.ku.Discover]},className:""}),Bn.f.ThumbnailSlidingListSmall,{getComponent:function(){return Qn},partialLoading:Ce.j7,icon:I.vn.WidgetTemplateThumbnailSlidingListSmall,getTargets:function(){return[]},className:""}),Bn.f.ThumbnailSlidingListLarge,{getComponent:function(){return Jn},partialLoading:function(){return a.createElement(Ce.j7,{size:"lg"})},icon:I.vn.WidgetTemplateThumbnailSlidingListLarge,getTargets:function(){return[]},className:""})),ra=n(65294);const ia={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function oa(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,u=(0,ra.Y)({prevent:!s}),d=u.ref,m=u.inView,p=r.q.isFunction(e.getContentRequest),v=i.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),f=he.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),null===(o=v.data)||void 0===o?void 0:o.preferences),g=f.content,h=f.unfilteredContent,b=(0,y.k)(),E=function(e,t){return!(he.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,g),k=!he.d.canDisplayOnScreenSize(b,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E||k)}),[v.hasCompleted,E,k,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var w=e.appLinks?Object.assign({},e.appLinks):null;(null==w?void 0:w.videoType)&&(w.videoType=function(t){var n;return null===(n=e.appLinks)||void 0===n?void 0:n.videoType(t,e.id)});var L=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),O=p&&!v.hasCompleted||e.isEditing&&E,C=aa[e.templateId].partialLoading,x=aa[e.templateId].getComponent(e.widgetTypeId),S=aa[e.templateId].className;return O||!E&&!k?a.createElement("div",{id:e.widgetTypeId===ut.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(S," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(ia.widgetHighlight," py-2 px-3 rounded-3"):""},he.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(ia.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),O?a.createElement("div",{ref:d},a.createElement(C,null)):a.createElement(x,Object.assign({},e,{appLinks:w,content:g,unfilteredContent:h,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:L,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(94495),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q});var a=n(16450);n(14244)},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 3331-47c346fbb4-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3331],{84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},76153:(t,e,r)=>{r.d(e,{F:()=>v});var n=r(63093),o=r(33003),i=r.n(o),a=r(84789),c=r(86664);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var m="suspendedStart",p="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function E(){}var x={};s(x,a,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(I([])));O&&O!==r&&n.call(O,a)&&(x=O);var S=E.prototype=b.prototype=Object.create(x);function N(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,c){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=m;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,n);if("normal"===l.type){if(o=n.done?y:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=s(E,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,s(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},N(C.prototype),s(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new C(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},N(S),s(S,l,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function h(t,e,r){var n;return n=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==u(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={k12:"Primary & Secondary"},m={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},p=h(h({},a.X.Auth,"auth.web"),a.X.Lite,"lite.web"),v={getClient:function(t){var e,r,o,i,a,u;return o=this,i=void 0,a=void 0,u=f().mark((function o(){var i,a,u,l,s,h;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=t.brazeConfig,a=t.geoLocation,u=t.version,l=i[c.I.getInstanceRegion(null==a?void 0:a.countryCode)],s=p[t.productName],h=(0,n.getInstance)({baseUrl:l.url,apiKey:l.apiKey,productVersion:u,productName:s,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&h.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),o.abrupt("return",h);case 6:case"end":return o.stop()}}),o)})),new(a||(a=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof a?o:new a((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,i||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return i().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=l(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=l(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),h({},n,o===Object(o)?v.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return n.ProductFormEvent.ProductTrailRequested},getProductFormEventType:function(){return"product_form_submission"},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return d[e]||t}},parseProvince:function(t){return t.length?m[t.toLowerCase()]||t:""}}},74887:(t,e,r)=>{r.d(e,{f:()=>a});var n=r(32735),o=r(11607);const i={icon:"ohit6",description:"DmrW6",option:"KOzYf"};function a(t){return n.createElement("ul",{className:"list-unstyled mb-3"},t.options.map((function(e){return n.createElement("li",{key:e.id,className:"".concat(i.option," mb-2 border border-2 rounded-3 ").concat(t.selection===e.id?"border-dark bg-light-blue":"border-transparent")},n.createElement(o.L,{onClick:function(){return t.setSelection(e.id)},className:"d-flex align-items-center p-2"},n.createElement("div",{className:"rounded border border-dark ".concat(e.colourClass," ").concat(i.icon)},n.createElement("img",{src:e.imageUrl,className:"img-fluid"})),n.createElement("div",null,n.createElement("h2",{className:"mb-1 h6"},e.title),n.createElement("p",{className:"mb-0 ".concat(i.description)},e.description))))})))}},12058:(t,e,r)=>{r.d(e,{X:()=>o});var n=r(32735);function o(t){return n.createElement("p",{className:t.className},t.children)}},11572:(t,e,r)=>{r.r(e),r.d(e,{OnboardingContactSalesView:()=>B});var n=r(32735),o=r(63093),i=r(23481),a=r(20354),c=r(65858),u=r(84789),l=r(76153),s=r(83345),f=r(39151),h=r(1666),d=r(31949),m=r(99742),p=r(99940),v={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:p.k.POST,data:{email:t}}}},y=r(75359),g=r(74887),b=r(12058),w=r(40695),E=r(73190),x=r(90815),L=r(36669),O=r(17762);const S={imageContainer:"QqX1V",topImage:"mjPRy",bottomImage:"uHwHs",info:"dNDnN"};function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function C(){C=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",m="executing",p="completed",v={};function y(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(I([])));x&&x!==r&&n.call(x,a)&&(w=x);var L=b.prototype=y.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==N(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?p:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=p,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(N(e)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(L),l(L,u,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function k(t,e,r){var n;return n=function(t,e){if("object"!=N(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==N(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var P,A=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},I="onboarding.contactSales",F=i.T.encloseNamespace(I),U="product_onboarding_submission";!function(t){t.BookADemo="Onboarding book demo",t.RequestPricing="Onboarding request pricing",t.ContactUs="Onboarding other"}(P||(P={}));var T=[{id:P.BookADemo,imageUrl:m.W.OnboardingV2.ContactSales.BOOK_DEMO_ICON,colourClass:"bg-yellow",title:F("bookDemo"),description:F("bookDemoInfo")},{id:P.RequestPricing,imageUrl:m.W.OnboardingV2.ContactSales.REQUEST_PRICING_ICON,colourClass:"bg-teal",title:F("requestPricing"),description:F("requestPricingInfo")},{id:P.ContactUs,imageUrl:m.W.OnboardingV2.ContactSales.OTHER_ICON,colourClass:"bg-dark-blue",title:F("other"),description:F("otherInfo")}];function B(){var t,e=(0,E.Q)(),r=e.onClickBack,i=e.exitOnboarding,p=e.completeStepAsync,N=e.onSaveError,_=(0,x.H)().logEvent,B=a.a.useBasicFetch(d.N.currentUser()),G=a.a.useBasicFetch(B.data&&d.N.user(B.data.id)),D=a.a.useBasicFetch(f.L.version()),R=a.a.useBasicFetch(f.L.config()),V=a.a.useBasicFetch(B.data&&h.h.customer(B.data.customerId)),q=a.a.useBasicFetch(L.t.currentProspect()),K=a.a.useBasicFetch(B.data&&v.checkEmail(B.data.email)),z=(0,O.M)(),W=j(n.useState(),2),X=W[0],M=W[1],H=j(n.useState(""),2),Y=H[0],Q=H[1],$=j(n.useState(""),2),J=$[0],Z=$[1],tt={optionId:X,optionName:null===(t=T.find((function(t){return t.id===X})))||void 0===t?void 0:t.title,phoneNumber:Y,otherInformation:J};function et(){switch(X){case P.BookADemo:return"book_a_demo";case P.RequestPricing:return"request_pricing";case P.ContactUs:return"other"}}return n.createElement(w.z,{namespace:I},n.createElement(w.z.Left,{className:"bg-blue d-flex align-items-center"},n.createElement("div",{className:"px-5"},n.createElement("img",{className:"img-fluid",src:m.W.OnboardingV2.ContactSales.BACKGROUND}))),n.createElement(w.z.Right,{hasCustomButtons:!1,onClickNext:function(){var t,e,r,n,i,a,s,f,h,d,m,v,y,g,b,w,E,x,L,O;return A(this,void 0,void 0,C().mark((function S(){var j,P,I,F,T=this;return C().wrap((function(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,S.next=3,l.F.getClient({brazeConfig:R.data.braze,geoLocation:z.isFallback?{countryCode:null!==(e=null===(t=B.data)||void 0===t?void 0:t.countryCode)&&void 0!==e?e:z.countryCode}:z,productName:u.X.Lite,version:D.data});case 3:(j=S.sent).setUser(l.F.hashedEmail(null===(r=G.data)||void 0===r?void 0:r.email)),j.openSession(),j.setUserFirstName(null===(n=G.data)||void 0===n?void 0:n.name),j.setUserLastName(null===(i=G.data)||void 0===i?void 0:i.surname),j.setUserPhone(Y),j.setUserEmail(null===(a=G.data)||void 0===a?void 0:a.email),P=l.F.removeEmptyKeys(k(k(k(k({},o.DefaultUserAttributes.Email,null===(s=G.data)||void 0===s?void 0:s.email),o.DefaultUserAttributes.FirstName,null===(f=G.data)||void 0===f?void 0:f.name),o.DefaultUserAttributes.LastName,null===(h=G.data)||void 0===h?void 0:h.surname),o.DefaultUserAttributes.Phone,Y)),I=l.F.removeEmptyKeys(k(k(k(k(k(k(k({},o.CustomUserAttributes.JobTitle,null===(v=null===(m=null===(d=G.data)||void 0===d?void 0:d.userProfile)||void 0===m?void 0:m.metadata)||void 0===v?void 0:v.jobTitle),o.CustomUserAttributes.AccountName,null===(y=B.data)||void 0===y?void 0:y.customerName),o.CustomUserAttributes.CrmId,null===(g=V.data)||void 0===g?void 0:g.crmId),o.CustomUserAttributes.OrgSubType,l.F.getSchoolType("")),"account_address",{country_code:null===(b=B.data)||void 0===b?void 0:b.countryCode,province:l.F.parseProvince((null===(w=q.data)||void 0===w?void 0:w.province)||"")}),"topic",X),o.CustomUserAttributes.SyncToCrm,!(null===(x=null===(E=K.data)||void 0===E?void 0:E.users)||void 0===x?void 0:x.length))),F=l.F.removeEmptyKeys(k(k(k(k({},o.EventUserAttributes.AccountCity,null===(L=q.data)||void 0===L?void 0:L.city),o.EventUserAttributes.AccountState,null===(O=q.data)||void 0===O?void 0:O.province),o.EventUserAttributes.ContactUsComment,J),"form_type",et())),j.bulkSetCustomUserAttributes(I),j.logEvent({type:U,data:Object.assign(Object.assign(Object.assign({},P),I),F)}),_(c.Vw.Click,c.Ix.Next,tt),j.sendData((function(t){return A(T,void 0,void 0,C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return N(),e.abrupt("return",Promise.reject());case 3:return e.prev=3,e.next=6,p();case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),N(),e.abrupt("return",Promise.reject());case 12:case"end":return e.stop()}}),e,null,[[3,8]])})))})),S.next=23;break;case 19:return S.prev=19,S.t0=S.catch(0),N(),S.abrupt("return",Promise.reject());case 23:case"end":return S.stop()}}),S,null,[[0,19]])})))},onClickBack:r,onClickComeBackLater:i,disableNext:!X||!Y||!G.data||X===P.ContactUs&&!J,nextText:F("contactSales")},n.createElement(y.W,{className:"mb-0"},n.createElement(s.x,{phrase:"heading"})),n.createElement(b.X,{className:"".concat(S.info," mb-0 mt-1")},n.createElement(s.x,{phrase:"info"})),n.createElement(b.X,{className:"fw-semibold mt-3 mb-1"},n.createElement(s.x,{phrase:"howCanWeHelp"})),n.createElement(g.f,{options:T,selection:X,setSelection:function(t){var e;_(c.Vw.Select,c.Ix.SelectOption,Object.assign(Object.assign({},tt),{optionId:t,optionName:null===(e=T.find((function(e){return e.id===t})))||void 0===e?void 0:e.title})),M(t)}}),n.createElement("label",{htmlFor:"phone-number"},F("phoneNumber"),n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"phone-number",name:"phone-number",className:"form-control form-control-lg mb-3",type:"tel",value:Y,onChange:function(t){return Q(t.target.value)},placeholder:F("phoneNumberPlaceholder"),onFocus:function(){_(c.Vw.Focus,c.Ix.PhoneNumber,tt)},onBlur:function(){_(c.Vw.Blur,c.Ix.PhoneNumber,tt)}}),n.createElement("label",{htmlFor:"other-information"},F("otherLabel"),X===P.ContactUs&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("input",{id:"other-information",name:"other-information",className:"form-control form-control-lg",value:J,onChange:function(t){return Z(t.target.value)},placeholder:F("otherPlaceholder"),onFocus:function(){_(c.Vw.Focus,c.Ix.OtherInformation,tt)},onBlur:function(){_(c.Vw.Blur,c.Ix.OtherInformation,tt)}})))}},17762:(t,e,r)=>{r.d(e,{M:()=>a});var n=r(20354),o=r(39151),i={countryCode:"us",isFallback:!0};function a(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasCompleted&&!t.data?i:t.data}}}]);
|